@tylertech/forge 3.8.0-dev.0 → 3.8.0-dev.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/custom-elements.json +193 -193
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +2 -2
- package/dist/vscode.css-custom-data.json +20 -20
- package/dist/vscode.html-custom-data.json +21 -21
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/esm/stepper/stepper/stepper-constants.d.ts +1 -17
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -66,7 +66,7 @@ var H5=Object.defineProperty,rm=Object.defineProperties,nm=Object.getOwnProperty
|
|
|
66
66
|
<slot @slotchange=${this._debounceMeterChange}></slot>
|
|
67
67
|
</div>
|
|
68
68
|
</div>
|
|
69
|
-
`}_syncMeters(){this._meters.forEach(e=>{e.direction=this.direction,e.min=this.min,e.max=this.max})}_handleMeterChange(e){e.stopPropagation(),this._meters.reduce((a,o,n,i)=>(o.style.setProperty("--_meter-z-index",`${i.length-n}`),o.style.setProperty("--_meter-inset",`${a}%`),a+o.percentage),0)}_handleHeadingSlotChange(){let e=[...this._labelNodes,...this._valueNodes].filter(a=>{var o;return!!((o=a.textContent)!=null&&o.trim())});this._hasSlottedHeadingContent=!!e.length}};Ut.styles=c2(xf),Ut.formAssociated=!0,s([w1({type:Number})],Ut.prototype,"min",2),s([w1({type:Number})],Ut.prototype,"max",2),s([w1({type:Boolean})],Ut.prototype,"tickmarks",2),s([w1()],Ut.prototype,"direction",2),s([w1()],Ut.prototype,"density",2),s([w1()],Ut.prototype,"shape",2),s([w1({attribute:"inner-shape"})],Ut.prototype,"innerShape",2),s([re()],Ut.prototype,"_hasSlottedHeadingContent",2),s([q0({slot:"label"})],Ut.prototype,"_labelNodes",2),s([q0({slot:"value"})],Ut.prototype,"_valueNodes",2),s([Ph({selector:"forge-meter"})],Ut.prototype,"_meters",2),Ut=s([T2("forge-meter-group")],Ut);function Od(){x2("forge-meter-group",Ut)}var bf=`${x}page-state`,Dd={elementName:bf};var yf='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',Mf=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-title-spacing-mobile:var(--forge-page-state-title-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-spacing-mobile:var(--forge-page-state-message-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:flex;justify-content:center;align-items:center;width:100%;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{display:flex;justify-content:center;align-items:center;height:var(--_page-state-graphic-height);width:100%;margin-block-end:var(--_page-state-graphic-spacing)}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);--_page-state-title-spacing:var(--_page-state-title-spacing-mobile);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);--_page-state-message-spacing:var(--_page-state-message-spacing-mobile);color:var(--_page-state-message-color);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-graphic-height:var(--_page-state-mobile-graphic-height);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, 0)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit)}.forge-page-state .actions{grid-auto-flow:row}}',So=class extends H{constructor(){super(),L(this,yf,Mf)}};So=s([y({name:Dd.elementName})],So);function Pd(){b(So)}var Nd=`${x}paginator`,Rd={PAGE_INDEX:"page-index",PAGE_SIZE:"page-size",OFFSET:"offset",TOTAL:"total",PAGE_SIZE_OPTIONS:"page-size-options",LABEL:"label",FIRST_LAST:"first-last",FIRST:"first",DISABLED:"disabled",ALTERNATIVE:"alternative"},Hf=m({},Rd),Lf={LABEL:".label > slot[name=label]",PAGE_SIZE_SELECT:".page-size-options",RANGE_LABEL:".range-label > slot[name=range-label]",FIRST_PAGE_BUTTON:".first-page",FIRST_PAGE_CONTAINER:"#first-page-container",PREVIOUS_PAGE_BUTTON:".previous-page",PREVIOUS_PAGE_CONTAINER:"#previous-page-container",NEXT_PAGE_BUTTON:".next-page",NEXT_PAGE_CONTAINER:"#next-page-container",LAST_PAGE_BUTTON:".last-page",LAST_PAGE_CONTAINER:"#last-page-container",RANGE_LABEL_ALTERNATIVE:".alternative-range-label > slot[name=alternative-range-label]"},If={CHANGE:`${Nd}-change`},Vf={DEFAULT_PAGE_INDEX:0,DEFAULT_TOTAL:0,DEFAULT_PAGE_SIZE:25,DEFAULT_PAGE_SIZE_OPTIONS:[5,15,25,50,100]},Ef={DEFAULT_LABEL:"Rows per page:",RANGE_SEPARATOR_LABEL:"of"},Z={elementName:Nd,observedAttributes:Rd,attributes:Hf,selectors:Lf,events:If,numbers:Vf,strings:Ef};var tl=class{constructor(t){this._adapter=t;this._pageIndex=Z.numbers.DEFAULT_PAGE_INDEX;this._pageSize=Z.numbers.DEFAULT_PAGE_SIZE;this._offset=0;this._total=Z.numbers.DEFAULT_TOTAL;this._pageSizeOptions=Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS.map(t=>({label:`${t}`,value:`${t}`}));this._label=Z.strings.DEFAULT_LABEL;this._firstLast=!1;this._first=!1;this._disabled=!1;this._alternative=!1;this._firstPageListener=this._onFirstPage.bind(this);this._previousPageListener=this._onPreviousPage.bind(this);this._nextPageListener=this._onNextPage.bind(this);this._lastPageListener=this._onLastPage.bind(this);this._pageSizeListener=this._onPageSizeChanged.bind(this)}initialize(){this._updateRangeLabel(),this._adapter.setLabel(this._label),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.setPageSize(this._pageSize),this._attachListeners(),this._toggleFirstLastButtons(),this._syncInteractionState()}focus(t){this._adapter.setFocus(t)}_attachListeners(){this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.attachFirstPageListener(this._firstPageListener),this._adapter.attachPreviousPageListener(this._previousPageListener),this._adapter.attachNextPageListener(this._nextPageListener),this._adapter.attachLastPageListener(this._lastPageListener)}_onFirstPage(t){if(t.stopPropagation(),!this._hasFirstPage())return;let e=0;this._dispatchChangeEvent("first-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPreviousPage(t){if(t.stopPropagation(),!this._hasPreviousPage())return;let e=this._pageIndex-1;this._dispatchChangeEvent("previous-page",{pageIndex:e})&&this._applyPageIndex(e)}_onNextPage(t){if(t.stopPropagation(),!this._hasNextPage())return;let e=this._pageIndex+1;this._dispatchChangeEvent("next-page",{pageIndex:e})&&this._applyPageIndex(e)}_onLastPage(t){if(t.stopPropagation(),!this._hasLastPage())return;let e=this._getMaxPages();this._dispatchChangeEvent("last-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPageSizeChanged(t){t.stopPropagation();let e=Number(t.detail);this._dispatchChangeEvent("page-size",{pageIndex:0,pageSize:e})?(this._applyPageIndex(0),this._applyPageSize(e)):t.preventDefault()}_dispatchChangeEvent(t,{pageSize:e=this._pageSize,pageIndex:a=this._pageIndex}={}){let o=a*e,n={type:t,pageSize:e,pageIndex:a,offset:o},i=new CustomEvent(Z.events.CHANGE,{detail:n,bubbles:!0,cancelable:!0});return this._adapter.dispatchHostEvent(i),!i.defaultPrevented}_getMaxPages(){return Math.ceil(this._total/this._pageSize)-1}_updateRangeLabel(){let t;if(typeof this._rangeLabelCallback=="function"){let e={pageSize:this._pageSize,pageIndex:this._pageIndex,offset:this._offset,pageStart:this._pageIndex*this._pageSize+1,pageEnd:Math.min((this._pageIndex+1)*this._pageSize,this._total),total:this._total};t=this._rangeLabelCallback.call(null,e)}else if(this.pageSize>1){let e=this._pageIndex*this._pageSize,o=(Math.floor(e/this._pageSize)||0)*this._pageSize+1,n=e<this._total?Math.min(e+this._pageSize,this._total):e+this._pageSize;t=`${o}-${n} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`}else t=`${this._pageIndex+1} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`;this._adapter.setRangeLabel(t)}_syncInteractionState(){if(this._disabled)return;this._adapter.setFirstPageButtonEnabled(!0),this._adapter.setPreviousPageButtonEnabled(!0),this._adapter.setNextPageButtonEnabled(!0),this._adapter.setLastPageButtonEnabled(!0);let t=[];this._hasFirstPage()||t.push("first"),this._hasPreviousPage()||t.push("previous"),this._hasNextPage()||t.push("next"),this._hasLastPage()||t.push("last"),this._adapter.tryDisableFields(t)}_toggleFirstLastButtons(){this._toggleFirstButton(),this._firstLast?this._adapter.hasLastPageButton()||this._adapter.showLastPageButton():this._adapter.hasLastPageButton()&&this._adapter.hideLastPageButton()}_toggleFirstButton(){this._first||this._firstLast?this._adapter.hasFirstPageButton()||this._adapter.showFirstPageButton():this._adapter.hasFirstPageButton()&&this._adapter.hideFirstPageButton()}_hasFirstPage(){return this._hasPreviousPage()}_hasPreviousPage(){return this._pageIndex>0&&this._pageSize>0}_hasNextPage(){let t=this._getMaxPages();return this._pageIndex<t&&this._pageSize>0}_hasLastPage(){return this._hasNextPage()}_computePageIndexFromOffset(t){t>=this._total&&(this._total>=this._pageSize?t=this._total-this._pageSize:t=0);let e=Math.min(Math.max(t,0),this._total),a=Math.floor(e/this._pageSize);this._applyPageIndex(a)}_computeOffset(){this._total>0&&(this._offset=this._pageIndex*this._pageSize)}_applyPageIndex(t){this._pageIndex=t,this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState(),this._adapter.toggleHostAttribute(Z.attributes.PAGE_INDEX,this._pageIndex!=null,this._pageIndex.toString())}_applyPageSize(t){this._pageSize=t,this._adapter.setPageSize(this._pageSize),this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState()}_applyTotal(t){this._total=t,this._updateRangeLabel(),this._offset>0&&this._total>0&&this._computePageIndexFromOffset(this._offset),this._syncInteractionState()}_applyDisabled(t){this._disabled=t,t?(this._adapter.setPageSizeSelectEnabled(!1),this._adapter.setFirstPageButtonEnabled(!1),this._adapter.setPreviousPageButtonEnabled(!1),this._adapter.setNextPageButtonEnabled(!1),this._adapter.setLastPageButtonEnabled(!1)):(this._adapter.setPageSizeSelectEnabled(!0),this._syncInteractionState())}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex!==t&&(O(t)?this._applyPageIndex(t):this._adapter.removeHostAttribute(Z.attributes.PAGE_INDEX))}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize!==t&&(this._applyPageSize(t),this._adapter.setHostAttribute(Z.attributes.PAGE_SIZE,`${this._pageSize}`))}get offset(){return this._offset}set offset(t){this._offset!==t&&(this._offset=t,this._computePageIndexFromOffset(t))}get total(){return this._total}set total(t){this._total!==t&&(this._applyTotal(t),this._adapter.setHostAttribute(Z.attributes.TOTAL,`${this._total}`))}get pageSizeOptions(){return this._pageSizeOptions.map(t=>Number(t.value))}set pageSizeOptions(t){if(s2(t)&&t.length){if(this._pageSizeOptions=t.map(e=>({label:e.toString(),value:e.toString()})).sort((e,a)=>$(e.value)-$(a.value)),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!0),O(this._pageSize)&&this._pageSizeOptions.length&&!this._pageSizeOptions.find(e=>$(e.value)===this._pageSize)){let e=$(this._pageSizeOptions[0].value);this._applyPageSize(e)}}else t!=null&&t.length||(this._adapter.detachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!1))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.setLabel(this._label),O(this._label)&&this._label.length?this._adapter.setHostAttribute(Z.attributes.LABEL,String(this._label)):this._adapter.removeHostAttribute(Z.attributes.LABEL))}get firstLast(){return this._firstLast}set firstLast(t){t=!!t,this._firstLast!==t&&(this._firstLast=t,this._toggleFirstLastButtons(),this._adapter.toggleHostAttribute(Z.attributes.FIRST_LAST,this._firstLast))}get first(){return this._first}set first(t){t=!!t,this._first!==t&&(this._first=t,this._toggleFirstButton(),this._adapter.toggleHostAttribute(Z.attributes.FIRST,this._first))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._applyDisabled(t),this._adapter.toggleHostAttribute(Z.attributes.DISABLED,this._disabled))}get alternative(){return this._alternative}set alternative(t){t=!!t,t!==this._alternative&&(this._alternative=t,this._adapter.toggleHostAttribute(Z.attributes.ALTERNATIVE,this._alternative))}get rangeLabelCallback(){return this._rangeLabelCallback}set rangeLabelCallback(t){this._rangeLabelCallback=t,this._updateRangeLabel()}};var el=class extends I{constructor(t){super(t),this._labelElement=w(t,Z.selectors.LABEL),this._pageSizeSelect=w(t,Z.selectors.PAGE_SIZE_SELECT),this._rangeLabel=w(t,Z.selectors.RANGE_LABEL),this._rangeLabelAlternative=w(t,Z.selectors.RANGE_LABEL_ALTERNATIVE),this._firstPageButton=w(t,Z.selectors.FIRST_PAGE_BUTTON),this._firstPageContainer=w(t,Z.selectors.FIRST_PAGE_CONTAINER),this._previousPageButton=w(t,Z.selectors.PREVIOUS_PAGE_BUTTON),this._previousPageContainer=w(t,Z.selectors.PREVIOUS_PAGE_CONTAINER),this._nextPageButton=w(t,Z.selectors.NEXT_PAGE_BUTTON),this._nextPageContainer=w(t,Z.selectors.NEXT_PAGE_CONTAINER),this._lastPageButton=w(t,Z.selectors.LAST_PAGE_BUTTON),this._lastPageContainer=w(t,Z.selectors.LAST_PAGE_CONTAINER)}setLabel(t){this._labelElement.textContent=t}setPageSizeOptions(t){rt(this._pageSizeSelect),this._pageSizeSelect.options=t}setPageSize(t){this._pageSizeSelect.value=t.toString()}setRangeLabel(t){this._rangeLabel.innerText=t,this._rangeLabelAlternative.innerText=t}hasFirstPageButton(){return!!w(this._component,Z.selectors.FIRST_PAGE_BUTTON)}showFirstPageButton(){this._firstPagePlaceholder=Ko(this._component,!0,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hideFirstPageButton(){this._firstPagePlaceholder=Ko(this._component,!1,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hasLastPageButton(){return!!w(this._component,Z.selectors.LAST_PAGE_BUTTON)}showLastPageButton(){this._lastPagePlaceholder=Ko(this._component,!0,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}hideLastPageButton(){this._lastPagePlaceholder=Ko(this._component,!1,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}attachPageSizeChangeListener(t){this._pageSizeSelect.addEventListener("change",t)}detachPageSizeChangeListener(t){this._pageSizeSelect.removeEventListener("change",t)}attachFirstPageListener(t){this._firstPageButton.addEventListener("click",t)}attachPreviousPageListener(t){this._previousPageButton.addEventListener("click",t)}attachNextPageListener(t){this._nextPageButton.addEventListener("click",t)}attachLastPageListener(t){this._lastPageButton.addEventListener("click",t)}setFirstPageButtonEnabled(t){this._firstPageButton.disabled=!t}setPreviousPageButtonEnabled(t){this._previousPageButton.disabled=!t}setNextPageButtonEnabled(t){this._nextPageButton.disabled=!t}setLastPageButtonEnabled(t){this._lastPageButton.disabled=!t}setPageSizeSelectEnabled(t){this._pageSizeSelect.disabled=!t}setPageSizeVisibility(t){this._pageSizeSelect.hidden=!t}setFocus(t){this._tryFocus([this._pageSizeSelect,this._firstPageButton,this._previousPageButton,this._nextPageButton,this._lastPageButton],t)}tryDisableFields(t){let e={first:()=>this.setFirstPageButtonEnabled(!1),last:()=>this.setLastPageButtonEnabled(!1),previous:()=>this.setPreviousPageButtonEnabled(!1),next:()=>this.setNextPageButtonEnabled(!1)};t.forEach(a=>{var o;return(o=e[a])==null?void 0:o.call(e)})}_tryFocus(t,e){let a=typeof(e==null?void 0:e.preventScroll)=="boolean"?e.preventScroll:!0;for(let o of t)if(o&&o.isConnected&&!o.disabled&&o.style.display!=="none"){o.focus(S(m({},e),{preventScroll:a}));return}}};function Fd(r){class t extends r{constructor(...a){super(...a)}initializeFieldInstance(a){this._fieldElement=a,this._fieldElement.shadowRoot||window.customElements.upgrade(this._fieldElement)}attributeChangedCallback(a,o,n){var i;switch(a){case Y.observedAttributes.LABEL_POSITION:this.labelPosition=n;return;case Y.observedAttributes.LABEL_ALIGNMENT:this.labelAlignment=n;return;case Y.observedAttributes.INVALID:this.invalid=p(n);return;case Y.observedAttributes.REQUIRED:this.required=p(n);return;case Y.observedAttributes.OPTIONAL:this.optional=p(n);return;case Y.observedAttributes.DISABLED:this.disabled=p(n);return;case Y.observedAttributes.FLOAT_LABEL:this.floatLabel=p(n);return;case Y.observedAttributes.VARIANT:this.variant=n;return;case Y.observedAttributes.THEME:this.theme=n;return;case Y.observedAttributes.SHAPE:this.shape=n;return;case Y.observedAttributes.DENSITY:this.density=n;return;case Y.observedAttributes.DENSE:this.dense=p(n);return;case Y.observedAttributes.POPOVER_ICON:this.popoverIcon=p(n);return;case Y.observedAttributes.SUPPORT_TEXT_INSET:this.supportTextInset=n;return}(i=super.attributeChangedCallback)==null||i.call(this,a,o,n)}get labelPosition(){return this._fieldElement.labelPosition}set labelPosition(a){this._fieldElement.labelPosition!==a&&(this._fieldElement.labelPosition=a,this.setAttribute(V.attributes.LABEL_POSITION,a))}get labelAlignment(){return this._fieldElement.labelAlignment}set labelAlignment(a){this._fieldElement.labelAlignment!==a&&(this._fieldElement.labelAlignment=a,this.setAttribute(V.attributes.LABEL_ALIGNMENT,a))}get invalid(){return this._fieldElement.invalid}set invalid(a){this._fieldElement.invalid!==a&&(this._fieldElement.invalid=a,this.toggleAttribute(V.attributes.INVALID,a))}get required(){return this._fieldElement.required}set required(a){this._fieldElement.required!==a&&(this._fieldElement.required=a,this.toggleAttribute(V.attributes.REQUIRED,a))}get optional(){return this._fieldElement.optional}set optional(a){this._fieldElement.optional!==a&&(this._fieldElement.optional=a,this.toggleAttribute(V.attributes.OPTIONAL,a))}get disabled(){return this._fieldElement.disabled}set disabled(a){this._fieldElement.disabled!==a&&(this._fieldElement.disabled=a,this.toggleAttribute(V.attributes.DISABLED,a))}get floatLabel(){return this._fieldElement.floatLabel}set floatLabel(a){this._fieldElement.floatLabel!==a&&(this._fieldElement.floatLabel=a,this.toggleAttribute(V.attributes.FLOAT_LABEL,a))}get variant(){return this._fieldElement.variant}set variant(a){this._fieldElement.variant!==a&&(this._fieldElement.variant=a,this.setAttribute(V.attributes.VARIANT,a))}get theme(){return this._fieldElement.theme}set theme(a){this._fieldElement.theme!==a&&(this._fieldElement.theme=a,this.setAttribute(V.attributes.THEME,a))}get shape(){return this._fieldElement.shape}set shape(a){this._fieldElement.shape!==a&&(this._fieldElement.shape=a,this.setAttribute(V.attributes.SHAPE,a))}get density(){return this._fieldElement.density}set density(a){this._fieldElement.density!==a&&(this._fieldElement.density=a,this.setAttribute(V.attributes.DENSITY,a))}get dense(){return this._fieldElement.dense}set dense(a){this._fieldElement.dense!==a&&(this._fieldElement.dense=a,this.toggleAttribute(V.attributes.DENSE,a))}get popoverIcon(){return this._fieldElement.popoverIcon}set popoverIcon(a){this._fieldElement.popoverIcon!==a&&(this._fieldElement.popoverIcon=a,this.toggleAttribute(V.attributes.POPOVER_ICON,a))}get supportTextInset(){return this._fieldElement.supportTextInset}set supportTextInset(a){this._fieldElement.supportTextInset!==a&&(this._fieldElement.supportTextInset=a,this.setAttribute(V.attributes.SUPPORT_TEXT_INSET,a))}floatLabelWithoutAnimation(a){this._fieldElement.floatLabelWithoutAnimation(a)}}return t}var Cf=`${x}scaffold`,Ud={VIEWPORT:"viewport"},zf=m({},Ud),ko={elementName:Cf,observedAttributes:Ud,attributes:zf};var Af='<template><div class="forge-scaffold" part="root"><slot name="left"></slot><div class="header" part="header"><slot name="header"></slot></div><div class="body" part="body"><slot name="body-left"></slot><slot name="body-header"></slot><slot name="body"></slot><slot name="body-footer"></slot><slot name="body-right"></slot></div><slot name="footer"></slot><slot name="right"></slot></div></template>',Bf=':host{--_scaffold-height:var(--forge-scaffold-height, 100%);--_scaffold-width:var(--forge-scaffold-width, 100%)}:host{display:block;width:var(--_scaffold-width);height:var(--_scaffold-height)}:host([hidden]){display:none}.forge-scaffold{--_scaffold-overflow:var(--forge-scaffold-overflow, initial);--_scaffold-body-position:var(--forge-scaffold-body-position, relative)}.forge-scaffold{position:relative;display:grid;grid-template-areas:"left header right" "left body right" "left footer right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;height:var(--_scaffold-height);width:var(--_scaffold-width);overflow:var(--_scaffold-overflow)}.header{grid-area:header;min-width:0;min-height:0}.body{position:var(--_scaffold-body-position);display:grid;grid-area:body;grid-template-areas:"body-left body-header body-right" "body-left body-inner body-right" "body-left body-footer body-right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;width:var(--_scaffold-width);min-width:0;min-height:0;overflow:var(--_scaffold-overflow)}::slotted(*){min-width:0;min-height:0}::slotted([slot=left]){grid-area:left}::slotted([slot=right]){grid-area:right}::slotted([slot=body-left]){grid-area:body-left}::slotted([slot=body-right]){grid-area:body-right}::slotted([slot=body-header]){grid-area:body-header}::slotted([slot=body]){overflow:auto;grid-area:body-inner}::slotted([slot=body-footer]){grid-area:body-footer}::slotted([slot=footer]){grid-area:footer}::slotted([slot=body-left]),::slotted([slot=body-right]),::slotted([slot=body]),::slotted([slot=left]),::slotted([slot=right]){overflow:auto}:host([viewport]){--_scaffold-height:var(--forge-scaffold-height, 100dvh);--_scaffold-width:var(--forge-scaffold-width, 100dvw)}',Xe=class extends H{static get observedAttributes(){return Object.values(ko.observedAttributes)}constructor(){super(),L(this,Af,Bf)}attributeChangedCallback(t,e,a){switch(t){case ko.observedAttributes.VIEWPORT:this.viewport=a!==null;break}}get viewport(){return this.hasAttribute(ko.attributes.VIEWPORT)}set viewport(t){this.toggleAttribute(ko.attributes.VIEWPORT,!!t)}};Xe=s([y({name:ko.elementName})],Xe);function Wd(){b(Xe)}var al=class extends I{constructor(t){super(t)}};var Gd=`${x}option`,Tf={DISABLED:"disabled",DIVIDER:"divider",LABEL:"label",SECONDARY_LABEL:"secondary-label",LEADING_ICON_CLASS:"leading-icon-class",LEADING_ICON_TYPE:"leading-icon-type",LEADING_ICON:"leading-icon",OPTION_CLASS:"option-class",TRAILING_ICON_CLASS:"trailing-icon-class",TRAILING_ICON_TYPE:"trailing-icon-type",TRAILING_ICON:"trailing-icon",TOOLTIP:"tooltip",VALUE:"value"},Sf={VALUE_CHANGE:`${Gd}-value-change`},R={elementName:Gd,attributes:Tf,events:Sf};var ol=class{constructor(t){this._adapter=t;this._disabled=!1;this._divider=!1;this._optionClass=[]}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.emitHostEvent(R.events.VALUE_CHANGE,this._value))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.toggleHostAttribute(R.attributes.LABEL,!!this._label,this._label))}get secondaryLabel(){return this._secondaryLabel}set secondaryLabel(t){this._secondaryLabel!==t&&(this._secondaryLabel=t,this._adapter.toggleHostAttribute(R.attributes.SECONDARY_LABEL,!!this._secondaryLabel,this._secondaryLabel))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.toggleHostAttribute(R.attributes.DISABLED,this._disabled))}get divider(){return this._divider}set divider(t){this._divider!==t&&(this._divider=t,this._adapter.toggleHostAttribute(R.attributes.DIVIDER,this._divider))}get optionClass(){return this._optionClass}set optionClass(t){t?typeof t=="string"&&(t=t.split(" ")):t=[],t=t.filter(e=>e&&!/\s+/.test(e)),this._optionClass.toString()!==t.toString()&&(this._optionClass=t,this._adapter.toggleHostAttribute(R.attributes.OPTION_CLASS,this._optionClass&&!!this._optionClass.length,this._optionClass.join(" ")))}get leadingIcon(){return this._leadingIcon}set leadingIcon(t){this._leadingIcon!==t&&(this._leadingIcon=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON,!!this._leadingIcon,this._leadingIcon))}get leadingIconClass(){return this._leadingIconClass}set leadingIconClass(t){this._leadingIconClass!==t&&(this._leadingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_CLASS,!!this._leadingIconClass,this._leadingIconClass))}get leadingIconType(){return this._leadingIconType}set leadingIconType(t){this._leadingIconType!==t&&(this._leadingIconType=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_TYPE,!!this._leadingIconType,this._leadingIconType))}get leadingIconComponentProps(){return this._leadingIconComponentProps}set leadingIconComponentProps(t){this._leadingIconComponentProps!==t&&(this._leadingIconComponentProps=t)}get trailingIcon(){return this._trailingIcon}set trailingIcon(t){this._trailingIcon!==t&&(this._trailingIcon=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON,!!this._trailingIcon,this._trailingIcon))}get trailingIconClass(){return this._trailingIconClass}set trailingIconClass(t){this._trailingIconClass!==t&&(this._trailingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_CLASS,!!this._trailingIconClass,this._trailingIconClass))}get trailingIconType(){return this._trailingIconType}set trailingIconType(t){this._trailingIconType!==t&&(this._trailingIconType=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_TYPE,!!this._trailingIconType,this._trailingIconType))}get trailingIconComponentProps(){return this._trailingIconComponentProps}set trailingIconComponentProps(t){this._trailingIconComponentProps!==t&&(this._trailingIconComponentProps=t)}get leadingBuilder(){return this._leadingBuilder}set leadingBuilder(t){this._leadingBuilder!==t&&(this._leadingBuilder=t)}get trailingBuilder(){return this._trailingBuilder}set trailingBuilder(t){this._trailingBuilder!==t&&(this._trailingBuilder=t)}get tooltip(){return this._tooltip}set tooltip(t){this._tooltip!==t&&(this._tooltip=t)}};var $1=class extends H{static get observedAttributes(){return[R.attributes.VALUE,R.attributes.LABEL,R.attributes.SECONDARY_LABEL,R.attributes.DISABLED,R.attributes.DIVIDER,R.attributes.OPTION_CLASS,R.attributes.LEADING_ICON,R.attributes.LEADING_ICON_CLASS,R.attributes.LEADING_ICON_TYPE,R.attributes.TRAILING_ICON,R.attributes.TRAILING_ICON_CLASS,R.attributes.TRAILING_ICON_TYPE,R.attributes.TOOLTIP]}constructor(){super(),this._core=new ol(new al(this))}attributeChangedCallback(t,e,a){switch(t){case R.attributes.VALUE:this.value=a;break;case R.attributes.LABEL:this.label=a;break;case R.attributes.SECONDARY_LABEL:this.secondaryLabel=a;break;case R.attributes.DISABLED:this.disabled=p(a);break;case R.attributes.DIVIDER:this.divider=this.hasAttribute(R.attributes.DIVIDER);break;case R.attributes.OPTION_CLASS:this.optionClass=a;break;case R.attributes.LEADING_ICON:this.leadingIcon=a;break;case R.attributes.LEADING_ICON_CLASS:this.leadingIconClass=a;break;case R.attributes.LEADING_ICON_TYPE:this.leadingIconType=a;break;case R.attributes.TRAILING_ICON:this.trailingIcon=a;break;case R.attributes.TRAILING_ICON_CLASS:this.trailingIconClass=a;break;case R.attributes.TRAILING_ICON_TYPE:this.trailingIconType=a;break;case R.attributes.TOOLTIP:this.tooltip=a?{text:a}:void 0;break}}};s([v()],$1.prototype,"value",2),s([v()],$1.prototype,"label",2),s([v()],$1.prototype,"secondaryLabel",2),s([v()],$1.prototype,"disabled",2),s([v()],$1.prototype,"divider",2),s([v()],$1.prototype,"optionClass",2),s([v()],$1.prototype,"leadingIcon",2),s([v()],$1.prototype,"leadingIconClass",2),s([v()],$1.prototype,"leadingIconType",2),s([v()],$1.prototype,"leadingIconComponentProps",2),s([v()],$1.prototype,"trailingIcon",2),s([v()],$1.prototype,"trailingIconClass",2),s([v()],$1.prototype,"trailingIconType",2),s([v()],$1.prototype,"trailingIconComponentProps",2),s([v()],$1.prototype,"leadingBuilder",2),s([v()],$1.prototype,"trailingBuilder",2),s([v()],$1.prototype,"tooltip",2),$1=s([y({name:R.elementName})],$1);function Yd(){b($1)}var kf=`${x}option-group`,Of={LABEL:"label"},sa={elementName:kf,attributes:Of};var je=class extends H{static get observedAttributes(){return[sa.attributes.LABEL]}constructor(){super()}attributeChangedCallback(t,e,a){switch(t){case sa.attributes.LABEL:this.label=a;break}}get label(){return this._label}set label(t){this._label!==t&&(this._label=t||"",this.setAttribute(sa.attributes.LABEL,this._label))}get text(){return this._label}set text(t){this.label=t}};je=s([y({name:sa.elementName})],je);function Kd(){b(je)}var qd=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(qd||{});function p5(r,t){let e=r.some(o=>d5(o)),a=r.some(o=>Df(o));return e&&t===1||a&&t===0}function d5(r){return O(r)&&l2(r)&&r.hasOwnProperty("options")}function Df(r){return O(r)&&l2(r)&&r.hasOwnProperty("label")&&r.hasOwnProperty("value")}var Oo=class extends I{constructor(t){super(t)}get popupElement(){var t;return(t=this._listDropdown)==null?void 0:t.dropdownElement}getOptions(){let t=Array.from(this._component.querySelectorAll(sa.elementName));if(t.length)return t.map(e=>{let a=Array.from(e.querySelectorAll(R.elementName)),o=this._createOptionsFromElements(a);return{text:e.label,builder:e.builder,value:e.value,options:o}});{let e=Array.from(this._component.querySelectorAll(R.elementName));return this._createOptionsFromElements(e)}}_createOptionsFromElements(t){return t.map(e=>{let a=e.hasAttribute(R.attributes.OPTION_CLASS)?e.getAttribute(R.attributes.OPTION_CLASS):e.optionClass;return typeof a=="string"&&(a=a.split(" ")),{label:e.hasAttribute(R.attributes.LABEL)?e.getAttribute(R.attributes.LABEL):O(e.label)?e.label:e.innerText,secondaryLabel:e.hasAttribute(R.attributes.SECONDARY_LABEL)?e.getAttribute(R.attributes.SECONDARY_LABEL):O(e.secondaryLabel)?e.secondaryLabel:void 0,value:e.hasAttribute(R.attributes.VALUE)?e.getAttribute(R.attributes.VALUE):e.value,disabled:e.hasAttribute(R.attributes.DISABLED),divider:e.hasAttribute(R.attributes.DIVIDER),optionClass:a,leadingIcon:e.hasAttribute(R.attributes.LEADING_ICON)?e.getAttribute(R.attributes.LEADING_ICON):e.leadingIcon,leadingIconClass:e.hasAttribute(R.attributes.LEADING_ICON_CLASS)?e.getAttribute(R.attributes.LEADING_ICON_CLASS):e.leadingIconClass,leadingIconType:e.hasAttribute(R.attributes.LEADING_ICON_TYPE)?e.getAttribute(R.attributes.LEADING_ICON_TYPE):e.leadingIconType,leadingIconComponentProps:e.leadingIconComponentProps,trailingIcon:e.hasAttribute(R.attributes.TRAILING_ICON)?e.getAttribute(R.attributes.TRAILING_ICON):e.trailingIcon,trailingIconClass:e.hasAttribute(R.attributes.TRAILING_ICON_CLASS)?e.getAttribute(R.attributes.TRAILING_ICON_CLASS):e.trailingIconClass,trailingIconType:e.hasAttribute(R.attributes.TRAILING_ICON_TYPE)?e.getAttribute(R.attributes.TRAILING_ICON_TYPE):e.trailingIconType,trailingIconComponentProps:e.trailingIconComponentProps,leadingBuilder:e.leadingBuilder,trailingBuilder:e.trailingBuilder,tooltip:e.tooltip}})}open(t){var e;if(this._listDropdown=new Re(this._targetElement,t),this._listDropdown.open(),this._component.id){let a=(e=this._listDropdown.dropdownElement)==null?void 0:e.querySelector("forge-list");a==null||a.setAttribute("aria-labelledby",this._component.id)}}async close(){this._listDropdown&&(await this._listDropdown.close(),this.destroyListDropdown())}destroyListDropdown(){var t;(t=this._listDropdown)==null||t.destroy(),this._listDropdown=void 0}setDismissListener(t){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(J.events.TOGGLE,t)}toggleOptionMultiple(t,e){var a;(a=this._listDropdown)==null||a.toggleOptionMultiple(t,e)}getActiveOptionIndex(){var t,e;return(e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1}activateSelectedOption(){var t;(t=this._listDropdown)==null||t.activateSelectedOption()}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}highlightActiveOption(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}patchSelectedValues(t){var e;(e=this._listDropdown)==null||e.setSelectedValues(t)}setOptionsListener(t){let e=o=>{o.stopPropagation(),t(this.getOptions())};this._component.addEventListener(R.events.VALUE_CHANGE,e);let a=new MutationObserver(()=>t(this.getOptions()));return a.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(R.events.VALUE_CHANGE,e),a.disconnect()}}setOptions(t,e=!0){e&&this._clearOptions();for(let a of t)if(d5(a)){let o=this._createOptionGroupElement(a);for(let n of a.options){let i=this._createOptionElement(n);o.appendChild(i)}this._component.appendChild(o)}else{let o=this._createOptionElement(a);this._component.appendChild(o)}}appendDropdownOptions(t){var e;(e=this._listDropdown)==null||e.appendOptions(t)}setDropdownOptions(t){var e;(e=this._listDropdown)==null||e.setOptions(t)}scrollSelectedOptionIntoView(){var t;(t=this._listDropdown)==null||t.scrollSelectedOptionIntoView()}isFocusWithinPopup(t){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(t)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let t=this.popupElement;t==null||t.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(sa.elementName)).forEach(a=>Oe(a)),Array.from(this._component.querySelectorAll(R.elementName)).forEach(a=>Oe(a))}_createOptionGroupElement(t){let e=document.createElement("forge-option-group");return Object.assign(e,t),e}_createOptionElement(t){let e=document.createElement("forge-option");return Object.assign(e,t),e.textContent=t.label,t.elementAttributes&&t.elementAttributes.forEach((a,o)=>{e.setAttribute(o,a)}),e}};var $d={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},Pf=m({},$d),Nf={CHANGE:"change"},H2={observedAttributes:$d,attributes:Pf,events:Nf};var Do=class extends X0{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=a=>this._onFocus(a),this._blurListener=a=>this._onBlur(a),this._clickListener=a=>this._onClick(a),this._keydownListener=a=>this._onKeydown(a),this._optionsChangedListener=a=>this._onOptionsChanged(a),this._activeChangeListener=a=>this._onActiveOptionChanged(a),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=Vt()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._optionListenerDestructor&&this._optionListenerDestructor(),this._open=!1,this._adapter.destroyListDropdown()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return p5(this._options,1)?[].concat.apply([],this._options.map(e=>e.options)):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();O(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,referenceElement:this._adapter.hostElement,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:a=>{let o=this._flatOptions,n=o.find(i=>i.value===a);if(n){let i=o.indexOf(n);this._onSelect(n,i,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,a,o=!0){return new Promise(async n=>{if(this._valueChanging)return Promise.resolve(!1);let i=e?e.value:"",l=e?e.label:"",h=[...this._value],c=[...this._selectedValues],d=[...this._selectedLabels],u=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(i)){let q=this._selectedValues.indexOf(i);this._selectedValues.splice(q,1),this._selectedLabels.splice(q,1),this._selectedIndexes.splice(q,1)}else this._selectedValues.push(i),this._selectedLabels.push(l),this._selectedIndexes.push(a);else O(i)?(this._selectedValues[0]=i,this._selectedLabels[0]=l,this._selectedIndexes[0]=a):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let M=()=>{this._selectedValues=[...c],this._selectedLabels=[...d],this._selectedIndexes=[...u],this._value=[...h]},f=()=>{if(this._multiple){let q=this._selectedIndexes.includes(a);this._adapter.toggleOptionMultiple(a,q)}this._applySelection()},C=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&o&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,C));let q=await this._valueChanging;if(this._valueChanging=void 0,!q)return M(),this._tryUpdateDropdownPosition(),n(!1)}let A=!this._adapter.emitHostEvent(H2.events.CHANGE,C,!0,!0);A?M():f(),this._tryUpdateDropdownPosition(),n(!A)})}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let a of e){this._value.includes(a)||this._value.push(a);let o=this._flatOptions.find(n=>F2(n.value,a));o&&(this._selectedValues.push(o.value),this._selectedLabels.push(o.label))}this._selectedIndexes=this._selectedValues.map(a=>this._flatOptions.findIndex(o=>o.value===a)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(a=>this._selectedValues.includes(a.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let a=e.key==="Escape"||e.keyCode===27,o=e.key==="Enter"||e.keyCode===13,n=e.key==="Space"||e.keyCode===32,i=e.key==="ArrowDown"||e.keyCode===40,l=e.key==="ArrowUp"||e.keyCode===38,h=e.keyCode>=48&&e.keyCode<=90,c=e.key==="Home"||e.keyCode===36,d=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!h&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),a&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(n)e.preventDefault(),e.stopPropagation(),this._open?this._closeDropdown():this._openDropdown();else if(o)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(l||i){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let M=0;this._open?(M=this._adapter.getActiveOptionIndex(),M===-1&&(M=this._getFirstSelectedOptionIndex())):M=this._getFirstSelectedOptionIndex(),l?M=this._getPreviousHighlightableOptionIndex(M,this._nonDividerOptions):M=this._getNextHighlightableOptionIndex(M,this._nonDividerOptions),this._adapter.highlightActiveOption(M)}else if(c)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(M=>!M.disabled)));else if(d){if(this._open){e.preventDefault();let M=this._nonDividerOptions;for(let f=M.length-1;f>=0;f--)if(!M[f].disabled){this._adapter.highlightActiveOption(f);break}}}else h&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,a){let o=e;return o<=0?o=a.length-1:o--,a[o].disabled?this._getPreviousHighlightableOptionIndex(o,a):o}_getNextHighlightableOptionIndex(e,a){let o=e;return o===a.length-1?o=0:o++,a[o].disabled?this._getNextHighlightableOptionIndex(o,a):o}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let a=this._flatOptions.find(({disabled:o,label:n})=>!o&&n.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(a){let o=this._flatOptions.indexOf(a);this._open?this._adapter.highlightActiveOption(o):this._multiple||this._onSelect(a,o,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let a;Array.isArray(e)?a=[...e]:a=e,this._applyValue(a)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let a;if(Array.isArray(e)?a=[...e]:a=[e],a.sort(),this.multiple)this.value=a.map(o=>this._flatOptions[o]).filter(o=>o).map(o=>o.value);else{let o=this._flatOptions[a[a.length-1]];if(!o)return;this.value=o.value}}get options(){return this._adapter.getOptions()}set options(e){let a;p5(e,1)?a=e.map(o=>m({},o)):a=e.map(o=>m({},o)),this._options=a,this._adapter.setOptions(a),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(a)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown())}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var L2=class extends Gt{constructor(){super()}attributeChangedCallback(t,e,a){switch(super.attributeChangedCallback(t,e,a),t){case H2.attributes.MULTIPLE:this.multiple=p(a);break;case H2.attributes.VALUE:this.value=a;break}}appendOptions(t){this._core.appendOptions(t)}selectAll(){this._core.selectAll()}deselectAll(){this._core.deselectAll()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};s([v()],L2.prototype,"value",2),s([v()],L2.prototype,"selectedIndex",2),s([v()],L2.prototype,"options",2),s([v()],L2.prototype,"multiple",2),s([v()],L2.prototype,"open",2),s([v()],L2.prototype,"optionBuilder",2),s([v()],L2.prototype,"selectedTextBuilder",2),s([v()],L2.prototype,"beforeValueChange",2),s([v({set:!1})],L2.prototype,"popupElement",2);var Xd=`${x}select`,Rf={FIELD:"#field",SELECTED_TEXT:"#selected-text",LABEL:"#select-label"},jd={OPEN:"open",TYPE:"type",VALUE:"value",LABEL:"label",MULTIPLE:"multiple",DISABLED:"disabled",PLACEHOLDER:"placeholder",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},Ff=m({},jd),Uf={SCROLLED_BOTTOM:`${Xd}-scrolled-bottom`},$t={elementName:Xd,observedAttributes:jd,attributes:Ff,selectors:Rf,events:Uf};var rl=class extends Oo{constructor(t){super(t),this._fieldElement=w(t,$t.selectors.FIELD),this._labelElement=w(t,$t.selectors.LABEL),this._selectedTextElement=w(t,$t.selectors.SELECTED_TEXT),this._fieldElement.setAttribute("exportparts",Object.values(V.parts).join(", ")),this._fieldElement.focusIndicatorTargetElement=this._component}get fieldElement(){return this._fieldElement}initializeAccessibility(){this._component.setAttribute("role","combobox"),this._component.setAttribute("aria-haspopup","true"),this._component.setAttribute("aria-expanded","false"),Ne(),G2(this._component),this.fieldElement.required&&this.setHostAttribute("aria-required","true"),this.fieldElement.disabled&&this.setHostAttribute("aria-disabled","true"),this.fieldElement.invalid&&this.setHostAttribute("aria-invalid","true"),this._component[nt]=!this._component.disabled}setLabel(t){let a=!(this._fieldElement.labelPosition==="inset"&&(this._fieldElement.density==="extra-small"||this._fieldElement.dense))&&!!(t!=null&&t.trim());(!this._component.hasAttribute("aria-label")||this._component.getAttribute("aria-label")===this._labelElement.textContent)&&this._component.setAttribute("aria-label",t),a?(this._labelElement.isConnected||this._fieldElement.insertAdjacentElement("afterbegin",this._labelElement),this._labelElement.textContent=t):this._labelElement.remove()}setPlaceholderText(t){W(this._selectedTextElement,!!(t!=null&&t.trim()),"placeholder",t)}open(t){this._targetElement||(this._targetElement=w(this._fieldElement,V.selectors.POPOVER_TARGET)),super.open(t),this._component.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._component.setAttribute("aria-expanded","true"),this._fieldElement.popoverExpanded=!0}close(){return this._component.setAttribute("aria-expanded","false"),this._component.removeAttribute("aria-activedescendant"),G2(this._component),this._fieldElement.popoverExpanded=!1,super.close()}floatLabel(t){this._fieldElement.floatLabel=t}updateActiveDescendant(t){W(this._component,!!t,"aria-activedescendant",t)}setSelectedText(t){this._selectedTextElement.textContent=t}setDisabled(t){this._component[nt]=!t,W(this._component,t,"aria-disabled","true")}setRequired(){this._component[b2]()}addClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}addTargetListener(t,e){this._component.addEventListener(t,e)}removeTargetListener(t,e){this._component.removeEventListener(t,e)}syncValue(t){let a=(Array.isArray(t)?!t.length||!t.some(n=>n!=null):t==null)?null:new FormData,o=JSON.stringify(t);a&&t&&a.append(this._component.name,o),this._component.setFormValue(a,o),this._component[b2]()}};var nl=class extends Do{constructor(e){super(e);this._label="";this._required=!1;this._permanentlyFloatLabel=!1;this._mousedownListener=this._onMouseDown.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["labelPosition","variant"]),super.initialize(),super.initializeTarget(),this._initializeLabel(),this._initializeAccessibility(),this._adapter.addTargetListener("mousedown",this._mousedownListener)}destroy(){super.destroy(),this._adapter.removeTargetListener("mousedown",this._mousedownListener)}syncFloatingLabelState({force:e}={}){e!==void 0&&(this._permanentlyFloatLabel=e),this._updateLabel(),this._tryFloatLabel()}setDisabled(e){this._adapter.setDisabled(e)}_initializeLabel(){this._updateLabel(),this._tryFloatLabel()}_initializeValue(){super._initializeValue(),this._tryFloatLabel()}_initializeAccessibility(){this._adapter.initializeAccessibility()}_onMouseDown(e){e.preventDefault()}_onClick(e){this._adapter.fieldElement.disabled||e.composedPath().find(o=>{var n;return(n=o.matches)==null?void 0:n.call(o,"slot[name=accessory]")})||(this._adapter.focusHost(),super._onClick(e))}_openDropdown(){super._openDropdown(),this._open&&this._adapter.toggleHostAttribute($t.attributes.OPEN,!0)}_closeDropdown(){super._closeDropdown(),this._open||this._adapter.toggleHostAttribute($t.attributes.OPEN,!1)}_onDismiss(){super._onDismiss()}_onDropdownScrollEnd(){this._adapter.emitHostEvent($t.events.SCROLLED_BOTTOM)}async _onSelect(e,a,o=!0){let n=await super._onSelect(e,a,o);return n&&(this._adapter.setSelectedText(this._getSelectedText()),o&&!this._multiple&&this._adapter.focusHost()),this._tryFloatLabel(),this._adapter.syncValue(this._value),n}_reset(){super._reset(),this._adapter.setSelectedText(""),this._tryFloatLabel()}_tryFloatLabel(){if(this._permanentlyFloatLabel){this._adapter.floatLabel(!0);return}let e=!!this._getSelectedText()||!!this._selectedValues.length,a=!!this._placeholder;this._adapter.floatLabel(e||a)}_updateLabel(){this._adapter.setLabel(this._label)}_applyValue(e){super._applyValue(e),this._adapter.syncValue(this._value);let a=this._getSelectedText();this._adapter.setSelectedText(a),this._tryFloatLabel()}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._updateLabel(),this._label&&this._initializeLabel(),this._adapter.toggleHostAttribute($t.attributes.LABEL,!!this._label,this._label))}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder!==e&&(this._placeholder=e,this._adapter.setPlaceholderText(this._placeholder),this._initializeLabel())}get multiple(){return super.multiple}set multiple(e){this._multiple!==e&&(super.multiple=e,this._adapter.toggleHostAttribute($t.attributes.MULTIPLE,e))}set required(e){this._required!==e&&this._adapter.setRequired()}};var Wf='<template><forge-field id="field" popover-icon focus-indicator-allow-focus focus-indicator-focus-mode="focus"><label id="select-label" aria-hidden="true" part="label" slot="label"></label><slot slot="start" name="start"></slot><div data-forge-field-input class="selected-text-container" part="text-container" aria-live="assertive" aria-atomic="true"><slot name="value"><span id="selected-text" class="selected-text" part="text"></span></slot></div><slot slot="end" name="end"></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text" name="support-text"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text" name="helper-text"></slot></forge-field></template>',Gf=":host{display:block;outline:0}:host([hidden]){display:none}forge-field{--_select-placeholder-color:var(--forge-select-placeholder-color, var(--forge-field-placeholder-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6))))}.selected-text-container{display:grid;align-items:center;cursor:pointer}.selected-text,::slotted([slot=value]){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selected-text:empty::before{content:attr(placeholder);color:var(--_select-placeholder-color);font-size:inherit}:host([disabled]) .selected-text-container{cursor:not-allowed}forge-field{display:contents}",Ve=class extends We(h2(Ue(V1(I1(Fd(L2)))))){static get observedAttributes(){return[...Object.values(Y.observedAttributes),...Object.values($t.observedAttributes),...Object.values(H2.observedAttributes)]}constructor(){var e;super(),j.define([z0,C0]),L(this,Wf,Gf);let t=(e=this.shadowRoot)==null?void 0:e.querySelector(V.elementName);this.initializeFieldInstance(t),this[J2]="select",this._core=new nl(new rl(this))}connectedCallback(){super.connectedCallback(),this[N]({role:"combobox",ariaDisabled:this.disabled?"true":"false",ariaRequired:this.required?"true":"false"})}attributeChangedCallback(t,e,a){switch(t){case $t.observedAttributes.OPEN:this.open=p(a);return;case $t.observedAttributes.LABEL:this.label=a;return;case $t.observedAttributes.PLACEHOLDER:this.placeholder=a;return}super.attributeChangedCallback(t,e,a)}[E2](){return this.value}[b2](){this[r1].setValidity({valueMissing:this.required&&!this.value},this[Q2]({required:this.required,value:this.value}))}formResetCallback(){this.value=null}formStateRestoreCallback(t){this.value=JSON.parse(t)}labelClickedCallback(){this.click(),this.focus()}labelChangedCallback(t){this[N]({ariaLabel:t})}setFormValue(t,e){this[r1].setFormValue(t,e)}get floatLabel(){return super.floatLabel}set floatLabel(t){this._core.syncFloatingLabelState({force:t})}get density(){return super.density}set density(t){super.density=t,this._core.syncFloatingLabelState()}get dense(){return super.dense}set dense(t){super.dense=t,this._core.syncFloatingLabelState()}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this._core.setDisabled(t)}get required(){return super.required}set required(t){super.required=t,this._core.required=t}get labelPosition(){return super.labelPosition}set labelPosition(t){super.labelPosition=t,this._core.syncFloatingLabelState()}};s([v()],Ve.prototype,"label",2),s([v()],Ve.prototype,"placeholder",2),s([v()],Ve.prototype,"readonly",2),Ve=s([y({name:$t.elementName,dependencies:[N1,$1,je,F1,ct,Z1,O2,Q,Xe,se,s1]})],Ve);function Zd(){b(Ve)}var Yf='<template><div class="forge-paginator" part="root" forge-popover-host><div class="container" part="container"><div class="label" part="label" id="label"><slot name="label"></slot></div><forge-select class="page-size-options" aria-labelledby="label" label-position="none" density="extra-small" part="page-size-options"></forge-select><div class="range-label" part="range-label"><slot name="range-label"></slot></div></div><div class="actions" part="actions"><div id="first-page-container"><forge-icon-button class="first-page" part="first-page-button" part="first-page-button-element"><forge-icon name="first_page" part="first-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="first-page-tooltip">Go to the first page</slot></forge-tooltip></div><div id="previous-page-container"><forge-icon-button class="previous-page" part="previous-page-button" part="previous-page-button-element"><forge-icon name="keyboard_arrow_left" part="previous-page-button-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="previous-page-tooltip">Go to the previous page</slot></forge-tooltip></div><div class="alternative-range-label" part="alternative-range-label"><slot name="alternative-range-label"></slot></div><div id="next-page-container"><forge-icon-button class="next-page" part="next-page-button" part="next-page-button-element"><forge-icon name="keyboard_arrow_right" part="next-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="next-page-tooltip">Go to the next page</slot></forge-tooltip></div><div id="last-page-container"><forge-icon-button class="last-page" part="last-page-button" part="last-page-button-element"><forge-icon name="last_page" part="last-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="last-page-tooltip">Go to the last page</slot></forge-tooltip></div></div></div></template>',Kf=':host{display:block}:host([hidden]){display:none}.forge-paginator{display:flex;gap:var(--forge-spacing-xsmall,8px)}.container{display:flex;gap:var(--forge-spacing-medium,16px);align-items:center}.alternative-range-label,.label,.range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.actions{display:flex;align-items:center}.alternative-range-label{display:none}:host([alternative]) .alternative-range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);display:inline-block}:host([alternative]) .container{display:none}:host([alternative]) .actions{width:100%;justify-content:var(--forge-paginator-alternative-alignment,start)}',n2=class extends H{static get observedAttributes(){return Object.values(Z.observedAttributes)}constructor(){super(),j.define([p3,s0,ue,g3]),L(this,Yf,Kf),this._core=new tl(new el(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){var o,n,i,l;switch(t){case Z.observedAttributes.PAGE_INDEX:this.pageIndex=(o=$(a))!=null?o:Z.numbers.DEFAULT_PAGE_INDEX;break;case Z.observedAttributes.PAGE_SIZE:this.pageSize=(n=$(a))!=null?n:Z.numbers.DEFAULT_PAGE_SIZE;break;case Z.observedAttributes.OFFSET:this.offset=$(a);break;case Z.observedAttributes.TOTAL:this.total=(i=$(a))!=null?i:Z.numbers.DEFAULT_TOTAL;break;case Z.observedAttributes.PAGE_SIZE_OPTIONS:this.pageSizeOptions=(l=Or(a))!=null?l:Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS;break;case Z.observedAttributes.LABEL:this.label=a;break;case Z.observedAttributes.FIRST_LAST:this.firstLast=p(a);break;case Z.observedAttributes.FIRST:this.first=p(a);break;case Z.observedAttributes.DISABLED:this.disabled=p(a);break;case Z.observedAttributes.ALTERNATIVE:this.alternative=p(a);break}}focus(t){this._core.focus(t)}};s([v()],n2.prototype,"pageIndex",2),s([v()],n2.prototype,"pageSize",2),s([v()],n2.prototype,"offset",2),s([v()],n2.prototype,"total",2),s([v()],n2.prototype,"pageSizeOptions",2),s([v()],n2.prototype,"label",2),s([v()],n2.prototype,"firstLast",2),s([v()],n2.prototype,"first",2),s([v()],n2.prototype,"disabled",2),s([v()],n2.prototype,"alternative",2),s([v()],n2.prototype,"rangeLabelCallback",2),n2=s([y({name:Z.elementName,dependencies:[s1,Ve,d1]})],n2);function Qd(){b(n2)}var Jd=`${x}select-dropdown`,qf={TARGET:"target",SELECTED_TEXT_TARGET:"selected-text-target",SYNC_SELECTED_TEXT:"sync-selected-text"},$f=m({},qf),Xf={SCROLLED_BOTTOM:`${Jd}-scrolled-bottom`},Ze={elementName:Jd,attributes:$f,events:Xf};var il=class extends Do{constructor(e){super(e);this._syncSelectedText=!1;this._originalTargetText="";this._targetDisconnectedListener=()=>this._onTargetDisconnected()}initialize(){this._tryAttach(),super.initialize()}destroy(){super.destroy(),this._adapter.isAttached()&&this._detach()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(Ze.events.SCROLLED_BOTTOM)}_applyValue(e){super._applyValue(e),this._applySelection()}_applySelection(){if(super._applySelection(),this._syncSelectedText||typeof this._selectedTextBuilder=="function"){let e=this._getSelectedText();e||(e=this._originalTargetText),this._adapter.setTargetText(e||"",this._selectedTextTarget)}}_tryAttach(){this._adapter.attach(this._target),this._adapter.isAttached()&&(this._targetDisconnectedDestructor=this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener),this._originalTargetText=this._adapter.getTargetText(this._selectedTextTarget),this.initializeTarget())}_detach(){this._adapter.detach(),this._targetDisconnectedDestructor&&(this._targetDisconnectedDestructor(),this._targetDisconnectedDestructor=void 0)}_onTargetDisconnected(){this._adapter.detach()}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this._adapter.isAttached()&&this._detach(),this._tryAttach())}get selectedTextTarget(){return this._selectedTextTarget}set selectedTextTarget(e){this._selectedTextTarget!==e&&(this._selectedTextTarget=e)}get syncSelectedText(){return this._syncSelectedText}set syncSelectedText(e){this._syncSelectedText!==e&&(this._syncSelectedText=e)}};var sl=class extends Oo{constructor(t){super(t)}initializeAccessibility(){this._targetElement.setAttribute("role","combobox"),this._targetElement.setAttribute("aria-live","polite"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this.setAriaControls()}addClickListener(t){this._targetElement.addEventListener("click",t)}removeClickListener(t){this._targetElement&&this._targetElement.removeEventListener("click",t)}addTargetListener(t,e){let a,o;t==="keydown"&&(a=!1,o=!0),this._targetElement.addEventListener(t,e,{passive:a,capture:o})}removeTargetListener(t,e){this._targetElement&&this._targetElement.removeEventListener(t,e)}updateActiveDescendant(t){t?this._targetElement.setAttribute("aria-activedescendant",t):this._targetElement.removeAttribute("aria-activedescendant")}open(t){super.open(t),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._targetElement.setAttribute("aria-expanded","true")}close(){return this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.removeAttribute("aria-activedescendant"),this.setAriaControls(),super.close()}attach(t){let o=(this._component.getRootNode()||HTMLDocument||this._component.ownerDocument||document).querySelector(t);o&&(this._targetElement=o)}detach(){this._targetElement=void 0}setTargetDisconnectedListener(t){if(!this._targetElement||!this._targetElement.parentElement)return()=>{};let e=new MutationObserver(a=>{a.some(n=>Array.from(n.removedNodes).some(i=>i===this._targetElement))&&(e.disconnect(),t())});return e.observe(this._targetElement.parentElement,{childList:!0}),()=>e.disconnect()}isAttached(){return!!this._targetElement}setTargetText(t,e){let a=this._targetElement;if(e){let o=this._getElementBySelector(e);o&&(a=o)}a&&(a.textContent=t)}getTargetText(t){let e=t?this._getElementBySelector(t):this._targetElement;return e?e.innerText:""}_getElementBySelector(t){return this._targetElement.querySelector(t)||this._getRootNode().querySelector(t)}_getRootNode(){var t,e;return(e=(t=this._component.getRootNode())!=null?t:this._component.ownerDocument)!=null?e:document}setAriaControls(){let t=this._component.querySelector("[data-forge-aria-controls-placeholder]");if(t){this._targetElement.setAttribute("aria-controls",t.id);return}t=document.createElement("div"),t.id=`forge-select-dropdown-temp-${Vt(10)}`,t.setAttribute("data-forge-aria-controls-placeholder",""),this._targetElement.setAttribute("aria-controls",t.id),this._component.appendChild(t)}};var jf="<template></template>",Zf=":host{display:none}",f0=class extends L2{static get observedAttributes(){return[Ze.attributes.TARGET,Ze.attributes.SELECTED_TEXT_TARGET,Ze.attributes.SYNC_SELECTED_TEXT,H2.attributes.VALUE,H2.attributes.MULTIPLE,H2.attributes.OBSERVE_SCROLL,H2.attributes.OBSERVE_SCROLL_THRESHOLD,H2.attributes.POPUP_CLASSES,H2.attributes.OPTION_LIMIT,H2.attributes.SYNC_POPUP_WIDTH]}constructor(){super(),L(this,jf,Zf),this._core=new il(new sl(this))}attributeChangedCallback(t,e,a){switch(t){case Ze.attributes.TARGET:this.target=a;return;case Ze.attributes.SELECTED_TEXT_TARGET:this.selectedTextTarget=a;return;case Ze.attributes.SYNC_SELECTED_TEXT:this.syncSelectedText=p(a);return}super.attributeChangedCallback(t,e,a)}};s([v()],f0.prototype,"target",2),s([v()],f0.prototype,"selectedTextTarget",2),s([v()],f0.prototype,"syncSelectedText",2),f0=s([y({name:Ze.elementName,dependencies:[$1,je,F1,ct,Z1,O2,Xe,se,s1]})],f0);function t6(){b(f0)}var e6=class extends at{constructor(t){super(t)}_build(){return document.createElement($t.elementName)}_configure(){var t;typeof((t=this._config.options)==null?void 0:t.helperText)=="string"&&this.setHelperText(this._config.options.helperText)}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}onChange(t){this._element.addEventListener("change",e=>t(e.detail))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&this._helperTextElement.isConnected&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}};var Qf=`${x}skip-link`,a6={TARGET:"target",THEME:"theme",MUTED:"muted",PERSISTENT:"persistent",INLINE:"inline",SKIP_URL_CHANGE:"skip-url-change"},Jf=m({},a6),tx={ANCHOR:"a"},u2={elementName:Qf,observedAttributes:a6,attributes:Jf,selectors:tx};var ex='<template><a class="forge-skip-link" part="anchor"><slot>Skip to main content</slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></a></template>',ax=':host{--_skip-link-inset:var(--forge-skip-link-inset, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px));--_skip-link-z-index:var(--forge-skip-link-z-index, var(--forge-z-index-popup, 10));--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, var(--forge-animation-duration-short4, 200ms));--_skip-link-transition-timing-function:var(--forge-skip-link-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}:host{transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);display:block;position:fixed;inset:var(--_skip-link-inset);z-index:var(--_skip-link-z-index);block-size:fit-content;inline-size:fit-content;opacity:0;transform:translateY(-100%)}:host([hidden]){display:none}:host(:where(:focus-within,[persistent])){transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);transform:translateY(0);opacity:1}.forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000));--_skip-link-shape:var(--forge-skip-link-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skip-link-elevation:var(--forge-skip-link-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_skip-link-padding-block:var(--forge-skip-link-padding-block, var(--forge-spacing-xsmall, 8px));--_skip-link-padding-inline:var(--forge-skip-link-padding-inline, var(--forge-spacing-medium, 16px));--_skip-link-focus-indicator-color:var(--forge-skip-link-focus-indicator-color, var(--_skip-link-background))}.forge-skip-link{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;outline:0;box-shadow:var(--_skip-link-elevation);border-radius:var(--_skip-link-shape);background:var(--_skip-link-background);padding-block:var(--_skip-link-padding-block);padding-inline:var(--_skip-link-padding-inline);cursor:pointer;color:var(--_skip-link-color);text-decoration:underline}:host([theme=primary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary, #3f51b5));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=primary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary-container-high, #b6bde3));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary-container-high, #000000))}:host([theme=secondary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([theme=tertiary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary, #3d5afe));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary-container-high, #b5c0ff));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary-container-high, #000000))}:host([theme=success]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success, #2e7d32));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success-container-high, #b0ceb1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success-container-high, #000000))}:host([theme=error]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error, #b00020));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error-container-high, #e19eaa));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error-container-high, #000000))}:host([theme=warning]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning, #d14900));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning-container-high, #eeba9e));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning-container-high, #000000))}:host([theme=info]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info, #1565c0));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info-container-high, #a6c4e7));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info-container-high, #000000))}:host(:where(:not([theme]),[theme=default])[muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([inline]){position:absolute;transform:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_skip-link-focus-indicator-color);--forge-focus-indicator-shape:var(--_skip-link-shape)}@media (prefers-reduced-motion:reduce){:host{--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, 0s)}}',Po=class extends H{constructor(){super();this._target="";this._theme="default";this._muted=!1;this._persistent=!1;this._inline=!1;this._skipUrlChange=!1;this._clickListener=e=>this._handleClick(e);L(this,ex,ax),this._anchorElement=w(this,u2.selectors.ANCHOR)}static get observedAttributes(){return Object.values(u2.observedAttributes)}attributeChangedCallback(e,a,o){switch(e){case u2.observedAttributes.TARGET:this.target=o;break;case u2.observedAttributes.THEME:this.theme=o;break;case u2.observedAttributes.MUTED:this.muted=p(o);break;case u2.observedAttributes.PERSISTENT:this.persistent=p(o);break;case u2.observedAttributes.INLINE:this.inline=p(o);break;case u2.observedAttributes.SKIP_URL_CHANGE:this.skipUrlChange=p(o);break}}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this.setAttribute(u2.attributes.TARGET,this._target),this._anchorElement.href=`#${this._target}`)}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this.setAttribute(u2.attributes.THEME,this._theme))}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.toggleAttribute(u2.attributes.MUTED,this._muted))}get persistent(){return this._persistent}set persistent(e){this._persistent!==e&&(this._persistent=e,this.toggleAttribute(u2.attributes.PERSISTENT,this._persistent))}get inline(){return this._inline}set inline(e){this._inline!==e&&(this._inline=e,this.toggleAttribute(u2.attributes.INLINE,this._inline))}get skipUrlChange(){return this._skipUrlChange}set skipUrlChange(e){if(this._skipUrlChange!==e){if(this._skipUrlChange=e,this.toggleAttribute(u2.attributes.SKIP_URL_CHANGE,this._skipUrlChange),this._skipUrlChange){this._anchorElement.addEventListener("click",this._clickListener);return}this._anchorElement.removeEventListener("click",this._clickListener)}}_handleClick(e){e.preventDefault();let a=document.getElementById(this._target);a==null||a.focus(),a==null||a.scrollIntoView({behavior:"smooth"})}};Po=s([y({name:u2.elementName,dependencies:[t1,i1]})],Po);function o6(){b(Po)}var Cr=class extends H{};Cr.formAssociated=!0;var ox=`${x}slider`,rx={ARIA_LABEL:"data-aria-label",ARIA_LABEL_START:"data-aria-label-start",ARIA_LABEL_END:"data-aria-label-end",VALUE:"value",VALUE_START:"value-start",VALUE_END:"value-end",LABEL:"label",LABEL_START:"label-start",LABEL_END:"label-end",MIN:"min",MAX:"max",STEP:"step",TICKMARKS:"tickmarks",LABELED:"labeled",RANGE:"range",DISABLED:"disabled",READONLY:"readonly"},nx={ROOT:".forge-slider",TRACK:".track",HANDLE_CONTAINER:".handle-container",START_INPUT:"input.start",END_INPUT:"input.end",START_HANDLE:".handle.start",START_HANDLE_THUMB:".handle.start .handle-thumb",END_HANDLE:".handle.end",END_HANDLE_THUMB:".handle.end .handle-thumb",START_LABEL:".handle.start .handle-label",START_LABEL_CONTENT:".handle.start .handle-label-content",END_LABEL:".handle.end .handle-label",END_LABEL_CONTENT:".handle.end .handle-label-content",LABEL:".handle-label",INPUT:"input[type=range]"},ix={RANGE:"range",TICKMARKS:"tickmarks",ON_TOP:"on-top",OVERLAPPING:"overlapping",HOVER:"hover",HANDLE:"handle",HANDLE_THUMB:"handle-thumb",HANDLE_START:"start",HANDLE_LABEL:"handle-label",LABEL:"handle-label",LABEL_CONTENT:"handle-label-content"},sx={INPUT:"forge-slider-input",CHANGE:"forge-slider-change",RANGE_INPUT:"forge-slider-range-input",RANGE_CHANGE:"forge-slider-range-change"},lx={START_FRACTION:"--_slider-start-fraction",END_FRACTION:"--_slider-end-fraction",TICK_COUNT:"--_slider-tick-count"},vx={DEFAULT_STEP:1,DEFAULT_VALUE:50,DEFAULT_START_VALUE:33,DEFAULT_END_VALUE:67},E={elementName:ox,attributes:rx,selectors:nx,classes:ix,events:sx,numbers:vx,cssCustomProperties:lx};function r6(r){let t=document.createElement("input");return t.type="range",t.id="start",t.min=String(r.min),t.max=String(r.max),t.step=String(r.step),t.valueAsNumber=r.valueStart,t.disabled=r.disabled,t.classList.add("start"),r.hasAttribute(E.attributes.ARIA_LABEL_START)&&t.setAttribute("aria-label",r.getAttribute(E.attributes.ARIA_LABEL_START)),t.setAttribute("aria-valuetext",String(r.valueStart)),t}function n6(r){let t=document.createElement("div");t.classList.add(E.classes.HANDLE,E.classes.HANDLE_START),t.setAttribute("part","handle-start");let e=document.createElement("forge-state-layer");e.target="start",t.appendChild(e);let a=document.createElement("forge-focus-indicator");a.target="start",t.appendChild(a);let o=document.createElement("div");o.classList.add(E.classes.HANDLE_THUMB),o.setAttribute("part","handle-start-thumb"),t.appendChild(o);let n=document.createElement("div");n.classList.add(E.classes.HANDLE_LABEL),n.setAttribute("part","handle-start-label"),t.appendChild(n);let i=document.createElement("span");return i.textContent=r,i.classList.add(E.classes.LABEL_CONTENT),i.setAttribute("part","handle-start-label-content"),n.appendChild(i),t}function m5(r){let t=document.createElement("div");t.classList.add(E.classes.LABEL);let e=document.createElement("span");return e.textContent=r,e.classList.add(E.classes.LABEL_CONTENT),t.appendChild(e),t}var ll=class extends I{constructor(t){super(t),this._rootElement=w(t,E.selectors.ROOT),this._trackElement=w(t,E.selectors.TRACK),this._handleContainerElement=w(t,E.selectors.HANDLE_CONTAINER),this._endInputElement=w(t,E.selectors.END_INPUT),this._endHandleElement=w(t,E.selectors.END_HANDLE),this._endHandleThumbElement=w(t,E.selectors.END_HANDLE_THUMB),this._endLabelContentElement=w(t,E.selectors.END_LABEL_CONTENT)}addInputListener(t,e){this._getInputs().forEach(o=>o.addEventListener(t,e))}update({startFraction:t,endFraction:e,tickCount:a}){this._rootElement.style.setProperty(E.cssCustomProperties.START_FRACTION,String(t)),this._rootElement.style.setProperty(E.cssCustomProperties.END_FRACTION,String(e)),this._rootElement.style.setProperty(E.cssCustomProperties.TICK_COUNT,String(a))}updateLabels(t,e){var a;this._startLabelContentElement&&(this._startLabelContentElement.textContent=t),this._endLabelContentElement&&(this._endLabelContentElement.textContent=e),(a=this._startInputElement)==null||a.setAttribute("aria-valuetext",t),this._endInputElement.setAttribute("aria-valuetext",e)}updateHandleLayering(){let t=this._endInputElement.matches(":focus");this._startHandleElement&&ft(this._startHandleElement,!t,E.classes.ON_TOP),ft(this._endHandleElement,t,E.classes.ON_TOP)}tryHoverStartHandle(t){var e,a,o;this._startHandleThumbElement&&o4(t,this._startHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),(e=this._startHandleElement)==null||e.classList.add(E.classes.HOVER)):(a=this._startInputElement)!=null&&a.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),(o=this._startHandleElement)==null||o.classList.remove(E.classes.HOVER))}tryHoverEndHandle(t){o4(t,this._endHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),this._endHandleElement.classList.add(E.classes.HOVER)):this._endInputElement.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),this._endHandleElement.classList.remove(E.classes.HOVER))}tryDetectOverlap(){if(this._startHandleElement){let t=z3(this._startHandleElement,this._endHandleElement);ft(this._endHandleElement,t,E.classes.OVERLAPPING),ft(this._startHandleElement,t,E.classes.OVERLAPPING)}}leaveHandleContainer(){this._handleContainerElement.classList.remove(E.classes.HOVER)}syncInputValues(t,e){if(this._startInputElement&&(this._startInputElement.valueAsNumber=t),this._endInputElement.valueAsNumber=e,this._startInputElement){let a=new FormData;a.append(this._component.nameStart,String(t)),a.append(this._component.nameEnd,String(e)),this._component[r1].setFormValue(a)}else this._component[r1].setFormValue(String(e))}setRange(t){var e,a;if(this._rootElement.classList.toggle(E.classes.RANGE,t),t){this._startInputElement=r6(this._component),this._rootElement.insertAdjacentElement("afterbegin",this._startInputElement),this._endInputElement.valueAsNumber=this._component.valueEnd;let o=this._startInputElement.value;this._startHandleElement=n6(o),this._handleContainerElement.insertAdjacentElement("afterbegin",this._startHandleElement),this._startHandleThumbElement=w(this._component,E.selectors.START_HANDLE_THUMB),this._startLabelContentElement=w(this._component,E.selectors.START_LABEL_CONTENT)}else(e=this._startInputElement)==null||e.remove(),(a=this._startHandleElement)==null||a.remove(),this._startInputElement=void 0,this._startHandleElement=void 0,this._startHandleThumbElement=void 0,this._startLabelContentElement=void 0}setTickmarks(t){this._trackElement.classList.toggle(E.classes.TICKMARKS,t)}setStep(t){this._getInputs().forEach(a=>a.step=String(t))}setMin(t){this._getInputs().forEach(a=>a.min=String(t))}setMax(t){this._getInputs().forEach(a=>a.max=String(t))}setDisabled(t){this._getInputs().forEach(o=>o.disabled=t),this._rootElement.querySelectorAll(L1.elementName).forEach(o=>o.disabled=t)}setReadonly(t){this._getInputs().forEach(a=>a.readOnly=t)}toggleLabels(t){var a;if(this._rootElement.querySelectorAll(E.selectors.LABEL).forEach(o=>o.remove()),this._endLabelContentElement=void 0,this._startLabelContentElement=void 0,t){let o=m5(this._endInputElement.value);if(this._endHandleElement.insertAdjacentElement("beforeend",o),this._endLabelContentElement=w(this._component,E.selectors.END_LABEL_CONTENT),this._startInputElement){let n=m5(this._startInputElement.value);(a=this._startHandleElement)==null||a.insertAdjacentElement("beforeend",n),this._startLabelContentElement=w(this._component,E.selectors.START_LABEL_CONTENT)}}}setStartAriaLabel(t){this._startInputElement&&W(this._startInputElement,!!t,"aria-label",t)}setEndAriaLabel(t){W(this._endInputElement,!!t,"aria-label",t)}_getInputs(){let t=[];return this._startInputElement&&t.push(this._startInputElement),[...t,this._endInputElement]}};var vl=class{constructor(t){this._adapter=t;this._value=E.numbers.DEFAULT_VALUE;this._valueStart=E.numbers.DEFAULT_START_VALUE;this._valueEnd=E.numbers.DEFAULT_END_VALUE;this._min=0;this._max=100;this._step=E.numbers.DEFAULT_STEP;this._tickmarks=!1;this._labeled=!0;this._range=!1;this._disabled=!1;this._readonly=!1;this._pointerEnterListener=e=>this._handlePointerEnter(e),this._pointerMoveListener=e=>this._handlePointerMove(e),this._pointerLeaveListener=e=>this._handlePointerLeave(e),this._changeUpdateListener=e=>this._handleInputUpdate(e),this._focusListener=e=>this._handleFocus(e)}initialize(){this._applyInputListeners(),this._update()}_update(){var M,f;let{value:t,valueStart:e,valueEnd:a}=this._clampMinMax(),o=this._step<=0?1:this._step,n=Math.max(this._max-this._min,o),i=this._range?((e!=null?e:this._min)-this._min)/n:0,l=this._range?a:t,h=((l!=null?l:this.min)-this.min)/n,c=n/o;this._adapter.update({startFraction:i,endFraction:h,tickCount:c}),this._adapter.syncInputValues(e,this._range?a:t),this._range&&this._adapter.tryDetectOverlap();let d=(M=this._labelStart)!=null?M:String(e),u=(f=this._labelEnd)!=null?f:String(this._range?a:t);typeof this._labelBuilder=="function"&&(this._range?(d=this._labelBuilder(e,"start"),u=this._labelBuilder(a,"end")):u=this._labelBuilder(t)),this._adapter.updateLabels(d,u)}_clampMinMax(){let t=this._value,e=this._valueStart,a=this._valueEnd;return this._range?(e>this._max?e=this._max:e<this._min&&(e=this._min),a>this._max?a=this._max:a<this._min&&(a=this._min)):t>this._max?t=this._max:this._value<this._min&&(t=this._min),{value:t,valueStart:e,valueEnd:a}}_applyInputListeners(){this._adapter.addInputListener("pointerenter",this._pointerEnterListener),this._adapter.addInputListener("pointermove",this._pointerMoveListener),this._adapter.addInputListener("pointerleave",this._pointerLeaveListener),this._adapter.addInputListener("input",this._changeUpdateListener),this._adapter.addInputListener("change",this._changeUpdateListener),this._adapter.addInputListener("focus",this._focusListener)}_handlePointerEnter(t){this._handlePointerMove(t)}_handlePointerMove({target:t,x:e,y:a}){t.id==="start"?this._adapter.tryHoverStartHandle({x:e,y:a}):this._adapter.tryHoverEndHandle({x:e,y:a})}_handlePointerLeave(t){this._adapter.leaveHandleContainer()}_handleInputUpdate(t){if(t.stopPropagation(),this._disabled||this._readonly){this._adapter.syncInputValues(this._valueStart,this._range?this._valueEnd:this._value);return}let e=t.target;if(this._range){let l=e.id==="start";if(l?this._valueStart=e.valueAsNumber:this._valueEnd=e.valueAsNumber,this._canClamp()){l?this._valueStart=this._valueEnd:this._valueEnd=this._valueStart,this._adapter.syncInputValues(this._valueStart,this._valueEnd),this._update();return}}else this._value=e.valueAsNumber;let a={default:{change:E.events.CHANGE,input:E.events.INPUT},range:{change:E.events.RANGE_CHANGE,input:E.events.RANGE_INPUT}},o=this._range?a.range[t.type]:a.default[t.type],n=this._range?{valueStart:this._valueStart,valueEnd:this._valueEnd}:{value:this._value},i=new CustomEvent(o,{detail:n,bubbles:!0});this._adapter.dispatchHostEvent(i),this._update()}_handleFocus(t){this._adapter.updateHandleLayering()}_canClamp(){return this._valueStart>this._valueEnd||this._valueEnd<this._valueStart}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._update())}get valueStart(){return this._valueStart}set valueStart(t){this._valueStart!==t&&(this._valueStart=t,this._update())}get valueEnd(){return this._valueEnd}set valueEnd(t){this._valueEnd!==t&&(this._valueEnd=t,this._update())}get label(){return this.labelEnd}set label(t){this.labelEnd=t}get labelStart(){return this._labelStart}set labelStart(t){this._labelStart!==t&&(this._labelStart=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelEnd(){return this._labelEnd}set labelEnd(t){this._labelEnd!==t&&(this._labelEnd=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelBuilder(){return this._labelBuilder}set labelBuilder(t){this._labelBuilder=t,this._update()}get min(){return this._min}set min(t){this._min!==t&&(this._min=t,this._adapter.setMin(this._min),this._update(),this._adapter.setHostAttribute(E.attributes.MIN,String(this._min)))}get max(){return this._max}set max(t){this._max!==t&&(this._max=t,this._adapter.setMax(this._max),this._update(),this._adapter.setHostAttribute(E.attributes.MAX,String(this._max)))}get step(){return this._step}set step(t){this._step!==t&&(this._step=t,this._adapter.setStep(this._step),this._update(),this._adapter.setHostAttribute(E.attributes.STEP,String(this._step)))}get tickmarks(){return this._tickmarks}set tickmarks(t){this._tickmarks!==t&&(this._tickmarks=t,this._adapter.setTickmarks(this._tickmarks),this._adapter.toggleHostAttribute(E.attributes.TICKMARKS,this._tickmarks))}get labeled(){return this._labeled}set labeled(t){this._labeled!==t&&(this._labeled=t,this._adapter.toggleLabels(this._labeled),this._update(),this._adapter.toggleHostAttribute(E.attributes.LABELED,this._labeled))}get range(){return this._range}set range(t){this._range!==t&&(this._range=t,this._adapter.setRange(this._range),this._range&&this._applyInputListeners(),this._update(),this._adapter.toggleHostAttribute(E.attributes.RANGE,this._range))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(t),this._adapter.toggleHostAttribute(E.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(t),this._adapter.toggleHostAttribute(E.attributes.READONLY,this._readonly))}set ariaLabel(t){this.ariaLabelEnd=t}set ariaLabelStart(t){this._adapter.setStartAriaLabel(t)}set ariaLabelEnd(t){this._adapter.setEndAriaLabel(t)}};var hx='<template><div part="root" class="forge-slider"><input type="range" class="end" id="end" min="0" max="100" step="1" aria-valuetext="0"><div class="track" part="track"></div><div class="handle-container-padded"><div class="handle-container-block"><div class="handle-container"><div class="handle end" part="handle-end"><forge-state-layer exportparts="surface:state-layer" target="end"></forge-state-layer><forge-focus-indicator part="focus-indicator" target="end"></forge-focus-indicator><div class="handle-thumb" part="handle-end-thumb"></div><div class="handle-label" part="handle-end-label"><span class="handle-label-content" part="handle-end-label-content"></span></div></div></div></div></div></div></template>',cx=':host{display:inline-flex;vertical-align:middle;min-inline-size:100%}:host([hidden]){display:none}.forge-slider{--_slider-start-fraction:0;--_slider-end-fraction:0;--_slider-tick-count:100;--_slider-track-height:var(--forge-slider-track-height, 4px);--_slider-active-track-color:var(--forge-slider-active-track-color, var(--forge-theme-primary, #3f51b5));--_slider-active-track-height:var(--forge-slider-active-track-height, var(--_slider-track-height));--_slider-active-track-shape:var(--forge-slider-active-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-disabled-active-track-color:var(--forge-slider-disabled-active-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-active-track-opacity:var(--forge-slider-disabled-active-track-opacity, 0.38);--_slider-disabled-handle-color:var(--forge-slider-disabled-handle-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-color:var(--forge-slider-disabled-inactive-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-opacity:var(--forge-slider-disabled-inactive-track-opacity, 0.12);--_slider-focus-handle-color:var(--forge-slider-focus-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-color:var(--forge-slider-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-height:var(--forge-slider-handle-height, 20px);--_slider-handle-shape:var(--forge-slider-handle-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1)));--_slider-handle-width:var(--forge-slider-handle-width, 20px);--_slider-hover-handle-color:var(--forge-slider-hover-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-inactive-track-color:var(--forge-slider-inactive-track-color, var(--forge-theme-primary-container, #d1d5ed));--_slider-inactive-track-height:var(--forge-slider-inactive-track-height, var(--_slider-track-height));--_slider-inactive-track-shape:var(--forge-slider-inactive-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-shape:var(--forge-slider-label-container-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-color:var(--forge-slider-label-container-color, var(--forge-theme-primary, #3f51b5));--_slider-label-container-height:var(--forge-slider-label-container-height, 28px);--_slider-label-text-color:var(--forge-slider-label-text-color, var(--forge-theme-on-primary, #ffffff));--_slider-pressed-handle-color:var(--forge-slider-pressed-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-state-layer-size:var(--forge-slider-state-layer-size, 40px);--_slider-with-overlap-handle-outline-color:var(--forge-slider-with-overlap-handle-outline-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-overlap-handle-outline-width:var(--forge-slider-with-overlap-handle-outline-width, 1px);--_slider-with-tick-marks-active-container-color:var(--forge-slider-with-tick-marks-active-container-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-tick-marks-container-size:var(--forge-slider-with-tick-marks-container-size, 2px);--_slider-with-tick-marks-disabled-active-container-color:var(--forge-slider-with-tick-marks-disabled-active-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-disabled-inactive-container-color:var(--forge-slider-with-tick-marks-disabled-inactive-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-inactive-container-color:var(--forge-slider-with-tick-marks-inactive-container-color, var(--forge-theme-primary, #3f51b5))}.forge-slider{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_slider-state-layer-size);pointer-events:none;touch-action:none}.forge-slider.range :host-context([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range :host([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start{clip-path:inset(0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))) 0 0)}.forge-slider.range input.end{clip-path:inset(0 0 0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)))}.forge-slider.range :host-context([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range :host([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range input.end:dir(rtl){clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.track{position:absolute;inset:0;display:flex;align-items:center}.track::after,.track::before{content:"";position:absolute;inset-inline-start:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));inset-inline-end:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));background-size:calc((100% - var(--_slider-with-tick-marks-container-size) * 2)/ var(--_slider-tick-count)) 100%}.track::before{block-size:var(--_slider-inactive-track-height);border-radius:var(--_slider-inactive-track-shape);background-color:var(--_slider-inactive-track-color)}.track::after{block-size:var(--_slider-active-track-height);border-radius:var(--_slider-active-track-shape);clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)));background-color:var(--_slider-active-track-color)}.track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-inactive-container-color) 0,var(--_slider-with-tick-marks-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-active-container-color) 0,var(--_slider-with-tick-marks-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.handle-container-block,.handle-container-padded{position:relative;block-size:100%;inline-size:100%}.handle-container-padded{padding-inline:calc(var(--_slider-state-layer-size)/ 2)}.handle-container{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100% * var(--_slider-start-fraction));inline-size:calc(100% * (var(--_slider-end-fraction) - var(--_slider-start-fraction)))}.handle{position:absolute;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);border-radius:var(--_slider-handle-shape);display:grid;place-items:center}.handle.start{inset-inline-start:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle.end{inset-inline-end:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);position:absolute;height:var(--_slider-handle-height);width:var(--_slider-handle-width);border-radius:var(--_slider-handle-shape);background:var(--_slider-handle-color)}.handle-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);position:absolute;box-sizing:border-box;display:grid;padding:4px;place-items:center;border-radius:var(--_slider-label-container-shape);color:var(--_slider-label-text-color);font-weight:500;white-space:nowrap;inset-block-end:100%;min-inline-size:var(--_slider-label-container-height);min-block-size:var(--_slider-label-container-height);background:var(--_slider-label-container-color);transition:transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-standard, cubic-bezier(.2, 0, 0, 1));transform-origin:center bottom;transform:scale(0)}.handle-label::after,.handle-label::before{content:"";position:absolute;display:block;background:inherit}.handle-label::before{inline-size:calc(var(--_slider-label-container-height)/ 2);block-size:calc(var(--_slider-label-container-height)/ 2);bottom:calc(var(--_slider-label-container-height)/ -10);transform:rotate(45deg)}.handle-label::after{inset:0;border-radius:inherit}.handle-label-content{z-index:1}.handle-container.hover .handle-thumb{background:var(--_slider-hover-handle-color)}:host(:not([disabled])) input.end:active~.handle-container-padded .handle.end>.handle-thumb,:host(:not([disabled])) input.start:active~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-pressed-handle-color)}:host([disabled]) .handle-thumb{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);background:var(--_slider-disabled-handle-color)}:host([disabled]) .handle-label{background:var(--_slider-disabled-handle-color)}:host([disabled]) .track::before{opacity:calc(1 / var(--_slider-disabled-active-track-opacity) * var(--_slider-disabled-inactive-track-opacity));background-color:var(--_slider-disabled-inactive-track-color)}:host([disabled]) .track::after{background-color:var(--_slider-disabled-active-track-color)}:host([disabled]) .track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-inactive-container-color) 0,var(--_slider-with-tick-marks-disabled-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) .track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-active-container-color) 0,var(--_slider-with-tick-marks-disabled-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) input[type=range]{cursor:not-allowed}:host-context([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}:host([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}.track:dir(rtl)::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}input.end:focus~.handle-container-padded .handle.end>.handle-thumb,input.start:focus~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-focus-handle-color)}.on-top.overlapping .handle-label,.on-top.overlapping .handle-label::before,.on-top.overlapping .handle-thumb{border:var(--_slider-with-overlap-handle-outline-color) solid var(--_slider-with-overlap-handle-outline-width)}.handle-container.hover .handle-label,:host(:focus-within) .handle-label,:where(:has(input:active)) .handle-label{transform:scale(1)}input[type=range]{opacity:0;-webkit-tap-highlight-color:transparent;position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:0 0;cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none}input[type=range]::-moz-range-track{appearance:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}input[type=range]::-moz-range-thumb{appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.on-top{z-index:1}@media (prefers-reduced-motion){.handle-label{transition-duration:0}}forge-focus-indicator{--forge-focus-indicator-shape:50%;--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_slider-handle-color)}',i6,ut=class extends(i6=Cr,r1,i6){static get observedAttributes(){return[E.attributes.ARIA_LABEL,E.attributes.ARIA_LABEL_START,E.attributes.ARIA_LABEL_END,E.attributes.VALUE,E.attributes.VALUE_START,E.attributes.VALUE_END,E.attributes.LABEL,E.attributes.LABEL_START,E.attributes.LABEL_END,E.attributes.MAX,E.attributes.MIN,E.attributes.STEP,E.attributes.TICKMARKS,E.attributes.LABELED,E.attributes.RANGE,E.attributes.DISABLED,E.attributes.READONLY]}get form(){return this[r1].form}get labels(){return this[r1].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){W(this,!!t,"name",t!=null?t:"")}get nameStart(){var t;return(t=this.getAttribute("name-start"))!=null?t:this.name}set nameStart(t){W(this,!!t,"name-start",t!=null?t:"")}get nameEnd(){var t;return(t=this.getAttribute("name-end"))!=null?t:this.nameStart}set nameEnd(t){W(this,!!t,"name-end",t!=null?t:"")}constructor(){super(),L(this,hx,cx),this[r1]=this.attachInternals(),this._core=new vl(new ll(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case E.attributes.ARIA_LABEL:this._core.ariaLabel=a;break;case E.attributes.ARIA_LABEL_START:this._core.ariaLabelStart=a;break;case E.attributes.ARIA_LABEL_END:this._core.ariaLabelEnd=a;break;case E.attributes.VALUE:this.value=$(a);break;case E.attributes.VALUE_START:this.valueStart=$(a);break;case E.attributes.VALUE_END:this.valueEnd=$(a);break;case E.attributes.LABEL:this.label=a;break;case E.attributes.LABEL_START:this.labelStart=a;break;case E.attributes.LABEL_END:this.labelEnd=a;break;case E.attributes.MIN:this.min=$(a);break;case E.attributes.MAX:this.max=$(a);break;case E.attributes.STEP:this.step=$(a);break;case E.attributes.TICKMARKS:this.tickmarks=p(a);break;case E.attributes.LABELED:this.labeled=p(a);break;case E.attributes.RANGE:this.range=p(a);break;case E.attributes.DISABLED:this.disabled=p(a);break;case E.attributes.READONLY:this.readonly=p(a);break}}formResetCallback(){if(this._core.range){let e=this.getAttribute("value-start");this.valueStart=e!==null?Number(e):E.numbers.DEFAULT_START_VALUE;let a=this.getAttribute("value-end");this.valueEnd=a!==null?Number(a):E.numbers.DEFAULT_END_VALUE;return}let t=this.getAttribute("value");this.value=t!==null?Number(t):E.numbers.DEFAULT_VALUE}formStateRestoreCallback(t){if(t&&t[0]instanceof FormData){let e=Array.from(t[0]),[[,a],[,o]]=e;this.valueStart=Number(a),this.valueEnd=Number(o),this.range=!0;return}this.value=Number(t),this.range=!1}formDisabledCallback(t){this.disabled=t}};ut.formAssociated=!0,s([v()],ut.prototype,"value",2),s([v()],ut.prototype,"valueStart",2),s([v()],ut.prototype,"valueEnd",2),s([v()],ut.prototype,"label",2),s([v()],ut.prototype,"labelStart",2),s([v()],ut.prototype,"labelEnd",2),s([v()],ut.prototype,"labelBuilder",2),s([v()],ut.prototype,"min",2),s([v()],ut.prototype,"max",2),s([v()],ut.prototype,"step",2),s([v()],ut.prototype,"tickmarks",2),s([v()],ut.prototype,"labeled",2),s([v()],ut.prototype,"range",2),s([v()],ut.prototype,"disabled",2),s([v()],ut.prototype,"readonly",2),ut=s([y({name:E.elementName,dependencies:[t1,i1]})],ut);var s6=class extends at{constructor(t){super(t)}get value(){return this._element.value}set value(t){this._element.value=t}get valueStart(){return this._element.valueStart}set valueStart(t){this._element.valueStart=t}get valueEnd(){return this._element.valueEnd}set valueEnd(t){this._element.valueEnd=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get min(){return this._element.min}set min(t){this._element.min=t}get max(){return this._element.max}set max(t){this._element.max=t}get step(){return this._element.step}get range(){return this._element.range}set range(t){this._element.range=t}get tickmarks(){return this._element.tickmarks}set tickmarks(t){this._element.tickmarks=t}get labeled(){return this._element.labeled}set labeled(t){this._element.labeled=t}get labelBuilder(){return this._element.labelBuilder}set labelBuilder(t){this._element.labelBuilder=t}onInput(t){this._element.addEventListener("forge-slider-input",({detail:e})=>t(e))}onChange(t){this._element.addEventListener("forge-slider-change",({detail:e})=>t(e))}onRangeInput(t){this._element.addEventListener("forge-slider-range-input",({detail:e})=>t(e))}onRangeChange(t){this._element.addEventListener("forge-slider-range-change",({detail:e})=>t(e))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}_build(){return document.createElement(E.elementName)}};function l6(){b(ut)}var v6={name:"clock_outline",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 20a8 8 0 008-8 8 8 0 00-8-8 8 8 0 00-8 8 8 8 0 008 8m0-18a10 10 0 0110 10 10 10 0 01-10 10C6.47 22 2 17.5 2 12A10 10 0 0112 2m.5 5v5.25l4.5 2.67-.75 1.23L11 13V7h1.5z"/></svg>'};var h6={name:"drag_vertical_variant",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 21H9V3h2v18m4-18h-2v18h2V3z"/></svg>'};var x0=`${x}split-view-panel`,px={RESIZABLE:"resizable",SIZE:"size",MIN:"min",MAX:"max",OPEN:"open",ACCESSIBLE_LABEL:"accessible-label",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold",ORIENTATION:"orientation"},dx={ROOT:"forge-split-view-panel",GRABBED:"forge-split-view-panel--grabbed",HANDLE:"forge-split-view-panel__handle",ICON:"forge-split-view-panel__icon",CONTENT:"forge-split-view-panel__content",CLOSED:"forge-split-view-panel--closed",CLOSING:"forge-split-view-panel--closing",OPENING:"forge-split-view-panel--opening",DISABLED:"forge-split-view-panel--disabled",OVERLAY:"forge-split-view-panel-overlay"},No={ROOT:"root",HANDLE:"handle",ICON:"icon",STATE_LAYER:"state-layer",CONTENT:"content"},mx={ROOT:`#${No.ROOT}`,HANDLE:`#${No.HANDLE}`,ICON:`#${No.ICON}`,STATE_LAYER:`#${No.STATE_LAYER}`,CONTENT:`#${No.CONTENT}`},gx={WILL_RESIZE:`${x0}-will-resize`,RESIZE_START:`${x0}-resize-start`,RESIZE_END:`${x0}-resize-end`,RESIZE:`${x0}-resize`,DID_OPEN:`${x0}-did-open`,DID_CLOSE:`${x0}-did-close`,WILL_OPEN:`${x0}-will-open`,WILL_CLOSE:`${x0}-will-close`},wx={STATE_LAYER_ACTIVATION_WAIT:200},ux={SIZE:"--forge-split-view-panel-size",CURSOR:"--forge-split-view-panel-cursor"},P={elementName:x0,attributes:px,classes:dx,ids:No,selectors:mx,events:gx,numbers:wx,customCssProperties:ux},c6=(a=>(a[a.Under=1]="Under",a[a.Active=2]="Active",a[a.Above=3]="Above",a))(c6||{});function p6(){return{orientation:"horizontal",resizable:"off",arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1,min:0}}function d6(r,t){let e=r.getContentSize(t.orientation);return S(m({},t),{currentSize:e,startSize:e,availableSpace:r.getAvailableSpace(t.orientation,t.resizable),siblingSize:r.getSiblingContentSize(),isAtMin:!1,isAtMax:!1})}function m6(r){return S(m({},r),{arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1})}function g6(r,t,e){if(e.startPoint===void 0||e.startSize===void 0)return!1;let a=e.currentSize,o=e.orientation==="horizontal"?t.clientX:t.clientY,n=e.startPoint-o;e.resizable==="start"&&(n*=-1);let i=e.startSize-n;e.currentSize=hl(i,e),r.setContentSize(e.currentSize),cl(r,e,"pointer"),r.setValuenow(pl(e.currentSize,e));let l=i-e.currentSize+n;return f6(r,l,e),a!==e.currentSize}function w6(r,t,e){if(e.startSize===void 0)return!1;let a=e.currentSize;e.keyboardDelta+=t;let o=e.startSize+e.keyboardDelta;e.currentSize=hl(o,e),r.setContentSize(e.currentSize),cl(r,e,"keyboard"),r.setValuenow(pl(e.currentSize,e));let n=o-e.currentSize+e.keyboardDelta*-1;return f6(r,n,e),a!==e.currentSize}function u6(r,t){return r.setContentSize(t.min),t.min}function _6(r,t){let e=r.getAvailableSpace(t.orientation,t.resizable),a=A0(t.max,e);return r.setContentSize(a),a}function f6(r,t,e){if(e.siblingSize!==void 0){let a=e.siblingSize+t;r.setSiblingContentSize(a)}}function hl(r,t){return r=Math.max(r,t.min),r=A0(r,t.max,t.availableSpace),r}function cl(r,t,e){if(t.currentSize===void 0)return!1;if(t.currentSize<=t.min)return t.isAtMin||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"min"}),t.isAtMin=!0),!0;t.isAtMin&&(t.isAtMin=!1);let a=A0(t.max,t.availableSpace);return t.currentSize>=a?(t.isAtMax||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"max"}),t.isAtMax=!0),!0):(t.isAtMax&&(t.isAtMax=!1),e==="pointer"&&r.setBodyCursor(t.orientation),!1)}function x6(r,t,e){if(t<=e.min)return r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"min"}),!0;let a=A0(e.max,e.availableSpace);return t>=a?(r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"max"}),!0):(r.setHandleCursor(e.orientation),!1)}function pl(r,t){if(!t.availableSpace&&!t.max)return 100;let e=A0(t.max,t.availableSpace);return on(r,t.min,e)}function g5(r,t){if(r==="horizontal")switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"e-resize":"w-resize";case"max":return t.resizable==="end"?"w-resize":"e-resize";default:return"col-resize"}else switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"s-resize":"n-resize";case"max":return t.resizable==="end"?"n-resize":"s-resize";default:return"row-resize"}}function b6(r){return r==="horizontal"?"drag_vertical_variant":"drag_handle"}function dl(r){let t=r.resizable;if(t==="off")return;let e=r;do e=t==="end"?e.nextElementSibling:e.previousElementSibling;while(e instanceof It&&!e.open);if(e instanceof It)return e}function _x(r){var n,i;if(!isNaN(+r))return{amount:+r,unit:"px"};let t=/(^\d*\.?\d*)\s*(px|%$)?/i,e=r.match(t),a=e!=null&&e[1]?+e[1]:-1,o=(i=(n=e==null?void 0:e[2])==null?void 0:n.toLowerCase())!=null?i:"";return{amount:a,unit:o}}function Da(r,t){let e=_x(r);return e.unit==="%"?C3(e.amount,t):e.amount}function y6(){let r=document.createElement("div");return r.classList.add(P.classes.OVERLAY),r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100vw",r.style.height="100vh",r.style.zIndex="9999",r}var ml=class{constructor(t){this._adapter=t;this._size=200;this._min=0;this._accessibleLabel="Split view panel";this._open=!0;this._state=p6();this._isInitialized=!1;this._parentProperties={};this._pointerdownListener=e=>this._onPointerdown(e),this._pointerupListener=e=>this._onPointerup(e),this._pointermoveListener=e=>this._onPointermove(e),this._keydownListener=e=>this._onKeydown(e),this._keyupListener=e=>this._onKeyup(e)}get _orientation(){return this._state.orientation}set _orientation(t){this._state.orientation=t}get _resizable(){return this._state.resizable}set _resizable(t){this._state.resizable=t}get _pixelMin(){return this._state.min}set _pixelMin(t){this._state.min=t}get _pixelMax(){return this._state.max}set _pixelMax(t){this._state.max=t}get _appliedDisabled(){var t,e;return(e=(t=this._disabled)!=null?t:this._parentProperties.disabled)!=null?e:!1}get _appliedAllowClose(){var t,e;return(e=(t=this._allowClose)!=null?t:this._parentProperties.allowClose)!=null?e:!1}get _appliedAutoClose(){var t,e;return(e=(t=this._autoClose)!=null?t:this._parentProperties.autoClose)!=null?e:!1}get _appliedAutoCloseThreshold(){var t,e;return(e=(t=this._autoCloseThreshold)!=null?t:this._parentProperties.autoCloseThreshold)!=null?e:0}initialize(){this._adapter.initialize(),this._adapter.setPointerdownListener(this._pointerdownListener),this._adapter.setKeydownListener(this._keydownListener),this._getParentProperties(),this._applyResizable(),this._applyMin(),this._applyMax(),this._applySize(),this._applyAccessibleLabel(),this._applyOpen(),this._applyDisabled(),this._applyAllowClose(),this._applyAutoClose(),this._applyAutoCloseThreshold(),this._isInitialized=!0}destroy(){this._adapter.tryRemoveOverlay(),this._adapter.removePointerupListener(this._pointerupListener),this._adapter.removePointermoveListener(this._pointermoveListener)}_onPointerdown(t){this._appliedDisabled||!this._allowResize("pointer")||(t.preventDefault(),this._adapter.setPointermoveListener(this._pointermoveListener),this._adapter.setPointerupListener(this._pointerupListener),this._handlePointerdown(t))}_onPointerup(t){t.preventDefault(),this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup()}_onPointermove(t){if(!this._appliedDisabled){if(t.preventDefault(),t.buttons===0){this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup();return}this._handlePointermove(t)}}_onKeydown(t){this._appliedDisabled||(t.key==="Enter"?this._handleEnterKey(t):t.key==="Home"&&this._allowResize("keyboard")?this._handleHomeKey(t):t.key==="End"&&this._allowResize("keyboard")?this._handleEndKey(t):i4(t)&&this._allowResize("keyboard")&&(this._adapter.setKeyupListener(this._keyupListener),this._handleArrowKey(t)))}_onKeyup(t){i4(t)&&(this._adapter.removeKeyupListener(this._keyupListener),this._handleArrowKeyUp())}_handleEnterKey(t){this._appliedAllowClose&&(t.preventDefault(),this._tryOpenOrClose(!this._open,!1,!0))}_handleHomeKey(t){t.preventDefault();let e=u6(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e),this._tryAutoClose()}_handleEndKey(t){t.preventDefault();let e=_6(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e)}_handleArrowKey(t){let e=0;if(this._orientation==="horizontal")switch(t.key){case"ArrowLeft":e=-1;break;case"ArrowRight":e=1;break;default:return}else switch(t.key){case"ArrowUp":e=-1;break;case"ArrowDown":e=1;break;default:return}t.preventDefault(),this._resizable==="start"&&(e*=-1),t.shiftKey&&(e*=10),this._tryHandleArrowKeyDown(),this._handleArrowKeyHeld(e)}_tryHandleArrowKeyDown(){this._state.arrowKeyHeld||this._startResize(),this._state.arrowKeyHeld=!0}_handleArrowKeyUp(){this._endResize()}_handleArrowKeyHeld(t){w6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_handlePointerdown(t){this._adapter.setGrabbed(!0),this._adapter.focusHandle(),this._startResize(),this._state.startPoint=this._orientation==="horizontal"?t.clientX:t.clientY,cl(this._adapter,this._state,"pointer")}_handlePointerup(){this._adapter.setGrabbed(!1),this._endResize()}_handlePointermove(t){g6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_allowResize(t){return this._adapter.emitHostEvent(P.events.WILL_RESIZE,{inputDeviceType:t},!0,!0)}_startResize(){this._state=d6(this._adapter,this._state),this._adapter.emitHostEvent(P.events.RESIZE_START,this._state.startSize)}_endResize(){this._adapter.emitHostEvent(P.events.RESIZE_END,this._state.currentSize),this._adapter.updateParent({accessibility:this._state.startSize!==this._state.currentSize,cursor:!0}),this._state=m6(this._state),this._tryAutoClose()}_tryOpenOrClose(t=!0,e=!1,a=!1){let o=t?P.events.WILL_OPEN:P.events.WILL_CLOSE,n={auto:e,userInitiated:a};this._adapter.emitHostEvent(o,n,!0,!0)&&(this._open=t,this._applyOpen(n))}_tryAutoClose(){let t=this._adapter.getContentSize(this._orientation);this._appliedAutoClose&&t<=this._appliedAutoCloseThreshold&&this._tryOpenOrClose(!1,!0,!1)}_getParentProperties(){let t=this._adapter.getParentProperty("disabled");this._parentProperties.disabled=t,this._applyParentDisabled();let e=this._adapter.getParentProperty("allowClose");this._parentProperties.allowClose=e;let a=this._adapter.getParentProperty("autoClose");this._parentProperties.autoClose=a,this._applyParentAutoClose();let o=this._adapter.getParentProperty("autoCloseThreshold");this._parentProperties.autoCloseThreshold=o,this._applyParentAutoCloseThreshold()}_applyOrientation(){this._adapter.setOrientation(this._orientation)}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._applyResizable())}_applyResizable(){this._adapter.setHostAttribute(P.attributes.RESIZABLE,this._resizable),this._adapter.setResizable(this._resizable)}get size(){return this._size}set size(t){this._size.toString()!==t.toString()&&(this._size=t,this._applySize())}_applySize(){let t=this._adapter.getParentSize(this._orientation),e=Da(this._size,t);this._adapter.setHostAttribute(P.attributes.SIZE,this._size.toString()),this._adapter.setContentSize(e),window.requestAnimationFrame(()=>{let a=this._adapter.getAvailableSpace(this._orientation,this._resizable),o=A0(this._pixelMax,a),n=on(e,this._pixelMin,o);this._adapter.setValuenow(n),this._adapter.updateParent({cursor:!0})})}get min(){return this._min}set min(t){this._min.toString()!==t.toString()&&(this._min=t,this._applyMin())}_applyMin(){this._adapter.setHostAttribute(P.attributes.MIN,this._min.toString());let t=this._adapter.getParentSize(this._orientation);if(this._pixelMin=Da(this._min,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e<this._pixelMin&&this.setContentSize(e)}get max(){return this._max}set max(t){var e;((e=this._max)==null?void 0:e.toString())!==(t==null?void 0:t.toString())&&(this._max=t,this._applyMax())}_applyMax(){var a;if(this._adapter.toggleHostAttribute(P.attributes.MAX,this._max!==void 0,(a=this._max)==null?void 0:a.toString()),this._max===void 0){this._pixelMax=void 0;return}let t=this._adapter.getParentSize(this._orientation);if(this._pixelMax=Da(this._max,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e>this._pixelMax&&this.setContentSize(e)}get accessibleLabel(){return this._accessibleLabel}set accessibleLabel(t){this._accessibleLabel!==t&&(this._accessibleLabel=t,this._applyAccessibleLabel())}_applyAccessibleLabel(){this._adapter.setHostAttribute(P.attributes.ACCESSIBLE_LABEL,this._accessibleLabel),this._adapter.setAccessibleLabel(this._accessibleLabel)}get open(){return this._open}set open(t){if(this._open!==t){if(this._isInitialized){this._tryOpenOrClose(t,!1,!1);return}this._open=t;let e=this._isInitialized?{auto:!1,userInitiated:!1}:void 0;this._applyOpen(e)}}_applyOpen(t){this._adapter.setHostAttribute(P.attributes.OPEN,this._open.toString()),this._adapter.setOpen(this._open,this._isInitialized,t)}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){var t;this._adapter.toggleHostAttribute(P.attributes.DISABLED,(t=this._disabled)!=null?t:!1),this._adapter.setDisabled(this._appliedDisabled)}_applyParentDisabled(){this._isInitialized&&!O(this._disabled)&&this._adapter.setDisabled(this._appliedDisabled)}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){var t;this._adapter.toggleHostAttribute(P.attributes.ALLOW_CLOSE,(t=this._allowClose)!=null?t:!1)}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE,(t=this._autoClose)!=null?t:!1),this._isInitialized&&this._tryAutoClose()}_applyParentAutoClose(){this._isInitialized&&!O(this._autoClose)&&this._tryAutoClose()}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE_THRESHOLD,O(this._autoCloseThreshold),(t=this.autoCloseThreshold)==null?void 0:t.toString()),this._isInitialized&&this._tryAutoClose()}_applyParentAutoCloseThreshold(){this._isInitialized&&!O(this._autoCloseThreshold)&&this._tryAutoClose()}getContentSize(){return this._adapter.getContentSize(this._orientation)}getCollapsibleSize(){let t=this._adapter.getParentSize(this._orientation),e=Da(this._min,t);return this._adapter.getContentSize(this._orientation)-e}setContentSize(t){if(this._resizable==="off")return;let e=hl(t,this._state);this._adapter.setContentSize(e),this._isInitialized&&this._adapter.emitHostEvent(P.events.RESIZE,e)}update(t){if(t.orientation&&(this._orientation=t.orientation,this._applyOrientation()),t.properties&&(O(t.properties.disabled)&&this._parentProperties.disabled!==t.properties.disabled&&(this._parentProperties.disabled=t.properties.disabled,this._applyDisabled()),O(t.properties.allowClose)&&(this._parentProperties.allowClose=t.properties.allowClose),O(t.properties.autoClose)&&this._parentProperties.autoClose!==t.properties.autoClose&&(this._parentProperties.autoClose=t.properties.autoClose,O(this._autoClose)||this._applyAutoClose()),O(t.properties.autoCloseThreshold)&&this._parentProperties.autoCloseThreshold!==t.properties.autoCloseThreshold&&(this._parentProperties.autoCloseThreshold=t.properties.autoCloseThreshold,O(this._autoCloseThreshold)||this._applyAutoCloseThreshold())),t.size&&this.open){let o=this._adapter.getParentSize(this._orientation);this._pixelMin=Da(this._min,o),this._pixelMax=O(this._max)?Da(this._max,o):void 0,this.setContentSize(this._adapter.getContentSize(this._orientation))}if(this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation),a=this._adapter.getAvailableSpace(this._orientation,this._resizable);if(t.accessibility&&this.open){let o=pl(e,S(m({},this._state),{availableSpace:a}));this._adapter.setValuenow(o)}t.cursor&&x6(this._adapter,e,S(m({},this._state),{availableSpace:a}))}};var fx=`${x}split-view`,xx={ORIENTATION:"orientation",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold"},bx={ROOT:"forge-split-view"},M6={ROOT:"root"},yx={ROOT:`#${M6.ROOT}`,PANEL:P.elementName},Mx={RESIZE_THROTTLE_THRESHOLD:200},Hx={ANIMATING_LAYER:"--forge-split-view-animating-layer"},tt={elementName:fx,attributes:xx,classes:bx,ids:M6,selectors:yx,numbers:Mx,customCssProperties:Hx};var gl=class extends I{constructor(t){super(t),this._root=w(t,P.selectors.ROOT),this._handle=w(t,P.selectors.HANDLE),this._icon=w(t,P.selectors.ICON),this._stateLayer=w(t,P.selectors.STATE_LAYER),this._content=w(t,P.selectors.CONTENT)}initialize(){let t=this._component.parentElement;(t==null?void 0:t.tagName.toLowerCase())===tt.elementName&&(this._parent=t)}tryRemoveOverlay(){var t;(t=this._overlay)==null||t.remove(),this._overlay=void 0}setPointerdownListener(t){this._handle.addEventListener("pointerdown",t)}setPointerupListener(t){document.addEventListener("pointerup",t)}removePointerupListener(t){document.removeEventListener("pointerup",t)}setPointermoveListener(t){document.addEventListener("pointermove",t)}removePointermoveListener(t){document.removeEventListener("pointermove",t)}setKeydownListener(t){this._handle.addEventListener("keydown",t)}setKeyupListener(t){this._handle.addEventListener("keyup",t)}removeKeyupListener(t){this._handle.removeEventListener("keyup",t)}getParentProperty(t){var e;return(e=this._parent)==null?void 0:e[t]}setAccessibleLabel(t){this._handle.setAttribute("aria-label",t)}setDisabled(t){this._root.classList.toggle(P.classes.DISABLED,t),this._handle&&(this._handle.setAttribute("tabindex",t?"-1":"0"),W(this._handle,t,"aria-disabled","true"))}setResizable(t){this._root.setAttribute(P.attributes.RESIZABLE,t.toString()),W(this._handle,t!=="off","aria-valuemin","0"),W(this._handle,t!=="off","aria-valuemax","100"),t!=="off"&&(this._handle.remove(),t==="end"?this._root.append(this._handle):this._root.prepend(this._handle))}setOrientation(t){this._root.setAttribute(P.attributes.ORIENTATION,t),this._handle.setAttribute("aria-orientation",t==="horizontal"?"vertical":"horizontal"),this._icon.setAttribute("name",b6(t))}setOpen(t,e=!0,a){var n,i;let o=()=>{var l,h;t||this._root.classList.add(P.classes.CLOSED),a&&this.emitHostEvent(t?P.events.DID_OPEN:P.events.DID_CLOSE,a),(l=this._parent)==null||l.unlayerSlottedPanels(),(h=this._parent)==null||h.update({accessibility:!0,cursor:!0})};if(t&&this._root.classList.contains(P.classes.CLOSED)){if(this._root.classList.remove(P.classes.CLOSED),!e){o();return}(n=this._parent)==null||n.layerSlottedPanels(this._component),U2(this._root,P.classes.OPENING,!0).then(()=>{o()})}else if(!t&&!this._root.classList.contains(P.classes.CLOSED)){if(!e){o();return}(i=this._parent)==null||i.layerSlottedPanels(this._component),U2(this._root,P.classes.CLOSING,!0).then(()=>{o()})}}setGrabbed(t){var e;this._root.classList.toggle(P.classes.GRABBED,t),this._handle.setAttribute("aria-grabbed",t.toString()),t?(this._overlay||(this._overlay=y6()),document.body.append(this._overlay)):(e=this._overlay)==null||e.remove()}setHandleCursor(t,e){t?this._root.style.setProperty(P.customCssProperties.CURSOR,g5(t,e)):this._root.style.removeProperty(P.customCssProperties.CURSOR)}setBodyCursor(t,e){var a;(a=this._overlay)==null||a.style.setProperty("cursor",g5(t,e))}getContentSize(t){return t==="horizontal"?this._content.clientWidth:this._content.clientHeight}setContentSize(t){this._component.style.setProperty(P.customCssProperties.SIZE,`${t}px`)}setValuenow(t){this._handle.setAttribute("aria-valuenow",t.toFixed(2))}focusHandle(){this._handle.focus()}getAvailableSpace(t,e){if(e==="off")return-1;let a=dl(this._component);return a?a.getCollapsibleSize()+this.getContentSize(t):this.getParentSize(t)}getSiblingContentSize(){var e;let t=dl(this._component);return(e=t==null?void 0:t.getContentSize())!=null?e:0}setSiblingContentSize(t){let e=dl(this._component);e==null||e.setContentSize(t)}animateStateLayer(t){t?window.setTimeout(()=>{this._stateLayer.playAnimation()},P.numbers.STATE_LAYER_ACTIVATION_WAIT):this._stateLayer.playAnimation()}getParentSize(t){var a,o;let e=t==="horizontal"?(a=this._parent)==null?void 0:a.clientWidth:(o=this._parent)==null?void 0:o.clientHeight;return e!=null?e:0}updateParent(t){var e;(e=this._parent)==null||e.update(t)}};var Lx='<template><div class="forge-split-view-panel" id="root" part="root"><div class="forge-split-view-panel__handle" id="handle" part="handle" role="separator" aria-controls="content" aria-grabbed="false" tabindex="0"><forge-icon class="forge-split-view-panel__icon" id="icon" part="icon"></forge-icon><forge-state-layer target="handle" id="state-layer" exportparts="surface:state-layer"></forge-state-layer><forge-focus-indicator inward target="handle" part="focus-indicator"></forge-focus-indicator></div><div class="forge-split-view-panel__content" id="content" part="content" role="group"><slot></slot></div></div></template>',Ix=".forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:ugnd22r;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugnd22r{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;animation-name:ugnd23p;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugnd23p{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:ugnd24k;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugnd24k{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;animation-name:ugnd24o;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugnd24o{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:ugnd250;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugnd250{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;animation-name:ugnd25a;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes ugnd25a{from{transform:none}to{transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:ugnd25j;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugnd25j{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;animation-name:ugnd25q;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes ugnd25q{from{transform:none}to{transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}forge-focus-indicator{--forge-focus-indicator-active-width:2px}",It=class extends H{static get observedAttributes(){return[P.attributes.RESIZABLE,P.attributes.SIZE,P.attributes.MIN,P.attributes.MAX,P.attributes.ACCESSIBLE_LABEL,P.attributes.OPEN,P.attributes.DISABLED,P.attributes.ALLOW_CLOSE,P.attributes.AUTO_CLOSE,P.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),j.define([h6,c3]),L(this,Lx,Ix),this._core=new ml(new gl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case P.attributes.RESIZABLE:this.resizable=a;break;case P.attributes.SIZE:this.size=a;break;case P.attributes.MIN:this.min=a;break;case P.attributes.MAX:a?this.max=a:this.max=void 0;break;case P.attributes.ACCESSIBLE_LABEL:this.accessibleLabel=a;break;case P.attributes.OPEN:this.open=p(a);break;case P.attributes.DISABLED:this.hasAttribute(t)?this.disabled=p(a):this.disabled=void 0;break;case P.attributes.ALLOW_CLOSE:this.hasAttribute(t)?this.allowClose=p(a):this.allowClose=void 0;break;case P.attributes.AUTO_CLOSE:this.hasAttribute(t)?this.autoClose=p(a):this.autoClose=void 0;break;case P.attributes.AUTO_CLOSE_THRESHOLD:a?this.autoCloseThreshold=$(a):this.autoCloseThreshold=void 0;break}}getContentSize(){return this._core.getContentSize()}getCollapsibleSize(){return this._core.getCollapsibleSize()}setContentSize(t){this._core.setContentSize(t)}update(t){this._core.update(t)}};s([v()],It.prototype,"resizable",2),s([v()],It.prototype,"size",2),s([v()],It.prototype,"min",2),s([v()],It.prototype,"max",2),s([v()],It.prototype,"accessibleLabel",2),s([v()],It.prototype,"open",2),s([v()],It.prototype,"disabled",2),s([v()],It.prototype,"allowClose",2),s([v()],It.prototype,"autoClose",2),s([v()],It.prototype,"autoCloseThreshold",2),It=s([y({name:P.elementName,dependencies:[Q,i1,t1]})],It);function Ob1(){b(It)}var wl=class extends I{constructor(t){super(t),this._root=w(t,tt.selectors.ROOT)}registerSlotListener(t){this._root.addEventListener("slotchange",t)}registerDidOpenListener(t){this._root.addEventListener(P.events.DID_OPEN,t)}registerDidCloseListener(t){this._root.addEventListener(P.events.DID_CLOSE,t)}observeResize(t){V0.observe(this._root,t)}unobserveResize(){V0.unobserve(this._root)}getSlottedPanels(){let t=this._component.querySelectorAll(tt.selectors.PANEL);return Array.from(t).filter(o=>o.parentElement===this._component)}refitSlottedPanels(t){let e=t==="horizontal"?this._root.clientWidth:this._root.clientHeight,a=this.getSlottedPanels(),o=a.map(i=>{var c;let l=(c=i.shadowRoot)==null?void 0:c.querySelector(P.selectors.ROOT),h=t==="horizontal"?l==null?void 0:l.clientWidth:l==null?void 0:l.clientHeight;return h!=null?h:0}).reduce((i,l)=>i+l,0);if(o<=e)return;let n=o-e;a.slice().reverse().filter(i=>i.open).forEach(i=>{if(n<=0)return;let l=i.getContentSize(),h=i.getCollapsibleSize(),c=Math.min(n,h),d=l-c;i.setContentSize(d),n-=c})}};var ul=class{constructor(t){this._adapter=t;this._orientation="horizontal";this._disabled=!1;this._allowClose=!1;this._autoClose=!1;this._autoCloseThreshold=0;this._isInitialized=!1;this._slotListener=e=>this._onSlotChange(e),this._didOpenListener=()=>this._onDidOpen(),this._didCloseListener=()=>this._onDidClose(),this._resizeObserverCallback=Dr(e=>this._onResize(e),tt.numbers.RESIZE_THROTTLE_THRESHOLD)}initialize(){this._adapter.registerSlotListener(this._slotListener),this._adapter.registerDidOpenListener(this._didOpenListener),this._adapter.registerDidCloseListener(this._didCloseListener),this._adapter.observeResize(this._resizeObserverCallback),this._applyOrientation(),this._isInitialized=!0}destroy(){this._adapter.unobserveResize()}_onSlotChange(t){this._layoutSlottedPanels(),this.update({accessibility:!0,cursor:!0,orientation:this._orientation})}_onDidOpen(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onDidClose(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onResize(t){this.update({accessibility:!0,cursor:!0,size:!0})}_layoutSlottedPanels(){let t=this._adapter.getSlottedPanels();t.length<2||t.some(e=>e.resizable!=="off")||t.slice(1).forEach(e=>e.resizable="start")}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._applyOrientation())}_applyOrientation(){this._adapter.setHostAttribute(tt.attributes.ORIENTATION,this._orientation),this.update({orientation:this._orientation}),this._isInitialized&&this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0})}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){this._adapter.toggleHostAttribute(tt.attributes.DISABLED,this._disabled),this.update({properties:{disabled:this._disabled}})}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){this._adapter.toggleHostAttribute(tt.attributes.ALLOW_CLOSE,this._allowClose),this.update({properties:{allowClose:this._allowClose}})}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){this._adapter.toggleHostAttribute(tt.attributes.AUTO_CLOSE,this._autoClose),this.update({properties:{autoClose:this._autoClose}})}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){this._adapter.setHostAttribute(tt.attributes.AUTO_CLOSE_THRESHOLD,this._autoCloseThreshold.toString()),this.update({properties:{autoCloseThreshold:this._autoCloseThreshold}})}layerSlottedPanels(t){let e=this._adapter.getSlottedPanels(),a=t.resizable==="start"?1:-1,o=t.resizable==="start"?1:3;e.forEach(n=>{(n===t||o===2)&&(o+=a),n.style.setProperty(tt.customCssProperties.ANIMATING_LAYER,o.toString())})}unlayerSlottedPanels(){this._adapter.getSlottedPanels().forEach(e=>{e.style.removeProperty(tt.customCssProperties.ANIMATING_LAYER)})}update(t){this._adapter.getSlottedPanels().forEach(a=>{a.update(t)})}refitSlottedPanels(){this._adapter.refitSlottedPanels(this._orientation)}};var Vx='<template><div class="forge-split-view" id="root" part="root"><slot></slot></div></template>',Ex=".forge-split-view{display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{flex-direction:row}:host([orientation=vertical]) .forge-split-view{flex-direction:column}",Ee=class extends H{static get observedAttributes(){return[tt.attributes.ORIENTATION,tt.attributes.DISABLED,tt.attributes.ALLOW_CLOSE,tt.attributes.AUTO_CLOSE,tt.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),L(this,Vx,Ex),this._core=new ul(new wl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case tt.attributes.ORIENTATION:this.orientation=a;break;case tt.attributes.DISABLED:this.disabled=p(a);break;case tt.attributes.ALLOW_CLOSE:this.allowClose=p(a);break;case tt.attributes.AUTO_CLOSE:this.autoClose=p(a);break;case tt.attributes.AUTO_CLOSE_THRESHOLD:this.autoCloseThreshold=$(a);break}}layerSlottedPanels(t){this._core.layerSlottedPanels(t)}unlayerSlottedPanels(){this._core.unlayerSlottedPanels()}update(t){this._core.update(t)}refit(){this._core.refitSlottedPanels()}};s([v()],Ee.prototype,"orientation",2),s([v()],Ee.prototype,"disabled",2),s([v()],Ee.prototype,"allowClose",2),s([v()],Ee.prototype,"autoClose",2),s([v()],Ee.prototype,"autoCloseThreshold",2),Ee=s([y({name:tt.elementName,dependencies:[It]})],Ee);function H6(){b(Ee)}var Cx=`${x}stack`,L6={DEFAULT:"forge-stack"},zx={ROOT:`.${L6.DEFAULT}`},I6={INLINE:"inline",WRAP:"wrap",STRETCH:"stretch",GAP:"gap",ALIGNMENT:"alignment",JUSTIFY:"justify"},Ax=m({},I6),Bx={DEFAULT_GAP:"16"},Wt={elementName:Cx,classes:L6,observedAttributes:I6,attributes:Ax,selectors:zx,strings:Bx};var _l=class extends I{constructor(t){super(t),this._rootElement=w(t,Wt.selectors.ROOT)}setGap(t){let e=/^\d+$/.test(t)?`${t}px`:t;this._rootElement.style.gap=`var(--forge-stack-gap, ${e})`}};var fl=class{constructor(t){this._adapter=t;this._inline=!1;this._wrap=!1;this._stretch=!1;this._gap=Wt.strings.DEFAULT_GAP;this._alignment="start";this._justify="start"}get inline(){return this._inline}set inline(t){t=!!t,this._inline!==t&&(this._inline=t,this._adapter.toggleHostAttribute(Wt.attributes.INLINE,this._inline))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(Wt.attributes.WRAP,this._wrap))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(Wt.attributes.STRETCH,this._stretch))}get gap(){return this._gap}set gap(t){this._gap!==t&&(this._gap=t,this._adapter.setGap(this._gap),this._adapter.setHostAttribute(Wt.attributes.GAP,this._gap))}get alignment(){return this._alignment}set alignment(t){this._alignment!==t&&(this._alignment=t,this._adapter.setHostAttribute(Wt.attributes.ALIGNMENT,this._alignment))}get justify(){return this._justify}set justify(t){this._justify!==t&&(this._justify=t,this._adapter.setHostAttribute(Wt.attributes.JUSTIFY,this._justify))}};var Tx='<template><div class="forge-stack" part="root"><slot></slot></div></template>',Sx=".forge-stack{display:flex;flex-direction:column;align-items:var(--_stack-alignment);justify-content:var(--_stack-justify);gap:var(--_stack-gap);height:var(--_stack-height);width:100%;--_stack-gap:var(--forge-stack-gap, var(--forge-spacing-medium, 16px));--_stack-height:var(--forge-stack-height);--_stack-stretch:var(--forge-stack-stretch, initial);--_stack-alignment:var(--forge-stack-alignment, normal);--_stack-justify:var(--forge-stack-justify, normal);--_stack-wrap:var(--forge-stack-wrap, wrap)}.forge-stack ::slotted(*){flex:var(--_stack-stretch)}:host([inline]) .forge-stack{flex-direction:row}:host([inline][wrap]) .forge-stack{flex-wrap:wrap}:host(:not([inline])) .forge-stack{--_stack-height:var(--forge-stack-height, 100%)}:host([stretch]) ::slotted(*){--_stack-stretch:var(--forge-stack-stretch, 1)}:host([alignment=start]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, start)}:host([alignment=center]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, center)}:host([alignment=end]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, end)}:host([justify=start]) .forge-stack{--_stack-justify:var(--forge-stack-justify, start)}:host([justify=center]) .forge-stack{--_stack-justify:var(--forge-stack-justify, center)}:host([justify=end]) .forge-stack{--_stack-justify:var(--forge-stack-justify, end)}",de=class extends H{static get observedAttributes(){return Object.values(Wt.observedAttributes)}constructor(){super(),L(this,Tx,Sx),this._core=new fl(new _l(this))}attributeChangedCallback(t,e,a){switch(t){case Wt.observedAttributes.INLINE:this.inline=p(a);break;case Wt.observedAttributes.WRAP:this.wrap=p(a);break;case Wt.observedAttributes.STRETCH:this.stretch=p(a);break;case Wt.observedAttributes.GAP:this.gap=a;break;case Wt.observedAttributes.ALIGNMENT:this.alignment=a;break;case Wt.observedAttributes.JUSTIFY:this.justify=a;break}}};s([v()],de.prototype,"inline",2),s([v()],de.prototype,"wrap",2),s([v()],de.prototype,"stretch",2),s([v()],de.prototype,"gap",2),s([v()],de.prototype,"alignment",2),s([v()],de.prototype,"justify",2),de=s([y({name:Wt.elementName})],de);function V6(){b(de)}var xl=`${x}step`,la={STEP:"forge-step",STEP_CONTAINER:"container",ERROR:"error",SELECTED:"selected",COMPLETED:"completed",EDITABLE:"editable",ALTERNATIVE:"alternative",ICON_CONTENT:"icon-content",ICON:"icon",LABEL_CONTAINER:"label-container",LABEL:"label",OPTIONAL_LABEL:"optional-label",INDEX:"index",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",EXPANSION_PANEL:"expansion-panel",EXPANSION_ICON:"expanded-icon",EXPANSION_ICON_EXPANDED:"expanded-icon--expanded",EXPANSION_CONTENT:"expansion-content"},kx={SELECTED:"selected",INDEX:"index",EDITABLE:"editable",COMPLETED:"completed",ERROR:"error",ALTERNATIVE:"alternative",FIRST:"first",LAST:"last",ARIA_SELECTED:"aria-selected",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",IGNORE_USER_EXPANSION:"ignore-user-expansion"},Ox={STEP:`.${la.STEP}`,STEP_CONTAINER:`.${la.STEP_CONTAINER}`,INDEX:`.${la.INDEX}`,ICON:`.${la.ICON}`,ICON_CONTENT:`.${la.ICON_CONTENT}`,EXPANSION_SLOT:'slot[name="expansion-content"]',EXPANSION_PANEL:`.${la.EXPANSION_PANEL}`,EXPANSION_ICON:`.${la.EXPANSION_ICON}`},Dx={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",EXPANSION_CONTENT_SLOT_NAME:"expansion-content"},Px={SELECT:`${xl}-select`,EXPANDED_CONTENT_FOCUSIN:`${xl}-expanded-content-focusin`,EXPANDED_CONTENT_FOCUSOUT:`${xl}-expanded-content-focusout`},k={elementName:xl,classes:la,selectors:Ox,attributes:kx,events:Px,strings:Dx};var bl=class extends I{constructor(t){super(t),this._stepContainer=w(t,k.selectors.STEP),this._container=w(t,k.selectors.STEP_CONTAINER),this._stateLayerElement=w(this._component,L1.elementName)}get component(){return this._component}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","tab")}setIndex(t){this._stepContainer.querySelector(k.selectors.INDEX).innerHTML=(t+1||"").toString()}toggleRootClass(t,e){ft(this._stepContainer,e,t)}toggleDisabled(t){ft(this._stepContainer,t,k.classes.DISABLED),W(this._component,t,"aria-disabled"),this._stateLayerElement.disabled=t}toggleIcon(t,e){let a=this._stepContainer.querySelector(k.selectors.INDEX),o=this._stepContainer.querySelector(k.selectors.ICON);if(!e){a.style.display="inherit",o.style.display="none";return}a.style.display="none",o.style.display="inherit",o.name=t}slotHasContent(){return this._expansionSlot.assignedElements({flatten:!0}).length>0}setClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}setSlotListener(t){this._expansionSlot.addEventListener("slotchange",t)}removeSlotListener(t){this._expansionSlot&&this._expansionSlot.removeEventListener("slotchange",t)}setExpanded(t){this._expansionPanel&&(this._expansionPanel.open=t,W(this._expansionPanel,!t,"tabindex","-1")),ft(this._stepContainer,t,k.classes.EXPANDED)}setExpansionPanelAnimations(t){this._expansionPanel.animationType=t?"default":"none"}addExpansionPanel(){this._container.querySelector(k.selectors.EXPANSION_PANEL)||(this._expansionPanel=this._container.appendChild(this._createExpansionPanel()),this._expansionSlot=this._expansionPanel.querySelector(k.selectors.EXPANSION_SLOT))}removeExpansionPanel(){let t=this._container.querySelector(k.selectors.EXPANSION_PANEL);t&&this._container.removeChild(t)}addExpansionIcon(){this._stepContainer.querySelector(k.selectors.EXPANSION_ICON)||this._stepContainer.appendChild(this._createExpansionIcon())}removeExpansionIcon(){let t=this._stepContainer.querySelector(k.selectors.EXPANSION_ICON);t&&this._stepContainer.removeChild(t)}addExpansionPanelListener(t,e){this._expansionPanel.addEventListener(t,e)}removeExpansionPanelListener(t,e){this._expansionPanel&&this._expansionPanel.removeEventListener(t,e)}isExpandedContentInFocus(t){return this._expansionSlot.assignedElements().some(e=>e.contains(t||document.activeElement))}_createExpansionPanel(){let t=document.createElement("forge-expansion-panel");t.animationType="none",t.setAttribute("part","expansion-panel"),H1(k.classes.EXPANSION_PANEL,t);let e=document.createElement("slot");return e.setAttribute("name","expansion-content"),H1(k.classes.EXPANSION_CONTENT,e),t.appendChild(e),t}_createExpansionIcon(){let t=document.createElement("forge-icon");return H1(k.classes.EXPANSION_ICON,t),t.name="keyboard_arrow_down",t.setAttribute("part","expanded-icon"),t}};var yl=class{constructor(t){this._adapter=t;this._clickListener=()=>this._onClickListener(),this._expansionContentSlotChangeListener=e=>this._onExpansionContentSlotChange(e),this._expansionContentFocusInListener=e=>this._onExpansionContentFocusIn(e),this._expansionContentFocusOutListener=e=>this._onExpansionContentFocusOut(e)}initialize(){this._adapter.initialize(),this._applySelected(),this._toggleIcon(),this._vertical&&(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener),this._adapter.addExpansionPanelListener("focusin",this._expansionContentFocusInListener),this._adapter.addExpansionPanelListener("focusout",this._expansionContentFocusOutListener)),this._initialized=!0}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanelListener("focusin",this._onExpansionContentFocusIn),this._adapter.removeExpansionPanelListener("focusout",this._onExpansionContentFocusOut)}get index(){return this._index}set index(t){this._index!==t&&(this._index=t,this._applyIndex(),this._adapter.setHostAttribute(k.attributes.INDEX,t.toString()))}get editable(){return this._editable}set editable(t){this._editable!==t&&(this._editable=t,this._adapter.toggleHostAttribute(k.attributes.EDITABLE,t),this._applyEditable())}get completed(){return this._completed}set completed(t){this._completed!==t&&(this._completed=t,this._adapter.toggleHostAttribute(k.attributes.COMPLETED,t),this._applyCompleted())}get error(){return this._error}set error(t){this._error!==t&&(this._error=t,this._adapter.toggleHostAttribute(k.attributes.ERROR,t),this._applyError())}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(k.attributes.SELECTED,t),this._applySelected())}get alternative(){return this._alternative}set alternative(t){this._alternative!==t&&(this._alternative=t,this._adapter.toggleHostAttribute(k.attributes.ALTERNATIVE,t),this._applyAlternative())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._applyDisabled()}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._initialized&&(this._vertical?(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener)):(this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanel(),this._adapter.removeExpansionIcon())))}get expanded(){return this._expanded}set expanded(t){t!==this._expanded&&(this._expanded=t,this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded),this._initialized&&this._applyExpanded())}get ignoreUserExpansion(){return this._ignoreUserExpansion}set ignoreUserExpansion(t){t!==this._ignoreUserExpansion&&(this._ignoreUserExpansion=t)}_applyExpanded(){this._adapter.setExpanded(this._expanded)}_applyVertical(){this._adapter.toggleHostAttribute(k.attributes.VERTICAL,this._vertical),this._adapter.toggleRootClass(k.classes.VERTICAL,this._vertical)}_applyAlternative(){this._adapter.toggleRootClass(k.classes.ALTERNATIVE,this._alternative)}_applySelected(){this._adapter.toggleRootClass(k.classes.SELECTED,this._selected),this._adapter.setHostAttribute(k.attributes.ARIA_SELECTED,(this._selected||!1).toString()),this._adapter.hostElement.tabIndex=this._selected?0:-1,this._toggleIcon()}_applyIndex(){this._adapter.setIndex(this._index)}_applyEditable(){this._adapter.toggleRootClass(k.classes.EDITABLE,this._editable),this._toggleIcon()}_applyCompleted(){this._adapter.toggleRootClass(k.classes.COMPLETED,this._completed),this._toggleIcon()}_applyError(){this._adapter.toggleRootClass(k.classes.ERROR,this._error),this._toggleIcon()}_applyDisabled(){this._adapter.toggleDisabled(this._disabled),this._toggleIcon()}_getIconState(){return this._error?"warning":this._completed?this._editable?"mode_edit":"check":this._editable&&this._selected&&!this._disabled?"mode_edit":this._disabled?"block":""}_toggleIcon(){this._iconState=this._getIconState(),this._adapter.toggleIcon(this._iconState,this._iconState!=="")}_toggleExpanded(){this._adapter.slotHasContent()&&(this._expanded=!this._expanded,this._applyExpanded(),this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded))}_onClickListener(){this._vertical&&!this._ignoreUserExpansion&&this._toggleExpanded()}_onExpansionContentSlotChange(t){let e=this._adapter.slotHasContent();e?(this._adapter.setHostAttribute(k.attributes.EXPANDABLE),this._applyExpanded(),this._adapter.setExpansionPanelAnimations(!0)):(this._adapter.removeHostAttribute(k.attributes.EXPANDABLE),this._adapter.setExpansionPanelAnimations(!1)),this._adapter.toggleRootClass(k.classes.EXPANDABLE,e)}_onExpansionContentFocusIn(t){!this._expandedContentFocused&&this._adapter.isExpandedContentInFocus(t.target)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSIN,this._adapter.component),this._expandedContentFocused=!0)}_onExpansionContentFocusOut(t){t.relatedTarget&&!this._adapter.isExpandedContentInFocus(t.relatedTarget)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSOUT,this._adapter.component),this._expandedContentFocused=!1)}};var Nx='<template><div class="container" part="root"><div class="forge-step" part="step"><div class="before" part="before"></div><div class="icon-container" part="icon-container"><div class="icon-content" part="icon-content"><span class="index" part="index"></span><forge-icon class="icon" part="icon"></forge-icon></div></div><div class="text-container" part="text-container"><div class="title" part="title-container"><slot></slot></div><div class="subtitle" part="subtitle-container"><slot name="optional"></slot></div></div><div class="after" part="after"></div><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></div></template>',Rx=':host{--_step-primary-color:var(--forge-step-primary-color, var(--forge-theme-primary, #3f51b5));--_step-text-color:var(--forge-step-text-color, var(--forge-theme-on-primary, #ffffff));--_step-border-radius:var(--forge-step-border-radius, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_step-border-radius-vertical:var(--forge-step-border-radius-vertical, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_step-disabled-text-color:var(--forge-step-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_step-disabled-color:var(--forge-step-disabled-color, var(--forge-theme-surface-container-minimum, #f5f5f5));--_step-icon-fill:var(--forge-step-icon-fill, unset);--_step-icon-fill-active:var(--forge-step-icon-fill-active, var(--_step-primary-color));--_step-icon-text-color:var(--forge-step-icon-text-color, var(--forge-theme-primary, #3f51b5));--_step-icon-text-color-active:var(--forge-step-icon-text-color-active, var(--forge-theme-on-primary, #ffffff));--_step-icon-content-size:var(--forge-step-icon-content-size, 24px);--_step-icon-size:var(--forge-step-icon-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_step-icon-transition-duration:var(--forge-step-icon-transition-duration, var(--forge-animation-duration-medium4, 400ms));--_step-icon-transition-easing:var(--forge-step-icon-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_step-line-color:var(--forge-step-line-color, var(--forge-theme-outline, #e0e0e0));--_step-line-min-width:var(--forge-step-line-min-width, 10px);--_step-line-min-width-clustered:var(--forge-step-line-min-width-clustered, 25px);--_step-label-color:var(--forge-step-label-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_step-sub-label-color:var(--forge-step-sub-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_step-error-color:var(--forge-step-error-color, var(--forge-theme-error, #b00020));--_step-error-text-color:var(--forge-step-error-text-color, var(--forge-theme-on-error, #ffffff));--_step-expansion-panel-border-left-width:var(--forge-step-expansion-panel-border-left-width, 1px);--_step-expansion-panel-margin-bottom:var(--forge-step-expansion-panel-margin-bottom, 4px);--_step-expansion-panel-margin-left:var(--forge-step-expansion-panel-margin-left, 60px);--_step-expansion-panel-margin-top:var(--forge-step-expansion-panel-margin-top, 4px);--_step-expansion-panel-icon-color:var(--forge-step-expansion-panel-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host(:focus){outline:0}:host([error]){--forge-state-layer-color:var(--_step-error-color)}:host(:first-child[alternative])::after{align-self:flex-start;top:22px;margin:0}:host(:last-child[alternative])::before{align-self:flex-start;top:22px;margin:0}:host(:not(:first-child):not(:last-child)[alternative])::after,:host(:not(:first-child):not(:last-child)[alternative])::before{align-self:flex-start;top:22px;min-width:7px;margin:0}:host(:not(:last-child)[alternative]) .after{align-self:flex-start;top:22px;position:absolute;width:calc(50% - 18px);left:calc(50% + 18px);height:0;right:0}:host(:not(:first-child)[alternative]) .before{align-self:flex-start;top:22px;position:absolute;left:0;width:calc(50% - 18px);height:0}:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::after,:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host(:last-child):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px 0 0}:host(:is(:first-child)):host(:not([vertical]))::after{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host([vertical]){flex-direction:column}:host([vertical])::after{content:none}:host([vertical])::before{content:none}:host([vertical]) .forge-step{--_step-border-radius:var(--_step-border-radius-vertical);width:100%;min-height:52px}:host([vertical]) .forge-step .text-container{white-space:normal}:host([vertical]) .icon-container .icon-content{margin:0 16px 0 0}:host([vertical]) .expansion-panel{display:none}:host([vertical]) .expanded-icon{color:var(--_step-expansion-panel-icon-color);display:none;margin-left:auto}:host([vertical][expandable]) .expansion-panel{display:block}:host([ignore-user-expansion]) .forge-step .expanded-icon{display:none}forge-expansion-panel::part(root){border-color:var(--_step-line-color);margin-left:var(--_step-expansion-panel-margin-left);margin-top:var(--_step-expansion-panel-margin-top);margin-bottom:var(--_step-expansion-panel-margin-bottom);border-left-width:var(--_step-expansion-panel-border-left-width);border-left-style:solid}forge-focus-indicator{--forge-focus-indicator-color:var(--_step-primary-color);--forge-focus-indicator-shape:16px}.container{display:contents}.forge-step{-webkit-tap-highlight-color:transparent;padding:12px 16px;outline:0;background:0 0;border:none;border-radius:var(--_step-border-radius);position:relative;display:flex;overflow:hidden;align-items:center;box-sizing:border-box;cursor:pointer}.forge-step:focus{outline:0}.forge-step::-moz-focus-inner,.forge-step::-moz-focus-outer{padding:0;border:0}.forge-step.error forge-focus-indicator{--forge-focus-indicator-color:var(--_step-error-color)}.forge-step.vertical forge-focus-indicator{--forge-focus-indicator-shape:4px}.forge-step.selected:not(.disabled){--forge-state-layer-color:var(--_step-primary-color)}.forge-step.selected:not(.disabled)::before{background-color:var(--_step-primary-color);content:"";position:absolute;inset:0;opacity:.08;height:100%;width:100%}.forge-step.selected:not(.disabled).error{--_step-primary-color:var(--_step-error-color)}.forge-step .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);color:var(--_step-label-color);text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle{text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle ::slotted(*){color:var(--_step-sub-label-color);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.forge-step .icon-container .icon-content{color:var(--_step-icon-text-color);background-color:var(--_step-icon-fill);height:var(--_step-icon-content-size);width:var(--_step-icon-content-size);border-style:solid;border-width:2px;border-color:transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color var(--_step-icon-transition-duration) var(--_step-icon-transition-easing);margin:0 8px 0 0;flex:none}.forge-step .icon-container .icon-content forge-icon{font-size:var(--_step-icon-size)}.forge-step.disabled{color:var(--_step-disabled-text-color);cursor:not-allowed}.forge-step.disabled.forge-step .icon-container .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .title{color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .subtitle ::slotted(*){color:var(--_step-disabled-text-color)}.forge-step.alternative{flex-direction:column}.forge-step.alternative .icon-container .icon-content{margin:0}.forge-step.alternative .text-container{margin-top:8px;place-items:center}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content{border-color:var(--_step-primary-color)}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content .index,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content .index{color:var(--_step-primary-color)}.forge-step.selected.disabled .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.selected:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.selected:not(.disabled) .title{color:var(--_step-primary-color);font-weight:500}.forge-step.selected:not(.disabled) .subtitle ::slotted(*){color:var(--_step-primary-color);font-weight:500}.forge-step.error:not(.disabled) .title{color:var(--_step-error-color)}.forge-step.error:not(.disabled) .subtitle ::slotted(*){color:var(--_step-error-color)}.forge-step.error:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-error-color);--_step-icon-text-color:var(--_step-error-text-color)}.forge-step.completed:not(.disabled):not(.error):not(.editable) .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.completed:not(.disabled):not(.error).editable .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.expandable .expanded-icon{display:inline-block;transition:transform .3s ease-in-out}.forge-step.expandable.expanded .expanded-icon{transform:rotate(180deg)}.forge-step.expandable .icon-container .icon-content{margin:0 16px 0 0}.forge-step .text-container{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:not(:last-child)[clustered])::after{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:last-child[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:not(:first-child):not(:last-child)[clustered])::after,:host(:not(:first-child):not(:last-child)[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}',Xt=class extends H{static get observedAttributes(){return[k.attributes.COMPLETED,k.attributes.EDITABLE,k.attributes.ERROR,k.attributes.INDEX,k.attributes.SELECTED,k.attributes.ALTERNATIVE,k.attributes.DISABLED,k.attributes.VERTICAL,k.attributes.EXPANDED,k.attributes.IGNORE_USER_EXPANSION]}constructor(){super(),j.define([u3,l3,b3,i3,i0]),L(this,Nx,Rx),this._core=new yl(new bl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case k.attributes.INDEX:this.index=$(a);break;case k.attributes.COMPLETED:this.completed=p(a);break;case k.attributes.EDITABLE:this.editable=p(a);break;case k.attributes.ERROR:this.error=p(a);break;case k.attributes.SELECTED:this.selected=p(a);break;case k.attributes.ALTERNATIVE:this.alternative=p(a);break;case k.attributes.DISABLED:this.disabled=p(a);break;case k.attributes.VERTICAL:this.vertical=p(a);break;case k.attributes.EXPANDED:this.expanded=p(a);break;case k.attributes.IGNORE_USER_EXPANSION:this.ignoreUserExpansion=p(a);break}}};s([v()],Xt.prototype,"alternative",2),s([v()],Xt.prototype,"index",2),s([v()],Xt.prototype,"editable",2),s([v()],Xt.prototype,"completed",2),s([v()],Xt.prototype,"error",2),s([v()],Xt.prototype,"selected",2),s([v()],Xt.prototype,"disabled",2),s([v()],Xt.prototype,"vertical",2),s([v()],Xt.prototype,"expanded",2),s([v()],Xt.prototype,"ignoreUserExpansion",2),Xt=s([y({name:k.elementName,dependencies:[Q,Qt,i1,t1]})],Xt);function E6(){b(Xt)}var Fx=`${x}stepper`,C6={STEPPER:"forge-stepper",LINEAR:"linear",ALTERNATIVE:"alternative",CLUSTERED:"clustered",FIXED:"fixed",ALIGN_LEFT:"align-left",ALIGN_CENTER:"align-center",ALIGN_RIGHT:"align-right",VERTICAL:"vertical",FOCUSED:"focused"},Ux={STEPPER:`.${C6.STEPPER}`},Wx={SELECTED_INDEX:"selected-index",LINEAR:"linear",ALTERNATIVE:"alternative",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",DISABLED:"disabled",VERTICAL:"vertical"},_2={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_KEY:"Tab"},Pa={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,HOME_KEYCODE:36,ENTER_KEYCODE:13,SPACE_KEYCODE:32},Gx=[_2.ARROW_LEFT_KEY,_2.ARROW_RIGHT_KEY,_2.ARROW_DOWN_KEY,_2.ARROW_UP_KEY,_2.END_KEY,_2.HOME_KEY,_2.ENTER_KEY,_2.SPACE_KEY,_2.TAB_KEY],Yx={[Pa.ARROW_LEFT_KEYCODE]:_2.ARROW_LEFT_KEY,[Pa.ARROW_RIGHT_KEYCODE]:_2.ARROW_RIGHT_KEY,[Pa.END_KEYCODE]:_2.END_KEY,[Pa.HOME_KEYCODE]:_2.HOME_KEY,[Pa.ENTER_KEYCODE]:_2.ENTER_KEY,[Pa.SPACE_KEYCODE]:_2.SPACE_KEY},F={elementName:Fx,classes:C6,selectors:Ux,attributes:Wx,numbers:Pa,strings:_2,ACCEPTABLE_KEYS:Gx,KEYCODE_MAP:Yx};var b0=class r{static createStepElement(t,e,a){var n,i;let o=document.createElement(k.elementName);return o.index=e,o.completed=t.completed||!1,o.editable=t.editable||!1,o.selected=a.selectedIndex===e,o.alternative=a.alternative,o.error=t.error||!1,o.disabled=t.disabled||!1,o.vertical=(i=(n=t.vertical)!=null?n:a.vertical)!=null?i:!1,o.ignoreUserExpansion=t.ignoreUserExpansion||!1,o.expanded=t.expanded||!1,a.linear&&e>a.selectedIndex&&(o.tabIndex=-1),o.textContent=t.label,t.optionalLabel&&o.appendChild(this.createStepOptionalLabel(t.optionalLabel)),o}static createStepOptionalLabel(t){let e=document.createElement("span");return e.slot="optional",e.textContent=t||"",e}static setLinearState(t,e){let a=t.classList.contains(F.classes.LINEAR);a&&!e&&(t.classList.remove(F.classes.LINEAR),a=!1),!a&&e&&t.classList.add(F.classes.LINEAR)}static setAlternativeState(t,e){let a=t.classList.contains(F.classes.ALTERNATIVE);a&&!e&&(t.classList.remove(F.classes.ALTERNATIVE),a=!1),!a&&e&&t.classList.add(F.classes.ALTERNATIVE)}static setLayoutMode(t,e){switch(e){case"clustered":t.classList.contains(F.classes.FIXED)&&t.classList.remove(F.classes.FIXED),t.classList.add(F.classes.CLUSTERED);break;case"fixed":t.classList.contains(F.classes.CLUSTERED)&&t.classList.remove(F.classes.CLUSTERED),t.classList.add(F.classes.FIXED);break}}static setLayoutAlign(t,e){switch(t.classList.contains(F.classes.ALIGN_LEFT)&&t.classList.remove(F.classes.ALIGN_LEFT),t.classList.contains(F.classes.ALIGN_CENTER)&&t.classList.remove(F.classes.ALIGN_CENTER),t.classList.contains(F.classes.ALIGN_RIGHT)&&t.classList.remove(F.classes.ALIGN_RIGHT),e){case"left":t.classList.add(F.classes.ALIGN_LEFT);break;case"center":t.classList.add(F.classes.ALIGN_CENTER);break;case"right":t.classList.add(F.classes.ALIGN_RIGHT);break}}static createSteps(t){let e=[];return t.steps.forEach((a,o)=>{let n=r.createStepElement(a,o,t);e.push(n)}),e[0].setAttribute(k.attributes.FIRST,""),e[e.length-1].setAttribute(k.attributes.LAST,""),e}};var Ml=class extends I{constructor(t){super(t),this._rootElement=w(t,F.selectors.STEPPER),this._slotElement=this._rootElement.querySelector("slot")}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}patchSafari(){this._applyToSteps(t=>t.setAttribute("safari",""))}addSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}removeSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}getLastStep(){let t=this._getSteps();return t.item(t.length-1)}setSelected(t){this._getSteps().forEach(e=>{e===t?e.selected=!0:e.selected=!1})}assignIndices(){this._getSteps().forEach((e,a)=>{e.index=a})}assignFirstLastStep(){let t=this._getSteps();t&&t.length>1&&(t[0].setAttribute("first",""),t[t.length-1].setAttribute("last",""))}setLayoutAlign(t){b0.setLayoutAlign(this._rootElement,t)}setLayoutMode(t){b0.setLayoutMode(this._rootElement,t),this._applyToSteps(e=>e.setAttribute(k.attributes.CLUSTERED,""))}setAlternativeState(t){b0.setAlternativeState(this._rootElement,t),this._applyToSteps(e=>e.alternative=t)}setVertical(t){ft(this._rootElement,t,F.classes.VERTICAL),this._applyToSteps(e=>e.vertical=t)}setLinearState(t){b0.setLinearState(this._rootElement,t)}removeRootListener(t,e){this._rootElement.removeEventListener("click",e)}addRootListener(t,e){this._rootElement.addEventListener(t,e)}setSelectedByIndex(t){this._applyToSteps(e=>{e.selected&&e.index!==t&&(e.selected=!1),e.index===t&&(e.selected=!0)})}applyConfiguredSteps(t){this._component.querySelectorAll(k.elementName).forEach(e=>{this._component.removeChild(e)}),t.forEach(e=>this._component.appendChild(e))}tryGetFocusedStep(){let t;return this._applyToSteps(e=>{e.matches(":focus-within")&&(t=e)}),t}getFocusedOrSelectedStep(){let t=this.tryGetFocusedStep();return t||(t=this._getSteps()[0],t.focus()),t}getStep(t){let e=0,a=this._getSteps();return t<0?a.item(a.length-1):(a.length>t&&(e=t),a.item(e))}toggleDisabled(t){this._applyToSteps(e=>e.disabled=t)}toggleRootClass(t,e){ft(this._rootElement,e,t)}isStepperFocused(){return this._rootElement.classList.contains(F.classes.FOCUSED)}setStepsListener(t,e){this._applyToSteps(a=>a.addEventListener(t,e))}removeStepsListener(t,e){this._applyToSteps(a=>a.removeEventListener(t,e))}_applyToSteps(t){this._getSteps().forEach(t)}_getSteps(){return this._component.querySelectorAll(k.elementName)}};var Hl=class{constructor(t){this._adapter=t;this._steps=[];this._selectedIndex=0;this._linear=!1;this._alternative=!1;this._layoutMode="fixed";this._layoutAlign="center";this._initialize=!1;this._clickListener=e=>this._handleClick(e),this._keyListener=e=>this._onKeydown(e),this._stepFocusListener=()=>this._onStepFocus(),this._stepBlurListener=()=>this._onStepBlur(),this._stepExpandedContentFocusInListener=e=>this._onStepExpandedContentFocusIn(e),this._stepExpandedContentFocusOutListener=e=>this._onStepExpandedContentFocusOut(e),this._slotChangeListener=e=>this._onSlotChange(e)}initialize(){this._adapter.initializeAccessibility(),this._adapter.assignIndices(),this._adapter.setLinearState(this._linear),this._adapter.setAlternativeState(this._alternative),this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setLayoutMode(this._layoutMode),this._adapter.addRootListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keyListener),this._adapter.assignFirstLastStep(),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSIN,this._stepExpandedContentFocusInListener),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSOUT,this._stepExpandedContentFocusOutListener),this._applySelectedIndex(),this._patchBrowser(),this._adapter.setStepsListener("blur",this._stepBlurListener),this._adapter.setStepsListener("focus",this._stepFocusListener),this._initialize||this._adapter.addSlotChangeListener(this._slotChangeListener),this._initialize=!0}destroy(){this._adapter.removeRootListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keyListener),this._adapter.removeSlotChangeListener(this._slotChangeListener),this._adapter.removeStepsListener("blur",this._stepBlurListener),this._adapter.removeStepsListener("focus",this._stepFocusListener)}get steps(){return this._steps.map(t=>m({},t))}set steps(t){if(Array.isArray(t)&&t.length>0)this._steps=[...t.map(e=>m({},e))];else{this._steps=[];return}this._renderConfiguration()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){if(!O(t))t=0;else if(!kt(t)){let e=Number(t);t=isNaN(e)?0:e}this._selectedIndex!==t&&(this._selectedIndex=t,this._adapter.setHostAttribute(F.attributes.SELECTED_INDEX,this._selectedIndex.toString()),this._applySelectedIndex())}get linear(){return this._linear}set linear(t){t=!!t,this._linear!==t&&(this._linear=t,this._adapter.setLinearState(this._linear),this._adapter.setHostAttribute(F.attributes.LINEAR,this._linear.toString()))}get alternative(){return this._alternative}set alternative(t){t=!!t,this._alternative!==t&&(this._alternative=t,this._adapter.setAlternativeState(this._alternative),this._adapter.setHostAttribute(F.attributes.ALTERNATIVE,this._alternative.toString()))}get layoutMode(){return this._layoutMode}set layoutMode(t){/^(fixed|clustered)$/.test(t)&&this._layoutMode!==t&&(this._layoutMode=t,this._adapter.setHostAttribute(F.attributes.LAYOUT_MODE,this._layoutMode),this._adapter.setLayoutMode(this._layoutMode))}get layoutAlign(){return this._layoutAlign}set layoutAlign(t){/^(left|center|right)$/.test(t)&&this._layoutAlign!==t&&(this._layoutAlign=t,this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setHostAttribute(F.attributes.LAYOUT_ALIGN,this._layoutAlign))}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._applyDisabled())}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._adapter.toggleHostAttribute(F.attributes.VERTICAL,this._vertical))}_applyVertical(){this._adapter.setVertical(this._vertical)}_applyDisabled(){this._disabled?this._adapter.setHostAttribute(F.attributes.DISABLED,"disabled"):this._adapter.removeHostAttribute(F.attributes.DISABLED),this._adapter.toggleDisabled(this._disabled)}_applySelectedIndex(){this._adapter.setSelectedByIndex(this._selectedIndex)}_handleClick(t){if(t.preventDefault(),this._linear)return;let a=Et(t).filter(o=>o.nodeType===Node.ELEMENT_NODE).find(o=>o.matches(k.elementName));a&&!a.selected&&!a.disabled&&this._adapter.emitHostEvent(k.events.SELECT,a.index,!0,!0)&&(this._adapter.setSelected(a),this.selectedIndex=a.index)}_renderConfiguration(){let t=b0.createSteps({steps:this._steps,vertical:this._vertical,selectedIndex:this._selectedIndex,alternative:this._alternative,layoutAlign:this._layoutAlign,layoutMode:this._layoutMode,linear:this._linear});this.destroy(),this._adapter.applyConfiguredSteps(t),this.initialize()}_onKeydown(t){var o;if(this._linear)return;let e=this._getKeyFromEvent(t);if(!this._adapter.isStepperFocused()||!e)return;if([k.strings.HOME_KEY,k.strings.END_KEY,k.strings.ARROW_DOWN_KEY,F.strings.ARROW_UP_KEY,F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)&&t.preventDefault(),[F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)){(o=this._adapter.getFocusedOrSelectedStep())==null||o.click();return}let a=this._vertical?this._determineVerticalMoveTarget(e):this._determineMoveTarget(e);a&&this._moveFocusTo(a)}_moveFocusTo(t){t.focus()}_getKeyFromEvent(t){return F.ACCEPTABLE_KEYS.includes(t.key)?t.key:F.KEYCODE_MAP[t.keyCode]}_determineMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_RIGHT_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_LEFT_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_determineVerticalMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_DOWN_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_UP_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_onSlotChange(t){this.destroy(),this.initialize()}_onStepExpandedContentFocusIn(t){let e=this._adapter.getStep(t.detail.index+1);e&&(e.tabIndex=0),t.detail.tabIndex=0}_onStepExpandedContentFocusOut(t){let e=t.target,a=this._adapter.getStep(e.index+1);a&&(a.tabIndex=-1),e.tabIndex=-1}_onStepFocus(){this._adapter.toggleRootClass(F.classes.FOCUSED,!0)}_onStepBlur(){this._adapter.toggleRootClass(F.classes.FOCUSED,!1)}_patchBrowser(){new Zt().SAFARI()&&this._adapter.patchSafari()}};var Kx='<template><div class="forge-stepper" part="root"><slot></slot></div></template>',qx=":host{display:block}:host([hidden]){display:none}:host([vertical]) .forge-stepper{display:unset;align-items:unset;white-space:unset;overflow:unset}.forge-stepper{display:flex;align-items:center;white-space:nowrap;overflow:hidden}.forge-stepper:not(.vertical) ::slotted(*){display:flex;align-items:center;position:relative;min-width:112px}.forge-stepper.fixed ::slotted(*){flex:1}.forge-stepper.alternative{align-items:flex-start}.forge-stepper.alternative ::slotted(*){min-width:160px}.forge-stepper.align-left{justify-content:flex-start}.forge-stepper.align-center{justify-content:center}.forge-stepper.align-right{justify-content:flex-end}",D2=class extends H{static get observedAttributes(){return[F.attributes.SELECTED_INDEX,F.attributes.LINEAR,F.attributes.ALTERNATIVE,F.attributes.LAYOUT_MODE,F.attributes.LAYOUT_ALIGN,F.attributes.DISABLED,F.attributes.VERTICAL]}constructor(){super(),L(this,Kx,qx),this._core=new Hl(new Ml(this))}async connectedCallback(){await Ga(this),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case F.attributes.SELECTED_INDEX:this.selectedIndex=Number(a)||0;break;case F.attributes.LINEAR:this.linear=p(a);break;case F.attributes.ALTERNATIVE:this.alternative=p(a);break;case F.attributes.LAYOUT_MODE:this.layoutMode=a;break;case F.attributes.LAYOUT_ALIGN:this.layoutAlign=a;break;case F.attributes.DISABLED:this.disabled=p(a);break;case F.attributes.VERTICAL:this.vertical=p(a);break}}};s([v()],D2.prototype,"steps",2),s([v()],D2.prototype,"selectedIndex",2),s([v()],D2.prototype,"linear",2),s([v()],D2.prototype,"alternative",2),s([v()],D2.prototype,"layoutMode",2),s([v()],D2.prototype,"layoutAlign",2),s([v()],D2.prototype,"disabled",2),s([v()],D2.prototype,"vertical",2),D2=s([y({name:F.elementName,dependencies:[Xt]})],D2);function z6(){b(D2)}var y0=`${x}table`,A6={TABLE:"forge-table",TABLE_DENSE:"forge-table--dense",TABLE_ROOMY:"forge-table--roomy",TABLE_RESIZABLE:"forge-table--resizable",TABLE_RESIZING:"forge-table--resizing",TABLE_RESIZE_HANDLE:"forge-table__resize-handle",TABLE_NO_WRAP_CONTENT:"forge-table--no-wrap-content",TABLE_LAYOUT_FIXED:"forge-table--layout-fixed",TABLE_FILTER_VISIBLE:"forge-table--filter-visible",TABLE_FIXED:"forge-table--fixed",TABLE_HEAD:"forge-table-head",TABLE_HEAD_ROW:"forge-table-head__row",TABLE_HEAD_ROW_FILTER:"forge-table-head__row__filter",TABLE_HEAD_CELL:"forge-table-head__cell",TABLE_HEAD_CELL_CONTAINER:"forge-table-head__cell-container",TABLE_HEAD_CELL_SORTABLE:"forge-table-head__cell--sortable",TABLE_HEAD_CELL_SORT_ICON:"forge-table-head__cell-sort-icon",TABLE_HEAD_CELL_TEXT:"forge-table-head__cell-text",TABLE_HEAD_CELL_SORT_ICON_ACTIVE:"forge-table-head__cell-sort-icon--active",TABLE_HEAD_CELL_SORTED_ASCENDING:"forge-table-head__cell--sorted-ascending",TABLE_HEAD_CELL_SORTED_DESCENDING:"forge-table-head__cell--sorted-descending",TABLE_HEAD_CELL_SORT_ORDER:"forge-table-head__cell__sort-order",TABLE_HEAD_CELL_SORT_ORDER_HIDDEN:"forge-table-head__cell__sort-order--hidden",TABLE_BODY:"forge-table-body",TABLE_BODY_ROW:"forge-table-body__row",TABLE_BODY_ROW_SELECTED:"forge-table-body__row--selected",TABLE_BODY_ROW_CLICKABLE:"forge-table-body__row--clickable",TABLE_BODY_CELL:"forge-table-body__cell",TABLE_ROW:"forge-table-row",TABLE_ROW_EXPANDED:"forge-table-row--expanded",TABLE_ROW_EXPANDABLE_CONTENT:"forge-table-row__expandable-content",TABLE_ROW_EXPANDABLE_CONTENT_CELL:"forge-table-row__expandable-content-cell",TABLE_CELL:"forge-table-cell",TABLE_CELL_SELECT:"forge-table-cell__select",TABLE_CELL_SELECT_CHECKBOX:"forge-table-cell__select-checkbox",TABLE_CELL_SELECT_CHECKBOX_CONTAINER:"forge-table-cell__select-checkbox-container",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT:"forge-table-cell__select-checkbox-container--align-right",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT:"forge-table-cell__select-checkbox-container--align-left",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER:"forge-table-cell__select-checkbox-container--align-center",TABLE_CELL_CONTAINER:"forge-table-cell__container",TABLE_CELL_CONTAINER_TEXT:"forge-table-cell__container-text",TABLE_CELL_CENTER:"forge-table-cell--center",TABLE_CELL_RIGHT:"forge-table-cell--right",TABLE_CELL_RESIZABLE:"forge-table-cell--resizing"},$x={TABLE:".forge-table",CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",SELECT_ALL_TEMPLATE_CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",ROW_SELECTED:`.${A6.TABLE_BODY_ROW_SELECTED}`},Xx={SELECT:"select",MULTISELECT:"multiselect",SELECT_KEY:"select-key",DENSE:"dense",ROOMY:"roomy",FILTER:"filter",FIXED_HEADERS:"fixed-headers",LAYOUT_TYPE:"layout-type",WRAP_CONTENT:"wrap-content",RESIZABLE:"resizable",MIN_RESIZE_WIDTH:"min-resize-width",ALLOW_ROW_CLICK:"allow-row-click",MULTI_COLUMN_SORT:"multi-column-sort",SELECT_CHECKBOX_ALIGNMENT:"select-checkbox-alignment",TOOLTIP_SELECT:"tooltip-select",TOOLTIP_SELECT_ALL:"tooltip-select-all",CHECKBOX_TYPE:"forge-checkbox-type",CUSTOM_CELL_TEMPLATE:"data-cell-template",CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION:"data-cell-template-stop-propagation",SELECT_CHECKBOX:"forge-table-row-select-checkbox"},jx={ROW_CLICK:`${y0}-row-click`,SELECT:`${y0}-select`,SELECT_DOUBLE:`${y0}-select-double`,SELECT_ALL:`${y0}-select-all`,SORT:`${y0}-sort`,FILTER:`${y0}-filter`,INITIALIZED:`${y0}-initialized`,COLUMN_RESIZE:`${y0}-column-resize`},Zx={SELECT_ALL:"select-all",SELECT_ROW:"select-row",DEFAULT_LAYOUT_TYPE:"auto"},Qx={SORT_DOWN:"arrow_downward"},Jx={DEFAULT_FILTER_DEBOUNCE_TIME:750,MIN_RESIZE_WIDTH:100,RESIZE_HOVER_DURATION:150},_={elementName:y0,classes:A6,selectors:$x,attributes:Xx,events:jx,strings:Zx,icons:Qx,numbers:Jx};var Ll=(a=>(a.Left="left",a.Right="right",a.Center="center",a))(Ll||{}),Il=(a=>(a.Ascending="ASC",a.Descending="DESC",a.Unset="UNSET",a))(Il||{}),tb=(i=>(i.InputText="text",i.InputNumber="number",i.Select="select",i.SelectMultiple="select-multiple",i.Date="date",i.DateRange="date-range",i))(tb||{});function B6(r){return r&&typeof r=="object"&&"content"in r}var A1=class r{static createTable(t){r._resetTable(t.tableElement);let e=r._createTableHead(t),a=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(a,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(a)),t.fixedHeaders&&r.setFixedHeaders(t),t.resizable&&r.setResizable(t),t.dense&&r.setDenseState(t.tableElement,t.dense),t.wrapContent&&r.setWrapContentState(t.tableElement,t.wrapContent),t.selectListener&&r._addSelectColumn(e,a,t.selectListener,t.selectAllListener,t.selectAllTemplate,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),(t.resizable||t.columnConfigurations.some(o=>!!o.sortable))&&(r._attachHeadRowMouseDownListener(e,t.headRowMouseDownListener),r._isMac()&&r._attachHeadRowContextMenuListener(e,t.headRowContextMenuListener)),r.setLayoutType(t),r._setTableHead(t.tableElement,e),t.filter&&r.setFilterRow(t),r._setTableBody(t.tableElement,a)}static _setTableHead(t,e){t.tHead?e0(e,t.tHead):t.appendChild(e)}static _setTableBody(t,e){t.tBodies.length?e0(e,t.tBodies[0]):t.appendChild(e)}static recreateTableBody(t){let e=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(e,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(e)),t.selectListener&&(r._createBodySelectColumn(e,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),r._attachRowSelectListeners(e,t.selectListener)),r._setTableBody(t.tableElement,e)}static _resetTable(t){rt(t)}static _createMultisortTooltip(){let t=document.createElement("forge-tooltip");return t.textContent="Ctrl + click to sort multiple columns",t.placement="bottom",t.delay=0,t}static _createTableHead(t){let e=document.createElement("thead"),a=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW],a);let o=!1;for(let n=0;n<t.columnConfigurations.length;n++){let i=t.columnConfigurations[n],l=document.createElement("th");l.scope="col",H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],l);let h;if(i.sortable?(h=document.createElement("button"),h.type="button",h.addEventListener("keydown",t.sortableHeadCellKeydownListener)):h=document.createElement("div"),h.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),t.multiColumnSort){let c=r._createMultisortTooltip();h.appendChild(c)}if(i.align&&r._setCellAlignmentClass(h,i.align),O(i.width)){let c=ql(i.width);c&&(l.style.width=c)}if(t.resizable&&i.resizable!==!1){let c=document.createElement("div");c.classList.add(_.classes.TABLE_RESIZE_HANDLE),l.appendChild(c)}if(O(i.headerCellStyle)&&l2(i.headerCellStyle)&&(Object.assign(l.style,i.headerCellStyle),Object.assign(h.style,i.headerCellStyle)),i.sortable){l.classList.add(_.classes.TABLE_HEAD_CELL_SORTABLE);let c=document.createElement("span");H1([_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,_.classes.TABLE_HEAD_CELL_SORT_ORDER],c);let d=document.createElement(p1.elementName);d.name=_.icons.SORT_DOWN,H1([_.classes.TABLE_HEAD_CELL_SORT_ICON],d),t.multiColumnSort?typeof i.initialSort=="object"&&i.initialSort.sortOrder&&(c.textContent=i.initialSort.sortOrder.toString(),t.columnConfigurations.filter(u=>typeof u.initialSort=="object").length>1&&ge(_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,c),l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,i.initialSort.direction)):t.sortedColumn===n&&!o&&!t.multiColumnSort&&(l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,t.sortDirection),o=!0),h.appendChild(d),h.appendChild(c)}if(typeof i.headerTemplate=="function")Promise.resolve(i.headerTemplate(n,h,i)).then(c=>{if(c){let d=document.createElement("div");H1(_.classes.TABLE_CELL_CONTAINER,d),typeof c=="string"?d.innerHTML=c:r._prepend(c,d),d.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),r._prepend(d,h)}});else{let c=document.createElement("span");c.classList.add(_.classes.TABLE_HEAD_CELL_TEXT),c.textContent=i.header&&typeof i.header=="string"?i.header.trim():"",c.textContent.trim().length===0&&l.setAttribute("aria-hidden","true"),r._prepend(c,h)}l.appendChild(h),a.appendChild(l)}return e}static setSortDirection(t,e,a){let o=r._getHeaderCellByIndex(t,e);t.querySelectorAll("th[aria-sort]").forEach(n=>n.removeAttribute("aria-sort")),r._setColumnSortDirection(o,a)}static _setColumnSortDirection(t,e){t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),!e||e==="DESC"?(t.setAttribute("aria-sort","descending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)):(t.setAttribute("aria-sort","ascending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING))}static _createTableBody(t){let e=document.createElement("tbody");return r._getOrderedRowData(t.columnConfigurations,t.data).forEach((o,n)=>{let i=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW],i),r._populateRowCells(t,i,o,n),typeof t.rowCreatedCallback=="function"&&t.rowCreatedCallback(i,n,m({},t.data[n].data))}),e}static _populateRowCells(t,e,a,o){for(let n=0;n<a.length;n++){let i=t.columnConfigurations[n],l=e.insertCell();if(H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL],l),O(i.width)){let c=ql(i.width);c&&(l.style.width=c)}let h=document.createElement("div");if(h.classList.add(_.classes.TABLE_CELL_CONTAINER),O(i.cellStyle)&&l2(i.cellStyle)&&(Object.assign(l.style,i.cellStyle),Object.assign(h.style,i.cellStyle)),i.template&&typeof i.template=="function"){let c=t.data[o]?t.data[o].data:void 0;Promise.resolve(i.template(o,h,c,n)).then(d=>{let u=B6(d)?d:{content:d,stopClickPropagation:i.stopCellTemplateClickPropagation};u.content&&(typeof u.content=="string"?h.innerHTML=u.content:h.appendChild(u.content),h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),u.stopClickPropagation&&h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION,""))})}else if(i.property){let c=document.createElement("span");c.classList.add(_.classes.TABLE_CELL_CONTAINER_TEXT),h.appendChild(c),i.transform&&typeof i.transform=="function"?Promise.resolve(i.transform(a[n])).then(d=>c.textContent=d):a[n]==null?c.textContent="":c.textContent=a[n].toString()}if(i.align&&r._setCellAlignmentClass(h,i.align),l.appendChild(h),O(i.columnSpan)){if(i.columnSpan==="all"){l.colSpan=a.length-n;break}else if(typeof i.columnSpan=="number"&&i.columnSpan>0){let c=i.columnSpan;i.columnSpan>a.length-n&&(c=a.length),l.colSpan=c,n=n+(c-1)}}typeof t.cellCreatedCallback=="function"&&t.cellCreatedCallback(l,o,n)}}static _setCellAlignmentClass(t,e){switch(e){case"center":t.classList.add(_.classes.TABLE_CELL_CENTER);break;case"right":t.classList.add(_.classes.TABLE_CELL_RIGHT);break}}static _getNonExpandedRows(t){return Array.from(t).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _getExpandedRows(t){return Array.from(t).filter(e=>e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _createColumnDataMap(t,e){return t.map(a=>({config:a,data:e.map(o=>{if(a.property){let n=S5(o.data,a.property);return O(n)?n:null}return null})}))}static _getOrderedRowData(t,e){let a=r._createColumnDataMap(t,e),o=[];for(let n of a)for(let i=0;i<n.data.length;i++)o[i]||(o[i]=[]),o[i].push(n.data[i]);return o}static _attachRowClickListeners(t,e,a){r._getNonExpandedRows(t.rows).forEach(n=>{n.addEventListener("click",e),a&&n.addEventListener("dblclick",a)})}static _addRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.add(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _removeRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.remove(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _attachRowSelectListeners(t,e){r._getNonExpandedRows(t.rows).forEach(o=>r._attachRowSelectListener(o,e))}static _attachRowSelectListener(t,e){let a=r._getCheckboxElement(t);a==null||a.addEventListener("change",e),a==null||a.addEventListener("keydown",e),a==null||a.addEventListener("pointerdown",e)}static _detachRowSelectListeners(t,e){Array.from(t.rows).forEach(a=>{let o=r._getCheckboxElement(a);o==null||o.removeEventListener("change",e),o==null||o.removeEventListener("keydown",e),o==null||o.removeEventListener("pointerdown",e)})}static _detachRowClickListeners(t,e,a){Array.from(t.rows).forEach(o=>{o.removeEventListener("click",e),o.removeEventListener("dblclick",a)})}static _attachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._getCheckboxElement(a);if(!o)throw new Error("Checkbox element not found.");o.addEventListener("change",e)}static _tryAttachSelectAllTemplateListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.addEventListener("change",e)}static _detachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.removeEventListener("change",e)}static _attachHeadRowMouseDownListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("mousedown",e)}static _attachHeadRowContextMenuListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("contextmenu",e)}static _createSelectColumn(t,e,a,o,n,i,l,h,c){t&&r._createHeadSelectColumn(t,a,o,n,i,c),e&&r._createBodySelectColumn(e,i,l,h,c)}static _createHeadSelectColumn(t,e,a,o,n,i){var l;if(Array.from(t.rows).forEach(h=>{let c=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],c),h.insertBefore(c,h.cells.item(0))}),e){let h=(l=t.rows.item(t.rows.length-1))==null?void 0:l.cells.item(0);h.classList.add(_.classes.TABLE_CELL_SELECT),typeof a=="function"?r._renderSelectAllTemplate(a,t).then(()=>{typeof o=="function"&&o()}):h==null||h.appendChild(r._createCheckboxElement(!0,n,null,null,null,i))}}static _createBodySelectColumn(t,e,a,o,n){if(r._getNonExpandedRows(t.rows).forEach((l,h)=>r._addRowSelectColumn(l,e,h,a[h],o,n)),t.rows.length){let l=t.rows.item(0);l&&r._updateExpandedRowColspan(t.rows,l.cells.length)}}static _addRowSelectColumn(t,e,a,o,n,i){let l=t.insertCell(0);H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL,_.classes.TABLE_CELL_SELECT],l),l.appendChild(r._createCheckboxElement(!1,e,a,o,n,i))}static _destroySelectColumn(t,e){let a=r._getNonExpandedRows(e.rows);if(Array.from(t.rows).forEach(o=>o.removeChild(o.cells.item(0))),Array.from(a).forEach(o=>o.removeChild(o.cells.item(0))),e.rows.length){let o=e.rows.item(0);o&&r._updateExpandedRowColspan(e.rows,o.cells.length)}}static _hasSelectColumn(t,e){return[...Array.from(t.rows),...Array.from(e.rows)].some(o=>o.cells.item(0).classList.contains(_.classes.TABLE_CELL_SELECT))}static _createCheckboxElement(t,e,a,o,n,i){let l=document.createElement("div");if(l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER),e)switch(e){case"center":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER);break;case"left":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT);break;case"right":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT);break}let h=document.createElement(B1.elementName);h.setAttribute(_.attributes.SELECT_CHECKBOX,""),l.appendChild(h);let c=d=>{let u=document.createElement("forge-tooltip");return u.placement="left",u.type="label",u.textContent=d,u};if(t)if(typeof i=="string"&&i.length){let u=c(i);l.appendChild(u)}else h.setAttribute("aria-label","Select all rows");else{let d=n||"";if(o&&typeof n=="function"&&(d=n.call(null,a,o.data)),typeof d=="string"&&d.length){let u=c(d);l.appendChild(u)}else h.setAttribute("aria-label","Select row")}return l}static _getCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT):null}static _tryGetSelectAllCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT)||e.querySelector(_.selectors.SELECT_ALL_TEMPLATE_CHECKBOX_INPUT):null}static _setSelectedCheckboxState(t,e){t&&(t.checked=e)}static _setIndeterminateCheckboxState(t,e){t&&(t.indeterminate=e)}static _setRowSelectedState(t,e){e?t.classList.contains(_.classes.TABLE_BODY_ROW_SELECTED)||t.classList.add(_.classes.TABLE_BODY_ROW_SELECTED):t.classList.remove(_.classes.TABLE_BODY_ROW_SELECTED)}static _updateExpandedRowColspan(t,e){r._getExpandedRows(t).forEach(o=>{let n=o.cells.item(0);n&&(n.colSpan=e)})}static updateSelectedState(t,e){r._setRowSelectedState(t,e);let a=r._getCheckboxElement(t);a&&r._setSelectedCheckboxState(a,e)}static getRowByIndex(t,e){return r._getNonExpandedRows(t.tBodies[0].rows)[e]}static updateSelectAllState(t,e,a){if(!t.tHead)return;let o=t.tHead.rows[t.tHead.rows.length-1],n=r._tryGetSelectAllCheckboxElement(o);n&&(r._setSelectedCheckboxState(n,e),r._setIndeterminateCheckboxState(n,!!a))}static setSelectedRows(t,e,a,o,n=!1){if(!t.tBodies.length)return;n||r.clearSelectedRows(t);let i=t.tBodies[0].rows,l=0;o.length&&Array.from(i).forEach((h,c)=>{let d=a[c];if(Fr(o,pa(e,d))){r._setRowSelectedState(h,!0);let M=r._getCheckboxElement(h);M&&r._setSelectedCheckboxState(M,!0),l++}}),r.updateSelectAllState(t,l>0&&i.length===l)}static clearSelectedRows(t){if(!t.tBodies.length)return;r._getNonExpandedRows(t.tBodies[0].rows).forEach(a=>{r._setRowSelectedState(a,!1);let o=r._getCheckboxElement(a);o&&r._setSelectedCheckboxState(o,!1)})}static setSortedColumn(t,e,a){let o=r._getHeaderCellByIndex(t,e);r._getSortIconElementFromHeaderCell(o).classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(o,a)}static setMultiSortColumnSortNumber(t,e,a,o){let l=r._getHeaderCellByIndex(t,a).querySelector(`.${_.classes.TABLE_HEAD_CELL_CONTAINER}`).querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ORDER}`);l&&(ft(l,typeof o!="number"||!e,_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN),o&&(l.textContent=o.toString()))}static removeColumnSort(t,e){let a=r._getHeaderCellByIndex(t,e);a.removeAttribute("aria-sort"),a.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&a.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),a.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&a.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING);let o=r._getSortIconElementFromHeaderCell(a);o&&o.classList.contains(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)&&o.classList.remove(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)}static _getHeaderCellByIndex(t,e){if(!t.tHead)throw new Error("Table head element cannot be null.");return t.tHead.rows.item(0).cells.item(e)}static _getSortIconElementFromHeaderCell(t){return t.querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ICON}`)}static setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){let d=t.tHead,u=t.tBodies[0];!d||!u||(e?r._addSelectColumn(d,u,a,o,n,i,l,h,c):r._hasSelectColumn(d,u)&&(a&&r._detachRowSelectListeners(u,a),o&&r._detachSelectAllListener(d,o),r._destroySelectColumn(d,u)))}static _addSelectColumn(t,e,a,o,n,i,l,h,c){r._createSelectColumn(t,e,!!o,n,()=>{o&&r._tryAttachSelectAllTemplateListener(t,o)},i,l,h,c),a&&r._attachRowSelectListeners(e,a),o&&!n&&r._tryAttachSelectAllTemplateListener(t,o)}static setDenseState(t,e){t.classList.contains(_.classes.TABLE_DENSE)&&t.classList.remove(_.classes.TABLE_DENSE),e&&t.classList.add(_.classes.TABLE_DENSE)}static setRoomyState(t,e){t.classList.contains(_.classes.TABLE_ROOMY)&&t.classList.remove(_.classes.TABLE_ROOMY),e&&t.classList.add(_.classes.TABLE_ROOMY)}static setResizable(t){let e=t.tableElement.tHead;t.resizable?(t.tableElement.classList.add(_.classes.TABLE_RESIZABLE),r._addResizeHandles(e,t)):(t.tableElement.classList.remove(_.classes.TABLE_RESIZABLE),r._removeResizeHandles(e,t))}static _addResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=o.indexOf(n);if(e.columnConfigurations[i].resizable!==!1){let h=document.createElement("div");h.classList.add(_.classes.TABLE_RESIZE_HANDLE),n.appendChild(h)}}}}static _removeResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=document.querySelector(`.${_.classes.TABLE_RESIZE_HANDLE}`);i&&n.removeChild(i)}}}static setWrapContentState(t,e){e?t.classList.remove(_.classes.TABLE_NO_WRAP_CONTENT):t.classList.add(_.classes.TABLE_NO_WRAP_CONTENT)}static setSelectAllVisibility(t,e,a,o,n,i){let l=t.tHead;if(!l)return;!e&&a&&r._detachSelectAllListener(l,a);let c=l.rows[l.rows.length-1].cells.item(0);e?c.childElementCount||(c.classList.add(_.classes.TABLE_CELL_SELECT),o?r._renderSelectAllTemplate(o,l).then(()=>{a&&r._tryAttachSelectAllTemplateListener(l,a)}):c.appendChild(r._createCheckboxElement(!0,n||null,null,null,null,i)),a&&!o&&r._attachSelectAllListener(l,a)):(a&&r._detachSelectAllListener(l,a),rt(c))}static setFilterRow(t){if(!t.tableElement.tHead)return;let e=r._getFilterRowElement(t.tableElement.tHead),a;if(t.filter?t.tableElement.classList.add(_.classes.TABLE_FILTER_VISIBLE):t.tableElement.classList.remove(_.classes.TABLE_FILTER_VISIBLE),t.filter&&!e){if(t.columnConfigurations.every(n=>!n.filter))return;t.selectListener&&t.selectAllListener&&(a=t.tableElement.tHead.rows[t.tableElement.tHead.rows.length-1].cells.item(0));let o=r._createFilterRowElement(t);o&&a&&Array.from(a.children).forEach(n=>{var i;(i=o.cells.item(0))==null||i.appendChild(n)})}else if(!t.filter&&e){if(t.selectListener&&t.selectAllListener){a=e.cells.item(0);let o=Array.from(t.tableElement.tHead.rows).indexOf(e)-1,n=t.tableElement.tHead.rows.item(o);n&&Array.from(a.children).forEach(i=>{var l;(l=n.cells.item(0))==null||l.appendChild(i)})}Oe(e)}}static _createFilterRowElement(t){if(!t.tableElement.tHead)throw new Error("Table head element cannot be null.");let e=t.tableElement.tHead.insertRow();if(H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW_FILTER],e),t.selectListener){let a=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],a),e.insertBefore(a,e.cells[0]),a.classList.add(_.classes.TABLE_CELL_SELECT)}return t.columnConfigurations.forEach((a,o)=>{let n=document.createElement("th");if(H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],n),a.filter&&O(a.filterDelegate)){let i=document.createElement("div");i.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),a.align&&r._setCellAlignmentClass(i,a.align);let l=r._createFilterElement(a,o,t.filterListener);i.appendChild(l),n.appendChild(i)}e.appendChild(n)}),e}static _createFilterElement(t,e,a){let o;if(t0(t.filterDelegate))o=t.filterDelegate();else if(t.filterDelegate instanceof at||t.filterDelegate instanceof j1)o=t.filterDelegate;else throw new Error("Invalid filter delegate.");if(a&&o instanceof at&&t0(o.onChange))if(!O(t.filterDebounceTime)||kt(t.filterDebounceTime)){let n=O(t.filterDebounceTime)?t.filterDebounceTime:_.numbers.DEFAULT_FILTER_DEBOUNCE_TIME;o.onChange(Se(i=>a(i,e),n))}else o.onChange(n=>a(n,e));return o.element}static _getFilterRowElement(t){if(t)return Array.from(t.rows).find(e=>e.classList.contains(_.classes.TABLE_HEAD_ROW_FILTER))}static async expandRow(t,e,a){let o=t.tableElement.tBodies[0],i=r._getNonExpandedRows(o.rows)[e];i.classList.add(_.classes.TABLE_ROW_EXPANDED);let l=Array.from(o.rows).indexOf(i),h=o.insertRow(l+1);H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW,_.classes.TABLE_ROW_EXPANDABLE_CONTENT],h);let c=h.insertCell();c.setAttribute("colspan",i.cells.length.toString()),c.classList.add(_.classes.TABLE_ROW_EXPANDABLE_CONTENT_CELL);let d=document.createElement("div"),u=document.createElement(D1.elementName);u.appendChild(d),c.appendChild(u);let M=a;if(t0(a)){let f=t.data[e]?t.data[e].data:void 0,C=a(e,d,f);try{let A=await Promise.resolve(C);M=B6(A)?A.content:A}catch(A){console.error("Failed to load row template "+A.message),M=""}}M&&r._setRowTemplate(d,M),window.requestAnimationFrame(()=>u.open=!0)}static _setRowTemplate(t,e){R2(e)?t.innerHTML=e:t.appendChild(e)}static collapseRow(t,e){if(!t.tableElement||!t.tableElement.tBodies.length||!t.tableElement.tBodies[0].rows.length)return Promise.resolve();let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e],i=Array.from(a.rows).indexOf(n);if(n&&n.classList.contains(_.classes.TABLE_ROW_EXPANDED)){let l=a.rows[i+1],h=l.querySelector(D1.elementName);if(h&&h.open){let c=new Promise(d=>{h.addEventListener(D1.events.ANIMATION_COMPLETE,()=>{n.classList.remove(_.classes.TABLE_ROW_EXPANDED),Oe(l),d()},{once:!0})});return h.open=!1,c}}return Promise.resolve()}static isRowExpanded(t,e){let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e];return n&&n.classList.contains(_.classes.TABLE_ROW_EXPANDED)}static setFixedHeaders(t){t.fixedHeaders?t.tableElement.classList.add(_.classes.TABLE_FIXED):t.tableElement.classList.remove(_.classes.TABLE_FIXED)}static setLayoutType(t){t.layoutType==="fixed"?t.tableElement.classList.add(_.classes.TABLE_LAYOUT_FIXED):t.tableElement.classList.remove(_.classes.TABLE_LAYOUT_FIXED)}static normalizeColumnWidths(t){let e=t.tableElement;if(e.tHead&&e.tHead.rows.length){let a=Array.from(e.tHead.rows[0].cells);for(let o of a){let n=getComputedStyle(o).width;o.style.width&&o.style.width!==n&&(o.style.width=n)}}}static setColumnResizeIndicatorVisibility(t,e,a){let o=t.tableElement;if(o.tHead&&o.tHead.rows.length){let n=Array.from(o.tHead.rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}if(o.tBodies.length){let n=Array.from(o.tBodies[0].rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}}static setRowClickListeners(t,e,a,o){let n=t.tBodies[0];n&&(e?r._attachRowClickListeners(n,a,o):r._detachRowClickListeners(n,a,o))}static setRowClickAttributes(t,e){let a=t.tBodies[0];a&&(e?r._addRowClickAttributes(a):r._removeRowClickAttributes(a))}static getOwnerDocument(t){return t.ownerDocument||document}static _prepend(t,e){let a=e.childNodes.item(0);a?e.insertBefore(t,a):e.appendChild(t)}static _isMac(){return!!(navigator&&navigator.platform&&navigator.platform.substr(0,3)==="Mac")}static _renderSelectAllTemplate(t,e){return Promise.resolve(t()).then(a=>{let o=e.rows.item(e.rows.length-1);if(!o)return;let n=o.cells.item(0);a&&n&&(typeof a=="string"?n.innerHTML=a:a instanceof HTMLElement&&n.appendChild(a),n.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""))})}};var Vl=class extends I{constructor(t){super(t)}initialize(){this._tableElement||(this._tableElement=document.createElement("table"),this._tableElement.classList.add(_.classes.TABLE),this._component.children.length&&rt(this._component),this._component.appendChild(this._tableElement))}getTableElement(){return this._tableElement||this.initialize(),this._tableElement}createTable(t){return A1.createTable(t)}recreateTableBody(t){A1.recreateTableBody(t)}setSelectedRows(t,e,a,o,n=!1){A1.setSelectedRows(t,e,a,o,n)}clearSelectedRows(t){A1.clearSelectedRows(t)}updateSelectedState(t,e){A1.updateSelectedState(t,e)}updateSelectAllState(t,e,a){A1.updateSelectAllState(t,e,a)}setSortedColumn(t,e,a){A1.setSortedColumn(t,e,a)}removeColumnSort(t,e){A1.removeColumnSort(t,e)}setSortDirection(t,e,a){A1.setSortDirection(t,e,a)}setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){A1.setSelectColumnVisibility(t,e,a,o||null,n||null,i||null,l||[],h||null,c||null)}setDense(t,e){A1.setDenseState(t,e)}setRoomy(t,e){A1.setRoomyState(t,e)}setResizable(t){A1.setResizable(t)}setSelectAllVisibility(t,e,a,o,n,i=null){A1.setSelectAllVisibility(t,e,a,o,n||null,i||null)}setFilterRow(t){A1.setFilterRow(t)}expandRow(t,e,a){return A1.expandRow(t,e,a)}collapseRow(t,e){return A1.collapseRow(t,e)}isRowExpanded(t,e){return A1.isRowExpanded(t,e)}setFixedHeaders(t){A1.setFixedHeaders(t)}setTableLayoutType(t){A1.setLayoutType(t)}setWrapContentState(t){A1.setWrapContentState(t.tableElement,t.wrapContent)}addDocumentListener(t,e){A1.getOwnerDocument(this._component).addEventListener(t,e)}removeDocumentListener(t,e){A1.getOwnerDocument(this._component).removeEventListener(t,e)}normalizeColumnWidths(t){A1.normalizeColumnWidths(t)}setResizeColumnVisibility(t,e,a){A1.setColumnResizeIndicatorVisibility(t,e,a)}addTableClass(t){H1(t,this._tableElement)}removeTableClass(t){ge(t,this._tableElement)}setRowClickListeners(t,e,a,o){A1.setRowClickListeners(t,e,a,o)}setRowClickAttributes(t,e){A1.setRowClickAttributes(t,e)}};var El=class{constructor(){this._sortedColumns=[]}get sortedColumns(){return[...this._sortedColumns.map(t=>m({},t))]}addSortColumn(t){this._sortedColumns.push(m({},t)),this._updateSortNumbers()}updateSortColumn(t){let e=this._sortedColumns.find(a=>a.columnIndex===t.columnIndex);if(e)switch(e.direction){case"ASC":this.removeSortColumn(t);break;case"DESC":e.direction="ASC";break;case"UNSET":e.direction="DESC";break}}setSortColumns(t){this._sortedColumns=[...t.map(e=>m({},e))]}removeSortColumn(t){typeof t=="number"?this._sortedColumns.splice(t,1):this._sortedColumns.splice(this._sortedColumns.indexOf(t),1),this._updateSortNumbers()}isSortColumn(t){return typeof t=="number"?this._sortedColumns.some(e=>e.columnIndex===t):this._sortedColumns.includes(t)}clearMultiSort(){this._sortedColumns=[]}getSortColumn(t){return this._sortedColumns.find(e=>e.columnIndex===t)}_updateSortNumbers(){this._sortedColumns.every(t=>typeof t.sortOrder=="number")&&this._sortedColumns.sort((t,e)=>t.sortOrder-e.sortOrder),this._sortedColumns.forEach((t,e)=>t.sortOrder=e+1)}};var Cl=class{constructor(t,e=!1){this.data=t;this.selected=e}};var zl=class{constructor(t){this._adapter=t;this._tableRows=[];this._data=[];this._columnConfigurations=[];this._select=!1;this._multiselect=!0;this._dense=!1;this._roomy=!1;this._filter=!1;this._fixedHeaders=!1;this._layoutType=_.strings.DEFAULT_LAYOUT_TYPE;this._wrapContent=!0;this._resizable=!1;this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH;this._multiColumnSort=!1;this._selectCheckboxAlignment="center";this._isAllSelected=!1;this._sortedColumnIndex=-1;this._rendered=!1;this._allowRowClick=!1;this._multiSortManager=new El;this._rowClickListener=e=>this._onRowClick(e),this._rowDoubleClickListener=e=>this._onRowDoubleClick(e),this._selectRowListener=e=>this._onRowSelected(e),this._selectAllListener=e=>this._onSelectAll(e),this._sortableHeadCellKeydownListener=e=>this._onSortableHeadCellKeydown(e),this._headRowMouseDownListener=e=>this._onHeadRowMouseDown(e),this._headRowContextMenuListener=e=>this._onHeadRowContextMenu(e),this._documentMouseMoveListener=e=>this._onMouseMove(e),this._documentMouseUpListener=e=>this._onMouseUp(e),this._filterListener=(e,a)=>this._onFilter(e,a),this._selectionManager=new Go(this._selectKey),this._hiddenColumnManager=new Go}initialize(){this._adapter.initialize(),this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString()),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()),this._adapter.emitHostEvent(_.events.INITIALIZED,void 0,!1)}destroy(){this._resizeDescriptor=void 0,this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener)}set data(t){Array.isArray(t)&&t.length>0?l2(t[0])?this._data=t.map(e=>m({},e)):this._data=[...t]:this._data=[],this._tableRows=this._data.map(e=>new Cl(e,this._selectionManager.exists(e))),this._renderBody()}get data(){return this._data.map(t=>m({},t))}set columnConfigurations(t){this._columnConfigurations=t.map(e=>m({},e)),this._hiddenColumnManager.clear(),this._columnConfigurations.forEach(e=>{e.hidden&&this._hiddenColumnManager.add(e)}),this._refreshTableSort(),this.render()}get columnConfigurations(){return this._columnConfigurations.map(t=>m({},t))}get _visibleColumnConfigurations(){return this._columnConfigurations.filter(t=>!this._hiddenColumnManager.exists(t))}get _tableConfiguration(){return{tableElement:this._adapter.getTableElement(),columnConfigurations:this._visibleColumnConfigurations,data:this._tableRows,clickListener:this._allowRowClick?this._rowClickListener:null,doubleClickListener:this._allowRowClick?this._rowDoubleClickListener:null,selectListener:this._select?this._selectRowListener:null,selectAllListener:this._multiselect?this._selectAllListener:null,sortableHeadCellKeydownListener:this._sortableHeadCellKeydownListener,headRowMouseDownListener:this._headRowMouseDownListener,headRowContextMenuListener:this._headRowContextMenuListener,filterListener:this._filter?this._filterListener:null,sortDirection:this._sortDirection,sortedColumn:this._sortedColumnIndex,multiColumnSort:this._multiColumnSort,filter:this._filter,wrapContent:this._wrapContent,fixedHeaders:this._fixedHeaders,layoutType:this._layoutType,dense:this._dense,resizable:this._resizable,rowCreatedCallback:this._rowCreatedCallback,cellCreatedCallback:this._cellCreatedCallback,selectAllTemplate:this._selectAllTemplate,selectCheckboxAlignment:this._selectCheckboxAlignment,tooltipSelect:this._tooltipSelect,tooltipSelectAll:this._tooltipSelectAll}}set select(t){this._select!==t&&(this._select=t,this._adapter.setSelectColumnVisibility(this._adapter.getTableElement(),this._select,this._selectRowListener,this._multiselect?this._selectAllListener:void 0,this._multiselect?this._selectAllTemplate:null,this._selectCheckboxAlignment,this._tableRows,this._tooltipSelect,this._tooltipSelectAll),this._updateSelections(!0),this._select?this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()):this._adapter.removeHostAttribute(_.attributes.SELECT))}get select(){return this._select}set multiselect(t){this._multiselect!==t&&(this._multiselect=t,this._select&&(this._adapter.setSelectAllVisibility(this._adapter.getTableElement(),this._multiselect,this._multiselect?this._selectAllListener:null,this._multiselect?this.selectAllTemplate:null,this._selectCheckboxAlignment,this._tooltipSelectAll),this._updateSelections(!0)),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()))}get multiselect(){return this._multiselect}get selectKey(){return Array.isArray(this._selectKey)?[...this._selectKey]:this._selectKey}set selectKey(t){this._originalSelectKey!==t&&(Array.isArray(t)?(this._originalSelectKey=[...t],this._selectKey=[...t]):(this._originalSelectKey=t,this._selectKey=[t]),this._selectionManager.setKey(this._selectKey),this._updateSelections(!1))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._adapter.getTableElement(),this._dense),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()))}get roomy(){return this._roomy}set roomy(t){t!==this._roomy&&(this._roomy=t,this._applyRoomy())}set filter(t){this._filter!==t&&(this._filter=t,this._adapter.setFilterRow(this._tableConfiguration),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()))}get filter(){return this._filter}set fixedHeaders(t){this._fixedHeaders!==t&&(this._fixedHeaders=t,this._adapter.setFixedHeaders(this._tableConfiguration))}get fixedHeaders(){return this._fixedHeaders}get layoutType(){return this._layoutType}set layoutType(t){this._layoutType!==t&&(this._layoutType=t,this._adapter.setTableLayoutType(this._tableConfiguration))}get wrapContent(){return this._wrapContent}set wrapContent(t){this._wrapContent!==t&&(this._wrapContent=t,this._adapter.setWrapContentState(this._tableConfiguration))}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._adapter.setResizable(this._tableConfiguration))}get minResizeWidth(){return this._minResizeWidth}set minResizeWidth(t){this._minResizeWidth!==t&&(this._minResizeWidth=t,kt(this._minResizeWidth)?this._minResizeWidth<0&&(this._minResizeWidth=0):this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH)}get allowRowClick(){return this._allowRowClick}set allowRowClick(t){this._allowRowClick!==t&&(this._allowRowClick=t,this._rendered&&(this._adapter.setRowClickListeners(this._adapter.getTableElement(),this._allowRowClick,this._rowClickListener,this._rowDoubleClickListener),this._adapter.setRowClickAttributes(this._adapter.getTableElement(),this._allowRowClick)))}get multiColumnSort(){return this._multiColumnSort}set multiColumnSort(t){t!==this._multiColumnSort&&(this._multiColumnSort=t,this._refreshTableSort(),this.render())}get selectCheckboxAlignment(){return this._selectCheckboxAlignment}set selectCheckboxAlignment(t){t!==this._selectCheckboxAlignment&&(this._selectCheckboxAlignment=t,this._adapter.setHostAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT,t),this.render())}get tooltipSelect(){return this._tooltipSelect}set tooltipSelect(t){t!==this._tooltipSelect&&(this._tooltipSelect=t,typeof t=="string"&&this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT,t),this.render())}get tooltipSelectAll(){return this._tooltipSelectAll}set tooltipSelectAll(t){t!==this._tooltipSelectAll&&(this._tooltipSelectAll=t,this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT_ALL,t),this.render())}get selectAllTemplate(){return this._selectAllTemplate}set selectAllTemplate(t){t!==this._selectAllTemplate&&(this._selectAllTemplate=t,this.render())}get rowCreated(){return this._rowCreatedCallback}set rowCreated(t){this._rowCreatedCallback=t}get cellCreated(){return this._cellCreatedCallback}set cellCreated(t){this._cellCreatedCallback=t}isRowSelected(t){let e=pa(Array.isArray(this._selectKey)?this._selectKey:[this._selectKey],t);return this.selectKey?!!this._selectionManager.getItems().find(a=>Ur(a,e)):this._selectionManager.exists(t)}getSelectedRows(){return this._selectionManager.getItems()}selectRows(t,e){if(!this._selectKey)throw new Error("You must set a selectKey to select rows.");(!this._multiselect||e)&&this.clearSelections(),t&&t.length&&(this._selectionManager.add(t),this._updateSelections(!e))}deselectRows(t){t&&t.length&&(this._selectionManager.remove(t),this._updateSelections(!1))}clearSelections(){let t=this._adapter.getTableElement();this._selectionManager.clear(),this._tableRows.forEach(e=>e.selected=!1),this._isAllSelected=!1,this._adapter.clearSelectedRows(t),this._select&&this._multiselect&&this._adapter.updateSelectAllState(t,!1)}hideColumn(t){let e=this._columnConfigurations[t];this._sortedColumnIndex===t&&(this._sortedColumnIndex=-1),this._hiddenColumnManager.exists(e)||(this._hiddenColumnManager.add(e),this.render())}showColumn(t){let e=this._columnConfigurations[t];this._hiddenColumnManager.exists(e)&&(this._hiddenColumnManager.remove(e),this.render())}isColumnHidden(t){let e=this._columnConfigurations[t];return!!e&&this._hiddenColumnManager.exists(e)}render(){this._adapter.createTable(this._tableConfiguration),this._renderSelections(),this._rendered=!0}_renderBody(){this._rendered&&(this._adapter.recreateTableBody(this._tableConfiguration),this._renderSelections())}_renderSelections(){this.select&&(this._isAllSelected=this._getSelectAllState(),this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)));let t=this._selectionManager.getItems();t.length&&this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,t,!1)}expandRow(t,e){if(!this._rendered)throw new Error("Cannot expand a row before the table has rendered.");if(t<0||t>this._tableRows.length)throw new Error(`Invalid row index: ${t}.`);return this._adapter.expandRow(this._tableConfiguration,t,e)}collapseRow(t){return!this._rendered||t<0||t>this._tableRows.length?Promise.resolve():this._adapter.collapseRow(this._tableConfiguration,t)}isRowExpanded(t){return this._adapter.isRowExpanded(this._tableConfiguration,t)}selectRowsByIndex(t,e){let a=t.map(o=>this._data[o]).filter(o=>!!o);this.selectRows(a,!e)}deselectRowsByIndex(t){let e=t.map(a=>this._data[a]).filter(a=>!!a);this.deselectRows(e)}_getSelectAllState(){return this._tableRows.length>0&&this._tableRows.every(t=>t.selected)}_updateSelections(t){this._tableRows.forEach(a=>a.selected=this._selectionManager.exists(a.data));let e=this._getSelectAllState();this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,this._selectionManager.getItems(),t),(e!==this._isAllSelected||this._isIndeterminate(e))&&(this._isAllSelected=e,this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)))}_onRowClick(t){if(t.stopImmediatePropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let o=Et(t).filter(c=>c.nodeType===1).find(c=>c.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE));if(o&&o.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION))return;let{index:i,data:l}=this._getSelectedRowFromEvent(t),h={index:i,data:l};this._adapter.emitHostEvent(_.events.ROW_CLICK,h,!0,!1)}_onRowDoubleClick(t){if(t.stopPropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let e=this._getSelectedRowFromEvent(t),a={index:e.index,data:e.data};this._adapter.emitHostEvent(_.events.SELECT_DOUBLE,a,!0,!1)}_onRowSelected(t){var i;if(t.type==="change"){t.preventDefault();return}if(t.type==="keydown"&&t.key!==" ")return;let e=this._getSelectedRowFromEvent(t);this._multiselect||this._tableRows.filter(h=>h.selected).forEach(h=>{Ur(h.data,pa(this._selectKey,e.data))||this.deselectRows([h.data])});let a=!this._selectionManager.exists(e.data);this._adapter.updateSelectedState(e.rowElement,a),a?this._selectionManager.add(e.data):this._selectionManager.remove(e.data),this._tableRows[e.index].selected=a;let o=[e.index],n=!1;if(this._multiselect){if(t.shiftKey&&this._previouslyClickedRow&&((i=document.getSelection())==null||i.removeAllRanges(),o=this._shiftSelectRows(e),o.includes(this._previouslyClickedRow.index))){let h=o.indexOf(this._previouslyClickedRow.index);o.splice(h,1)}n=this._getSelectAllState(),this._adapter.updateSelectAllState(this._adapter.getTableElement(),n,this._isIndeterminate(n))}for(let l of o){let h=this._tableRows[l].data,d={selected:this._selectionManager.exists(h),index:l,data:h};this._adapter.emitHostEvent(_.events.SELECT,d,!0,!1)}if(this._isAllSelected!==n){this._isAllSelected=n;let l={status:this._isAllSelected,count:this._tableRows.filter(h=>h.selected).length,data:[...this._data],targetType:"row"};this._adapter.emitHostEvent(_.events.SELECT_ALL,l,!0,!1)}this._previouslyClickedRow=m({},e)}_getSelectedRowFromEvent(t){let a=Et(t).find(l=>l.tagName==="TR"),o=a.parentElement,n=this._getNonExpandedRows(o).findIndex(l=>l===a),i=this._tableRows[n].data;return{rowElement:a,index:n,data:i}}_getNonExpandedRows(t){return Array.from(t.rows).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}_onSelectAll(t){t.stopPropagation(),this._isAllSelected=!this._isAllSelected;let e=this._adapter.getTableElement();this._adapter.updateSelectAllState(e,this._isAllSelected),this._tableRows.forEach((o,n)=>{o.selected=this._isAllSelected,this._isAllSelected?this._selectionManager.add(o.data):this._selectionManager.remove(o.data);let i=A1.getRowByIndex(e,n);i&&this._adapter.updateSelectedState(i,this._isAllSelected)});let a={status:this._isAllSelected,count:this._tableRows.filter(o=>o.selected).length,data:[...this._data],targetType:"select-all"};this._adapter.emitHostEvent(_.events.SELECT_ALL,a,!0,!1)}_onHeadRowContextMenu(t){t.ctrlKey&&t.preventDefault()}_onHeadRowMouseDown(t){if(t.button!==0)return;let e=Et(t),a=t.target,o=e.find(l=>l.tagName==="TR"),n=e.find(l=>l.tagName==="TH"),i=Array.from(o.cells).findIndex(l=>l===n);this._headCellMouseDownIndex=i,a!==n&&a.classList.contains(_.classes.TABLE_RESIZE_HANDLE)&&(this._resizeDescriptor={element:n,startWidth:n.offsetWidth,startX:t.pageX,width:n.offsetWidth,index:this._select?i-1:i},this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.setResizeColumnVisibility(this._tableConfiguration,i,!0)),this._adapter.addDocumentListener("mouseup",this._documentMouseUpListener)}_onMouseMove(t){if(this._resizeDescriptor){let e=this._resizeDescriptor.startWidth+(t.pageX-this._resizeDescriptor.startX);e<this._minResizeWidth&&(e=this._minResizeWidth),this._resizeDescriptor.width=e,this._resizeDescriptor.element.style.width=`${e}px`,this._adapter.addTableClass(_.classes.TABLE_RESIZING)}}_onMouseUp(t){if(this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener),this._adapter.removeTableClass(_.classes.TABLE_RESIZING),this._headCellMouseDownIndex!==void 0){if(this._resizeDescriptor){this._adapter.normalizeColumnWidths(this._tableConfiguration),this._adapter.setResizeColumnVisibility(this._tableConfiguration,this._headCellMouseDownIndex,!1);let e={index:this._resizeDescriptor.index,width:this._resizeDescriptor.width};this._adapter.emitHostEvent(_.events.COLUMN_RESIZE,e),this._resizeDescriptor=void 0}else this._tableConfiguration.tableElement.tHead.contains(t.target)&&(this._multiColumnSort?this._onMultiSort(this._headCellMouseDownIndex,t.ctrlKey):this._onSort(this._headCellMouseDownIndex));this._headCellMouseDownIndex=void 0}}_onSortableHeadCellKeydown(t){if(t.key===" "||t.key==="Enter"){let e=Et(t),a=e.find(i=>i.tagName==="TR"),o=e.find(i=>i.tagName==="TH"),n=Array.from(a.cells).findIndex(i=>i===o);this._onSort(n)}}_onSort(t){let e=this._select?t-1:t,a=e>=0?this._visibleColumnConfigurations[e]:null;if(!a||!a.sortable)return;let o="ASC",n=e===this._sortedColumnIndex,i=this._sortDirection==="ASC"||this._sortDirection===void 0,l=n&&this._sortDirection==="DESC";n&&i&&(o="DESC"),l&&!a.preventUnsort&&(o="UNSET");let h={direction:o,columnIndex:e};if(this._adapter.emitHostEvent(_.events.SORT,h,!0,!0)){if(n&&this._sortDirection==="DESC"&&!a.preventUnsort){this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=-1;return}this._sortDirection=o,e===this._sortedColumnIndex?this._adapter.setSortDirection(this._adapter.getTableElement(),t,this._sortDirection):(this._sortedColumnIndex>=0&&this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=e,this._adapter.setSortedColumn(this._adapter.getTableElement(),t,this._sortDirection))}}_onMultiSort(t,e){let a=this._select?t-1:t,o=a>=0?this._visibleColumnConfigurations[a]:null;if(!o||!o.sortable)return;let n=this._multiSortManager.sortedColumns,i=this._multiSortManager.getSortColumn(a);i?this._multiSortManager.updateSortColumn(i):e?this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}):(this._multiSortManager.clearMultiSort(),this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}));let l=this._multiSortManager.sortedColumns.map(d=>m({},d));if(!this._adapter.emitHostEvent(_.events.SORT,l,!0,!0)){this._multiSortManager.setSortColumns(n);return}let c=this._multiSortManager.sortedColumns.length>1;for(let d=0;d<this._visibleColumnConfigurations.length;d++){let u=this._select?d+1:d;if(!this._multiSortManager.isSortColumn(d))this._adapter.removeColumnSort(this._adapter.getTableElement(),u),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,null);else{let M=this._multiSortManager.getSortColumn(d);M&&(this._adapter.setSortedColumn(this._adapter.getTableElement(),u,M.direction),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,M.sortOrder||null))}}}_onFilter(t,e){let a={value:t,columnIndex:e};this._adapter.emitHostEvent(_.events.FILTER,a,!0,!1)}_shiftSelectRows(t){let e=[];if(this._previouslyClickedRow){let a=this._previouslyClickedRow.index,o=t.index,n=o>=a?a:o,i=o>=a?o:a;i+=i>n?1:0,n+=n>i?1:0;let l=d=>this.selectRows(d,!1),h=this._tableRows.find(d=>d.selected&&d.data===t.data),c=this._tableRows.find(d=>{var u;return d.data===((u=this._previouslyClickedRow)==null?void 0:u.data)&&!d.selected});(!h||c)&&(l=d=>this.deselectRows(d));for(let d=n;d<i;d++)e.push(d);l(this.data.filter((d,u)=>e.includes(u)))}return e}_isIndeterminate(t){return!t&&this.getSelectedRows().length>0&&this._data.length!==this.getSelectedRows().length}_applyRoomy(){this._adapter.setRoomy(this._adapter.getTableElement(),this._roomy),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString())}_refreshTableSort(){if(this._sortedColumnIndex=this._visibleColumnConfigurations.findIndex(t=>t.initialSort),this._sortedColumnIndex>=0&&this._sortDirection===void 0){let t=this._visibleColumnConfigurations[this._sortedColumnIndex];t.initialSort===!0&&t.sortDirection?this._sortDirection=t.sortDirection:typeof t.initialSort=="object"&&t.initialSort.direction&&(this._sortDirection=t.initialSort.direction)}if(this._multiColumnSort){let t=[];this._visibleColumnConfigurations.forEach((e,a)=>{typeof e.initialSort=="object"&&t.push({columnIndex:a,direction:e.initialSort.direction,sortOrder:e.initialSort.sortOrder,propertyName:e.property})}),this._multiSortManager.setSortColumns(t)}}};var X1=class extends H{static get observedAttributes(){return[_.attributes.SELECT,_.attributes.MULTISELECT,_.attributes.SELECT_KEY,_.attributes.DENSE,_.attributes.ROOMY,_.attributes.FILTER,_.attributes.FIXED_HEADERS,_.attributes.LAYOUT_TYPE,_.attributes.WRAP_CONTENT,_.attributes.RESIZABLE,_.attributes.MIN_RESIZE_WIDTH,_.attributes.ALLOW_ROW_CLICK,_.attributes.MULTI_COLUMN_SORT,_.attributes.SELECT_CHECKBOX_ALIGNMENT,_.attributes.TOOLTIP_SELECT,_.attributes.TOOLTIP_SELECT_ALL]}constructor(){super(),j.define(r3),this._core=new zl(new Vl(this))}initializedCallback(){this._core.initialize()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case _.attributes.SELECT:this.select=p(a);break;case _.attributes.MULTISELECT:this.multiselect=p(a);break;case _.attributes.SELECT_KEY:this.selectKey=a;break;case _.attributes.DENSE:this.dense=p(a);break;case _.attributes.ROOMY:this.roomy=p(a);break;case _.attributes.FILTER:this.filter=p(a);break;case _.attributes.FIXED_HEADERS:this.fixedHeaders=p(a);break;case _.attributes.LAYOUT_TYPE:this.layoutType=a;break;case _.attributes.WRAP_CONTENT:this.wrapContent=p(a);break;case _.attributes.RESIZABLE:this.resizable=p(a);break;case _.attributes.MIN_RESIZE_WIDTH:this.minResizeWidth=$(a);break;case _.attributes.ALLOW_ROW_CLICK:this.allowRowClick=p(a);break;case _.attributes.MULTI_COLUMN_SORT:this.multiColumnSort=p(a);break;case _.attributes.SELECT_CHECKBOX_ALIGNMENT:this.selectCheckboxAlignment=this.getAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT)||"center";break;case _.attributes.TOOLTIP_SELECT:this.tooltipSelect=a;break;case _.attributes.TOOLTIP_SELECT_ALL:this.tooltipSelectAll=a;break}}hideColumn(t){this._core.hideColumn(t)}showColumn(t){this._core.showColumn(t)}isColumnHidden(t){return this._core.isColumnHidden(t)}getSelectedRows(){return this._core.getSelectedRows()}selectRow(t){this._core.selectRows([t],!1)}selectRows(t,e=!1){this._core.selectRows(t,!e)}deselectRow(t){this._core.deselectRows([t])}deselectRows(t){this._core.deselectRows(t)}clearSelections(){this._core.clearSelections()}render(){this._core.render()}expandRow(t,e){return this._core.expandRow(t,e)}collapseRow(t){return this._core.collapseRow(t)}isRowExpanded(t){return this._core.isRowExpanded(t)}selectRowsByIndex(t,e){typeof t=="number"?this._core.selectRowsByIndex([t],e):Array.isArray(t)&&this._core.selectRowsByIndex(t,e)}deselectRowsByIndex(t){typeof t=="number"?this._core.deselectRowsByIndex([t]):Array.isArray(t)&&this._core.deselectRowsByIndex(t)}isRowSelected(t){return this._core.isRowSelected(t)}};s([v()],X1.prototype,"data",2),s([v()],X1.prototype,"columnConfigurations",2),s([v()],X1.prototype,"select",2),s([v()],X1.prototype,"multiselect",2),s([v()],X1.prototype,"selectKey",2),s([v()],X1.prototype,"tooltipSelect",2),s([v()],X1.prototype,"tooltipSelectAll",2),s([v()],X1.prototype,"dense",2),s([v()],X1.prototype,"roomy",2),s([v()],X1.prototype,"filter",2),s([v()],X1.prototype,"fixedHeaders",2),s([v()],X1.prototype,"layoutType",2),s([v()],X1.prototype,"wrapContent",2),s([v()],X1.prototype,"resizable",2),s([v()],X1.prototype,"minResizeWidth",2),s([v()],X1.prototype,"allowRowClick",2),s([v()],X1.prototype,"multiColumnSort",2),s([v()],X1.prototype,"rowCreated",2),s([v()],X1.prototype,"cellCreated",2),s([v()],X1.prototype,"selectAllTemplate",2),s([v()],X1.prototype,"selectCheckboxAlignment",2),X1=s([y({name:_.elementName,dependencies:[Qt,Q,e2,d1]})],X1);function T6(){b(X1)}var S6=`${x}tab-bar`,k6={DISABLED:"disabled",ACTIVE_TAB:"active-tab",VERTICAL:"vertical",STACKED:"stacked",CLUSTERED:"clustered",SECONDARY:"secondary",INVERTED:"inverted",AUTO_ACTIVATE:"auto-activate",SCROLL_BUTTONS:"scroll-buttons"},eb=m({},k6),ab={ROOT:".forge-tab-bar",SCROLL_CONTAINER:".scroll-container",DEFAULT_SLOT:"slot:not([name])"},ob={SCROLL_BUTTON:"scroll-button"},rb={CHANGE:`${S6}-change`},nb={SCROLL_MARGIN:48},P1={elementName:S6,observedAttributes:k6,attributes:eb,events:rb,selectors:ab,classes:ob,numbers:nb},w5=new Map([["default",new Set(["Home","End"])],["horizontal",new Set(["ArrowLeft","ArrowRight"])],["vertical",new Set(["ArrowUp","ArrowDown"])]]);var O6=`${x}tab`,D6={DISABLED:"disabled",SELECTED:"selected",VERTICAL:"vertical",STACKED:"stacked",SECONDARY:"secondary",INVERTED:"inverted"},ib=m({},D6),sb={INDICATOR:".indicator"},lb={},vb={SELECT:`${O6}-select`},hb={EASING:"cubic-bezier(0.4, 0, 0.2, 1)"},cb={ANIMATION_DURATION:250},G1={elementName:O6,observedAttributes:D6,attributes:ib,selectors:sb,classes:lb,events:vb,strings:hb,numbers:cb};var Al=class extends I{constructor(t){super(t),this._tabIndicatorElement=w(this._component,G1.selectors.INDICATOR),this._focusIndicatorElement=w(this._component,g1.elementName),this._stateLayerElement=w(this._component,L1.elementName)}initialize(){this._component.tabIndex=this._component.selected?0:-1,this._component.setAttribute("role","tab"),this._component.setAttribute("aria-selected",this._component.selected?"true":"false")}activateFocusIndicator(){this._focusIndicatorElement.active=!0}addInteractionListener(t,e){this._component.addEventListener(t,e)}setDisabled(t){this._stateLayerElement.disabled=t,this._component.tabIndex=t?-1:this._component.selected?0:-1,this._component.setAttribute("aria-disabled",String(t)),W(this._component,t,G1.attributes.DISABLED,String(t))}setSelected(t){this._component.tabIndex=t?0:-1,this._component.setAttribute("aria-selected",String(t))}animateSelected(){this._tabIndicatorElement.getAnimations().forEach(e=>e.cancel());let t=this._getKeyframes();t&&this._tabIndicatorElement.animate(t,{duration:G1.numbers.ANIMATION_DURATION,easing:G1.strings.EASING})}animateStateLayer(){this._stateLayerElement.playAnimation()}_getKeyframes(){var f;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!this._component.selected)return t?[{opacity:1},{transform:"none"}]:null;let e={},a=this._component.vertical,o=this._getSelectedTabIndicator(),n=(f=o==null?void 0:o.getBoundingClientRect())!=null?f:{},i=a?n.top:n.left,l=a?n.height:n.width,h=this._tabIndicatorElement.getBoundingClientRect(),c=a?h.top:h.left,d=a?h.height:h.width,u=a?"Y":"X",M=l/d;return!t&&i!==void 0&&c!==void 0&&!isNaN(M)?e.transform=`translate${u}(${(i-c).toFixed(4)}px) scale${u}(${M.toFixed(4)})`:e.opacity=0,[e,{transform:"none"}]}_getSelectedTabIndicator(){let t=k5(this._component,P1.elementName);if(t){let a=Array.from(t.querySelectorAll(G1.elementName)).find(o=>o.hasAttribute(G1.attributes.SELECTED));if(a)return w(a,G1.selectors.INDICATOR)}return null}};var Bl=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._vertical=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._clickListener=()=>this._onClick(),this._keydownListener=e=>this._onKeydown(e)}initialize(){this._adapter.initialize(),this._adapter.addInteractionListener("click",this._clickListener),this._adapter.addInteractionListener("keydown",this._keydownListener)}setFocus(t){t!=null&&t.focusVisible&&this._adapter.activateFocusIndicator()}_onClick(){this._disabled||this._selected||this._dispatchSelectEvent()}_onKeydown(t){if(this._disabled||this._selected)return;(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this._adapter.animateStateLayer(),this._dispatchSelectEvent())}_dispatchSelectEvent(){this._adapter.dispatchHostEvent(new CustomEvent(G1.events.SELECT,{bubbles:!0,composed:!0}))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(G1.attributes.DISABLED,this._disabled))}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.animateSelected(),this._adapter.toggleHostAttribute(G1.attributes.SELECTED,this._selected))}get vertical(){return this._vertical}set vertical(t){this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(G1.attributes.VERTICAL,this._vertical))}get stacked(){return this._stacked}set stacked(t){this._stacked!==t&&(this._stacked=t,this._adapter.toggleHostAttribute(G1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){this._secondary!==t&&(this._secondary=t,this._adapter.toggleHostAttribute(G1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){this._inverted!==t&&(this._inverted=t,this._adapter.toggleHostAttribute(G1.attributes.INVERTED,this._inverted))}};var pb='<template><div class="forge-tab" part="container"><span class="content" part="content"><slot name="start"><slot name="leading"></slot></slot><span class="label" part="label"><slot></slot></span><slot name="end"><slot name="trailing"></slot></slot><span class="indicator" part="indicator"></span></span><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></template>',db=':host{display:inline-flex;outline:0;-webkit-tap-highlight-color:transparent;vertical-align:middle}:host([hidden]){display:none}.forge-tab{--_tab-active-color:var(--forge-tab-active-color, var(--forge-theme-primary, #3f51b5));--_tab-inactive-color:var(--forge-tab-inactive-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_tab-height:var(--forge-tab-height, 48px);--_tab-stacked-height:var(--forge-tab-stacked-height, 64px);--_tab-padding-block:var(--forge-tab-padding-block, 0);--_tab-padding-inline:var(--forge-tab-padding-inline, 0);--_tab-disabled-opacity:var(--forge-tab-disabled-opacity, 0.38);--_tab-indicator-color:var(--forge-tab-indicator-color, var(--_tab-active-color));--_tab-indicator-height:var(--forge-tab-indicator-height, 3px);--_tab-indicator-shape:var(--forge-tab-indicator-shape, 3px 3px 0 0);--_tab-vertical-indicator-shape:var(--forge-tab-vertical-indicator-shape, 3px 0 0 3px);--_tab-secondary-indicator-height:var(--forge-tab-secondary-indicator-height, 2px);--_tab-secondary-indicator-shape:var(--forge-tab-secondary-indicator-shape, 0);--_tab-inverted-indicator-shape:var(--forge-tab-inverted-indicator-shape, 0 0 3px 3px);--_tab-vertical-inverted-indicator-shape:var(--forge-tab-vertical-inverted-indicator-shape, 0 3px 3px 0);--_tab-container-color:var(--forge-tab-container-color, transparent);--_tab-container-height:var(--forge-tab-container-height, var(--_tab-height));--_tab-container-shape:var(--forge-tab-container-shape, 0);--_tab-content-height:var(--forge-tab-content-height, var(--_tab-height));--_tab-content-spacing:var(--forge-tab-content-spacing, var(--forge-spacing-xsmall, 8px));--_tab-content-padding:var(--forge-tab-content-padding, var(--forge-spacing-xxsmall, 4px));--_tab-content-padding-block:var(--forge-tab-content-padding-block, var(--_tab-content-padding));--_tab-content-padding-inline:var(--forge-tab-content-padding-inline, var(--forge-spacing-medium, 16px));--_tab-content-padding-inline-secondary:var(--forge-tab-content-padding-inline-secondary, var(--forge-spacing-medium, 16px));--_tab-active-focus-icon-color:var(--forge-tab-active-focus-icon-color, var(--_tab-active-color));--_tab-active-hover-icon-color:var(--forge-tab-active-hover-icon-color, var(--_tab-active-color));--_tab-active-icon-color:var(--forge-tab-active-icon-color, var(--_tab-active-color));--_tab-active-pressed-icon-color:var(--forge-tab-active-pressed-icon-color, var(--_tab-active-color));--_tab-icon-size:var(--forge-tab-icon-size, 24px);--_tab-focus-icon-color:var(--forge-tab-focus-icon-color, var(--_tab-inactive-color));--_tab-hover-icon-color:var(--forge-tab-hover-icon-color, var(--_tab-inactive-color));--_tab-icon-color:var(--forge-tab-icon-color, var(--_tab-inactive-color));--_tab-pressed-icon-color:var(--forge-tab-pressed-icon-color, var(--_tab-inactive-color));--_tab-active-focus-label-text-color:var(--forge-tab-active-focus-label-text-color, var(--_tab-active-color));--_tab-active-hover-label-text-color:var(--forge-tab-active-hover-label-text-color, var(--_tab-active-color));--_tab-active-label-text-color:var(--forge-tab-active-label-text-color, var(--_tab-active-color));--_tab-active-pressed-label-text-color:var(--forge-tab-active-pressed-label-text-color, var(--_tab-active-color));--_tab-focus-label-text-color:var(--forge-tab-focus-label-text-color, var(--_tab-inactive-color));--_tab-hover-label-text-color:var(--forge-tab-hover-label-text-color, var(--_tab-inactive-color));--_tab-label-text-color:var(--forge-tab-label-text-color, var(--_tab-inactive-color));--_tab-pressed-label-text-color:var(--forge-tab-pressed-label-text-color, var(--_tab-inactive-color))}.forge-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;background:0 0;text-decoration:none;width:100%;position:relative;padding-block:var(--_tab-padding-block);padding-inline:var(--_tab-padding-inline);margin:0;z-index:0;background-color:var(--_tab-container-color);color:var(--_tab-label-text-color);min-height:var(--_tab-container-height)}.forge-tab::-moz-focus-inner{padding:0;border:0}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=trailing]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_tab-icon-color);font-size:var(--_tab-icon-size);width:var(--_tab-icon-size);height:var(--_tab-icon-size)}.forge-tab:hover{color:var(--_tab-hover-label-text-color);cursor:pointer}.forge-tab:hover ::slotted([slot=leading]),.forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-hover-icon-color)}.forge-tab .content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;transition:150ms color linear;max-height:calc(var(--_tab-content-height) + 2 * var(--_tab-content-padding-block));min-height:var(--_tab-content-height);width:100%;padding-block:var(--_tab-content-padding-block);padding-inline:var(--_tab-content-padding-inline);gap:var(--_tab-content-spacing)}.forge-tab .content .label{display:inline-block;line-height:1}.forge-tab .indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_tab-indicator-color);border-radius:var(--_tab-indicator-shape);height:var(--_tab-indicator-height);min-width:100%;inset:auto 0 0;opacity:0}::slotted(*),:host{white-space:nowrap}forge-focus-indicator{--forge-focus-indicator-color:var(--_tab-active-color);--forge-focus-indicator-shape:8px}forge-state-layer{--forge-state-layer-color:var(--_tab-inactive-color)}:host(:focus) .forge-tab{color:var(--_tab-focus-label-text-color)}:host(:focus) .forge-tab ::slotted([slot=leading]),:host(:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-focus-icon-color)}:host(:active) .forge-tab{color:var(--_tab-pressed-label-text-color);outline:0}:host(:active) .forge-tab ::slotted([slot=leading]),:host(:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-pressed-icon-color)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-tab{opacity:var(--_tab-disabled-opacity);pointer-events:none}:host([selected]) .forge-tab{color:var(--_tab-active-label-text-color)}:host([selected]) .forge-tab ::slotted([slot=end]),:host([selected]) .forge-tab ::slotted([slot=leading]),:host([selected]) .forge-tab ::slotted([slot=start]),:host([selected]) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-icon-color)}:host([selected]) .forge-tab:hover{color:var(--_tab-active-hover-label-text-color)}:host([selected]) .forge-tab:hover ::slotted([slot=end]),:host([selected]) .forge-tab:hover ::slotted([slot=leading]),:host([selected]) .forge-tab:hover ::slotted([slot=start]),:host([selected]) .forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-active-hover-icon-color)}:host([selected]) .forge-tab .indicator{opacity:1}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_tab-active-color)}:host([selected]:not([vertical])) forge-focus-indicator{--forge-focus-indicator-offset-block:0 calc(var(--_tab-indicator-height) + 1px)}:host([selected]:focus) .forge-tab{color:var(--_tab-active-focus-label-text-color)}:host([selected]:focus) .forge-tab ::slotted([slot=leading]),:host([selected]:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-focus-icon-color)}:host([selected]:active) .forge-tab{color:var(--_tab-active-pressed-label-text-color)}:host([selected]:active) .forge-tab ::slotted([slot=leading]),:host([selected]:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-pressed-icon-color)}:host([stacked]) .forge-tab{--_tab-height:var(--_tab-stacked-height)}:host([stacked]) .forge-tab .content{max-height:none;flex-direction:column;height:100%}:host([vertical]) .forge-tab{--_tab-padding-inline:var(--forge-tab-padding-inline, 0);width:100%;flex-direction:row;border-bottom:none}:host([vertical]) .forge-tab .content{width:100%;min-height:100%}:host([vertical]) .forge-tab .indicator{height:100%;min-width:var(--_tab-indicator-height);inset:0 0 0 auto}:host([vertical]) forge-focus-indicator{--forge-focus-indicator-offset-inline:0 calc(var(--_tab-indicator-height) + 1px)}:host([vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-indicator-shape)}:host([inverted]) .forge-tab{--_tab-indicator-shape:var(--_tab-inverted-indicator-shape)}:host([inverted]) .indicator{inset:0 0 auto;transform-origin:top left}:host([inverted][vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-inverted-indicator-shape)}:host([inverted][vertical]) .indicator{inset:0 auto 0 0}',P2=class extends H{static get observedAttributes(){return Object.values(G1.observedAttributes)}constructor(){super(),L(this,pb,db),this._core=new Bl(new Al(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case G1.observedAttributes.DISABLED:this.disabled=p(a);break;case G1.observedAttributes.SELECTED:this.selected=p(a);break;case G1.observedAttributes.VERTICAL:this.vertical=p(a);break;case G1.observedAttributes.STACKED:this.stacked=p(a);break;case G1.observedAttributes.SECONDARY:this.secondary=p(a);break;case G1.observedAttributes.INVERTED:this.inverted=p(a);break}}focus(t){super.focus(t),this._core.setFocus(t)}};s([v()],P2.prototype,"disabled",2),s([v()],P2.prototype,"selected",2),s([v()],P2.prototype,"vertical",2),s([v()],P2.prototype,"stacked",2),s([v()],P2.prototype,"secondary",2),s([v()],P2.prototype,"inverted",2),P2=s([y({name:G1.elementName,dependencies:[t1,i1]})],P2);function P6(){b(P2)}var Tl=class extends I{constructor(t){super(t),this._defaultSlotElement=w(this._component,P1.selectors.DEFAULT_SLOT),this._rootElement=w(this._component,P1.selectors.ROOT),this._scrollContainer=w(this._component,P1.selectors.SCROLL_CONTAINER)}initializeContainerSizeObserver(t){this._resizeObserver=new ResizeObserver(()=>t()),this._resizeObserver.observe(this._component)}initializeScrollObserver(t){this._scrollContainer.addEventListener("scroll",t,{passive:!0})}destroyContainerSizeObserver(){var t;(t=this._resizeObserver)==null||t.disconnect(),this._resizeObserver=void 0}destroyScrollObserver(t){this._scrollContainer.removeEventListener("scroll",t,{passive:!0})}setVertical(t){W(this._component,!!t,"aria-orientation","vertical")}setScrollBackwardButtonListener(t){var e;(e=this._backwardScrollButton)==null||e.addEventListener("click",t)}setScrollForwardButtonListener(t){var e;(e=this._forwardScrollButton)==null||e.addEventListener("click",t)}addSlotListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}getTabs(){return Array.from(this._component.querySelectorAll(G1.elementName))}async tryScrollTabIntoView(t){if(await new Promise(requestAnimationFrame),!t.isConnected||!t.selected&&!t.matches(":focus"))return;let e=this._component.vertical,a=e?this._scrollContainer.offsetTop:this._scrollContainer.offsetLeft,o=e?t.offsetTop:t.offsetLeft,n=e?t.offsetHeight:t.offsetWidth,i=e?this._scrollContainer.scrollTop:this._scrollContainer.scrollLeft,l=e?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth,h=o-(P1.numbers.SCROLL_MARGIN+a),c=o+n-l+(P1.numbers.SCROLL_MARGIN-a),d=Math.min(h,Math.max(c,i)),u=t.matches(":focus")?"smooth":"instant";this._scrollContainer.scrollTo({behavior:u,[e?"left":"top"]:0,[e?"top":"left"]:d})}getScrollState(){let{scrollHeight:t,scrollWidth:e,scrollLeft:a,scrollTop:o,clientHeight:n,clientWidth:i}=this._scrollContainer,l=this._component.vertical?n+o:i+a,h=this._component.vertical?t:e,c=l===h;return{isScrolledStart:(this._component.vertical?l-n:l-i)===0,isScrolledEnd:c}}isScrollable(){let{scrollHeight:t,scrollWidth:e,clientHeight:a,clientWidth:o}=this._scrollContainer;return this._component.vertical?t>a:e>o}setScrollButtons(t){var e,a;t?(this._backwardScrollButton=this._createScrollButton(this._component.vertical?$o.name:s0.name),this._rootElement.insertAdjacentElement("afterbegin",this._backwardScrollButton),this._forwardScrollButton=this._createScrollButton(this._component.vertical?i0.name:ue.name),this._rootElement.insertAdjacentElement("beforeend",this._forwardScrollButton)):((e=this._backwardScrollButton)==null||e.remove(),this._backwardScrollButton=void 0,(a=this._forwardScrollButton)==null||a.remove(),this._forwardScrollButton=void 0)}syncScrollButtons({backwardEnabled:t,forwardEnabled:e}){var a,o;if(this._backwardScrollButton){let n=!t;n&&this._backwardScrollButton.matches(":focus")&&((a=this._forwardScrollButton)==null||a.focus()),this._backwardScrollButton.disabled=n,this._backwardScrollButton.tabIndex=-1}if(this._forwardScrollButton){let n=!e;n&&this._forwardScrollButton.matches(":focus")&&((o=this._backwardScrollButton)==null||o.focus()),this._forwardScrollButton.disabled=n,this._forwardScrollButton.tabIndex=-1}}scroll(t){let e=this._component.vertical?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth;this._scrollContainer.scrollBy({behavior:"smooth",[this._component.vertical?"top":"left"]:e*(t==="forward"?1:-1)})}updateScrollButtonIcons(t){var o,n;let e=(o=this._backwardScrollButton)==null?void 0:o.querySelector("forge-icon");e&&(e.name=t?$o.name:s0.name);let a=(n=this._forwardScrollButton)==null?void 0:n.querySelector("forge-icon");a&&(a.name=t?i0.name:ue.name)}_createScrollButton(t){let e=document.createElement("forge-icon-button");e.classList.add(P1.classes.SCROLL_BUTTON),e.shape="squared",e.type="button",e.tabIndex=-1,e.setAttribute("aria-hidden","true");let a=document.createElement("forge-icon");return a.name=t,e.appendChild(a),e}};var Sl=class{constructor(t){this._adapter=t;this._isInitialized=!1;this._disabled=!1;this._vertical=!1;this._clustered=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._autoActivate=!1;this._scrollButtons=!1;this._tabs=[];this._scrollButtonsVisible=!1;this._tabsChangedListener=()=>this._onTabsChanged(),this._tabSelectedListener=e=>this._onTabSelected(e),this._keydownListener=e=>this._onKeydown(e),this._resizeListener=()=>this._onResize(),this._scrollListener=()=>this._onScroll(),this._scrollBackwardButtonListener=()=>this._onScrollBackward(),this._scrollForwardButtonListener=()=>this._onScrollForward()}initialize(){this._adapter.addSlotListener(this._tabsChangedListener),this._adapter.addHostListener(G1.events.SELECT,this._tabSelectedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.setVertical(this._vertical),this._scrollButtons&&(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState()),this._tryScrollActiveTabIntoView(),this._isInitialized=!0}destroy(){this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._isInitialized=!1}async _onTabsChanged(){this._tabs=this._adapter.getTabs(),this._syncTabState(),this._scrollButtons&&this._detectScrollableStatus(),this._tryScrollActiveTabIntoView()}_onTabSelected(t){this._selectTab({tab:t.target,focusTab:!0})}async _onKeydown(t){var n,i;let e=this._vertical?"vertical":"horizontal";if(!(((n=w5.get("default"))==null?void 0:n.has(t.key))||((i=w5.get(e))==null?void 0:i.has(t.key))))return;t.preventDefault();let o=-1;if(t.key==="Home")o=this._tabs.findIndex(l=>!l.disabled);else if(t.key==="End")o=this._tabs.reduceRight((l,h,c)=>!h.disabled&&l===-1?c:l,-1);else{let l=this._tabs.findIndex(d=>d.matches(":focus")),h=t.key==="ArrowLeft"||t.key==="ArrowUp",c=d=>{var M;o=d+(h?-1:1),o=o<0?this._tabs.length-1:o%this._tabs.length,!this._tabs.every(f=>f.disabled)&&((M=this._tabs[o])!=null&&M.disabled)&&c(o)};c(l)}o!==-1&&(this._autoActivate?this._selectTab({tab:this._tabs[o],focusTab:!0}):(this._tabs[o].focus({preventScroll:!0,focusVisible:!0}),await this._adapter.tryScrollTabIntoView(this._tabs[o])))}async _selectTab({tab:t,emitEvent:e=!0,focusTab:a=!1}){if(!t||t.disabled)return;let o=this._tabs.find(n=>n.selected);if(o!==t){if(e){let n=this._tabs.indexOf(t),i=new CustomEvent(P1.events.CHANGE,{detail:{index:n},bubbles:!0,cancelable:!0,composed:!0});if(this._adapter.dispatchHostEvent(i),i.defaultPrevented)return}t.selected=!0,a&&t.focus({preventScroll:!0}),await this._adapter.tryScrollTabIntoView(t),o&&(o.selected=!1),this._activeTab=this._tabs.indexOf(t)}}_syncTabState(){this._tabs.forEach((t,e)=>{t.selected=e===this._activeTab,this._disabled&&(t.disabled=this._disabled),t.vertical=this._vertical,t.stacked=this._stacked,t.secondary=this._secondary,t.inverted=this._inverted})}_onResize(){this._detectScrollableStatus()}_onScroll(){this._updateScrollState()}_onScrollBackward(){this._adapter.scroll("backward")}_onScrollForward(){this._adapter.scroll("forward")}_detectScrollableStatus(){let t=this._adapter.isScrollable();this._scrollButtonsVisible!==t&&(this._adapter.setScrollButtons(t),t?(this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState(),this._adapter.setScrollBackwardButtonListener(this._scrollBackwardButtonListener),this._adapter.setScrollForwardButtonListener(this._scrollForwardButtonListener)):this._adapter.destroyScrollObserver(this._scrollListener),this._scrollButtonsVisible=t)}_updateScrollState(){let{isScrolledEnd:t,isScrolledStart:e}=this._adapter.getScrollState(),a={backwardEnabled:!e,forwardEnabled:!t};this._adapter.syncScrollButtons(a)}_tryScrollActiveTabIntoView(){this._tabScrollAnimationFrame&&window.cancelAnimationFrame(this._tabScrollAnimationFrame),this._tabScrollAnimationFrame=window.requestAnimationFrame(()=>{this._tabScrollAnimationFrame=void 0,this._adapter.isScrollable()&&typeof this._activeTab=="number"&&this._activeTab>=0&&this._tabs[this._activeTab]&&this._adapter.tryScrollTabIntoView(this._tabs[this._activeTab])})}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._tabs.forEach(e=>e.disabled=this._disabled),this._adapter.toggleHostAttribute(P1.attributes.DISABLED,this._disabled))}get activeTab(){return this._activeTab}set activeTab(t){if(this._activeTab!==t)if(this._activeTab=t!=null?t:void 0,typeof this._activeTab=="number"){let e=this._tabs[this._activeTab];this._selectTab({tab:e,emitEvent:!1,focusTab:!1}),this._adapter.setHostAttribute(P1.attributes.ACTIVE_TAB,String(this._activeTab))}else this._tabs.forEach(e=>e.selected=!1),this._adapter.removeHostAttribute(P1.attributes.ACTIVE_TAB)}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._isInitialized&&this._adapter.setVertical(this._vertical),this._tabs.forEach(e=>e.vertical=this._vertical),this._scrollButtonsVisible&&this._adapter.updateScrollButtonIcons(this._vertical),this._adapter.toggleHostAttribute(G1.attributes.VERTICAL,this._vertical))}get clustered(){return this._clustered}set clustered(t){t=!!t,this._clustered!==t&&(this._clustered=t,this._adapter.toggleHostAttribute(P1.attributes.CLUSTERED,this._clustered))}get stacked(){return this._stacked}set stacked(t){t=!!t,this._stacked!==t&&(this._stacked=t,this._tabs.forEach(e=>e.stacked=this._stacked),this._adapter.toggleHostAttribute(P1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){t=!!t,this._secondary!==t&&(this._secondary=t,this._tabs.forEach(e=>e.secondary=this._secondary),this._adapter.toggleHostAttribute(P1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){t=!!t,this._inverted!==t&&(this._inverted=t,this._tabs.forEach(e=>e.inverted=this._inverted),this._adapter.toggleHostAttribute(P1.attributes.INVERTED,this._inverted))}get autoActivate(){return this._autoActivate}set autoActivate(t){t=!!t,this._autoActivate!==t&&(this._autoActivate=t,this._adapter.toggleHostAttribute(P1.attributes.AUTO_ACTIVATE,this._autoActivate))}get scrollButtons(){return this._scrollButtons}set scrollButtons(t){t=!!t,this._scrollButtons!==t&&(this._scrollButtons=!!t,this._isInitialized&&(this._scrollButtons?(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._detectScrollableStatus(),this._updateScrollState(),this._tryScrollActiveTabIntoView()):(this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._adapter.setScrollButtons(this._scrollButtons),this._scrollButtonsVisible=!1)),this._adapter.setHostAttribute(P1.attributes.SCROLL_BUTTONS,String(this._scrollButtons)))}};var mb='<template><div class="forge-tab-bar" part="container"><div class="scroll-container" part="scroll-container"><slot></slot></div></div></template>',gb=":host{position:relative;display:block}:host([hidden]){display:none}.forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, space-between);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 1);--_tab-bar-divider-color:var(--forge-tab-bar-divider-color, var(--forge-theme-outline, #e0e0e0));--_tab-bar-divider-thickness:var(--forge-tab-bar-divider-thickness, 1px)}.forge-tab-bar{position:relative;display:grid;grid-template-columns:auto 1fr auto;max-width:100%;max-height:100%;align-items:center;border-bottom:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}.scroll-container{position:relative;display:flex;justify-content:var(--_tab-bar-justify);align-items:flex-end;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;grid-column:2}.scroll-container::-webkit-scrollbar{display:none}::slotted(*){flex:var(--_tab-bar-stretch);align-self:stretch}::slotted([selected]){z-index:1}forge-icon-button{--forge-icon-button-shape-squared:0px}:host([vertical]) .forge-tab-bar{grid-template-columns:none;grid-template-rows:auto 1fr auto;align-items:initial;border-bottom:none;border-right:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color);height:100%}:host([vertical]) .scroll-container{display:inline-flex;flex-direction:column;align-items:stretch;gap:0;grid-column:auto;grid-row:2}:host([vertical]) .scroll-button{justify-self:center}:host([inverted]:not([vertical])) .forge-tab-bar{border-bottom:none;border-top:variale(divider-thickness) solid var(--_tab-bar-divider-color)}:host([inverted][vertical]) .forge-tab-bar{border-bottom:none;border-top:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}:host([clustered]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 0)}:host([clustered=start]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start)}:host([clustered=center]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, center)}:host([clustered=end]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-end)}",I2=class extends V1(I1(H)){static get observedAttributes(){return Object.values(P1.observedAttributes)}constructor(){super(),j.define([s0,ue,$o,i0]),L(this,mb,gb),this._core=new Sl(new Tl(this))}connectedCallback(){this[N]({role:"tablist"},{setAttribute:!0}),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case P1.observedAttributes.DISABLED:this.disabled=p(a);break;case P1.observedAttributes.ACTIVE_TAB:this.activeTab=a?$(a):void 0;break;case P1.observedAttributes.VERTICAL:this.vertical=p(a);break;case P1.observedAttributes.CLUSTERED:this.clustered=p(a);break;case P1.observedAttributes.STACKED:this.stacked=p(a);break;case P1.observedAttributes.SECONDARY:this.secondary=p(a);break;case P1.observedAttributes.INVERTED:this.inverted=p(a);break;case P1.observedAttributes.AUTO_ACTIVATE:this.autoActivate=p(a);break;case P1.observedAttributes.SCROLL_BUTTONS:this.scrollButtons=p(a);break}}};s([v()],I2.prototype,"disabled",2),s([v()],I2.prototype,"activeTab",2),s([v()],I2.prototype,"vertical",2),s([v()],I2.prototype,"clustered",2),s([v()],I2.prototype,"stacked",2),s([v()],I2.prototype,"secondary",2),s([v()],I2.prototype,"inverted",2),s([v()],I2.prototype,"autoActivate",2),s([v()],I2.prototype,"scrollButtons",2),I2=s([y({name:P1.elementName,dependencies:[P2,s1,Q]})],I2);function N6(){b(I2)}var zr=`${x}time-picker`,R6={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},wb={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${R6.TOGGLE}]`},ub={OPEN:`${zr}-open`,CLOSE:`${zr}-close`,INPUT:`${zr}-input`,CHANGE:`${zr}-change`},_b={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},K={elementName:zr,attributes:R6,selectors:wb,events:ub,numbers:_b};var kl=class extends I{constructor(t){super(t)}get inputElement(){return this._inputElement}initialize(){this._inputElement=this._component.querySelector(K.selectors.INPUT)}initializeMask(t){this.destroyMask(),this._inputElement&&(this._inputMask=new un(this._inputElement,t))}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){var t;(t=this._inputMask)==null||t.destroy(),this._inputMask=void 0}initializeAccessibility(t){var e,a,o,n,i,l,h,c,d;(e=this._inputElement)==null||e.setAttribute("autocomplete","off"),(a=this._inputElement)==null||a.setAttribute("autocorrect","off"),(o=this._inputElement)==null||o.setAttribute("autocapitalize","off"),(n=this._inputElement)==null||n.setAttribute("spellcheck","false"),(i=this._inputElement)==null||i.setAttribute("role","combobox"),(l=this._inputElement)==null||l.setAttribute("aria-live","assertive"),(h=this._inputElement)==null||h.setAttribute("aria-atomic","true"),(c=this._inputElement)==null||c.setAttribute("aria-haspopup","true"),(d=this._inputElement)==null||d.setAttribute("aria-expanded","false"),Ne(),this._inputElement&&G2(this._inputElement)}addInputListener(t,e,a){var o;(o=this._inputElement)==null||o.addEventListener(t,e,{capture:a})}removeInputListener(t,e,a){var o;(o=this._inputElement)==null||o.removeEventListener(t,e,{capture:a})}addToggleListener(t,e){this._toggleElement&&this._toggleElement.addEventListener(t,e)}removeToggleListener(t,e){this._toggleElement&&this._toggleElement.removeEventListener(t,e)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let t=this._component.querySelector(C1.elementName),e=this._component.querySelector(K.selectors.TOGGLE);if(t){let a=t.querySelector(`${e1.elementName}[slot=trailing]`);if(a||e){this._toggleElement=a||e;return}let o=document.createElement(e1.elementName);o.slot="trailing",o.density="medium",o.type="button",o.tabIndex=-1,o.setAttribute("aria-label","Toggle time dropdown");let n=document.createElement(p1.elementName);n.name="clock_outline",o.appendChild(n),t.appendChild(o),this._toggleElement=o}else e&&(this._toggleElement=e)}tryFocusInput(){var t;(t=this._inputElement)==null||t.select()}tryBlurInput(){var t;(t=this._inputElement)==null||t.blur()}selectInputText(){var t;(t=this._inputElement)==null||t.select()}isInputDisabled(){var t,e;return(e=(t=this._inputElement)==null?void 0:t.disabled)!=null?e:!1}isInputFocused(){return De(this._component.ownerDocument)===this._inputElement}setInputValue(t,e){var a;((a=this._inputElement)==null?void 0:a.value)!==t&&(this._inputElement&&(this._inputElement.value=t),this._inputMask&&this._inputMask.update(),e&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){var t,e;return this._inputMask?this._inputMask.maskedValue:(e=(t=this._inputElement)==null?void 0:t.value)!=null?e:""}setDisabled(t){this._inputElement&&(this._inputElement.disabled=t,this._inputElement.setAttribute("aria-disabled",t.toString())),this.setToggleDisabled(t)}attachDropdown(t){var e;this._targetElement||(this._targetElement=this._getTargetElement(this._component.popupTarget)),this._listDropdown=new Re(this._targetElement,t),this._listDropdown.open(),(e=this._inputElement)==null||e.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`)}async detachDropdown({destroy:t=!1}={}){this._listDropdown&&(t?this._listDropdown.destroy():await this._listDropdown.close(),this._listDropdown=void 0),this._inputElement&&G2(this._inputElement)}propagateKey(t){var e;(e=this._listDropdown)==null||e.handleKey(t)}setActiveDescendant(t){this._inputElement&&W(this._inputElement,!!t,"aria-activedescendant",t)}getTargetElementWidth(t){return this._getTargetElement(t).getBoundingClientRect().width}_emitInputEvent(t){var e;(e=this._inputElement)==null||e.dispatchEvent(new Event(t))}emitInputEvent(t,e){this._inputElement&&o0(this._inputElement,t,e)}setInputReadonly(t){this._inputElement&&(this._inputElement.readOnly=t)}setToggleDisabled(t){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",t.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=t;else{let e=this._toggleElement.querySelector("button");e&&(e.disabled=t)}}hasActiveOption(){var t,e;return((e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1)>=0}activateOptionByIndex(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}getActiveOption(){var t;return(t=this._listDropdown)==null?void 0:t.getActiveOption()}_getTargetElement(t){return this._targetElement?this._targetElement:(this._targetElement=t?this._component.querySelector(t)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){var e;let t=this._component.querySelector(C1.elementName);return(e=t==null?void 0:t.popoverTargetElement)!=null?e:this._component}};function Ol(r,t,e){if(!r||/^\s*$/.test(r))return null;let a=0,o=0,n=0;if(ja.test(r)){let i=N3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0}else if(nn.test(r)){let i=R3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0,a===12&&i.meridiem==="AM"&&(a=0),a<12&&i.meridiem==="PM"&&(a+=12)}else return null;return W6(a)+Pl(o)+(e?_5(n):0)}function X2(r,t,e){if(typeof r!="number"||r<0)return null;let a=Math.min(F6(r),23),o=Math.min(U6(r),59),i=r/(1e3*60)<720?"AM":"PM";t||(a=a<=12?a:a-12,a===0&&(a=12));let l=`${String(a).padStart(2,"0")}:${String(o).padStart(2,"0")}`;if(e){let h=Math.min(u5(r),59);l+=`:${String(h).padStart(2,"0")}`}return t||(l+=` ${i}`),l}function F6(r){return Math.abs(Math.floor(r/(1e3*60*60)))}function U6(r){return Math.abs(Math.floor(Dl(r)%60))}function Dl(r){return r/(1e3*60)}function u5(r){return Math.abs(Math.floor(fb(r)%60))}function fb(r){return r/1e3}function W6(r){return r*60*60*1e3}function Pl(r){return r*60*1e3}function _5(r){return r*1e3}function G6(r){return r-_5(u5(r))}function f5(r){let t=new Date,e=t.getHours(),a=t.getMinutes();return W6(e)+Pl(a)+(r?_5(t.getSeconds()):0)}function cE1(r,t,e=!1){r||(r=new Date);let a=Ol(t,!0,e);if(!a)return r.setHours(0,0,0),r;let o=F6(a),n=828e5;o>n?o=n:o<0&&(o=0);let i=U6(a),l=e?u5(a):0;return r.setHours(o,i,l),r}var Nl=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=K.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=Vt(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}destroy(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown({destroy:!0}),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){var e,a;if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),t.stopPropagation(),this._closeDropdown({emitCloseEvent:!0}));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption():(this._openDropdown(),typeof((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0?this._adapter.activateOptionByIndex((a=this._dropdownConfig)==null?void 0:a.visibleStartIndex):this._adapter.activateFirstOption()));break;case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&(this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption()));break;case"Enter":case"NumpadEnter":case"Home":case"End":this._open&&((t.code==="Enter"||t.code==="NumpadEnter")&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":t.preventDefault();let o=f5(this._allowSeconds);if(this._value!==o){let n=X2(o,!0,this._allowSeconds);this._emitChangeEvent(n)&&(this._applyValue(o),this._selectInputText())}break}}_trySetActiveOption(){var t,e;!this._adapter.hasActiveOption()&&typeof((t=this._dropdownConfig)==null?void 0:t.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0&&this._adapter.activateOptionByIndex((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown({emitCloseEvent:!0}):(Zt.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown({emitCloseEvent:!0})}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){this._adapter.destroyMask();let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:Se(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown({emitCloseEvent:!0})}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=X2(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(G6(this._value)),this._isInitialized&&t!==this._value){let e=X2(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown({emitCloseEvent:!0}),t=U3(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let a;!this._masked&&typeof this._parseCallback=="function"?a=this._parseCallback.call(null,t):a=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),a=this._validateMillis(a),this._trySetValue(a)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(K.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=X2(t,!0,this._allowSeconds);return this._adapter.emitInputEvent(K.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){if(typeof t=="number"){let e=typeof this._min=="number"&&t<this._min,a=typeof this._max=="number"&&t>this._max;(e||a)&&(t=null)}return typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):F3(t)}_isValidInputValue(t){return ja.test(t)}_onSelect(t){if(this._closeDropdown({emitCloseEvent:!0}),!t.isCustom&&t.metadata==="now"&&(t.time=f5(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let o=t.customCallback.call(null,t.metadata);if(typeof o!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=o}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=X2(t.time,!0,this._allowSeconds);this._emitChangeEvent(e)&&(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let a=this._formatValue(this._value);this._adapter.getInputValue()!==a&&this._adapter.setInputValue(a,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>K.numbers.MAX_DAY_MILLIS?K.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length||!this._adapter.inputElement)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(K.attributes.OPEN);let e=t.filter(n=>!n.divider&&!n.disabled),a=[],o=0;if(t.length)if(this._value!=null){let n=this._findClosestOptionIndex(this._value,e);n>=0&&(e[n].value.time===this._value?a=[e[n].value]:o=n)}else if(typeof this._startTime=="number"){let n=this._findClosestOptionIndex(this._startTime,e);n>=0&&n<e.length&&(o=n)}else this._startTime==null&&(o=this._getOptionIndexClosestCurrent(e));this._dropdownConfig={id:`forge-time-picker-${this._identifier}`,referenceElement:this._adapter.inputElement,selectedValues:a,syncWidth:!0,visibleStartIndex:o,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:n=>this._onSelect(n),closeCallback:()=>this._closeDropdown({emitCloseEvent:!0}),activeChangeCallback:n=>this._adapter.setActiveDescendant(n),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)},this._adapter.attachDropdown(this._dropdownConfig),this._adapter.emitHostEvent(K.events.OPEN,void 0,!1)}_closeDropdown({destroy:t=!1,emitCloseEvent:e=!1}={}){this._open=!1,this._dropdownConfig=void 0,this._adapter.removeHostAttribute(K.attributes.OPEN),this._adapter.detachDropdown({destroy:t}),e&&this._adapter.emitHostEvent(K.events.CLOSE,!0,!1)}_getOptionIndexClosestCurrent(t){let e=new Date,a=`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,o=Ol(a,!0,!1);return this._findClosestOptionIndex(o,t)}_findClosestOptionIndex(t,e){let a=e.reduce((o,n)=>Math.abs((n.value.time||0)-t)<Math.abs((o.value.time||0)-t)?n:o);return e.indexOf(a)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let a=this._formatValue(this._value);e!==a&&(this._adapter.setInputValue(a,t),this._adapter.emitInputEvent(K.events.INPUT,a))}_generateTimeOptions(){let t=this._min!=null?Math.max(Dl(this._min),0):0,e=this._max!=null?Math.min(Dl(this._max),K.numbers.MAX_DAY_MINUTES):K.numbers.MAX_DAY_MINUTES,a=this._step,o=[],n=[];if(this._showHourOptions){for(let l=t;l<=e&&l!==K.numbers.MAX_DAY_MINUTES;l+=a){let h=Pl(l),c=this._restrictedTimes.includes(h),d=X2(h,this._use24HourTime,!1)||"",u={time:h};o.push({label:d,value:u,disabled:c})}let i=o.findIndex(l=>l.value.time/1e3/60>=720);i>=0&&i<o.length-1&&o.splice(i,0,{label:"",value:null,divider:!0})}if(this._showNow){let i={time:null,metadata:"now"};n.push({label:"Now",value:i})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let i=this._customOptions.map(l=>{let h={time:null,metadata:l.value,isCustom:!0,customCallback:l.toMilliseconds};return{label:l.label,value:h}});n=[...n,...i]}return n.length&&(o.length&&o.splice(0,0,{label:"",value:null,divider:!0}),n.forEach((i,l)=>o.splice(l,0,i))),o}_convertTimeStringToMillis(t,e,a){return(!t||!this._isValidTimeFormat(t))&&(t=""),Ol(t,e,a)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):X2(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t)}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(K.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(K.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(K.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return X2(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return X2(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get max(){return X2(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get restrictedTimes(){return this._restrictedTimes.map(t=>X2(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return X2(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(K.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var xb="<template><slot></slot></template>",bb=":host{display:block}:host([hidden]){display:none}",R1=class extends H{static get observedAttributes(){return[K.attributes.VALUE,K.attributes.OPEN,K.attributes.ALLOW_SECONDS,K.attributes.MASKED,K.attributes.SHOW_MASK_FORMAT,K.attributes.USE_24_HOUR_TIME,K.attributes.ALLOW_INVALID_TIME,K.attributes.MIN,K.attributes.MAX,K.attributes.START_TIME,K.attributes.STEP,K.attributes.ALLOW_INPUT,K.attributes.SHOW_NOW,K.attributes.SHOW_HOUR_OPTIONS,K.attributes.DISABLED,K.attributes.POPUP_CLASSES,K.attributes.ALLOW_DROPDOWN]}constructor(){super(),j.define([v6,$a]),L(this,xb,bb),this._core=new Nl(new kl(this))}connectedCallback(){this.querySelector(K.selectors.INPUT)?this._core.initialize():L0(this,K.selectors.INPUT).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case K.attributes.VALUE:this.value=a;break;case K.attributes.OPEN:this.open=p(a);break;case K.attributes.ALLOW_SECONDS:this.allowSeconds=p(a);break;case K.attributes.MASKED:this.masked=p(a);break;case K.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=p(a);break;case K.attributes.USE_24_HOUR_TIME:this.use24HourTime=p(a);break;case K.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=p(a);break;case K.attributes.SHOW_NOW:this.showNow=p(a);break;case K.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=p(a);break;case K.attributes.MIN:this.min=a;break;case K.attributes.MAX:this.max=a;break;case K.attributes.START_TIME:this.startTime=a;break;case K.attributes.STEP:this.step=$(a);break;case K.attributes.ALLOW_INPUT:this.allowInput=p(a);break;case K.attributes.DISABLED:this.disabled=p(a);break;case K.attributes.POPUP_CLASSES:this.popupClasses=a;break;case K.attributes.ALLOW_DROPDOWN:this.allowDropdown=p(a);break}}};s([v()],R1.prototype,"value",2),s([v()],R1.prototype,"open",2),s([v()],R1.prototype,"allowSeconds",2),s([v()],R1.prototype,"masked",2),s([v()],R1.prototype,"showMaskFormat",2),s([v()],R1.prototype,"use24HourTime",2),s([v()],R1.prototype,"allowInvalidTime",2),s([v()],R1.prototype,"min",2),s([v()],R1.prototype,"max",2),s([v()],R1.prototype,"restrictedTimes",2),s([v()],R1.prototype,"startTime",2),s([v()],R1.prototype,"step",2),s([v()],R1.prototype,"allowInput",2),s([v()],R1.prototype,"showNow",2),s([v()],R1.prototype,"showHourOptions",2),s([v()],R1.prototype,"customOptions",2),s([v()],R1.prototype,"validationCallback",2),s([v()],R1.prototype,"parseCallback",2),s([v()],R1.prototype,"formatCallback",2),s([v()],R1.prototype,"coercionCallback",2),s([v()],R1.prototype,"prepareMaskCallback",2),s([v()],R1.prototype,"disabled",2),s([v()],R1.prototype,"popupClasses",2),s([v()],R1.prototype,"allowDropdown",2),s([v()],R1.prototype,"popupTarget",2),R1=s([y({name:K.elementName,dependencies:[ct,Z1,s1,Q,F1,Q,z1]})],R1);var Y6=class extends at{constructor(t){super(t)}_build(){let t=document.createElement(K.elementName);return this._attachTextField(t),t}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(t){this._textFieldDelegate.invalid=t}onChange(t){this._element.addEventListener(K.events.CHANGE,e=>{var a;return t((a=e.detail)!=null?a:"")})}onInput(t){this._element.addEventListener(K.events.INPUT,e=>{var a;return t((a=e.detail)!=null?a:"")})}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var a,o,n,i;let e={props:m({},(o=(a=this._config.options)==null?void 0:a.textFieldDelegateConfig)==null?void 0:o.props),options:m({},(i=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:i.options)};this._textFieldDelegate=new J0(e),t.appendChild(this._textFieldDelegate.element)}};function K6(){b(R1)}var x5=`${x}toast`,q6={OPEN:"open",DURATION:"duration",PLACEMENT:"placement",ACTION_TEXT:"action-text",DISMISSIBLE:"dismissible",DISMISS_LABEL:"dismiss-label",THEME:"theme"},yb=m({},q6),Mb={ACTION:`${x5}-action`,CLOSE:`${x5}-close`},Hb={EXITING:"exiting"},Lb={SURFACE:".surface",ACTION_BUTTON:".action-button",CLOSE_BUTTON:".close-button"},Ib={PLACEMENT:"bottom",DURATION:2750,THEME:"default"},S1={elementName:x5,observedAttributes:q6,attributes:yb,classes:Hb,selectors:Lb,defaults:Ib,events:Mb};var Rl=class extends I{constructor(t){super(t),this._overlayElement=w(t,z.elementName),this._surfaceElement=w(t,S1.selectors.SURFACE),this._actionButtonElement=w(t,S1.selectors.ACTION_BUTTON),this._closeButtonElement=w(t,S1.selectors.CLOSE_BUTTON)}show(){this._overlayElement.open=!0}async hide(){await U2(this._surfaceElement,S1.classes.EXITING),this._overlayElement.open=!1}addCloseListener(t){this._closeButtonElement.addEventListener("click",t)}removeCloseListener(t){this._closeButtonElement.removeEventListener("click",t)}addActionListener(t){this._actionButtonElement.addEventListener("click",t)}removeActionListener(t){this._actionButtonElement.removeEventListener("click",t)}setDismissLabel(t){this._closeButtonElement.setAttribute("aria-label",t)}setActionText(t){this._actionButtonElement.textContent=t,t?this._actionButtonElement.removeAttribute("hidden"):this._actionButtonElement.setAttribute("hidden","")}};var Fl=class{constructor(t){this._adapter=t;this._open=!1;this._duration=S1.defaults.DURATION;this._placement=S1.defaults.PLACEMENT;this._dismissible=!1;this._theme=S1.defaults.THEME;this._actionListener=this._onAction.bind(this);this._closeListener=this._onClose.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["duration","placement","dismissible"]),this._open&&this.show()}show(){this._adapter.show(),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout&&window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration)),this._open=!0,this._adapter.toggleHostAttribute(S1.attributes.OPEN,this._open)}async hide({dispatchEvent:t=!0}={}){this._hideTimeout&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=void 0),await this._adapter.hide(),this._open=!1,this._adapter.toggleHostAttribute(S1.attributes.OPEN,this._open),t&&this._adapter.dispatchHostEvent(new CustomEvent(S1.events.CLOSE,{bubbles:!0}))}_onAction(t){t.stopPropagation(),this._adapter.dispatchHostEvent(new CustomEvent(S1.events.ACTION,{bubbles:!0}))}_onClose(t){this.hide()}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._adapter.isConnected?t?this.show():this.hide({dispatchEvent:!1}):this._open=t,this._adapter.toggleHostAttribute(S1.attributes.OPEN,this._open))}get duration(){return this._duration}set duration(t){this._duration!==t&&(this._duration=t,this._hideTimeout&&(window.clearTimeout(this._hideTimeout),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration))))}get placement(){return this._placement}set placement(t){this._placement!==t&&(this._placement=t,this._adapter.setHostAttribute(S1.attributes.PLACEMENT,this._placement))}get actionText(){return this._actionText}set actionText(t){var e;t=(e=t==null?void 0:t.trim())!=null?e:"",this._actionText!==t&&(this._actionText=t,this._adapter.setActionText(this._actionText),this._actionText?this._adapter.addActionListener(this._actionListener):this._adapter.removeActionListener(this._actionListener),this._adapter.toggleHostAttribute(S1.attributes.ACTION_TEXT,!!this._actionText,this._actionText))}get dismissible(){return this._dismissible}set dismissible(t){t=!!t,this._dismissible!==t&&(this._dismissible=t,this._dismissible?this._adapter.addCloseListener(this._closeListener):this._adapter.removeCloseListener(this._closeListener),this._adapter.toggleHostAttribute(S1.attributes.DISMISSIBLE,this._dismissible))}get dismissLabel(){return this._dismissLabel}set dismissLabel(t){this._dismissLabel!==t&&(this._dismissLabel=t,this._adapter.setDismissLabel(this._dismissLabel))}get theme(){return this._theme}set theme(t){t!=null||(t=S1.defaults.THEME),this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(S1.attributes.THEME,this._theme))}};var Vb='<template><forge-overlay exportparts="root:overlay" no-anchor persistent><div class="surface" part="surface"><slot name="icon"></slot><div class="message" part="message"><slot></slot></div><forge-button hidden part="action-button" class="action-button"></forge-button><forge-icon-button part="close-button" class="close-button" aria-label="Dismiss" density="medium"><forge-icon name="close"></forge-icon></forge-icon-button></div></forge-overlay></template>',Eb='@keyframes slidein{from{transform:translateY(var(--_toast-slide-origin))}to{transform:translateY(0)}}@keyframes slideout{from{transform:translateY(0)}to{transform:translateY(var(--_toast-slide-origin))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,open,theme,placement,media; @layer base{:host{display:contents}:host([hidden]){display:none}.surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-surface-inverse, #333333));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-surface-inverse, #ffffff));--_toast-offset:var(--forge-toast-offset, var(--forge-spacing-medium, 16px));--_toast-shape:var(--forge-toast-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_toast-elevation:var(--forge-toast-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_toast-action-color:var(--forge-toast-action-color, var(--forge-theme-secondary, #ffc107));--_toast-min-width:var(--forge-toast-min-width, 344px);--_toast-max-width:var(--forge-toast-max-width, 672px);--_toast-min-height:var(--forge-toast-min-height, 48px);--_toast-inline-padding:var(--forge-toast-inline-padding, var(--forge-spacing-medium, 16px));--_toast-spacing:var(--forge-toast-spacing, var(--forge-spacing-xsmall, 8px));--_toast-message-padding:var(--forge-toast-message-padding, var(--forge-spacing-xsmall, 8px));--_toast-enter-duration:var(--forge-toast-enter-duration, var(--forge-animation-duration-medium1, 250ms));--_toast-enter-timing:var(--forge-toast-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_toast-exit-duration:var(--forge-toast-exit-duration, var(--forge-animation-duration-short4, 200ms));--_toast-exit-timing:var(--forge-toast-exit-timing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_toast-slide-origin:var(--forge-toast-slide-origin, 100%)}.surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);position:fixed;display:flex;align-items:center;column-gap:var(--_toast-spacing);border-radius:var(--_toast-shape);padding-inline:var(--_toast-inline-padding);margin:var(--_toast-offset);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);min-height:var(--_toast-min-height);box-sizing:border-box;background:var(--_toast-background);color:var(--_toast-color);box-shadow:var(--_toast-elevation)}.message{flex-grow:1;padding-block:var(--_toast-message-padding);text-overflow:ellipsis;overflow:hidden}forge-button.action-button{--forge-button-primary-color:var(--_toast-action-color)}forge-icon-button.close-button{--forge-icon-button-focus-indicator-color:var(--_toast-color)}:host(:not([dismissible])) .close-button{display:none}.action-button:not([hidden]){margin-inline-end:-8px}:host([dismissible]) .close-button{margin-inline-end:-8px}}@layer theme{:host([theme=primary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-primary, #3f51b5));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-primary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=secondary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-secondary, #ffc107));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-secondary, #000000));--_toast-action-color:var(--_toast-color)}:host([theme=tertiary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-tertiary, #3d5afe));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-tertiary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=success]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-success, #2e7d32));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-success, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=warning]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-warning, #d14900));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-warning, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=error]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-error, #b00020));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-error, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=info]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-info, #1565c0));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-info, #ffffff));--_toast-action-color:var(--_toast-color)}}@layer open{forge-overlay[open] .surface{animation-name:slidein;animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-timing)}forge-overlay[open] .surface.exiting{animation-name:slideout;animation-duration:var(--_toast-exit-duration);animation-timing-function:var(--_toast-exit-timing)}}@layer placement{:host([placement=bottom-start]) .surface{bottom:0;left:0}:host(:is(:not([placement]),[placement=bottom])) .surface{bottom:0;left:50%;translate:-50%}:host([placement=bottom-end]) .surface{bottom:0;right:0}:host([placement=top-start]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:0}:host([placement=top]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:50%;translate:-50%}:host([placement=top-end]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;right:0}}@layer media{@media (prefers-reduced-motion:reduce){forge-overlay[open] .surface{animation-name:fadein}forge-overlay[open] .surface.exiting{animation-name:fadeout}}@media (max-width:599px){:host([placement^=top]) .surface{bottom:auto;top:0}.surface{bottom:0;left:0;right:0;margin:0;translate:none;max-width:none;min-width:auto;border-radius:0}}}',j2=class extends I1(V1(H)){static get observedAttributes(){return Object.values(S1.observedAttributes)}constructor(){super(),j.define($a),L(this,Vb,Eb),this._core=new Fl(new Rl(this))}connectedCallback(){this.hasAttribute("role")||this.getAttribute("aria-hidden")==="true"||this[N]({role:"alert",ariaLive:"assertive",ariaAtomic:"true"}),this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case S1.attributes.OPEN:this.open=p(a);break;case S1.attributes.DURATION:let o=Number(a);this.duration=o&&o>0?o:S1.defaults.DURATION;break;case S1.attributes.PLACEMENT:this.placement=a||S1.defaults.PLACEMENT;break;case S1.attributes.ACTION_TEXT:this.actionText=a;break;case S1.attributes.DISMISSIBLE:this.dismissible=p(a);break;case S1.attributes.DISMISS_LABEL:this.dismissLabel=a;break;case S1.attributes.THEME:this.theme=a;break}}show(){this._core.show()}hide(){return this._core.hide()}static present(l){var h=l,{message:t,element:e,icon:a,className:o,topLayer:n}=h,i=O1(h,["message","element","icon","className","topLayer"]);let c=document.createElement(S1.elementName);if(e?c.appendChild(e):t&&c.append(t),a){let u=document.createElement("forge-icon");Object.assign(u,a),u.slot="icon",c.appendChild(u)}if(o){let u=Array.isArray(o)?o:[o];c.classList.add(...u)}return i&&Object.assign(c,i),(n&&Array.from(z1[w0]).at(-1)||document.body).appendChild(c),c.open=!0,c.addEventListener(S1.events.CLOSE,()=>c.remove()),c}};s([v()],j2.prototype,"open",2),s([v()],j2.prototype,"duration",2),s([v()],j2.prototype,"placement",2),s([v()],j2.prototype,"actionText",2),s([v()],j2.prototype,"dismissible",2),s([v()],j2.prototype,"dismissLabel",2),s([v()],j2.prototype,"theme",2),j2=s([y({name:S1.elementName,dependencies:[mt,Tt,s1,Q]})],j2);function $6(){b(j2)}var Cb=`${x}view-switcher`,b5={ROOT:"forge-view-switcher",VIEW_HIDDEN:"forge-view-switcher__view--hidden",VIEW_SWITCHER_SLIDE:"slide",VIEW_SWITCHER_FADE:"fade"},zb={ROOT:`.${b5.ROOT}`,DEFAULT_SLOT:"slot:not([name])",VIEW_HIDDEN:`.${b5.VIEW_HIDDEN}`},Ab={INDEX:"index",ANIMATION_TYPE:"animation-type"},Bb={DEFAULT_TRANSITION_DURATION:500},et={elementName:Cb,attributes:Ab,classes:b5,selectors:zb,numbers:Bb},y5=(e=>(e.Left="left",e.Right="right",e))(y5||{}),Tb=(a=>(a.None="none",a.Slide="slide",a.Fade="fade",a))(Tb||{});var Ul=class extends I{constructor(t){super(t),this._rootElement=w(t,et.selectors.ROOT),this._slotElement=w(t,et.selectors.DEFAULT_SLOT)}getViewCount(){return this._getViews().length}startViewObserver(t){this._viewObserver=new MutationObserver(t),this._viewObserver.observe(this._component,{childList:!0})}stopViewObserver(){var t;(t=this._viewObserver)==null||t.disconnect()}initializeSlideViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("display"),o===t){e[t].classList.remove(et.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.style.transition="none",a.classList.add(et.classes.VIEW_HIDDEN),a.style.visibility="hidden",o>t?a.style.transform="translate3d(100%, 0, 0)":a.style.transform="translate3d(-100%, 0, 0)"}),window.requestAnimationFrame(()=>{e=this._getViews(),e.forEach((a,o)=>{o!==t&&a.style.removeProperty("transition")})})}initializeFadeViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("transform"),a.style.removeProperty("display"),o===t){a.classList.remove(et.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.classList.add(et.classes.VIEW_HIDDEN),a.style.visibility="hidden"}),e[t]&&(e[t].style.opacity="1")}setActiveView(t){let e=this._getViews();e.forEach((a,o)=>{o!==t&&(a.classList.add(et.classes.VIEW_HIDDEN),a.style.display="none")}),e[t]&&(e[t].classList.remove(et.classes.VIEW_HIDDEN),e[t].style.removeProperty("display"))}hideInactiveViews(t){this._getViews().forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("transform"),a.style.removeProperty("visibility"),o===t){a.classList.remove(et.classes.VIEW_HIDDEN);return}a.classList.add(et.classes.VIEW_HIDDEN),a.style.display="none"})}async transitionToView(t,e,a,o){let n=this._getViews(),i=n[t],l=n[e];return new Promise(h=>{l.style.removeProperty("visibility"),window.requestAnimationFrame(()=>{let c;switch(a){case"slide":this._slideToView(i,l,o),c="transform";break;case"fade":this._fadeToView(i,l),c="opacity";break;default:return}this._animateHeight(i,l),i?i.addEventListener("transitionend",d):l.classList.remove(et.classes.VIEW_HIDDEN);function d(u){u.propertyName===c&&(i.removeEventListener("transitionend",d),l.classList.remove(et.classes.VIEW_HIDDEN),h())}})})}_slideToView(t,e,a){a==="left"?(t&&(t.style.transform="translate3d(-100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)"):(t&&(t.style.transform="translate3d(100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)")}_fadeToView(t,e){t&&(t.style.opacity="0"),e.style.opacity="1"}_animateHeight(t,e){let a=t?this._getViewHeight(t):0,o=this._getViewHeight(e);a!==o&&(this._rootElement.addEventListener("transitionend",this._onRootTransitionEnd.bind(this)),this._setHeight(a),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._setHeight(o)})}))}_onRootTransitionEnd(t){t.propertyName==="height"&&(this._rootElement.removeEventListener("transitionend",this._onRootTransitionEnd),this._rootElement.style.removeProperty("height"))}setAnimationType(t){switch(ge([et.classes.VIEW_SWITCHER_SLIDE,et.classes.VIEW_SWITCHER_FADE],this._component),t){case"slide":this._component.classList.add(et.classes.VIEW_SWITCHER_SLIDE);break;case"fade":this._component.classList.add(et.classes.VIEW_SWITCHER_FADE);break}}_getViews(){return this._slotElement.assignedNodes().filter(t=>t.nodeType===1)}_setHeight(t){this._rootElement.style.height=`${t}px`}_getViewHeight(t){let e=0,a=t.children.length?Array.from(t.children):[t];for(let o of a){let n=window.getComputedStyle(o),i=parseFloat(n.marginTop)+parseFloat(n.marginBottom);e+=Math.ceil(o.offsetHeight+i)}return e}};var Wl=class{constructor(t){this._adapter=t;this._viewCount=0;this._viewIndex=0;this._animationType="none";this._viewsChangedListener=()=>this._onViewsChanged()}initialize(){this._viewCount=this._adapter.getViewCount(),this._adapter.startViewObserver(this._viewsChangedListener),this._adapter.setAnimationType(this._animationType),this._viewCount&&this._initializeAnimationType()}destroy(){this._adapter.stopViewObserver()}_initializeAnimationType(){switch(this._animationType){case"slide":this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.hideInactiveViews(this._viewIndex);break}}_onViewsChanged(){if(this._viewCount=this._adapter.getViewCount(),this._viewCount===0&&(this._viewIndex=0),this._viewCount&&this._initializeAnimationType(),this._viewCount>0&&this._viewIndex>=this._viewCount){let t=this._viewIndex;this._viewIndex=this._viewCount>0?this._viewCount-1:0,this._goToView(t,this._viewCount)}}async _goToView(t,e){if(this._viewCount=O(e)?e:this._adapter.getViewCount(),!(!(this._viewIndex>=0&&this._viewIndex<=this._viewCount-1)||t===this._clampedViewIndex(this._viewIndex,this._viewCount)))switch(this._animationType){case"slide":let o=this._viewIndex>t?"left":"right";await this._adapter.transitionToView(t,this._viewIndex,"slide",o),this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":await this._adapter.transitionToView(t,this._viewIndex,"fade"),this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.setActiveView(this._viewIndex);break}}_clampedViewIndex(t,e){return t<0?t=0:t>e-1&&(t=e>0?e-1:0),t}next(){this.index++}previous(){this.index--}goToStart(){this.index=0}goToEnd(){this.index=this._viewCount-1}get index(){return this._viewIndex}set index(t){if(this._viewIndex!==t){let e=this._viewIndex;this._viewIndex=t,this._goToView(e),this._adapter.setHostAttribute(et.attributes.INDEX,this._viewIndex.toString())}}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._initializeAnimationType(),this._adapter.setAnimationType(this._animationType),this._adapter.setHostAttribute(et.attributes.ANIMATION_TYPE,this._animationType))}};var Sb=`${x}view`,X6={elementName:Sb};var kb="<template><slot></slot></template>",Ob=":host{display:block}:host([hidden]){display:none}",va=class extends H{constructor(){super(),L(this,kb,Ob)}};va=s([y({name:X6.elementName})],va);var Db='<template><div class="forge-view-switcher" part="root"><slot></slot></div></template>',Pb=":host{height:var(--_view-switcher-height);width:var(--_view-switcher-width);display:block}:host([hidden]){display:none}.forge-view-switcher{--_view-switcher-height:var(--forge-view-switcher-height, auto);--_view-switcher-width:var(--forge-view-switcher-width, auto);--_view-switcher-animation-duration:var(--forge-view-switcher-animation-duration, var(--forge-animation-duration-medium2, 300ms));--_view-switcher-animation-easing:var(--forge-view-switcher-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-view-switcher{height:var(--_view-switcher-height);width:var(--_view-switcher-width);position:relative;overflow:hidden;transition-property:height;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing)}.forge-view-switcher ::slotted(.forge-view-switcher__view--hidden){position:absolute;top:0;right:0;bottom:0;left:0}:host(.slide) ::slotted(forge-view){transition-property:transform;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:transform}:host(.fade) ::slotted(forge-view){transition-property:opacity;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:opacity}:host(.fade) ::slotted(.forge-view-switcher__view--hidden){opacity:0}",ha=class extends H{static get observedAttributes(){return[et.attributes.INDEX,et.attributes.ANIMATION_TYPE]}constructor(){super(),L(this,Db,Pb),this._core=new Wl(new Ul(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case et.attributes.INDEX:this.index=$(a);break;case et.attributes.ANIMATION_TYPE:this.animationType=a;break}}next(){this._core.next()}previous(){this._core.previous()}goToStart(){this._core.goToStart()}goToEnd(){this._core.goToEnd()}};s([v()],ha.prototype,"index",2),s([v()],ha.prototype,"animationType",2),ha=s([y({name:et.elementName,dependencies:[va]})],ha);function j6(){b(va)}function Z6(){b(ha)}var Nb=`${x}deprecated-button`,Rb={TYPE:"type",DISABLED:"disabled",FULL_WIDTH:"full-width"},Fb={BUTTON:"button,a"},N2={elementName:Nb,attributes:Rb,selectors:Fb};var Ub='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Wb=':host{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-display:var(--forge-button-display, inline-grid);--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-0));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed);--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent;border-radius:var(--_button-shape)}:host([hidden]){display:none}::slotted(:is(button,a)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);grid-auto-flow:column;align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing);--forge-icon-font-size:1.25em}::slotted(:is(button,a))::-moz-focus-inner{padding:0;border:0}::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}::slotted(:is(button,a)):active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}::slotted(a){text-decoration:none;--forge-typography-link-text-decoration:none}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host(:is([type*=unelevated],[type*=raised])) ::slotted(:is(button,a)){--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host(:is([type*=unelevated],[type*=raised])) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([type*=raised]) ::slotted(:is(button,a)){--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):active{--_button-shadow:var(--_button-raised-active-shadow)}:host([type*=outlined]) ::slotted(:is(button,a)){--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([full-width]){width:100%}:host(:is([dense],[type*=dense])) ::slotted(:is(button,a)){--_button-height:var(--_button-dense-height)}:host([disabled]){cursor:var(--_button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host([type*=outlined][disabled]) ::slotted(button[disabled]){--_button-border-color:var(--_button-disabled-border-color)}:host(:is([type*=unelevated],[type*=raised])[disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host([type*=raised][disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}',Ro=class extends H{constructor(){super();this._buttonOrAnchorElement=null;this._disabled=!1;this._fullWidth=!1;this._buttonChangeListener=this._onButtonChange.bind(this);this._keydownListener=e=>this._onKeydown(e);L(this,Ub,Wb),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,g1.elementName),this._stateLayer=w(this,L1.elementName)}static get observedAttributes(){return Object.values(N2.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._buttonChangeListener),this.children.length?this._initialize():Ga(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case N2.attributes.TYPE:this.type=o;return;case N2.attributes.DISABLED:this.disabled=p(o);return;case N2.attributes.FULL_WIDTH:this.fullWidth=p(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onButtonChange(){this._detachButton(),this._initialize()}_initialize(){this._buttonOrAnchorElement=this.querySelector(N2.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;W(this,e,N2.attributes.DISABLED)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this.setAttribute(N2.attributes.TYPE,this._type))}get disabled(){return this._disabled}set disabled(e){var a;this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(N2.attributes.DISABLED,this._disabled),this.toggleAttribute(N2.attributes.DISABLED,this._disabled))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this.toggleAttribute(N2.attributes.FULL_WIDTH,this._fullWidth))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Ro=s([y({name:N2.elementName,dependencies:[t1,i1]})],Ro);var Q6=class extends j1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e,a;let t=document.createElement(N2.elementName);return this._buttonElement=document.createElement("button"),this._buttonElement.type=((e=this._config.options)==null?void 0:e.type)||"button",this._buttonElement.textContent=((a=this._config.options)==null?void 0:a.text)||"",t.appendChild(this._buttonElement),t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",a=>t(a))}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",a=>t(a))}};function J6(){b(Ro)}var Gb=`${x}deprecated-icon-button`,tm={DISABLED:"disabled",TOGGLE:"toggle",IS_ON:"is-on",DENSITY_LEVEL:"density-level"},Yb=S(m({},tm),{ON_ICON:"forge-icon-button-on"}),Kb={BUTTON:"button,a",ICON_LIKE:"button > i,span,svg,img,forge-icon"},qb={TOGGLE:"forge-icon-button-toggle"},jt={elementName:Gb,observedAttributes:tm,attributes:Yb,selectors:Kb,events:qb};var $b='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Xb=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed);--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent;border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end)}:host([hidden]){display:none}::slotted(:is(button,a)){position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing);font-size:var(--_icon-button-icon-size);height:var(--_icon-button-size);width:var(--_icon-button-size)}::slotted(a){text-decoration:none;color:var(--_icon-button-icon-color)!important}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}forge-focus-indicator{--forge-focus-indicator-outward-offset:0px;--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([dense],[density=large]):not(:is([density=medium],[density-level]))){--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding);--forge-icon-font-size:var(--_icon-button-icon-size)}:host([dense]:not([density=large]):not([density=small]):is([density=medium],[density-level])){--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([toggle]:is([on],[is-on]):not([is-on=false])){--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color);--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-primary-container-low, #e8eaf6))}",Fo=class extends H{constructor(){super();this._disabled=!1;this._toggle=!1;this._isOn=!1;this._densityLevel=0;this._buttonOrAnchorElement=null;this._slotChangeListener=this._onSlotChange.bind(this);this._keydownListener=this._onKeydown.bind(this);this._toggleClickListener=this._onToggle.bind(this);L(this,$b,Xb),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,g1.elementName),this._stateLayer=w(this,L1.elementName)}static get observedAttributes(){return Object.values(jt.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._slotChangeListener),this.children.length?this._initialize():Ga(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case jt.attributes.DISABLED:this.disabled=p(o);return;case jt.attributes.TOGGLE:this.toggle=p(o);return;case jt.attributes.IS_ON:this.isOn=p(o);return;case jt.attributes.DENSITY_LEVEL:this.densityLevel=$(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onSlotChange(){this._detachButton(),this._initialize()}_onToggle(){this.isOn=!this._isOn,this.dispatchEvent(new CustomEvent("forge-icon-button-toggle",{bubbles:!0,composed:!0,detail:this._isOn}))}_initialize(){this._buttonOrAnchorElement=this.querySelector(jt.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._toggle&&this._initializeToggle(),this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;this.toggleAttribute(jt.attributes.DISABLED,e)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}_initializeToggle(){this._buttonOrAnchorElement&&(this._buttonOrAnchorElement.addEventListener("click",this._toggleClickListener),this._syncToggleState())}_destroyToggle(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("click",this._toggleClickListener)}_syncToggleState(){let e=Array.from(this.querySelectorAll(jt.selectors.ICON_LIKE)),a=e.find(n=>n.hasAttribute(jt.attributes.ON_ICON)),o=e.filter(n=>n!==a);a==null||a.toggleAttribute("hidden",!this._isOn),o.forEach(n=>n.toggleAttribute("hidden",this._isOn)),this.toggleAttribute(jt.attributes.IS_ON,this._isOn)}get disabled(){return this._disabled}set disabled(e){var a;e=!!e,this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(jt.attributes.DISABLED,this._disabled),this.toggleAttribute(jt.attributes.DISABLED,this._disabled))}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this.isConnected&&(this._toggle?this._initializeToggle():this._destroyToggle()),this.toggleAttribute(jt.attributes.TOGGLE,this._toggle))}get isOn(){return this._isOn}set isOn(e){e=!!e,this._isOn!==e&&(this._isOn=e,this.isConnected&&this._syncToggleState())}get densityLevel(){return this._densityLevel}set densityLevel(e){this._densityLevel!==e&&(this._densityLevel=e,this.setAttribute(jt.attributes.DENSITY_LEVEL,String(this._densityLevel)))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Fo=s([y({name:jt.elementName,dependencies:[Q,t1,i1]})],Fo);var em=class extends j1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e;let t=document.createElement(jt.elementName);if(this._buttonElement=document.createElement("button"),this._buttonElement.type="button",t.appendChild(this._buttonElement),(e=this._config.options)!=null&&e.tooltip){let a=document.createElement("forge-tooltip");a.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(a.position=this._config.options.tooltipPosition),t.appendChild(a)}return t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",t)}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",t)}get iconElement(){return this._iconElement}get disabled(){var t;return!!((t=this._buttonElement)!=null&&t.disabled)}set disabled(t){this._buttonElement&&(this._buttonElement.disabled=t)}_configure(){this._configureIcon()}_configureIcon(){var e,a,o,n;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((a=this._config.options)==null?void 0:a.iconType)||"component"){case"font":let i=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[Pe];(o=this._buttonElement)==null||o.classList.add(...i),this._buttonElement&&(this._buttonElement.textContent=this._config.options.iconName);break;case"component":this._iconElement=document.createElement(p1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&this._iconElement.classList.add(...this._config.options.iconClass),(n=this._buttonElement)==null||n.appendChild(this._iconElement);break}}};function am(){b(Fo)}var Gl=class extends I{constructor(t){super(t)}startButtonObserver(){this._buttonChangeObserver=new MutationObserver(t=>{let e=t.reduce((a,{addedNodes:o})=>{let n=Array.from(o).filter(i=>i.nodeType===Node.ELEMENT_NODE).map(i=>i.nodeName.toLowerCase()===Bt.elementName?i:i.querySelector(Bt.elementName)).filter(i=>!!i);return a.concat(n)},[]);e.length&&(e.forEach(a=>{a.variant=this._component.variant,a.theme=this._component.theme,a.disabled=this._component.disabled,a.dense=this._component.dense}),this.setPill(this._component.pill))}),this._buttonChangeObserver.observe(this._component,{childList:!0,subtree:!0})}destroyButtonObserver(){var t;(t=this._buttonChangeObserver)==null||t.disconnect(),this._buttonChangeObserver=void 0}setVariant(t){this._getButtons().forEach(a=>a.variant=t)}setTheme(t){this._getButtons().forEach(a=>a.theme=t)}setDisabled(t){this._getButtons().forEach(a=>a.disabled=t)}setDense(t){this._getButtons().forEach(a=>a.dense=t)}setPill(t){let e=this._getButtons();e.length>2&&Array.from(e).slice(1,e.length-1).filter(({pill:n})=>n).forEach(n=>n.pill=!1);let a=e[0];a&&(a.pill=t);let o=e[e.length-1];o&&(o.pill=t)}_getButtons(){return this._component.querySelectorAll(Bt.elementName)}};var jb=`${x}split-button`,Zb={VARIANT:"variant",THEME:"theme",DISABLED:"disabled",DENSE:"dense",PILL:"pill"},Qb={DEFAULT_VARIANT:"text",DEFAULT_THEME:"primary"},_t={elementName:jb,attributes:Zb,defaults:Qb};var Yl=class{constructor(t){this._adapter=t;this._variant=_t.defaults.DEFAULT_VARIANT;this._theme=_t.defaults.DEFAULT_THEME;this._disabled=!1;this._dense=!1;this._pill=!1}initialize(){this._adapter.startButtonObserver(),this._adapter.setVariant(this._variant),this._adapter.setTheme(this._theme),this._adapter.setDisabled(this._disabled),this._adapter.setDense(this._dense),this._adapter.setPill(this._pill)}destroy(){this._adapter.destroyButtonObserver()}get variant(){return this._variant}set variant(t){this._variant!==t&&(this._variant=t!=null?t:_t.defaults.DEFAULT_VARIANT,this._adapter.setVariant(t),this._adapter.setHostAttribute(_t.attributes.VARIANT,this._variant))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:_t.defaults.DEFAULT_THEME,this._adapter.setTheme(this._theme),this._adapter.setHostAttribute(_t.attributes.THEME,this._theme))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(_t.attributes.DISABLED,this._disabled))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._dense),this._adapter.toggleHostAttribute(_t.attributes.DENSE,this._dense))}get pill(){return this._pill}set pill(t){this._pill!==t&&(this._pill=t,this._adapter.setPill(this._pill),this._adapter.toggleHostAttribute(_t.attributes.PILL,this._pill))}};var Jb="<template><slot></slot></template>",ty=":host{--_split-button-min-width:var(--forge-split-button-min-width, 0);--_split-button-gap:var(--forge-split-button-gap, var(--forge-border-thin, 1px));--_split-button-focus-indicator-offset:var(--forge-split-button-focus-indicator-offset, var(--forge-button-focus-indicator-offset, 4px));--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, var(--_split-button-gap));--_split-button-focus-indicator-offset-adjusted:calc(var(--_split-button-focus-indicator-offset) + var(--_split-button-focus-indicator-divider-offset) * 2)}:host{display:inline-flex;justify-content:center;align-items:center}:host([hidden]){display:none}::slotted(*){--forge-button-min-width:var(--_split-button-min-width);--forge-button-focus-indicator-offset:var(--_split-button-focus-indicator-offset)}::slotted(:first-child){--forge-button-shape-start-end-radius:0;--forge-button-shape-end-end-radius:0;--forge-focus-indicator-shape-start-end:0;--forge-focus-indicator-shape-end-end:0;--forge-focus-indicator-offset-inline:0 var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:not(:first-child):not(:last-child)){--forge-button-shape:0;--forge-focus-indicator-shape:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:last-child){--forge-button-shape-start-start-radius:0;--forge-button-shape-end-start-radius:0;--forge-focus-indicator-shape-start-start:0;--forge-focus-indicator-shape-end-start:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted) 0}:host([variant=outlined]){--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, 0px)}:host([variant=outlined]) ::slotted(:not(:first-child)){margin-inline-start:calc(-1 * var(--_split-button-gap))}:host(:is([variant=tonal],[variant=filled],[variant=raised],:not([variant]))) ::slotted(:not(:last-child)){margin-inline-end:var(--_split-button-gap)}",Ce=class extends H{static get observedAttributes(){return[_t.attributes.VARIANT,_t.attributes.THEME,_t.attributes.DISABLED,_t.attributes.DENSE,_t.attributes.PILL]}constructor(){super(),L(this,Jb,ty),this._core=new Yl(new Gl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case _t.attributes.VARIANT:this.variant=a;break;case _t.attributes.THEME:this.theme=a;break;case _t.attributes.DISABLED:this.disabled=p(a);break;case _t.attributes.DENSE:this.dense=p(a);break;case _t.attributes.PILL:this.pill=p(a);break}}};s([v()],Ce.prototype,"variant",2),s([v()],Ce.prototype,"theme",2),s([v()],Ce.prototype,"disabled",2),s([v()],Ce.prototype,"dense",2),s([v()],Ce.prototype,"pill",2),Ce=s([y({name:_t.elementName,dependencies:[Tt]})],Ce);function dB1(){b(Ce)}function fB1(){let r="0123456789ABCDEF".split(""),t="#";for(let e=0;e<6;e++)t+=r[Math.floor(Math.random()*16)];return t}function OT1(){ov(),xv(),hc(),wh(),Rh(),_c(),yv(),np(),go(),sp(),oi(),vp(),wp(),up(),pc(),Mc(),Vc(),$p(),jp(),zc(),Zc(),tp(),Qc(),Zp(),ad(),rd(),id(),dp(),fc(),hd(),ev(),Gc(),ud(),bd(),fv(),Ev(),Q3(),yd(),Md(),Ad(),Hd(),Fc(),Sd(),ec(),$h(),qh(),vc(),kd(),Od(),md(),pd(),J3(),Yd(),Kd(),dh(),Pd(),Qd(),Jh(),uc(),Bc(),Sc(),Wd(),Zd(),t6(),ac(),o6(),l6(),H6(),V6(),_v(),E6(),z6(),Pc(),N6(),P6(),T6(),qc(),K6(),$6(),wc(),gh(),j6(),Z6()}function DT1(){J6(),am()}export{_a as ACCORDION_CONSTANTS,pv as ANIMATION_FILL,Y1 as APP_BAR_CONSTANTS,Fe as APP_BAR_HELP_BUTTON_CONSTANTS,ro as APP_BAR_MENU_BUTTON_CONSTANTS,gt as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,x1 as APP_BAR_PROFILE_BUTTON_CONSTANTS,Dt as APP_BAR_SEARCH_CONSTANTS,a4 as ARIA_CONTROLS_PLACEHOLDER_ID,v1 as AUTOCOMPLETE_CONSTANTS,Ba as AVATAR_CONSTANTS,N4 as AVATAR_TAG_NAME,Ln as AccordionAdapter,fa as AccordionComponent,In as AccordionCore,An as AppBarAdapter,fe as AppBarComponent,Bn as AppBarCore,Li as AppBarHelpButtonAdapter,j0 as AppBarHelpButtonComponent,Ii as AppBarHelpButtonCore,ho as AppBarMenuButtonComponent,ri as AppBarNotificationButtonAdapter,Le as AppBarNotificationButtonComponent,ni as AppBarNotificationButtonCore,Si as AppBarProfileButtonAdapter,Kt as AppBarProfileButtonComponent,ki as AppBarProfileButtonCore,Sn as AppBarSearchAdapter,h0 as AppBarSearchComponent,Tn as AppBarSearchCore,vs as AutocompleteAdapter,pt as AutocompleteComponent,rp as AutocompleteComponentDelegate,hs as AutocompleteCore,ep as AutocompleteMode,Ie as AvatarComponent,lt as BACKDROP_CONSTANTS,CN as BADGE_CONSTANTS,S4 as BADGE_TAG_NAME,Lt as BANNER_CONSTANTS,Q1 as BASE_DRAWER_CONSTANTS,Y as BASE_FIELD_CONSTANTS,H2 as BASE_SELECT_CONSTANTS,T1 as BOTTOM_SHEET_CONSTANTS,k2 as BUTTON_AREA_CONSTANTS,Bt as BUTTON_CONSTANTS,k3 as BUTTON_FORM_ATTRIBUTES,Jt as BUTTON_TOGGLE_CONSTANTS,U1 as BUTTON_TOGGLE_GROUP_CONSTANTS,Ge as BackdropComponent,He as BadgeComponent,Nh as BadgeComponentDelegate,cs as BannerAdapter,g0 as BannerComponent,ps as BannerCore,I as BaseAdapter,H as BaseComponent,j1 as BaseComponentDelegate,na as BaseDrawerAdapter,qe as BaseDrawerComponent,ia as BaseDrawerCore,Mt as BaseField,_o as BaseFieldAdapter,fo as BaseFieldCore,Oo as BaseSelectAdapter,L2 as BaseSelectComponent,Do as BaseSelectCore,_s as BottomSheetAdapter,Ye as BottomSheetComponent,fs as BottomSheetCore,Ci as ButtonAdapter,xs as ButtonAreaAdapter,Sa as ButtonAreaComponent,bs as ButtonAreaCore,Tt as ButtonComponent,Ai as ButtonComponentDelegate,zi as ButtonCore,Pi as ButtonToggleAdapter,le as ButtonToggleComponent,Ni as ButtonToggleCore,Ri as ButtonToggleGroupAdapter,t2 as ButtonToggleGroupComponent,Fi as ButtonToggleGroupCore,g as CALENDAR_CONSTANTS,qp as CALENDAR_DROPDOWN_CONSTANTS,T as CALENDAR_MENU_CONSTANTS,R31 as CARD_CONSTANTS,r5 as CARD_TAG_NAME,a3 as CDN_BASE_URL,B1 as CHECKBOX_CONSTANTS,m1 as CHIP_CONSTANTS,wt as CHIP_FIELD_CONSTANTS,a2 as CHIP_SET_CONSTANTS,St as CIRCULAR_PROGRESS_CONSTANTS,u1 as COLOR_PICKER_CONSTANTS,x as COMPONENT_NAME_PREFIX,Bs as CalendarAdapter,c1 as CalendarComponent,Kp as CalendarComponentDelegate,Ts as CalendarCore,yo as CalendarDropdown,Hs as CalendarMenuAdapter,Ke as CalendarMenuComponent,Ls as CalendarMenuCore,bp as CalendarMonthFocus,oa as CardComponent,Ll as CellAlign,Ui as CheckboxAdapter,e2 as CheckboxComponent,Cc as CheckboxComponentDelegate,Wi as CheckboxCore,is as ChipAdapter,Ht as ChipComponent,ss as ChipCore,os as ChipFieldAdapter,Ta as ChipFieldComponent,Jc as ChipFieldComponentDelegate,rs as ChipFieldCore,xo as ChipSetComponent,Ss as CircularProgressAdapter,O2 as CircularProgressComponent,ks as CircularProgressCore,Os as ColorPickerAdapter,ce as ColorPickerComponent,Ns as ColorPickerCore,i5 as ColorPickerValueType,y2 as DATE_PICKER_CONSTANTS,Ft as DATE_RANGE_PICKER_CONSTANTS,n5 as DEFAULT_COLOR,mn as DEFAULT_DATE_MASK,qo as DEFERRED_LABEL_TARGET,N2 as DEPRECATED_BUTTON_CONSTANTS,jt as DEPRECATED_ICON_BUTTON_CONSTANTS,D as DIALOG_CONSTANTS,wo as DIVIDER_CONSTANTS,vd as DRAWER_CONSTANTS,ua as DateInputMask,Fs as DatePickerAdapter,Io as DatePickerComponent,od as DatePickerComponentDelegate,Us as DatePickerCore,Ws as DatePickerRange,vt as DateRange,nd as DateRangeComponentDelegate,Gs as DateRangePickerAdapter,ra as DateRangePickerComponent,Ys as DateRangePickerCore,xr as DayOfWeek,an as Deferred,Ro as DeprecatedButtonComponent,Q6 as DeprecatedButtonComponentDelegate,Fo as DeprecatedIconButtonComponent,em as DeprecatedIconButtonComponentDelegate,gs as DialogAdapter,z1 as DialogComponent,us as DialogCore,z2 as DismissibleStack,Z0 as DividerComponent,Vo as DrawerComponent,dv as EASING,D1 as EXPANSION_PANEL_CONSTANTS,Mn as ExpansionPanelAdapter,Qt as ExpansionPanelComponent,Hn as ExpansionPanelCore,V as FIELD_CONSTANTS,_1 as FILE_PICKER_CONSTANTS,J1 as FLOATING_ACTION_BUTTON_CONSTANTS,g1 as FOCUS_INDICATOR_CONSTANTS,Ji as FieldAdapter,N1 as FieldComponent,ts as FieldCore,$s as FilePickerAdapter,$2 as FilePickerComponent,wd as FilePickerComponentDelegate,Xs as FilePickerCore,js as FloatingActionButtonAdapter,_0 as FloatingActionButtonComponent,xd as FloatingActionButtonComponentDelegate,Zs as FloatingActionButtonCore,Cn as FocusIndicatorAdapter,t1 as FocusIndicatorComponent,zn as FocusIndicatorCore,at as FormFieldComponentDelegate,Qr as GlobalConfiguration,P3 as HAS_MERIDIEM_REGEX,e1 as ICON_BUTTON_CONSTANTS,Pe as ICON_CLASS_NAME,p1 as ICON_CONSTANTS,_n as ICON_REGISTRY_KEY,sv as INITIAL_ORIGIN_SCALE,Ao as INLINE_MESSAGE_CONSTANTS,kH as INPUT_ARIA_ATTRIBUTES,OH as INPUT_PROPERTIES,Fm as ISO_8601_REGEX,Um as ISO_TIMEZONE_REGEX,fn as IconAdapter,On as IconButtonAdapter,s1 as IconButtonComponent,Vv as IconButtonComponentDelegate,kn as IconButtonCore,Q as IconComponent,N0 as IconComponentDelegate,bn as IconCore,j as IconRegistry,Bo as InlineMessageComponent,dt as KEYBOARD_SHORTCUT_CONSTANTS,e3 as KEYSTROKE_DEBOUNCE_THRESHOLD,Oa as KeyComponent,$e as KeyItemComponent,Qs as KeyboardShortcutAdapter,M2 as KeyboardShortcutComponent,Js as KeyboardShortcutCore,ot as LABEL_CONSTANTS,pe as LABEL_VALUE_CONSTANTS,Rt as LINEAR_PROGRESS_CONSTANTS,E1 as LIST_CONSTANTS,h1 as LIST_ITEM_CONSTANTS,Zi as LabelAdapter,ve as LabelComponent,Qi as LabelCore,To as LabelValueComponent,Td as LabelValueComponentDelegate,ne as LinearProgressComponent,ii as ListAdapter,ct as ListComponent,si as ListCore,li as ListItemAdapter,Z1 as ListItemComponent,vi as ListItemCore,o1 as MENU_CONSTANTS,g4 as MINIMUM_PRESS_MS,dd as MINI_DRAWER_CONSTANTS,Eo as MODAL_DRAWER_CONSTANTS,Mi as MenuAdapter,yt as MenuComponent,Hi as MenuCore,q1 as MeterComponent,Ut as MeterGroupComponent,zo as MiniDrawerComponent,Ks as ModalDrawerAdapter,Co as ModalDrawerComponent,qs as ModalDrawerCore,w5 as NAVIGATION_KEYS,C2 as OPEN_ICON_CONSTANTS,R as OPTION_CONSTANTS,sa as OPTION_GROUP_CONSTANTS,z as OVERLAY_CONSTANTS,ao as OpenIconComponent,al as OptionAdapter,$1 as OptionComponent,ol as OptionCore,je as OptionGroupComponent,ap as OptionType,Yn as OverlayAdapter,mt as OverlayComponent,qn as OverlayCore,lv as PADDING,Dd as PAGE_STATE_CONSTANTS,Z as PAGINATOR_CONSTANTS,Ym as PARSEABLE_TIME_FORMAT,J as POPOVER_CONSTANTS,Qh as POPOVER_HOVER_TIMEOUT,iv as PRESS_GROW_MS,cv as PRESS_PSEUDO,X as PROFILE_CARD_CONSTANTS,So as PageStateComponent,el as PaginatorAdapter,n2 as PaginatorComponent,tl as PaginatorCore,mv as PointerState,ci as PopoverAdapter,F1 as PopoverComponent,di as PopoverCore,Vi as ProfileCardAdapter,Yt as ProfileCardComponent,Ei as ProfileCardCore,b1 as RADIO_CONSTANTS,uo as RADIO_GROUP_CONSTANTS,SH as REFLECTIVE_ARIA_ATTRIBUTES,Yi as RadioAdapter,m2 as RadioComponent,Ki as RadioCore,qi as RadioGroupAdapter,Q0 as RadioGroupComponent,$i as RadioGroupCore,ko as SCAFFOLD_CONSTANTS,$t as SELECT_CONSTANTS,Ze as SELECT_DROPDOWN_CONSTANTS,wi as SKELETON_CONSTANTS,u2 as SKIP_LINK_CONSTANTS,E as SLIDER_CONSTANTS,hv as SOFT_EDGE_CONTAINER_RATIO,vv as SOFT_EDGE_MINIMUM_SIZE,_t as SPLIT_BUTTON_CONSTANTS,tt as SPLIT_VIEW_CONSTANTS,P as SPLIT_VIEW_PANEL_CONSTANTS,Wt as STACK_CONSTANTS,L1 as STATE_LAYER_CONSTANTS,F as STEPPER_CONSTANTS,k as STEP_CONSTANTS,vo as SUPPORTS_POPOVER,l1 as SWITCH_CONSTANTS,Xe as ScaffoldComponent,rl as SelectAdapter,Ve as SelectComponent,e6 as SelectComponentDelegate,nl as SelectCore,sl as SelectDropdownAdapter,f0 as SelectDropdownComponent,il as SelectDropdownCore,qd as SelectOptionType,$0 as SkeletonComponent,Po as SkipLinkComponent,ut as SliderComponent,s6 as SliderComponentDelegate,S3 as SlottedElementAdapter,Il as SortDirection,Gl as SplitButtonAdapter,Ce as SplitButtonComponent,Yl as SplitButtonCore,wl as SplitViewAdapter,c6 as SplitViewAnimatingLayer,Ee as SplitViewComponent,ul as SplitViewCore,gl as SplitViewPanelAdapter,It as SplitViewPanelComponent,ml as SplitViewPanelCore,_l as StackAdapter,de as StackComponent,fl as StackCore,Vn as StateLayerAdapter,i1 as StateLayerComponent,oo as StateLayerCoords,En as StateLayerCore,bl as StepAdapter,Xt as StepComponent,yl as StepCore,Ml as StepperAdapter,D2 as StepperComponent,Hl as StepperCore,Xi as SwitchAdapter,qt as SwitchComponent,Dc as SwitchComponentDelegate,ji as SwitchCore,_ as TABLE_CONSTANTS,P1 as TAB_BAR_CONSTANTS,G1 as TAB_CONSTANTS,C1 as TEXT_FIELD_CONSTANTS,K as TIME_PICKER_CONSTANTS,S1 as TOAST_CONSTANTS,gr as TOOLBAR_CONSTANTS,n1 as TOOLTIP_CONSTANTS,nv as TOUCH_DELAY_MS,Xm as TWELVE_HOUR_TIME_MASK,jm as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,nn as TWELVE_HOUR_TIME_REGEX,Zm as TWENTY_FOUR_HOUR_TIME_MASK,Qm as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,ja as TWENTY_FOUR_HOUR_TIME_REGEX,Al as TabAdapter,Tl as TabBarAdapter,I2 as TabBarComponent,Sl as TabBarCore,P2 as TabComponent,Bl as TabCore,Vl as TableAdapter,X1 as TableComponent,zl as TableCore,tb as TableFilterType,Cl as TableRow,es as TextFieldAdapter,m0 as TextFieldComponent,J0 as TextFieldComponentDelegate,as as TextFieldCore,un as TimeInputMask,kl as TimePickerAdapter,R1 as TimePickerComponent,Y6 as TimePickerComponentDelegate,Nl as TimePickerCore,Rl as ToastAdapter,j2 as ToastComponent,Fl as ToastCore,se as ToolbarComponent,$n as TooltipAdapter,d1 as TooltipComponent,jn as TooltipCore,X6 as VIEW_CONSTANTS,et as VIEW_SWITCHER_CONSTANTS,y5 as ViewAnimationDirection,va as ViewComponent,Ul as ViewSwitcherAdapter,Tb as ViewSwitcherAnimationType,ha as ViewSwitcherComponent,Wl as ViewSwitcherCore,$3 as awaitIconDefinition,n0 as canUserHoverElements,B3 as checkVisibility,hl as clampSize,m6 as clearState,s4 as cloneAttributes,Wm as cloneProperties,Gm as cloneValidationMessage,a5 as coerceDateFromValue,ga as coerceStringToArray,y6 as createOverlay,xn as createSanitizedSvg,O3 as createSvgFromString,E3 as createUserInteractionListener,ov as defineAccordionComponent,xv as defineAppBarComponent,hc as defineAppBarHelpButtonComponent,wh as defineAppBarMenuButtonComponent,Rh as defineAppBarNotificationButtonComponent,_c as defineAppBarProfileButtonComponent,yv as defineAppBarSearchComponent,np as defineAutocompleteComponent,go as defineAvatarComponent,sp as defineBackdropComponent,oi as defineBadgeComponent,vp as defineBannerComponent,wp as defineBottomSheetComponent,up as defineButtonAreaComponent,pc as defineButtonComponent,Mc as defineButtonToggleComponent,Vc as defineButtonToggleGroupComponent,$p as defineCalendarComponent,Yl1 as defineCalendarMenuComponent,jp as defineCardComponent,zc as defineCheckboxComponent,Zc as defineChipComponent,tp as defineChipFieldComponent,Qc as defineChipSetComponent,Zp as defineCircularProgressComponent,ad as defineColorPickerComponent,OT1 as defineComponents,rd as defineDatePickerComponent,id as defineDateRangePickerComponent,J6 as defineDeprecatedButtonComponent,DT1 as defineDeprecatedComponents,am as defineDeprecatedIconButtonComponent,dp as defineDialogComponent,fc as defineDividerComponent,hd as defineDrawerComponent,ev as defineExpansionPanelComponent,Gc as defineFieldComponent,ud as defineFilePickerComponent,bd as defineFloatingActionButtonComponent,fv as defineFocusIndicatorComponent,Ev as defineIconButtonComponent,Q3 as defineIconComponent,yd as defineInlineMessageComponent,Md as defineKeyComponent,Hd as defineKeyItemComponent,Ad as defineKeyboardShortcutComponent,Fc as defineLabelComponent,Sd as defineLabelValueComponent,ec as defineLinearProgressComponent,$h as defineListComponent,qh as defineListItemComponent,vc as defineMenuComponent,kd as defineMeterComponent,Od as defineMeterGroupComponent,md as defineMiniDrawerComponent,pd as defineModalDrawerComponent,J3 as defineOpenIconComponent,Yd as defineOptionComponent,Kd as defineOptionGroupComponent,dh as defineOverlayComponent,Pd as definePageStateComponent,Qd as definePaginatorComponent,Jh as definePopoverComponent,uc as defineProfileCardComponent,Bc as defineRadioComponent,Sc as defineRadioGroupComponent,Wd as defineScaffoldComponent,Zd as defineSelectComponent,t6 as defineSelectDropdownComponent,ac as defineSkeletonComponent,o6 as defineSkipLinkComponent,l6 as defineSliderComponent,dB1 as defineSplitButtonComponent,H6 as defineSplitViewComponent,Ob1 as defineSplitViewPanelComponent,V6 as defineStackComponent,_v as defineStateLayerComponent,E6 as defineStepComponent,z6 as defineStepperComponent,Pc as defineSwitchComponent,N6 as defineTabBarComponent,P6 as defineTabComponent,T6 as defineTableComponent,qc as defineTextFieldComponent,K6 as defineTimePickerComponent,$6 as defineToastComponent,wc as defineToolbarComponent,gh as defineTooltipComponent,j6 as defineViewComponent,Z6 as defineViewSwitcherComponent,w0 as dialogStack,Ed as elementAcceptsTextInput,rv as elementName,z3 as elementsOverlapping,yn as emulateUserToggle,i4 as eventIncludesArrowKey,br as eventIncludesDate,Op as eventIncludesElement,j3 as fetchIconContent,df as fixKey,qa as forgeLabelRef,L3 as formatDate,T0 as forwardAttributes,wa as frame,Q4 as getAccessibleHeader,Gp as getAllYearOptions,q3 as getCachedIcon,Sp as getClearButton,f5 as getCurrentTimeOfDayMillis,g5 as getCursor,j4 as getDateElement,r2 as getDateId,ka as getDateRangeFromDates,Vp as getDateRow,Is as getDateSpacerElement,Rp as getDatesFromDateRange,zs as getDatesInRange,Ip as getDayElement,Yu as getDayId,e5 as getEventDescriptions,Cp as getEventElement,Ep as getEventWrapperElement,X4 as getEventWrapperId,As as getEventsOnDate,yr as getFirstDateOfWeek,V41 as getFirstDayOfMonth,Mp as getFirstDayOfWeekForLocale,Tp as getFooter,Z2 as getFormState,E2 as getFormValue,ys as getGrid,_p as getGridItems,b6 as getHandleIcon,Z4 as getHeader,Mr as getIndexOfDate,e4 as getLastDateOfMonth,Dp as getLastDateOfWeek,xp as getList,Ms as getListItems,yp as getLocalizedDayOfMonth,$4 as getLocalizedDayOfWeek,aa as getLocalizedMonth,u0 as getLocalizedYear,Cs as getMinAndMaxDates,pf as getModiferKeysString,Ap as getMonthButtonContent,t5 as getMonthDates,I3 as getMonthLength,Up as getMonthOptions,Yp as getMultipleFromRange,DH as getPartPrefixedAttributes,Da as getPixelDimension,fp as getScrollSpy,op as getSelectedOption,Vs as getSortedDaysOfWeek,dl as getSplitViewPanelSibling,kp as getTodayButton,zp as getTooltip,Q2 as getValidationMessage,pl as getValuenow,I41 as getWeekDates,Hp as getWeekendDaysForLocale,Bp as getYearButtonContent,Wp as getYearOptions,x6 as handleBoundariesAfterResize,cl as handleBoundariesDuringResize,ds as hideBackdrop,V3 as highlightTextHTML,W6 as hoursToMillis,p6 as initState,J2 as inputType,r1 as internals,w2 as isDisabled,nt as isFocusable,g2 as isInMonth,Ku as isInRange,A3 as isInstanceOf,xc as isLabelAware,d5 as isOptionGroupObject,Df as isOptionObject,wr as isOptionType,o4 as isPointerOverElement,Lp as isRtlLocale,D3 as isSafeSvg,xt as isSameDate,p5 as isSelectOptionType,bo as isSelected,F3 as isSupportedTimeFormat,Pp as isToday,w6 as keyboardResize,Xo as locateElementById,rn as locateTargetHeuristic,zd as matchKeyCombination,_6 as maxResize,cE1 as mergeDateWithTime,F6 as millisToHours,Dl as millisToMinutes,U6 as millisToMinutesClamped,fb as millisToSeconds,u5 as millisToSecondsClamped,X2 as millisToTimeString,u6 as minResize,Pl as minutesToMillis,ur as optionEqualPredicate,G0 as overlayStack,qu as parseDateOffset,H3 as parseDateString,Cd as parseKeyCombinations,_x as parseSize,Fp as parseYearRange,C3 as percentToPixels,HH as pixelsToPercent,g6 as pointerResize,t3 as prefersReducedMotion,T3 as proxyShadowScrollEvent,fB1 as randomHexColor,_r as removeAllExceptLastChild,X3 as removeIconListener,Xa as replaceElement,f6 as resizeSibling,r4 as roundByDPR,LH as safeMax,A0 as safeMin,Z3 as sanitizeExternalType,on as scaleValue,_5 as secondsToMillis,G2 as setAriaControls,N as setDefaultAria,d6 as setState,J4 as setTabindexOnElement,b2 as setValidity,o5 as shouldHandleEvent,ms as showBackdrop,Es as sortDates,Np as splitIntoWeeks,G6 as stripSecondsFromMillis,Q5 as supportsElementInternalsAria,J5 as supportsHover,Jr as supportsPopover,te as task,Vd as textInputTypes,Ol as timeStringToMillis,_e as toggleState,R3 as tokenize12HourTimeString,N3 as tokenize24HourTimeString,Gi as tryCheck,U3 as tryCoerceTimeString,Ne as tryCreateAriaControlsPlaceholder,B0 as tryDismiss,VH as unwrapElements,tn as updateTarget,IH as wrapElements};
|
|
69
|
+
`}_syncMeters(){this._meters.forEach(e=>{e.direction=this.direction,e.min=this.min,e.max=this.max})}_handleMeterChange(e){e.stopPropagation(),this._meters.reduce((a,o,n,i)=>(o.style.setProperty("--_meter-z-index",`${i.length-n}`),o.style.setProperty("--_meter-inset",`${a}%`),a+o.percentage),0)}_handleHeadingSlotChange(){let e=[...this._labelNodes,...this._valueNodes].filter(a=>{var o;return!!((o=a.textContent)!=null&&o.trim())});this._hasSlottedHeadingContent=!!e.length}};Ut.styles=c2(xf),Ut.formAssociated=!0,s([w1({type:Number})],Ut.prototype,"min",2),s([w1({type:Number})],Ut.prototype,"max",2),s([w1({type:Boolean})],Ut.prototype,"tickmarks",2),s([w1()],Ut.prototype,"direction",2),s([w1()],Ut.prototype,"density",2),s([w1()],Ut.prototype,"shape",2),s([w1({attribute:"inner-shape"})],Ut.prototype,"innerShape",2),s([re()],Ut.prototype,"_hasSlottedHeadingContent",2),s([q0({slot:"label"})],Ut.prototype,"_labelNodes",2),s([q0({slot:"value"})],Ut.prototype,"_valueNodes",2),s([Ph({selector:"forge-meter"})],Ut.prototype,"_meters",2),Ut=s([T2("forge-meter-group")],Ut);function Od(){x2("forge-meter-group",Ut)}var bf=`${x}page-state`,Dd={elementName:bf};var yf='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',Mf=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-title-spacing-mobile:var(--forge-page-state-title-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-spacing-mobile:var(--forge-page-state-message-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:flex;justify-content:center;align-items:center;width:100%;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{display:flex;justify-content:center;align-items:center;height:var(--_page-state-graphic-height);width:100%;margin-block-end:var(--_page-state-graphic-spacing)}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);--_page-state-title-spacing:var(--_page-state-title-spacing-mobile);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);--_page-state-message-spacing:var(--_page-state-message-spacing-mobile);color:var(--_page-state-message-color);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-graphic-height:var(--_page-state-mobile-graphic-height);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, 0)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit)}.forge-page-state .actions{grid-auto-flow:row}}',So=class extends H{constructor(){super(),L(this,yf,Mf)}};So=s([y({name:Dd.elementName})],So);function Pd(){b(So)}var Nd=`${x}paginator`,Rd={PAGE_INDEX:"page-index",PAGE_SIZE:"page-size",OFFSET:"offset",TOTAL:"total",PAGE_SIZE_OPTIONS:"page-size-options",LABEL:"label",FIRST_LAST:"first-last",FIRST:"first",DISABLED:"disabled",ALTERNATIVE:"alternative"},Hf=m({},Rd),Lf={LABEL:".label > slot[name=label]",PAGE_SIZE_SELECT:".page-size-options",RANGE_LABEL:".range-label > slot[name=range-label]",FIRST_PAGE_BUTTON:".first-page",FIRST_PAGE_CONTAINER:"#first-page-container",PREVIOUS_PAGE_BUTTON:".previous-page",PREVIOUS_PAGE_CONTAINER:"#previous-page-container",NEXT_PAGE_BUTTON:".next-page",NEXT_PAGE_CONTAINER:"#next-page-container",LAST_PAGE_BUTTON:".last-page",LAST_PAGE_CONTAINER:"#last-page-container",RANGE_LABEL_ALTERNATIVE:".alternative-range-label > slot[name=alternative-range-label]"},If={CHANGE:`${Nd}-change`},Vf={DEFAULT_PAGE_INDEX:0,DEFAULT_TOTAL:0,DEFAULT_PAGE_SIZE:25,DEFAULT_PAGE_SIZE_OPTIONS:[5,15,25,50,100]},Ef={DEFAULT_LABEL:"Rows per page:",RANGE_SEPARATOR_LABEL:"of"},Z={elementName:Nd,observedAttributes:Rd,attributes:Hf,selectors:Lf,events:If,numbers:Vf,strings:Ef};var tl=class{constructor(t){this._adapter=t;this._pageIndex=Z.numbers.DEFAULT_PAGE_INDEX;this._pageSize=Z.numbers.DEFAULT_PAGE_SIZE;this._offset=0;this._total=Z.numbers.DEFAULT_TOTAL;this._pageSizeOptions=Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS.map(t=>({label:`${t}`,value:`${t}`}));this._label=Z.strings.DEFAULT_LABEL;this._firstLast=!1;this._first=!1;this._disabled=!1;this._alternative=!1;this._firstPageListener=this._onFirstPage.bind(this);this._previousPageListener=this._onPreviousPage.bind(this);this._nextPageListener=this._onNextPage.bind(this);this._lastPageListener=this._onLastPage.bind(this);this._pageSizeListener=this._onPageSizeChanged.bind(this)}initialize(){this._updateRangeLabel(),this._adapter.setLabel(this._label),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.setPageSize(this._pageSize),this._attachListeners(),this._toggleFirstLastButtons(),this._syncInteractionState()}focus(t){this._adapter.setFocus(t)}_attachListeners(){this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.attachFirstPageListener(this._firstPageListener),this._adapter.attachPreviousPageListener(this._previousPageListener),this._adapter.attachNextPageListener(this._nextPageListener),this._adapter.attachLastPageListener(this._lastPageListener)}_onFirstPage(t){if(t.stopPropagation(),!this._hasFirstPage())return;let e=0;this._dispatchChangeEvent("first-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPreviousPage(t){if(t.stopPropagation(),!this._hasPreviousPage())return;let e=this._pageIndex-1;this._dispatchChangeEvent("previous-page",{pageIndex:e})&&this._applyPageIndex(e)}_onNextPage(t){if(t.stopPropagation(),!this._hasNextPage())return;let e=this._pageIndex+1;this._dispatchChangeEvent("next-page",{pageIndex:e})&&this._applyPageIndex(e)}_onLastPage(t){if(t.stopPropagation(),!this._hasLastPage())return;let e=this._getMaxPages();this._dispatchChangeEvent("last-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPageSizeChanged(t){t.stopPropagation();let e=Number(t.detail);this._dispatchChangeEvent("page-size",{pageIndex:0,pageSize:e})?(this._applyPageIndex(0),this._applyPageSize(e)):t.preventDefault()}_dispatchChangeEvent(t,{pageSize:e=this._pageSize,pageIndex:a=this._pageIndex}={}){let o=a*e,n={type:t,pageSize:e,pageIndex:a,offset:o},i=new CustomEvent(Z.events.CHANGE,{detail:n,bubbles:!0,cancelable:!0});return this._adapter.dispatchHostEvent(i),!i.defaultPrevented}_getMaxPages(){return Math.ceil(this._total/this._pageSize)-1}_updateRangeLabel(){let t;if(typeof this._rangeLabelCallback=="function"){let e={pageSize:this._pageSize,pageIndex:this._pageIndex,offset:this._offset,pageStart:this._pageIndex*this._pageSize+1,pageEnd:Math.min((this._pageIndex+1)*this._pageSize,this._total),total:this._total};t=this._rangeLabelCallback.call(null,e)}else if(this.pageSize>1){let e=this._pageIndex*this._pageSize,o=(Math.floor(e/this._pageSize)||0)*this._pageSize+1,n=e<this._total?Math.min(e+this._pageSize,this._total):e+this._pageSize;t=`${o}-${n} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`}else t=`${this._pageIndex+1} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`;this._adapter.setRangeLabel(t)}_syncInteractionState(){if(this._disabled)return;this._adapter.setFirstPageButtonEnabled(!0),this._adapter.setPreviousPageButtonEnabled(!0),this._adapter.setNextPageButtonEnabled(!0),this._adapter.setLastPageButtonEnabled(!0);let t=[];this._hasFirstPage()||t.push("first"),this._hasPreviousPage()||t.push("previous"),this._hasNextPage()||t.push("next"),this._hasLastPage()||t.push("last"),this._adapter.tryDisableFields(t)}_toggleFirstLastButtons(){this._toggleFirstButton(),this._firstLast?this._adapter.hasLastPageButton()||this._adapter.showLastPageButton():this._adapter.hasLastPageButton()&&this._adapter.hideLastPageButton()}_toggleFirstButton(){this._first||this._firstLast?this._adapter.hasFirstPageButton()||this._adapter.showFirstPageButton():this._adapter.hasFirstPageButton()&&this._adapter.hideFirstPageButton()}_hasFirstPage(){return this._hasPreviousPage()}_hasPreviousPage(){return this._pageIndex>0&&this._pageSize>0}_hasNextPage(){let t=this._getMaxPages();return this._pageIndex<t&&this._pageSize>0}_hasLastPage(){return this._hasNextPage()}_computePageIndexFromOffset(t){t>=this._total&&(this._total>=this._pageSize?t=this._total-this._pageSize:t=0);let e=Math.min(Math.max(t,0),this._total),a=Math.floor(e/this._pageSize);this._applyPageIndex(a)}_computeOffset(){this._total>0&&(this._offset=this._pageIndex*this._pageSize)}_applyPageIndex(t){this._pageIndex=t,this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState(),this._adapter.toggleHostAttribute(Z.attributes.PAGE_INDEX,this._pageIndex!=null,this._pageIndex.toString())}_applyPageSize(t){this._pageSize=t,this._adapter.setPageSize(this._pageSize),this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState()}_applyTotal(t){this._total=t,this._updateRangeLabel(),this._offset>0&&this._total>0&&this._computePageIndexFromOffset(this._offset),this._syncInteractionState()}_applyDisabled(t){this._disabled=t,t?(this._adapter.setPageSizeSelectEnabled(!1),this._adapter.setFirstPageButtonEnabled(!1),this._adapter.setPreviousPageButtonEnabled(!1),this._adapter.setNextPageButtonEnabled(!1),this._adapter.setLastPageButtonEnabled(!1)):(this._adapter.setPageSizeSelectEnabled(!0),this._syncInteractionState())}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex!==t&&(O(t)?this._applyPageIndex(t):this._adapter.removeHostAttribute(Z.attributes.PAGE_INDEX))}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize!==t&&(this._applyPageSize(t),this._adapter.setHostAttribute(Z.attributes.PAGE_SIZE,`${this._pageSize}`))}get offset(){return this._offset}set offset(t){this._offset!==t&&(this._offset=t,this._computePageIndexFromOffset(t))}get total(){return this._total}set total(t){this._total!==t&&(this._applyTotal(t),this._adapter.setHostAttribute(Z.attributes.TOTAL,`${this._total}`))}get pageSizeOptions(){return this._pageSizeOptions.map(t=>Number(t.value))}set pageSizeOptions(t){if(s2(t)&&t.length){if(this._pageSizeOptions=t.map(e=>({label:e.toString(),value:e.toString()})).sort((e,a)=>$(e.value)-$(a.value)),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!0),O(this._pageSize)&&this._pageSizeOptions.length&&!this._pageSizeOptions.find(e=>$(e.value)===this._pageSize)){let e=$(this._pageSizeOptions[0].value);this._applyPageSize(e)}}else t!=null&&t.length||(this._adapter.detachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!1))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.setLabel(this._label),O(this._label)&&this._label.length?this._adapter.setHostAttribute(Z.attributes.LABEL,String(this._label)):this._adapter.removeHostAttribute(Z.attributes.LABEL))}get firstLast(){return this._firstLast}set firstLast(t){t=!!t,this._firstLast!==t&&(this._firstLast=t,this._toggleFirstLastButtons(),this._adapter.toggleHostAttribute(Z.attributes.FIRST_LAST,this._firstLast))}get first(){return this._first}set first(t){t=!!t,this._first!==t&&(this._first=t,this._toggleFirstButton(),this._adapter.toggleHostAttribute(Z.attributes.FIRST,this._first))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._applyDisabled(t),this._adapter.toggleHostAttribute(Z.attributes.DISABLED,this._disabled))}get alternative(){return this._alternative}set alternative(t){t=!!t,t!==this._alternative&&(this._alternative=t,this._adapter.toggleHostAttribute(Z.attributes.ALTERNATIVE,this._alternative))}get rangeLabelCallback(){return this._rangeLabelCallback}set rangeLabelCallback(t){this._rangeLabelCallback=t,this._updateRangeLabel()}};var el=class extends I{constructor(t){super(t),this._labelElement=w(t,Z.selectors.LABEL),this._pageSizeSelect=w(t,Z.selectors.PAGE_SIZE_SELECT),this._rangeLabel=w(t,Z.selectors.RANGE_LABEL),this._rangeLabelAlternative=w(t,Z.selectors.RANGE_LABEL_ALTERNATIVE),this._firstPageButton=w(t,Z.selectors.FIRST_PAGE_BUTTON),this._firstPageContainer=w(t,Z.selectors.FIRST_PAGE_CONTAINER),this._previousPageButton=w(t,Z.selectors.PREVIOUS_PAGE_BUTTON),this._previousPageContainer=w(t,Z.selectors.PREVIOUS_PAGE_CONTAINER),this._nextPageButton=w(t,Z.selectors.NEXT_PAGE_BUTTON),this._nextPageContainer=w(t,Z.selectors.NEXT_PAGE_CONTAINER),this._lastPageButton=w(t,Z.selectors.LAST_PAGE_BUTTON),this._lastPageContainer=w(t,Z.selectors.LAST_PAGE_CONTAINER)}setLabel(t){this._labelElement.textContent=t}setPageSizeOptions(t){rt(this._pageSizeSelect),this._pageSizeSelect.options=t}setPageSize(t){this._pageSizeSelect.value=t.toString()}setRangeLabel(t){this._rangeLabel.innerText=t,this._rangeLabelAlternative.innerText=t}hasFirstPageButton(){return!!w(this._component,Z.selectors.FIRST_PAGE_BUTTON)}showFirstPageButton(){this._firstPagePlaceholder=Ko(this._component,!0,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hideFirstPageButton(){this._firstPagePlaceholder=Ko(this._component,!1,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hasLastPageButton(){return!!w(this._component,Z.selectors.LAST_PAGE_BUTTON)}showLastPageButton(){this._lastPagePlaceholder=Ko(this._component,!0,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}hideLastPageButton(){this._lastPagePlaceholder=Ko(this._component,!1,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}attachPageSizeChangeListener(t){this._pageSizeSelect.addEventListener("change",t)}detachPageSizeChangeListener(t){this._pageSizeSelect.removeEventListener("change",t)}attachFirstPageListener(t){this._firstPageButton.addEventListener("click",t)}attachPreviousPageListener(t){this._previousPageButton.addEventListener("click",t)}attachNextPageListener(t){this._nextPageButton.addEventListener("click",t)}attachLastPageListener(t){this._lastPageButton.addEventListener("click",t)}setFirstPageButtonEnabled(t){this._firstPageButton.disabled=!t}setPreviousPageButtonEnabled(t){this._previousPageButton.disabled=!t}setNextPageButtonEnabled(t){this._nextPageButton.disabled=!t}setLastPageButtonEnabled(t){this._lastPageButton.disabled=!t}setPageSizeSelectEnabled(t){this._pageSizeSelect.disabled=!t}setPageSizeVisibility(t){this._pageSizeSelect.hidden=!t}setFocus(t){this._tryFocus([this._pageSizeSelect,this._firstPageButton,this._previousPageButton,this._nextPageButton,this._lastPageButton],t)}tryDisableFields(t){let e={first:()=>this.setFirstPageButtonEnabled(!1),last:()=>this.setLastPageButtonEnabled(!1),previous:()=>this.setPreviousPageButtonEnabled(!1),next:()=>this.setNextPageButtonEnabled(!1)};t.forEach(a=>{var o;return(o=e[a])==null?void 0:o.call(e)})}_tryFocus(t,e){let a=typeof(e==null?void 0:e.preventScroll)=="boolean"?e.preventScroll:!0;for(let o of t)if(o&&o.isConnected&&!o.disabled&&o.style.display!=="none"){o.focus(S(m({},e),{preventScroll:a}));return}}};function Fd(r){class t extends r{constructor(...a){super(...a)}initializeFieldInstance(a){this._fieldElement=a,this._fieldElement.shadowRoot||window.customElements.upgrade(this._fieldElement)}attributeChangedCallback(a,o,n){var i;switch(a){case Y.observedAttributes.LABEL_POSITION:this.labelPosition=n;return;case Y.observedAttributes.LABEL_ALIGNMENT:this.labelAlignment=n;return;case Y.observedAttributes.INVALID:this.invalid=p(n);return;case Y.observedAttributes.REQUIRED:this.required=p(n);return;case Y.observedAttributes.OPTIONAL:this.optional=p(n);return;case Y.observedAttributes.DISABLED:this.disabled=p(n);return;case Y.observedAttributes.FLOAT_LABEL:this.floatLabel=p(n);return;case Y.observedAttributes.VARIANT:this.variant=n;return;case Y.observedAttributes.THEME:this.theme=n;return;case Y.observedAttributes.SHAPE:this.shape=n;return;case Y.observedAttributes.DENSITY:this.density=n;return;case Y.observedAttributes.DENSE:this.dense=p(n);return;case Y.observedAttributes.POPOVER_ICON:this.popoverIcon=p(n);return;case Y.observedAttributes.SUPPORT_TEXT_INSET:this.supportTextInset=n;return}(i=super.attributeChangedCallback)==null||i.call(this,a,o,n)}get labelPosition(){return this._fieldElement.labelPosition}set labelPosition(a){this._fieldElement.labelPosition!==a&&(this._fieldElement.labelPosition=a,this.setAttribute(V.attributes.LABEL_POSITION,a))}get labelAlignment(){return this._fieldElement.labelAlignment}set labelAlignment(a){this._fieldElement.labelAlignment!==a&&(this._fieldElement.labelAlignment=a,this.setAttribute(V.attributes.LABEL_ALIGNMENT,a))}get invalid(){return this._fieldElement.invalid}set invalid(a){this._fieldElement.invalid!==a&&(this._fieldElement.invalid=a,this.toggleAttribute(V.attributes.INVALID,a))}get required(){return this._fieldElement.required}set required(a){this._fieldElement.required!==a&&(this._fieldElement.required=a,this.toggleAttribute(V.attributes.REQUIRED,a))}get optional(){return this._fieldElement.optional}set optional(a){this._fieldElement.optional!==a&&(this._fieldElement.optional=a,this.toggleAttribute(V.attributes.OPTIONAL,a))}get disabled(){return this._fieldElement.disabled}set disabled(a){this._fieldElement.disabled!==a&&(this._fieldElement.disabled=a,this.toggleAttribute(V.attributes.DISABLED,a))}get floatLabel(){return this._fieldElement.floatLabel}set floatLabel(a){this._fieldElement.floatLabel!==a&&(this._fieldElement.floatLabel=a,this.toggleAttribute(V.attributes.FLOAT_LABEL,a))}get variant(){return this._fieldElement.variant}set variant(a){this._fieldElement.variant!==a&&(this._fieldElement.variant=a,this.setAttribute(V.attributes.VARIANT,a))}get theme(){return this._fieldElement.theme}set theme(a){this._fieldElement.theme!==a&&(this._fieldElement.theme=a,this.setAttribute(V.attributes.THEME,a))}get shape(){return this._fieldElement.shape}set shape(a){this._fieldElement.shape!==a&&(this._fieldElement.shape=a,this.setAttribute(V.attributes.SHAPE,a))}get density(){return this._fieldElement.density}set density(a){this._fieldElement.density!==a&&(this._fieldElement.density=a,this.setAttribute(V.attributes.DENSITY,a))}get dense(){return this._fieldElement.dense}set dense(a){this._fieldElement.dense!==a&&(this._fieldElement.dense=a,this.toggleAttribute(V.attributes.DENSE,a))}get popoverIcon(){return this._fieldElement.popoverIcon}set popoverIcon(a){this._fieldElement.popoverIcon!==a&&(this._fieldElement.popoverIcon=a,this.toggleAttribute(V.attributes.POPOVER_ICON,a))}get supportTextInset(){return this._fieldElement.supportTextInset}set supportTextInset(a){this._fieldElement.supportTextInset!==a&&(this._fieldElement.supportTextInset=a,this.setAttribute(V.attributes.SUPPORT_TEXT_INSET,a))}floatLabelWithoutAnimation(a){this._fieldElement.floatLabelWithoutAnimation(a)}}return t}var Cf=`${x}scaffold`,Ud={VIEWPORT:"viewport"},zf=m({},Ud),ko={elementName:Cf,observedAttributes:Ud,attributes:zf};var Af='<template><div class="forge-scaffold" part="root"><slot name="left"></slot><div class="header" part="header"><slot name="header"></slot></div><div class="body" part="body"><slot name="body-left"></slot><slot name="body-header"></slot><slot name="body"></slot><slot name="body-footer"></slot><slot name="body-right"></slot></div><slot name="footer"></slot><slot name="right"></slot></div></template>',Bf=':host{--_scaffold-height:var(--forge-scaffold-height, 100%);--_scaffold-width:var(--forge-scaffold-width, 100%)}:host{display:block;width:var(--_scaffold-width);height:var(--_scaffold-height)}:host([hidden]){display:none}.forge-scaffold{--_scaffold-overflow:var(--forge-scaffold-overflow, initial);--_scaffold-body-position:var(--forge-scaffold-body-position, relative)}.forge-scaffold{position:relative;display:grid;grid-template-areas:"left header right" "left body right" "left footer right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;height:var(--_scaffold-height);width:var(--_scaffold-width);overflow:var(--_scaffold-overflow)}.header{grid-area:header;min-width:0;min-height:0}.body{position:var(--_scaffold-body-position);display:grid;grid-area:body;grid-template-areas:"body-left body-header body-right" "body-left body-inner body-right" "body-left body-footer body-right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;width:var(--_scaffold-width);min-width:0;min-height:0;overflow:var(--_scaffold-overflow)}::slotted(*){min-width:0;min-height:0}::slotted([slot=left]){grid-area:left}::slotted([slot=right]){grid-area:right}::slotted([slot=body-left]){grid-area:body-left}::slotted([slot=body-right]){grid-area:body-right}::slotted([slot=body-header]){grid-area:body-header}::slotted([slot=body]){overflow:auto;grid-area:body-inner}::slotted([slot=body-footer]){grid-area:body-footer}::slotted([slot=footer]){grid-area:footer}::slotted([slot=body-left]),::slotted([slot=body-right]),::slotted([slot=body]),::slotted([slot=left]),::slotted([slot=right]){overflow:auto}:host([viewport]){--_scaffold-height:var(--forge-scaffold-height, 100dvh);--_scaffold-width:var(--forge-scaffold-width, 100dvw)}',Xe=class extends H{static get observedAttributes(){return Object.values(ko.observedAttributes)}constructor(){super(),L(this,Af,Bf)}attributeChangedCallback(t,e,a){switch(t){case ko.observedAttributes.VIEWPORT:this.viewport=a!==null;break}}get viewport(){return this.hasAttribute(ko.attributes.VIEWPORT)}set viewport(t){this.toggleAttribute(ko.attributes.VIEWPORT,!!t)}};Xe=s([y({name:ko.elementName})],Xe);function Wd(){b(Xe)}var al=class extends I{constructor(t){super(t)}};var Gd=`${x}option`,Tf={DISABLED:"disabled",DIVIDER:"divider",LABEL:"label",SECONDARY_LABEL:"secondary-label",LEADING_ICON_CLASS:"leading-icon-class",LEADING_ICON_TYPE:"leading-icon-type",LEADING_ICON:"leading-icon",OPTION_CLASS:"option-class",TRAILING_ICON_CLASS:"trailing-icon-class",TRAILING_ICON_TYPE:"trailing-icon-type",TRAILING_ICON:"trailing-icon",TOOLTIP:"tooltip",VALUE:"value"},Sf={VALUE_CHANGE:`${Gd}-value-change`},R={elementName:Gd,attributes:Tf,events:Sf};var ol=class{constructor(t){this._adapter=t;this._disabled=!1;this._divider=!1;this._optionClass=[]}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.emitHostEvent(R.events.VALUE_CHANGE,this._value))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.toggleHostAttribute(R.attributes.LABEL,!!this._label,this._label))}get secondaryLabel(){return this._secondaryLabel}set secondaryLabel(t){this._secondaryLabel!==t&&(this._secondaryLabel=t,this._adapter.toggleHostAttribute(R.attributes.SECONDARY_LABEL,!!this._secondaryLabel,this._secondaryLabel))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.toggleHostAttribute(R.attributes.DISABLED,this._disabled))}get divider(){return this._divider}set divider(t){this._divider!==t&&(this._divider=t,this._adapter.toggleHostAttribute(R.attributes.DIVIDER,this._divider))}get optionClass(){return this._optionClass}set optionClass(t){t?typeof t=="string"&&(t=t.split(" ")):t=[],t=t.filter(e=>e&&!/\s+/.test(e)),this._optionClass.toString()!==t.toString()&&(this._optionClass=t,this._adapter.toggleHostAttribute(R.attributes.OPTION_CLASS,this._optionClass&&!!this._optionClass.length,this._optionClass.join(" ")))}get leadingIcon(){return this._leadingIcon}set leadingIcon(t){this._leadingIcon!==t&&(this._leadingIcon=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON,!!this._leadingIcon,this._leadingIcon))}get leadingIconClass(){return this._leadingIconClass}set leadingIconClass(t){this._leadingIconClass!==t&&(this._leadingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_CLASS,!!this._leadingIconClass,this._leadingIconClass))}get leadingIconType(){return this._leadingIconType}set leadingIconType(t){this._leadingIconType!==t&&(this._leadingIconType=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_TYPE,!!this._leadingIconType,this._leadingIconType))}get leadingIconComponentProps(){return this._leadingIconComponentProps}set leadingIconComponentProps(t){this._leadingIconComponentProps!==t&&(this._leadingIconComponentProps=t)}get trailingIcon(){return this._trailingIcon}set trailingIcon(t){this._trailingIcon!==t&&(this._trailingIcon=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON,!!this._trailingIcon,this._trailingIcon))}get trailingIconClass(){return this._trailingIconClass}set trailingIconClass(t){this._trailingIconClass!==t&&(this._trailingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_CLASS,!!this._trailingIconClass,this._trailingIconClass))}get trailingIconType(){return this._trailingIconType}set trailingIconType(t){this._trailingIconType!==t&&(this._trailingIconType=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_TYPE,!!this._trailingIconType,this._trailingIconType))}get trailingIconComponentProps(){return this._trailingIconComponentProps}set trailingIconComponentProps(t){this._trailingIconComponentProps!==t&&(this._trailingIconComponentProps=t)}get leadingBuilder(){return this._leadingBuilder}set leadingBuilder(t){this._leadingBuilder!==t&&(this._leadingBuilder=t)}get trailingBuilder(){return this._trailingBuilder}set trailingBuilder(t){this._trailingBuilder!==t&&(this._trailingBuilder=t)}get tooltip(){return this._tooltip}set tooltip(t){this._tooltip!==t&&(this._tooltip=t)}};var $1=class extends H{static get observedAttributes(){return[R.attributes.VALUE,R.attributes.LABEL,R.attributes.SECONDARY_LABEL,R.attributes.DISABLED,R.attributes.DIVIDER,R.attributes.OPTION_CLASS,R.attributes.LEADING_ICON,R.attributes.LEADING_ICON_CLASS,R.attributes.LEADING_ICON_TYPE,R.attributes.TRAILING_ICON,R.attributes.TRAILING_ICON_CLASS,R.attributes.TRAILING_ICON_TYPE,R.attributes.TOOLTIP]}constructor(){super(),this._core=new ol(new al(this))}attributeChangedCallback(t,e,a){switch(t){case R.attributes.VALUE:this.value=a;break;case R.attributes.LABEL:this.label=a;break;case R.attributes.SECONDARY_LABEL:this.secondaryLabel=a;break;case R.attributes.DISABLED:this.disabled=p(a);break;case R.attributes.DIVIDER:this.divider=this.hasAttribute(R.attributes.DIVIDER);break;case R.attributes.OPTION_CLASS:this.optionClass=a;break;case R.attributes.LEADING_ICON:this.leadingIcon=a;break;case R.attributes.LEADING_ICON_CLASS:this.leadingIconClass=a;break;case R.attributes.LEADING_ICON_TYPE:this.leadingIconType=a;break;case R.attributes.TRAILING_ICON:this.trailingIcon=a;break;case R.attributes.TRAILING_ICON_CLASS:this.trailingIconClass=a;break;case R.attributes.TRAILING_ICON_TYPE:this.trailingIconType=a;break;case R.attributes.TOOLTIP:this.tooltip=a?{text:a}:void 0;break}}};s([v()],$1.prototype,"value",2),s([v()],$1.prototype,"label",2),s([v()],$1.prototype,"secondaryLabel",2),s([v()],$1.prototype,"disabled",2),s([v()],$1.prototype,"divider",2),s([v()],$1.prototype,"optionClass",2),s([v()],$1.prototype,"leadingIcon",2),s([v()],$1.prototype,"leadingIconClass",2),s([v()],$1.prototype,"leadingIconType",2),s([v()],$1.prototype,"leadingIconComponentProps",2),s([v()],$1.prototype,"trailingIcon",2),s([v()],$1.prototype,"trailingIconClass",2),s([v()],$1.prototype,"trailingIconType",2),s([v()],$1.prototype,"trailingIconComponentProps",2),s([v()],$1.prototype,"leadingBuilder",2),s([v()],$1.prototype,"trailingBuilder",2),s([v()],$1.prototype,"tooltip",2),$1=s([y({name:R.elementName})],$1);function Yd(){b($1)}var kf=`${x}option-group`,Of={LABEL:"label"},sa={elementName:kf,attributes:Of};var je=class extends H{static get observedAttributes(){return[sa.attributes.LABEL]}constructor(){super()}attributeChangedCallback(t,e,a){switch(t){case sa.attributes.LABEL:this.label=a;break}}get label(){return this._label}set label(t){this._label!==t&&(this._label=t||"",this.setAttribute(sa.attributes.LABEL,this._label))}get text(){return this._label}set text(t){this.label=t}};je=s([y({name:sa.elementName})],je);function Kd(){b(je)}var qd=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(qd||{});function p5(r,t){let e=r.some(o=>d5(o)),a=r.some(o=>Df(o));return e&&t===1||a&&t===0}function d5(r){return O(r)&&l2(r)&&r.hasOwnProperty("options")}function Df(r){return O(r)&&l2(r)&&r.hasOwnProperty("label")&&r.hasOwnProperty("value")}var Oo=class extends I{constructor(t){super(t)}get popupElement(){var t;return(t=this._listDropdown)==null?void 0:t.dropdownElement}getOptions(){let t=Array.from(this._component.querySelectorAll(sa.elementName));if(t.length)return t.map(e=>{let a=Array.from(e.querySelectorAll(R.elementName)),o=this._createOptionsFromElements(a);return{text:e.label,builder:e.builder,value:e.value,options:o}});{let e=Array.from(this._component.querySelectorAll(R.elementName));return this._createOptionsFromElements(e)}}_createOptionsFromElements(t){return t.map(e=>{let a=e.hasAttribute(R.attributes.OPTION_CLASS)?e.getAttribute(R.attributes.OPTION_CLASS):e.optionClass;return typeof a=="string"&&(a=a.split(" ")),{label:e.hasAttribute(R.attributes.LABEL)?e.getAttribute(R.attributes.LABEL):O(e.label)?e.label:e.innerText,secondaryLabel:e.hasAttribute(R.attributes.SECONDARY_LABEL)?e.getAttribute(R.attributes.SECONDARY_LABEL):O(e.secondaryLabel)?e.secondaryLabel:void 0,value:e.hasAttribute(R.attributes.VALUE)?e.getAttribute(R.attributes.VALUE):e.value,disabled:e.hasAttribute(R.attributes.DISABLED),divider:e.hasAttribute(R.attributes.DIVIDER),optionClass:a,leadingIcon:e.hasAttribute(R.attributes.LEADING_ICON)?e.getAttribute(R.attributes.LEADING_ICON):e.leadingIcon,leadingIconClass:e.hasAttribute(R.attributes.LEADING_ICON_CLASS)?e.getAttribute(R.attributes.LEADING_ICON_CLASS):e.leadingIconClass,leadingIconType:e.hasAttribute(R.attributes.LEADING_ICON_TYPE)?e.getAttribute(R.attributes.LEADING_ICON_TYPE):e.leadingIconType,leadingIconComponentProps:e.leadingIconComponentProps,trailingIcon:e.hasAttribute(R.attributes.TRAILING_ICON)?e.getAttribute(R.attributes.TRAILING_ICON):e.trailingIcon,trailingIconClass:e.hasAttribute(R.attributes.TRAILING_ICON_CLASS)?e.getAttribute(R.attributes.TRAILING_ICON_CLASS):e.trailingIconClass,trailingIconType:e.hasAttribute(R.attributes.TRAILING_ICON_TYPE)?e.getAttribute(R.attributes.TRAILING_ICON_TYPE):e.trailingIconType,trailingIconComponentProps:e.trailingIconComponentProps,leadingBuilder:e.leadingBuilder,trailingBuilder:e.trailingBuilder,tooltip:e.tooltip}})}open(t){var e;if(this._listDropdown=new Re(this._targetElement,t),this._listDropdown.open(),this._component.id){let a=(e=this._listDropdown.dropdownElement)==null?void 0:e.querySelector("forge-list");a==null||a.setAttribute("aria-labelledby",this._component.id)}}async close(){this._listDropdown&&(await this._listDropdown.close(),this.destroyListDropdown())}destroyListDropdown(){var t;(t=this._listDropdown)==null||t.destroy(),this._listDropdown=void 0}setDismissListener(t){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(J.events.TOGGLE,t)}toggleOptionMultiple(t,e){var a;(a=this._listDropdown)==null||a.toggleOptionMultiple(t,e)}getActiveOptionIndex(){var t,e;return(e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1}activateSelectedOption(){var t;(t=this._listDropdown)==null||t.activateSelectedOption()}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}highlightActiveOption(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}patchSelectedValues(t){var e;(e=this._listDropdown)==null||e.setSelectedValues(t)}setOptionsListener(t){let e=o=>{o.stopPropagation(),t(this.getOptions())};this._component.addEventListener(R.events.VALUE_CHANGE,e);let a=new MutationObserver(()=>t(this.getOptions()));return a.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(R.events.VALUE_CHANGE,e),a.disconnect()}}setOptions(t,e=!0){e&&this._clearOptions();for(let a of t)if(d5(a)){let o=this._createOptionGroupElement(a);for(let n of a.options){let i=this._createOptionElement(n);o.appendChild(i)}this._component.appendChild(o)}else{let o=this._createOptionElement(a);this._component.appendChild(o)}}appendDropdownOptions(t){var e;(e=this._listDropdown)==null||e.appendOptions(t)}setDropdownOptions(t){var e;(e=this._listDropdown)==null||e.setOptions(t)}scrollSelectedOptionIntoView(){var t;(t=this._listDropdown)==null||t.scrollSelectedOptionIntoView()}isFocusWithinPopup(t){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(t)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let t=this.popupElement;t==null||t.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(sa.elementName)).forEach(a=>Oe(a)),Array.from(this._component.querySelectorAll(R.elementName)).forEach(a=>Oe(a))}_createOptionGroupElement(t){let e=document.createElement("forge-option-group");return Object.assign(e,t),e}_createOptionElement(t){let e=document.createElement("forge-option");return Object.assign(e,t),e.textContent=t.label,t.elementAttributes&&t.elementAttributes.forEach((a,o)=>{e.setAttribute(o,a)}),e}};var $d={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},Pf=m({},$d),Nf={CHANGE:"change"},H2={observedAttributes:$d,attributes:Pf,events:Nf};var Do=class extends X0{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=a=>this._onFocus(a),this._blurListener=a=>this._onBlur(a),this._clickListener=a=>this._onClick(a),this._keydownListener=a=>this._onKeydown(a),this._optionsChangedListener=a=>this._onOptionsChanged(a),this._activeChangeListener=a=>this._onActiveOptionChanged(a),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=Vt()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._optionListenerDestructor&&this._optionListenerDestructor(),this._open=!1,this._adapter.destroyListDropdown()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return p5(this._options,1)?[].concat.apply([],this._options.map(e=>e.options)):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();O(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,referenceElement:this._adapter.hostElement,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:a=>{let o=this._flatOptions,n=o.find(i=>i.value===a);if(n){let i=o.indexOf(n);this._onSelect(n,i,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,a,o=!0){return new Promise(async n=>{if(this._valueChanging)return Promise.resolve(!1);let i=e?e.value:"",l=e?e.label:"",h=[...this._value],c=[...this._selectedValues],d=[...this._selectedLabels],u=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(i)){let q=this._selectedValues.indexOf(i);this._selectedValues.splice(q,1),this._selectedLabels.splice(q,1),this._selectedIndexes.splice(q,1)}else this._selectedValues.push(i),this._selectedLabels.push(l),this._selectedIndexes.push(a);else O(i)?(this._selectedValues[0]=i,this._selectedLabels[0]=l,this._selectedIndexes[0]=a):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let M=()=>{this._selectedValues=[...c],this._selectedLabels=[...d],this._selectedIndexes=[...u],this._value=[...h]},f=()=>{if(this._multiple){let q=this._selectedIndexes.includes(a);this._adapter.toggleOptionMultiple(a,q)}this._applySelection()},C=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&o&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,C));let q=await this._valueChanging;if(this._valueChanging=void 0,!q)return M(),this._tryUpdateDropdownPosition(),n(!1)}let A=!this._adapter.emitHostEvent(H2.events.CHANGE,C,!0,!0);A?M():f(),this._tryUpdateDropdownPosition(),n(!A)})}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let a of e){this._value.includes(a)||this._value.push(a);let o=this._flatOptions.find(n=>F2(n.value,a));o&&(this._selectedValues.push(o.value),this._selectedLabels.push(o.label))}this._selectedIndexes=this._selectedValues.map(a=>this._flatOptions.findIndex(o=>o.value===a)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(a=>this._selectedValues.includes(a.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let a=e.key==="Escape"||e.keyCode===27,o=e.key==="Enter"||e.keyCode===13,n=e.key==="Space"||e.keyCode===32,i=e.key==="ArrowDown"||e.keyCode===40,l=e.key==="ArrowUp"||e.keyCode===38,h=e.keyCode>=48&&e.keyCode<=90,c=e.key==="Home"||e.keyCode===36,d=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!h&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),a&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(n)e.preventDefault(),e.stopPropagation(),this._open?this._closeDropdown():this._openDropdown();else if(o)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(l||i){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let M=0;this._open?(M=this._adapter.getActiveOptionIndex(),M===-1&&(M=this._getFirstSelectedOptionIndex())):M=this._getFirstSelectedOptionIndex(),l?M=this._getPreviousHighlightableOptionIndex(M,this._nonDividerOptions):M=this._getNextHighlightableOptionIndex(M,this._nonDividerOptions),this._adapter.highlightActiveOption(M)}else if(c)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(M=>!M.disabled)));else if(d){if(this._open){e.preventDefault();let M=this._nonDividerOptions;for(let f=M.length-1;f>=0;f--)if(!M[f].disabled){this._adapter.highlightActiveOption(f);break}}}else h&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,a){let o=e;return o<=0?o=a.length-1:o--,a[o].disabled?this._getPreviousHighlightableOptionIndex(o,a):o}_getNextHighlightableOptionIndex(e,a){let o=e;return o===a.length-1?o=0:o++,a[o].disabled?this._getNextHighlightableOptionIndex(o,a):o}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let a=this._flatOptions.find(({disabled:o,label:n})=>!o&&n.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(a){let o=this._flatOptions.indexOf(a);this._open?this._adapter.highlightActiveOption(o):this._multiple||this._onSelect(a,o,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let a;Array.isArray(e)?a=[...e]:a=e,this._applyValue(a)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let a;if(Array.isArray(e)?a=[...e]:a=[e],a.sort(),this.multiple)this.value=a.map(o=>this._flatOptions[o]).filter(o=>o).map(o=>o.value);else{let o=this._flatOptions[a[a.length-1]];if(!o)return;this.value=o.value}}get options(){return this._adapter.getOptions()}set options(e){let a;p5(e,1)?a=e.map(o=>m({},o)):a=e.map(o=>m({},o)),this._options=a,this._adapter.setOptions(a),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(a)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown())}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var L2=class extends Gt{constructor(){super()}attributeChangedCallback(t,e,a){switch(super.attributeChangedCallback(t,e,a),t){case H2.attributes.MULTIPLE:this.multiple=p(a);break;case H2.attributes.VALUE:this.value=a;break}}appendOptions(t){this._core.appendOptions(t)}selectAll(){this._core.selectAll()}deselectAll(){this._core.deselectAll()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};s([v()],L2.prototype,"value",2),s([v()],L2.prototype,"selectedIndex",2),s([v()],L2.prototype,"options",2),s([v()],L2.prototype,"multiple",2),s([v()],L2.prototype,"open",2),s([v()],L2.prototype,"optionBuilder",2),s([v()],L2.prototype,"selectedTextBuilder",2),s([v()],L2.prototype,"beforeValueChange",2),s([v({set:!1})],L2.prototype,"popupElement",2);var Xd=`${x}select`,Rf={FIELD:"#field",SELECTED_TEXT:"#selected-text",LABEL:"#select-label"},jd={OPEN:"open",TYPE:"type",VALUE:"value",LABEL:"label",MULTIPLE:"multiple",DISABLED:"disabled",PLACEHOLDER:"placeholder",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},Ff=m({},jd),Uf={SCROLLED_BOTTOM:`${Xd}-scrolled-bottom`},$t={elementName:Xd,observedAttributes:jd,attributes:Ff,selectors:Rf,events:Uf};var rl=class extends Oo{constructor(t){super(t),this._fieldElement=w(t,$t.selectors.FIELD),this._labelElement=w(t,$t.selectors.LABEL),this._selectedTextElement=w(t,$t.selectors.SELECTED_TEXT),this._fieldElement.setAttribute("exportparts",Object.values(V.parts).join(", ")),this._fieldElement.focusIndicatorTargetElement=this._component}get fieldElement(){return this._fieldElement}initializeAccessibility(){this._component.setAttribute("role","combobox"),this._component.setAttribute("aria-haspopup","true"),this._component.setAttribute("aria-expanded","false"),Ne(),G2(this._component),this.fieldElement.required&&this.setHostAttribute("aria-required","true"),this.fieldElement.disabled&&this.setHostAttribute("aria-disabled","true"),this.fieldElement.invalid&&this.setHostAttribute("aria-invalid","true"),this._component[nt]=!this._component.disabled}setLabel(t){let a=!(this._fieldElement.labelPosition==="inset"&&(this._fieldElement.density==="extra-small"||this._fieldElement.dense))&&!!(t!=null&&t.trim());(!this._component.hasAttribute("aria-label")||this._component.getAttribute("aria-label")===this._labelElement.textContent)&&this._component.setAttribute("aria-label",t),a?(this._labelElement.isConnected||this._fieldElement.insertAdjacentElement("afterbegin",this._labelElement),this._labelElement.textContent=t):this._labelElement.remove()}setPlaceholderText(t){W(this._selectedTextElement,!!(t!=null&&t.trim()),"placeholder",t)}open(t){this._targetElement||(this._targetElement=w(this._fieldElement,V.selectors.POPOVER_TARGET)),super.open(t),this._component.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._component.setAttribute("aria-expanded","true"),this._fieldElement.popoverExpanded=!0}close(){return this._component.setAttribute("aria-expanded","false"),this._component.removeAttribute("aria-activedescendant"),G2(this._component),this._fieldElement.popoverExpanded=!1,super.close()}floatLabel(t){this._fieldElement.floatLabel=t}updateActiveDescendant(t){W(this._component,!!t,"aria-activedescendant",t)}setSelectedText(t){this._selectedTextElement.textContent=t}setDisabled(t){this._component[nt]=!t,W(this._component,t,"aria-disabled","true")}setRequired(){this._component[b2]()}addClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}addTargetListener(t,e){this._component.addEventListener(t,e)}removeTargetListener(t,e){this._component.removeEventListener(t,e)}syncValue(t){let a=(Array.isArray(t)?!t.length||!t.some(n=>n!=null):t==null)?null:new FormData,o=JSON.stringify(t);a&&t&&a.append(this._component.name,o),this._component.setFormValue(a,o),this._component[b2]()}};var nl=class extends Do{constructor(e){super(e);this._label="";this._required=!1;this._permanentlyFloatLabel=!1;this._mousedownListener=this._onMouseDown.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["labelPosition","variant"]),super.initialize(),super.initializeTarget(),this._initializeLabel(),this._initializeAccessibility(),this._adapter.addTargetListener("mousedown",this._mousedownListener)}destroy(){super.destroy(),this._adapter.removeTargetListener("mousedown",this._mousedownListener)}syncFloatingLabelState({force:e}={}){e!==void 0&&(this._permanentlyFloatLabel=e),this._updateLabel(),this._tryFloatLabel()}setDisabled(e){this._adapter.setDisabled(e)}_initializeLabel(){this._updateLabel(),this._tryFloatLabel()}_initializeValue(){super._initializeValue(),this._tryFloatLabel()}_initializeAccessibility(){this._adapter.initializeAccessibility()}_onMouseDown(e){e.preventDefault()}_onClick(e){this._adapter.fieldElement.disabled||e.composedPath().find(o=>{var n;return(n=o.matches)==null?void 0:n.call(o,"slot[name=accessory]")})||(this._adapter.focusHost(),super._onClick(e))}_openDropdown(){super._openDropdown(),this._open&&this._adapter.toggleHostAttribute($t.attributes.OPEN,!0)}_closeDropdown(){super._closeDropdown(),this._open||this._adapter.toggleHostAttribute($t.attributes.OPEN,!1)}_onDismiss(){super._onDismiss()}_onDropdownScrollEnd(){this._adapter.emitHostEvent($t.events.SCROLLED_BOTTOM)}async _onSelect(e,a,o=!0){let n=await super._onSelect(e,a,o);return n&&(this._adapter.setSelectedText(this._getSelectedText()),o&&!this._multiple&&this._adapter.focusHost()),this._tryFloatLabel(),this._adapter.syncValue(this._value),n}_reset(){super._reset(),this._adapter.setSelectedText(""),this._tryFloatLabel()}_tryFloatLabel(){if(this._permanentlyFloatLabel){this._adapter.floatLabel(!0);return}let e=!!this._getSelectedText()||!!this._selectedValues.length,a=!!this._placeholder;this._adapter.floatLabel(e||a)}_updateLabel(){this._adapter.setLabel(this._label)}_applyValue(e){super._applyValue(e),this._adapter.syncValue(this._value);let a=this._getSelectedText();this._adapter.setSelectedText(a),this._tryFloatLabel()}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._updateLabel(),this._label&&this._initializeLabel(),this._adapter.toggleHostAttribute($t.attributes.LABEL,!!this._label,this._label))}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder!==e&&(this._placeholder=e,this._adapter.setPlaceholderText(this._placeholder),this._initializeLabel())}get multiple(){return super.multiple}set multiple(e){this._multiple!==e&&(super.multiple=e,this._adapter.toggleHostAttribute($t.attributes.MULTIPLE,e))}set required(e){this._required!==e&&this._adapter.setRequired()}};var Wf='<template><forge-field id="field" popover-icon focus-indicator-allow-focus focus-indicator-focus-mode="focus"><label id="select-label" aria-hidden="true" part="label" slot="label"></label><slot slot="start" name="start"></slot><div data-forge-field-input class="selected-text-container" part="text-container" aria-live="assertive" aria-atomic="true"><slot name="value"><span id="selected-text" class="selected-text" part="text"></span></slot></div><slot slot="end" name="end"></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text" name="support-text"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text" name="helper-text"></slot></forge-field></template>',Gf=":host{display:block;outline:0}:host([hidden]){display:none}forge-field{--_select-placeholder-color:var(--forge-select-placeholder-color, var(--forge-field-placeholder-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6))))}.selected-text-container{display:grid;align-items:center;cursor:pointer}.selected-text,::slotted([slot=value]){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selected-text:empty::before{content:attr(placeholder);color:var(--_select-placeholder-color);font-size:inherit}:host([disabled]) .selected-text-container{cursor:not-allowed}forge-field{display:contents}",Ve=class extends We(h2(Ue(V1(I1(Fd(L2)))))){static get observedAttributes(){return[...Object.values(Y.observedAttributes),...Object.values($t.observedAttributes),...Object.values(H2.observedAttributes)]}constructor(){var e;super(),j.define([z0,C0]),L(this,Wf,Gf);let t=(e=this.shadowRoot)==null?void 0:e.querySelector(V.elementName);this.initializeFieldInstance(t),this[J2]="select",this._core=new nl(new rl(this))}connectedCallback(){super.connectedCallback(),this[N]({role:"combobox",ariaDisabled:this.disabled?"true":"false",ariaRequired:this.required?"true":"false"})}attributeChangedCallback(t,e,a){switch(t){case $t.observedAttributes.OPEN:this.open=p(a);return;case $t.observedAttributes.LABEL:this.label=a;return;case $t.observedAttributes.PLACEHOLDER:this.placeholder=a;return}super.attributeChangedCallback(t,e,a)}[E2](){return this.value}[b2](){this[r1].setValidity({valueMissing:this.required&&!this.value},this[Q2]({required:this.required,value:this.value}))}formResetCallback(){this.value=null}formStateRestoreCallback(t){this.value=JSON.parse(t)}labelClickedCallback(){this.click(),this.focus()}labelChangedCallback(t){this[N]({ariaLabel:t})}setFormValue(t,e){this[r1].setFormValue(t,e)}get floatLabel(){return super.floatLabel}set floatLabel(t){this._core.syncFloatingLabelState({force:t})}get density(){return super.density}set density(t){super.density=t,this._core.syncFloatingLabelState()}get dense(){return super.dense}set dense(t){super.dense=t,this._core.syncFloatingLabelState()}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this._core.setDisabled(t)}get required(){return super.required}set required(t){super.required=t,this._core.required=t}get labelPosition(){return super.labelPosition}set labelPosition(t){super.labelPosition=t,this._core.syncFloatingLabelState()}};s([v()],Ve.prototype,"label",2),s([v()],Ve.prototype,"placeholder",2),s([v()],Ve.prototype,"readonly",2),Ve=s([y({name:$t.elementName,dependencies:[N1,$1,je,F1,ct,Z1,O2,Q,Xe,se,s1]})],Ve);function Zd(){b(Ve)}var Yf='<template><div class="forge-paginator" part="root" forge-popover-host><div class="container" part="container"><div class="label" part="label" id="label"><slot name="label"></slot></div><forge-select class="page-size-options" aria-labelledby="label" label-position="none" density="extra-small" part="page-size-options"></forge-select><div class="range-label" part="range-label"><slot name="range-label"></slot></div></div><div class="actions" part="actions"><div id="first-page-container"><forge-icon-button class="first-page" part="first-page-button" part="first-page-button-element"><forge-icon name="first_page" part="first-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="first-page-tooltip">Go to the first page</slot></forge-tooltip></div><div id="previous-page-container"><forge-icon-button class="previous-page" part="previous-page-button" part="previous-page-button-element"><forge-icon name="keyboard_arrow_left" part="previous-page-button-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="previous-page-tooltip">Go to the previous page</slot></forge-tooltip></div><div class="alternative-range-label" part="alternative-range-label"><slot name="alternative-range-label"></slot></div><div id="next-page-container"><forge-icon-button class="next-page" part="next-page-button" part="next-page-button-element"><forge-icon name="keyboard_arrow_right" part="next-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="next-page-tooltip">Go to the next page</slot></forge-tooltip></div><div id="last-page-container"><forge-icon-button class="last-page" part="last-page-button" part="last-page-button-element"><forge-icon name="last_page" part="last-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="last-page-tooltip">Go to the last page</slot></forge-tooltip></div></div></div></template>',Kf=':host{display:block}:host([hidden]){display:none}.forge-paginator{display:flex;gap:var(--forge-spacing-xsmall,8px)}.container{display:flex;gap:var(--forge-spacing-medium,16px);align-items:center}.alternative-range-label,.label,.range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.actions{display:flex;align-items:center}.alternative-range-label{display:none}:host([alternative]) .alternative-range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);display:inline-block}:host([alternative]) .container{display:none}:host([alternative]) .actions{width:100%;justify-content:var(--forge-paginator-alternative-alignment,start)}',n2=class extends H{static get observedAttributes(){return Object.values(Z.observedAttributes)}constructor(){super(),j.define([p3,s0,ue,g3]),L(this,Yf,Kf),this._core=new tl(new el(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){var o,n,i,l;switch(t){case Z.observedAttributes.PAGE_INDEX:this.pageIndex=(o=$(a))!=null?o:Z.numbers.DEFAULT_PAGE_INDEX;break;case Z.observedAttributes.PAGE_SIZE:this.pageSize=(n=$(a))!=null?n:Z.numbers.DEFAULT_PAGE_SIZE;break;case Z.observedAttributes.OFFSET:this.offset=$(a);break;case Z.observedAttributes.TOTAL:this.total=(i=$(a))!=null?i:Z.numbers.DEFAULT_TOTAL;break;case Z.observedAttributes.PAGE_SIZE_OPTIONS:this.pageSizeOptions=(l=Or(a))!=null?l:Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS;break;case Z.observedAttributes.LABEL:this.label=a;break;case Z.observedAttributes.FIRST_LAST:this.firstLast=p(a);break;case Z.observedAttributes.FIRST:this.first=p(a);break;case Z.observedAttributes.DISABLED:this.disabled=p(a);break;case Z.observedAttributes.ALTERNATIVE:this.alternative=p(a);break}}focus(t){this._core.focus(t)}};s([v()],n2.prototype,"pageIndex",2),s([v()],n2.prototype,"pageSize",2),s([v()],n2.prototype,"offset",2),s([v()],n2.prototype,"total",2),s([v()],n2.prototype,"pageSizeOptions",2),s([v()],n2.prototype,"label",2),s([v()],n2.prototype,"firstLast",2),s([v()],n2.prototype,"first",2),s([v()],n2.prototype,"disabled",2),s([v()],n2.prototype,"alternative",2),s([v()],n2.prototype,"rangeLabelCallback",2),n2=s([y({name:Z.elementName,dependencies:[s1,Ve,d1]})],n2);function Qd(){b(n2)}var Jd=`${x}select-dropdown`,qf={TARGET:"target",SELECTED_TEXT_TARGET:"selected-text-target",SYNC_SELECTED_TEXT:"sync-selected-text"},$f=m({},qf),Xf={SCROLLED_BOTTOM:`${Jd}-scrolled-bottom`},Ze={elementName:Jd,attributes:$f,events:Xf};var il=class extends Do{constructor(e){super(e);this._syncSelectedText=!1;this._originalTargetText="";this._targetDisconnectedListener=()=>this._onTargetDisconnected()}initialize(){this._tryAttach(),super.initialize()}destroy(){super.destroy(),this._adapter.isAttached()&&this._detach()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(Ze.events.SCROLLED_BOTTOM)}_applyValue(e){super._applyValue(e),this._applySelection()}_applySelection(){if(super._applySelection(),this._syncSelectedText||typeof this._selectedTextBuilder=="function"){let e=this._getSelectedText();e||(e=this._originalTargetText),this._adapter.setTargetText(e||"",this._selectedTextTarget)}}_tryAttach(){this._adapter.attach(this._target),this._adapter.isAttached()&&(this._targetDisconnectedDestructor=this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener),this._originalTargetText=this._adapter.getTargetText(this._selectedTextTarget),this.initializeTarget())}_detach(){this._adapter.detach(),this._targetDisconnectedDestructor&&(this._targetDisconnectedDestructor(),this._targetDisconnectedDestructor=void 0)}_onTargetDisconnected(){this._adapter.detach()}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this._adapter.isAttached()&&this._detach(),this._tryAttach())}get selectedTextTarget(){return this._selectedTextTarget}set selectedTextTarget(e){this._selectedTextTarget!==e&&(this._selectedTextTarget=e)}get syncSelectedText(){return this._syncSelectedText}set syncSelectedText(e){this._syncSelectedText!==e&&(this._syncSelectedText=e)}};var sl=class extends Oo{constructor(t){super(t)}initializeAccessibility(){this._targetElement.setAttribute("role","combobox"),this._targetElement.setAttribute("aria-live","polite"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this.setAriaControls()}addClickListener(t){this._targetElement.addEventListener("click",t)}removeClickListener(t){this._targetElement&&this._targetElement.removeEventListener("click",t)}addTargetListener(t,e){let a,o;t==="keydown"&&(a=!1,o=!0),this._targetElement.addEventListener(t,e,{passive:a,capture:o})}removeTargetListener(t,e){this._targetElement&&this._targetElement.removeEventListener(t,e)}updateActiveDescendant(t){t?this._targetElement.setAttribute("aria-activedescendant",t):this._targetElement.removeAttribute("aria-activedescendant")}open(t){super.open(t),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._targetElement.setAttribute("aria-expanded","true")}close(){return this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.removeAttribute("aria-activedescendant"),this.setAriaControls(),super.close()}attach(t){let o=(this._component.getRootNode()||HTMLDocument||this._component.ownerDocument||document).querySelector(t);o&&(this._targetElement=o)}detach(){this._targetElement=void 0}setTargetDisconnectedListener(t){if(!this._targetElement||!this._targetElement.parentElement)return()=>{};let e=new MutationObserver(a=>{a.some(n=>Array.from(n.removedNodes).some(i=>i===this._targetElement))&&(e.disconnect(),t())});return e.observe(this._targetElement.parentElement,{childList:!0}),()=>e.disconnect()}isAttached(){return!!this._targetElement}setTargetText(t,e){let a=this._targetElement;if(e){let o=this._getElementBySelector(e);o&&(a=o)}a&&(a.textContent=t)}getTargetText(t){let e=t?this._getElementBySelector(t):this._targetElement;return e?e.innerText:""}_getElementBySelector(t){return this._targetElement.querySelector(t)||this._getRootNode().querySelector(t)}_getRootNode(){var t,e;return(e=(t=this._component.getRootNode())!=null?t:this._component.ownerDocument)!=null?e:document}setAriaControls(){let t=this._component.querySelector("[data-forge-aria-controls-placeholder]");if(t){this._targetElement.setAttribute("aria-controls",t.id);return}t=document.createElement("div"),t.id=`forge-select-dropdown-temp-${Vt(10)}`,t.setAttribute("data-forge-aria-controls-placeholder",""),this._targetElement.setAttribute("aria-controls",t.id),this._component.appendChild(t)}};var jf="<template></template>",Zf=":host{display:none}",f0=class extends L2{static get observedAttributes(){return[Ze.attributes.TARGET,Ze.attributes.SELECTED_TEXT_TARGET,Ze.attributes.SYNC_SELECTED_TEXT,H2.attributes.VALUE,H2.attributes.MULTIPLE,H2.attributes.OBSERVE_SCROLL,H2.attributes.OBSERVE_SCROLL_THRESHOLD,H2.attributes.POPUP_CLASSES,H2.attributes.OPTION_LIMIT,H2.attributes.SYNC_POPUP_WIDTH]}constructor(){super(),L(this,jf,Zf),this._core=new il(new sl(this))}attributeChangedCallback(t,e,a){switch(t){case Ze.attributes.TARGET:this.target=a;return;case Ze.attributes.SELECTED_TEXT_TARGET:this.selectedTextTarget=a;return;case Ze.attributes.SYNC_SELECTED_TEXT:this.syncSelectedText=p(a);return}super.attributeChangedCallback(t,e,a)}};s([v()],f0.prototype,"target",2),s([v()],f0.prototype,"selectedTextTarget",2),s([v()],f0.prototype,"syncSelectedText",2),f0=s([y({name:Ze.elementName,dependencies:[$1,je,F1,ct,Z1,O2,Xe,se,s1]})],f0);function t6(){b(f0)}var e6=class extends at{constructor(t){super(t)}_build(){return document.createElement($t.elementName)}_configure(){var t;typeof((t=this._config.options)==null?void 0:t.helperText)=="string"&&this.setHelperText(this._config.options.helperText)}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}onChange(t){this._element.addEventListener("change",e=>t(e.detail))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&this._helperTextElement.isConnected&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}};var Qf=`${x}skip-link`,a6={TARGET:"target",THEME:"theme",MUTED:"muted",PERSISTENT:"persistent",INLINE:"inline",SKIP_URL_CHANGE:"skip-url-change"},Jf=m({},a6),tx={ANCHOR:"a"},u2={elementName:Qf,observedAttributes:a6,attributes:Jf,selectors:tx};var ex='<template><a class="forge-skip-link" part="anchor"><slot>Skip to main content</slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></a></template>',ax=':host{--_skip-link-inset:var(--forge-skip-link-inset, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px));--_skip-link-z-index:var(--forge-skip-link-z-index, var(--forge-z-index-popup, 10));--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, var(--forge-animation-duration-short4, 200ms));--_skip-link-transition-timing-function:var(--forge-skip-link-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}:host{transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);display:block;position:fixed;inset:var(--_skip-link-inset);z-index:var(--_skip-link-z-index);block-size:fit-content;inline-size:fit-content;opacity:0;transform:translateY(-100%)}:host([hidden]){display:none}:host(:where(:focus-within,[persistent])){transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);transform:translateY(0);opacity:1}.forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000));--_skip-link-shape:var(--forge-skip-link-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skip-link-elevation:var(--forge-skip-link-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_skip-link-padding-block:var(--forge-skip-link-padding-block, var(--forge-spacing-xsmall, 8px));--_skip-link-padding-inline:var(--forge-skip-link-padding-inline, var(--forge-spacing-medium, 16px));--_skip-link-focus-indicator-color:var(--forge-skip-link-focus-indicator-color, var(--_skip-link-background))}.forge-skip-link{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;outline:0;box-shadow:var(--_skip-link-elevation);border-radius:var(--_skip-link-shape);background:var(--_skip-link-background);padding-block:var(--_skip-link-padding-block);padding-inline:var(--_skip-link-padding-inline);cursor:pointer;color:var(--_skip-link-color);text-decoration:underline}:host([theme=primary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary, #3f51b5));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=primary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary-container-high, #b6bde3));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary-container-high, #000000))}:host([theme=secondary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([theme=tertiary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary, #3d5afe));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary-container-high, #b5c0ff));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary-container-high, #000000))}:host([theme=success]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success, #2e7d32));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success-container-high, #b0ceb1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success-container-high, #000000))}:host([theme=error]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error, #b00020));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error-container-high, #e19eaa));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error-container-high, #000000))}:host([theme=warning]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning, #d14900));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning-container-high, #eeba9e));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning-container-high, #000000))}:host([theme=info]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info, #1565c0));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info-container-high, #a6c4e7));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info-container-high, #000000))}:host(:where(:not([theme]),[theme=default])[muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([inline]){position:absolute;transform:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_skip-link-focus-indicator-color);--forge-focus-indicator-shape:var(--_skip-link-shape)}@media (prefers-reduced-motion:reduce){:host{--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, 0s)}}',Po=class extends H{constructor(){super();this._target="";this._theme="default";this._muted=!1;this._persistent=!1;this._inline=!1;this._skipUrlChange=!1;this._clickListener=e=>this._handleClick(e);L(this,ex,ax),this._anchorElement=w(this,u2.selectors.ANCHOR)}static get observedAttributes(){return Object.values(u2.observedAttributes)}attributeChangedCallback(e,a,o){switch(e){case u2.observedAttributes.TARGET:this.target=o;break;case u2.observedAttributes.THEME:this.theme=o;break;case u2.observedAttributes.MUTED:this.muted=p(o);break;case u2.observedAttributes.PERSISTENT:this.persistent=p(o);break;case u2.observedAttributes.INLINE:this.inline=p(o);break;case u2.observedAttributes.SKIP_URL_CHANGE:this.skipUrlChange=p(o);break}}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this.setAttribute(u2.attributes.TARGET,this._target),this._anchorElement.href=`#${this._target}`)}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this.setAttribute(u2.attributes.THEME,this._theme))}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.toggleAttribute(u2.attributes.MUTED,this._muted))}get persistent(){return this._persistent}set persistent(e){this._persistent!==e&&(this._persistent=e,this.toggleAttribute(u2.attributes.PERSISTENT,this._persistent))}get inline(){return this._inline}set inline(e){this._inline!==e&&(this._inline=e,this.toggleAttribute(u2.attributes.INLINE,this._inline))}get skipUrlChange(){return this._skipUrlChange}set skipUrlChange(e){if(this._skipUrlChange!==e){if(this._skipUrlChange=e,this.toggleAttribute(u2.attributes.SKIP_URL_CHANGE,this._skipUrlChange),this._skipUrlChange){this._anchorElement.addEventListener("click",this._clickListener);return}this._anchorElement.removeEventListener("click",this._clickListener)}}_handleClick(e){e.preventDefault();let a=document.getElementById(this._target);a==null||a.focus(),a==null||a.scrollIntoView({behavior:"smooth"})}};Po=s([y({name:u2.elementName,dependencies:[t1,i1]})],Po);function o6(){b(Po)}var Cr=class extends H{};Cr.formAssociated=!0;var ox=`${x}slider`,rx={ARIA_LABEL:"data-aria-label",ARIA_LABEL_START:"data-aria-label-start",ARIA_LABEL_END:"data-aria-label-end",VALUE:"value",VALUE_START:"value-start",VALUE_END:"value-end",LABEL:"label",LABEL_START:"label-start",LABEL_END:"label-end",MIN:"min",MAX:"max",STEP:"step",TICKMARKS:"tickmarks",LABELED:"labeled",RANGE:"range",DISABLED:"disabled",READONLY:"readonly"},nx={ROOT:".forge-slider",TRACK:".track",HANDLE_CONTAINER:".handle-container",START_INPUT:"input.start",END_INPUT:"input.end",START_HANDLE:".handle.start",START_HANDLE_THUMB:".handle.start .handle-thumb",END_HANDLE:".handle.end",END_HANDLE_THUMB:".handle.end .handle-thumb",START_LABEL:".handle.start .handle-label",START_LABEL_CONTENT:".handle.start .handle-label-content",END_LABEL:".handle.end .handle-label",END_LABEL_CONTENT:".handle.end .handle-label-content",LABEL:".handle-label",INPUT:"input[type=range]"},ix={RANGE:"range",TICKMARKS:"tickmarks",ON_TOP:"on-top",OVERLAPPING:"overlapping",HOVER:"hover",HANDLE:"handle",HANDLE_THUMB:"handle-thumb",HANDLE_START:"start",HANDLE_LABEL:"handle-label",LABEL:"handle-label",LABEL_CONTENT:"handle-label-content"},sx={INPUT:"forge-slider-input",CHANGE:"forge-slider-change",RANGE_INPUT:"forge-slider-range-input",RANGE_CHANGE:"forge-slider-range-change"},lx={START_FRACTION:"--_slider-start-fraction",END_FRACTION:"--_slider-end-fraction",TICK_COUNT:"--_slider-tick-count"},vx={DEFAULT_STEP:1,DEFAULT_VALUE:50,DEFAULT_START_VALUE:33,DEFAULT_END_VALUE:67},E={elementName:ox,attributes:rx,selectors:nx,classes:ix,events:sx,numbers:vx,cssCustomProperties:lx};function r6(r){let t=document.createElement("input");return t.type="range",t.id="start",t.min=String(r.min),t.max=String(r.max),t.step=String(r.step),t.valueAsNumber=r.valueStart,t.disabled=r.disabled,t.classList.add("start"),r.hasAttribute(E.attributes.ARIA_LABEL_START)&&t.setAttribute("aria-label",r.getAttribute(E.attributes.ARIA_LABEL_START)),t.setAttribute("aria-valuetext",String(r.valueStart)),t}function n6(r){let t=document.createElement("div");t.classList.add(E.classes.HANDLE,E.classes.HANDLE_START),t.setAttribute("part","handle-start");let e=document.createElement("forge-state-layer");e.target="start",t.appendChild(e);let a=document.createElement("forge-focus-indicator");a.target="start",t.appendChild(a);let o=document.createElement("div");o.classList.add(E.classes.HANDLE_THUMB),o.setAttribute("part","handle-start-thumb"),t.appendChild(o);let n=document.createElement("div");n.classList.add(E.classes.HANDLE_LABEL),n.setAttribute("part","handle-start-label"),t.appendChild(n);let i=document.createElement("span");return i.textContent=r,i.classList.add(E.classes.LABEL_CONTENT),i.setAttribute("part","handle-start-label-content"),n.appendChild(i),t}function m5(r){let t=document.createElement("div");t.classList.add(E.classes.LABEL);let e=document.createElement("span");return e.textContent=r,e.classList.add(E.classes.LABEL_CONTENT),t.appendChild(e),t}var ll=class extends I{constructor(t){super(t),this._rootElement=w(t,E.selectors.ROOT),this._trackElement=w(t,E.selectors.TRACK),this._handleContainerElement=w(t,E.selectors.HANDLE_CONTAINER),this._endInputElement=w(t,E.selectors.END_INPUT),this._endHandleElement=w(t,E.selectors.END_HANDLE),this._endHandleThumbElement=w(t,E.selectors.END_HANDLE_THUMB),this._endLabelContentElement=w(t,E.selectors.END_LABEL_CONTENT)}addInputListener(t,e){this._getInputs().forEach(o=>o.addEventListener(t,e))}update({startFraction:t,endFraction:e,tickCount:a}){this._rootElement.style.setProperty(E.cssCustomProperties.START_FRACTION,String(t)),this._rootElement.style.setProperty(E.cssCustomProperties.END_FRACTION,String(e)),this._rootElement.style.setProperty(E.cssCustomProperties.TICK_COUNT,String(a))}updateLabels(t,e){var a;this._startLabelContentElement&&(this._startLabelContentElement.textContent=t),this._endLabelContentElement&&(this._endLabelContentElement.textContent=e),(a=this._startInputElement)==null||a.setAttribute("aria-valuetext",t),this._endInputElement.setAttribute("aria-valuetext",e)}updateHandleLayering(){let t=this._endInputElement.matches(":focus");this._startHandleElement&&ft(this._startHandleElement,!t,E.classes.ON_TOP),ft(this._endHandleElement,t,E.classes.ON_TOP)}tryHoverStartHandle(t){var e,a,o;this._startHandleThumbElement&&o4(t,this._startHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),(e=this._startHandleElement)==null||e.classList.add(E.classes.HOVER)):(a=this._startInputElement)!=null&&a.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),(o=this._startHandleElement)==null||o.classList.remove(E.classes.HOVER))}tryHoverEndHandle(t){o4(t,this._endHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),this._endHandleElement.classList.add(E.classes.HOVER)):this._endInputElement.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),this._endHandleElement.classList.remove(E.classes.HOVER))}tryDetectOverlap(){if(this._startHandleElement){let t=z3(this._startHandleElement,this._endHandleElement);ft(this._endHandleElement,t,E.classes.OVERLAPPING),ft(this._startHandleElement,t,E.classes.OVERLAPPING)}}leaveHandleContainer(){this._handleContainerElement.classList.remove(E.classes.HOVER)}syncInputValues(t,e){if(this._startInputElement&&(this._startInputElement.valueAsNumber=t),this._endInputElement.valueAsNumber=e,this._startInputElement){let a=new FormData;a.append(this._component.nameStart,String(t)),a.append(this._component.nameEnd,String(e)),this._component[r1].setFormValue(a)}else this._component[r1].setFormValue(String(e))}setRange(t){var e,a;if(this._rootElement.classList.toggle(E.classes.RANGE,t),t){this._startInputElement=r6(this._component),this._rootElement.insertAdjacentElement("afterbegin",this._startInputElement),this._endInputElement.valueAsNumber=this._component.valueEnd;let o=this._startInputElement.value;this._startHandleElement=n6(o),this._handleContainerElement.insertAdjacentElement("afterbegin",this._startHandleElement),this._startHandleThumbElement=w(this._component,E.selectors.START_HANDLE_THUMB),this._startLabelContentElement=w(this._component,E.selectors.START_LABEL_CONTENT)}else(e=this._startInputElement)==null||e.remove(),(a=this._startHandleElement)==null||a.remove(),this._startInputElement=void 0,this._startHandleElement=void 0,this._startHandleThumbElement=void 0,this._startLabelContentElement=void 0}setTickmarks(t){this._trackElement.classList.toggle(E.classes.TICKMARKS,t)}setStep(t){this._getInputs().forEach(a=>a.step=String(t))}setMin(t){this._getInputs().forEach(a=>a.min=String(t))}setMax(t){this._getInputs().forEach(a=>a.max=String(t))}setDisabled(t){this._getInputs().forEach(o=>o.disabled=t),this._rootElement.querySelectorAll(L1.elementName).forEach(o=>o.disabled=t)}setReadonly(t){this._getInputs().forEach(a=>a.readOnly=t)}toggleLabels(t){var a;if(this._rootElement.querySelectorAll(E.selectors.LABEL).forEach(o=>o.remove()),this._endLabelContentElement=void 0,this._startLabelContentElement=void 0,t){let o=m5(this._endInputElement.value);if(this._endHandleElement.insertAdjacentElement("beforeend",o),this._endLabelContentElement=w(this._component,E.selectors.END_LABEL_CONTENT),this._startInputElement){let n=m5(this._startInputElement.value);(a=this._startHandleElement)==null||a.insertAdjacentElement("beforeend",n),this._startLabelContentElement=w(this._component,E.selectors.START_LABEL_CONTENT)}}}setStartAriaLabel(t){this._startInputElement&&W(this._startInputElement,!!t,"aria-label",t)}setEndAriaLabel(t){W(this._endInputElement,!!t,"aria-label",t)}_getInputs(){let t=[];return this._startInputElement&&t.push(this._startInputElement),[...t,this._endInputElement]}};var vl=class{constructor(t){this._adapter=t;this._value=E.numbers.DEFAULT_VALUE;this._valueStart=E.numbers.DEFAULT_START_VALUE;this._valueEnd=E.numbers.DEFAULT_END_VALUE;this._min=0;this._max=100;this._step=E.numbers.DEFAULT_STEP;this._tickmarks=!1;this._labeled=!0;this._range=!1;this._disabled=!1;this._readonly=!1;this._pointerEnterListener=e=>this._handlePointerEnter(e),this._pointerMoveListener=e=>this._handlePointerMove(e),this._pointerLeaveListener=e=>this._handlePointerLeave(e),this._changeUpdateListener=e=>this._handleInputUpdate(e),this._focusListener=e=>this._handleFocus(e)}initialize(){this._applyInputListeners(),this._update()}_update(){var M,f;let{value:t,valueStart:e,valueEnd:a}=this._clampMinMax(),o=this._step<=0?1:this._step,n=Math.max(this._max-this._min,o),i=this._range?((e!=null?e:this._min)-this._min)/n:0,l=this._range?a:t,h=((l!=null?l:this.min)-this.min)/n,c=n/o;this._adapter.update({startFraction:i,endFraction:h,tickCount:c}),this._adapter.syncInputValues(e,this._range?a:t),this._range&&this._adapter.tryDetectOverlap();let d=(M=this._labelStart)!=null?M:String(e),u=(f=this._labelEnd)!=null?f:String(this._range?a:t);typeof this._labelBuilder=="function"&&(this._range?(d=this._labelBuilder(e,"start"),u=this._labelBuilder(a,"end")):u=this._labelBuilder(t)),this._adapter.updateLabels(d,u)}_clampMinMax(){let t=this._value,e=this._valueStart,a=this._valueEnd;return this._range?(e>this._max?e=this._max:e<this._min&&(e=this._min),a>this._max?a=this._max:a<this._min&&(a=this._min)):t>this._max?t=this._max:this._value<this._min&&(t=this._min),{value:t,valueStart:e,valueEnd:a}}_applyInputListeners(){this._adapter.addInputListener("pointerenter",this._pointerEnterListener),this._adapter.addInputListener("pointermove",this._pointerMoveListener),this._adapter.addInputListener("pointerleave",this._pointerLeaveListener),this._adapter.addInputListener("input",this._changeUpdateListener),this._adapter.addInputListener("change",this._changeUpdateListener),this._adapter.addInputListener("focus",this._focusListener)}_handlePointerEnter(t){this._handlePointerMove(t)}_handlePointerMove({target:t,x:e,y:a}){t.id==="start"?this._adapter.tryHoverStartHandle({x:e,y:a}):this._adapter.tryHoverEndHandle({x:e,y:a})}_handlePointerLeave(t){this._adapter.leaveHandleContainer()}_handleInputUpdate(t){if(t.stopPropagation(),this._disabled||this._readonly){this._adapter.syncInputValues(this._valueStart,this._range?this._valueEnd:this._value);return}let e=t.target;if(this._range){let l=e.id==="start";if(l?this._valueStart=e.valueAsNumber:this._valueEnd=e.valueAsNumber,this._canClamp()){l?this._valueStart=this._valueEnd:this._valueEnd=this._valueStart,this._adapter.syncInputValues(this._valueStart,this._valueEnd),this._update();return}}else this._value=e.valueAsNumber;let a={default:{change:E.events.CHANGE,input:E.events.INPUT},range:{change:E.events.RANGE_CHANGE,input:E.events.RANGE_INPUT}},o=this._range?a.range[t.type]:a.default[t.type],n=this._range?{valueStart:this._valueStart,valueEnd:this._valueEnd}:{value:this._value},i=new CustomEvent(o,{detail:n,bubbles:!0});this._adapter.dispatchHostEvent(i),this._update()}_handleFocus(t){this._adapter.updateHandleLayering()}_canClamp(){return this._valueStart>this._valueEnd||this._valueEnd<this._valueStart}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._update())}get valueStart(){return this._valueStart}set valueStart(t){this._valueStart!==t&&(this._valueStart=t,this._update())}get valueEnd(){return this._valueEnd}set valueEnd(t){this._valueEnd!==t&&(this._valueEnd=t,this._update())}get label(){return this.labelEnd}set label(t){this.labelEnd=t}get labelStart(){return this._labelStart}set labelStart(t){this._labelStart!==t&&(this._labelStart=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelEnd(){return this._labelEnd}set labelEnd(t){this._labelEnd!==t&&(this._labelEnd=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelBuilder(){return this._labelBuilder}set labelBuilder(t){this._labelBuilder=t,this._update()}get min(){return this._min}set min(t){this._min!==t&&(this._min=t,this._adapter.setMin(this._min),this._update(),this._adapter.setHostAttribute(E.attributes.MIN,String(this._min)))}get max(){return this._max}set max(t){this._max!==t&&(this._max=t,this._adapter.setMax(this._max),this._update(),this._adapter.setHostAttribute(E.attributes.MAX,String(this._max)))}get step(){return this._step}set step(t){this._step!==t&&(this._step=t,this._adapter.setStep(this._step),this._update(),this._adapter.setHostAttribute(E.attributes.STEP,String(this._step)))}get tickmarks(){return this._tickmarks}set tickmarks(t){this._tickmarks!==t&&(this._tickmarks=t,this._adapter.setTickmarks(this._tickmarks),this._adapter.toggleHostAttribute(E.attributes.TICKMARKS,this._tickmarks))}get labeled(){return this._labeled}set labeled(t){this._labeled!==t&&(this._labeled=t,this._adapter.toggleLabels(this._labeled),this._update(),this._adapter.toggleHostAttribute(E.attributes.LABELED,this._labeled))}get range(){return this._range}set range(t){this._range!==t&&(this._range=t,this._adapter.setRange(this._range),this._range&&this._applyInputListeners(),this._update(),this._adapter.toggleHostAttribute(E.attributes.RANGE,this._range))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(t),this._adapter.toggleHostAttribute(E.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(t),this._adapter.toggleHostAttribute(E.attributes.READONLY,this._readonly))}set ariaLabel(t){this.ariaLabelEnd=t}set ariaLabelStart(t){this._adapter.setStartAriaLabel(t)}set ariaLabelEnd(t){this._adapter.setEndAriaLabel(t)}};var hx='<template><div part="root" class="forge-slider"><input type="range" class="end" id="end" min="0" max="100" step="1" aria-valuetext="0"><div class="track" part="track"></div><div class="handle-container-padded"><div class="handle-container-block"><div class="handle-container"><div class="handle end" part="handle-end"><forge-state-layer exportparts="surface:state-layer" target="end"></forge-state-layer><forge-focus-indicator part="focus-indicator" target="end"></forge-focus-indicator><div class="handle-thumb" part="handle-end-thumb"></div><div class="handle-label" part="handle-end-label"><span class="handle-label-content" part="handle-end-label-content"></span></div></div></div></div></div></div></template>',cx=':host{display:inline-flex;vertical-align:middle;min-inline-size:100%}:host([hidden]){display:none}.forge-slider{--_slider-start-fraction:0;--_slider-end-fraction:0;--_slider-tick-count:100;--_slider-track-height:var(--forge-slider-track-height, 4px);--_slider-active-track-color:var(--forge-slider-active-track-color, var(--forge-theme-primary, #3f51b5));--_slider-active-track-height:var(--forge-slider-active-track-height, var(--_slider-track-height));--_slider-active-track-shape:var(--forge-slider-active-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-disabled-active-track-color:var(--forge-slider-disabled-active-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-active-track-opacity:var(--forge-slider-disabled-active-track-opacity, 0.38);--_slider-disabled-handle-color:var(--forge-slider-disabled-handle-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-color:var(--forge-slider-disabled-inactive-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-opacity:var(--forge-slider-disabled-inactive-track-opacity, 0.12);--_slider-focus-handle-color:var(--forge-slider-focus-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-color:var(--forge-slider-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-height:var(--forge-slider-handle-height, 20px);--_slider-handle-shape:var(--forge-slider-handle-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1)));--_slider-handle-width:var(--forge-slider-handle-width, 20px);--_slider-hover-handle-color:var(--forge-slider-hover-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-inactive-track-color:var(--forge-slider-inactive-track-color, var(--forge-theme-primary-container, #d1d5ed));--_slider-inactive-track-height:var(--forge-slider-inactive-track-height, var(--_slider-track-height));--_slider-inactive-track-shape:var(--forge-slider-inactive-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-shape:var(--forge-slider-label-container-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-color:var(--forge-slider-label-container-color, var(--forge-theme-primary, #3f51b5));--_slider-label-container-height:var(--forge-slider-label-container-height, 28px);--_slider-label-text-color:var(--forge-slider-label-text-color, var(--forge-theme-on-primary, #ffffff));--_slider-pressed-handle-color:var(--forge-slider-pressed-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-state-layer-size:var(--forge-slider-state-layer-size, 40px);--_slider-with-overlap-handle-outline-color:var(--forge-slider-with-overlap-handle-outline-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-overlap-handle-outline-width:var(--forge-slider-with-overlap-handle-outline-width, 1px);--_slider-with-tick-marks-active-container-color:var(--forge-slider-with-tick-marks-active-container-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-tick-marks-container-size:var(--forge-slider-with-tick-marks-container-size, 2px);--_slider-with-tick-marks-disabled-active-container-color:var(--forge-slider-with-tick-marks-disabled-active-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-disabled-inactive-container-color:var(--forge-slider-with-tick-marks-disabled-inactive-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-inactive-container-color:var(--forge-slider-with-tick-marks-inactive-container-color, var(--forge-theme-primary, #3f51b5))}.forge-slider{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_slider-state-layer-size);pointer-events:none;touch-action:none}.forge-slider.range :host-context([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range :host([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start{clip-path:inset(0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))) 0 0)}.forge-slider.range input.end{clip-path:inset(0 0 0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)))}.forge-slider.range :host-context([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range :host([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range input.end:dir(rtl){clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.track{position:absolute;inset:0;display:flex;align-items:center}.track::after,.track::before{content:"";position:absolute;inset-inline-start:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));inset-inline-end:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));background-size:calc((100% - var(--_slider-with-tick-marks-container-size) * 2)/ var(--_slider-tick-count)) 100%}.track::before{block-size:var(--_slider-inactive-track-height);border-radius:var(--_slider-inactive-track-shape);background-color:var(--_slider-inactive-track-color)}.track::after{block-size:var(--_slider-active-track-height);border-radius:var(--_slider-active-track-shape);clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)));background-color:var(--_slider-active-track-color)}.track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-inactive-container-color) 0,var(--_slider-with-tick-marks-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-active-container-color) 0,var(--_slider-with-tick-marks-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.handle-container-block,.handle-container-padded{position:relative;block-size:100%;inline-size:100%}.handle-container-padded{padding-inline:calc(var(--_slider-state-layer-size)/ 2)}.handle-container{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100% * var(--_slider-start-fraction));inline-size:calc(100% * (var(--_slider-end-fraction) - var(--_slider-start-fraction)))}.handle{position:absolute;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);border-radius:var(--_slider-handle-shape);display:grid;place-items:center}.handle.start{inset-inline-start:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle.end{inset-inline-end:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);position:absolute;height:var(--_slider-handle-height);width:var(--_slider-handle-width);border-radius:var(--_slider-handle-shape);background:var(--_slider-handle-color)}.handle-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);position:absolute;box-sizing:border-box;display:grid;padding:4px;place-items:center;border-radius:var(--_slider-label-container-shape);color:var(--_slider-label-text-color);font-weight:500;white-space:nowrap;inset-block-end:100%;min-inline-size:var(--_slider-label-container-height);min-block-size:var(--_slider-label-container-height);background:var(--_slider-label-container-color);transition:transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-standard, cubic-bezier(.2, 0, 0, 1));transform-origin:center bottom;transform:scale(0)}.handle-label::after,.handle-label::before{content:"";position:absolute;display:block;background:inherit}.handle-label::before{inline-size:calc(var(--_slider-label-container-height)/ 2);block-size:calc(var(--_slider-label-container-height)/ 2);bottom:calc(var(--_slider-label-container-height)/ -10);transform:rotate(45deg)}.handle-label::after{inset:0;border-radius:inherit}.handle-label-content{z-index:1}.handle-container.hover .handle-thumb{background:var(--_slider-hover-handle-color)}:host(:not([disabled])) input.end:active~.handle-container-padded .handle.end>.handle-thumb,:host(:not([disabled])) input.start:active~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-pressed-handle-color)}:host([disabled]) .handle-thumb{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);background:var(--_slider-disabled-handle-color)}:host([disabled]) .handle-label{background:var(--_slider-disabled-handle-color)}:host([disabled]) .track::before{opacity:calc(1 / var(--_slider-disabled-active-track-opacity) * var(--_slider-disabled-inactive-track-opacity));background-color:var(--_slider-disabled-inactive-track-color)}:host([disabled]) .track::after{background-color:var(--_slider-disabled-active-track-color)}:host([disabled]) .track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-inactive-container-color) 0,var(--_slider-with-tick-marks-disabled-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) .track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-active-container-color) 0,var(--_slider-with-tick-marks-disabled-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) input[type=range]{cursor:not-allowed}:host-context([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}:host([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}.track:dir(rtl)::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}input.end:focus~.handle-container-padded .handle.end>.handle-thumb,input.start:focus~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-focus-handle-color)}.on-top.overlapping .handle-label,.on-top.overlapping .handle-label::before,.on-top.overlapping .handle-thumb{border:var(--_slider-with-overlap-handle-outline-color) solid var(--_slider-with-overlap-handle-outline-width)}.handle-container.hover .handle-label,:host(:focus-within) .handle-label,:where(:has(input:active)) .handle-label{transform:scale(1)}input[type=range]{opacity:0;-webkit-tap-highlight-color:transparent;position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:0 0;cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none}input[type=range]::-moz-range-track{appearance:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}input[type=range]::-moz-range-thumb{appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.on-top{z-index:1}@media (prefers-reduced-motion){.handle-label{transition-duration:0}}forge-focus-indicator{--forge-focus-indicator-shape:50%;--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_slider-handle-color)}',i6,ut=class extends(i6=Cr,r1,i6){static get observedAttributes(){return[E.attributes.ARIA_LABEL,E.attributes.ARIA_LABEL_START,E.attributes.ARIA_LABEL_END,E.attributes.VALUE,E.attributes.VALUE_START,E.attributes.VALUE_END,E.attributes.LABEL,E.attributes.LABEL_START,E.attributes.LABEL_END,E.attributes.MAX,E.attributes.MIN,E.attributes.STEP,E.attributes.TICKMARKS,E.attributes.LABELED,E.attributes.RANGE,E.attributes.DISABLED,E.attributes.READONLY]}get form(){return this[r1].form}get labels(){return this[r1].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){W(this,!!t,"name",t!=null?t:"")}get nameStart(){var t;return(t=this.getAttribute("name-start"))!=null?t:this.name}set nameStart(t){W(this,!!t,"name-start",t!=null?t:"")}get nameEnd(){var t;return(t=this.getAttribute("name-end"))!=null?t:this.nameStart}set nameEnd(t){W(this,!!t,"name-end",t!=null?t:"")}constructor(){super(),L(this,hx,cx),this[r1]=this.attachInternals(),this._core=new vl(new ll(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case E.attributes.ARIA_LABEL:this._core.ariaLabel=a;break;case E.attributes.ARIA_LABEL_START:this._core.ariaLabelStart=a;break;case E.attributes.ARIA_LABEL_END:this._core.ariaLabelEnd=a;break;case E.attributes.VALUE:this.value=$(a);break;case E.attributes.VALUE_START:this.valueStart=$(a);break;case E.attributes.VALUE_END:this.valueEnd=$(a);break;case E.attributes.LABEL:this.label=a;break;case E.attributes.LABEL_START:this.labelStart=a;break;case E.attributes.LABEL_END:this.labelEnd=a;break;case E.attributes.MIN:this.min=$(a);break;case E.attributes.MAX:this.max=$(a);break;case E.attributes.STEP:this.step=$(a);break;case E.attributes.TICKMARKS:this.tickmarks=p(a);break;case E.attributes.LABELED:this.labeled=p(a);break;case E.attributes.RANGE:this.range=p(a);break;case E.attributes.DISABLED:this.disabled=p(a);break;case E.attributes.READONLY:this.readonly=p(a);break}}formResetCallback(){if(this._core.range){let e=this.getAttribute("value-start");this.valueStart=e!==null?Number(e):E.numbers.DEFAULT_START_VALUE;let a=this.getAttribute("value-end");this.valueEnd=a!==null?Number(a):E.numbers.DEFAULT_END_VALUE;return}let t=this.getAttribute("value");this.value=t!==null?Number(t):E.numbers.DEFAULT_VALUE}formStateRestoreCallback(t){if(t&&t[0]instanceof FormData){let e=Array.from(t[0]),[[,a],[,o]]=e;this.valueStart=Number(a),this.valueEnd=Number(o),this.range=!0;return}this.value=Number(t),this.range=!1}formDisabledCallback(t){this.disabled=t}};ut.formAssociated=!0,s([v()],ut.prototype,"value",2),s([v()],ut.prototype,"valueStart",2),s([v()],ut.prototype,"valueEnd",2),s([v()],ut.prototype,"label",2),s([v()],ut.prototype,"labelStart",2),s([v()],ut.prototype,"labelEnd",2),s([v()],ut.prototype,"labelBuilder",2),s([v()],ut.prototype,"min",2),s([v()],ut.prototype,"max",2),s([v()],ut.prototype,"step",2),s([v()],ut.prototype,"tickmarks",2),s([v()],ut.prototype,"labeled",2),s([v()],ut.prototype,"range",2),s([v()],ut.prototype,"disabled",2),s([v()],ut.prototype,"readonly",2),ut=s([y({name:E.elementName,dependencies:[t1,i1]})],ut);var s6=class extends at{constructor(t){super(t)}get value(){return this._element.value}set value(t){this._element.value=t}get valueStart(){return this._element.valueStart}set valueStart(t){this._element.valueStart=t}get valueEnd(){return this._element.valueEnd}set valueEnd(t){this._element.valueEnd=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get min(){return this._element.min}set min(t){this._element.min=t}get max(){return this._element.max}set max(t){this._element.max=t}get step(){return this._element.step}get range(){return this._element.range}set range(t){this._element.range=t}get tickmarks(){return this._element.tickmarks}set tickmarks(t){this._element.tickmarks=t}get labeled(){return this._element.labeled}set labeled(t){this._element.labeled=t}get labelBuilder(){return this._element.labelBuilder}set labelBuilder(t){this._element.labelBuilder=t}onInput(t){this._element.addEventListener("forge-slider-input",({detail:e})=>t(e))}onChange(t){this._element.addEventListener("forge-slider-change",({detail:e})=>t(e))}onRangeInput(t){this._element.addEventListener("forge-slider-range-input",({detail:e})=>t(e))}onRangeChange(t){this._element.addEventListener("forge-slider-range-change",({detail:e})=>t(e))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}_build(){return document.createElement(E.elementName)}};function l6(){b(ut)}var v6={name:"clock_outline",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 20a8 8 0 008-8 8 8 0 00-8-8 8 8 0 00-8 8 8 8 0 008 8m0-18a10 10 0 0110 10 10 10 0 01-10 10C6.47 22 2 17.5 2 12A10 10 0 0112 2m.5 5v5.25l4.5 2.67-.75 1.23L11 13V7h1.5z"/></svg>'};var h6={name:"drag_vertical_variant",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 21H9V3h2v18m4-18h-2v18h2V3z"/></svg>'};var x0=`${x}split-view-panel`,px={RESIZABLE:"resizable",SIZE:"size",MIN:"min",MAX:"max",OPEN:"open",ACCESSIBLE_LABEL:"accessible-label",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold",ORIENTATION:"orientation"},dx={ROOT:"forge-split-view-panel",GRABBED:"forge-split-view-panel--grabbed",HANDLE:"forge-split-view-panel__handle",ICON:"forge-split-view-panel__icon",CONTENT:"forge-split-view-panel__content",CLOSED:"forge-split-view-panel--closed",CLOSING:"forge-split-view-panel--closing",OPENING:"forge-split-view-panel--opening",DISABLED:"forge-split-view-panel--disabled",OVERLAY:"forge-split-view-panel-overlay"},No={ROOT:"root",HANDLE:"handle",ICON:"icon",STATE_LAYER:"state-layer",CONTENT:"content"},mx={ROOT:`#${No.ROOT}`,HANDLE:`#${No.HANDLE}`,ICON:`#${No.ICON}`,STATE_LAYER:`#${No.STATE_LAYER}`,CONTENT:`#${No.CONTENT}`},gx={WILL_RESIZE:`${x0}-will-resize`,RESIZE_START:`${x0}-resize-start`,RESIZE_END:`${x0}-resize-end`,RESIZE:`${x0}-resize`,DID_OPEN:`${x0}-did-open`,DID_CLOSE:`${x0}-did-close`,WILL_OPEN:`${x0}-will-open`,WILL_CLOSE:`${x0}-will-close`},wx={STATE_LAYER_ACTIVATION_WAIT:200},ux={SIZE:"--forge-split-view-panel-size",CURSOR:"--forge-split-view-panel-cursor"},P={elementName:x0,attributes:px,classes:dx,ids:No,selectors:mx,events:gx,numbers:wx,customCssProperties:ux},c6=(a=>(a[a.Under=1]="Under",a[a.Active=2]="Active",a[a.Above=3]="Above",a))(c6||{});function p6(){return{orientation:"horizontal",resizable:"off",arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1,min:0}}function d6(r,t){let e=r.getContentSize(t.orientation);return S(m({},t),{currentSize:e,startSize:e,availableSpace:r.getAvailableSpace(t.orientation,t.resizable),siblingSize:r.getSiblingContentSize(),isAtMin:!1,isAtMax:!1})}function m6(r){return S(m({},r),{arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1})}function g6(r,t,e){if(e.startPoint===void 0||e.startSize===void 0)return!1;let a=e.currentSize,o=e.orientation==="horizontal"?t.clientX:t.clientY,n=e.startPoint-o;e.resizable==="start"&&(n*=-1);let i=e.startSize-n;e.currentSize=hl(i,e),r.setContentSize(e.currentSize),cl(r,e,"pointer"),r.setValuenow(pl(e.currentSize,e));let l=i-e.currentSize+n;return f6(r,l,e),a!==e.currentSize}function w6(r,t,e){if(e.startSize===void 0)return!1;let a=e.currentSize;e.keyboardDelta+=t;let o=e.startSize+e.keyboardDelta;e.currentSize=hl(o,e),r.setContentSize(e.currentSize),cl(r,e,"keyboard"),r.setValuenow(pl(e.currentSize,e));let n=o-e.currentSize+e.keyboardDelta*-1;return f6(r,n,e),a!==e.currentSize}function u6(r,t){return r.setContentSize(t.min),t.min}function _6(r,t){let e=r.getAvailableSpace(t.orientation,t.resizable),a=A0(t.max,e);return r.setContentSize(a),a}function f6(r,t,e){if(e.siblingSize!==void 0){let a=e.siblingSize+t;r.setSiblingContentSize(a)}}function hl(r,t){return r=Math.max(r,t.min),r=A0(r,t.max,t.availableSpace),r}function cl(r,t,e){if(t.currentSize===void 0)return!1;if(t.currentSize<=t.min)return t.isAtMin||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"min"}),t.isAtMin=!0),!0;t.isAtMin&&(t.isAtMin=!1);let a=A0(t.max,t.availableSpace);return t.currentSize>=a?(t.isAtMax||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"max"}),t.isAtMax=!0),!0):(t.isAtMax&&(t.isAtMax=!1),e==="pointer"&&r.setBodyCursor(t.orientation),!1)}function x6(r,t,e){if(t<=e.min)return r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"min"}),!0;let a=A0(e.max,e.availableSpace);return t>=a?(r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"max"}),!0):(r.setHandleCursor(e.orientation),!1)}function pl(r,t){if(!t.availableSpace&&!t.max)return 100;let e=A0(t.max,t.availableSpace);return on(r,t.min,e)}function g5(r,t){if(r==="horizontal")switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"e-resize":"w-resize";case"max":return t.resizable==="end"?"w-resize":"e-resize";default:return"col-resize"}else switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"s-resize":"n-resize";case"max":return t.resizable==="end"?"n-resize":"s-resize";default:return"row-resize"}}function b6(r){return r==="horizontal"?"drag_vertical_variant":"drag_handle"}function dl(r){let t=r.resizable;if(t==="off")return;let e=r;do e=t==="end"?e.nextElementSibling:e.previousElementSibling;while(e instanceof It&&!e.open);if(e instanceof It)return e}function _x(r){var n,i;if(!isNaN(+r))return{amount:+r,unit:"px"};let t=/(^\d*\.?\d*)\s*(px|%$)?/i,e=r.match(t),a=e!=null&&e[1]?+e[1]:-1,o=(i=(n=e==null?void 0:e[2])==null?void 0:n.toLowerCase())!=null?i:"";return{amount:a,unit:o}}function Da(r,t){let e=_x(r);return e.unit==="%"?C3(e.amount,t):e.amount}function y6(){let r=document.createElement("div");return r.classList.add(P.classes.OVERLAY),r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100vw",r.style.height="100vh",r.style.zIndex="9999",r}var ml=class{constructor(t){this._adapter=t;this._size=200;this._min=0;this._accessibleLabel="Split view panel";this._open=!0;this._state=p6();this._isInitialized=!1;this._parentProperties={};this._pointerdownListener=e=>this._onPointerdown(e),this._pointerupListener=e=>this._onPointerup(e),this._pointermoveListener=e=>this._onPointermove(e),this._keydownListener=e=>this._onKeydown(e),this._keyupListener=e=>this._onKeyup(e)}get _orientation(){return this._state.orientation}set _orientation(t){this._state.orientation=t}get _resizable(){return this._state.resizable}set _resizable(t){this._state.resizable=t}get _pixelMin(){return this._state.min}set _pixelMin(t){this._state.min=t}get _pixelMax(){return this._state.max}set _pixelMax(t){this._state.max=t}get _appliedDisabled(){var t,e;return(e=(t=this._disabled)!=null?t:this._parentProperties.disabled)!=null?e:!1}get _appliedAllowClose(){var t,e;return(e=(t=this._allowClose)!=null?t:this._parentProperties.allowClose)!=null?e:!1}get _appliedAutoClose(){var t,e;return(e=(t=this._autoClose)!=null?t:this._parentProperties.autoClose)!=null?e:!1}get _appliedAutoCloseThreshold(){var t,e;return(e=(t=this._autoCloseThreshold)!=null?t:this._parentProperties.autoCloseThreshold)!=null?e:0}initialize(){this._adapter.initialize(),this._adapter.setPointerdownListener(this._pointerdownListener),this._adapter.setKeydownListener(this._keydownListener),this._getParentProperties(),this._applyResizable(),this._applyMin(),this._applyMax(),this._applySize(),this._applyAccessibleLabel(),this._applyOpen(),this._applyDisabled(),this._applyAllowClose(),this._applyAutoClose(),this._applyAutoCloseThreshold(),this._isInitialized=!0}destroy(){this._adapter.tryRemoveOverlay(),this._adapter.removePointerupListener(this._pointerupListener),this._adapter.removePointermoveListener(this._pointermoveListener)}_onPointerdown(t){this._appliedDisabled||!this._allowResize("pointer")||(t.preventDefault(),this._adapter.setPointermoveListener(this._pointermoveListener),this._adapter.setPointerupListener(this._pointerupListener),this._handlePointerdown(t))}_onPointerup(t){t.preventDefault(),this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup()}_onPointermove(t){if(!this._appliedDisabled){if(t.preventDefault(),t.buttons===0){this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup();return}this._handlePointermove(t)}}_onKeydown(t){this._appliedDisabled||(t.key==="Enter"?this._handleEnterKey(t):t.key==="Home"&&this._allowResize("keyboard")?this._handleHomeKey(t):t.key==="End"&&this._allowResize("keyboard")?this._handleEndKey(t):i4(t)&&this._allowResize("keyboard")&&(this._adapter.setKeyupListener(this._keyupListener),this._handleArrowKey(t)))}_onKeyup(t){i4(t)&&(this._adapter.removeKeyupListener(this._keyupListener),this._handleArrowKeyUp())}_handleEnterKey(t){this._appliedAllowClose&&(t.preventDefault(),this._tryOpenOrClose(!this._open,!1,!0))}_handleHomeKey(t){t.preventDefault();let e=u6(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e),this._tryAutoClose()}_handleEndKey(t){t.preventDefault();let e=_6(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e)}_handleArrowKey(t){let e=0;if(this._orientation==="horizontal")switch(t.key){case"ArrowLeft":e=-1;break;case"ArrowRight":e=1;break;default:return}else switch(t.key){case"ArrowUp":e=-1;break;case"ArrowDown":e=1;break;default:return}t.preventDefault(),this._resizable==="start"&&(e*=-1),t.shiftKey&&(e*=10),this._tryHandleArrowKeyDown(),this._handleArrowKeyHeld(e)}_tryHandleArrowKeyDown(){this._state.arrowKeyHeld||this._startResize(),this._state.arrowKeyHeld=!0}_handleArrowKeyUp(){this._endResize()}_handleArrowKeyHeld(t){w6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_handlePointerdown(t){this._adapter.setGrabbed(!0),this._adapter.focusHandle(),this._startResize(),this._state.startPoint=this._orientation==="horizontal"?t.clientX:t.clientY,cl(this._adapter,this._state,"pointer")}_handlePointerup(){this._adapter.setGrabbed(!1),this._endResize()}_handlePointermove(t){g6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_allowResize(t){return this._adapter.emitHostEvent(P.events.WILL_RESIZE,{inputDeviceType:t},!0,!0)}_startResize(){this._state=d6(this._adapter,this._state),this._adapter.emitHostEvent(P.events.RESIZE_START,this._state.startSize)}_endResize(){this._adapter.emitHostEvent(P.events.RESIZE_END,this._state.currentSize),this._adapter.updateParent({accessibility:this._state.startSize!==this._state.currentSize,cursor:!0}),this._state=m6(this._state),this._tryAutoClose()}_tryOpenOrClose(t=!0,e=!1,a=!1){let o=t?P.events.WILL_OPEN:P.events.WILL_CLOSE,n={auto:e,userInitiated:a};this._adapter.emitHostEvent(o,n,!0,!0)&&(this._open=t,this._applyOpen(n))}_tryAutoClose(){let t=this._adapter.getContentSize(this._orientation);this._appliedAutoClose&&t<=this._appliedAutoCloseThreshold&&this._tryOpenOrClose(!1,!0,!1)}_getParentProperties(){let t=this._adapter.getParentProperty("disabled");this._parentProperties.disabled=t,this._applyParentDisabled();let e=this._adapter.getParentProperty("allowClose");this._parentProperties.allowClose=e;let a=this._adapter.getParentProperty("autoClose");this._parentProperties.autoClose=a,this._applyParentAutoClose();let o=this._adapter.getParentProperty("autoCloseThreshold");this._parentProperties.autoCloseThreshold=o,this._applyParentAutoCloseThreshold()}_applyOrientation(){this._adapter.setOrientation(this._orientation)}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._applyResizable())}_applyResizable(){this._adapter.setHostAttribute(P.attributes.RESIZABLE,this._resizable),this._adapter.setResizable(this._resizable)}get size(){return this._size}set size(t){this._size.toString()!==t.toString()&&(this._size=t,this._applySize())}_applySize(){let t=this._adapter.getParentSize(this._orientation),e=Da(this._size,t);this._adapter.setHostAttribute(P.attributes.SIZE,this._size.toString()),this._adapter.setContentSize(e),window.requestAnimationFrame(()=>{let a=this._adapter.getAvailableSpace(this._orientation,this._resizable),o=A0(this._pixelMax,a),n=on(e,this._pixelMin,o);this._adapter.setValuenow(n),this._adapter.updateParent({cursor:!0})})}get min(){return this._min}set min(t){this._min.toString()!==t.toString()&&(this._min=t,this._applyMin())}_applyMin(){this._adapter.setHostAttribute(P.attributes.MIN,this._min.toString());let t=this._adapter.getParentSize(this._orientation);if(this._pixelMin=Da(this._min,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e<this._pixelMin&&this.setContentSize(e)}get max(){return this._max}set max(t){var e;((e=this._max)==null?void 0:e.toString())!==(t==null?void 0:t.toString())&&(this._max=t,this._applyMax())}_applyMax(){var a;if(this._adapter.toggleHostAttribute(P.attributes.MAX,this._max!==void 0,(a=this._max)==null?void 0:a.toString()),this._max===void 0){this._pixelMax=void 0;return}let t=this._adapter.getParentSize(this._orientation);if(this._pixelMax=Da(this._max,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e>this._pixelMax&&this.setContentSize(e)}get accessibleLabel(){return this._accessibleLabel}set accessibleLabel(t){this._accessibleLabel!==t&&(this._accessibleLabel=t,this._applyAccessibleLabel())}_applyAccessibleLabel(){this._adapter.setHostAttribute(P.attributes.ACCESSIBLE_LABEL,this._accessibleLabel),this._adapter.setAccessibleLabel(this._accessibleLabel)}get open(){return this._open}set open(t){if(this._open!==t){if(this._isInitialized){this._tryOpenOrClose(t,!1,!1);return}this._open=t;let e=this._isInitialized?{auto:!1,userInitiated:!1}:void 0;this._applyOpen(e)}}_applyOpen(t){this._adapter.setHostAttribute(P.attributes.OPEN,this._open.toString()),this._adapter.setOpen(this._open,this._isInitialized,t)}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){var t;this._adapter.toggleHostAttribute(P.attributes.DISABLED,(t=this._disabled)!=null?t:!1),this._adapter.setDisabled(this._appliedDisabled)}_applyParentDisabled(){this._isInitialized&&!O(this._disabled)&&this._adapter.setDisabled(this._appliedDisabled)}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){var t;this._adapter.toggleHostAttribute(P.attributes.ALLOW_CLOSE,(t=this._allowClose)!=null?t:!1)}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE,(t=this._autoClose)!=null?t:!1),this._isInitialized&&this._tryAutoClose()}_applyParentAutoClose(){this._isInitialized&&!O(this._autoClose)&&this._tryAutoClose()}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE_THRESHOLD,O(this._autoCloseThreshold),(t=this.autoCloseThreshold)==null?void 0:t.toString()),this._isInitialized&&this._tryAutoClose()}_applyParentAutoCloseThreshold(){this._isInitialized&&!O(this._autoCloseThreshold)&&this._tryAutoClose()}getContentSize(){return this._adapter.getContentSize(this._orientation)}getCollapsibleSize(){let t=this._adapter.getParentSize(this._orientation),e=Da(this._min,t);return this._adapter.getContentSize(this._orientation)-e}setContentSize(t){if(this._resizable==="off")return;let e=hl(t,this._state);this._adapter.setContentSize(e),this._isInitialized&&this._adapter.emitHostEvent(P.events.RESIZE,e)}update(t){if(t.orientation&&(this._orientation=t.orientation,this._applyOrientation()),t.properties&&(O(t.properties.disabled)&&this._parentProperties.disabled!==t.properties.disabled&&(this._parentProperties.disabled=t.properties.disabled,this._applyDisabled()),O(t.properties.allowClose)&&(this._parentProperties.allowClose=t.properties.allowClose),O(t.properties.autoClose)&&this._parentProperties.autoClose!==t.properties.autoClose&&(this._parentProperties.autoClose=t.properties.autoClose,O(this._autoClose)||this._applyAutoClose()),O(t.properties.autoCloseThreshold)&&this._parentProperties.autoCloseThreshold!==t.properties.autoCloseThreshold&&(this._parentProperties.autoCloseThreshold=t.properties.autoCloseThreshold,O(this._autoCloseThreshold)||this._applyAutoCloseThreshold())),t.size&&this.open){let o=this._adapter.getParentSize(this._orientation);this._pixelMin=Da(this._min,o),this._pixelMax=O(this._max)?Da(this._max,o):void 0,this.setContentSize(this._adapter.getContentSize(this._orientation))}if(this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation),a=this._adapter.getAvailableSpace(this._orientation,this._resizable);if(t.accessibility&&this.open){let o=pl(e,S(m({},this._state),{availableSpace:a}));this._adapter.setValuenow(o)}t.cursor&&x6(this._adapter,e,S(m({},this._state),{availableSpace:a}))}};var fx=`${x}split-view`,xx={ORIENTATION:"orientation",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold"},bx={ROOT:"forge-split-view"},M6={ROOT:"root"},yx={ROOT:`#${M6.ROOT}`,PANEL:P.elementName},Mx={RESIZE_THROTTLE_THRESHOLD:200},Hx={ANIMATING_LAYER:"--forge-split-view-animating-layer"},tt={elementName:fx,attributes:xx,classes:bx,ids:M6,selectors:yx,numbers:Mx,customCssProperties:Hx};var gl=class extends I{constructor(t){super(t),this._root=w(t,P.selectors.ROOT),this._handle=w(t,P.selectors.HANDLE),this._icon=w(t,P.selectors.ICON),this._stateLayer=w(t,P.selectors.STATE_LAYER),this._content=w(t,P.selectors.CONTENT)}initialize(){let t=this._component.parentElement;(t==null?void 0:t.tagName.toLowerCase())===tt.elementName&&(this._parent=t)}tryRemoveOverlay(){var t;(t=this._overlay)==null||t.remove(),this._overlay=void 0}setPointerdownListener(t){this._handle.addEventListener("pointerdown",t)}setPointerupListener(t){document.addEventListener("pointerup",t)}removePointerupListener(t){document.removeEventListener("pointerup",t)}setPointermoveListener(t){document.addEventListener("pointermove",t)}removePointermoveListener(t){document.removeEventListener("pointermove",t)}setKeydownListener(t){this._handle.addEventListener("keydown",t)}setKeyupListener(t){this._handle.addEventListener("keyup",t)}removeKeyupListener(t){this._handle.removeEventListener("keyup",t)}getParentProperty(t){var e;return(e=this._parent)==null?void 0:e[t]}setAccessibleLabel(t){this._handle.setAttribute("aria-label",t)}setDisabled(t){this._root.classList.toggle(P.classes.DISABLED,t),this._handle&&(this._handle.setAttribute("tabindex",t?"-1":"0"),W(this._handle,t,"aria-disabled","true"))}setResizable(t){this._root.setAttribute(P.attributes.RESIZABLE,t.toString()),W(this._handle,t!=="off","aria-valuemin","0"),W(this._handle,t!=="off","aria-valuemax","100"),t!=="off"&&(this._handle.remove(),t==="end"?this._root.append(this._handle):this._root.prepend(this._handle))}setOrientation(t){this._root.setAttribute(P.attributes.ORIENTATION,t),this._handle.setAttribute("aria-orientation",t==="horizontal"?"vertical":"horizontal"),this._icon.setAttribute("name",b6(t))}setOpen(t,e=!0,a){var n,i;let o=()=>{var l,h;t||this._root.classList.add(P.classes.CLOSED),a&&this.emitHostEvent(t?P.events.DID_OPEN:P.events.DID_CLOSE,a),(l=this._parent)==null||l.unlayerSlottedPanels(),(h=this._parent)==null||h.update({accessibility:!0,cursor:!0})};if(t&&this._root.classList.contains(P.classes.CLOSED)){if(this._root.classList.remove(P.classes.CLOSED),!e){o();return}(n=this._parent)==null||n.layerSlottedPanels(this._component),U2(this._root,P.classes.OPENING,!0).then(()=>{o()})}else if(!t&&!this._root.classList.contains(P.classes.CLOSED)){if(!e){o();return}(i=this._parent)==null||i.layerSlottedPanels(this._component),U2(this._root,P.classes.CLOSING,!0).then(()=>{o()})}}setGrabbed(t){var e;this._root.classList.toggle(P.classes.GRABBED,t),this._handle.setAttribute("aria-grabbed",t.toString()),t?(this._overlay||(this._overlay=y6()),document.body.append(this._overlay)):(e=this._overlay)==null||e.remove()}setHandleCursor(t,e){t?this._root.style.setProperty(P.customCssProperties.CURSOR,g5(t,e)):this._root.style.removeProperty(P.customCssProperties.CURSOR)}setBodyCursor(t,e){var a;(a=this._overlay)==null||a.style.setProperty("cursor",g5(t,e))}getContentSize(t){return t==="horizontal"?this._content.clientWidth:this._content.clientHeight}setContentSize(t){this._component.style.setProperty(P.customCssProperties.SIZE,`${t}px`)}setValuenow(t){this._handle.setAttribute("aria-valuenow",t.toFixed(2))}focusHandle(){this._handle.focus()}getAvailableSpace(t,e){if(e==="off")return-1;let a=dl(this._component);return a?a.getCollapsibleSize()+this.getContentSize(t):this.getParentSize(t)}getSiblingContentSize(){var e;let t=dl(this._component);return(e=t==null?void 0:t.getContentSize())!=null?e:0}setSiblingContentSize(t){let e=dl(this._component);e==null||e.setContentSize(t)}animateStateLayer(t){t?window.setTimeout(()=>{this._stateLayer.playAnimation()},P.numbers.STATE_LAYER_ACTIVATION_WAIT):this._stateLayer.playAnimation()}getParentSize(t){var a,o;let e=t==="horizontal"?(a=this._parent)==null?void 0:a.clientWidth:(o=this._parent)==null?void 0:o.clientHeight;return e!=null?e:0}updateParent(t){var e;(e=this._parent)==null||e.update(t)}};var Lx='<template><div class="forge-split-view-panel" id="root" part="root"><div class="forge-split-view-panel__handle" id="handle" part="handle" role="separator" aria-controls="content" aria-grabbed="false" tabindex="0"><forge-icon class="forge-split-view-panel__icon" id="icon" part="icon"></forge-icon><forge-state-layer target="handle" id="state-layer" exportparts="surface:state-layer"></forge-state-layer><forge-focus-indicator inward target="handle" part="focus-indicator"></forge-focus-indicator></div><div class="forge-split-view-panel__content" id="content" part="content" role="group"><slot></slot></div></div></template>',Ix=".forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:unp5r3f;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes unp5r3f{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;animation-name:unp5r3j;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes unp5r3j{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:unp5r41;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes unp5r41{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;animation-name:unp5r4c;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes unp5r4c{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:unp5r4y;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes unp5r4y{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;animation-name:unp5r57;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes unp5r57{from{transform:none}to{transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:unp5r5o;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes unp5r5o{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;animation-name:unp5r5u;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes unp5r5u{from{transform:none}to{transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}forge-focus-indicator{--forge-focus-indicator-active-width:2px}",It=class extends H{static get observedAttributes(){return[P.attributes.RESIZABLE,P.attributes.SIZE,P.attributes.MIN,P.attributes.MAX,P.attributes.ACCESSIBLE_LABEL,P.attributes.OPEN,P.attributes.DISABLED,P.attributes.ALLOW_CLOSE,P.attributes.AUTO_CLOSE,P.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),j.define([h6,c3]),L(this,Lx,Ix),this._core=new ml(new gl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case P.attributes.RESIZABLE:this.resizable=a;break;case P.attributes.SIZE:this.size=a;break;case P.attributes.MIN:this.min=a;break;case P.attributes.MAX:a?this.max=a:this.max=void 0;break;case P.attributes.ACCESSIBLE_LABEL:this.accessibleLabel=a;break;case P.attributes.OPEN:this.open=p(a);break;case P.attributes.DISABLED:this.hasAttribute(t)?this.disabled=p(a):this.disabled=void 0;break;case P.attributes.ALLOW_CLOSE:this.hasAttribute(t)?this.allowClose=p(a):this.allowClose=void 0;break;case P.attributes.AUTO_CLOSE:this.hasAttribute(t)?this.autoClose=p(a):this.autoClose=void 0;break;case P.attributes.AUTO_CLOSE_THRESHOLD:a?this.autoCloseThreshold=$(a):this.autoCloseThreshold=void 0;break}}getContentSize(){return this._core.getContentSize()}getCollapsibleSize(){return this._core.getCollapsibleSize()}setContentSize(t){this._core.setContentSize(t)}update(t){this._core.update(t)}};s([v()],It.prototype,"resizable",2),s([v()],It.prototype,"size",2),s([v()],It.prototype,"min",2),s([v()],It.prototype,"max",2),s([v()],It.prototype,"accessibleLabel",2),s([v()],It.prototype,"open",2),s([v()],It.prototype,"disabled",2),s([v()],It.prototype,"allowClose",2),s([v()],It.prototype,"autoClose",2),s([v()],It.prototype,"autoCloseThreshold",2),It=s([y({name:P.elementName,dependencies:[Q,i1,t1]})],It);function Ob1(){b(It)}var wl=class extends I{constructor(t){super(t),this._root=w(t,tt.selectors.ROOT)}registerSlotListener(t){this._root.addEventListener("slotchange",t)}registerDidOpenListener(t){this._root.addEventListener(P.events.DID_OPEN,t)}registerDidCloseListener(t){this._root.addEventListener(P.events.DID_CLOSE,t)}observeResize(t){V0.observe(this._root,t)}unobserveResize(){V0.unobserve(this._root)}getSlottedPanels(){let t=this._component.querySelectorAll(tt.selectors.PANEL);return Array.from(t).filter(o=>o.parentElement===this._component)}refitSlottedPanels(t){let e=t==="horizontal"?this._root.clientWidth:this._root.clientHeight,a=this.getSlottedPanels(),o=a.map(i=>{var c;let l=(c=i.shadowRoot)==null?void 0:c.querySelector(P.selectors.ROOT),h=t==="horizontal"?l==null?void 0:l.clientWidth:l==null?void 0:l.clientHeight;return h!=null?h:0}).reduce((i,l)=>i+l,0);if(o<=e)return;let n=o-e;a.slice().reverse().filter(i=>i.open).forEach(i=>{if(n<=0)return;let l=i.getContentSize(),h=i.getCollapsibleSize(),c=Math.min(n,h),d=l-c;i.setContentSize(d),n-=c})}};var ul=class{constructor(t){this._adapter=t;this._orientation="horizontal";this._disabled=!1;this._allowClose=!1;this._autoClose=!1;this._autoCloseThreshold=0;this._isInitialized=!1;this._slotListener=e=>this._onSlotChange(e),this._didOpenListener=()=>this._onDidOpen(),this._didCloseListener=()=>this._onDidClose(),this._resizeObserverCallback=Dr(e=>this._onResize(e),tt.numbers.RESIZE_THROTTLE_THRESHOLD)}initialize(){this._adapter.registerSlotListener(this._slotListener),this._adapter.registerDidOpenListener(this._didOpenListener),this._adapter.registerDidCloseListener(this._didCloseListener),this._adapter.observeResize(this._resizeObserverCallback),this._applyOrientation(),this._isInitialized=!0}destroy(){this._adapter.unobserveResize()}_onSlotChange(t){this._layoutSlottedPanels(),this.update({accessibility:!0,cursor:!0,orientation:this._orientation})}_onDidOpen(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onDidClose(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onResize(t){this.update({accessibility:!0,cursor:!0,size:!0})}_layoutSlottedPanels(){let t=this._adapter.getSlottedPanels();t.length<2||t.some(e=>e.resizable!=="off")||t.slice(1).forEach(e=>e.resizable="start")}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._applyOrientation())}_applyOrientation(){this._adapter.setHostAttribute(tt.attributes.ORIENTATION,this._orientation),this.update({orientation:this._orientation}),this._isInitialized&&this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0})}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){this._adapter.toggleHostAttribute(tt.attributes.DISABLED,this._disabled),this.update({properties:{disabled:this._disabled}})}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){this._adapter.toggleHostAttribute(tt.attributes.ALLOW_CLOSE,this._allowClose),this.update({properties:{allowClose:this._allowClose}})}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){this._adapter.toggleHostAttribute(tt.attributes.AUTO_CLOSE,this._autoClose),this.update({properties:{autoClose:this._autoClose}})}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){this._adapter.setHostAttribute(tt.attributes.AUTO_CLOSE_THRESHOLD,this._autoCloseThreshold.toString()),this.update({properties:{autoCloseThreshold:this._autoCloseThreshold}})}layerSlottedPanels(t){let e=this._adapter.getSlottedPanels(),a=t.resizable==="start"?1:-1,o=t.resizable==="start"?1:3;e.forEach(n=>{(n===t||o===2)&&(o+=a),n.style.setProperty(tt.customCssProperties.ANIMATING_LAYER,o.toString())})}unlayerSlottedPanels(){this._adapter.getSlottedPanels().forEach(e=>{e.style.removeProperty(tt.customCssProperties.ANIMATING_LAYER)})}update(t){this._adapter.getSlottedPanels().forEach(a=>{a.update(t)})}refitSlottedPanels(){this._adapter.refitSlottedPanels(this._orientation)}};var Vx='<template><div class="forge-split-view" id="root" part="root"><slot></slot></div></template>',Ex=".forge-split-view{display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{flex-direction:row}:host([orientation=vertical]) .forge-split-view{flex-direction:column}",Ee=class extends H{static get observedAttributes(){return[tt.attributes.ORIENTATION,tt.attributes.DISABLED,tt.attributes.ALLOW_CLOSE,tt.attributes.AUTO_CLOSE,tt.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),L(this,Vx,Ex),this._core=new ul(new wl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case tt.attributes.ORIENTATION:this.orientation=a;break;case tt.attributes.DISABLED:this.disabled=p(a);break;case tt.attributes.ALLOW_CLOSE:this.allowClose=p(a);break;case tt.attributes.AUTO_CLOSE:this.autoClose=p(a);break;case tt.attributes.AUTO_CLOSE_THRESHOLD:this.autoCloseThreshold=$(a);break}}layerSlottedPanels(t){this._core.layerSlottedPanels(t)}unlayerSlottedPanels(){this._core.unlayerSlottedPanels()}update(t){this._core.update(t)}refit(){this._core.refitSlottedPanels()}};s([v()],Ee.prototype,"orientation",2),s([v()],Ee.prototype,"disabled",2),s([v()],Ee.prototype,"allowClose",2),s([v()],Ee.prototype,"autoClose",2),s([v()],Ee.prototype,"autoCloseThreshold",2),Ee=s([y({name:tt.elementName,dependencies:[It]})],Ee);function H6(){b(Ee)}var Cx=`${x}stack`,L6={DEFAULT:"forge-stack"},zx={ROOT:`.${L6.DEFAULT}`},I6={INLINE:"inline",WRAP:"wrap",STRETCH:"stretch",GAP:"gap",ALIGNMENT:"alignment",JUSTIFY:"justify"},Ax=m({},I6),Bx={DEFAULT_GAP:"16"},Wt={elementName:Cx,classes:L6,observedAttributes:I6,attributes:Ax,selectors:zx,strings:Bx};var _l=class extends I{constructor(t){super(t),this._rootElement=w(t,Wt.selectors.ROOT)}setGap(t){let e=/^\d+$/.test(t)?`${t}px`:t;this._rootElement.style.gap=`var(--forge-stack-gap, ${e})`}};var fl=class{constructor(t){this._adapter=t;this._inline=!1;this._wrap=!1;this._stretch=!1;this._gap=Wt.strings.DEFAULT_GAP;this._alignment="start";this._justify="start"}get inline(){return this._inline}set inline(t){t=!!t,this._inline!==t&&(this._inline=t,this._adapter.toggleHostAttribute(Wt.attributes.INLINE,this._inline))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(Wt.attributes.WRAP,this._wrap))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(Wt.attributes.STRETCH,this._stretch))}get gap(){return this._gap}set gap(t){this._gap!==t&&(this._gap=t,this._adapter.setGap(this._gap),this._adapter.setHostAttribute(Wt.attributes.GAP,this._gap))}get alignment(){return this._alignment}set alignment(t){this._alignment!==t&&(this._alignment=t,this._adapter.setHostAttribute(Wt.attributes.ALIGNMENT,this._alignment))}get justify(){return this._justify}set justify(t){this._justify!==t&&(this._justify=t,this._adapter.setHostAttribute(Wt.attributes.JUSTIFY,this._justify))}};var Tx='<template><div class="forge-stack" part="root"><slot></slot></div></template>',Sx=".forge-stack{display:flex;flex-direction:column;align-items:var(--_stack-alignment);justify-content:var(--_stack-justify);gap:var(--_stack-gap);height:var(--_stack-height);width:100%;--_stack-gap:var(--forge-stack-gap, var(--forge-spacing-medium, 16px));--_stack-height:var(--forge-stack-height);--_stack-stretch:var(--forge-stack-stretch, initial);--_stack-alignment:var(--forge-stack-alignment, normal);--_stack-justify:var(--forge-stack-justify, normal);--_stack-wrap:var(--forge-stack-wrap, wrap)}.forge-stack ::slotted(*){flex:var(--_stack-stretch)}:host([inline]) .forge-stack{flex-direction:row}:host([inline][wrap]) .forge-stack{flex-wrap:wrap}:host(:not([inline])) .forge-stack{--_stack-height:var(--forge-stack-height, 100%)}:host([stretch]) ::slotted(*){--_stack-stretch:var(--forge-stack-stretch, 1)}:host([alignment=start]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, start)}:host([alignment=center]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, center)}:host([alignment=end]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, end)}:host([justify=start]) .forge-stack{--_stack-justify:var(--forge-stack-justify, start)}:host([justify=center]) .forge-stack{--_stack-justify:var(--forge-stack-justify, center)}:host([justify=end]) .forge-stack{--_stack-justify:var(--forge-stack-justify, end)}",de=class extends H{static get observedAttributes(){return Object.values(Wt.observedAttributes)}constructor(){super(),L(this,Tx,Sx),this._core=new fl(new _l(this))}attributeChangedCallback(t,e,a){switch(t){case Wt.observedAttributes.INLINE:this.inline=p(a);break;case Wt.observedAttributes.WRAP:this.wrap=p(a);break;case Wt.observedAttributes.STRETCH:this.stretch=p(a);break;case Wt.observedAttributes.GAP:this.gap=a;break;case Wt.observedAttributes.ALIGNMENT:this.alignment=a;break;case Wt.observedAttributes.JUSTIFY:this.justify=a;break}}};s([v()],de.prototype,"inline",2),s([v()],de.prototype,"wrap",2),s([v()],de.prototype,"stretch",2),s([v()],de.prototype,"gap",2),s([v()],de.prototype,"alignment",2),s([v()],de.prototype,"justify",2),de=s([y({name:Wt.elementName})],de);function V6(){b(de)}var xl=`${x}step`,la={STEP:"forge-step",STEP_CONTAINER:"container",ERROR:"error",SELECTED:"selected",COMPLETED:"completed",EDITABLE:"editable",ALTERNATIVE:"alternative",ICON_CONTENT:"icon-content",ICON:"icon",LABEL_CONTAINER:"label-container",LABEL:"label",OPTIONAL_LABEL:"optional-label",INDEX:"index",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",EXPANSION_PANEL:"expansion-panel",EXPANSION_ICON:"expanded-icon",EXPANSION_ICON_EXPANDED:"expanded-icon--expanded",EXPANSION_CONTENT:"expansion-content"},kx={SELECTED:"selected",INDEX:"index",EDITABLE:"editable",COMPLETED:"completed",ERROR:"error",ALTERNATIVE:"alternative",FIRST:"first",LAST:"last",ARIA_SELECTED:"aria-selected",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",IGNORE_USER_EXPANSION:"ignore-user-expansion"},Ox={STEP:`.${la.STEP}`,STEP_CONTAINER:`.${la.STEP_CONTAINER}`,INDEX:`.${la.INDEX}`,ICON:`.${la.ICON}`,ICON_CONTENT:`.${la.ICON_CONTENT}`,EXPANSION_SLOT:'slot[name="expansion-content"]',EXPANSION_PANEL:`.${la.EXPANSION_PANEL}`,EXPANSION_ICON:`.${la.EXPANSION_ICON}`},Dx={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",EXPANSION_CONTENT_SLOT_NAME:"expansion-content"},Px={SELECT:`${xl}-select`,EXPANDED_CONTENT_FOCUSIN:`${xl}-expanded-content-focusin`,EXPANDED_CONTENT_FOCUSOUT:`${xl}-expanded-content-focusout`},k={elementName:xl,classes:la,selectors:Ox,attributes:kx,events:Px,strings:Dx};var bl=class extends I{constructor(t){super(t),this._stepContainer=w(t,k.selectors.STEP),this._container=w(t,k.selectors.STEP_CONTAINER),this._stateLayerElement=w(this._component,L1.elementName)}get component(){return this._component}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","tab")}setIndex(t){this._stepContainer.querySelector(k.selectors.INDEX).innerHTML=(t+1||"").toString()}toggleRootClass(t,e){ft(this._stepContainer,e,t)}toggleDisabled(t){ft(this._stepContainer,t,k.classes.DISABLED),W(this._component,t,"aria-disabled"),this._stateLayerElement.disabled=t}toggleIcon(t,e){let a=this._stepContainer.querySelector(k.selectors.INDEX),o=this._stepContainer.querySelector(k.selectors.ICON);if(!e){a.style.display="inherit",o.style.display="none";return}a.style.display="none",o.style.display="inherit",o.name=t}slotHasContent(){return this._expansionSlot.assignedElements({flatten:!0}).length>0}setClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}setSlotListener(t){this._expansionSlot.addEventListener("slotchange",t)}removeSlotListener(t){this._expansionSlot&&this._expansionSlot.removeEventListener("slotchange",t)}setExpanded(t){this._expansionPanel&&(this._expansionPanel.open=t,W(this._expansionPanel,!t,"tabindex","-1")),ft(this._stepContainer,t,k.classes.EXPANDED)}setExpansionPanelAnimations(t){this._expansionPanel.animationType=t?"default":"none"}addExpansionPanel(){this._container.querySelector(k.selectors.EXPANSION_PANEL)||(this._expansionPanel=this._container.appendChild(this._createExpansionPanel()),this._expansionSlot=this._expansionPanel.querySelector(k.selectors.EXPANSION_SLOT))}removeExpansionPanel(){let t=this._container.querySelector(k.selectors.EXPANSION_PANEL);t&&this._container.removeChild(t)}addExpansionIcon(){this._stepContainer.querySelector(k.selectors.EXPANSION_ICON)||this._stepContainer.appendChild(this._createExpansionIcon())}removeExpansionIcon(){let t=this._stepContainer.querySelector(k.selectors.EXPANSION_ICON);t&&this._stepContainer.removeChild(t)}addExpansionPanelListener(t,e){this._expansionPanel.addEventListener(t,e)}removeExpansionPanelListener(t,e){this._expansionPanel&&this._expansionPanel.removeEventListener(t,e)}isExpandedContentInFocus(t){return this._expansionSlot.assignedElements().some(e=>e.contains(t||document.activeElement))}_createExpansionPanel(){let t=document.createElement("forge-expansion-panel");t.animationType="none",t.setAttribute("part","expansion-panel"),H1(k.classes.EXPANSION_PANEL,t);let e=document.createElement("slot");return e.setAttribute("name","expansion-content"),H1(k.classes.EXPANSION_CONTENT,e),t.appendChild(e),t}_createExpansionIcon(){let t=document.createElement("forge-icon");return H1(k.classes.EXPANSION_ICON,t),t.name="keyboard_arrow_down",t.setAttribute("part","expanded-icon"),t}};var yl=class{constructor(t){this._adapter=t;this._clickListener=()=>this._onClickListener(),this._expansionContentSlotChangeListener=e=>this._onExpansionContentSlotChange(e),this._expansionContentFocusInListener=e=>this._onExpansionContentFocusIn(e),this._expansionContentFocusOutListener=e=>this._onExpansionContentFocusOut(e)}initialize(){this._adapter.initialize(),this._applySelected(),this._toggleIcon(),this._vertical&&(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener),this._adapter.addExpansionPanelListener("focusin",this._expansionContentFocusInListener),this._adapter.addExpansionPanelListener("focusout",this._expansionContentFocusOutListener)),this._initialized=!0}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanelListener("focusin",this._onExpansionContentFocusIn),this._adapter.removeExpansionPanelListener("focusout",this._onExpansionContentFocusOut)}get index(){return this._index}set index(t){this._index!==t&&(this._index=t,this._applyIndex(),this._adapter.setHostAttribute(k.attributes.INDEX,t.toString()))}get editable(){return this._editable}set editable(t){this._editable!==t&&(this._editable=t,this._adapter.toggleHostAttribute(k.attributes.EDITABLE,t),this._applyEditable())}get completed(){return this._completed}set completed(t){this._completed!==t&&(this._completed=t,this._adapter.toggleHostAttribute(k.attributes.COMPLETED,t),this._applyCompleted())}get error(){return this._error}set error(t){this._error!==t&&(this._error=t,this._adapter.toggleHostAttribute(k.attributes.ERROR,t),this._applyError())}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(k.attributes.SELECTED,t),this._applySelected())}get alternative(){return this._alternative}set alternative(t){this._alternative!==t&&(this._alternative=t,this._adapter.toggleHostAttribute(k.attributes.ALTERNATIVE,t),this._applyAlternative())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._applyDisabled()}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._initialized&&(this._vertical?(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener)):(this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanel(),this._adapter.removeExpansionIcon())))}get expanded(){return this._expanded}set expanded(t){t!==this._expanded&&(this._expanded=t,this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded),this._initialized&&this._applyExpanded())}get ignoreUserExpansion(){return this._ignoreUserExpansion}set ignoreUserExpansion(t){t!==this._ignoreUserExpansion&&(this._ignoreUserExpansion=t)}_applyExpanded(){this._adapter.setExpanded(this._expanded)}_applyVertical(){this._adapter.toggleHostAttribute(k.attributes.VERTICAL,this._vertical),this._adapter.toggleRootClass(k.classes.VERTICAL,this._vertical)}_applyAlternative(){this._adapter.toggleRootClass(k.classes.ALTERNATIVE,this._alternative)}_applySelected(){this._adapter.toggleRootClass(k.classes.SELECTED,this._selected),this._adapter.setHostAttribute(k.attributes.ARIA_SELECTED,(this._selected||!1).toString()),this._adapter.hostElement.tabIndex=this._selected?0:-1,this._toggleIcon()}_applyIndex(){this._adapter.setIndex(this._index)}_applyEditable(){this._adapter.toggleRootClass(k.classes.EDITABLE,this._editable),this._toggleIcon()}_applyCompleted(){this._adapter.toggleRootClass(k.classes.COMPLETED,this._completed),this._toggleIcon()}_applyError(){this._adapter.toggleRootClass(k.classes.ERROR,this._error),this._toggleIcon()}_applyDisabled(){this._adapter.toggleDisabled(this._disabled),this._toggleIcon()}_getIconState(){return this._error?"warning":this._completed?this._editable?"mode_edit":"check":this._editable&&this._selected&&!this._disabled?"mode_edit":this._disabled?"block":""}_toggleIcon(){this._iconState=this._getIconState(),this._adapter.toggleIcon(this._iconState,this._iconState!=="")}_toggleExpanded(){this._adapter.slotHasContent()&&(this._expanded=!this._expanded,this._applyExpanded(),this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded))}_onClickListener(){this._vertical&&!this._ignoreUserExpansion&&this._toggleExpanded()}_onExpansionContentSlotChange(t){let e=this._adapter.slotHasContent();e?(this._adapter.setHostAttribute(k.attributes.EXPANDABLE),this._applyExpanded(),this._adapter.setExpansionPanelAnimations(!0)):(this._adapter.removeHostAttribute(k.attributes.EXPANDABLE),this._adapter.setExpansionPanelAnimations(!1)),this._adapter.toggleRootClass(k.classes.EXPANDABLE,e)}_onExpansionContentFocusIn(t){!this._expandedContentFocused&&this._adapter.isExpandedContentInFocus(t.target)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSIN,this._adapter.component),this._expandedContentFocused=!0)}_onExpansionContentFocusOut(t){t.relatedTarget&&!this._adapter.isExpandedContentInFocus(t.relatedTarget)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSOUT,this._adapter.component),this._expandedContentFocused=!1)}};var Nx='<template><div class="container" part="root"><div class="forge-step" part="step"><div class="before" part="before"></div><div class="icon-container" part="icon-container"><div class="icon-content" part="icon-content"><span class="index" part="index"></span><forge-icon class="icon" part="icon"></forge-icon></div></div><div class="text-container" part="text-container"><div class="title" part="title-container"><slot></slot></div><div class="subtitle" part="subtitle-container"><slot name="optional"></slot></div></div><div class="after" part="after"></div><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></div></template>',Rx=':host{--_step-primary-color:var(--forge-step-primary-color, var(--forge-theme-primary, #3f51b5));--_step-text-color:var(--forge-step-text-color, var(--forge-theme-on-primary, #ffffff));--_step-border-radius:var(--forge-step-border-radius, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_step-border-radius-vertical:var(--forge-step-border-radius-vertical, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_step-disabled-text-color:var(--forge-step-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_step-disabled-color:var(--forge-step-disabled-color, var(--forge-theme-surface-container-minimum, #f5f5f5));--_step-icon-fill:var(--forge-step-icon-fill, unset);--_step-icon-fill-active:var(--forge-step-icon-fill-active, var(--_step-primary-color));--_step-icon-text-color:var(--forge-step-icon-text-color, var(--forge-theme-primary, #3f51b5));--_step-icon-text-color-active:var(--forge-step-icon-text-color-active, var(--forge-theme-on-primary, #ffffff));--_step-icon-content-size:var(--forge-step-icon-content-size, 24px);--_step-icon-size:var(--forge-step-icon-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_step-icon-transition-duration:var(--forge-step-icon-transition-duration, var(--forge-animation-duration-medium4, 400ms));--_step-icon-transition-easing:var(--forge-step-icon-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_step-line-color:var(--forge-step-line-color, var(--forge-theme-outline, #e0e0e0));--_step-line-min-width:var(--forge-step-line-min-width, 10px);--_step-line-min-width-clustered:var(--forge-step-line-min-width-clustered, 25px);--_step-label-color:var(--forge-step-label-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_step-sub-label-color:var(--forge-step-sub-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_step-error-color:var(--forge-step-error-color, var(--forge-theme-error, #b00020));--_step-error-text-color:var(--forge-step-error-text-color, var(--forge-theme-on-error, #ffffff));--_step-expansion-panel-border-left-width:var(--forge-step-expansion-panel-border-left-width, 1px);--_step-expansion-panel-margin-bottom:var(--forge-step-expansion-panel-margin-bottom, 4px);--_step-expansion-panel-margin-left:var(--forge-step-expansion-panel-margin-left, 60px);--_step-expansion-panel-margin-top:var(--forge-step-expansion-panel-margin-top, 4px);--_step-expansion-panel-icon-color:var(--forge-step-expansion-panel-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host(:focus){outline:0}:host([error]){--forge-state-layer-color:var(--_step-error-color)}:host(:first-child[alternative])::after{align-self:flex-start;top:22px;margin:0}:host(:last-child[alternative])::before{align-self:flex-start;top:22px;margin:0}:host(:not(:first-child):not(:last-child)[alternative])::after,:host(:not(:first-child):not(:last-child)[alternative])::before{align-self:flex-start;top:22px;min-width:7px;margin:0}:host(:not(:last-child)[alternative]) .after{align-self:flex-start;top:22px;position:absolute;width:calc(50% - 18px);left:calc(50% + 18px);height:0;right:0}:host(:not(:first-child)[alternative]) .before{align-self:flex-start;top:22px;position:absolute;left:0;width:calc(50% - 18px);height:0}:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::after,:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host(:last-child):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px 0 0}:host(:is(:first-child)):host(:not([vertical]))::after{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host([vertical]){flex-direction:column}:host([vertical])::after{content:none}:host([vertical])::before{content:none}:host([vertical]) .forge-step{--_step-border-radius:var(--_step-border-radius-vertical);width:100%;min-height:52px}:host([vertical]) .forge-step .text-container{white-space:normal}:host([vertical]) .icon-container .icon-content{margin:0 16px 0 0}:host([vertical]) .expansion-panel{display:none}:host([vertical]) .expanded-icon{color:var(--_step-expansion-panel-icon-color);display:none;margin-left:auto}:host([vertical][expandable]) .expansion-panel{display:block}:host([ignore-user-expansion]) .forge-step .expanded-icon{display:none}forge-expansion-panel::part(root){border-color:var(--_step-line-color);margin-left:var(--_step-expansion-panel-margin-left);margin-top:var(--_step-expansion-panel-margin-top);margin-bottom:var(--_step-expansion-panel-margin-bottom);border-left-width:var(--_step-expansion-panel-border-left-width);border-left-style:solid}forge-focus-indicator{--forge-focus-indicator-color:var(--_step-primary-color);--forge-focus-indicator-shape:16px}.container{display:contents}.forge-step{-webkit-tap-highlight-color:transparent;padding:12px 16px;outline:0;background:0 0;border:none;border-radius:var(--_step-border-radius);position:relative;display:flex;overflow:hidden;align-items:center;box-sizing:border-box;cursor:pointer}.forge-step:focus{outline:0}.forge-step::-moz-focus-inner,.forge-step::-moz-focus-outer{padding:0;border:0}.forge-step.error forge-focus-indicator{--forge-focus-indicator-color:var(--_step-error-color)}.forge-step.vertical forge-focus-indicator{--forge-focus-indicator-shape:4px}.forge-step.selected:not(.disabled){--forge-state-layer-color:var(--_step-primary-color)}.forge-step.selected:not(.disabled)::before{background-color:var(--_step-primary-color);content:"";position:absolute;inset:0;opacity:.08;height:100%;width:100%}.forge-step.selected:not(.disabled).error{--_step-primary-color:var(--_step-error-color)}.forge-step .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);color:var(--_step-label-color);text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle{text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle ::slotted(*){color:var(--_step-sub-label-color);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.forge-step .icon-container .icon-content{color:var(--_step-icon-text-color);background-color:var(--_step-icon-fill);height:var(--_step-icon-content-size);width:var(--_step-icon-content-size);border-style:solid;border-width:2px;border-color:transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color var(--_step-icon-transition-duration) var(--_step-icon-transition-easing);margin:0 8px 0 0;flex:none}.forge-step .icon-container .icon-content forge-icon{font-size:var(--_step-icon-size)}.forge-step.disabled{color:var(--_step-disabled-text-color);cursor:not-allowed}.forge-step.disabled.forge-step .icon-container .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .title{color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .subtitle ::slotted(*){color:var(--_step-disabled-text-color)}.forge-step.alternative{flex-direction:column}.forge-step.alternative .icon-container .icon-content{margin:0}.forge-step.alternative .text-container{margin-top:8px;place-items:center}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content{border-color:var(--_step-primary-color)}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content .index,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content .index{color:var(--_step-primary-color)}.forge-step.selected.disabled .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.selected:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.selected:not(.disabled) .title{color:var(--_step-primary-color);font-weight:500}.forge-step.selected:not(.disabled) .subtitle ::slotted(*){color:var(--_step-primary-color);font-weight:500}.forge-step.error:not(.disabled) .title{color:var(--_step-error-color)}.forge-step.error:not(.disabled) .subtitle ::slotted(*){color:var(--_step-error-color)}.forge-step.error:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-error-color);--_step-icon-text-color:var(--_step-error-text-color)}.forge-step.completed:not(.disabled):not(.error):not(.editable) .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.completed:not(.disabled):not(.error).editable .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.expandable .expanded-icon{display:inline-block;transition:transform .3s ease-in-out}.forge-step.expandable.expanded .expanded-icon{transform:rotate(180deg)}.forge-step.expandable .icon-container .icon-content{margin:0 16px 0 0}.forge-step .text-container{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:not(:last-child)[clustered])::after{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:last-child[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:not(:first-child):not(:last-child)[clustered])::after,:host(:not(:first-child):not(:last-child)[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}',Xt=class extends H{static get observedAttributes(){return[k.attributes.COMPLETED,k.attributes.EDITABLE,k.attributes.ERROR,k.attributes.INDEX,k.attributes.SELECTED,k.attributes.ALTERNATIVE,k.attributes.DISABLED,k.attributes.VERTICAL,k.attributes.EXPANDED,k.attributes.IGNORE_USER_EXPANSION]}constructor(){super(),j.define([u3,l3,b3,i3,i0]),L(this,Nx,Rx),this._core=new yl(new bl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case k.attributes.INDEX:this.index=$(a);break;case k.attributes.COMPLETED:this.completed=p(a);break;case k.attributes.EDITABLE:this.editable=p(a);break;case k.attributes.ERROR:this.error=p(a);break;case k.attributes.SELECTED:this.selected=p(a);break;case k.attributes.ALTERNATIVE:this.alternative=p(a);break;case k.attributes.DISABLED:this.disabled=p(a);break;case k.attributes.VERTICAL:this.vertical=p(a);break;case k.attributes.EXPANDED:this.expanded=p(a);break;case k.attributes.IGNORE_USER_EXPANSION:this.ignoreUserExpansion=p(a);break}}};s([v()],Xt.prototype,"alternative",2),s([v()],Xt.prototype,"index",2),s([v()],Xt.prototype,"editable",2),s([v()],Xt.prototype,"completed",2),s([v()],Xt.prototype,"error",2),s([v()],Xt.prototype,"selected",2),s([v()],Xt.prototype,"disabled",2),s([v()],Xt.prototype,"vertical",2),s([v()],Xt.prototype,"expanded",2),s([v()],Xt.prototype,"ignoreUserExpansion",2),Xt=s([y({name:k.elementName,dependencies:[Q,Qt,i1,t1]})],Xt);function E6(){b(Xt)}var Fx=`${x}stepper`,C6={STEPPER:"forge-stepper",LINEAR:"linear",ALTERNATIVE:"alternative",CLUSTERED:"clustered",FIXED:"fixed",ALIGN_LEFT:"align-left",ALIGN_CENTER:"align-center",ALIGN_RIGHT:"align-right",VERTICAL:"vertical",FOCUSED:"focused"},Ux={STEPPER:`.${C6.STEPPER}`},Wx={SELECTED_INDEX:"selected-index",LINEAR:"linear",ALTERNATIVE:"alternative",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",DISABLED:"disabled",VERTICAL:"vertical"},_2={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_KEY:"Tab"},Pa={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,HOME_KEYCODE:36,ENTER_KEYCODE:13,SPACE_KEYCODE:32},Gx=[_2.ARROW_LEFT_KEY,_2.ARROW_RIGHT_KEY,_2.ARROW_DOWN_KEY,_2.ARROW_UP_KEY,_2.END_KEY,_2.HOME_KEY,_2.ENTER_KEY,_2.SPACE_KEY,_2.TAB_KEY],Yx={[Pa.ARROW_LEFT_KEYCODE]:_2.ARROW_LEFT_KEY,[Pa.ARROW_RIGHT_KEYCODE]:_2.ARROW_RIGHT_KEY,[Pa.END_KEYCODE]:_2.END_KEY,[Pa.HOME_KEYCODE]:_2.HOME_KEY,[Pa.ENTER_KEYCODE]:_2.ENTER_KEY,[Pa.SPACE_KEYCODE]:_2.SPACE_KEY},F={elementName:Fx,classes:C6,selectors:Ux,attributes:Wx,numbers:Pa,strings:_2,ACCEPTABLE_KEYS:Gx,KEYCODE_MAP:Yx};var b0=class r{static createStepElement(t,e,a){var n,i;let o=document.createElement(k.elementName);return o.index=e,o.completed=t.completed||!1,o.editable=t.editable||!1,o.selected=a.selectedIndex===e,o.alternative=a.alternative,o.error=t.error||!1,o.disabled=t.disabled||!1,o.vertical=(i=(n=t.vertical)!=null?n:a.vertical)!=null?i:!1,o.ignoreUserExpansion=t.ignoreUserExpansion||!1,o.expanded=t.expanded||!1,a.linear&&e>a.selectedIndex&&(o.tabIndex=-1),o.textContent=t.label,t.optionalLabel&&o.appendChild(this.createStepOptionalLabel(t.optionalLabel)),o}static createStepOptionalLabel(t){let e=document.createElement("span");return e.slot="optional",e.textContent=t||"",e}static setLinearState(t,e){let a=t.classList.contains(F.classes.LINEAR);a&&!e&&(t.classList.remove(F.classes.LINEAR),a=!1),!a&&e&&t.classList.add(F.classes.LINEAR)}static setAlternativeState(t,e){let a=t.classList.contains(F.classes.ALTERNATIVE);a&&!e&&(t.classList.remove(F.classes.ALTERNATIVE),a=!1),!a&&e&&t.classList.add(F.classes.ALTERNATIVE)}static setLayoutMode(t,e){switch(e){case"clustered":t.classList.contains(F.classes.FIXED)&&t.classList.remove(F.classes.FIXED),t.classList.add(F.classes.CLUSTERED);break;case"fixed":t.classList.contains(F.classes.CLUSTERED)&&t.classList.remove(F.classes.CLUSTERED),t.classList.add(F.classes.FIXED);break}}static setLayoutAlign(t,e){switch(t.classList.contains(F.classes.ALIGN_LEFT)&&t.classList.remove(F.classes.ALIGN_LEFT),t.classList.contains(F.classes.ALIGN_CENTER)&&t.classList.remove(F.classes.ALIGN_CENTER),t.classList.contains(F.classes.ALIGN_RIGHT)&&t.classList.remove(F.classes.ALIGN_RIGHT),e){case"left":t.classList.add(F.classes.ALIGN_LEFT);break;case"center":t.classList.add(F.classes.ALIGN_CENTER);break;case"right":t.classList.add(F.classes.ALIGN_RIGHT);break}}static createSteps(t){let e=[];return t.steps.forEach((a,o)=>{let n=r.createStepElement(a,o,t);e.push(n)}),e[0].setAttribute(k.attributes.FIRST,""),e[e.length-1].setAttribute(k.attributes.LAST,""),e}};var Ml=class extends I{constructor(t){super(t),this._rootElement=w(t,F.selectors.STEPPER),this._slotElement=this._rootElement.querySelector("slot")}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}patchSafari(){this._applyToSteps(t=>t.setAttribute("safari",""))}addSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}removeSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}getLastStep(){let t=this._getSteps();return t.item(t.length-1)}setSelected(t){this._getSteps().forEach(e=>{e===t?e.selected=!0:e.selected=!1})}assignIndices(){this._getSteps().forEach((e,a)=>{e.index=a})}assignFirstLastStep(){let t=this._getSteps();t&&t.length>1&&(t[0].setAttribute("first",""),t[t.length-1].setAttribute("last",""))}setLayoutAlign(t){b0.setLayoutAlign(this._rootElement,t)}setLayoutMode(t){b0.setLayoutMode(this._rootElement,t),this._applyToSteps(e=>e.setAttribute(k.attributes.CLUSTERED,""))}setAlternativeState(t){b0.setAlternativeState(this._rootElement,t),this._applyToSteps(e=>e.alternative=t)}setVertical(t){ft(this._rootElement,t,F.classes.VERTICAL),this._applyToSteps(e=>e.vertical=t)}setLinearState(t){b0.setLinearState(this._rootElement,t)}removeRootListener(t,e){this._rootElement.removeEventListener("click",e)}addRootListener(t,e){this._rootElement.addEventListener(t,e)}setSelectedByIndex(t){this._applyToSteps(e=>{e.selected&&e.index!==t&&(e.selected=!1),e.index===t&&(e.selected=!0)})}applyConfiguredSteps(t){this._component.querySelectorAll(k.elementName).forEach(e=>{this._component.removeChild(e)}),t.forEach(e=>this._component.appendChild(e))}tryGetFocusedStep(){let t;return this._applyToSteps(e=>{e.matches(":focus-within")&&(t=e)}),t}getFocusedOrSelectedStep(){let t=this.tryGetFocusedStep();return t||(t=this._getSteps()[0],t.focus()),t}getStep(t){let e=0,a=this._getSteps();return t<0?a.item(a.length-1):(a.length>t&&(e=t),a.item(e))}toggleDisabled(t){this._applyToSteps(e=>e.disabled=t)}toggleRootClass(t,e){ft(this._rootElement,e,t)}isStepperFocused(){return this._rootElement.classList.contains(F.classes.FOCUSED)}setStepsListener(t,e){this._applyToSteps(a=>a.addEventListener(t,e))}removeStepsListener(t,e){this._applyToSteps(a=>a.removeEventListener(t,e))}_applyToSteps(t){this._getSteps().forEach(t)}_getSteps(){return this._component.querySelectorAll(k.elementName)}};var Hl=class{constructor(t){this._adapter=t;this._steps=[];this._selectedIndex=0;this._linear=!1;this._alternative=!1;this._layoutMode="fixed";this._layoutAlign="center";this._initialize=!1;this._clickListener=e=>this._handleClick(e),this._keyListener=e=>this._onKeydown(e),this._stepFocusListener=()=>this._onStepFocus(),this._stepBlurListener=()=>this._onStepBlur(),this._stepExpandedContentFocusInListener=e=>this._onStepExpandedContentFocusIn(e),this._stepExpandedContentFocusOutListener=e=>this._onStepExpandedContentFocusOut(e),this._slotChangeListener=e=>this._onSlotChange(e)}initialize(){this._adapter.initializeAccessibility(),this._adapter.assignIndices(),this._adapter.setLinearState(this._linear),this._adapter.setAlternativeState(this._alternative),this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setLayoutMode(this._layoutMode),this._adapter.addRootListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keyListener),this._adapter.assignFirstLastStep(),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSIN,this._stepExpandedContentFocusInListener),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSOUT,this._stepExpandedContentFocusOutListener),this._applySelectedIndex(),this._patchBrowser(),this._adapter.setStepsListener("blur",this._stepBlurListener),this._adapter.setStepsListener("focus",this._stepFocusListener),this._initialize||this._adapter.addSlotChangeListener(this._slotChangeListener),this._initialize=!0}destroy(){this._adapter.removeRootListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keyListener),this._adapter.removeSlotChangeListener(this._slotChangeListener),this._adapter.removeStepsListener("blur",this._stepBlurListener),this._adapter.removeStepsListener("focus",this._stepFocusListener)}get steps(){return this._steps.map(t=>m({},t))}set steps(t){if(Array.isArray(t)&&t.length>0)this._steps=[...t.map(e=>m({},e))];else{this._steps=[];return}this._renderConfiguration()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){if(!O(t))t=0;else if(!kt(t)){let e=Number(t);t=isNaN(e)?0:e}this._selectedIndex!==t&&(this._selectedIndex=t,this._adapter.setHostAttribute(F.attributes.SELECTED_INDEX,this._selectedIndex.toString()),this._applySelectedIndex())}get linear(){return this._linear}set linear(t){t=!!t,this._linear!==t&&(this._linear=t,this._adapter.setLinearState(this._linear),this._adapter.setHostAttribute(F.attributes.LINEAR,this._linear.toString()))}get alternative(){return this._alternative}set alternative(t){t=!!t,this._alternative!==t&&(this._alternative=t,this._adapter.setAlternativeState(this._alternative),this._adapter.setHostAttribute(F.attributes.ALTERNATIVE,this._alternative.toString()))}get layoutMode(){return this._layoutMode}set layoutMode(t){/^(fixed|clustered)$/.test(t)&&this._layoutMode!==t&&(this._layoutMode=t,this._adapter.setHostAttribute(F.attributes.LAYOUT_MODE,this._layoutMode),this._adapter.setLayoutMode(this._layoutMode))}get layoutAlign(){return this._layoutAlign}set layoutAlign(t){/^(left|center|right)$/.test(t)&&this._layoutAlign!==t&&(this._layoutAlign=t,this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setHostAttribute(F.attributes.LAYOUT_ALIGN,this._layoutAlign))}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._applyDisabled())}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._adapter.toggleHostAttribute(F.attributes.VERTICAL,this._vertical))}_applyVertical(){this._adapter.setVertical(this._vertical)}_applyDisabled(){this._disabled?this._adapter.setHostAttribute(F.attributes.DISABLED,"disabled"):this._adapter.removeHostAttribute(F.attributes.DISABLED),this._adapter.toggleDisabled(this._disabled)}_applySelectedIndex(){this._adapter.setSelectedByIndex(this._selectedIndex)}_handleClick(t){if(t.preventDefault(),this._linear)return;let a=Et(t).filter(o=>o.nodeType===Node.ELEMENT_NODE).find(o=>o.matches(k.elementName));a&&!a.selected&&!a.disabled&&this._adapter.emitHostEvent(k.events.SELECT,a.index,!0,!0)&&(this._adapter.setSelected(a),this.selectedIndex=a.index)}_renderConfiguration(){let t=b0.createSteps({steps:this._steps,vertical:this._vertical,selectedIndex:this._selectedIndex,alternative:this._alternative,layoutAlign:this._layoutAlign,layoutMode:this._layoutMode,linear:this._linear});this.destroy(),this._adapter.applyConfiguredSteps(t),this.initialize()}_onKeydown(t){var o;if(this._linear)return;let e=this._getKeyFromEvent(t);if(!this._adapter.isStepperFocused()||!e)return;if([k.strings.HOME_KEY,k.strings.END_KEY,k.strings.ARROW_DOWN_KEY,F.strings.ARROW_UP_KEY,F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)&&t.preventDefault(),[F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)){(o=this._adapter.getFocusedOrSelectedStep())==null||o.click();return}let a=this._vertical?this._determineVerticalMoveTarget(e):this._determineMoveTarget(e);a&&this._moveFocusTo(a)}_moveFocusTo(t){t.focus()}_getKeyFromEvent(t){return F.ACCEPTABLE_KEYS.includes(t.key)?t.key:F.KEYCODE_MAP[t.keyCode]}_determineMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_RIGHT_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_LEFT_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_determineVerticalMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_DOWN_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_UP_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_onSlotChange(t){this.destroy(),this.initialize()}_onStepExpandedContentFocusIn(t){let e=this._adapter.getStep(t.detail.index+1);e&&(e.tabIndex=0),t.detail.tabIndex=0}_onStepExpandedContentFocusOut(t){let e=t.target,a=this._adapter.getStep(e.index+1);a&&(a.tabIndex=-1),e.tabIndex=-1}_onStepFocus(){this._adapter.toggleRootClass(F.classes.FOCUSED,!0)}_onStepBlur(){this._adapter.toggleRootClass(F.classes.FOCUSED,!1)}_patchBrowser(){new Zt().SAFARI()&&this._adapter.patchSafari()}};var Kx='<template><div class="forge-stepper" part="root"><slot></slot></div></template>',qx=":host{display:block}:host([hidden]){display:none}:host([vertical]) .forge-stepper{display:unset;align-items:unset;white-space:unset;overflow:unset}.forge-stepper{display:flex;align-items:center;white-space:nowrap;overflow:hidden}.forge-stepper:not(.vertical) ::slotted(*){display:flex;align-items:center;position:relative;min-width:112px}.forge-stepper.fixed ::slotted(*){flex:1}.forge-stepper.alternative{align-items:flex-start}.forge-stepper.alternative ::slotted(*){min-width:160px}.forge-stepper.align-left{justify-content:flex-start}.forge-stepper.align-center{justify-content:center}.forge-stepper.align-right{justify-content:flex-end}",D2=class extends H{static get observedAttributes(){return[F.attributes.SELECTED_INDEX,F.attributes.LINEAR,F.attributes.ALTERNATIVE,F.attributes.LAYOUT_MODE,F.attributes.LAYOUT_ALIGN,F.attributes.DISABLED,F.attributes.VERTICAL]}constructor(){super(),L(this,Kx,qx),this._core=new Hl(new Ml(this))}async connectedCallback(){await Ga(this),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case F.attributes.SELECTED_INDEX:this.selectedIndex=Number(a)||0;break;case F.attributes.LINEAR:this.linear=p(a);break;case F.attributes.ALTERNATIVE:this.alternative=p(a);break;case F.attributes.LAYOUT_MODE:this.layoutMode=a;break;case F.attributes.LAYOUT_ALIGN:this.layoutAlign=a;break;case F.attributes.DISABLED:this.disabled=p(a);break;case F.attributes.VERTICAL:this.vertical=p(a);break}}};s([v()],D2.prototype,"steps",2),s([v()],D2.prototype,"selectedIndex",2),s([v()],D2.prototype,"linear",2),s([v()],D2.prototype,"alternative",2),s([v()],D2.prototype,"layoutMode",2),s([v()],D2.prototype,"layoutAlign",2),s([v()],D2.prototype,"disabled",2),s([v()],D2.prototype,"vertical",2),D2=s([y({name:F.elementName,dependencies:[Xt]})],D2);function z6(){b(D2)}var y0=`${x}table`,A6={TABLE:"forge-table",TABLE_DENSE:"forge-table--dense",TABLE_ROOMY:"forge-table--roomy",TABLE_RESIZABLE:"forge-table--resizable",TABLE_RESIZING:"forge-table--resizing",TABLE_RESIZE_HANDLE:"forge-table__resize-handle",TABLE_NO_WRAP_CONTENT:"forge-table--no-wrap-content",TABLE_LAYOUT_FIXED:"forge-table--layout-fixed",TABLE_FILTER_VISIBLE:"forge-table--filter-visible",TABLE_FIXED:"forge-table--fixed",TABLE_HEAD:"forge-table-head",TABLE_HEAD_ROW:"forge-table-head__row",TABLE_HEAD_ROW_FILTER:"forge-table-head__row__filter",TABLE_HEAD_CELL:"forge-table-head__cell",TABLE_HEAD_CELL_CONTAINER:"forge-table-head__cell-container",TABLE_HEAD_CELL_SORTABLE:"forge-table-head__cell--sortable",TABLE_HEAD_CELL_SORT_ICON:"forge-table-head__cell-sort-icon",TABLE_HEAD_CELL_TEXT:"forge-table-head__cell-text",TABLE_HEAD_CELL_SORT_ICON_ACTIVE:"forge-table-head__cell-sort-icon--active",TABLE_HEAD_CELL_SORTED_ASCENDING:"forge-table-head__cell--sorted-ascending",TABLE_HEAD_CELL_SORTED_DESCENDING:"forge-table-head__cell--sorted-descending",TABLE_HEAD_CELL_SORT_ORDER:"forge-table-head__cell__sort-order",TABLE_HEAD_CELL_SORT_ORDER_HIDDEN:"forge-table-head__cell__sort-order--hidden",TABLE_BODY:"forge-table-body",TABLE_BODY_ROW:"forge-table-body__row",TABLE_BODY_ROW_SELECTED:"forge-table-body__row--selected",TABLE_BODY_ROW_CLICKABLE:"forge-table-body__row--clickable",TABLE_BODY_CELL:"forge-table-body__cell",TABLE_ROW:"forge-table-row",TABLE_ROW_EXPANDED:"forge-table-row--expanded",TABLE_ROW_EXPANDABLE_CONTENT:"forge-table-row__expandable-content",TABLE_ROW_EXPANDABLE_CONTENT_CELL:"forge-table-row__expandable-content-cell",TABLE_CELL:"forge-table-cell",TABLE_CELL_SELECT:"forge-table-cell__select",TABLE_CELL_SELECT_CHECKBOX:"forge-table-cell__select-checkbox",TABLE_CELL_SELECT_CHECKBOX_CONTAINER:"forge-table-cell__select-checkbox-container",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT:"forge-table-cell__select-checkbox-container--align-right",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT:"forge-table-cell__select-checkbox-container--align-left",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER:"forge-table-cell__select-checkbox-container--align-center",TABLE_CELL_CONTAINER:"forge-table-cell__container",TABLE_CELL_CONTAINER_TEXT:"forge-table-cell__container-text",TABLE_CELL_CENTER:"forge-table-cell--center",TABLE_CELL_RIGHT:"forge-table-cell--right",TABLE_CELL_RESIZABLE:"forge-table-cell--resizing"},$x={TABLE:".forge-table",CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",SELECT_ALL_TEMPLATE_CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",ROW_SELECTED:`.${A6.TABLE_BODY_ROW_SELECTED}`},Xx={SELECT:"select",MULTISELECT:"multiselect",SELECT_KEY:"select-key",DENSE:"dense",ROOMY:"roomy",FILTER:"filter",FIXED_HEADERS:"fixed-headers",LAYOUT_TYPE:"layout-type",WRAP_CONTENT:"wrap-content",RESIZABLE:"resizable",MIN_RESIZE_WIDTH:"min-resize-width",ALLOW_ROW_CLICK:"allow-row-click",MULTI_COLUMN_SORT:"multi-column-sort",SELECT_CHECKBOX_ALIGNMENT:"select-checkbox-alignment",TOOLTIP_SELECT:"tooltip-select",TOOLTIP_SELECT_ALL:"tooltip-select-all",CHECKBOX_TYPE:"forge-checkbox-type",CUSTOM_CELL_TEMPLATE:"data-cell-template",CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION:"data-cell-template-stop-propagation",SELECT_CHECKBOX:"forge-table-row-select-checkbox"},jx={ROW_CLICK:`${y0}-row-click`,SELECT:`${y0}-select`,SELECT_DOUBLE:`${y0}-select-double`,SELECT_ALL:`${y0}-select-all`,SORT:`${y0}-sort`,FILTER:`${y0}-filter`,INITIALIZED:`${y0}-initialized`,COLUMN_RESIZE:`${y0}-column-resize`},Zx={SELECT_ALL:"select-all",SELECT_ROW:"select-row",DEFAULT_LAYOUT_TYPE:"auto"},Qx={SORT_DOWN:"arrow_downward"},Jx={DEFAULT_FILTER_DEBOUNCE_TIME:750,MIN_RESIZE_WIDTH:100,RESIZE_HOVER_DURATION:150},_={elementName:y0,classes:A6,selectors:$x,attributes:Xx,events:jx,strings:Zx,icons:Qx,numbers:Jx};var Ll=(a=>(a.Left="left",a.Right="right",a.Center="center",a))(Ll||{}),Il=(a=>(a.Ascending="ASC",a.Descending="DESC",a.Unset="UNSET",a))(Il||{}),tb=(i=>(i.InputText="text",i.InputNumber="number",i.Select="select",i.SelectMultiple="select-multiple",i.Date="date",i.DateRange="date-range",i))(tb||{});function B6(r){return r&&typeof r=="object"&&"content"in r}var A1=class r{static createTable(t){r._resetTable(t.tableElement);let e=r._createTableHead(t),a=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(a,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(a)),t.fixedHeaders&&r.setFixedHeaders(t),t.resizable&&r.setResizable(t),t.dense&&r.setDenseState(t.tableElement,t.dense),t.wrapContent&&r.setWrapContentState(t.tableElement,t.wrapContent),t.selectListener&&r._addSelectColumn(e,a,t.selectListener,t.selectAllListener,t.selectAllTemplate,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),(t.resizable||t.columnConfigurations.some(o=>!!o.sortable))&&(r._attachHeadRowMouseDownListener(e,t.headRowMouseDownListener),r._isMac()&&r._attachHeadRowContextMenuListener(e,t.headRowContextMenuListener)),r.setLayoutType(t),r._setTableHead(t.tableElement,e),t.filter&&r.setFilterRow(t),r._setTableBody(t.tableElement,a)}static _setTableHead(t,e){t.tHead?e0(e,t.tHead):t.appendChild(e)}static _setTableBody(t,e){t.tBodies.length?e0(e,t.tBodies[0]):t.appendChild(e)}static recreateTableBody(t){let e=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(e,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(e)),t.selectListener&&(r._createBodySelectColumn(e,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),r._attachRowSelectListeners(e,t.selectListener)),r._setTableBody(t.tableElement,e)}static _resetTable(t){rt(t)}static _createMultisortTooltip(){let t=document.createElement("forge-tooltip");return t.textContent="Ctrl + click to sort multiple columns",t.placement="bottom",t.delay=0,t}static _createTableHead(t){let e=document.createElement("thead"),a=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW],a);let o=!1;for(let n=0;n<t.columnConfigurations.length;n++){let i=t.columnConfigurations[n],l=document.createElement("th");l.scope="col",H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],l);let h;if(i.sortable?(h=document.createElement("button"),h.type="button",h.addEventListener("keydown",t.sortableHeadCellKeydownListener)):h=document.createElement("div"),h.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),t.multiColumnSort){let c=r._createMultisortTooltip();h.appendChild(c)}if(i.align&&r._setCellAlignmentClass(h,i.align),O(i.width)){let c=ql(i.width);c&&(l.style.width=c)}if(t.resizable&&i.resizable!==!1){let c=document.createElement("div");c.classList.add(_.classes.TABLE_RESIZE_HANDLE),l.appendChild(c)}if(O(i.headerCellStyle)&&l2(i.headerCellStyle)&&(Object.assign(l.style,i.headerCellStyle),Object.assign(h.style,i.headerCellStyle)),i.sortable){l.classList.add(_.classes.TABLE_HEAD_CELL_SORTABLE);let c=document.createElement("span");H1([_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,_.classes.TABLE_HEAD_CELL_SORT_ORDER],c);let d=document.createElement(p1.elementName);d.name=_.icons.SORT_DOWN,H1([_.classes.TABLE_HEAD_CELL_SORT_ICON],d),t.multiColumnSort?typeof i.initialSort=="object"&&i.initialSort.sortOrder&&(c.textContent=i.initialSort.sortOrder.toString(),t.columnConfigurations.filter(u=>typeof u.initialSort=="object").length>1&&ge(_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,c),l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,i.initialSort.direction)):t.sortedColumn===n&&!o&&!t.multiColumnSort&&(l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,t.sortDirection),o=!0),h.appendChild(d),h.appendChild(c)}if(typeof i.headerTemplate=="function")Promise.resolve(i.headerTemplate(n,h,i)).then(c=>{if(c){let d=document.createElement("div");H1(_.classes.TABLE_CELL_CONTAINER,d),typeof c=="string"?d.innerHTML=c:r._prepend(c,d),d.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),r._prepend(d,h)}});else{let c=document.createElement("span");c.classList.add(_.classes.TABLE_HEAD_CELL_TEXT),c.textContent=i.header&&typeof i.header=="string"?i.header.trim():"",c.textContent.trim().length===0&&l.setAttribute("aria-hidden","true"),r._prepend(c,h)}l.appendChild(h),a.appendChild(l)}return e}static setSortDirection(t,e,a){let o=r._getHeaderCellByIndex(t,e);t.querySelectorAll("th[aria-sort]").forEach(n=>n.removeAttribute("aria-sort")),r._setColumnSortDirection(o,a)}static _setColumnSortDirection(t,e){t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),!e||e==="DESC"?(t.setAttribute("aria-sort","descending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)):(t.setAttribute("aria-sort","ascending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING))}static _createTableBody(t){let e=document.createElement("tbody");return r._getOrderedRowData(t.columnConfigurations,t.data).forEach((o,n)=>{let i=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW],i),r._populateRowCells(t,i,o,n),typeof t.rowCreatedCallback=="function"&&t.rowCreatedCallback(i,n,m({},t.data[n].data))}),e}static _populateRowCells(t,e,a,o){for(let n=0;n<a.length;n++){let i=t.columnConfigurations[n],l=e.insertCell();if(H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL],l),O(i.width)){let c=ql(i.width);c&&(l.style.width=c)}let h=document.createElement("div");if(h.classList.add(_.classes.TABLE_CELL_CONTAINER),O(i.cellStyle)&&l2(i.cellStyle)&&(Object.assign(l.style,i.cellStyle),Object.assign(h.style,i.cellStyle)),i.template&&typeof i.template=="function"){let c=t.data[o]?t.data[o].data:void 0;Promise.resolve(i.template(o,h,c,n)).then(d=>{let u=B6(d)?d:{content:d,stopClickPropagation:i.stopCellTemplateClickPropagation};u.content&&(typeof u.content=="string"?h.innerHTML=u.content:h.appendChild(u.content),h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),u.stopClickPropagation&&h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION,""))})}else if(i.property){let c=document.createElement("span");c.classList.add(_.classes.TABLE_CELL_CONTAINER_TEXT),h.appendChild(c),i.transform&&typeof i.transform=="function"?Promise.resolve(i.transform(a[n])).then(d=>c.textContent=d):a[n]==null?c.textContent="":c.textContent=a[n].toString()}if(i.align&&r._setCellAlignmentClass(h,i.align),l.appendChild(h),O(i.columnSpan)){if(i.columnSpan==="all"){l.colSpan=a.length-n;break}else if(typeof i.columnSpan=="number"&&i.columnSpan>0){let c=i.columnSpan;i.columnSpan>a.length-n&&(c=a.length),l.colSpan=c,n=n+(c-1)}}typeof t.cellCreatedCallback=="function"&&t.cellCreatedCallback(l,o,n)}}static _setCellAlignmentClass(t,e){switch(e){case"center":t.classList.add(_.classes.TABLE_CELL_CENTER);break;case"right":t.classList.add(_.classes.TABLE_CELL_RIGHT);break}}static _getNonExpandedRows(t){return Array.from(t).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _getExpandedRows(t){return Array.from(t).filter(e=>e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _createColumnDataMap(t,e){return t.map(a=>({config:a,data:e.map(o=>{if(a.property){let n=S5(o.data,a.property);return O(n)?n:null}return null})}))}static _getOrderedRowData(t,e){let a=r._createColumnDataMap(t,e),o=[];for(let n of a)for(let i=0;i<n.data.length;i++)o[i]||(o[i]=[]),o[i].push(n.data[i]);return o}static _attachRowClickListeners(t,e,a){r._getNonExpandedRows(t.rows).forEach(n=>{n.addEventListener("click",e),a&&n.addEventListener("dblclick",a)})}static _addRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.add(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _removeRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.remove(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _attachRowSelectListeners(t,e){r._getNonExpandedRows(t.rows).forEach(o=>r._attachRowSelectListener(o,e))}static _attachRowSelectListener(t,e){let a=r._getCheckboxElement(t);a==null||a.addEventListener("change",e),a==null||a.addEventListener("keydown",e),a==null||a.addEventListener("pointerdown",e)}static _detachRowSelectListeners(t,e){Array.from(t.rows).forEach(a=>{let o=r._getCheckboxElement(a);o==null||o.removeEventListener("change",e),o==null||o.removeEventListener("keydown",e),o==null||o.removeEventListener("pointerdown",e)})}static _detachRowClickListeners(t,e,a){Array.from(t.rows).forEach(o=>{o.removeEventListener("click",e),o.removeEventListener("dblclick",a)})}static _attachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._getCheckboxElement(a);if(!o)throw new Error("Checkbox element not found.");o.addEventListener("change",e)}static _tryAttachSelectAllTemplateListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.addEventListener("change",e)}static _detachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.removeEventListener("change",e)}static _attachHeadRowMouseDownListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("mousedown",e)}static _attachHeadRowContextMenuListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("contextmenu",e)}static _createSelectColumn(t,e,a,o,n,i,l,h,c){t&&r._createHeadSelectColumn(t,a,o,n,i,c),e&&r._createBodySelectColumn(e,i,l,h,c)}static _createHeadSelectColumn(t,e,a,o,n,i){var l;if(Array.from(t.rows).forEach(h=>{let c=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],c),h.insertBefore(c,h.cells.item(0))}),e){let h=(l=t.rows.item(t.rows.length-1))==null?void 0:l.cells.item(0);h.classList.add(_.classes.TABLE_CELL_SELECT),typeof a=="function"?r._renderSelectAllTemplate(a,t).then(()=>{typeof o=="function"&&o()}):h==null||h.appendChild(r._createCheckboxElement(!0,n,null,null,null,i))}}static _createBodySelectColumn(t,e,a,o,n){if(r._getNonExpandedRows(t.rows).forEach((l,h)=>r._addRowSelectColumn(l,e,h,a[h],o,n)),t.rows.length){let l=t.rows.item(0);l&&r._updateExpandedRowColspan(t.rows,l.cells.length)}}static _addRowSelectColumn(t,e,a,o,n,i){let l=t.insertCell(0);H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL,_.classes.TABLE_CELL_SELECT],l),l.appendChild(r._createCheckboxElement(!1,e,a,o,n,i))}static _destroySelectColumn(t,e){let a=r._getNonExpandedRows(e.rows);if(Array.from(t.rows).forEach(o=>o.removeChild(o.cells.item(0))),Array.from(a).forEach(o=>o.removeChild(o.cells.item(0))),e.rows.length){let o=e.rows.item(0);o&&r._updateExpandedRowColspan(e.rows,o.cells.length)}}static _hasSelectColumn(t,e){return[...Array.from(t.rows),...Array.from(e.rows)].some(o=>o.cells.item(0).classList.contains(_.classes.TABLE_CELL_SELECT))}static _createCheckboxElement(t,e,a,o,n,i){let l=document.createElement("div");if(l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER),e)switch(e){case"center":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER);break;case"left":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT);break;case"right":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT);break}let h=document.createElement(B1.elementName);h.setAttribute(_.attributes.SELECT_CHECKBOX,""),l.appendChild(h);let c=d=>{let u=document.createElement("forge-tooltip");return u.placement="left",u.type="label",u.textContent=d,u};if(t)if(typeof i=="string"&&i.length){let u=c(i);l.appendChild(u)}else h.setAttribute("aria-label","Select all rows");else{let d=n||"";if(o&&typeof n=="function"&&(d=n.call(null,a,o.data)),typeof d=="string"&&d.length){let u=c(d);l.appendChild(u)}else h.setAttribute("aria-label","Select row")}return l}static _getCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT):null}static _tryGetSelectAllCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT)||e.querySelector(_.selectors.SELECT_ALL_TEMPLATE_CHECKBOX_INPUT):null}static _setSelectedCheckboxState(t,e){t&&(t.checked=e)}static _setIndeterminateCheckboxState(t,e){t&&(t.indeterminate=e)}static _setRowSelectedState(t,e){e?t.classList.contains(_.classes.TABLE_BODY_ROW_SELECTED)||t.classList.add(_.classes.TABLE_BODY_ROW_SELECTED):t.classList.remove(_.classes.TABLE_BODY_ROW_SELECTED)}static _updateExpandedRowColspan(t,e){r._getExpandedRows(t).forEach(o=>{let n=o.cells.item(0);n&&(n.colSpan=e)})}static updateSelectedState(t,e){r._setRowSelectedState(t,e);let a=r._getCheckboxElement(t);a&&r._setSelectedCheckboxState(a,e)}static getRowByIndex(t,e){return r._getNonExpandedRows(t.tBodies[0].rows)[e]}static updateSelectAllState(t,e,a){if(!t.tHead)return;let o=t.tHead.rows[t.tHead.rows.length-1],n=r._tryGetSelectAllCheckboxElement(o);n&&(r._setSelectedCheckboxState(n,e),r._setIndeterminateCheckboxState(n,!!a))}static setSelectedRows(t,e,a,o,n=!1){if(!t.tBodies.length)return;n||r.clearSelectedRows(t);let i=t.tBodies[0].rows,l=0;o.length&&Array.from(i).forEach((h,c)=>{let d=a[c];if(Fr(o,pa(e,d))){r._setRowSelectedState(h,!0);let M=r._getCheckboxElement(h);M&&r._setSelectedCheckboxState(M,!0),l++}}),r.updateSelectAllState(t,l>0&&i.length===l)}static clearSelectedRows(t){if(!t.tBodies.length)return;r._getNonExpandedRows(t.tBodies[0].rows).forEach(a=>{r._setRowSelectedState(a,!1);let o=r._getCheckboxElement(a);o&&r._setSelectedCheckboxState(o,!1)})}static setSortedColumn(t,e,a){let o=r._getHeaderCellByIndex(t,e);r._getSortIconElementFromHeaderCell(o).classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(o,a)}static setMultiSortColumnSortNumber(t,e,a,o){let l=r._getHeaderCellByIndex(t,a).querySelector(`.${_.classes.TABLE_HEAD_CELL_CONTAINER}`).querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ORDER}`);l&&(ft(l,typeof o!="number"||!e,_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN),o&&(l.textContent=o.toString()))}static removeColumnSort(t,e){let a=r._getHeaderCellByIndex(t,e);a.removeAttribute("aria-sort"),a.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&a.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),a.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&a.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING);let o=r._getSortIconElementFromHeaderCell(a);o&&o.classList.contains(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)&&o.classList.remove(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)}static _getHeaderCellByIndex(t,e){if(!t.tHead)throw new Error("Table head element cannot be null.");return t.tHead.rows.item(0).cells.item(e)}static _getSortIconElementFromHeaderCell(t){return t.querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ICON}`)}static setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){let d=t.tHead,u=t.tBodies[0];!d||!u||(e?r._addSelectColumn(d,u,a,o,n,i,l,h,c):r._hasSelectColumn(d,u)&&(a&&r._detachRowSelectListeners(u,a),o&&r._detachSelectAllListener(d,o),r._destroySelectColumn(d,u)))}static _addSelectColumn(t,e,a,o,n,i,l,h,c){r._createSelectColumn(t,e,!!o,n,()=>{o&&r._tryAttachSelectAllTemplateListener(t,o)},i,l,h,c),a&&r._attachRowSelectListeners(e,a),o&&!n&&r._tryAttachSelectAllTemplateListener(t,o)}static setDenseState(t,e){t.classList.contains(_.classes.TABLE_DENSE)&&t.classList.remove(_.classes.TABLE_DENSE),e&&t.classList.add(_.classes.TABLE_DENSE)}static setRoomyState(t,e){t.classList.contains(_.classes.TABLE_ROOMY)&&t.classList.remove(_.classes.TABLE_ROOMY),e&&t.classList.add(_.classes.TABLE_ROOMY)}static setResizable(t){let e=t.tableElement.tHead;t.resizable?(t.tableElement.classList.add(_.classes.TABLE_RESIZABLE),r._addResizeHandles(e,t)):(t.tableElement.classList.remove(_.classes.TABLE_RESIZABLE),r._removeResizeHandles(e,t))}static _addResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=o.indexOf(n);if(e.columnConfigurations[i].resizable!==!1){let h=document.createElement("div");h.classList.add(_.classes.TABLE_RESIZE_HANDLE),n.appendChild(h)}}}}static _removeResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=document.querySelector(`.${_.classes.TABLE_RESIZE_HANDLE}`);i&&n.removeChild(i)}}}static setWrapContentState(t,e){e?t.classList.remove(_.classes.TABLE_NO_WRAP_CONTENT):t.classList.add(_.classes.TABLE_NO_WRAP_CONTENT)}static setSelectAllVisibility(t,e,a,o,n,i){let l=t.tHead;if(!l)return;!e&&a&&r._detachSelectAllListener(l,a);let c=l.rows[l.rows.length-1].cells.item(0);e?c.childElementCount||(c.classList.add(_.classes.TABLE_CELL_SELECT),o?r._renderSelectAllTemplate(o,l).then(()=>{a&&r._tryAttachSelectAllTemplateListener(l,a)}):c.appendChild(r._createCheckboxElement(!0,n||null,null,null,null,i)),a&&!o&&r._attachSelectAllListener(l,a)):(a&&r._detachSelectAllListener(l,a),rt(c))}static setFilterRow(t){if(!t.tableElement.tHead)return;let e=r._getFilterRowElement(t.tableElement.tHead),a;if(t.filter?t.tableElement.classList.add(_.classes.TABLE_FILTER_VISIBLE):t.tableElement.classList.remove(_.classes.TABLE_FILTER_VISIBLE),t.filter&&!e){if(t.columnConfigurations.every(n=>!n.filter))return;t.selectListener&&t.selectAllListener&&(a=t.tableElement.tHead.rows[t.tableElement.tHead.rows.length-1].cells.item(0));let o=r._createFilterRowElement(t);o&&a&&Array.from(a.children).forEach(n=>{var i;(i=o.cells.item(0))==null||i.appendChild(n)})}else if(!t.filter&&e){if(t.selectListener&&t.selectAllListener){a=e.cells.item(0);let o=Array.from(t.tableElement.tHead.rows).indexOf(e)-1,n=t.tableElement.tHead.rows.item(o);n&&Array.from(a.children).forEach(i=>{var l;(l=n.cells.item(0))==null||l.appendChild(i)})}Oe(e)}}static _createFilterRowElement(t){if(!t.tableElement.tHead)throw new Error("Table head element cannot be null.");let e=t.tableElement.tHead.insertRow();if(H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW_FILTER],e),t.selectListener){let a=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],a),e.insertBefore(a,e.cells[0]),a.classList.add(_.classes.TABLE_CELL_SELECT)}return t.columnConfigurations.forEach((a,o)=>{let n=document.createElement("th");if(H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],n),a.filter&&O(a.filterDelegate)){let i=document.createElement("div");i.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),a.align&&r._setCellAlignmentClass(i,a.align);let l=r._createFilterElement(a,o,t.filterListener);i.appendChild(l),n.appendChild(i)}e.appendChild(n)}),e}static _createFilterElement(t,e,a){let o;if(t0(t.filterDelegate))o=t.filterDelegate();else if(t.filterDelegate instanceof at||t.filterDelegate instanceof j1)o=t.filterDelegate;else throw new Error("Invalid filter delegate.");if(a&&o instanceof at&&t0(o.onChange))if(!O(t.filterDebounceTime)||kt(t.filterDebounceTime)){let n=O(t.filterDebounceTime)?t.filterDebounceTime:_.numbers.DEFAULT_FILTER_DEBOUNCE_TIME;o.onChange(Se(i=>a(i,e),n))}else o.onChange(n=>a(n,e));return o.element}static _getFilterRowElement(t){if(t)return Array.from(t.rows).find(e=>e.classList.contains(_.classes.TABLE_HEAD_ROW_FILTER))}static async expandRow(t,e,a){let o=t.tableElement.tBodies[0],i=r._getNonExpandedRows(o.rows)[e];i.classList.add(_.classes.TABLE_ROW_EXPANDED);let l=Array.from(o.rows).indexOf(i),h=o.insertRow(l+1);H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW,_.classes.TABLE_ROW_EXPANDABLE_CONTENT],h);let c=h.insertCell();c.setAttribute("colspan",i.cells.length.toString()),c.classList.add(_.classes.TABLE_ROW_EXPANDABLE_CONTENT_CELL);let d=document.createElement("div"),u=document.createElement(D1.elementName);u.appendChild(d),c.appendChild(u);let M=a;if(t0(a)){let f=t.data[e]?t.data[e].data:void 0,C=a(e,d,f);try{let A=await Promise.resolve(C);M=B6(A)?A.content:A}catch(A){console.error("Failed to load row template "+A.message),M=""}}M&&r._setRowTemplate(d,M),window.requestAnimationFrame(()=>u.open=!0)}static _setRowTemplate(t,e){R2(e)?t.innerHTML=e:t.appendChild(e)}static collapseRow(t,e){if(!t.tableElement||!t.tableElement.tBodies.length||!t.tableElement.tBodies[0].rows.length)return Promise.resolve();let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e],i=Array.from(a.rows).indexOf(n);if(n&&n.classList.contains(_.classes.TABLE_ROW_EXPANDED)){let l=a.rows[i+1],h=l.querySelector(D1.elementName);if(h&&h.open){let c=new Promise(d=>{h.addEventListener(D1.events.ANIMATION_COMPLETE,()=>{n.classList.remove(_.classes.TABLE_ROW_EXPANDED),Oe(l),d()},{once:!0})});return h.open=!1,c}}return Promise.resolve()}static isRowExpanded(t,e){let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e];return n&&n.classList.contains(_.classes.TABLE_ROW_EXPANDED)}static setFixedHeaders(t){t.fixedHeaders?t.tableElement.classList.add(_.classes.TABLE_FIXED):t.tableElement.classList.remove(_.classes.TABLE_FIXED)}static setLayoutType(t){t.layoutType==="fixed"?t.tableElement.classList.add(_.classes.TABLE_LAYOUT_FIXED):t.tableElement.classList.remove(_.classes.TABLE_LAYOUT_FIXED)}static normalizeColumnWidths(t){let e=t.tableElement;if(e.tHead&&e.tHead.rows.length){let a=Array.from(e.tHead.rows[0].cells);for(let o of a){let n=getComputedStyle(o).width;o.style.width&&o.style.width!==n&&(o.style.width=n)}}}static setColumnResizeIndicatorVisibility(t,e,a){let o=t.tableElement;if(o.tHead&&o.tHead.rows.length){let n=Array.from(o.tHead.rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}if(o.tBodies.length){let n=Array.from(o.tBodies[0].rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}}static setRowClickListeners(t,e,a,o){let n=t.tBodies[0];n&&(e?r._attachRowClickListeners(n,a,o):r._detachRowClickListeners(n,a,o))}static setRowClickAttributes(t,e){let a=t.tBodies[0];a&&(e?r._addRowClickAttributes(a):r._removeRowClickAttributes(a))}static getOwnerDocument(t){return t.ownerDocument||document}static _prepend(t,e){let a=e.childNodes.item(0);a?e.insertBefore(t,a):e.appendChild(t)}static _isMac(){return!!(navigator&&navigator.platform&&navigator.platform.substr(0,3)==="Mac")}static _renderSelectAllTemplate(t,e){return Promise.resolve(t()).then(a=>{let o=e.rows.item(e.rows.length-1);if(!o)return;let n=o.cells.item(0);a&&n&&(typeof a=="string"?n.innerHTML=a:a instanceof HTMLElement&&n.appendChild(a),n.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""))})}};var Vl=class extends I{constructor(t){super(t)}initialize(){this._tableElement||(this._tableElement=document.createElement("table"),this._tableElement.classList.add(_.classes.TABLE),this._component.children.length&&rt(this._component),this._component.appendChild(this._tableElement))}getTableElement(){return this._tableElement||this.initialize(),this._tableElement}createTable(t){return A1.createTable(t)}recreateTableBody(t){A1.recreateTableBody(t)}setSelectedRows(t,e,a,o,n=!1){A1.setSelectedRows(t,e,a,o,n)}clearSelectedRows(t){A1.clearSelectedRows(t)}updateSelectedState(t,e){A1.updateSelectedState(t,e)}updateSelectAllState(t,e,a){A1.updateSelectAllState(t,e,a)}setSortedColumn(t,e,a){A1.setSortedColumn(t,e,a)}removeColumnSort(t,e){A1.removeColumnSort(t,e)}setSortDirection(t,e,a){A1.setSortDirection(t,e,a)}setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){A1.setSelectColumnVisibility(t,e,a,o||null,n||null,i||null,l||[],h||null,c||null)}setDense(t,e){A1.setDenseState(t,e)}setRoomy(t,e){A1.setRoomyState(t,e)}setResizable(t){A1.setResizable(t)}setSelectAllVisibility(t,e,a,o,n,i=null){A1.setSelectAllVisibility(t,e,a,o,n||null,i||null)}setFilterRow(t){A1.setFilterRow(t)}expandRow(t,e,a){return A1.expandRow(t,e,a)}collapseRow(t,e){return A1.collapseRow(t,e)}isRowExpanded(t,e){return A1.isRowExpanded(t,e)}setFixedHeaders(t){A1.setFixedHeaders(t)}setTableLayoutType(t){A1.setLayoutType(t)}setWrapContentState(t){A1.setWrapContentState(t.tableElement,t.wrapContent)}addDocumentListener(t,e){A1.getOwnerDocument(this._component).addEventListener(t,e)}removeDocumentListener(t,e){A1.getOwnerDocument(this._component).removeEventListener(t,e)}normalizeColumnWidths(t){A1.normalizeColumnWidths(t)}setResizeColumnVisibility(t,e,a){A1.setColumnResizeIndicatorVisibility(t,e,a)}addTableClass(t){H1(t,this._tableElement)}removeTableClass(t){ge(t,this._tableElement)}setRowClickListeners(t,e,a,o){A1.setRowClickListeners(t,e,a,o)}setRowClickAttributes(t,e){A1.setRowClickAttributes(t,e)}};var El=class{constructor(){this._sortedColumns=[]}get sortedColumns(){return[...this._sortedColumns.map(t=>m({},t))]}addSortColumn(t){this._sortedColumns.push(m({},t)),this._updateSortNumbers()}updateSortColumn(t){let e=this._sortedColumns.find(a=>a.columnIndex===t.columnIndex);if(e)switch(e.direction){case"ASC":this.removeSortColumn(t);break;case"DESC":e.direction="ASC";break;case"UNSET":e.direction="DESC";break}}setSortColumns(t){this._sortedColumns=[...t.map(e=>m({},e))]}removeSortColumn(t){typeof t=="number"?this._sortedColumns.splice(t,1):this._sortedColumns.splice(this._sortedColumns.indexOf(t),1),this._updateSortNumbers()}isSortColumn(t){return typeof t=="number"?this._sortedColumns.some(e=>e.columnIndex===t):this._sortedColumns.includes(t)}clearMultiSort(){this._sortedColumns=[]}getSortColumn(t){return this._sortedColumns.find(e=>e.columnIndex===t)}_updateSortNumbers(){this._sortedColumns.every(t=>typeof t.sortOrder=="number")&&this._sortedColumns.sort((t,e)=>t.sortOrder-e.sortOrder),this._sortedColumns.forEach((t,e)=>t.sortOrder=e+1)}};var Cl=class{constructor(t,e=!1){this.data=t;this.selected=e}};var zl=class{constructor(t){this._adapter=t;this._tableRows=[];this._data=[];this._columnConfigurations=[];this._select=!1;this._multiselect=!0;this._dense=!1;this._roomy=!1;this._filter=!1;this._fixedHeaders=!1;this._layoutType=_.strings.DEFAULT_LAYOUT_TYPE;this._wrapContent=!0;this._resizable=!1;this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH;this._multiColumnSort=!1;this._selectCheckboxAlignment="center";this._isAllSelected=!1;this._sortedColumnIndex=-1;this._rendered=!1;this._allowRowClick=!1;this._multiSortManager=new El;this._rowClickListener=e=>this._onRowClick(e),this._rowDoubleClickListener=e=>this._onRowDoubleClick(e),this._selectRowListener=e=>this._onRowSelected(e),this._selectAllListener=e=>this._onSelectAll(e),this._sortableHeadCellKeydownListener=e=>this._onSortableHeadCellKeydown(e),this._headRowMouseDownListener=e=>this._onHeadRowMouseDown(e),this._headRowContextMenuListener=e=>this._onHeadRowContextMenu(e),this._documentMouseMoveListener=e=>this._onMouseMove(e),this._documentMouseUpListener=e=>this._onMouseUp(e),this._filterListener=(e,a)=>this._onFilter(e,a),this._selectionManager=new Go(this._selectKey),this._hiddenColumnManager=new Go}initialize(){this._adapter.initialize(),this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString()),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()),this._adapter.emitHostEvent(_.events.INITIALIZED,void 0,!1)}destroy(){this._resizeDescriptor=void 0,this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener)}set data(t){Array.isArray(t)&&t.length>0?l2(t[0])?this._data=t.map(e=>m({},e)):this._data=[...t]:this._data=[],this._tableRows=this._data.map(e=>new Cl(e,this._selectionManager.exists(e))),this._renderBody()}get data(){return this._data.map(t=>m({},t))}set columnConfigurations(t){this._columnConfigurations=t.map(e=>m({},e)),this._hiddenColumnManager.clear(),this._columnConfigurations.forEach(e=>{e.hidden&&this._hiddenColumnManager.add(e)}),this._refreshTableSort(),this.render()}get columnConfigurations(){return this._columnConfigurations.map(t=>m({},t))}get _visibleColumnConfigurations(){return this._columnConfigurations.filter(t=>!this._hiddenColumnManager.exists(t))}get _tableConfiguration(){return{tableElement:this._adapter.getTableElement(),columnConfigurations:this._visibleColumnConfigurations,data:this._tableRows,clickListener:this._allowRowClick?this._rowClickListener:null,doubleClickListener:this._allowRowClick?this._rowDoubleClickListener:null,selectListener:this._select?this._selectRowListener:null,selectAllListener:this._multiselect?this._selectAllListener:null,sortableHeadCellKeydownListener:this._sortableHeadCellKeydownListener,headRowMouseDownListener:this._headRowMouseDownListener,headRowContextMenuListener:this._headRowContextMenuListener,filterListener:this._filter?this._filterListener:null,sortDirection:this._sortDirection,sortedColumn:this._sortedColumnIndex,multiColumnSort:this._multiColumnSort,filter:this._filter,wrapContent:this._wrapContent,fixedHeaders:this._fixedHeaders,layoutType:this._layoutType,dense:this._dense,resizable:this._resizable,rowCreatedCallback:this._rowCreatedCallback,cellCreatedCallback:this._cellCreatedCallback,selectAllTemplate:this._selectAllTemplate,selectCheckboxAlignment:this._selectCheckboxAlignment,tooltipSelect:this._tooltipSelect,tooltipSelectAll:this._tooltipSelectAll}}set select(t){this._select!==t&&(this._select=t,this._adapter.setSelectColumnVisibility(this._adapter.getTableElement(),this._select,this._selectRowListener,this._multiselect?this._selectAllListener:void 0,this._multiselect?this._selectAllTemplate:null,this._selectCheckboxAlignment,this._tableRows,this._tooltipSelect,this._tooltipSelectAll),this._updateSelections(!0),this._select?this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()):this._adapter.removeHostAttribute(_.attributes.SELECT))}get select(){return this._select}set multiselect(t){this._multiselect!==t&&(this._multiselect=t,this._select&&(this._adapter.setSelectAllVisibility(this._adapter.getTableElement(),this._multiselect,this._multiselect?this._selectAllListener:null,this._multiselect?this.selectAllTemplate:null,this._selectCheckboxAlignment,this._tooltipSelectAll),this._updateSelections(!0)),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()))}get multiselect(){return this._multiselect}get selectKey(){return Array.isArray(this._selectKey)?[...this._selectKey]:this._selectKey}set selectKey(t){this._originalSelectKey!==t&&(Array.isArray(t)?(this._originalSelectKey=[...t],this._selectKey=[...t]):(this._originalSelectKey=t,this._selectKey=[t]),this._selectionManager.setKey(this._selectKey),this._updateSelections(!1))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._adapter.getTableElement(),this._dense),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()))}get roomy(){return this._roomy}set roomy(t){t!==this._roomy&&(this._roomy=t,this._applyRoomy())}set filter(t){this._filter!==t&&(this._filter=t,this._adapter.setFilterRow(this._tableConfiguration),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()))}get filter(){return this._filter}set fixedHeaders(t){this._fixedHeaders!==t&&(this._fixedHeaders=t,this._adapter.setFixedHeaders(this._tableConfiguration))}get fixedHeaders(){return this._fixedHeaders}get layoutType(){return this._layoutType}set layoutType(t){this._layoutType!==t&&(this._layoutType=t,this._adapter.setTableLayoutType(this._tableConfiguration))}get wrapContent(){return this._wrapContent}set wrapContent(t){this._wrapContent!==t&&(this._wrapContent=t,this._adapter.setWrapContentState(this._tableConfiguration))}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._adapter.setResizable(this._tableConfiguration))}get minResizeWidth(){return this._minResizeWidth}set minResizeWidth(t){this._minResizeWidth!==t&&(this._minResizeWidth=t,kt(this._minResizeWidth)?this._minResizeWidth<0&&(this._minResizeWidth=0):this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH)}get allowRowClick(){return this._allowRowClick}set allowRowClick(t){this._allowRowClick!==t&&(this._allowRowClick=t,this._rendered&&(this._adapter.setRowClickListeners(this._adapter.getTableElement(),this._allowRowClick,this._rowClickListener,this._rowDoubleClickListener),this._adapter.setRowClickAttributes(this._adapter.getTableElement(),this._allowRowClick)))}get multiColumnSort(){return this._multiColumnSort}set multiColumnSort(t){t!==this._multiColumnSort&&(this._multiColumnSort=t,this._refreshTableSort(),this.render())}get selectCheckboxAlignment(){return this._selectCheckboxAlignment}set selectCheckboxAlignment(t){t!==this._selectCheckboxAlignment&&(this._selectCheckboxAlignment=t,this._adapter.setHostAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT,t),this.render())}get tooltipSelect(){return this._tooltipSelect}set tooltipSelect(t){t!==this._tooltipSelect&&(this._tooltipSelect=t,typeof t=="string"&&this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT,t),this.render())}get tooltipSelectAll(){return this._tooltipSelectAll}set tooltipSelectAll(t){t!==this._tooltipSelectAll&&(this._tooltipSelectAll=t,this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT_ALL,t),this.render())}get selectAllTemplate(){return this._selectAllTemplate}set selectAllTemplate(t){t!==this._selectAllTemplate&&(this._selectAllTemplate=t,this.render())}get rowCreated(){return this._rowCreatedCallback}set rowCreated(t){this._rowCreatedCallback=t}get cellCreated(){return this._cellCreatedCallback}set cellCreated(t){this._cellCreatedCallback=t}isRowSelected(t){let e=pa(Array.isArray(this._selectKey)?this._selectKey:[this._selectKey],t);return this.selectKey?!!this._selectionManager.getItems().find(a=>Ur(a,e)):this._selectionManager.exists(t)}getSelectedRows(){return this._selectionManager.getItems()}selectRows(t,e){if(!this._selectKey)throw new Error("You must set a selectKey to select rows.");(!this._multiselect||e)&&this.clearSelections(),t&&t.length&&(this._selectionManager.add(t),this._updateSelections(!e))}deselectRows(t){t&&t.length&&(this._selectionManager.remove(t),this._updateSelections(!1))}clearSelections(){let t=this._adapter.getTableElement();this._selectionManager.clear(),this._tableRows.forEach(e=>e.selected=!1),this._isAllSelected=!1,this._adapter.clearSelectedRows(t),this._select&&this._multiselect&&this._adapter.updateSelectAllState(t,!1)}hideColumn(t){let e=this._columnConfigurations[t];this._sortedColumnIndex===t&&(this._sortedColumnIndex=-1),this._hiddenColumnManager.exists(e)||(this._hiddenColumnManager.add(e),this.render())}showColumn(t){let e=this._columnConfigurations[t];this._hiddenColumnManager.exists(e)&&(this._hiddenColumnManager.remove(e),this.render())}isColumnHidden(t){let e=this._columnConfigurations[t];return!!e&&this._hiddenColumnManager.exists(e)}render(){this._adapter.createTable(this._tableConfiguration),this._renderSelections(),this._rendered=!0}_renderBody(){this._rendered&&(this._adapter.recreateTableBody(this._tableConfiguration),this._renderSelections())}_renderSelections(){this.select&&(this._isAllSelected=this._getSelectAllState(),this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)));let t=this._selectionManager.getItems();t.length&&this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,t,!1)}expandRow(t,e){if(!this._rendered)throw new Error("Cannot expand a row before the table has rendered.");if(t<0||t>this._tableRows.length)throw new Error(`Invalid row index: ${t}.`);return this._adapter.expandRow(this._tableConfiguration,t,e)}collapseRow(t){return!this._rendered||t<0||t>this._tableRows.length?Promise.resolve():this._adapter.collapseRow(this._tableConfiguration,t)}isRowExpanded(t){return this._adapter.isRowExpanded(this._tableConfiguration,t)}selectRowsByIndex(t,e){let a=t.map(o=>this._data[o]).filter(o=>!!o);this.selectRows(a,!e)}deselectRowsByIndex(t){let e=t.map(a=>this._data[a]).filter(a=>!!a);this.deselectRows(e)}_getSelectAllState(){return this._tableRows.length>0&&this._tableRows.every(t=>t.selected)}_updateSelections(t){this._tableRows.forEach(a=>a.selected=this._selectionManager.exists(a.data));let e=this._getSelectAllState();this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,this._selectionManager.getItems(),t),(e!==this._isAllSelected||this._isIndeterminate(e))&&(this._isAllSelected=e,this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)))}_onRowClick(t){if(t.stopImmediatePropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let o=Et(t).filter(c=>c.nodeType===1).find(c=>c.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE));if(o&&o.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION))return;let{index:i,data:l}=this._getSelectedRowFromEvent(t),h={index:i,data:l};this._adapter.emitHostEvent(_.events.ROW_CLICK,h,!0,!1)}_onRowDoubleClick(t){if(t.stopPropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let e=this._getSelectedRowFromEvent(t),a={index:e.index,data:e.data};this._adapter.emitHostEvent(_.events.SELECT_DOUBLE,a,!0,!1)}_onRowSelected(t){var i;if(t.type==="change"){t.preventDefault();return}if(t.type==="keydown"&&t.key!==" ")return;let e=this._getSelectedRowFromEvent(t);this._multiselect||this._tableRows.filter(h=>h.selected).forEach(h=>{Ur(h.data,pa(this._selectKey,e.data))||this.deselectRows([h.data])});let a=!this._selectionManager.exists(e.data);this._adapter.updateSelectedState(e.rowElement,a),a?this._selectionManager.add(e.data):this._selectionManager.remove(e.data),this._tableRows[e.index].selected=a;let o=[e.index],n=!1;if(this._multiselect){if(t.shiftKey&&this._previouslyClickedRow&&((i=document.getSelection())==null||i.removeAllRanges(),o=this._shiftSelectRows(e),o.includes(this._previouslyClickedRow.index))){let h=o.indexOf(this._previouslyClickedRow.index);o.splice(h,1)}n=this._getSelectAllState(),this._adapter.updateSelectAllState(this._adapter.getTableElement(),n,this._isIndeterminate(n))}for(let l of o){let h=this._tableRows[l].data,d={selected:this._selectionManager.exists(h),index:l,data:h};this._adapter.emitHostEvent(_.events.SELECT,d,!0,!1)}if(this._isAllSelected!==n){this._isAllSelected=n;let l={status:this._isAllSelected,count:this._tableRows.filter(h=>h.selected).length,data:[...this._data],targetType:"row"};this._adapter.emitHostEvent(_.events.SELECT_ALL,l,!0,!1)}this._previouslyClickedRow=m({},e)}_getSelectedRowFromEvent(t){let a=Et(t).find(l=>l.tagName==="TR"),o=a.parentElement,n=this._getNonExpandedRows(o).findIndex(l=>l===a),i=this._tableRows[n].data;return{rowElement:a,index:n,data:i}}_getNonExpandedRows(t){return Array.from(t.rows).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}_onSelectAll(t){t.stopPropagation(),this._isAllSelected=!this._isAllSelected;let e=this._adapter.getTableElement();this._adapter.updateSelectAllState(e,this._isAllSelected),this._tableRows.forEach((o,n)=>{o.selected=this._isAllSelected,this._isAllSelected?this._selectionManager.add(o.data):this._selectionManager.remove(o.data);let i=A1.getRowByIndex(e,n);i&&this._adapter.updateSelectedState(i,this._isAllSelected)});let a={status:this._isAllSelected,count:this._tableRows.filter(o=>o.selected).length,data:[...this._data],targetType:"select-all"};this._adapter.emitHostEvent(_.events.SELECT_ALL,a,!0,!1)}_onHeadRowContextMenu(t){t.ctrlKey&&t.preventDefault()}_onHeadRowMouseDown(t){if(t.button!==0)return;let e=Et(t),a=t.target,o=e.find(l=>l.tagName==="TR"),n=e.find(l=>l.tagName==="TH"),i=Array.from(o.cells).findIndex(l=>l===n);this._headCellMouseDownIndex=i,a!==n&&a.classList.contains(_.classes.TABLE_RESIZE_HANDLE)&&(this._resizeDescriptor={element:n,startWidth:n.offsetWidth,startX:t.pageX,width:n.offsetWidth,index:this._select?i-1:i},this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.setResizeColumnVisibility(this._tableConfiguration,i,!0)),this._adapter.addDocumentListener("mouseup",this._documentMouseUpListener)}_onMouseMove(t){if(this._resizeDescriptor){let e=this._resizeDescriptor.startWidth+(t.pageX-this._resizeDescriptor.startX);e<this._minResizeWidth&&(e=this._minResizeWidth),this._resizeDescriptor.width=e,this._resizeDescriptor.element.style.width=`${e}px`,this._adapter.addTableClass(_.classes.TABLE_RESIZING)}}_onMouseUp(t){if(this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener),this._adapter.removeTableClass(_.classes.TABLE_RESIZING),this._headCellMouseDownIndex!==void 0){if(this._resizeDescriptor){this._adapter.normalizeColumnWidths(this._tableConfiguration),this._adapter.setResizeColumnVisibility(this._tableConfiguration,this._headCellMouseDownIndex,!1);let e={index:this._resizeDescriptor.index,width:this._resizeDescriptor.width};this._adapter.emitHostEvent(_.events.COLUMN_RESIZE,e),this._resizeDescriptor=void 0}else this._tableConfiguration.tableElement.tHead.contains(t.target)&&(this._multiColumnSort?this._onMultiSort(this._headCellMouseDownIndex,t.ctrlKey):this._onSort(this._headCellMouseDownIndex));this._headCellMouseDownIndex=void 0}}_onSortableHeadCellKeydown(t){if(t.key===" "||t.key==="Enter"){let e=Et(t),a=e.find(i=>i.tagName==="TR"),o=e.find(i=>i.tagName==="TH"),n=Array.from(a.cells).findIndex(i=>i===o);this._onSort(n)}}_onSort(t){let e=this._select?t-1:t,a=e>=0?this._visibleColumnConfigurations[e]:null;if(!a||!a.sortable)return;let o="ASC",n=e===this._sortedColumnIndex,i=this._sortDirection==="ASC"||this._sortDirection===void 0,l=n&&this._sortDirection==="DESC";n&&i&&(o="DESC"),l&&!a.preventUnsort&&(o="UNSET");let h={direction:o,columnIndex:e};if(this._adapter.emitHostEvent(_.events.SORT,h,!0,!0)){if(n&&this._sortDirection==="DESC"&&!a.preventUnsort){this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=-1;return}this._sortDirection=o,e===this._sortedColumnIndex?this._adapter.setSortDirection(this._adapter.getTableElement(),t,this._sortDirection):(this._sortedColumnIndex>=0&&this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=e,this._adapter.setSortedColumn(this._adapter.getTableElement(),t,this._sortDirection))}}_onMultiSort(t,e){let a=this._select?t-1:t,o=a>=0?this._visibleColumnConfigurations[a]:null;if(!o||!o.sortable)return;let n=this._multiSortManager.sortedColumns,i=this._multiSortManager.getSortColumn(a);i?this._multiSortManager.updateSortColumn(i):e?this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}):(this._multiSortManager.clearMultiSort(),this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}));let l=this._multiSortManager.sortedColumns.map(d=>m({},d));if(!this._adapter.emitHostEvent(_.events.SORT,l,!0,!0)){this._multiSortManager.setSortColumns(n);return}let c=this._multiSortManager.sortedColumns.length>1;for(let d=0;d<this._visibleColumnConfigurations.length;d++){let u=this._select?d+1:d;if(!this._multiSortManager.isSortColumn(d))this._adapter.removeColumnSort(this._adapter.getTableElement(),u),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,null);else{let M=this._multiSortManager.getSortColumn(d);M&&(this._adapter.setSortedColumn(this._adapter.getTableElement(),u,M.direction),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,M.sortOrder||null))}}}_onFilter(t,e){let a={value:t,columnIndex:e};this._adapter.emitHostEvent(_.events.FILTER,a,!0,!1)}_shiftSelectRows(t){let e=[];if(this._previouslyClickedRow){let a=this._previouslyClickedRow.index,o=t.index,n=o>=a?a:o,i=o>=a?o:a;i+=i>n?1:0,n+=n>i?1:0;let l=d=>this.selectRows(d,!1),h=this._tableRows.find(d=>d.selected&&d.data===t.data),c=this._tableRows.find(d=>{var u;return d.data===((u=this._previouslyClickedRow)==null?void 0:u.data)&&!d.selected});(!h||c)&&(l=d=>this.deselectRows(d));for(let d=n;d<i;d++)e.push(d);l(this.data.filter((d,u)=>e.includes(u)))}return e}_isIndeterminate(t){return!t&&this.getSelectedRows().length>0&&this._data.length!==this.getSelectedRows().length}_applyRoomy(){this._adapter.setRoomy(this._adapter.getTableElement(),this._roomy),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString())}_refreshTableSort(){if(this._sortedColumnIndex=this._visibleColumnConfigurations.findIndex(t=>t.initialSort),this._sortedColumnIndex>=0&&this._sortDirection===void 0){let t=this._visibleColumnConfigurations[this._sortedColumnIndex];t.initialSort===!0&&t.sortDirection?this._sortDirection=t.sortDirection:typeof t.initialSort=="object"&&t.initialSort.direction&&(this._sortDirection=t.initialSort.direction)}if(this._multiColumnSort){let t=[];this._visibleColumnConfigurations.forEach((e,a)=>{typeof e.initialSort=="object"&&t.push({columnIndex:a,direction:e.initialSort.direction,sortOrder:e.initialSort.sortOrder,propertyName:e.property})}),this._multiSortManager.setSortColumns(t)}}};var X1=class extends H{static get observedAttributes(){return[_.attributes.SELECT,_.attributes.MULTISELECT,_.attributes.SELECT_KEY,_.attributes.DENSE,_.attributes.ROOMY,_.attributes.FILTER,_.attributes.FIXED_HEADERS,_.attributes.LAYOUT_TYPE,_.attributes.WRAP_CONTENT,_.attributes.RESIZABLE,_.attributes.MIN_RESIZE_WIDTH,_.attributes.ALLOW_ROW_CLICK,_.attributes.MULTI_COLUMN_SORT,_.attributes.SELECT_CHECKBOX_ALIGNMENT,_.attributes.TOOLTIP_SELECT,_.attributes.TOOLTIP_SELECT_ALL]}constructor(){super(),j.define(r3),this._core=new zl(new Vl(this))}initializedCallback(){this._core.initialize()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case _.attributes.SELECT:this.select=p(a);break;case _.attributes.MULTISELECT:this.multiselect=p(a);break;case _.attributes.SELECT_KEY:this.selectKey=a;break;case _.attributes.DENSE:this.dense=p(a);break;case _.attributes.ROOMY:this.roomy=p(a);break;case _.attributes.FILTER:this.filter=p(a);break;case _.attributes.FIXED_HEADERS:this.fixedHeaders=p(a);break;case _.attributes.LAYOUT_TYPE:this.layoutType=a;break;case _.attributes.WRAP_CONTENT:this.wrapContent=p(a);break;case _.attributes.RESIZABLE:this.resizable=p(a);break;case _.attributes.MIN_RESIZE_WIDTH:this.minResizeWidth=$(a);break;case _.attributes.ALLOW_ROW_CLICK:this.allowRowClick=p(a);break;case _.attributes.MULTI_COLUMN_SORT:this.multiColumnSort=p(a);break;case _.attributes.SELECT_CHECKBOX_ALIGNMENT:this.selectCheckboxAlignment=this.getAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT)||"center";break;case _.attributes.TOOLTIP_SELECT:this.tooltipSelect=a;break;case _.attributes.TOOLTIP_SELECT_ALL:this.tooltipSelectAll=a;break}}hideColumn(t){this._core.hideColumn(t)}showColumn(t){this._core.showColumn(t)}isColumnHidden(t){return this._core.isColumnHidden(t)}getSelectedRows(){return this._core.getSelectedRows()}selectRow(t){this._core.selectRows([t],!1)}selectRows(t,e=!1){this._core.selectRows(t,!e)}deselectRow(t){this._core.deselectRows([t])}deselectRows(t){this._core.deselectRows(t)}clearSelections(){this._core.clearSelections()}render(){this._core.render()}expandRow(t,e){return this._core.expandRow(t,e)}collapseRow(t){return this._core.collapseRow(t)}isRowExpanded(t){return this._core.isRowExpanded(t)}selectRowsByIndex(t,e){typeof t=="number"?this._core.selectRowsByIndex([t],e):Array.isArray(t)&&this._core.selectRowsByIndex(t,e)}deselectRowsByIndex(t){typeof t=="number"?this._core.deselectRowsByIndex([t]):Array.isArray(t)&&this._core.deselectRowsByIndex(t)}isRowSelected(t){return this._core.isRowSelected(t)}};s([v()],X1.prototype,"data",2),s([v()],X1.prototype,"columnConfigurations",2),s([v()],X1.prototype,"select",2),s([v()],X1.prototype,"multiselect",2),s([v()],X1.prototype,"selectKey",2),s([v()],X1.prototype,"tooltipSelect",2),s([v()],X1.prototype,"tooltipSelectAll",2),s([v()],X1.prototype,"dense",2),s([v()],X1.prototype,"roomy",2),s([v()],X1.prototype,"filter",2),s([v()],X1.prototype,"fixedHeaders",2),s([v()],X1.prototype,"layoutType",2),s([v()],X1.prototype,"wrapContent",2),s([v()],X1.prototype,"resizable",2),s([v()],X1.prototype,"minResizeWidth",2),s([v()],X1.prototype,"allowRowClick",2),s([v()],X1.prototype,"multiColumnSort",2),s([v()],X1.prototype,"rowCreated",2),s([v()],X1.prototype,"cellCreated",2),s([v()],X1.prototype,"selectAllTemplate",2),s([v()],X1.prototype,"selectCheckboxAlignment",2),X1=s([y({name:_.elementName,dependencies:[Qt,Q,e2,d1]})],X1);function T6(){b(X1)}var S6=`${x}tab-bar`,k6={DISABLED:"disabled",ACTIVE_TAB:"active-tab",VERTICAL:"vertical",STACKED:"stacked",CLUSTERED:"clustered",SECONDARY:"secondary",INVERTED:"inverted",AUTO_ACTIVATE:"auto-activate",SCROLL_BUTTONS:"scroll-buttons"},eb=m({},k6),ab={ROOT:".forge-tab-bar",SCROLL_CONTAINER:".scroll-container",DEFAULT_SLOT:"slot:not([name])"},ob={SCROLL_BUTTON:"scroll-button"},rb={CHANGE:`${S6}-change`},nb={SCROLL_MARGIN:48},P1={elementName:S6,observedAttributes:k6,attributes:eb,events:rb,selectors:ab,classes:ob,numbers:nb},w5=new Map([["default",new Set(["Home","End"])],["horizontal",new Set(["ArrowLeft","ArrowRight"])],["vertical",new Set(["ArrowUp","ArrowDown"])]]);var O6=`${x}tab`,D6={DISABLED:"disabled",SELECTED:"selected",VERTICAL:"vertical",STACKED:"stacked",SECONDARY:"secondary",INVERTED:"inverted"},ib=m({},D6),sb={INDICATOR:".indicator"},lb={},vb={SELECT:`${O6}-select`},hb={EASING:"cubic-bezier(0.4, 0, 0.2, 1)"},cb={ANIMATION_DURATION:250},G1={elementName:O6,observedAttributes:D6,attributes:ib,selectors:sb,classes:lb,events:vb,strings:hb,numbers:cb};var Al=class extends I{constructor(t){super(t),this._tabIndicatorElement=w(this._component,G1.selectors.INDICATOR),this._focusIndicatorElement=w(this._component,g1.elementName),this._stateLayerElement=w(this._component,L1.elementName)}initialize(){this._component.tabIndex=this._component.selected?0:-1,this._component.setAttribute("role","tab"),this._component.setAttribute("aria-selected",this._component.selected?"true":"false")}activateFocusIndicator(){this._focusIndicatorElement.active=!0}addInteractionListener(t,e){this._component.addEventListener(t,e)}setDisabled(t){this._stateLayerElement.disabled=t,this._component.tabIndex=t?-1:this._component.selected?0:-1,this._component.setAttribute("aria-disabled",String(t)),W(this._component,t,G1.attributes.DISABLED,String(t))}setSelected(t){this._component.tabIndex=t?0:-1,this._component.setAttribute("aria-selected",String(t))}animateSelected(){this._tabIndicatorElement.getAnimations().forEach(e=>e.cancel());let t=this._getKeyframes();t&&this._tabIndicatorElement.animate(t,{duration:G1.numbers.ANIMATION_DURATION,easing:G1.strings.EASING})}animateStateLayer(){this._stateLayerElement.playAnimation()}_getKeyframes(){var f;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!this._component.selected)return t?[{opacity:1},{transform:"none"}]:null;let e={},a=this._component.vertical,o=this._getSelectedTabIndicator(),n=(f=o==null?void 0:o.getBoundingClientRect())!=null?f:{},i=a?n.top:n.left,l=a?n.height:n.width,h=this._tabIndicatorElement.getBoundingClientRect(),c=a?h.top:h.left,d=a?h.height:h.width,u=a?"Y":"X",M=l/d;return!t&&i!==void 0&&c!==void 0&&!isNaN(M)?e.transform=`translate${u}(${(i-c).toFixed(4)}px) scale${u}(${M.toFixed(4)})`:e.opacity=0,[e,{transform:"none"}]}_getSelectedTabIndicator(){let t=k5(this._component,P1.elementName);if(t){let a=Array.from(t.querySelectorAll(G1.elementName)).find(o=>o.hasAttribute(G1.attributes.SELECTED));if(a)return w(a,G1.selectors.INDICATOR)}return null}};var Bl=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._vertical=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._clickListener=()=>this._onClick(),this._keydownListener=e=>this._onKeydown(e)}initialize(){this._adapter.initialize(),this._adapter.addInteractionListener("click",this._clickListener),this._adapter.addInteractionListener("keydown",this._keydownListener)}setFocus(t){t!=null&&t.focusVisible&&this._adapter.activateFocusIndicator()}_onClick(){this._disabled||this._selected||this._dispatchSelectEvent()}_onKeydown(t){if(this._disabled||this._selected)return;(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this._adapter.animateStateLayer(),this._dispatchSelectEvent())}_dispatchSelectEvent(){this._adapter.dispatchHostEvent(new CustomEvent(G1.events.SELECT,{bubbles:!0,composed:!0}))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(G1.attributes.DISABLED,this._disabled))}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.animateSelected(),this._adapter.toggleHostAttribute(G1.attributes.SELECTED,this._selected))}get vertical(){return this._vertical}set vertical(t){this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(G1.attributes.VERTICAL,this._vertical))}get stacked(){return this._stacked}set stacked(t){this._stacked!==t&&(this._stacked=t,this._adapter.toggleHostAttribute(G1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){this._secondary!==t&&(this._secondary=t,this._adapter.toggleHostAttribute(G1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){this._inverted!==t&&(this._inverted=t,this._adapter.toggleHostAttribute(G1.attributes.INVERTED,this._inverted))}};var pb='<template><div class="forge-tab" part="container"><span class="content" part="content"><slot name="start"><slot name="leading"></slot></slot><span class="label" part="label"><slot></slot></span><slot name="end"><slot name="trailing"></slot></slot><span class="indicator" part="indicator"></span></span><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></template>',db=':host{display:inline-flex;outline:0;-webkit-tap-highlight-color:transparent;vertical-align:middle}:host([hidden]){display:none}.forge-tab{--_tab-active-color:var(--forge-tab-active-color, var(--forge-theme-primary, #3f51b5));--_tab-inactive-color:var(--forge-tab-inactive-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_tab-height:var(--forge-tab-height, 48px);--_tab-stacked-height:var(--forge-tab-stacked-height, 64px);--_tab-padding-block:var(--forge-tab-padding-block, 0);--_tab-padding-inline:var(--forge-tab-padding-inline, 0);--_tab-disabled-opacity:var(--forge-tab-disabled-opacity, 0.38);--_tab-indicator-color:var(--forge-tab-indicator-color, var(--_tab-active-color));--_tab-indicator-height:var(--forge-tab-indicator-height, 3px);--_tab-indicator-shape:var(--forge-tab-indicator-shape, 3px 3px 0 0);--_tab-vertical-indicator-shape:var(--forge-tab-vertical-indicator-shape, 3px 0 0 3px);--_tab-secondary-indicator-height:var(--forge-tab-secondary-indicator-height, 2px);--_tab-secondary-indicator-shape:var(--forge-tab-secondary-indicator-shape, 0);--_tab-inverted-indicator-shape:var(--forge-tab-inverted-indicator-shape, 0 0 3px 3px);--_tab-vertical-inverted-indicator-shape:var(--forge-tab-vertical-inverted-indicator-shape, 0 3px 3px 0);--_tab-container-color:var(--forge-tab-container-color, transparent);--_tab-container-height:var(--forge-tab-container-height, var(--_tab-height));--_tab-container-shape:var(--forge-tab-container-shape, 0);--_tab-content-height:var(--forge-tab-content-height, var(--_tab-height));--_tab-content-spacing:var(--forge-tab-content-spacing, var(--forge-spacing-xsmall, 8px));--_tab-content-padding:var(--forge-tab-content-padding, var(--forge-spacing-xxsmall, 4px));--_tab-content-padding-block:var(--forge-tab-content-padding-block, var(--_tab-content-padding));--_tab-content-padding-inline:var(--forge-tab-content-padding-inline, var(--forge-spacing-medium, 16px));--_tab-content-padding-inline-secondary:var(--forge-tab-content-padding-inline-secondary, var(--forge-spacing-medium, 16px));--_tab-active-focus-icon-color:var(--forge-tab-active-focus-icon-color, var(--_tab-active-color));--_tab-active-hover-icon-color:var(--forge-tab-active-hover-icon-color, var(--_tab-active-color));--_tab-active-icon-color:var(--forge-tab-active-icon-color, var(--_tab-active-color));--_tab-active-pressed-icon-color:var(--forge-tab-active-pressed-icon-color, var(--_tab-active-color));--_tab-icon-size:var(--forge-tab-icon-size, 24px);--_tab-focus-icon-color:var(--forge-tab-focus-icon-color, var(--_tab-inactive-color));--_tab-hover-icon-color:var(--forge-tab-hover-icon-color, var(--_tab-inactive-color));--_tab-icon-color:var(--forge-tab-icon-color, var(--_tab-inactive-color));--_tab-pressed-icon-color:var(--forge-tab-pressed-icon-color, var(--_tab-inactive-color));--_tab-active-focus-label-text-color:var(--forge-tab-active-focus-label-text-color, var(--_tab-active-color));--_tab-active-hover-label-text-color:var(--forge-tab-active-hover-label-text-color, var(--_tab-active-color));--_tab-active-label-text-color:var(--forge-tab-active-label-text-color, var(--_tab-active-color));--_tab-active-pressed-label-text-color:var(--forge-tab-active-pressed-label-text-color, var(--_tab-active-color));--_tab-focus-label-text-color:var(--forge-tab-focus-label-text-color, var(--_tab-inactive-color));--_tab-hover-label-text-color:var(--forge-tab-hover-label-text-color, var(--_tab-inactive-color));--_tab-label-text-color:var(--forge-tab-label-text-color, var(--_tab-inactive-color));--_tab-pressed-label-text-color:var(--forge-tab-pressed-label-text-color, var(--_tab-inactive-color))}.forge-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;background:0 0;text-decoration:none;width:100%;position:relative;padding-block:var(--_tab-padding-block);padding-inline:var(--_tab-padding-inline);margin:0;z-index:0;background-color:var(--_tab-container-color);color:var(--_tab-label-text-color);min-height:var(--_tab-container-height)}.forge-tab::-moz-focus-inner{padding:0;border:0}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=trailing]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_tab-icon-color);font-size:var(--_tab-icon-size);width:var(--_tab-icon-size);height:var(--_tab-icon-size)}.forge-tab:hover{color:var(--_tab-hover-label-text-color);cursor:pointer}.forge-tab:hover ::slotted([slot=leading]),.forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-hover-icon-color)}.forge-tab .content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;transition:150ms color linear;max-height:calc(var(--_tab-content-height) + 2 * var(--_tab-content-padding-block));min-height:var(--_tab-content-height);width:100%;padding-block:var(--_tab-content-padding-block);padding-inline:var(--_tab-content-padding-inline);gap:var(--_tab-content-spacing)}.forge-tab .content .label{display:inline-block;line-height:1}.forge-tab .indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_tab-indicator-color);border-radius:var(--_tab-indicator-shape);height:var(--_tab-indicator-height);min-width:100%;inset:auto 0 0;opacity:0}::slotted(*),:host{white-space:nowrap}forge-focus-indicator{--forge-focus-indicator-color:var(--_tab-active-color);--forge-focus-indicator-shape:8px}forge-state-layer{--forge-state-layer-color:var(--_tab-inactive-color)}:host(:focus) .forge-tab{color:var(--_tab-focus-label-text-color)}:host(:focus) .forge-tab ::slotted([slot=leading]),:host(:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-focus-icon-color)}:host(:active) .forge-tab{color:var(--_tab-pressed-label-text-color);outline:0}:host(:active) .forge-tab ::slotted([slot=leading]),:host(:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-pressed-icon-color)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-tab{opacity:var(--_tab-disabled-opacity);pointer-events:none}:host([selected]) .forge-tab{color:var(--_tab-active-label-text-color)}:host([selected]) .forge-tab ::slotted([slot=end]),:host([selected]) .forge-tab ::slotted([slot=leading]),:host([selected]) .forge-tab ::slotted([slot=start]),:host([selected]) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-icon-color)}:host([selected]) .forge-tab:hover{color:var(--_tab-active-hover-label-text-color)}:host([selected]) .forge-tab:hover ::slotted([slot=end]),:host([selected]) .forge-tab:hover ::slotted([slot=leading]),:host([selected]) .forge-tab:hover ::slotted([slot=start]),:host([selected]) .forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-active-hover-icon-color)}:host([selected]) .forge-tab .indicator{opacity:1}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_tab-active-color)}:host([selected]:not([vertical])) forge-focus-indicator{--forge-focus-indicator-offset-block:0 calc(var(--_tab-indicator-height) + 1px)}:host([selected]:focus) .forge-tab{color:var(--_tab-active-focus-label-text-color)}:host([selected]:focus) .forge-tab ::slotted([slot=leading]),:host([selected]:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-focus-icon-color)}:host([selected]:active) .forge-tab{color:var(--_tab-active-pressed-label-text-color)}:host([selected]:active) .forge-tab ::slotted([slot=leading]),:host([selected]:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-pressed-icon-color)}:host([stacked]) .forge-tab{--_tab-height:var(--_tab-stacked-height)}:host([stacked]) .forge-tab .content{max-height:none;flex-direction:column;height:100%}:host([vertical]) .forge-tab{--_tab-padding-inline:var(--forge-tab-padding-inline, 0);width:100%;flex-direction:row;border-bottom:none}:host([vertical]) .forge-tab .content{width:100%;min-height:100%}:host([vertical]) .forge-tab .indicator{height:100%;min-width:var(--_tab-indicator-height);inset:0 0 0 auto}:host([vertical]) forge-focus-indicator{--forge-focus-indicator-offset-inline:0 calc(var(--_tab-indicator-height) + 1px)}:host([vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-indicator-shape)}:host([inverted]) .forge-tab{--_tab-indicator-shape:var(--_tab-inverted-indicator-shape)}:host([inverted]) .indicator{inset:0 0 auto;transform-origin:top left}:host([inverted][vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-inverted-indicator-shape)}:host([inverted][vertical]) .indicator{inset:0 auto 0 0}',P2=class extends H{static get observedAttributes(){return Object.values(G1.observedAttributes)}constructor(){super(),L(this,pb,db),this._core=new Bl(new Al(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case G1.observedAttributes.DISABLED:this.disabled=p(a);break;case G1.observedAttributes.SELECTED:this.selected=p(a);break;case G1.observedAttributes.VERTICAL:this.vertical=p(a);break;case G1.observedAttributes.STACKED:this.stacked=p(a);break;case G1.observedAttributes.SECONDARY:this.secondary=p(a);break;case G1.observedAttributes.INVERTED:this.inverted=p(a);break}}focus(t){super.focus(t),this._core.setFocus(t)}};s([v()],P2.prototype,"disabled",2),s([v()],P2.prototype,"selected",2),s([v()],P2.prototype,"vertical",2),s([v()],P2.prototype,"stacked",2),s([v()],P2.prototype,"secondary",2),s([v()],P2.prototype,"inverted",2),P2=s([y({name:G1.elementName,dependencies:[t1,i1]})],P2);function P6(){b(P2)}var Tl=class extends I{constructor(t){super(t),this._defaultSlotElement=w(this._component,P1.selectors.DEFAULT_SLOT),this._rootElement=w(this._component,P1.selectors.ROOT),this._scrollContainer=w(this._component,P1.selectors.SCROLL_CONTAINER)}initializeContainerSizeObserver(t){this._resizeObserver=new ResizeObserver(()=>t()),this._resizeObserver.observe(this._component)}initializeScrollObserver(t){this._scrollContainer.addEventListener("scroll",t,{passive:!0})}destroyContainerSizeObserver(){var t;(t=this._resizeObserver)==null||t.disconnect(),this._resizeObserver=void 0}destroyScrollObserver(t){this._scrollContainer.removeEventListener("scroll",t,{passive:!0})}setVertical(t){W(this._component,!!t,"aria-orientation","vertical")}setScrollBackwardButtonListener(t){var e;(e=this._backwardScrollButton)==null||e.addEventListener("click",t)}setScrollForwardButtonListener(t){var e;(e=this._forwardScrollButton)==null||e.addEventListener("click",t)}addSlotListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}getTabs(){return Array.from(this._component.querySelectorAll(G1.elementName))}async tryScrollTabIntoView(t){if(await new Promise(requestAnimationFrame),!t.isConnected||!t.selected&&!t.matches(":focus"))return;let e=this._component.vertical,a=e?this._scrollContainer.offsetTop:this._scrollContainer.offsetLeft,o=e?t.offsetTop:t.offsetLeft,n=e?t.offsetHeight:t.offsetWidth,i=e?this._scrollContainer.scrollTop:this._scrollContainer.scrollLeft,l=e?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth,h=o-(P1.numbers.SCROLL_MARGIN+a),c=o+n-l+(P1.numbers.SCROLL_MARGIN-a),d=Math.min(h,Math.max(c,i)),u=t.matches(":focus")?"smooth":"instant";this._scrollContainer.scrollTo({behavior:u,[e?"left":"top"]:0,[e?"top":"left"]:d})}getScrollState(){let{scrollHeight:t,scrollWidth:e,scrollLeft:a,scrollTop:o,clientHeight:n,clientWidth:i}=this._scrollContainer,l=this._component.vertical?n+o:i+a,h=this._component.vertical?t:e,c=l===h;return{isScrolledStart:(this._component.vertical?l-n:l-i)===0,isScrolledEnd:c}}isScrollable(){let{scrollHeight:t,scrollWidth:e,clientHeight:a,clientWidth:o}=this._scrollContainer;return this._component.vertical?t>a:e>o}setScrollButtons(t){var e,a;t?(this._backwardScrollButton=this._createScrollButton(this._component.vertical?$o.name:s0.name),this._rootElement.insertAdjacentElement("afterbegin",this._backwardScrollButton),this._forwardScrollButton=this._createScrollButton(this._component.vertical?i0.name:ue.name),this._rootElement.insertAdjacentElement("beforeend",this._forwardScrollButton)):((e=this._backwardScrollButton)==null||e.remove(),this._backwardScrollButton=void 0,(a=this._forwardScrollButton)==null||a.remove(),this._forwardScrollButton=void 0)}syncScrollButtons({backwardEnabled:t,forwardEnabled:e}){var a,o;if(this._backwardScrollButton){let n=!t;n&&this._backwardScrollButton.matches(":focus")&&((a=this._forwardScrollButton)==null||a.focus()),this._backwardScrollButton.disabled=n,this._backwardScrollButton.tabIndex=-1}if(this._forwardScrollButton){let n=!e;n&&this._forwardScrollButton.matches(":focus")&&((o=this._backwardScrollButton)==null||o.focus()),this._forwardScrollButton.disabled=n,this._forwardScrollButton.tabIndex=-1}}scroll(t){let e=this._component.vertical?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth;this._scrollContainer.scrollBy({behavior:"smooth",[this._component.vertical?"top":"left"]:e*(t==="forward"?1:-1)})}updateScrollButtonIcons(t){var o,n;let e=(o=this._backwardScrollButton)==null?void 0:o.querySelector("forge-icon");e&&(e.name=t?$o.name:s0.name);let a=(n=this._forwardScrollButton)==null?void 0:n.querySelector("forge-icon");a&&(a.name=t?i0.name:ue.name)}_createScrollButton(t){let e=document.createElement("forge-icon-button");e.classList.add(P1.classes.SCROLL_BUTTON),e.shape="squared",e.type="button",e.tabIndex=-1,e.setAttribute("aria-hidden","true");let a=document.createElement("forge-icon");return a.name=t,e.appendChild(a),e}};var Sl=class{constructor(t){this._adapter=t;this._isInitialized=!1;this._disabled=!1;this._vertical=!1;this._clustered=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._autoActivate=!1;this._scrollButtons=!1;this._tabs=[];this._scrollButtonsVisible=!1;this._tabsChangedListener=()=>this._onTabsChanged(),this._tabSelectedListener=e=>this._onTabSelected(e),this._keydownListener=e=>this._onKeydown(e),this._resizeListener=()=>this._onResize(),this._scrollListener=()=>this._onScroll(),this._scrollBackwardButtonListener=()=>this._onScrollBackward(),this._scrollForwardButtonListener=()=>this._onScrollForward()}initialize(){this._adapter.addSlotListener(this._tabsChangedListener),this._adapter.addHostListener(G1.events.SELECT,this._tabSelectedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.setVertical(this._vertical),this._scrollButtons&&(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState()),this._tryScrollActiveTabIntoView(),this._isInitialized=!0}destroy(){this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._isInitialized=!1}async _onTabsChanged(){this._tabs=this._adapter.getTabs(),this._syncTabState(),this._scrollButtons&&this._detectScrollableStatus(),this._tryScrollActiveTabIntoView()}_onTabSelected(t){this._selectTab({tab:t.target,focusTab:!0})}async _onKeydown(t){var n,i;let e=this._vertical?"vertical":"horizontal";if(!(((n=w5.get("default"))==null?void 0:n.has(t.key))||((i=w5.get(e))==null?void 0:i.has(t.key))))return;t.preventDefault();let o=-1;if(t.key==="Home")o=this._tabs.findIndex(l=>!l.disabled);else if(t.key==="End")o=this._tabs.reduceRight((l,h,c)=>!h.disabled&&l===-1?c:l,-1);else{let l=this._tabs.findIndex(d=>d.matches(":focus")),h=t.key==="ArrowLeft"||t.key==="ArrowUp",c=d=>{var M;o=d+(h?-1:1),o=o<0?this._tabs.length-1:o%this._tabs.length,!this._tabs.every(f=>f.disabled)&&((M=this._tabs[o])!=null&&M.disabled)&&c(o)};c(l)}o!==-1&&(this._autoActivate?this._selectTab({tab:this._tabs[o],focusTab:!0}):(this._tabs[o].focus({preventScroll:!0,focusVisible:!0}),await this._adapter.tryScrollTabIntoView(this._tabs[o])))}async _selectTab({tab:t,emitEvent:e=!0,focusTab:a=!1}){if(!t||t.disabled)return;let o=this._tabs.find(n=>n.selected);if(o!==t){if(e){let n=this._tabs.indexOf(t),i=new CustomEvent(P1.events.CHANGE,{detail:{index:n},bubbles:!0,cancelable:!0,composed:!0});if(this._adapter.dispatchHostEvent(i),i.defaultPrevented)return}t.selected=!0,a&&t.focus({preventScroll:!0}),await this._adapter.tryScrollTabIntoView(t),o&&(o.selected=!1),this._activeTab=this._tabs.indexOf(t)}}_syncTabState(){this._tabs.forEach((t,e)=>{t.selected=e===this._activeTab,this._disabled&&(t.disabled=this._disabled),t.vertical=this._vertical,t.stacked=this._stacked,t.secondary=this._secondary,t.inverted=this._inverted})}_onResize(){this._detectScrollableStatus()}_onScroll(){this._updateScrollState()}_onScrollBackward(){this._adapter.scroll("backward")}_onScrollForward(){this._adapter.scroll("forward")}_detectScrollableStatus(){let t=this._adapter.isScrollable();this._scrollButtonsVisible!==t&&(this._adapter.setScrollButtons(t),t?(this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState(),this._adapter.setScrollBackwardButtonListener(this._scrollBackwardButtonListener),this._adapter.setScrollForwardButtonListener(this._scrollForwardButtonListener)):this._adapter.destroyScrollObserver(this._scrollListener),this._scrollButtonsVisible=t)}_updateScrollState(){let{isScrolledEnd:t,isScrolledStart:e}=this._adapter.getScrollState(),a={backwardEnabled:!e,forwardEnabled:!t};this._adapter.syncScrollButtons(a)}_tryScrollActiveTabIntoView(){this._tabScrollAnimationFrame&&window.cancelAnimationFrame(this._tabScrollAnimationFrame),this._tabScrollAnimationFrame=window.requestAnimationFrame(()=>{this._tabScrollAnimationFrame=void 0,this._adapter.isScrollable()&&typeof this._activeTab=="number"&&this._activeTab>=0&&this._tabs[this._activeTab]&&this._adapter.tryScrollTabIntoView(this._tabs[this._activeTab])})}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._tabs.forEach(e=>e.disabled=this._disabled),this._adapter.toggleHostAttribute(P1.attributes.DISABLED,this._disabled))}get activeTab(){return this._activeTab}set activeTab(t){if(this._activeTab!==t)if(this._activeTab=t!=null?t:void 0,typeof this._activeTab=="number"){let e=this._tabs[this._activeTab];this._selectTab({tab:e,emitEvent:!1,focusTab:!1}),this._adapter.setHostAttribute(P1.attributes.ACTIVE_TAB,String(this._activeTab))}else this._tabs.forEach(e=>e.selected=!1),this._adapter.removeHostAttribute(P1.attributes.ACTIVE_TAB)}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._isInitialized&&this._adapter.setVertical(this._vertical),this._tabs.forEach(e=>e.vertical=this._vertical),this._scrollButtonsVisible&&this._adapter.updateScrollButtonIcons(this._vertical),this._adapter.toggleHostAttribute(G1.attributes.VERTICAL,this._vertical))}get clustered(){return this._clustered}set clustered(t){t=!!t,this._clustered!==t&&(this._clustered=t,this._adapter.toggleHostAttribute(P1.attributes.CLUSTERED,this._clustered))}get stacked(){return this._stacked}set stacked(t){t=!!t,this._stacked!==t&&(this._stacked=t,this._tabs.forEach(e=>e.stacked=this._stacked),this._adapter.toggleHostAttribute(P1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){t=!!t,this._secondary!==t&&(this._secondary=t,this._tabs.forEach(e=>e.secondary=this._secondary),this._adapter.toggleHostAttribute(P1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){t=!!t,this._inverted!==t&&(this._inverted=t,this._tabs.forEach(e=>e.inverted=this._inverted),this._adapter.toggleHostAttribute(P1.attributes.INVERTED,this._inverted))}get autoActivate(){return this._autoActivate}set autoActivate(t){t=!!t,this._autoActivate!==t&&(this._autoActivate=t,this._adapter.toggleHostAttribute(P1.attributes.AUTO_ACTIVATE,this._autoActivate))}get scrollButtons(){return this._scrollButtons}set scrollButtons(t){t=!!t,this._scrollButtons!==t&&(this._scrollButtons=!!t,this._isInitialized&&(this._scrollButtons?(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._detectScrollableStatus(),this._updateScrollState(),this._tryScrollActiveTabIntoView()):(this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._adapter.setScrollButtons(this._scrollButtons),this._scrollButtonsVisible=!1)),this._adapter.setHostAttribute(P1.attributes.SCROLL_BUTTONS,String(this._scrollButtons)))}};var mb='<template><div class="forge-tab-bar" part="container"><div class="scroll-container" part="scroll-container"><slot></slot></div></div></template>',gb=":host{position:relative;display:block}:host([hidden]){display:none}.forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, space-between);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 1);--_tab-bar-divider-color:var(--forge-tab-bar-divider-color, var(--forge-theme-outline, #e0e0e0));--_tab-bar-divider-thickness:var(--forge-tab-bar-divider-thickness, 1px)}.forge-tab-bar{position:relative;display:grid;grid-template-columns:auto 1fr auto;max-width:100%;max-height:100%;align-items:center;border-bottom:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}.scroll-container{position:relative;display:flex;justify-content:var(--_tab-bar-justify);align-items:flex-end;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;grid-column:2}.scroll-container::-webkit-scrollbar{display:none}::slotted(*){flex:var(--_tab-bar-stretch);align-self:stretch}::slotted([selected]){z-index:1}forge-icon-button{--forge-icon-button-shape-squared:0px}:host([vertical]) .forge-tab-bar{grid-template-columns:none;grid-template-rows:auto 1fr auto;align-items:initial;border-bottom:none;border-right:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color);height:100%}:host([vertical]) .scroll-container{display:inline-flex;flex-direction:column;align-items:stretch;gap:0;grid-column:auto;grid-row:2}:host([vertical]) .scroll-button{justify-self:center}:host([inverted]:not([vertical])) .forge-tab-bar{border-bottom:none;border-top:variale(divider-thickness) solid var(--_tab-bar-divider-color)}:host([inverted][vertical]) .forge-tab-bar{border-bottom:none;border-top:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}:host([clustered]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 0)}:host([clustered=start]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start)}:host([clustered=center]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, center)}:host([clustered=end]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-end)}",I2=class extends V1(I1(H)){static get observedAttributes(){return Object.values(P1.observedAttributes)}constructor(){super(),j.define([s0,ue,$o,i0]),L(this,mb,gb),this._core=new Sl(new Tl(this))}connectedCallback(){this[N]({role:"tablist"},{setAttribute:!0}),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case P1.observedAttributes.DISABLED:this.disabled=p(a);break;case P1.observedAttributes.ACTIVE_TAB:this.activeTab=a?$(a):void 0;break;case P1.observedAttributes.VERTICAL:this.vertical=p(a);break;case P1.observedAttributes.CLUSTERED:this.clustered=p(a);break;case P1.observedAttributes.STACKED:this.stacked=p(a);break;case P1.observedAttributes.SECONDARY:this.secondary=p(a);break;case P1.observedAttributes.INVERTED:this.inverted=p(a);break;case P1.observedAttributes.AUTO_ACTIVATE:this.autoActivate=p(a);break;case P1.observedAttributes.SCROLL_BUTTONS:this.scrollButtons=p(a);break}}};s([v()],I2.prototype,"disabled",2),s([v()],I2.prototype,"activeTab",2),s([v()],I2.prototype,"vertical",2),s([v()],I2.prototype,"clustered",2),s([v()],I2.prototype,"stacked",2),s([v()],I2.prototype,"secondary",2),s([v()],I2.prototype,"inverted",2),s([v()],I2.prototype,"autoActivate",2),s([v()],I2.prototype,"scrollButtons",2),I2=s([y({name:P1.elementName,dependencies:[P2,s1,Q]})],I2);function N6(){b(I2)}var zr=`${x}time-picker`,R6={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},wb={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${R6.TOGGLE}]`},ub={OPEN:`${zr}-open`,CLOSE:`${zr}-close`,INPUT:`${zr}-input`,CHANGE:`${zr}-change`},_b={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},K={elementName:zr,attributes:R6,selectors:wb,events:ub,numbers:_b};var kl=class extends I{constructor(t){super(t)}get inputElement(){return this._inputElement}initialize(){this._inputElement=this._component.querySelector(K.selectors.INPUT)}initializeMask(t){this.destroyMask(),this._inputElement&&(this._inputMask=new un(this._inputElement,t))}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){var t;(t=this._inputMask)==null||t.destroy(),this._inputMask=void 0}initializeAccessibility(t){var e,a,o,n,i,l,h,c,d;(e=this._inputElement)==null||e.setAttribute("autocomplete","off"),(a=this._inputElement)==null||a.setAttribute("autocorrect","off"),(o=this._inputElement)==null||o.setAttribute("autocapitalize","off"),(n=this._inputElement)==null||n.setAttribute("spellcheck","false"),(i=this._inputElement)==null||i.setAttribute("role","combobox"),(l=this._inputElement)==null||l.setAttribute("aria-live","assertive"),(h=this._inputElement)==null||h.setAttribute("aria-atomic","true"),(c=this._inputElement)==null||c.setAttribute("aria-haspopup","true"),(d=this._inputElement)==null||d.setAttribute("aria-expanded","false"),Ne(),this._inputElement&&G2(this._inputElement)}addInputListener(t,e,a){var o;(o=this._inputElement)==null||o.addEventListener(t,e,{capture:a})}removeInputListener(t,e,a){var o;(o=this._inputElement)==null||o.removeEventListener(t,e,{capture:a})}addToggleListener(t,e){this._toggleElement&&this._toggleElement.addEventListener(t,e)}removeToggleListener(t,e){this._toggleElement&&this._toggleElement.removeEventListener(t,e)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let t=this._component.querySelector(C1.elementName),e=this._component.querySelector(K.selectors.TOGGLE);if(t){let a=t.querySelector(`${e1.elementName}[slot=trailing]`);if(a||e){this._toggleElement=a||e;return}let o=document.createElement(e1.elementName);o.slot="trailing",o.density="medium",o.type="button",o.tabIndex=-1,o.setAttribute("aria-label","Toggle time dropdown");let n=document.createElement(p1.elementName);n.name="clock_outline",o.appendChild(n),t.appendChild(o),this._toggleElement=o}else e&&(this._toggleElement=e)}tryFocusInput(){var t;(t=this._inputElement)==null||t.select()}tryBlurInput(){var t;(t=this._inputElement)==null||t.blur()}selectInputText(){var t;(t=this._inputElement)==null||t.select()}isInputDisabled(){var t,e;return(e=(t=this._inputElement)==null?void 0:t.disabled)!=null?e:!1}isInputFocused(){return De(this._component.ownerDocument)===this._inputElement}setInputValue(t,e){var a;((a=this._inputElement)==null?void 0:a.value)!==t&&(this._inputElement&&(this._inputElement.value=t),this._inputMask&&this._inputMask.update(),e&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){var t,e;return this._inputMask?this._inputMask.maskedValue:(e=(t=this._inputElement)==null?void 0:t.value)!=null?e:""}setDisabled(t){this._inputElement&&(this._inputElement.disabled=t,this._inputElement.setAttribute("aria-disabled",t.toString())),this.setToggleDisabled(t)}attachDropdown(t){var e;this._targetElement||(this._targetElement=this._getTargetElement(this._component.popupTarget)),this._listDropdown=new Re(this._targetElement,t),this._listDropdown.open(),(e=this._inputElement)==null||e.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`)}async detachDropdown({destroy:t=!1}={}){this._listDropdown&&(t?this._listDropdown.destroy():await this._listDropdown.close(),this._listDropdown=void 0),this._inputElement&&G2(this._inputElement)}propagateKey(t){var e;(e=this._listDropdown)==null||e.handleKey(t)}setActiveDescendant(t){this._inputElement&&W(this._inputElement,!!t,"aria-activedescendant",t)}getTargetElementWidth(t){return this._getTargetElement(t).getBoundingClientRect().width}_emitInputEvent(t){var e;(e=this._inputElement)==null||e.dispatchEvent(new Event(t))}emitInputEvent(t,e){this._inputElement&&o0(this._inputElement,t,e)}setInputReadonly(t){this._inputElement&&(this._inputElement.readOnly=t)}setToggleDisabled(t){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",t.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=t;else{let e=this._toggleElement.querySelector("button");e&&(e.disabled=t)}}hasActiveOption(){var t,e;return((e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1)>=0}activateOptionByIndex(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}getActiveOption(){var t;return(t=this._listDropdown)==null?void 0:t.getActiveOption()}_getTargetElement(t){return this._targetElement?this._targetElement:(this._targetElement=t?this._component.querySelector(t)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){var e;let t=this._component.querySelector(C1.elementName);return(e=t==null?void 0:t.popoverTargetElement)!=null?e:this._component}};function Ol(r,t,e){if(!r||/^\s*$/.test(r))return null;let a=0,o=0,n=0;if(ja.test(r)){let i=N3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0}else if(nn.test(r)){let i=R3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0,a===12&&i.meridiem==="AM"&&(a=0),a<12&&i.meridiem==="PM"&&(a+=12)}else return null;return W6(a)+Pl(o)+(e?_5(n):0)}function X2(r,t,e){if(typeof r!="number"||r<0)return null;let a=Math.min(F6(r),23),o=Math.min(U6(r),59),i=r/(1e3*60)<720?"AM":"PM";t||(a=a<=12?a:a-12,a===0&&(a=12));let l=`${String(a).padStart(2,"0")}:${String(o).padStart(2,"0")}`;if(e){let h=Math.min(u5(r),59);l+=`:${String(h).padStart(2,"0")}`}return t||(l+=` ${i}`),l}function F6(r){return Math.abs(Math.floor(r/(1e3*60*60)))}function U6(r){return Math.abs(Math.floor(Dl(r)%60))}function Dl(r){return r/(1e3*60)}function u5(r){return Math.abs(Math.floor(fb(r)%60))}function fb(r){return r/1e3}function W6(r){return r*60*60*1e3}function Pl(r){return r*60*1e3}function _5(r){return r*1e3}function G6(r){return r-_5(u5(r))}function f5(r){let t=new Date,e=t.getHours(),a=t.getMinutes();return W6(e)+Pl(a)+(r?_5(t.getSeconds()):0)}function cE1(r,t,e=!1){r||(r=new Date);let a=Ol(t,!0,e);if(!a)return r.setHours(0,0,0),r;let o=F6(a),n=828e5;o>n?o=n:o<0&&(o=0);let i=U6(a),l=e?u5(a):0;return r.setHours(o,i,l),r}var Nl=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=K.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=Vt(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}destroy(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown({destroy:!0}),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){var e,a;if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),t.stopPropagation(),this._closeDropdown({emitCloseEvent:!0}));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption():(this._openDropdown(),typeof((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0?this._adapter.activateOptionByIndex((a=this._dropdownConfig)==null?void 0:a.visibleStartIndex):this._adapter.activateFirstOption()));break;case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&(this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption()));break;case"Enter":case"NumpadEnter":case"Home":case"End":this._open&&((t.code==="Enter"||t.code==="NumpadEnter")&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":t.preventDefault();let o=f5(this._allowSeconds);if(this._value!==o){let n=X2(o,!0,this._allowSeconds);this._emitChangeEvent(n)&&(this._applyValue(o),this._selectInputText())}break}}_trySetActiveOption(){var t,e;!this._adapter.hasActiveOption()&&typeof((t=this._dropdownConfig)==null?void 0:t.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0&&this._adapter.activateOptionByIndex((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown({emitCloseEvent:!0}):(Zt.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown({emitCloseEvent:!0})}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){this._adapter.destroyMask();let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:Se(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown({emitCloseEvent:!0})}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=X2(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(G6(this._value)),this._isInitialized&&t!==this._value){let e=X2(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown({emitCloseEvent:!0}),t=U3(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let a;!this._masked&&typeof this._parseCallback=="function"?a=this._parseCallback.call(null,t):a=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),a=this._validateMillis(a),this._trySetValue(a)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(K.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=X2(t,!0,this._allowSeconds);return this._adapter.emitInputEvent(K.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){if(typeof t=="number"){let e=typeof this._min=="number"&&t<this._min,a=typeof this._max=="number"&&t>this._max;(e||a)&&(t=null)}return typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):F3(t)}_isValidInputValue(t){return ja.test(t)}_onSelect(t){if(this._closeDropdown({emitCloseEvent:!0}),!t.isCustom&&t.metadata==="now"&&(t.time=f5(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let o=t.customCallback.call(null,t.metadata);if(typeof o!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=o}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=X2(t.time,!0,this._allowSeconds);this._emitChangeEvent(e)&&(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let a=this._formatValue(this._value);this._adapter.getInputValue()!==a&&this._adapter.setInputValue(a,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>K.numbers.MAX_DAY_MILLIS?K.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length||!this._adapter.inputElement)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(K.attributes.OPEN);let e=t.filter(n=>!n.divider&&!n.disabled),a=[],o=0;if(t.length)if(this._value!=null){let n=this._findClosestOptionIndex(this._value,e);n>=0&&(e[n].value.time===this._value?a=[e[n].value]:o=n)}else if(typeof this._startTime=="number"){let n=this._findClosestOptionIndex(this._startTime,e);n>=0&&n<e.length&&(o=n)}else this._startTime==null&&(o=this._getOptionIndexClosestCurrent(e));this._dropdownConfig={id:`forge-time-picker-${this._identifier}`,referenceElement:this._adapter.inputElement,selectedValues:a,syncWidth:!0,visibleStartIndex:o,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:n=>this._onSelect(n),closeCallback:()=>this._closeDropdown({emitCloseEvent:!0}),activeChangeCallback:n=>this._adapter.setActiveDescendant(n),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)},this._adapter.attachDropdown(this._dropdownConfig),this._adapter.emitHostEvent(K.events.OPEN,void 0,!1)}_closeDropdown({destroy:t=!1,emitCloseEvent:e=!1}={}){this._open=!1,this._dropdownConfig=void 0,this._adapter.removeHostAttribute(K.attributes.OPEN),this._adapter.detachDropdown({destroy:t}),e&&this._adapter.emitHostEvent(K.events.CLOSE,!0,!1)}_getOptionIndexClosestCurrent(t){let e=new Date,a=`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,o=Ol(a,!0,!1);return this._findClosestOptionIndex(o,t)}_findClosestOptionIndex(t,e){let a=e.reduce((o,n)=>Math.abs((n.value.time||0)-t)<Math.abs((o.value.time||0)-t)?n:o);return e.indexOf(a)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let a=this._formatValue(this._value);e!==a&&(this._adapter.setInputValue(a,t),this._adapter.emitInputEvent(K.events.INPUT,a))}_generateTimeOptions(){let t=this._min!=null?Math.max(Dl(this._min),0):0,e=this._max!=null?Math.min(Dl(this._max),K.numbers.MAX_DAY_MINUTES):K.numbers.MAX_DAY_MINUTES,a=this._step,o=[],n=[];if(this._showHourOptions){for(let l=t;l<=e&&l!==K.numbers.MAX_DAY_MINUTES;l+=a){let h=Pl(l),c=this._restrictedTimes.includes(h),d=X2(h,this._use24HourTime,!1)||"",u={time:h};o.push({label:d,value:u,disabled:c})}let i=o.findIndex(l=>l.value.time/1e3/60>=720);i>=0&&i<o.length-1&&o.splice(i,0,{label:"",value:null,divider:!0})}if(this._showNow){let i={time:null,metadata:"now"};n.push({label:"Now",value:i})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let i=this._customOptions.map(l=>{let h={time:null,metadata:l.value,isCustom:!0,customCallback:l.toMilliseconds};return{label:l.label,value:h}});n=[...n,...i]}return n.length&&(o.length&&o.splice(0,0,{label:"",value:null,divider:!0}),n.forEach((i,l)=>o.splice(l,0,i))),o}_convertTimeStringToMillis(t,e,a){return(!t||!this._isValidTimeFormat(t))&&(t=""),Ol(t,e,a)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):X2(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t)}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(K.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(K.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(K.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return X2(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return X2(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get max(){return X2(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get restrictedTimes(){return this._restrictedTimes.map(t=>X2(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return X2(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(K.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var xb="<template><slot></slot></template>",bb=":host{display:block}:host([hidden]){display:none}",R1=class extends H{static get observedAttributes(){return[K.attributes.VALUE,K.attributes.OPEN,K.attributes.ALLOW_SECONDS,K.attributes.MASKED,K.attributes.SHOW_MASK_FORMAT,K.attributes.USE_24_HOUR_TIME,K.attributes.ALLOW_INVALID_TIME,K.attributes.MIN,K.attributes.MAX,K.attributes.START_TIME,K.attributes.STEP,K.attributes.ALLOW_INPUT,K.attributes.SHOW_NOW,K.attributes.SHOW_HOUR_OPTIONS,K.attributes.DISABLED,K.attributes.POPUP_CLASSES,K.attributes.ALLOW_DROPDOWN]}constructor(){super(),j.define([v6,$a]),L(this,xb,bb),this._core=new Nl(new kl(this))}connectedCallback(){this.querySelector(K.selectors.INPUT)?this._core.initialize():L0(this,K.selectors.INPUT).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case K.attributes.VALUE:this.value=a;break;case K.attributes.OPEN:this.open=p(a);break;case K.attributes.ALLOW_SECONDS:this.allowSeconds=p(a);break;case K.attributes.MASKED:this.masked=p(a);break;case K.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=p(a);break;case K.attributes.USE_24_HOUR_TIME:this.use24HourTime=p(a);break;case K.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=p(a);break;case K.attributes.SHOW_NOW:this.showNow=p(a);break;case K.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=p(a);break;case K.attributes.MIN:this.min=a;break;case K.attributes.MAX:this.max=a;break;case K.attributes.START_TIME:this.startTime=a;break;case K.attributes.STEP:this.step=$(a);break;case K.attributes.ALLOW_INPUT:this.allowInput=p(a);break;case K.attributes.DISABLED:this.disabled=p(a);break;case K.attributes.POPUP_CLASSES:this.popupClasses=a;break;case K.attributes.ALLOW_DROPDOWN:this.allowDropdown=p(a);break}}};s([v()],R1.prototype,"value",2),s([v()],R1.prototype,"open",2),s([v()],R1.prototype,"allowSeconds",2),s([v()],R1.prototype,"masked",2),s([v()],R1.prototype,"showMaskFormat",2),s([v()],R1.prototype,"use24HourTime",2),s([v()],R1.prototype,"allowInvalidTime",2),s([v()],R1.prototype,"min",2),s([v()],R1.prototype,"max",2),s([v()],R1.prototype,"restrictedTimes",2),s([v()],R1.prototype,"startTime",2),s([v()],R1.prototype,"step",2),s([v()],R1.prototype,"allowInput",2),s([v()],R1.prototype,"showNow",2),s([v()],R1.prototype,"showHourOptions",2),s([v()],R1.prototype,"customOptions",2),s([v()],R1.prototype,"validationCallback",2),s([v()],R1.prototype,"parseCallback",2),s([v()],R1.prototype,"formatCallback",2),s([v()],R1.prototype,"coercionCallback",2),s([v()],R1.prototype,"prepareMaskCallback",2),s([v()],R1.prototype,"disabled",2),s([v()],R1.prototype,"popupClasses",2),s([v()],R1.prototype,"allowDropdown",2),s([v()],R1.prototype,"popupTarget",2),R1=s([y({name:K.elementName,dependencies:[ct,Z1,s1,Q,F1,Q,z1]})],R1);var Y6=class extends at{constructor(t){super(t)}_build(){let t=document.createElement(K.elementName);return this._attachTextField(t),t}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(t){this._textFieldDelegate.invalid=t}onChange(t){this._element.addEventListener(K.events.CHANGE,e=>{var a;return t((a=e.detail)!=null?a:"")})}onInput(t){this._element.addEventListener(K.events.INPUT,e=>{var a;return t((a=e.detail)!=null?a:"")})}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var a,o,n,i;let e={props:m({},(o=(a=this._config.options)==null?void 0:a.textFieldDelegateConfig)==null?void 0:o.props),options:m({},(i=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:i.options)};this._textFieldDelegate=new J0(e),t.appendChild(this._textFieldDelegate.element)}};function K6(){b(R1)}var x5=`${x}toast`,q6={OPEN:"open",DURATION:"duration",PLACEMENT:"placement",ACTION_TEXT:"action-text",DISMISSIBLE:"dismissible",DISMISS_LABEL:"dismiss-label",THEME:"theme"},yb=m({},q6),Mb={ACTION:`${x5}-action`,CLOSE:`${x5}-close`},Hb={EXITING:"exiting"},Lb={SURFACE:".surface",ACTION_BUTTON:".action-button",CLOSE_BUTTON:".close-button"},Ib={PLACEMENT:"bottom",DURATION:2750,THEME:"default"},S1={elementName:x5,observedAttributes:q6,attributes:yb,classes:Hb,selectors:Lb,defaults:Ib,events:Mb};var Rl=class extends I{constructor(t){super(t),this._overlayElement=w(t,z.elementName),this._surfaceElement=w(t,S1.selectors.SURFACE),this._actionButtonElement=w(t,S1.selectors.ACTION_BUTTON),this._closeButtonElement=w(t,S1.selectors.CLOSE_BUTTON)}show(){this._overlayElement.open=!0}async hide(){await U2(this._surfaceElement,S1.classes.EXITING),this._overlayElement.open=!1}addCloseListener(t){this._closeButtonElement.addEventListener("click",t)}removeCloseListener(t){this._closeButtonElement.removeEventListener("click",t)}addActionListener(t){this._actionButtonElement.addEventListener("click",t)}removeActionListener(t){this._actionButtonElement.removeEventListener("click",t)}setDismissLabel(t){this._closeButtonElement.setAttribute("aria-label",t)}setActionText(t){this._actionButtonElement.textContent=t,t?this._actionButtonElement.removeAttribute("hidden"):this._actionButtonElement.setAttribute("hidden","")}};var Fl=class{constructor(t){this._adapter=t;this._open=!1;this._duration=S1.defaults.DURATION;this._placement=S1.defaults.PLACEMENT;this._dismissible=!1;this._theme=S1.defaults.THEME;this._actionListener=this._onAction.bind(this);this._closeListener=this._onClose.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["duration","placement","dismissible"]),this._open&&this.show()}show(){this._adapter.show(),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout&&window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration)),this._open=!0,this._adapter.toggleHostAttribute(S1.attributes.OPEN,this._open)}async hide({dispatchEvent:t=!0}={}){this._hideTimeout&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=void 0),await this._adapter.hide(),this._open=!1,this._adapter.toggleHostAttribute(S1.attributes.OPEN,this._open),t&&this._adapter.dispatchHostEvent(new CustomEvent(S1.events.CLOSE,{bubbles:!0}))}_onAction(t){t.stopPropagation(),this._adapter.dispatchHostEvent(new CustomEvent(S1.events.ACTION,{bubbles:!0}))}_onClose(t){this.hide()}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._adapter.isConnected?t?this.show():this.hide({dispatchEvent:!1}):this._open=t,this._adapter.toggleHostAttribute(S1.attributes.OPEN,this._open))}get duration(){return this._duration}set duration(t){this._duration!==t&&(this._duration=t,this._hideTimeout&&(window.clearTimeout(this._hideTimeout),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration))))}get placement(){return this._placement}set placement(t){this._placement!==t&&(this._placement=t,this._adapter.setHostAttribute(S1.attributes.PLACEMENT,this._placement))}get actionText(){return this._actionText}set actionText(t){var e;t=(e=t==null?void 0:t.trim())!=null?e:"",this._actionText!==t&&(this._actionText=t,this._adapter.setActionText(this._actionText),this._actionText?this._adapter.addActionListener(this._actionListener):this._adapter.removeActionListener(this._actionListener),this._adapter.toggleHostAttribute(S1.attributes.ACTION_TEXT,!!this._actionText,this._actionText))}get dismissible(){return this._dismissible}set dismissible(t){t=!!t,this._dismissible!==t&&(this._dismissible=t,this._dismissible?this._adapter.addCloseListener(this._closeListener):this._adapter.removeCloseListener(this._closeListener),this._adapter.toggleHostAttribute(S1.attributes.DISMISSIBLE,this._dismissible))}get dismissLabel(){return this._dismissLabel}set dismissLabel(t){this._dismissLabel!==t&&(this._dismissLabel=t,this._adapter.setDismissLabel(this._dismissLabel))}get theme(){return this._theme}set theme(t){t!=null||(t=S1.defaults.THEME),this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(S1.attributes.THEME,this._theme))}};var Vb='<template><forge-overlay exportparts="root:overlay" no-anchor persistent><div class="surface" part="surface"><slot name="icon"></slot><div class="message" part="message"><slot></slot></div><forge-button hidden part="action-button" class="action-button"></forge-button><forge-icon-button part="close-button" class="close-button" aria-label="Dismiss" density="medium"><forge-icon name="close"></forge-icon></forge-icon-button></div></forge-overlay></template>',Eb='@keyframes slidein{from{transform:translateY(var(--_toast-slide-origin))}to{transform:translateY(0)}}@keyframes slideout{from{transform:translateY(0)}to{transform:translateY(var(--_toast-slide-origin))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,open,theme,placement,media; @layer base{:host{display:contents}:host([hidden]){display:none}.surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-surface-inverse, #333333));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-surface-inverse, #ffffff));--_toast-offset:var(--forge-toast-offset, var(--forge-spacing-medium, 16px));--_toast-shape:var(--forge-toast-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_toast-elevation:var(--forge-toast-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_toast-action-color:var(--forge-toast-action-color, var(--forge-theme-secondary, #ffc107));--_toast-min-width:var(--forge-toast-min-width, 344px);--_toast-max-width:var(--forge-toast-max-width, 672px);--_toast-min-height:var(--forge-toast-min-height, 48px);--_toast-inline-padding:var(--forge-toast-inline-padding, var(--forge-spacing-medium, 16px));--_toast-spacing:var(--forge-toast-spacing, var(--forge-spacing-xsmall, 8px));--_toast-message-padding:var(--forge-toast-message-padding, var(--forge-spacing-xsmall, 8px));--_toast-enter-duration:var(--forge-toast-enter-duration, var(--forge-animation-duration-medium1, 250ms));--_toast-enter-timing:var(--forge-toast-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_toast-exit-duration:var(--forge-toast-exit-duration, var(--forge-animation-duration-short4, 200ms));--_toast-exit-timing:var(--forge-toast-exit-timing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_toast-slide-origin:var(--forge-toast-slide-origin, 100%)}.surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);position:fixed;display:flex;align-items:center;column-gap:var(--_toast-spacing);border-radius:var(--_toast-shape);padding-inline:var(--_toast-inline-padding);margin:var(--_toast-offset);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);min-height:var(--_toast-min-height);box-sizing:border-box;background:var(--_toast-background);color:var(--_toast-color);box-shadow:var(--_toast-elevation)}.message{flex-grow:1;padding-block:var(--_toast-message-padding);text-overflow:ellipsis;overflow:hidden}forge-button.action-button{--forge-button-primary-color:var(--_toast-action-color)}forge-icon-button.close-button{--forge-icon-button-focus-indicator-color:var(--_toast-color)}:host(:not([dismissible])) .close-button{display:none}.action-button:not([hidden]){margin-inline-end:-8px}:host([dismissible]) .close-button{margin-inline-end:-8px}}@layer theme{:host([theme=primary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-primary, #3f51b5));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-primary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=secondary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-secondary, #ffc107));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-secondary, #000000));--_toast-action-color:var(--_toast-color)}:host([theme=tertiary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-tertiary, #3d5afe));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-tertiary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=success]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-success, #2e7d32));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-success, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=warning]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-warning, #d14900));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-warning, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=error]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-error, #b00020));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-error, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=info]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-info, #1565c0));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-info, #ffffff));--_toast-action-color:var(--_toast-color)}}@layer open{forge-overlay[open] .surface{animation-name:slidein;animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-timing)}forge-overlay[open] .surface.exiting{animation-name:slideout;animation-duration:var(--_toast-exit-duration);animation-timing-function:var(--_toast-exit-timing)}}@layer placement{:host([placement=bottom-start]) .surface{bottom:0;left:0}:host(:is(:not([placement]),[placement=bottom])) .surface{bottom:0;left:50%;translate:-50%}:host([placement=bottom-end]) .surface{bottom:0;right:0}:host([placement=top-start]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:0}:host([placement=top]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:50%;translate:-50%}:host([placement=top-end]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;right:0}}@layer media{@media (prefers-reduced-motion:reduce){forge-overlay[open] .surface{animation-name:fadein}forge-overlay[open] .surface.exiting{animation-name:fadeout}}@media (max-width:599px){:host([placement^=top]) .surface{bottom:auto;top:0}.surface{bottom:0;left:0;right:0;margin:0;translate:none;max-width:none;min-width:auto;border-radius:0}}}',j2=class extends I1(V1(H)){static get observedAttributes(){return Object.values(S1.observedAttributes)}constructor(){super(),j.define($a),L(this,Vb,Eb),this._core=new Fl(new Rl(this))}connectedCallback(){this.hasAttribute("role")||this.getAttribute("aria-hidden")==="true"||this[N]({role:"alert",ariaLive:"assertive",ariaAtomic:"true"}),this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case S1.attributes.OPEN:this.open=p(a);break;case S1.attributes.DURATION:let o=Number(a);this.duration=o&&o>0?o:S1.defaults.DURATION;break;case S1.attributes.PLACEMENT:this.placement=a||S1.defaults.PLACEMENT;break;case S1.attributes.ACTION_TEXT:this.actionText=a;break;case S1.attributes.DISMISSIBLE:this.dismissible=p(a);break;case S1.attributes.DISMISS_LABEL:this.dismissLabel=a;break;case S1.attributes.THEME:this.theme=a;break}}show(){this._core.show()}hide(){return this._core.hide()}static present(l){var h=l,{message:t,element:e,icon:a,className:o,topLayer:n}=h,i=O1(h,["message","element","icon","className","topLayer"]);let c=document.createElement(S1.elementName);if(e?c.appendChild(e):t&&c.append(t),a){let u=document.createElement("forge-icon");Object.assign(u,a),u.slot="icon",c.appendChild(u)}if(o){let u=Array.isArray(o)?o:[o];c.classList.add(...u)}return i&&Object.assign(c,i),(n&&Array.from(z1[w0]).at(-1)||document.body).appendChild(c),c.open=!0,c.addEventListener(S1.events.CLOSE,()=>c.remove()),c}};s([v()],j2.prototype,"open",2),s([v()],j2.prototype,"duration",2),s([v()],j2.prototype,"placement",2),s([v()],j2.prototype,"actionText",2),s([v()],j2.prototype,"dismissible",2),s([v()],j2.prototype,"dismissLabel",2),s([v()],j2.prototype,"theme",2),j2=s([y({name:S1.elementName,dependencies:[mt,Tt,s1,Q]})],j2);function $6(){b(j2)}var Cb=`${x}view-switcher`,b5={ROOT:"forge-view-switcher",VIEW_HIDDEN:"forge-view-switcher__view--hidden",VIEW_SWITCHER_SLIDE:"slide",VIEW_SWITCHER_FADE:"fade"},zb={ROOT:`.${b5.ROOT}`,DEFAULT_SLOT:"slot:not([name])",VIEW_HIDDEN:`.${b5.VIEW_HIDDEN}`},Ab={INDEX:"index",ANIMATION_TYPE:"animation-type"},Bb={DEFAULT_TRANSITION_DURATION:500},et={elementName:Cb,attributes:Ab,classes:b5,selectors:zb,numbers:Bb},y5=(e=>(e.Left="left",e.Right="right",e))(y5||{}),Tb=(a=>(a.None="none",a.Slide="slide",a.Fade="fade",a))(Tb||{});var Ul=class extends I{constructor(t){super(t),this._rootElement=w(t,et.selectors.ROOT),this._slotElement=w(t,et.selectors.DEFAULT_SLOT)}getViewCount(){return this._getViews().length}startViewObserver(t){this._viewObserver=new MutationObserver(t),this._viewObserver.observe(this._component,{childList:!0})}stopViewObserver(){var t;(t=this._viewObserver)==null||t.disconnect()}initializeSlideViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("display"),o===t){e[t].classList.remove(et.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.style.transition="none",a.classList.add(et.classes.VIEW_HIDDEN),a.style.visibility="hidden",o>t?a.style.transform="translate3d(100%, 0, 0)":a.style.transform="translate3d(-100%, 0, 0)"}),window.requestAnimationFrame(()=>{e=this._getViews(),e.forEach((a,o)=>{o!==t&&a.style.removeProperty("transition")})})}initializeFadeViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("transform"),a.style.removeProperty("display"),o===t){a.classList.remove(et.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.classList.add(et.classes.VIEW_HIDDEN),a.style.visibility="hidden"}),e[t]&&(e[t].style.opacity="1")}setActiveView(t){let e=this._getViews();e.forEach((a,o)=>{o!==t&&(a.classList.add(et.classes.VIEW_HIDDEN),a.style.display="none")}),e[t]&&(e[t].classList.remove(et.classes.VIEW_HIDDEN),e[t].style.removeProperty("display"))}hideInactiveViews(t){this._getViews().forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("transform"),a.style.removeProperty("visibility"),o===t){a.classList.remove(et.classes.VIEW_HIDDEN);return}a.classList.add(et.classes.VIEW_HIDDEN),a.style.display="none"})}async transitionToView(t,e,a,o){let n=this._getViews(),i=n[t],l=n[e];return new Promise(h=>{l.style.removeProperty("visibility"),window.requestAnimationFrame(()=>{let c;switch(a){case"slide":this._slideToView(i,l,o),c="transform";break;case"fade":this._fadeToView(i,l),c="opacity";break;default:return}this._animateHeight(i,l),i?i.addEventListener("transitionend",d):l.classList.remove(et.classes.VIEW_HIDDEN);function d(u){u.propertyName===c&&(i.removeEventListener("transitionend",d),l.classList.remove(et.classes.VIEW_HIDDEN),h())}})})}_slideToView(t,e,a){a==="left"?(t&&(t.style.transform="translate3d(-100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)"):(t&&(t.style.transform="translate3d(100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)")}_fadeToView(t,e){t&&(t.style.opacity="0"),e.style.opacity="1"}_animateHeight(t,e){let a=t?this._getViewHeight(t):0,o=this._getViewHeight(e);a!==o&&(this._rootElement.addEventListener("transitionend",this._onRootTransitionEnd.bind(this)),this._setHeight(a),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._setHeight(o)})}))}_onRootTransitionEnd(t){t.propertyName==="height"&&(this._rootElement.removeEventListener("transitionend",this._onRootTransitionEnd),this._rootElement.style.removeProperty("height"))}setAnimationType(t){switch(ge([et.classes.VIEW_SWITCHER_SLIDE,et.classes.VIEW_SWITCHER_FADE],this._component),t){case"slide":this._component.classList.add(et.classes.VIEW_SWITCHER_SLIDE);break;case"fade":this._component.classList.add(et.classes.VIEW_SWITCHER_FADE);break}}_getViews(){return this._slotElement.assignedNodes().filter(t=>t.nodeType===1)}_setHeight(t){this._rootElement.style.height=`${t}px`}_getViewHeight(t){let e=0,a=t.children.length?Array.from(t.children):[t];for(let o of a){let n=window.getComputedStyle(o),i=parseFloat(n.marginTop)+parseFloat(n.marginBottom);e+=Math.ceil(o.offsetHeight+i)}return e}};var Wl=class{constructor(t){this._adapter=t;this._viewCount=0;this._viewIndex=0;this._animationType="none";this._viewsChangedListener=()=>this._onViewsChanged()}initialize(){this._viewCount=this._adapter.getViewCount(),this._adapter.startViewObserver(this._viewsChangedListener),this._adapter.setAnimationType(this._animationType),this._viewCount&&this._initializeAnimationType()}destroy(){this._adapter.stopViewObserver()}_initializeAnimationType(){switch(this._animationType){case"slide":this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.hideInactiveViews(this._viewIndex);break}}_onViewsChanged(){if(this._viewCount=this._adapter.getViewCount(),this._viewCount===0&&(this._viewIndex=0),this._viewCount&&this._initializeAnimationType(),this._viewCount>0&&this._viewIndex>=this._viewCount){let t=this._viewIndex;this._viewIndex=this._viewCount>0?this._viewCount-1:0,this._goToView(t,this._viewCount)}}async _goToView(t,e){if(this._viewCount=O(e)?e:this._adapter.getViewCount(),!(!(this._viewIndex>=0&&this._viewIndex<=this._viewCount-1)||t===this._clampedViewIndex(this._viewIndex,this._viewCount)))switch(this._animationType){case"slide":let o=this._viewIndex>t?"left":"right";await this._adapter.transitionToView(t,this._viewIndex,"slide",o),this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":await this._adapter.transitionToView(t,this._viewIndex,"fade"),this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.setActiveView(this._viewIndex);break}}_clampedViewIndex(t,e){return t<0?t=0:t>e-1&&(t=e>0?e-1:0),t}next(){this.index++}previous(){this.index--}goToStart(){this.index=0}goToEnd(){this.index=this._viewCount-1}get index(){return this._viewIndex}set index(t){if(this._viewIndex!==t){let e=this._viewIndex;this._viewIndex=t,this._goToView(e),this._adapter.setHostAttribute(et.attributes.INDEX,this._viewIndex.toString())}}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._initializeAnimationType(),this._adapter.setAnimationType(this._animationType),this._adapter.setHostAttribute(et.attributes.ANIMATION_TYPE,this._animationType))}};var Sb=`${x}view`,X6={elementName:Sb};var kb="<template><slot></slot></template>",Ob=":host{display:block}:host([hidden]){display:none}",va=class extends H{constructor(){super(),L(this,kb,Ob)}};va=s([y({name:X6.elementName})],va);var Db='<template><div class="forge-view-switcher" part="root"><slot></slot></div></template>',Pb=":host{height:var(--_view-switcher-height);width:var(--_view-switcher-width);display:block}:host([hidden]){display:none}.forge-view-switcher{--_view-switcher-height:var(--forge-view-switcher-height, auto);--_view-switcher-width:var(--forge-view-switcher-width, auto);--_view-switcher-animation-duration:var(--forge-view-switcher-animation-duration, var(--forge-animation-duration-medium2, 300ms));--_view-switcher-animation-easing:var(--forge-view-switcher-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-view-switcher{height:var(--_view-switcher-height);width:var(--_view-switcher-width);position:relative;overflow:hidden;transition-property:height;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing)}.forge-view-switcher ::slotted(.forge-view-switcher__view--hidden){position:absolute;top:0;right:0;bottom:0;left:0}:host(.slide) ::slotted(forge-view){transition-property:transform;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:transform}:host(.fade) ::slotted(forge-view){transition-property:opacity;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:opacity}:host(.fade) ::slotted(.forge-view-switcher__view--hidden){opacity:0}",ha=class extends H{static get observedAttributes(){return[et.attributes.INDEX,et.attributes.ANIMATION_TYPE]}constructor(){super(),L(this,Db,Pb),this._core=new Wl(new Ul(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case et.attributes.INDEX:this.index=$(a);break;case et.attributes.ANIMATION_TYPE:this.animationType=a;break}}next(){this._core.next()}previous(){this._core.previous()}goToStart(){this._core.goToStart()}goToEnd(){this._core.goToEnd()}};s([v()],ha.prototype,"index",2),s([v()],ha.prototype,"animationType",2),ha=s([y({name:et.elementName,dependencies:[va]})],ha);function j6(){b(va)}function Z6(){b(ha)}var Nb=`${x}deprecated-button`,Rb={TYPE:"type",DISABLED:"disabled",FULL_WIDTH:"full-width"},Fb={BUTTON:"button,a"},N2={elementName:Nb,attributes:Rb,selectors:Fb};var Ub='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Wb=':host{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-display:var(--forge-button-display, inline-grid);--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-0));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed);--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent;border-radius:var(--_button-shape)}:host([hidden]){display:none}::slotted(:is(button,a)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);grid-auto-flow:column;align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing);--forge-icon-font-size:1.25em}::slotted(:is(button,a))::-moz-focus-inner{padding:0;border:0}::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}::slotted(:is(button,a)):active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}::slotted(a){text-decoration:none;--forge-typography-link-text-decoration:none}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host(:is([type*=unelevated],[type*=raised])) ::slotted(:is(button,a)){--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host(:is([type*=unelevated],[type*=raised])) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([type*=raised]) ::slotted(:is(button,a)){--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):active{--_button-shadow:var(--_button-raised-active-shadow)}:host([type*=outlined]) ::slotted(:is(button,a)){--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([full-width]){width:100%}:host(:is([dense],[type*=dense])) ::slotted(:is(button,a)){--_button-height:var(--_button-dense-height)}:host([disabled]){cursor:var(--_button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host([type*=outlined][disabled]) ::slotted(button[disabled]){--_button-border-color:var(--_button-disabled-border-color)}:host(:is([type*=unelevated],[type*=raised])[disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host([type*=raised][disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}',Ro=class extends H{constructor(){super();this._buttonOrAnchorElement=null;this._disabled=!1;this._fullWidth=!1;this._buttonChangeListener=this._onButtonChange.bind(this);this._keydownListener=e=>this._onKeydown(e);L(this,Ub,Wb),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,g1.elementName),this._stateLayer=w(this,L1.elementName)}static get observedAttributes(){return Object.values(N2.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._buttonChangeListener),this.children.length?this._initialize():Ga(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case N2.attributes.TYPE:this.type=o;return;case N2.attributes.DISABLED:this.disabled=p(o);return;case N2.attributes.FULL_WIDTH:this.fullWidth=p(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onButtonChange(){this._detachButton(),this._initialize()}_initialize(){this._buttonOrAnchorElement=this.querySelector(N2.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;W(this,e,N2.attributes.DISABLED)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this.setAttribute(N2.attributes.TYPE,this._type))}get disabled(){return this._disabled}set disabled(e){var a;this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(N2.attributes.DISABLED,this._disabled),this.toggleAttribute(N2.attributes.DISABLED,this._disabled))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this.toggleAttribute(N2.attributes.FULL_WIDTH,this._fullWidth))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Ro=s([y({name:N2.elementName,dependencies:[t1,i1]})],Ro);var Q6=class extends j1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e,a;let t=document.createElement(N2.elementName);return this._buttonElement=document.createElement("button"),this._buttonElement.type=((e=this._config.options)==null?void 0:e.type)||"button",this._buttonElement.textContent=((a=this._config.options)==null?void 0:a.text)||"",t.appendChild(this._buttonElement),t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",a=>t(a))}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",a=>t(a))}};function J6(){b(Ro)}var Gb=`${x}deprecated-icon-button`,tm={DISABLED:"disabled",TOGGLE:"toggle",IS_ON:"is-on",DENSITY_LEVEL:"density-level"},Yb=S(m({},tm),{ON_ICON:"forge-icon-button-on"}),Kb={BUTTON:"button,a",ICON_LIKE:"button > i,span,svg,img,forge-icon"},qb={TOGGLE:"forge-icon-button-toggle"},jt={elementName:Gb,observedAttributes:tm,attributes:Yb,selectors:Kb,events:qb};var $b='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Xb=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed);--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent;border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end)}:host([hidden]){display:none}::slotted(:is(button,a)){position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing);font-size:var(--_icon-button-icon-size);height:var(--_icon-button-size);width:var(--_icon-button-size)}::slotted(a){text-decoration:none;color:var(--_icon-button-icon-color)!important}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}forge-focus-indicator{--forge-focus-indicator-outward-offset:0px;--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([dense],[density=large]):not(:is([density=medium],[density-level]))){--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding);--forge-icon-font-size:var(--_icon-button-icon-size)}:host([dense]:not([density=large]):not([density=small]):is([density=medium],[density-level])){--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([toggle]:is([on],[is-on]):not([is-on=false])){--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color);--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-primary-container-low, #e8eaf6))}",Fo=class extends H{constructor(){super();this._disabled=!1;this._toggle=!1;this._isOn=!1;this._densityLevel=0;this._buttonOrAnchorElement=null;this._slotChangeListener=this._onSlotChange.bind(this);this._keydownListener=this._onKeydown.bind(this);this._toggleClickListener=this._onToggle.bind(this);L(this,$b,Xb),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,g1.elementName),this._stateLayer=w(this,L1.elementName)}static get observedAttributes(){return Object.values(jt.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._slotChangeListener),this.children.length?this._initialize():Ga(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case jt.attributes.DISABLED:this.disabled=p(o);return;case jt.attributes.TOGGLE:this.toggle=p(o);return;case jt.attributes.IS_ON:this.isOn=p(o);return;case jt.attributes.DENSITY_LEVEL:this.densityLevel=$(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onSlotChange(){this._detachButton(),this._initialize()}_onToggle(){this.isOn=!this._isOn,this.dispatchEvent(new CustomEvent("forge-icon-button-toggle",{bubbles:!0,composed:!0,detail:this._isOn}))}_initialize(){this._buttonOrAnchorElement=this.querySelector(jt.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._toggle&&this._initializeToggle(),this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;this.toggleAttribute(jt.attributes.DISABLED,e)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}_initializeToggle(){this._buttonOrAnchorElement&&(this._buttonOrAnchorElement.addEventListener("click",this._toggleClickListener),this._syncToggleState())}_destroyToggle(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("click",this._toggleClickListener)}_syncToggleState(){let e=Array.from(this.querySelectorAll(jt.selectors.ICON_LIKE)),a=e.find(n=>n.hasAttribute(jt.attributes.ON_ICON)),o=e.filter(n=>n!==a);a==null||a.toggleAttribute("hidden",!this._isOn),o.forEach(n=>n.toggleAttribute("hidden",this._isOn)),this.toggleAttribute(jt.attributes.IS_ON,this._isOn)}get disabled(){return this._disabled}set disabled(e){var a;e=!!e,this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(jt.attributes.DISABLED,this._disabled),this.toggleAttribute(jt.attributes.DISABLED,this._disabled))}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this.isConnected&&(this._toggle?this._initializeToggle():this._destroyToggle()),this.toggleAttribute(jt.attributes.TOGGLE,this._toggle))}get isOn(){return this._isOn}set isOn(e){e=!!e,this._isOn!==e&&(this._isOn=e,this.isConnected&&this._syncToggleState())}get densityLevel(){return this._densityLevel}set densityLevel(e){this._densityLevel!==e&&(this._densityLevel=e,this.setAttribute(jt.attributes.DENSITY_LEVEL,String(this._densityLevel)))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Fo=s([y({name:jt.elementName,dependencies:[Q,t1,i1]})],Fo);var em=class extends j1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e;let t=document.createElement(jt.elementName);if(this._buttonElement=document.createElement("button"),this._buttonElement.type="button",t.appendChild(this._buttonElement),(e=this._config.options)!=null&&e.tooltip){let a=document.createElement("forge-tooltip");a.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(a.position=this._config.options.tooltipPosition),t.appendChild(a)}return t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",t)}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",t)}get iconElement(){return this._iconElement}get disabled(){var t;return!!((t=this._buttonElement)!=null&&t.disabled)}set disabled(t){this._buttonElement&&(this._buttonElement.disabled=t)}_configure(){this._configureIcon()}_configureIcon(){var e,a,o,n;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((a=this._config.options)==null?void 0:a.iconType)||"component"){case"font":let i=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[Pe];(o=this._buttonElement)==null||o.classList.add(...i),this._buttonElement&&(this._buttonElement.textContent=this._config.options.iconName);break;case"component":this._iconElement=document.createElement(p1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&this._iconElement.classList.add(...this._config.options.iconClass),(n=this._buttonElement)==null||n.appendChild(this._iconElement);break}}};function am(){b(Fo)}var Gl=class extends I{constructor(t){super(t)}startButtonObserver(){this._buttonChangeObserver=new MutationObserver(t=>{let e=t.reduce((a,{addedNodes:o})=>{let n=Array.from(o).filter(i=>i.nodeType===Node.ELEMENT_NODE).map(i=>i.nodeName.toLowerCase()===Bt.elementName?i:i.querySelector(Bt.elementName)).filter(i=>!!i);return a.concat(n)},[]);e.length&&(e.forEach(a=>{a.variant=this._component.variant,a.theme=this._component.theme,a.disabled=this._component.disabled,a.dense=this._component.dense}),this.setPill(this._component.pill))}),this._buttonChangeObserver.observe(this._component,{childList:!0,subtree:!0})}destroyButtonObserver(){var t;(t=this._buttonChangeObserver)==null||t.disconnect(),this._buttonChangeObserver=void 0}setVariant(t){this._getButtons().forEach(a=>a.variant=t)}setTheme(t){this._getButtons().forEach(a=>a.theme=t)}setDisabled(t){this._getButtons().forEach(a=>a.disabled=t)}setDense(t){this._getButtons().forEach(a=>a.dense=t)}setPill(t){let e=this._getButtons();e.length>2&&Array.from(e).slice(1,e.length-1).filter(({pill:n})=>n).forEach(n=>n.pill=!1);let a=e[0];a&&(a.pill=t);let o=e[e.length-1];o&&(o.pill=t)}_getButtons(){return this._component.querySelectorAll(Bt.elementName)}};var jb=`${x}split-button`,Zb={VARIANT:"variant",THEME:"theme",DISABLED:"disabled",DENSE:"dense",PILL:"pill"},Qb={DEFAULT_VARIANT:"text",DEFAULT_THEME:"primary"},_t={elementName:jb,attributes:Zb,defaults:Qb};var Yl=class{constructor(t){this._adapter=t;this._variant=_t.defaults.DEFAULT_VARIANT;this._theme=_t.defaults.DEFAULT_THEME;this._disabled=!1;this._dense=!1;this._pill=!1}initialize(){this._adapter.startButtonObserver(),this._adapter.setVariant(this._variant),this._adapter.setTheme(this._theme),this._adapter.setDisabled(this._disabled),this._adapter.setDense(this._dense),this._adapter.setPill(this._pill)}destroy(){this._adapter.destroyButtonObserver()}get variant(){return this._variant}set variant(t){this._variant!==t&&(this._variant=t!=null?t:_t.defaults.DEFAULT_VARIANT,this._adapter.setVariant(t),this._adapter.setHostAttribute(_t.attributes.VARIANT,this._variant))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:_t.defaults.DEFAULT_THEME,this._adapter.setTheme(this._theme),this._adapter.setHostAttribute(_t.attributes.THEME,this._theme))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(_t.attributes.DISABLED,this._disabled))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._dense),this._adapter.toggleHostAttribute(_t.attributes.DENSE,this._dense))}get pill(){return this._pill}set pill(t){this._pill!==t&&(this._pill=t,this._adapter.setPill(this._pill),this._adapter.toggleHostAttribute(_t.attributes.PILL,this._pill))}};var Jb="<template><slot></slot></template>",ty=":host{--_split-button-min-width:var(--forge-split-button-min-width, 0);--_split-button-gap:var(--forge-split-button-gap, var(--forge-border-thin, 1px));--_split-button-focus-indicator-offset:var(--forge-split-button-focus-indicator-offset, var(--forge-button-focus-indicator-offset, 4px));--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, var(--_split-button-gap));--_split-button-focus-indicator-offset-adjusted:calc(var(--_split-button-focus-indicator-offset) + var(--_split-button-focus-indicator-divider-offset) * 2)}:host{display:inline-flex;justify-content:center;align-items:center}:host([hidden]){display:none}::slotted(*){--forge-button-min-width:var(--_split-button-min-width);--forge-button-focus-indicator-offset:var(--_split-button-focus-indicator-offset)}::slotted(:first-child){--forge-button-shape-start-end-radius:0;--forge-button-shape-end-end-radius:0;--forge-focus-indicator-shape-start-end:0;--forge-focus-indicator-shape-end-end:0;--forge-focus-indicator-offset-inline:0 var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:not(:first-child):not(:last-child)){--forge-button-shape:0;--forge-focus-indicator-shape:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:last-child){--forge-button-shape-start-start-radius:0;--forge-button-shape-end-start-radius:0;--forge-focus-indicator-shape-start-start:0;--forge-focus-indicator-shape-end-start:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted) 0}:host([variant=outlined]){--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, 0px)}:host([variant=outlined]) ::slotted(:not(:first-child)){margin-inline-start:calc(-1 * var(--_split-button-gap))}:host(:is([variant=tonal],[variant=filled],[variant=raised],:not([variant]))) ::slotted(:not(:last-child)){margin-inline-end:var(--_split-button-gap)}",Ce=class extends H{static get observedAttributes(){return[_t.attributes.VARIANT,_t.attributes.THEME,_t.attributes.DISABLED,_t.attributes.DENSE,_t.attributes.PILL]}constructor(){super(),L(this,Jb,ty),this._core=new Yl(new Gl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case _t.attributes.VARIANT:this.variant=a;break;case _t.attributes.THEME:this.theme=a;break;case _t.attributes.DISABLED:this.disabled=p(a);break;case _t.attributes.DENSE:this.dense=p(a);break;case _t.attributes.PILL:this.pill=p(a);break}}};s([v()],Ce.prototype,"variant",2),s([v()],Ce.prototype,"theme",2),s([v()],Ce.prototype,"disabled",2),s([v()],Ce.prototype,"dense",2),s([v()],Ce.prototype,"pill",2),Ce=s([y({name:_t.elementName,dependencies:[Tt]})],Ce);function dB1(){b(Ce)}function fB1(){let r="0123456789ABCDEF".split(""),t="#";for(let e=0;e<6;e++)t+=r[Math.floor(Math.random()*16)];return t}function OT1(){ov(),xv(),hc(),wh(),Rh(),_c(),yv(),np(),go(),sp(),oi(),vp(),wp(),up(),pc(),Mc(),Vc(),$p(),jp(),zc(),Zc(),tp(),Qc(),Zp(),ad(),rd(),id(),dp(),fc(),hd(),ev(),Gc(),ud(),bd(),fv(),Ev(),Q3(),yd(),Md(),Ad(),Hd(),Fc(),Sd(),ec(),$h(),qh(),vc(),kd(),Od(),md(),pd(),J3(),Yd(),Kd(),dh(),Pd(),Qd(),Jh(),uc(),Bc(),Sc(),Wd(),Zd(),t6(),ac(),o6(),l6(),H6(),V6(),_v(),E6(),z6(),Pc(),N6(),P6(),T6(),qc(),K6(),$6(),wc(),gh(),j6(),Z6()}function DT1(){J6(),am()}export{_a as ACCORDION_CONSTANTS,pv as ANIMATION_FILL,Y1 as APP_BAR_CONSTANTS,Fe as APP_BAR_HELP_BUTTON_CONSTANTS,ro as APP_BAR_MENU_BUTTON_CONSTANTS,gt as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,x1 as APP_BAR_PROFILE_BUTTON_CONSTANTS,Dt as APP_BAR_SEARCH_CONSTANTS,a4 as ARIA_CONTROLS_PLACEHOLDER_ID,v1 as AUTOCOMPLETE_CONSTANTS,Ba as AVATAR_CONSTANTS,N4 as AVATAR_TAG_NAME,Ln as AccordionAdapter,fa as AccordionComponent,In as AccordionCore,An as AppBarAdapter,fe as AppBarComponent,Bn as AppBarCore,Li as AppBarHelpButtonAdapter,j0 as AppBarHelpButtonComponent,Ii as AppBarHelpButtonCore,ho as AppBarMenuButtonComponent,ri as AppBarNotificationButtonAdapter,Le as AppBarNotificationButtonComponent,ni as AppBarNotificationButtonCore,Si as AppBarProfileButtonAdapter,Kt as AppBarProfileButtonComponent,ki as AppBarProfileButtonCore,Sn as AppBarSearchAdapter,h0 as AppBarSearchComponent,Tn as AppBarSearchCore,vs as AutocompleteAdapter,pt as AutocompleteComponent,rp as AutocompleteComponentDelegate,hs as AutocompleteCore,ep as AutocompleteMode,Ie as AvatarComponent,lt as BACKDROP_CONSTANTS,CN as BADGE_CONSTANTS,S4 as BADGE_TAG_NAME,Lt as BANNER_CONSTANTS,Q1 as BASE_DRAWER_CONSTANTS,Y as BASE_FIELD_CONSTANTS,H2 as BASE_SELECT_CONSTANTS,T1 as BOTTOM_SHEET_CONSTANTS,k2 as BUTTON_AREA_CONSTANTS,Bt as BUTTON_CONSTANTS,k3 as BUTTON_FORM_ATTRIBUTES,Jt as BUTTON_TOGGLE_CONSTANTS,U1 as BUTTON_TOGGLE_GROUP_CONSTANTS,Ge as BackdropComponent,He as BadgeComponent,Nh as BadgeComponentDelegate,cs as BannerAdapter,g0 as BannerComponent,ps as BannerCore,I as BaseAdapter,H as BaseComponent,j1 as BaseComponentDelegate,na as BaseDrawerAdapter,qe as BaseDrawerComponent,ia as BaseDrawerCore,Mt as BaseField,_o as BaseFieldAdapter,fo as BaseFieldCore,Oo as BaseSelectAdapter,L2 as BaseSelectComponent,Do as BaseSelectCore,_s as BottomSheetAdapter,Ye as BottomSheetComponent,fs as BottomSheetCore,Ci as ButtonAdapter,xs as ButtonAreaAdapter,Sa as ButtonAreaComponent,bs as ButtonAreaCore,Tt as ButtonComponent,Ai as ButtonComponentDelegate,zi as ButtonCore,Pi as ButtonToggleAdapter,le as ButtonToggleComponent,Ni as ButtonToggleCore,Ri as ButtonToggleGroupAdapter,t2 as ButtonToggleGroupComponent,Fi as ButtonToggleGroupCore,g as CALENDAR_CONSTANTS,qp as CALENDAR_DROPDOWN_CONSTANTS,T as CALENDAR_MENU_CONSTANTS,R31 as CARD_CONSTANTS,r5 as CARD_TAG_NAME,a3 as CDN_BASE_URL,B1 as CHECKBOX_CONSTANTS,m1 as CHIP_CONSTANTS,wt as CHIP_FIELD_CONSTANTS,a2 as CHIP_SET_CONSTANTS,St as CIRCULAR_PROGRESS_CONSTANTS,u1 as COLOR_PICKER_CONSTANTS,x as COMPONENT_NAME_PREFIX,Bs as CalendarAdapter,c1 as CalendarComponent,Kp as CalendarComponentDelegate,Ts as CalendarCore,yo as CalendarDropdown,Hs as CalendarMenuAdapter,Ke as CalendarMenuComponent,Ls as CalendarMenuCore,bp as CalendarMonthFocus,oa as CardComponent,Ll as CellAlign,Ui as CheckboxAdapter,e2 as CheckboxComponent,Cc as CheckboxComponentDelegate,Wi as CheckboxCore,is as ChipAdapter,Ht as ChipComponent,ss as ChipCore,os as ChipFieldAdapter,Ta as ChipFieldComponent,Jc as ChipFieldComponentDelegate,rs as ChipFieldCore,xo as ChipSetComponent,Ss as CircularProgressAdapter,O2 as CircularProgressComponent,ks as CircularProgressCore,Os as ColorPickerAdapter,ce as ColorPickerComponent,Ns as ColorPickerCore,i5 as ColorPickerValueType,y2 as DATE_PICKER_CONSTANTS,Ft as DATE_RANGE_PICKER_CONSTANTS,n5 as DEFAULT_COLOR,mn as DEFAULT_DATE_MASK,qo as DEFERRED_LABEL_TARGET,N2 as DEPRECATED_BUTTON_CONSTANTS,jt as DEPRECATED_ICON_BUTTON_CONSTANTS,D as DIALOG_CONSTANTS,wo as DIVIDER_CONSTANTS,vd as DRAWER_CONSTANTS,ua as DateInputMask,Fs as DatePickerAdapter,Io as DatePickerComponent,od as DatePickerComponentDelegate,Us as DatePickerCore,Ws as DatePickerRange,vt as DateRange,nd as DateRangeComponentDelegate,Gs as DateRangePickerAdapter,ra as DateRangePickerComponent,Ys as DateRangePickerCore,xr as DayOfWeek,an as Deferred,Ro as DeprecatedButtonComponent,Q6 as DeprecatedButtonComponentDelegate,Fo as DeprecatedIconButtonComponent,em as DeprecatedIconButtonComponentDelegate,gs as DialogAdapter,z1 as DialogComponent,us as DialogCore,z2 as DismissibleStack,Z0 as DividerComponent,Vo as DrawerComponent,dv as EASING,D1 as EXPANSION_PANEL_CONSTANTS,Mn as ExpansionPanelAdapter,Qt as ExpansionPanelComponent,Hn as ExpansionPanelCore,V as FIELD_CONSTANTS,_1 as FILE_PICKER_CONSTANTS,J1 as FLOATING_ACTION_BUTTON_CONSTANTS,g1 as FOCUS_INDICATOR_CONSTANTS,Ji as FieldAdapter,N1 as FieldComponent,ts as FieldCore,$s as FilePickerAdapter,$2 as FilePickerComponent,wd as FilePickerComponentDelegate,Xs as FilePickerCore,js as FloatingActionButtonAdapter,_0 as FloatingActionButtonComponent,xd as FloatingActionButtonComponentDelegate,Zs as FloatingActionButtonCore,Cn as FocusIndicatorAdapter,t1 as FocusIndicatorComponent,zn as FocusIndicatorCore,at as FormFieldComponentDelegate,Qr as GlobalConfiguration,P3 as HAS_MERIDIEM_REGEX,e1 as ICON_BUTTON_CONSTANTS,Pe as ICON_CLASS_NAME,p1 as ICON_CONSTANTS,_n as ICON_REGISTRY_KEY,sv as INITIAL_ORIGIN_SCALE,Ao as INLINE_MESSAGE_CONSTANTS,kH as INPUT_ARIA_ATTRIBUTES,OH as INPUT_PROPERTIES,Fm as ISO_8601_REGEX,Um as ISO_TIMEZONE_REGEX,fn as IconAdapter,On as IconButtonAdapter,s1 as IconButtonComponent,Vv as IconButtonComponentDelegate,kn as IconButtonCore,Q as IconComponent,N0 as IconComponentDelegate,bn as IconCore,j as IconRegistry,Bo as InlineMessageComponent,dt as KEYBOARD_SHORTCUT_CONSTANTS,e3 as KEYSTROKE_DEBOUNCE_THRESHOLD,Oa as KeyComponent,$e as KeyItemComponent,Qs as KeyboardShortcutAdapter,M2 as KeyboardShortcutComponent,Js as KeyboardShortcutCore,ot as LABEL_CONSTANTS,pe as LABEL_VALUE_CONSTANTS,Rt as LINEAR_PROGRESS_CONSTANTS,E1 as LIST_CONSTANTS,h1 as LIST_ITEM_CONSTANTS,Zi as LabelAdapter,ve as LabelComponent,Qi as LabelCore,To as LabelValueComponent,Td as LabelValueComponentDelegate,ne as LinearProgressComponent,ii as ListAdapter,ct as ListComponent,si as ListCore,li as ListItemAdapter,Z1 as ListItemComponent,vi as ListItemCore,o1 as MENU_CONSTANTS,g4 as MINIMUM_PRESS_MS,dd as MINI_DRAWER_CONSTANTS,Eo as MODAL_DRAWER_CONSTANTS,Mi as MenuAdapter,yt as MenuComponent,Hi as MenuCore,q1 as MeterComponent,Ut as MeterGroupComponent,zo as MiniDrawerComponent,Ks as ModalDrawerAdapter,Co as ModalDrawerComponent,qs as ModalDrawerCore,w5 as NAVIGATION_KEYS,C2 as OPEN_ICON_CONSTANTS,R as OPTION_CONSTANTS,sa as OPTION_GROUP_CONSTANTS,z as OVERLAY_CONSTANTS,ao as OpenIconComponent,al as OptionAdapter,$1 as OptionComponent,ol as OptionCore,je as OptionGroupComponent,ap as OptionType,Yn as OverlayAdapter,mt as OverlayComponent,qn as OverlayCore,lv as PADDING,Dd as PAGE_STATE_CONSTANTS,Z as PAGINATOR_CONSTANTS,Ym as PARSEABLE_TIME_FORMAT,J as POPOVER_CONSTANTS,Qh as POPOVER_HOVER_TIMEOUT,iv as PRESS_GROW_MS,cv as PRESS_PSEUDO,X as PROFILE_CARD_CONSTANTS,So as PageStateComponent,el as PaginatorAdapter,n2 as PaginatorComponent,tl as PaginatorCore,mv as PointerState,ci as PopoverAdapter,F1 as PopoverComponent,di as PopoverCore,Vi as ProfileCardAdapter,Yt as ProfileCardComponent,Ei as ProfileCardCore,b1 as RADIO_CONSTANTS,uo as RADIO_GROUP_CONSTANTS,SH as REFLECTIVE_ARIA_ATTRIBUTES,Yi as RadioAdapter,m2 as RadioComponent,Ki as RadioCore,qi as RadioGroupAdapter,Q0 as RadioGroupComponent,$i as RadioGroupCore,ko as SCAFFOLD_CONSTANTS,$t as SELECT_CONSTANTS,Ze as SELECT_DROPDOWN_CONSTANTS,wi as SKELETON_CONSTANTS,u2 as SKIP_LINK_CONSTANTS,E as SLIDER_CONSTANTS,hv as SOFT_EDGE_CONTAINER_RATIO,vv as SOFT_EDGE_MINIMUM_SIZE,_t as SPLIT_BUTTON_CONSTANTS,tt as SPLIT_VIEW_CONSTANTS,P as SPLIT_VIEW_PANEL_CONSTANTS,Wt as STACK_CONSTANTS,L1 as STATE_LAYER_CONSTANTS,F as STEPPER_CONSTANTS,k as STEP_CONSTANTS,vo as SUPPORTS_POPOVER,l1 as SWITCH_CONSTANTS,Xe as ScaffoldComponent,rl as SelectAdapter,Ve as SelectComponent,e6 as SelectComponentDelegate,nl as SelectCore,sl as SelectDropdownAdapter,f0 as SelectDropdownComponent,il as SelectDropdownCore,qd as SelectOptionType,$0 as SkeletonComponent,Po as SkipLinkComponent,ut as SliderComponent,s6 as SliderComponentDelegate,S3 as SlottedElementAdapter,Il as SortDirection,Gl as SplitButtonAdapter,Ce as SplitButtonComponent,Yl as SplitButtonCore,wl as SplitViewAdapter,c6 as SplitViewAnimatingLayer,Ee as SplitViewComponent,ul as SplitViewCore,gl as SplitViewPanelAdapter,It as SplitViewPanelComponent,ml as SplitViewPanelCore,_l as StackAdapter,de as StackComponent,fl as StackCore,Vn as StateLayerAdapter,i1 as StateLayerComponent,oo as StateLayerCoords,En as StateLayerCore,bl as StepAdapter,Xt as StepComponent,yl as StepCore,Ml as StepperAdapter,D2 as StepperComponent,Hl as StepperCore,Xi as SwitchAdapter,qt as SwitchComponent,Dc as SwitchComponentDelegate,ji as SwitchCore,_ as TABLE_CONSTANTS,P1 as TAB_BAR_CONSTANTS,G1 as TAB_CONSTANTS,C1 as TEXT_FIELD_CONSTANTS,K as TIME_PICKER_CONSTANTS,S1 as TOAST_CONSTANTS,gr as TOOLBAR_CONSTANTS,n1 as TOOLTIP_CONSTANTS,nv as TOUCH_DELAY_MS,Xm as TWELVE_HOUR_TIME_MASK,jm as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,nn as TWELVE_HOUR_TIME_REGEX,Zm as TWENTY_FOUR_HOUR_TIME_MASK,Qm as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,ja as TWENTY_FOUR_HOUR_TIME_REGEX,Al as TabAdapter,Tl as TabBarAdapter,I2 as TabBarComponent,Sl as TabBarCore,P2 as TabComponent,Bl as TabCore,Vl as TableAdapter,X1 as TableComponent,zl as TableCore,tb as TableFilterType,Cl as TableRow,es as TextFieldAdapter,m0 as TextFieldComponent,J0 as TextFieldComponentDelegate,as as TextFieldCore,un as TimeInputMask,kl as TimePickerAdapter,R1 as TimePickerComponent,Y6 as TimePickerComponentDelegate,Nl as TimePickerCore,Rl as ToastAdapter,j2 as ToastComponent,Fl as ToastCore,se as ToolbarComponent,$n as TooltipAdapter,d1 as TooltipComponent,jn as TooltipCore,X6 as VIEW_CONSTANTS,et as VIEW_SWITCHER_CONSTANTS,y5 as ViewAnimationDirection,va as ViewComponent,Ul as ViewSwitcherAdapter,Tb as ViewSwitcherAnimationType,ha as ViewSwitcherComponent,Wl as ViewSwitcherCore,$3 as awaitIconDefinition,n0 as canUserHoverElements,B3 as checkVisibility,hl as clampSize,m6 as clearState,s4 as cloneAttributes,Wm as cloneProperties,Gm as cloneValidationMessage,a5 as coerceDateFromValue,ga as coerceStringToArray,y6 as createOverlay,xn as createSanitizedSvg,O3 as createSvgFromString,E3 as createUserInteractionListener,ov as defineAccordionComponent,xv as defineAppBarComponent,hc as defineAppBarHelpButtonComponent,wh as defineAppBarMenuButtonComponent,Rh as defineAppBarNotificationButtonComponent,_c as defineAppBarProfileButtonComponent,yv as defineAppBarSearchComponent,np as defineAutocompleteComponent,go as defineAvatarComponent,sp as defineBackdropComponent,oi as defineBadgeComponent,vp as defineBannerComponent,wp as defineBottomSheetComponent,up as defineButtonAreaComponent,pc as defineButtonComponent,Mc as defineButtonToggleComponent,Vc as defineButtonToggleGroupComponent,$p as defineCalendarComponent,Yl1 as defineCalendarMenuComponent,jp as defineCardComponent,zc as defineCheckboxComponent,Zc as defineChipComponent,tp as defineChipFieldComponent,Qc as defineChipSetComponent,Zp as defineCircularProgressComponent,ad as defineColorPickerComponent,OT1 as defineComponents,rd as defineDatePickerComponent,id as defineDateRangePickerComponent,J6 as defineDeprecatedButtonComponent,DT1 as defineDeprecatedComponents,am as defineDeprecatedIconButtonComponent,dp as defineDialogComponent,fc as defineDividerComponent,hd as defineDrawerComponent,ev as defineExpansionPanelComponent,Gc as defineFieldComponent,ud as defineFilePickerComponent,bd as defineFloatingActionButtonComponent,fv as defineFocusIndicatorComponent,Ev as defineIconButtonComponent,Q3 as defineIconComponent,yd as defineInlineMessageComponent,Md as defineKeyComponent,Hd as defineKeyItemComponent,Ad as defineKeyboardShortcutComponent,Fc as defineLabelComponent,Sd as defineLabelValueComponent,ec as defineLinearProgressComponent,$h as defineListComponent,qh as defineListItemComponent,vc as defineMenuComponent,kd as defineMeterComponent,Od as defineMeterGroupComponent,md as defineMiniDrawerComponent,pd as defineModalDrawerComponent,J3 as defineOpenIconComponent,Yd as defineOptionComponent,Kd as defineOptionGroupComponent,dh as defineOverlayComponent,Pd as definePageStateComponent,Qd as definePaginatorComponent,Jh as definePopoverComponent,uc as defineProfileCardComponent,Bc as defineRadioComponent,Sc as defineRadioGroupComponent,Wd as defineScaffoldComponent,Zd as defineSelectComponent,t6 as defineSelectDropdownComponent,ac as defineSkeletonComponent,o6 as defineSkipLinkComponent,l6 as defineSliderComponent,dB1 as defineSplitButtonComponent,H6 as defineSplitViewComponent,Ob1 as defineSplitViewPanelComponent,V6 as defineStackComponent,_v as defineStateLayerComponent,E6 as defineStepComponent,z6 as defineStepperComponent,Pc as defineSwitchComponent,N6 as defineTabBarComponent,P6 as defineTabComponent,T6 as defineTableComponent,qc as defineTextFieldComponent,K6 as defineTimePickerComponent,$6 as defineToastComponent,wc as defineToolbarComponent,gh as defineTooltipComponent,j6 as defineViewComponent,Z6 as defineViewSwitcherComponent,w0 as dialogStack,Ed as elementAcceptsTextInput,rv as elementName,z3 as elementsOverlapping,yn as emulateUserToggle,i4 as eventIncludesArrowKey,br as eventIncludesDate,Op as eventIncludesElement,j3 as fetchIconContent,df as fixKey,qa as forgeLabelRef,L3 as formatDate,T0 as forwardAttributes,wa as frame,Q4 as getAccessibleHeader,Gp as getAllYearOptions,q3 as getCachedIcon,Sp as getClearButton,f5 as getCurrentTimeOfDayMillis,g5 as getCursor,j4 as getDateElement,r2 as getDateId,ka as getDateRangeFromDates,Vp as getDateRow,Is as getDateSpacerElement,Rp as getDatesFromDateRange,zs as getDatesInRange,Ip as getDayElement,Yu as getDayId,e5 as getEventDescriptions,Cp as getEventElement,Ep as getEventWrapperElement,X4 as getEventWrapperId,As as getEventsOnDate,yr as getFirstDateOfWeek,V41 as getFirstDayOfMonth,Mp as getFirstDayOfWeekForLocale,Tp as getFooter,Z2 as getFormState,E2 as getFormValue,ys as getGrid,_p as getGridItems,b6 as getHandleIcon,Z4 as getHeader,Mr as getIndexOfDate,e4 as getLastDateOfMonth,Dp as getLastDateOfWeek,xp as getList,Ms as getListItems,yp as getLocalizedDayOfMonth,$4 as getLocalizedDayOfWeek,aa as getLocalizedMonth,u0 as getLocalizedYear,Cs as getMinAndMaxDates,pf as getModiferKeysString,Ap as getMonthButtonContent,t5 as getMonthDates,I3 as getMonthLength,Up as getMonthOptions,Yp as getMultipleFromRange,DH as getPartPrefixedAttributes,Da as getPixelDimension,fp as getScrollSpy,op as getSelectedOption,Vs as getSortedDaysOfWeek,dl as getSplitViewPanelSibling,kp as getTodayButton,zp as getTooltip,Q2 as getValidationMessage,pl as getValuenow,I41 as getWeekDates,Hp as getWeekendDaysForLocale,Bp as getYearButtonContent,Wp as getYearOptions,x6 as handleBoundariesAfterResize,cl as handleBoundariesDuringResize,ds as hideBackdrop,V3 as highlightTextHTML,W6 as hoursToMillis,p6 as initState,J2 as inputType,r1 as internals,w2 as isDisabled,nt as isFocusable,g2 as isInMonth,Ku as isInRange,A3 as isInstanceOf,xc as isLabelAware,d5 as isOptionGroupObject,Df as isOptionObject,wr as isOptionType,o4 as isPointerOverElement,Lp as isRtlLocale,D3 as isSafeSvg,xt as isSameDate,p5 as isSelectOptionType,bo as isSelected,F3 as isSupportedTimeFormat,Pp as isToday,w6 as keyboardResize,Xo as locateElementById,rn as locateTargetHeuristic,zd as matchKeyCombination,_6 as maxResize,cE1 as mergeDateWithTime,F6 as millisToHours,Dl as millisToMinutes,U6 as millisToMinutesClamped,fb as millisToSeconds,u5 as millisToSecondsClamped,X2 as millisToTimeString,u6 as minResize,Pl as minutesToMillis,ur as optionEqualPredicate,G0 as overlayStack,qu as parseDateOffset,H3 as parseDateString,Cd as parseKeyCombinations,_x as parseSize,Fp as parseYearRange,C3 as percentToPixels,HH as pixelsToPercent,g6 as pointerResize,t3 as prefersReducedMotion,T3 as proxyShadowScrollEvent,fB1 as randomHexColor,_r as removeAllExceptLastChild,X3 as removeIconListener,Xa as replaceElement,f6 as resizeSibling,r4 as roundByDPR,LH as safeMax,A0 as safeMin,Z3 as sanitizeExternalType,on as scaleValue,_5 as secondsToMillis,G2 as setAriaControls,N as setDefaultAria,d6 as setState,J4 as setTabindexOnElement,b2 as setValidity,o5 as shouldHandleEvent,ms as showBackdrop,Es as sortDates,Np as splitIntoWeeks,G6 as stripSecondsFromMillis,Q5 as supportsElementInternalsAria,J5 as supportsHover,Jr as supportsPopover,te as task,Vd as textInputTypes,Ol as timeStringToMillis,_e as toggleState,R3 as tokenize12HourTimeString,N3 as tokenize24HourTimeString,Gi as tryCheck,U3 as tryCoerceTimeString,Ne as tryCreateAriaControlsPlaceholder,B0 as tryDismiss,VH as unwrapElements,tn as updateTarget,IH as wrapElements};
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2023 Google LLC
|