@shortfuse/materialdesignweb 0.9.1 → 0.9.2
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/dist/index.min.js
CHANGED
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
${_t({color:t,custom:e,lightness:"dark"})}
|
|
173
173
|
}`,[r,o,n].join(`
|
|
174
174
|
`)}var no={},Jt=null;function ft(){if(!Jt){let t;try{t=no.url}catch{}if(!t)try{t=document.currentScript.src}catch{}if(!t)return new URLSearchParams;Jt=new URL(t).searchParams}return Jt}De.push(...ft().getAll("custom").flatMap(t=>t.split(",")).map(t=>t.split(":")[0]));var Zt=new Map;function gt(t,e=!0){if(e&&Zt.has(t))return Zt.get(t);let i=new CSSStyleSheet;return i.replaceSync(t),e&&Zt.set(t,i),i}var ei=new Map,Qi;function so(t,e=!0){let i;return e&&ei.has(t)?i=ei.get(t):(Qi??=document.implementation.createHTMLDocument(),i=Qi.createElement("style"),i.textContent=t,e&&ei.set(t,i)),i.cloneNode(!0)}var bt;function Ji(t,e=!0){if(bt==null)try{let i=gt(t,e);return bt=!0,i}catch{bt=!1}return bt?gt(t,e):so(t,e)}function*Zi(t,e=!0){for(let i of t)i instanceof HTMLStyleElement?yield gt(i.textContent,e):i.ownerNode?yield gt([...i.cssRules].map(r=>r.cssText).join(""),e):yield i}var ti=new WeakMap;function*er(t,e=!0){for(let i of t)if(i instanceof HTMLStyleElement)yield i;else if(i.ownerNode instanceof HTMLStyleElement)yield i.ownerNode.cloneNode(!0);else if(e&&ti.has(i))yield ti.get(i).cloneNode(!0);else{let r=document.createElement("style");r.textContent=[...i.cssRules].map(o=>o.cssText).join(""),e&&ti.set(i,r),yield r.cloneNode(!0)}}function wt(t,...e){return Ji(typeof t=="string"?t:String.raw({raw:t},...e))}function xt(t,...e){let i;return typeof t=="string"?i=wt(t):Array.isArray(t)?i=wt(t,...e):i=t,i instanceof HTMLStyleElement?document.head.append(i):document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],i}xt([Qt(Kt(ft())),qt()].join(`
|
|
175
|
-
`));var ao,lo;function tr(){return(ao??=new Text).cloneNode()}function Te(){return(lo??=new Comment).cloneNode()}var Ze=class{constructor(e){this.anchorNode=e.anchorNode,this.metadata=[],this.keys=[],this.needsArrayKeyFastPath=!1,this.composition=e.composition,this.renderOptions=e.renderOptions,this.metadataCache=null,this.queuedElements=[],this.batchStartIndex=null,this.batchEndIndex=null}render(e,i){return this.composition.render(e,i,this.renderOptions)}startBatch(){this.needsArrayKeyFastPath=!0}writeBatch(){var i;if(!this.queuedElements.length)return;(((i=this.metadata[this.batchStartIndex-1])==null?void 0:i.domNode)??this.anchorNode).after(...this.queuedElements),this.queuedElements.length=0}stopBatch(){if(this.writeBatch(),this.needsArrayKeyFastPath=!1,this.batchStartIndex=null,this.batchEndIndex=null,this.metadataCache){for(let{domNode:e}of this.metadataCache.values())e.remove();this.metadataCache.clear()}}removeByIndex(e){let[i]=this.metadata.splice(e,1),{domNode:r,key:o}=i;this.keys.splice(e,1),r.remove(),this.metadataCache?this.metadataCache.set(o,i):this.metadataCache=new Map([[o,i]])}renderData(e,i,r,o,n,s){var c;if(e<this.metadata.length){let d=this.metadata[e],p=d.key,m=p===o,f=n!==o;if(m){f?d.render(i,r):s||d.render(i,r);return}let h=this.metadataCache??=new Map,u=!1;this.needsArrayKeyFastPath&&(u=!this.keys.includes(o),this.needsArrayFastPath=!1);let g=u?-1:this.keys.indexOf(o,e+1);if(g===-1){if(h.has(o)){let b=h.get(o);this.metadata.splice(e,0,b),this.keys.splice(e,0,o),(((c=this.metadata[e-1])==null?void 0:c.domNode)??this.anchorNode).after(b.domNode),h.delete(o);return}h.set(p,d)}else{if(e-g===-1){this.removeByIndex(e);return}let b=this.metadata[g];this.metadata[e]=b,this.metadata.splice(g,1);let{domNode:w}=d;w.replaceWith(b.domNode),s||b.render(i,r),this.keys[e]=o,this.keys.splice(g,1),w.remove(),h.set(p,d);return}}let l=this.render(i,r),a=l.target;this.metadata[e]={render:l,element:a,key:o,domNode:a},this.keys[e]=o,(this.batchEndIndex===null||this.batchEndIndex!==e-1)&&(this.writeBatch(),this.batchStartIndex=e),this.batchEndIndex=e,this.queuedElements.push(a)}removeEntries(e=0){let{length:i}=this.metadata;for(let r=i-1;r>=e;r--)this.metadata[r].domNode.remove();this.metadata.length=e,this.keys.length=e}hide(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||i.hidden)return!1;let{comment:o,element:n}=i;return o||(o=Te(),i.comment=o),n.replaceWith(o),i.domNode=o,i.hidden=!0,!0}show(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||!i.hidden)return!1;let{comment:o,element:n}=i;return o.replaceWith(n),i.domNode=n,i.hidden=!1,!0}};function nr(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}var vt;function xe(t){if(vt??=new Map,vt.has(t))return vt.get(t);let e=t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);return vt.set(t,e),e}var ir,Ie=Number.parseFloat((ir=navigator.userAgent.match(/Chrome\/([\d.]+)/))==null?void 0:ir[1]),rr,et=Number.parseFloat((rr=navigator.userAgent.match(/Firefox\/([\d.]+)/))==null?void 0:rr[1]),or,yt=Ie||!navigator.userAgent.includes("AppleWebKit")?Number.NaN:Number.parseFloat((or=navigator.userAgent.match(/Version\/([\d.]+)/))==null?void 0:or[1]);function le(t){return!t||et<113&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||(t==null?void 0:t.getRootNode())===document?!1:t.matches(":focus")}function j(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return le(t)}function ce(t){return getComputedStyle(t).direction==="rtl"}var sr={};Lt(sr,{applyMergePatch:()=>kt,buildMergePatch:()=>tt,hasMergePatch:()=>St});function kt(t,e){if(t===e)return t;if(t==null||e==null||typeof e!="object")return e;typeof t!="object"&&(t={});for(let[i,r]of Object.entries(e))r==null?i in t&&delete t[i]:t[i]=kt(t[i],r);return t}function tt(t,e,i="reference"){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let r={};if(Array.isArray(e)){if(i==="reference")return e;if(i==="clone")return structuredClone(e);for(let[n,s]of e.entries()){if(s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}return e.length!==t.length&&(r.length=e.length),r}let o=new Set(Object.keys(t));for(let[n,s]of Object.entries(e)){if(o.delete(n),s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}for(let n of o)r[n]=null;return r}function St(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(St(t[i],r))return!0;return!1}function ar(t){switch(t){case"boolean":return!1;case"integer":case"float":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"object":return null;default:case"string":return""}}function ri(t,e,i,r){return t??={},new Proxy(t,{get(o,n){let s=o[n];if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;if(r?i.add(l):e.add(l),typeof s=="object"&&s!=null)return ri(s,e,i,l)}return s},has(o,n){let s=Reflect.has(o,n);if(typeof n!="symbol"){let l=r?`${r}.p`:n;r?i.add(l):e.add(l)}return s}})}function co(t){switch(t){case"boolean":return e=>!!e;case"integer":return Math.round;case"float":return e=>+e;case"map":return Map;case"set":return Set;case"object":case"array":return e=>e;default:case"string":return e=>`${e}`}}function oi(t,...e){let i=new Set,r=new Set,o=e.map(a=>{let c=new Set,d=new Set,p=ri(a,c,d);return{poked:c,pokedDeep:d,proxy:p}}),n=ri(this??{},i,r),s=t.apply(n,o.map(a=>a.proxy)),l=t.name?!0:!i.size;return{props:{this:[...i],args:o.map(a=>[...a.poked])},deepPropStrings:{this:[...r],args:o.map(a=>[...a.pokedDeep])},deepProps:{this:[...r].map(a=>a.split(".")),args:o.map(a=>[...a.pokedDeep].map(c=>c.split(".")))},defaultValue:s,reusable:l}}function po(){return null}function mo(t,e,i){let r=typeof e=="string"?{type:e}:e,{watchers:o,value:n,readonly:s,empty:l,type:a,enumerable:c,reflect:d,attr:p,nullable:m,parser:f,nullParser:h,get:u,is:g,diff:b,props:w}=r;if(o??=[],s??=!1,l===void 0&&(l=null),n??=l,u&&!w){let k=oi(u.bind(i),i,()=>n);n??=k.defaultValue,w=new Set([...k.props.this,...k.props.args[0]])}if(!a)if(n==null)a="string";else{let k=typeof n;a=k==="number"?Number.isInteger(n)?"integer":"number":k}return c??=t[0]!=="_",m??=a==="boolean"?!1:l==null,m||(l??=ar(a),n??=l),d??=c?a!=="object":p?"write":!1,p??=d?xe(t):null,f??=co(a),h||(m?h=po:h=l===null?()=>ar(a):()=>l),g??=a==="object"?(k,S)=>!St(k,S):a==="array"?()=>!1:Object.is,b===void 0&&(b=a==="object"?(k,S)=>tt(k,S,"reference"):null),{...r,type:a,is:g,diff:b,attr:p,reflect:d,readonly:s,enumerable:c,value:n,parser:f,nullParser:h,key:t,props:w,watchers:o}}function ii(t,e,i){var n,s;t.get;let r=i==null?t.nullParser.call(this,i):t.parser.call(this,i),o=r;if(e==null){if(r==null)return!1}else if(r!=null){if(t.diff){if(o=t.diff.call(this,e,r),o==null)return!1}else if(t.is.call(this,e,r))return!1}return t.values?t.values.set(this,r):t.values=new WeakMap([[this,r]]),(n=t.propChangedCallback)==null||n.call(this,t.key,e,r,o),(s=t.changedCallback)==null||s.call(this,e,r,o),!0}function ni(t,e,i){let r=mo(e,i,t);function o(){var d;return(d=r.values)!=null&&d.has(this)?r.values.get(this):r.value}function n(d){let p=this[e];ii.call(this,r,p,d)}function s(){var m,f;let d=(m=r.computedValues)==null?void 0:m.get(this),p=this[e];(f=r.needsSelfInvalidation)==null||f.delete(this),ii.call(this,r,d,p)}if(r.props)for(let d of r.props)r.watchers.push([d,s]);function l(){let d=r.get.call(this,this,o.bind(this));return(r.computedValues??=new WeakMap).set(this,d),d}function a(d){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let p=this[e];r.set.call(this,d,n.bind(this));let m=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),ii.call(this,r,p,m))}let c={enumerable:r.enumerable,configurable:!0,get:r.get?l:o,set:r.set?a:n};return Object.defineProperty(t,e,c),r}var lr=new Set;function it(t="mdw_",e=4){let i;for(;lr.has(i=Math.random().toString(36).slice(2,e+2)););return lr.add(i),`${t}${i}`}var si,cr,dr;function Ve(t){return si??=document.implementation.createHTMLDocument(),t?(dr??=si.createRange(),dr.createContextualFragment(t)):(cr??=si.createDocumentFragment(),cr.cloneNode())}var zt=new Map;function li(t){let e=`#${it()}`;return zt.set(e,{fn:t}),`{${e}}`}var ai=new Map;function ci(t,...e){let i,r=e.map(s=>{switch(typeof s){case"string":return s;case"function":return li(s);case"object":{if(s==null)return"";let l=it();return i??=new Map,i.set(l,s),`<div id="${l}"></div>`}default:throw new Error(`Unexpected substitution: ${s}`)}}),o=String.raw({raw:t},...r);if(i){let s=Ve(o);for(let[l,a]of i)s.getElementById(l).replaceWith(a);return s}let n;return ai.has(o)?n=ai.get(o):(n=Ve(o),ai.set(o,n)),n.cloneNode(!0)}function uo({nodes:t},e){let{nodeIndex:i,attrName:r}=this,o=t[i];switch(e){case void 0:case null:case!1:return o.removeAttribute(r),!1;case!0:return o.setAttribute(r,""),"";default:return o.setAttribute(r,e),e}}function ho({nodeStates:t,comments:e,nodes:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n],l=s&1;if(!(r!=null&&r!==!1)){if(l)return;let p=e[o];p||(p=Te(),e[o]=p),i[n].replaceWith(p),t[n]|=1;return}let c=i[n],d=s&2;if(typeof r!="object")if(d){let p=new Text(r);c.replaceWith(p),i[n]=p,t[n]&=-3}else c.data=r;l&&(e[o].replaceWith(c),t[n]&=-2)}function _o({nodeStates:t,nodes:e,comments:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n]&1,l=r!=null&&r!==!1;if(l===!s)return;let a=e[n],c=i[o];c||(c=Te(),i[o]=c),l?(c.replaceWith(a),t[n]&=-2):(a.replaceWith(c),t[n]|=1)}function fo({comments:t,nodeStates:e,nodes:i}){let{commentIndex:r,nodeIndex:o}=this,n=Te();t[r]=n,e[o]|=1,i[o].replaceWith(n)}function di(t,...e){let[{caches:i,searchStates:r}]=e,{cacheIndex:o,searchIndex:n,subSearch:s,invocation:l}=t,a=i[o],c=r[n];if(c&1)return{value:a,dirty:(c&2)===2};r[n]|=1;let d;if(l){if(s){let p=di(s,...e);if(!p.dirty&&a!==void 0)return r[n]&=-3,{value:a,dirty:!1};d=t.invocation(p.value)}else d=t.invocation(...e);if(d===void 0||a===d)return{value:d,dirty:!1}}return i[o]=d,r[n]|=2,{value:d,dirty:!0}}function pr({options:{context:t,store:e,injections:i}},r,o){return this.expression.call(t,e??o,i)}function bo(t,e){return e[this.prop]}function go(t,e,i){let r=e;for(let o of this.deepProp){if(r===null)return null;if(!(o in r))return;r=r[o]}return r}var wo=/{([^}]*)}/g;function xo(t,e){if(e)return e[t]}function mr(t,e){if(!e)return;let i=e,r;for(r of t)if(typeof i=="object"){if(i===null)return null;if(!(r in i))return;i=i[r]}else return i[r];return i}function vo(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var ur=new Map,Le=class t{static EVENT_PREFIX_REGEX=/^([*1~]+)?(.*)$/;_interpolationState={nodeIndex:-1,searchIndex:0,cacheIndex:0,commentIndex:0,nodeEntry:null};static shadowRootTag=Symbol();nodesToBind=[];props=[];searches=[];initCache=[];searchByQuery;actionsByPropsUsed;postInitActions=[];tagsWithBindings;tags=[];adapter;events;cloneable;styles=[];adoptedStyleSheets=[];stylesFragment;allIds=[];temporaryIds;interpolated=!1;constructor(...e){this.template=Ve(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template}static compose(...e){for(let[r,o]of ur)if(r.length===e.length&&e.every((n,s)=>n===r[s]))return o;let i=new t(...e);return ur.set(e,i),i}append(...e){for(let i of e)typeof i=="string"?this.append(Ve(i.trim())):i instanceof t?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.tag??"",r=this.events??=new Map;return r.has(i)?r.get(i).push(e):r.set(i,[e]),this}#e(e,i,r){var o;if((o=this.events)!=null&&o.has(e))for(let n of this.events.get(e)){let s;n.handleEvent?s=n.handleEvent:n.deepProp.length?s=mr(n.deepProp,this.interpolateOptions.defaults):s=xo(n.prop,this.interpolateOptions.defaults),i.addEventListener(n.type,r?s.bind(r):s,n)}}render(e,i,r={}){this.interpolated||this.interpolate({defaults:i??e,...r});let o=this.cloneable.cloneNode(!0),n=r.shadowRoot,s=n??r.target??o.firstElementChild,l={lastChildNode:null,lastChildNodeIndex:0,lastElement:null,nodeStates:new Uint8Array(this._interpolationState.nodeIndex+1),searchStates:new Uint8Array(this._interpolationState.searchIndex),comments:[],nodes:[],caches:this.initCache.slice(),refs:[],options:r},{nodes:a,refs:c,searchStates:d,caches:p}=l;for(let{tag:f,textNodes:h}of this.nodesToBind){let u;if(f===""){if(!h.length)continue;c.push(null),a.push(null),u=o.firstChild}else{let b=o.getElementById(f);if(c.push(b),a.push(b),this.#e(f,b,r.context),!h.length)continue;u=b.firstChild}let g=0;for(let b of h){for(;b!==g;)u=u.nextSibling,g++;a.push(u)}}this.#e("",r.context),this.#e(t.shadowRootTag,r.context.shadowRoot,r.context);for(let f of this.postInitActions)f.invocation(l);let m=(f,h)=>{var g;let u=!1;for(let b of this.props){if(!((g=this.actionsByPropsUsed)!=null&&g.has(b))||!(b in f))continue;let w=this.actionsByPropsUsed.get(b);for(let k of w){u=!0;let{dirty:S,value:A}=di(k.search,l,f,h);S&&k.invocation(l,A,f,h)}}u&&d.fill(0)};return n?(r.context??=n.host,"adoptedStyleSheets"in n?this.adoptedStyleSheets.length&&(n.adoptedStyleSheets=[...n.adoptedStyleSheets,...this.adoptedStyleSheets]):this.stylesFragment.hasChildNodes()&&o.prepend(this.stylesFragment.cloneNode(!0))):r.context??=s,e!==this.interpolateOptions.defaults&&m(e,i),n&&(n.append(o),customElements.upgrade(n)),m.target=s,m.byProp=(f,h,u)=>{var k,S;if(!((k=this.actionsByPropsUsed)!=null&&k.has(f)))return;let g=!1;if((S=this.searchByQuery)!=null&&S.has(f)){g=!0;let A=this.searchByQuery.get(f);if(p[A.cacheIndex]===h)return;p[A.cacheIndex]=h,d[A.searchIndex]=3}let b,w=this.actionsByPropsUsed.get(f);for(let A of w)if(A.search.query===f)A.invocation(l,h);else{b??={[f]:h},u??=b,g=!0;let T=di(A.search,l,b,u);T.dirty&&A.invocation(l,T.value,b,u)}g&&d.fill(0)},m.state=l,m}#r(e,i,r,o){var T,E;let{nodeValue:n,nodeName:s,nodeType:l}=e,a,c;if(l===Node.ATTRIBUTE_NODE?a=e:c=e,o==null){if(!n)return;let v=n.trim();if(!v)return;if(a||(i==null?void 0:i.tagName)==="STYLE"){if(v[0]!=="{")return;let{length:y}=v;if(v[y-1]!=="}")return;o=v.slice(1,-1)}else{let y=v.split(wo);if(y.length<3)return;if(y.length===3&&!y[0]&&!y[2])o=y[1];else{for(let[z,D]of y.entries())if(z%2){let I=tr();c.before(I),this.#r(I,i,r,D)}else D&&c.before(D);return!0}}}let d=o,p=o[0]==="!",m=!1;p&&(o=o.slice(1),m=o[0]==="!",m&&(o=o.slice(1)));let f,h;if(c){i!==c.parentElement&&(i=c.parentElement),h=0;let v=c;for(;v=v.previousSibling;)h++}else if(i!==a.ownerElement&&(i=a.ownerElement),s.startsWith("on")){let v=s.indexOf("-");if(v===-1)return;f=v===2}if(f){i.removeAttribute(s);let v=this.#i(i),y=s.slice(3),[,z,D]=y.match(/^([*1~]+)?(.*)$/),I,R,P=[];if(o.startsWith("#"))I=zt.get(o).fn;else{let V=o.split(".");V.length===1?(R=o,P=[]):(R=V[0],P=V)}this.addCompositionEventListener({tag:v,type:D,handleEvent:I,prop:R,deepProp:P,once:z==null?void 0:z.includes("1"),passive:z==null?void 0:z.includes("~"),capture:z==null?void 0:z.includes("*")});return}let u;if((T=this.searchByQuery)!=null&&T.has(d))u=this.searchByQuery.get(d);else{let v=o,y=v!==d,z;if(y&&((E=this.searchByQuery)!=null&&E.has(v)))z=this.searchByQuery.get(v);else{let D,I,R,P,V,ie,Y,F;if(o.startsWith("#")){if(F=zt.get(o),!F)return;D=F.fn,Y=pr,F.props?(I=F.props,R=F.deepProps,P=F.defaultValue??null):P=F.fn}else P=null,r!=null&&r.defaults&&(P=mr(o.split("."),r.defaults)??null),P==null&&(r!=null&&r.injections)&&(P=vo(o,r.injections));if(!I)if(typeof P=="function"){let X=oi.call(this,P,r==null?void 0:r.defaults,r==null?void 0:r.injections),je=new Set([...X.props.this,...X.props.args[0],...X.props.args[1]]),We=new Set([...X.deepPropStrings.this,...X.deepPropStrings.args[0]]);D=P,P=X.defaultValue,I=[...je],R=[...We].map(lt=>lt.split(".")),Y=pr}else{let X=o.split(".");X.length===1?(V=o,I=[V],Y=bo):(I=[X[0]],ie=X,R=[X],Y=go)}F&&(F.defaultValue=P,F.props=I,F.deepProps=R),z={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:v,defaultValue:P,subSearch:null,prop:V,propsUsed:I,deepProp:ie,deepPropsUsed:R,invocation:Y,expression:D},this.addSearch(z)}y?(u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:d,subSearch:z,negate:p,doubleNegate:m,prop:z.prop,deepProp:z.deepProp,propsUsed:z.propsUsed,deepPropsUsed:z.deepPropsUsed,defaultValue:m?!!z.defaultValue:p?!z.defaultValue:z.defaultValue,invocation(D){return this.doubleNegate?!!D:this.negate?!D:D}},this.addSearch(u)):u=z}let g,b=null,w=u.defaultValue;c?b=h:s==="mdw-if"?(g=this.#i(i),i.removeAttribute(s),w=w!=null&&w!==!1):(b=s,s==="id"||w==null||w===!1?i.removeAttribute(s):i.setAttribute(s,w===!0?"":w)),g??=this.#i(i);let k=this._interpolationState.nodeEntry;(!k||k.tag!==g)&&(k={tag:g,textNodes:[]},this._interpolationState.nodeEntry=k,this.nodesToBind.push(k),this._interpolationState.nodeIndex++);let S;if(c)switch(k.textNodes.push(h),this._interpolationState.nodeIndex++,S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,invocation:ho,defaultValue:w,search:u},typeof w){case"string":c.data=w;break;case"number":c.data=`${w}`;break;default:c.data="";break}else b?S={nodeIndex:this._interpolationState.nodeIndex,attrName:b,defaultValue:w,invocation:uo,search:u}:(S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,defaultValue:w,invocation:_o,search:u},w||this.postInitActions.push({...S,invocation:fo}));this.addAction(S),(this.tagsWithBindings??=new Set).add(g)}#i(e){if(!e)return"";let i=e.id;return i?this.allIds.includes(i)||this.allIds.push(i):(i=it(),(this.temporaryIds??=new Set).add(i),this.allIds.push(i),e.id=i),i}#t(e,i){let r=e.getAttribute("mdw-for"),o=r==null?void 0:r.trim();if(!o||o[0]!=="{")return null;let{length:n}=o;if(o[n-1]!=="}")return null;let s=o.slice(1,-1),[l,a]=s.split(/\s+of\s+/);e.removeAttribute("mdw-for");let c=e.ownerDocument.createElement("template");e.replaceWith(c);let d=this.#i(c),p=this._interpolationState.nodeEntry;(!p||p.tag!==d)&&(p={tag:d,textNodes:[]},this._interpolationState.nodeEntry=p,this.nodesToBind.push(p),this._interpolationState.nodeIndex++);let m=new t;m.template.append(e);let f={...i.injections,[l]:null,index:null},h=[a],u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:null,prop:null,deepProp:null,propsUsed:h,deepPropsUsed:[[a]],defaultValue:{},invocation:null},g={defaultValue:null,nodeIndex:this._interpolationState.nodeIndex,search:u,commentIndex:this._interpolationState.commentIndex++,injections:f,invocation(w,k,S,A){if(!m.adapter){let I=w.nodes[this.nodeIndex],R=Te();w.comments[this.commentIndex]=R,I.replaceWith(R),m.adapter=new Ze({anchorNode:R,composition:m,renderOptions:{target:null,context:w.options.context,store:w.options.store,injections:this.injections}})}let{adapter:T}=m,E=(A??w.options.store)[a];if(!E||E.length===0){T.removeEntries();return}let v=S[a],y={...S},z=m.props.some(I=>I!==a&&I in S);T.startBatch();let D;if(!z&&!(D=Array.isArray(v))){let I=D?v.entries():Object.entries(v);for(let[R,P]of I){if(R==="length"||P===null)continue;let V=+R,ie=E[V];y[l]=P,this.injections[l]=ie,this.injections.index=V,T.renderData(V,y,A,ie,P)}}else{v||delete y[l];for(let[I,R]of E.entries()){let P;if(v){if(!z&&!(I in v)||(P=v[I],P===null))continue;y[l]=P}this.injections[l]=R,this.injections.index=I,T.renderData(I,y,A,R,P)}}T.stopBatch(),T.removeEntries(E.length)}};return m.interpolate({defaults:i.defaults,injections:f}),h.push(...m.props),this.addSearch(u),this.addAction(g),(this.tagsWithBindings??=new Set).add(d),m}interpolate(e){var n;this.interpolateOptions=e,this.cloneable=this.template.cloneNode(!0);let r=document.createTreeWalker(this.cloneable,5),o=r.nextNode();for(;o;){let s=null;switch(o.nodeType){case Node.ELEMENT_NODE:if(s=o,s.tagName==="TEMPLATE"){for(;s.contains(o=r.nextNode()););continue}if(s.tagName==="SCRIPT"){for(;s.contains(o=r.nextNode()););continue}if(s.hasAttribute("mdw-for")){for(;s.contains(o=r.nextNode()););this.#t(s,e);continue}else{let l=s.attributes.id;l&&(this.#r(l,s,e),this.#i(s));for(let a of[...s.attributes].reverse())a.nodeName!=="id"&&this.#r(a,s,e)}break;case Node.TEXT_NODE:if(s=o.parentElement,this.#r(o,s,e)){let l=r.nextNode();o.remove(),o=l;continue}break;default:throw new Error(`Unexpected node type: ${o.nodeType}`)}o=r.nextNode()}"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...Zi(this.styles)]:(this.stylesFragment=Ve(),this.stylesFragment.append(...er(this.styles))),this.props=this.actionsByPropsUsed?[...this.actionsByPropsUsed.keys()]:[];for(let s of this.allIds)(n=this.tagsWithBindings)!=null&&n.has(s)||this.nodesToBind.push({tag:s,textNodes:[]});this.tags=this.nodesToBind.map(s=>s.tag),this.interpolated=!0}addSearch(e){return this.searches.push(e),e.query&&((this.searchByQuery??=new Map).set(e.query,e),this.initCache[e.cacheIndex]=e.defaultValue),e}addAction(e){let i=this.actionsByPropsUsed??=new Map;for(let r of e.search.propsUsed)i.has(r)?i.get(r).push(e):i.set(r,[e]);return e}};function O(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var _=class t extends HTMLElement{static elementName;static get observedAttributes(){return this.attrList.keys()}compose(){return this.#t??=new Le}static _composition=null;static _props=new Map;static _attrs=new Map;static _propChangedCallbacks=new Map;static _attributeChangedCallbacks=new Map;static _onComposeCallbacks=[];static _onConnectedCallbacks=[];static _onDisconnectedCallbacks=[];static _onConstructedCallbacks=[];static interpolatesTemplate=!0;static supportsElementInternals="attachInternals"in HTMLElement.prototype;static supportsElementInternalsRole=t.supportsElementInternals&&"role"in ElementInternals.prototype;static templatable=null;static defined=!1;static autoRegistration=!0;static registrations=new Map;static expressions=this.set;static methods=this.set;static overrides=this.set;static props=this.observe;static idl=this.prop;static _addCallback(e,i){if(!this.hasOwnProperty(e)){this[e]=[...this[e],i];return}this[e].push(i)}static append(...e){return this._onComposeCallbacks.push(({composition:i})=>{i.append(...e)}),this._addCallback("_onComposeCallbacks",(i=>{let{composition:r}=i;r.append(...e)})),this}static recompose(e){return this._addCallback("_onComposeCallbacks",e),this}static css(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;typeof e=="string"||Array.isArray(e)?o.append(wt(e,...i)):o.append(e,...i)})),this}static autoRegister(e){return this.hasOwnProperty("defined")&&this.defined?this:(this.register(e),this)}static html(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;o.append(ci(e,...i))})),this}static extend(e){return e?e(this):class extends this{}}static setStatic(e){return Object.assign(this,e),this}static readonly(e,i){return this.set(e,{...i,writable:!1})}static set(e,i){return Object.defineProperties(this.prototype,Object.fromEntries([...Object.entries(e).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,value:o,writable:!0,...i}])),...Object.getOwnPropertySymbols(e).map(r=>[r,{enumerable:!1,configurable:!0,value:e[r],writable:!0,...i}])])),this}static mixin(e){return e(this)}static register(e){return e&&(this.elementName=e),customElements.define(this.elementName,this),t.registrations.set(this.elementName,this),this.defined=!0,this}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get attrList(){return this.hasOwnProperty("_attrs")||(this._attrs=new Map(this._attrs)),this._attrs}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._attributeChangedCallbacks}static prop(e,i){let r=ni(this.prototype,e,i),{changedCallback:o,attr:n,reflect:s,watchers:l}=r;return o&&l.push([e,o]),r.changedCallback=function(c,d,p){this._onObserverPropertyChanged.call(this,e,c,d,p)},this.propList.set(e,r),n&&(s===!0||s==="read")&&(r.enumerable||!this.attrList.has(n)||!this.attrList.get(n).enumerable)&&this.attrList.set(n,r),this.onPropChanged(l),this}static define(e){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(e).map(([i,r])=>(this.undefine(i),[i,{enumerable:i[0]!=="_",configurable:!0,...typeof r=="function"?{get:r}:r}])))),this}static undefine(e){if(Reflect.deleteProperty(this.prototype,e),this.propList.has(e)){let{watchers:i,attr:r,reflect:o}=this.propList.get(e);if(i.length&&this.propChangedCallbacks.has(e)){let n=this.propChangedCallbacks.get(e);for(let[s,l]of i){let a=n.indexOf(l);a!==-1&&n.splice(a,1)}}r&&(o===!0||o==="read")&&this.attrList.delete(r),this.propList.delete(e)}return this}static observe(e){for(let[i,r]of Object.entries(e??{})){let o=typeof r=="function"?{reflect:!1,get:r}:r;this.prop(i,o)}return this}static defineStatic(e){for(let[i,r]of Object.entries(e??{}))ni(this,i,{reflect:!1,...typeof r=="function"?{get:r}:typeof r=="string"?{type:r}:r});return this}static events(e,i){return this.on({composed({composition:r}){for(let[o,n]of Object.entries(e)){let[,s,l]=o.match(/^([*1~]+)?(.*)$/),a,c=[];if(typeof n=="string"){let d=n.split(".");d.length===1?(a=n,c=[]):(a=d[0],c=d)}r.addCompositionEventListener({type:l,once:s==null?void 0:s.includes("1"),passive:s==null?void 0:s.includes("~"),capture:s==null?void 0:s.includes("*"),...typeof n=="function"?{handleEvent:n}:typeof n=="string"?{prop:a,deepProp:c}:n,...i})}}}),this}static childEvents(e,i){for(let[r,o]of Object.entries(e))this.events(o,{tag:xe(r),...i});return this}static rootEvents(e,i){return this.events(e,{tag:Le.shadowRootTag,...i})}static on(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(n);continue;case"attrs":this.onAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.onPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._addCallback(s,n)}return this}static onPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}static onAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}#e;#r=new Map;#i=new Map;#t;#n=!1;#o=[];_propAttributeCache;_callbackArguments=null;constructor(...e){super(),t.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.render=this.composition.render(this.constructor.prototype,this,{defaults:this.constructor.prototype,store:this,shadowRoot:this.shadowRoot,context:this});for(let i of this.static._onConstructedCallbacks)i.call(this,this.callbackArguments)}propChangedCallback(e,i,r,o=r){this.#n?this.#o.push([e,o,this]):this.render.byProp(e,o,this);let{_propChangedCallbacks:n}=this.static;if(n.has(e))for(let s of n.get(e))s.call(this,i,r,o,this)}attributeChangedCallback(e,i,r){let{attributeChangedCallbacks:o}=this.static;if(o.has(e))for(let d of o.get(e))d.call(this,i,r,this);let{attrList:n}=this.static;if(!n.has(e))return;let s=n.get(e);if(s.attributeChangedCallback){s.attributeChangedCallback.call(this,e,i,r);return}let l;if(this.attributeCache.has(e)&&(l=this.attributeCache.get(e),l.stringValue===r))return;let a=this[s.key],c=r===null?s.nullParser(r):s.type==="boolean"?!0:s.parser(r);c!==a&&(l?(l.stringValue=r,l.parsedValue=c):this.attributeCache.set(e,{stringValue:r,parsedValue:c}),this[s.key]=c)}get#s(){var e;return(e=this.#t)==null?void 0:e.template}_onObserverPropertyChanged(e,i,r,o){let{propList:n}=this.static;if(n.has(e)){let{reflect:s,attr:l}=n.get(e);if(l&&(s===!0||s==="write")){let a,c=!1,{attributeCache:d}=this;if(d.has(l)?(a=d.get(l),c=a.parsedValue!==r):(a={},d.set(l,a),c=!0),c){let p=nr(r);a.parsedValue=r,a.stringValue=p,p==null?this.removeAttribute(l):this.setAttribute(l,p)}}}this.propChangedCallback(e,i,r,o)}patch(e){this.#n=!0,kt(this,e);for(let[i,r,o]of this.#o)i in e||this.render.byProp(i,r,o);this.#o.slice(0,this.#o.length),this.render(e),this.#n=!1}get refs(){return this.#e??=new Proxy({},{get:(e,i)=>{this.#t;let r=this.composition,o;if(!r.interpolated){if(this.#i.has(i)&&(o=this.#i.get(i).deref(),o))return o;let l=xe(i);return o=r.template.getElementById(l),o?(this.#i.set(i,new WeakRef(o)),o):null}if(this.#r.has(i)&&(o=this.#r.get(i).deref(),o))return o;let n=xe(i),s=this.composition.tags.indexOf(n);return o=this.render.state.refs[s],o?(this.#r.set(i,new WeakRef(o)),o):null}})}get attributeCache(){return this._propAttributeCache??=new Map}get static(){return this.constructor}get unique(){return!1}get callbackArguments(){return this._callbackArguments??={composition:this.#t,refs:this.refs,html:ci.bind(this),inline:li,template:this.#s,element:this}}get composition(){if(this.#t)return this.#t;if(!this.unique&&this.static.hasOwnProperty("_composition"))return this.#t=this.static._composition,this.static._composition;this.compose();for(let e of this.static._onComposeCallbacks)e.call(this,this.callbackArguments);return this.unique||(this.static._composition=this.#t),this.#t}connectedCallback(){for(let e of this.static._onConnectedCallbacks)e.call(this,this.callbackArguments)}disconnectedCallback(){for(let e of this.static._onDisconnectedCallbacks)e.call(this,this.callbackArguments)}};_.prototype.delegatesFocus=!1;function G(t){return t.observe({density:"integer"}).css`:host{--mdw-density:var(--mdw-density__default, 0)}:host([density]){--mdw-density:0}:host([density="-1"]){--mdw-density:-1}:host([density="-2"]){--mdw-density:-2}:host([density="-3"]){--mdw-density:-3}:host([density="-4"]){--mdw-density:-4}:host([density="1"]){--mdw-density:1}:host([density="2"]){--mdw-density:2}:host([density="3"]){--mdw-density:3}:host([density="4"]){--mdw-density:4}`}function C(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=outline mdw-if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}></div>`.css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));z-index:0;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}`.css`.outline{position:absolute;inset:0;overflow:hidden;border-style:solid;border-width:1px;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}`}var yo=De.map(t=>[`:host([color="${t}"]){`,`--mdw-bg: var(--mdw-color__${t});`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([color="${t}-container"]){`,`--mdw-bg: var(--mdw-color__${t}-container);`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),ko=De.map(t=>[`:host([ink="${t}"]){`,`--mdw-ink: var(--mdw-color__${t});`,"}",`:host([ink="on-${t}"]){`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([ink="on-${t}-container"]){`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),So=Ut.map(t=>[`:host([type-style|="${t}"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-large__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-large__letter-spacing);`,"}",`:host([type-style="${t}-medium"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-medium__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-medium__letter-spacing);`,"}",`:host([type-style="${t}-small"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-small__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-small__letter-spacing);`,"}"].join("")).join("");function x(t){return t.observe({color:"string",ink:"string",typeStyle:"string"}).css(yo).css`:host([color=background]){--mdw-bg:var(--mdw-color__background);--mdw-ink:var(--mdw-color__on-background)}:host([color=surface-dim]){--mdw-bg:var(--mdw-color__surface-dim)}:host([color=surface-bright]){--mdw-bg:var(--mdw-color__surface-bright)}:host([color=surface-container-lowest]){--mdw-bg:var(--mdw-color__surface-container-lowest)}:host([color=surface-container-low]){--mdw-bg:var(--mdw-color__surface-container-low)}:host([color=surface-container-high]){--mdw-bg:var(--mdw-color__surface-container-high)}:host([color=surface-container-highest]){--mdw-bg:var(--mdw-color__surface-container-highest)}:host([color=surface-primary]){--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__primary)}:host([color$=variant]){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host([color^=inverse]){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([color=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}`.css(ko).css`:host([ink=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}:host([ink=outline]){--mdw-ink:var(--mdw-color__outline)}:host([ink=surface-container-highest]){--mdw-ink:var(--mdw-color__surface-container-highest)}:host([ink=on-surface-variant]){--mdw-ink:var(--mdw-color__on-surface-variant)}:host([ink=inverse-on-surface]){--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([ink=inherit]){--mdw-ink:inherit}`.css(So)}var zo=_.extend().mixin(x).mixin(G).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-error);--mdw-bg:var(--mdw-color__error);--mdw-type__font:var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-block:calc(8px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width:1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){min-block-size:6px;min-inline-size:6px;margin:5px;padding:0}`.autoRegister("mdw-badge");function L(t){return t.set({delegatesFocus:!0}).extend(Ie>=111?e=>e:e=>class extends e{get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&le(this)){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};for(let o of["blur","focus","focusout","focusin"])this.addEventListener(o,r,{capture:!0,once:!0});super.tabIndex=i;for(let o of["blur","focus","focusout","focusin"])this.removeEventListener(o,r,{capture:!0});return}super.tabIndex=i}}})}function pi(t){return t?t.includes("px")||t.includes("em")||t.includes("ex")?t:`calc(${t.replace("sp","")} * 0.0625rem)`:""}function Re(t){return t.mixin(L).observe({textPadding:"string",textPaddingTop:"string",textLeading:"string",textPaddingBottom:"string"}).observe({_computedTextPaddingTop({textPaddingTop:e,textPadding:i}){return pi(e??i)},_computedTextPaddingBottom({textPaddingBottom:e,textPadding:i}){return pi(e??i)},_computedTextLeading({textLeading:e}){return pi(e)}}).observe({_beforeStyle({_computedTextPaddingTop:e,_computedTextLeading:i}){return i?`margin-top:${i}`:e?`margin-top:${e}`:""},_afterStyle({_computedTextPaddingBottom:e}){return e?`vertical-align:calc(-1em + (-1 * ${e}));`:""}}).html`<div id=wrapper style={_wrapperStyle} before={!!_beforeStyle} after={!!_afterStyle}><span id=before mdw-if={!!_beforeStyle} style={_beforeStyle} text-leading={textLeading}></span><span id=content before={!!_beforeStyle} after={!!_afterStyle}><span id=after mdw-if={!!_afterStyle} style={_afterStyle}></span></span></div>`.recompose(({refs:{content:e,slot:i}})=>{e.prepend(i)}).css`:host{display:block}:host(:where([text-padding],[text-padding-top],[text-padding-bottom])){display:flex}#wrapper{display:contents}#wrapper:where([before],[after]){display:flex;align-items:baseline}#wrapper[before]{margin-block-start:-1em}#wrapper[after]{margin-block-end:-1em}#before{display:inline-block;block-size:1.4ex;padding-block-start:1em}@supports (height:1cap){#before{block-size:1cap}}#before[text-leading]{block-size:0}#content{display:contents}#content:where([before],[after]){display:block}#after{display:inline-block;padding-block-end:1em}`}function de(t){return t.observe({block:"boolean",inline:"boolean",row:"boolean",x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"string"}).css`:host{display:flex;flex-direction:column;box-sizing:border-box}:host(:is([inline])){display:inline-flex}:host(:is([block])){display:block}:host(:is([inline][block])){display:inline-block}:host(:is([row])){flex-direction:row}:host(:is([row][y=start],[x=start]:not([row]))){align-items:flex-start}:host(:is([row][y=end],[x=end]:not([row]))){align-items:flex-end}:host(:is([row][y=center],[x=center]:not([row]))){align-items:center}:host(:is([row][y=between],[x=between]:not([row]))){align-items:space-between}:host(:is([row][y=around],[x=around]:not([row]))){align-items:space-around}:host(:is([row][y=baseline],[x=baseline]:not([row]))){align-items:baseline}:host(:is([row][y=stretch],[x=stretch]:not([row]))){align-items:stretch}:host(:is([row][x=start],[y=start]:not([row]))){justify-content:flex-start}:host(:is([row][x=end],[y=end]:not([row]))){justify-content:flex-end}:host(:is([row][x=center],[y=center]:not([row]))){justify-content:center}:host(:is([row][x=between],[y=between]:not([row]))){justify-content:space-between}:host(:is([row][x=stretch],[y=stretch]:not([row]))){justify-content:stretch}:host(:is([wrap])){flex-wrap:wrap}:host(:is([wrap=reverse])){flex-wrap:wrap-reverse}:host(:is([gap])){gap:0}:host(:is([gap="4"])){gap:4px}:host(:is([gap="8"])){gap:8px}:host(:is([gap="12"])){gap:12px}:host(:is([gap="16"])){gap:16px}:host(:is([gap="20"])){gap:20px}:host(:is([gap="24"])){gap:24px}:host(:is([padding])){padding:0}:host(:is([padding=pane])){padding-inline:var(--mdw-pane__padding-inline,0)}:host(:is([padding="4"])){padding:4px}:host(:is([padding="8"])){padding:8px}:host(:is([padding="12"])){padding:12px}:host(:is([padding="16"])){padding:16px}:host(:is([padding="20"])){padding:20px}:host(:is([padding="24"])){padding:24px}:host(:is([padding-x])){padding-inline:0}:host(:is([padding-x="4"])){padding-inline:4px}:host(:is([padding-x="8"])){padding-inline:8px}:host(:is([padding-x="12"])){padding-inline:12px}:host(:is([padding-x="16"])){padding-inline:16px}:host(:is([padding-x="20"])){padding-inline:20px}:host(:is([padding-x="24"])){padding-inline:24px}:host(:is([padding-y])){padding-block:0}:host(:is([padding-y="4"])){padding-block:4px}:host(:is([padding-y="8"])){padding-block:8px}:host(:is([padding-y="12"])){padding-block:12px}:host(:is([padding-y="16"])){padding-block:16px}:host(:is([padding-y="20"])){padding-block:20px}:host(:is([padding-y="24"])){padding-block:24px}`}var H=_.extend().mixin(x).mixin(de).html`<slot id=slot></slot>`.css`:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot::slotted([flex-0]){flex:0}#slot::slotted([flex-1]){flex:1}#slot::slotted([flex-none]){flex:none}`.autoRegister("mdw-box");var Co=H.extend().mixin(Re).css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function $(t){return t.observe({_ariaRole:"string"}).set({_onConnectAriaValues:null}).methods({readAriaProperty(e){if(this.elementInternals&&e in this.elementInternals)return this.elementInternals[e];if(e in this)return this[e];let i=e;return i.startsWith("aria")&&(i=`aria-${i.slice(4).toLowerCase()}`),this.getAttribute(e)},updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(this.isConnected)if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}else this._onConnectAriaValues??=new Map,this._onConnectAriaValues.set(e,i)}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)},connected(){if(this._onConnectAriaValues){for(let[e,i]of this._onConnectAriaValues)this.updateAriaProperty(e,i);this._onConnectAriaValues=null}}})}var Eo=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function oe(t){return t.mixin($).observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Eo},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.readAriaProperty("ariaOrientation")??this.ariaOrientationDefault)==="vertical"},focusCurrentOrFirst(){let e,i;for(let r of this.kbdNavChildren)if(i=r,r.tabIndex===0){e=r;break}return j(e)?e:j(i)?i:null},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let s of n){if(!o){o=e?s===e:s.getAttribute("tabindex")==="0";continue}if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&j(s))return this.ariaActiveDescendantElement=s,s}if(!i)return!le(e)&&e instanceof HTMLElement&&e.focus(),e;for(let s of n)if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&(j(s)||s===e))return s;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!j(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&le(o)?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=le(o)?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function $e(t){return t.mixin($).mixin(oe).set({ariaOrientationDefault:"horizontal",_ariaRole:"toolbar"})}function U(t){return t.css`:host{--mdw-elevation__rgb:var(--mdw-color__shadow);--mdw-elevation__box-shadow__0:0px 1px 1px 0px rgba(var(--mdw-elevation__rgb), 0),0px 0px 1px 1px rgba(var(--mdw-elevation__rgb), 0);--mdw-elevation__box-shadow__1:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 1px 3px 1px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__2:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 2px 6px 2px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__3:0px 1px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 4px 8px 3px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__4:0px 2px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 6px 10px 4px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__5:0px 4px 4px 0px rgba(var(--mdw-elevation__rgb), .3),0px 8px 12px 6px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__drop-shadow__0:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),000)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),00000));--mdw-elevation__drop-shadow__1:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__2:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 2px 005px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__3:drop-shadow(0px 1px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 4px 007px rgba(var(--mdw-elevation__rgb),.263));--mdw-elevation__drop-shadow__4:drop-shadow(0px 2px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 6px 009px rgba(var(--mdw-elevation__rgb),.27));--mdw-elevation__drop-shadow__5:drop-shadow(0px 4px 2px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 8px 012px rgba(var(--mdw-elevation__rgb),.3))}`}var mi=_.extend().mixin(x).mixin(de).mixin(U).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;filter:var(--mdw-elevation__drop-shadow__0);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-surface");var Mo=mi.extend().mixin($e).observe({color:{empty:"surface-container"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);align-items:center;flex-direction:row;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var Z={type:"function",reflect:"read",value:null,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r;try{let o=`with(this.ownerDocument ?? document){with(this.form ?? {}){with(this){${i}}}}`;r=new Function(`return function ${t}(event){${o}}`)()}catch{let o=(this.ownerDocument??document).createElement("button");o.setAttribute("onclick",i),r=o.onclick}this[t]=r},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}},_i=new WeakMap,fi=new WeakMap;function Ao(t){let e=fi.get(this),i;e!=null&&e.has(t)&&(i=e.get(t));let r=_i.get(this),{initial:o}=r.get(t);r.delete(t);let n=this[t];if(!n){i==null||i.cancel();return}let{target:s,styles:l,timing:a}=n,d=(s?typeof s=="string"?this.refs[s]:s:this).animate(l,{...a,...o?{duration:0}:null,fill:"forwards"});d.onremove=()=>{i==null||i.effect.updateTiming({fill:"none"}),i==null||i.finish(),i==null||i.cancel(),i=null},e?e.set(t,d):fi.set(this,new Map([[t,d]]))}var He=new WeakMap,hr=new ResizeObserver(t=>{for(let{target:e}of t)if(He.has(e)){let i=He.get(e);He.delete(e),hr.unobserve(e);for(let r of i)r()}}),ee={type:"object",reflect:!1,diff:null,propChangedCallback(t,e,i){if(!i){let s=fi.get(this);if(!(s!=null&&s.has(t)))return}let r=_i.get(this),o=!this.isConnected;if(r){if(r.has(t))return;r.set(t,{initial:o})}else _i.set(this,new Map([[t,{initial:o}]]));let n=Ao.bind(this,t);this.isConnected?queueMicrotask(n):He.has(this)?He.get(this).push(n):(He.set(this,[n]),hr.observe(this))}},ui=new WeakMap,hi=null,ne={type:"string",reflect:!1,parser(t){return!t||typeof t=="string"?t:`:host{${Object.entries(t).map(([e,i])=>`${xe(e)}:${i}`).join(";")}}`},propChangedCallback(t,e,i){let r,o;if(ui.has(this))r=ui.get(this),r.has(t)&&(o=r.get(t));else{if(!i)return;r=new Map,ui.set(this,r)}if(hi??="adoptedStyleSheets"in ShadowRoot.prototype,!o){if(hi)o=new CSSStyleSheet,this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,o];else{let n=this.ownerDocument.createElement("style");this.shadowRoot.prepend(n),o=n}r.set(t,o)}i?(hi?o.replaceSync(i):i&&(o.textContent=i),o.disabled=!1):o.disabled=!0}};var _r=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function B(t){return t.observe({_resizeObserverEnabled:{type:"boolean",value:!0}}).methods({onResizeObserved(e){},observeResize(){_r.observe(this,{box:"border-box"})},unobserveResize(){_r.unobserve(this)}}).on({connected(){this._resizeObserverEnabled&&this.observeResize()},disconnected(){this.unobserveResize()},_resizeObserverEnabledChanged(e,i){i?this.observeResize():this.unobserveResize()}})}var br,fr=(br=window==null?void 0:window.matchMedia)==null?void 0:br.call(window,"(any-pointer: coarse)").matches;function N(t){return t.observe({disabled:"boolean",focused:"boolean",hovered:"boolean",pressed:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_focusedSynthetic:"boolean",_keyPressed:"boolean",_keyReleased:"boolean",_pointerPressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e,hovered:i}){return e||i},focusedState({_focused:e,focused:i}){return e||i},pressedState({_keyPressed:e,_pointerPressed:i,pressed:r}){return e||i||r},touchedState({_lastInteraction:e}){return e==="touch"},pointedState({_lastInteraction:e}){return e==="mouse"||e==="pen"}}).define({stateTargetElement(){return this}}).html`<div id=state mdw-if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} pointed={pointedState} aria-hidden=true></div>`.events({pointerenter(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!0)},"~pointerup"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!1)},pointercancel(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=!1,this._hovered=!1)},"~keydown"(e){e.isTrusted&&(this._lastInteraction="key",!e.repeat&&e.key===" "&&(this._keyPressed=!0))},"~keyup"(e){e.isTrusted&&(this._lastInteraction="key",e.key===" "&&(this._keyPressed=!1,this._keyReleased=!0,setTimeout(()=>{this._keyReleased=!1})))},blur(e){e.isTrusted&&(this._focused=!1,this._focusedSynthetic=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction&&(fr=this._lastInteraction==="touch",this._lastInteraction=null))},focus(e){e.isTrusted&&(this._focusedSynthetic="sourceCapabilities"in e?!e.sourceCapabilities:this._lastInteraction===null&&!e.relatedTarget,this._focused=!0,!this._lastInteraction&&fr&&(this._lastInteraction="touch"))}}).on({disconnected(){this._focused=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity:.08;--mdw-state__focused-opacity:.12;--mdw-state__pressed-opacity:.12;--mdw-state__dragged-opacity:.12;position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{--mdw-state__opacity:calc( var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity) );position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-state__opacity);background-color:currentColor;border-radius:inherit;transition-delay:0s;transition-duration:0s;transition-property:opacity,color,background-color;will-change:opacity}@supports (background-color:color-mix(in srgb,red 100%,red)){#state{opacity:1;background-color:color-mix(in srgb,currentColor calc(100% * var(--mdw-state__opacity)),transparent);transition-property:color,background-color;will-change:color,background-color}}#state[touched]{--mdw-state__hovered-opacity:0;--mdw-state__focused-opacity:0}#state:is(:not([hovered]),[disabled]:not([state-disabled~=hover]),[state-off~=hover]){--mdw-state__hovered-opacity:0}#state:is(:not([focused]),[disabled]:not([state-disabled~=focus]),[state-off~=focus]){--mdw-state__focused-opacity:0}#state:is(:not([pressed]),[disabled]:not([state-disabled~=pressed]),[state-off~=pressed]){--mdw-state__pressed-opacity:0}#state:is([disabled]:not([state-disabled~=dragged]),[state-off~=dragged]),:host(:not([aria-dragged=true])) #state{--mdw-state__dragged-opacity:0}#state[disabled]:not([state-disabled]){display:none}`}var Ct=_.extend().observe({hidden:"boolean"}).html`<div id=scroll-blocker></div>`.css`:host{position:fixed;inset:0;display:block;overflow:overlay;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-color:transparent transparent;scrollbar-width:none;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;opacity:0;z-index:23;background-color:rgb(var(--mdw-color__scrim));animation:fade-in .2s forwards ease-out;will-change:opacity}:host::-webkit-scrollbar{display:none}:host([hidden]){animation-name:fade-out;animation-timing-function:ease-in}:host([invisible]){background:0 0}#scroll-blocker{position:absolute;inset-block-start:0;inset-inline-start:0;display:block;block-size:200%;inline-size:200%}@keyframes fade-in{0%{opacity:0}to{opacity:.38}}@keyframes fade-out{0%{opacity:.38}to{opacity:0}}`.events({animationend(){this.hidden&&this.remove()}}).autoRegister("mdw-scrim");var To="onscrollend"in window,gr=new WeakSet;_.extend().mixin(N).set({stateLayer:!0}).html`<div id=container><div id=icon aria-hidden=true></div></div>`.recompose(({refs:{container:t,state:e}})=>{t.prepend(e)}).css`:host{--mdw-state__hovered-opacity:0;--mdw-state__pressed-opacity:0;position:absolute;inset-block-start:0;inset-inline:0;align-self:stretch;display:flex;align-items:center;justify-content:center;cursor:grab;outline:0;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;color:rgb(var(--mdw-color__on-surface-variant))}:host(:active){cursor:grabbing!important}#container{position:relative;display:flex;align-items:center;justify-content:center;min-block-size:48px;min-inline-size:48px}#state{border-radius:50%}#state[pointed]{--mdw-state__focused-opacity:0}#icon{block-size:4px;inline-size:32px;background-color:currentColor;border-radius:8px}`.events({touchmove(t){t.preventDefault()}}).autoRegister("mdw-bottom-sheet-handle");var Io=_.extend().mixin(x).mixin(de).mixin(C).mixin($).mixin(L).mixin(B).observe({shapeTop:{type:"boolean",empty:!0},modal:"boolean",fixed:"boolean",open:"boolean",expanded:"boolean",_lastComputedBlockSize:{type:"float",nullable:!1},_lastOffsetTop:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_translateY:{value:"100%"},_lastChildScrollTime:"float",_ariaValueNow:{type:"integer"},dragHandle:"boolean",onopen:Z,onclose:Z}).set({_hasCheckedResize:!1,_scrim:null,_dragTimestamp:0,_dragDeltaY:null,_dragStartY:null}).observe({hostStyles:{...ee,get({open:t,fixed:e,_lastComputedBlockSize:i,_translateY:r,_animationDuration:o,_animationEasing:n}){return{styles:{marginBottom:e?`${-1*i}px`:0,transform:e?"none":`translateY(${r})`},timing:{duration:o,easing:n}}}}}).html`<mdw-bottom-sheet-handle id=drag-handle mdw-if={dragHandle} tabindex=0 role=separator aria-valuemin=-100 aria-valuemax=0 aria-valuenow={_ariaValueNow}></mdw-bottom-sheet-handle><slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,modal:i,_scrim:r}=this;e&&i?(r||(r=new Ct,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragStartY:e,_dragDeltaY:i,_lastComputedBlockSize:r,modal:o,fixed:n,_lastOffsetTop:s}=this;if(!t||n||e==null||i==null)return;let l=s+r-72,a=r>l?r-l:0,c=(r-i)/(r-a);this._dragStartY=null,o&&c<.5?(this._animationDuration=200*c,this._animationEasing="ease-out",this._translateY="100%",this._dragDeltaY=null,this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*c),this._dragDeltaY=a,this._translateY="0px",this._animationEasing="ease-in",this.expanded=!0)},onDragHandleActive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&t.buttons===1&&gr.add(t)},onDragHandleInactive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&(t.type!=="pointerup"&&t.buttons!==1||this.checkDragFinished())},onPointerOrTouchMove(t){let e,i=t.type==="touchmove";if(i){let{touches:u}=t;if(!u.length)return;e=u[0]}else e=t;let{open:r,_lastChildScrollTime:o,_dragStartY:n,_dragTimestamp:s,expanded:l}=this;if(!r||n==null||o&&performance.now()-o<=(To?5e3:500))return;let{clientY:a,pageY:c}=e;a??=c-window.scrollY;let{_lastOffsetTop:d,_lastComputedBlockSize:p}=this,m=d+p-72,f=p>m?p-m:0,h=Math.max(a-n,f);this._dragDeltaY=h,!(i&&l&&performance.now()-s<100)&&(this._animationDuration=0,this._translateY=`${h}px`)}}).overrides({onResizeObserved(t){var e;this._lastComputedBlockSize=(e=t.borderBoxSize[0])==null?void 0:e.blockSize,this._lastOffsetTop=this.offsetTop}}).events({"~pointerdown"(t){if(t.pointerType!=="touch"&&(t.buttons!==1||!gr.has(t))||!this.open)return;let{clientY:e,pageY:i}=t;e??=i-window.scrollY,this._dragStartY=e-(this._dragDeltaY??0),this._dragDeltaY=0,this._dragTimestamp=performance.now()},"~pointermove":"onPointerOrTouchMove","~pointerup"(t){t.pointerType!=="touch"&&this.checkDragFinished()},pointerleave(t){t.pointerType!=="touch"&&this.checkDragFinished()},"~touchmove":"onPointerOrTouchMove",touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartY=null,this._dragDeltaY=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).childEvents({dragHandle:{"~pointerdown":"onDragHandleActive","~pointermove":"onDragHandleActive"}}).on({openChanged(t,e){let i=this.offsetTop;if(this._lastOffsetTop=i,this._animationDuration=e?250:200,e){let r=0;if(!this.fixed){let{_lastComputedBlockSize:o}=this,n=i+o;o>n/2&&(r=o-n/2)}this._translateY=`${r}px`,this._dragDeltaY=r}else this._translateY="100%",this.expanded=!1;this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),e&&this.focus()},modalChanged(){this._animationDuration=0,this.checkForScrim(!1)}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);--mdw-shape__size:var(--mdw-shape__extra-large);--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;position:sticky;inset-block-end:0;inset-inline:0;overflow-y:clip;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-inline-size:640px;margin-inline:auto;padding-block-start:16px;pointer-events:none;transform:translateY(100%);visibility:hidden;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-block-end,visibility}:host(:where([open])){pointer-events:auto;visibility:inherit;transition:visibility 0s}:host(:where(:not([fixed]))){position:fixed;max-block-size:calc(100% - 72px);touch-action:none;z-index:24}:host(:where([expanded])){overflow-y:auto;touch-action:auto}:host(:where([drag-handle])){padding-block-start:48px}`.autoRegister("mdw-bottom-sheet");var wr={};Lt(wr,{addSVGAlias:()=>Lo,svgAliasMap:()=>ve,unaliased:()=>bi});var ve=new Map,bi=new Set;function Lo(t,e,i="0 0 24 24"){t=t.toLowerCase(),e?ve.set(t,{path:e,viewBox:i}):ve.delete(t)}var gi=new Set,Ro=_.extend().mixin(x).define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({icon:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",variation:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:"string",fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"},_isConnected:"boolean"}).observe({_svgAlias:{type:"object",get({icon:t,variation:e}){if(!t)return null;let i=t.trim().toLowerCase(),r=e?`#${e}`:"",o=`${i}${r}`;return ve.has(o)?ve.get(o):(bi.add(o),r&&ve.has(i)?ve.get(i):null)}}}).observe({_computedSVGPath({svgPath:t,_svgAlias:e}){return t||(e==null?void 0:e.path)},_computedViewBox({viewBox:t,_svgAlias:e}){return t??(e==null?void 0:e.viewBox)??"0 0 24 24"}}).observe({_showFontIcon:{type:"boolean",get({icon:t,svg:e,_computedSVGPath:i,src:r}){return t&&!e&&!i&&!r}}}).expressions({showSVG({svg:t,_computedSVGPath:e}){return!!(t||e)}}).html`<link mdw-if={_showFontIcon} id=link rel=stylesheet href={fontLibrary}><svg mdw-if={showSVG} id=svg viewBox={_computedViewBox}><use id=use mdw-if={svg} href={svg} fill=currentColor /><path id=path mdw-if={_computedSVGPath} d={_computedSVGPath} /></svg> <img mdw-if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}> <span id=icon class={fontClass} hidden={!_showFontIcon} aria-hidden=true>{icon}</span>`.css`:host{vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;line-height:1;font-variation-settings:"FILL" 0;transition-duration:.2s;transition-property:inline-size,width}:host([variation=fill]){font-variation-settings:"FILL" 1}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({link:{load({currentTarget:t}){let{href:e,parentNode:i}=t;if(!gi.has(e)){for(let r of document.head.getElementsByTagName("link"))if(r.href===e){gi.add(e);return}document.head.append(t.cloneNode()),gi.add(e)}}}}).extend(t=>class extends t{constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}}).autoRegister("mdw-icon");function wi(t){return t.rootEvents({click(e){let{target:i}=e;if(!(i instanceof HTMLAnchorElement)||!i.href)return;i.dispatchEvent(new CustomEvent("mdw:hyperlink",{bubbles:!0,composed:!0,cancelable:!0,detail:{download:i.download,href:i.href,hreflang:i.hreflang,target:i.target}}))||e.preventDefault()}})}function _e(t){return{get(){return new URL(this.href,window.location.href)[t]},set(e){let{href:i}=this;if(!i)return;let r=new URL(i,window.location.href);r[t]=e,this.href=r.href}}}function te(t){return t.mixin(wi).observe({href:"string",target:"string",download:"string",ping:"string",rel:"string",hreflang:"string",referrerPolicy:{type:"string",attr:"referrerpolicy"}}).define({origin(){return new URL(this.href).origin},protocol:_e("protocol"),username:_e("username"),password:_e("password"),host:_e("host"),hostname:_e("hostname"),port:_e("port"),pathname:_e("pathname"),search:_e("search"),hash:_e("hash")}).html`<a id=anchor href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy}></a>`.methods({toString(){return this.href}})}var xi="mdw-form-associated-changed",vi={nullParser:String,value:""};function pe(t){return t.setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null,_files:null}).observe({ariaControls:"string",autocomplete:vi,name:vi,readOnly:{attr:"readonly",type:"boolean"},formNoValidate:{attr:"formnovalidate",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:vi,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_userInteracted:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e,_userInteracted:i}){return i&&e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){case"filename":default:return r;case"default":return i??"";case"default/on":return i??"on"}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;case"filename":if(e==null||e==="")this._files=null;else throw new DOMException("InvalidStateError");break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checkedDirty:e,defaultChecked:i,_checked:r}){return e?r:i},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.type==="submit"?!this.formNoValidate:this.type==="button"||this.type==="reset"?!1:this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){var r;(r=this._ipcTarget)==null||r.dispatchEvent(new CustomEvent(xi,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(xi,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(xi,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation(),this.checkValidity()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._userInteracted=!1,this._formReset=!1},formStateRestoreCallback(e,i){if(!(Ie<115)&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;case"button":case"reset":this.elementInternals.setFormValue(null);break;case"file":{let{elementInternals:e,_files:i,name:r}=this;if(!i||i.length)e.setFormValue(null);else{let o=new FormData;for(let n of i)o.append(r,n);e.setFormValue(o)}break}case"select-multiple":{let e=new FormData,i=this;if(i.name)for(let r of i.selectedOptions)e.append(i.name,r.value);this.elementInternals.setFormValue(e);break}default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this._userInteracted=!0,this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()},_valueBehaviorChanged(e,i){e!=="filename"&&i==="filename"&&(this.value="")},typeChanged(){this._updateFormAssociatedValue()}})}function ye(t){return t.mixin(pe).mixin(L).observe({ariaLabel:"string",_slotInnerText:"string"}).set({focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0,_slotMutationObserver:null}).methods({_onControlValue(e){this._value=e},onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._onControlValue(e.value)},focus(...e){this.refs.control.focus(...e)},click(){this.disabledState||this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control}}).methods({checkValidity(){if(!this.willValidate)return!0;let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage,e),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity(),this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e,this.refs.control)}}).observe({_computedAriaLabel({ariaLabel:e,_slotInnerText:i}){return(e==null?void 0:e.trim())||(i==null?void 0:i.trim())||null}}).expressions({_computedAriaLabelledby({_computedAriaLabel:e}){return e?null:"slot"}}).recompose(({template:e,html:i,element:r})=>{e.append(i`
|
|
175
|
+
`));var ao,lo;function tr(){return(ao??=new Text).cloneNode()}function Te(){return(lo??=new Comment).cloneNode()}var Ze=class{constructor(e){this.anchorNode=e.anchorNode,this.metadata=[],this.keys=[],this.needsArrayKeyFastPath=!1,this.composition=e.composition,this.renderOptions=e.renderOptions,this.metadataCache=null,this.queuedElements=[],this.batchStartIndex=null,this.batchEndIndex=null}render(e,i){return this.composition.render(e,i,this.renderOptions)}startBatch(){this.needsArrayKeyFastPath=!0}writeBatch(){var i;if(!this.queuedElements.length)return;(((i=this.metadata[this.batchStartIndex-1])==null?void 0:i.domNode)??this.anchorNode).after(...this.queuedElements),this.queuedElements.length=0}stopBatch(){if(this.writeBatch(),this.needsArrayKeyFastPath=!1,this.batchStartIndex=null,this.batchEndIndex=null,this.metadataCache){for(let{domNode:e}of this.metadataCache.values())e.remove();this.metadataCache.clear()}}removeByIndex(e){let[i]=this.metadata.splice(e,1),{domNode:r,key:o}=i;this.keys.splice(e,1),r.remove(),this.metadataCache?this.metadataCache.set(o,i):this.metadataCache=new Map([[o,i]])}renderData(e,i,r,o,n,s){var c;if(e<this.metadata.length){let d=this.metadata[e],p=d.key,m=p===o,f=n!==o;if(m){f?d.render(i,r):s||d.render(i,r);return}let h=this.metadataCache??=new Map,u=!1;this.needsArrayKeyFastPath&&(u=!this.keys.includes(o),this.needsArrayFastPath=!1);let g=u?-1:this.keys.indexOf(o,e+1);if(g===-1){if(h.has(o)){let b=h.get(o);this.metadata.splice(e,0,b),this.keys.splice(e,0,o),(((c=this.metadata[e-1])==null?void 0:c.domNode)??this.anchorNode).after(b.domNode),h.delete(o);return}h.set(p,d)}else{if(e-g===-1){this.removeByIndex(e);return}let b=this.metadata[g];this.metadata[e]=b,this.metadata.splice(g,1);let{domNode:w}=d;w.replaceWith(b.domNode),s||b.render(i,r),this.keys[e]=o,this.keys.splice(g,1),w.remove(),h.set(p,d);return}}let l=this.render(i,r),a=l.target;this.metadata[e]={render:l,element:a,key:o,domNode:a},this.keys[e]=o,(this.batchEndIndex===null||this.batchEndIndex!==e-1)&&(this.writeBatch(),this.batchStartIndex=e),this.batchEndIndex=e,this.queuedElements.push(a)}removeEntries(e=0){let{length:i}=this.metadata;for(let r=i-1;r>=e;r--)this.metadata[r].domNode.remove();this.metadata.length=e,this.keys.length=e}hide(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||i.hidden)return!1;let{comment:o,element:n}=i;return o||(o=Te(),i.comment=o),n.replaceWith(o),i.domNode=o,i.hidden=!0,!0}show(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||!i.hidden)return!1;let{comment:o,element:n}=i;return o.replaceWith(n),i.domNode=n,i.hidden=!1,!0}};function nr(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}var vt;function xe(t){if(vt??=new Map,vt.has(t))return vt.get(t);let e=t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);return vt.set(t,e),e}var ir,Ie=Number.parseFloat((ir=navigator.userAgent.match(/Chrome\/([\d.]+)/))==null?void 0:ir[1]),rr,et=Number.parseFloat((rr=navigator.userAgent.match(/Firefox\/([\d.]+)/))==null?void 0:rr[1]),or,yt=Ie||!navigator.userAgent.includes("AppleWebKit")?Number.NaN:Number.parseFloat((or=navigator.userAgent.match(/Version\/([\d.]+)/))==null?void 0:or[1]);function le(t){return!t||et<113&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||(t==null?void 0:t.getRootNode())===document?!1:t.matches(":focus")}function j(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return le(t)}function ce(t){return getComputedStyle(t).direction==="rtl"}var sr={};Lt(sr,{applyMergePatch:()=>kt,buildMergePatch:()=>tt,hasMergePatch:()=>St});function kt(t,e){if(t===e)return t;if(t==null||e==null||typeof e!="object")return e;typeof t!="object"&&(t={});for(let[i,r]of Object.entries(e))r==null?i in t&&delete t[i]:t[i]=kt(t[i],r);return t}function tt(t,e,i="reference"){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let r={};if(Array.isArray(e)){if(i==="reference")return e;if(i==="clone")return structuredClone(e);for(let[n,s]of e.entries()){if(s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}return e.length!==t.length&&(r.length=e.length),r}let o=new Set(Object.keys(t));for(let[n,s]of Object.entries(e)){if(o.delete(n),s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}for(let n of o)r[n]=null;return r}function St(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(St(t[i],r))return!0;return!1}function ar(t){switch(t){case"boolean":return!1;case"integer":case"float":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"object":return null;default:case"string":return""}}function ri(t,e,i,r){return t??={},new Proxy(t,{get(o,n){let s=o[n];if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;if(r?i.add(l):e.add(l),typeof s=="object"&&s!=null)return ri(s,e,i,l)}return s},has(o,n){let s=Reflect.has(o,n);if(typeof n!="symbol"){let l=r?`${r}.p`:n;r?i.add(l):e.add(l)}return s}})}function co(t){switch(t){case"boolean":return e=>!!e;case"integer":return Math.round;case"float":return e=>+e;case"map":return Map;case"set":return Set;case"object":case"array":return e=>e;default:case"string":return e=>`${e}`}}function oi(t,...e){let i=new Set,r=new Set,o=e.map(a=>{let c=new Set,d=new Set,p=ri(a,c,d);return{poked:c,pokedDeep:d,proxy:p}}),n=ri(this??{},i,r),s=t.apply(n,o.map(a=>a.proxy)),l=t.name?!0:!i.size;return{props:{this:[...i],args:o.map(a=>[...a.poked])},deepPropStrings:{this:[...r],args:o.map(a=>[...a.pokedDeep])},deepProps:{this:[...r].map(a=>a.split(".")),args:o.map(a=>[...a.pokedDeep].map(c=>c.split(".")))},defaultValue:s,reusable:l}}function po(){return null}function mo(t,e,i){let r=typeof e=="string"?{type:e}:e,{watchers:o,value:n,readonly:s,empty:l,type:a,enumerable:c,reflect:d,attr:p,nullable:m,parser:f,nullParser:h,get:u,is:g,diff:b,props:w}=r;if(o??=[],s??=!1,l===void 0&&(l=null),n??=l,u&&!w){let k=oi(u.bind(i),i,()=>n);n??=k.defaultValue,w=new Set([...k.props.this,...k.props.args[0]])}if(!a)if(n==null)a="string";else{let k=typeof n;a=k==="number"?Number.isInteger(n)?"integer":"number":k}return c??=t[0]!=="_",m??=a==="boolean"?!1:l==null,m||(l??=ar(a),n??=l),d??=c?a!=="object":p?"write":!1,p??=d?xe(t):null,f??=co(a),h||(m?h=po:h=l===null?()=>ar(a):()=>l),g??=a==="object"?(k,S)=>!St(k,S):a==="array"?()=>!1:Object.is,b===void 0&&(b=a==="object"?(k,S)=>tt(k,S,"reference"):null),{...r,type:a,is:g,diff:b,attr:p,reflect:d,readonly:s,enumerable:c,value:n,parser:f,nullParser:h,key:t,props:w,watchers:o}}function ii(t,e,i){var n,s;t.get;let r=i==null?t.nullParser.call(this,i):t.parser.call(this,i),o=r;if(e==null){if(r==null)return!1}else if(r!=null){if(t.diff){if(o=t.diff.call(this,e,r),o==null)return!1}else if(t.is.call(this,e,r))return!1}return t.values?t.values.set(this,r):t.values=new WeakMap([[this,r]]),(n=t.propChangedCallback)==null||n.call(this,t.key,e,r,o),(s=t.changedCallback)==null||s.call(this,e,r,o),!0}function ni(t,e,i){let r=mo(e,i,t);function o(){var d;return(d=r.values)!=null&&d.has(this)?r.values.get(this):r.value}function n(d){let p=this[e];ii.call(this,r,p,d)}function s(){var m,f;let d=(m=r.computedValues)==null?void 0:m.get(this),p=this[e];(f=r.needsSelfInvalidation)==null||f.delete(this),ii.call(this,r,d,p)}if(r.props)for(let d of r.props)r.watchers.push([d,s]);function l(){let d=r.get.call(this,this,o.bind(this));return(r.computedValues??=new WeakMap).set(this,d),d}function a(d){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let p=this[e];r.set.call(this,d,n.bind(this));let m=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),ii.call(this,r,p,m))}let c={enumerable:r.enumerable,configurable:!0,get:r.get?l:o,set:r.set?a:n};return Object.defineProperty(t,e,c),r}var lr=new Set;function it(t="mdw_",e=4){let i;for(;lr.has(i=Math.random().toString(36).slice(2,e+2)););return lr.add(i),`${t}${i}`}var si,cr,dr;function Ve(t){return si??=document.implementation.createHTMLDocument(),t?(dr??=si.createRange(),dr.createContextualFragment(t)):(cr??=si.createDocumentFragment(),cr.cloneNode())}var zt=new Map;function li(t){let e=`#${it()}`;return zt.set(e,{fn:t}),`{${e}}`}var ai=new Map;function ci(t,...e){let i,r=e.map(s=>{switch(typeof s){case"string":return s;case"function":return li(s);case"object":{if(s==null)return"";let l=it();return i??=new Map,i.set(l,s),`<div id="${l}"></div>`}default:throw new Error(`Unexpected substitution: ${s}`)}}),o=String.raw({raw:t},...r);if(i){let s=Ve(o);for(let[l,a]of i)s.getElementById(l).replaceWith(a);return s}let n;return ai.has(o)?n=ai.get(o):(n=Ve(o),ai.set(o,n)),n.cloneNode(!0)}function uo({nodes:t},e){let{nodeIndex:i,attrName:r}=this,o=t[i];switch(e){case void 0:case null:case!1:return o.removeAttribute(r),!1;case!0:return o.setAttribute(r,""),"";default:return o.setAttribute(r,e),e}}function ho({nodeStates:t,comments:e,nodes:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n],l=s&1;if(!(r!=null&&r!==!1)){if(l)return;let p=e[o];p||(p=Te(),e[o]=p),i[n].replaceWith(p),t[n]|=1;return}let c=i[n],d=s&2;if(typeof r!="object")if(d){let p=new Text(r);c.replaceWith(p),i[n]=p,t[n]&=-3}else c.data=r;l&&(e[o].replaceWith(c),t[n]&=-2)}function _o({nodeStates:t,nodes:e,comments:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n]&1,l=r!=null&&r!==!1;if(l===!s)return;let a=e[n],c=i[o];c||(c=Te(),i[o]=c),l?(c.replaceWith(a),t[n]&=-2):(a.replaceWith(c),t[n]|=1)}function fo({comments:t,nodeStates:e,nodes:i}){let{commentIndex:r,nodeIndex:o}=this,n=Te();t[r]=n,e[o]|=1,i[o].replaceWith(n)}function di(t,...e){let[{caches:i,searchStates:r}]=e,{cacheIndex:o,searchIndex:n,subSearch:s,invocation:l}=t,a=i[o],c=r[n];if(c&1)return{value:a,dirty:(c&2)===2};r[n]|=1;let d;if(l){if(s){let p=di(s,...e);if(!p.dirty&&a!==void 0)return r[n]&=-3,{value:a,dirty:!1};d=t.invocation(p.value)}else d=t.invocation(...e);if(d===void 0||a===d)return{value:d,dirty:!1}}return i[o]=d,r[n]|=2,{value:d,dirty:!0}}function pr({options:{context:t,store:e,injections:i}},r,o){return this.expression.call(t,e??o,i)}function bo(t,e){return e[this.prop]}function go(t,e,i){let r=e;for(let o of this.deepProp){if(r===null)return null;if(!(o in r))return;r=r[o]}return r}var wo=/{([^}]*)}/g;function xo(t,e){if(e)return e[t]}function mr(t,e){if(!e)return;let i=e,r;for(r of t)if(typeof i=="object"){if(i===null)return null;if(!(r in i))return;i=i[r]}else return i[r];return i}function vo(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var ur=new Map,Le=class t{static EVENT_PREFIX_REGEX=/^([*1~]+)?(.*)$/;_interpolationState={nodeIndex:-1,searchIndex:0,cacheIndex:0,commentIndex:0,nodeEntry:null};static shadowRootTag=Symbol();nodesToBind=[];props=[];searches=[];initCache=[];searchByQuery;actionsByPropsUsed;postInitActions=[];tagsWithBindings;tags=[];adapter;events;cloneable;styles=[];adoptedStyleSheets=[];stylesFragment;allIds=[];temporaryIds;interpolated=!1;constructor(...e){this.template=Ve(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template}static compose(...e){for(let[r,o]of ur)if(r.length===e.length&&e.every((n,s)=>n===r[s]))return o;let i=new t(...e);return ur.set(e,i),i}append(...e){for(let i of e)typeof i=="string"?this.append(Ve(i.trim())):i instanceof t?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.tag??"",r=this.events??=new Map;return r.has(i)?r.get(i).push(e):r.set(i,[e]),this}#e(e,i,r){var o;if((o=this.events)!=null&&o.has(e))for(let n of this.events.get(e)){let s;n.handleEvent?s=n.handleEvent:n.deepProp.length?s=mr(n.deepProp,this.interpolateOptions.defaults):s=xo(n.prop,this.interpolateOptions.defaults),i.addEventListener(n.type,r?s.bind(r):s,n)}}render(e,i,r={}){this.interpolated||this.interpolate({defaults:i??e,...r});let o=this.cloneable.cloneNode(!0),n=r.shadowRoot,s=n??r.target??o.firstElementChild,l={lastChildNode:null,lastChildNodeIndex:0,lastElement:null,nodeStates:new Uint8Array(this._interpolationState.nodeIndex+1),searchStates:new Uint8Array(this._interpolationState.searchIndex),comments:[],nodes:[],caches:this.initCache.slice(),refs:[],options:r},{nodes:a,refs:c,searchStates:d,caches:p}=l;for(let{tag:f,textNodes:h}of this.nodesToBind){let u;if(f===""){if(!h.length)continue;c.push(null),a.push(null),u=o.firstChild}else{let b=o.getElementById(f);if(c.push(b),a.push(b),this.#e(f,b,r.context),!h.length)continue;u=b.firstChild}let g=0;for(let b of h){for(;b!==g;)u=u.nextSibling,g++;a.push(u)}}this.#e("",r.context),this.#e(t.shadowRootTag,r.context.shadowRoot,r.context);for(let f of this.postInitActions)f.invocation(l);let m=(f,h)=>{var g;if(!f)return;let u=!1;for(let b of this.props){if(!((g=this.actionsByPropsUsed)!=null&&g.has(b))||!(b in f))continue;let w=this.actionsByPropsUsed.get(b);for(let k of w){u=!0;let{dirty:S,value:A}=di(k.search,l,f,h);S&&k.invocation(l,A,f,h)}}u&&d.fill(0)};return n?(r.context??=n.host,"adoptedStyleSheets"in n?this.adoptedStyleSheets.length&&(n.adoptedStyleSheets=[...n.adoptedStyleSheets,...this.adoptedStyleSheets]):this.stylesFragment.hasChildNodes()&&o.prepend(this.stylesFragment.cloneNode(!0))):r.context??=s,e!==this.interpolateOptions.defaults&&m(e,i),n&&(n.append(o),customElements.upgrade(n)),m.target=s,m.byProp=(f,h,u)=>{var k,S;if(!((k=this.actionsByPropsUsed)!=null&&k.has(f)))return;let g=!1;if((S=this.searchByQuery)!=null&&S.has(f)){g=!0;let A=this.searchByQuery.get(f);if(p[A.cacheIndex]===h)return;p[A.cacheIndex]=h,d[A.searchIndex]=3}let b,w=this.actionsByPropsUsed.get(f);for(let A of w)if(A.search.query===f)A.invocation(l,h);else{b??={[f]:h},u??=b,g=!0;let T=di(A.search,l,b,u);T.dirty&&A.invocation(l,T.value,b,u)}g&&d.fill(0)},m.state=l,m}#r(e,i,r,o){var T,E;let{nodeValue:n,nodeName:s,nodeType:l}=e,a,c;if(l===Node.ATTRIBUTE_NODE?a=e:c=e,o==null){if(!n)return;let v=n.trim();if(!v)return;if(a||(i==null?void 0:i.tagName)==="STYLE"){if(v[0]!=="{")return;let{length:y}=v;if(v[y-1]!=="}")return;o=v.slice(1,-1)}else{let y=v.split(wo);if(y.length<3)return;if(y.length===3&&!y[0]&&!y[2])o=y[1];else{for(let[z,D]of y.entries())if(z%2){let I=tr();c.before(I),this.#r(I,i,r,D)}else D&&c.before(D);return!0}}}let d=o,p=o[0]==="!",m=!1;p&&(o=o.slice(1),m=o[0]==="!",m&&(o=o.slice(1)));let f,h;if(c){i!==c.parentElement&&(i=c.parentElement),h=0;let v=c;for(;v=v.previousSibling;)h++}else if(i!==a.ownerElement&&(i=a.ownerElement),s.startsWith("on")){let v=s.indexOf("-");if(v===-1)return;f=v===2}if(f){i.removeAttribute(s);let v=this.#i(i),y=s.slice(3),[,z,D]=y.match(/^([*1~]+)?(.*)$/),I,R,P=[];if(o.startsWith("#"))I=zt.get(o).fn;else{let V=o.split(".");V.length===1?(R=o,P=[]):(R=V[0],P=V)}this.addCompositionEventListener({tag:v,type:D,handleEvent:I,prop:R,deepProp:P,once:z==null?void 0:z.includes("1"),passive:z==null?void 0:z.includes("~"),capture:z==null?void 0:z.includes("*")});return}let u;if((T=this.searchByQuery)!=null&&T.has(d))u=this.searchByQuery.get(d);else{let v=o,y=v!==d,z;if(y&&((E=this.searchByQuery)!=null&&E.has(v)))z=this.searchByQuery.get(v);else{let D,I,R,P,V,ie,Y,F;if(o.startsWith("#")){if(F=zt.get(o),!F)return;D=F.fn,Y=pr,F.props?(I=F.props,R=F.deepProps,P=F.defaultValue??null):P=F.fn}else P=null,r!=null&&r.defaults&&(P=mr(o.split("."),r.defaults)??null),P==null&&(r!=null&&r.injections)&&(P=vo(o,r.injections));if(!I)if(typeof P=="function"){let X=oi.call(this,P,r==null?void 0:r.defaults,r==null?void 0:r.injections),je=new Set([...X.props.this,...X.props.args[0],...X.props.args[1]]),We=new Set([...X.deepPropStrings.this,...X.deepPropStrings.args[0]]);D=P,P=X.defaultValue,I=[...je],R=[...We].map(lt=>lt.split(".")),Y=pr}else{let X=o.split(".");X.length===1?(V=o,I=[V],Y=bo):(I=[X[0]],ie=X,R=[X],Y=go)}F&&(F.defaultValue=P,F.props=I,F.deepProps=R),z={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:v,defaultValue:P,subSearch:null,prop:V,propsUsed:I,deepProp:ie,deepPropsUsed:R,invocation:Y,expression:D},this.addSearch(z)}y?(u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:d,subSearch:z,negate:p,doubleNegate:m,prop:z.prop,deepProp:z.deepProp,propsUsed:z.propsUsed,deepPropsUsed:z.deepPropsUsed,defaultValue:m?!!z.defaultValue:p?!z.defaultValue:z.defaultValue,invocation(D){return this.doubleNegate?!!D:this.negate?!D:D}},this.addSearch(u)):u=z}let g,b=null,w=u.defaultValue;c?b=h:s==="mdw-if"?(g=this.#i(i),i.removeAttribute(s),w=w!=null&&w!==!1):(b=s,s==="id"||w==null||w===!1?i.removeAttribute(s):i.setAttribute(s,w===!0?"":w)),g??=this.#i(i);let k=this._interpolationState.nodeEntry;(!k||k.tag!==g)&&(k={tag:g,textNodes:[]},this._interpolationState.nodeEntry=k,this.nodesToBind.push(k),this._interpolationState.nodeIndex++);let S;if(c)switch(k.textNodes.push(h),this._interpolationState.nodeIndex++,S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,invocation:ho,defaultValue:w,search:u},typeof w){case"string":c.data=w;break;case"number":c.data=`${w}`;break;default:c.data="";break}else b?S={nodeIndex:this._interpolationState.nodeIndex,attrName:b,defaultValue:w,invocation:uo,search:u}:(S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,defaultValue:w,invocation:_o,search:u},w||this.postInitActions.push({...S,invocation:fo}));this.addAction(S),(this.tagsWithBindings??=new Set).add(g)}#i(e){if(!e)return"";let i=e.id;return i?this.allIds.includes(i)||this.allIds.push(i):(i=it(),(this.temporaryIds??=new Set).add(i),this.allIds.push(i),e.id=i),i}#t(e,i){let r=e.getAttribute("mdw-for"),o=r==null?void 0:r.trim();if(!o||o[0]!=="{")return null;let{length:n}=o;if(o[n-1]!=="}")return null;let s=o.slice(1,-1),[l,a]=s.split(/\s+of\s+/);e.removeAttribute("mdw-for");let c=e.ownerDocument.createElement("template");e.replaceWith(c);let d=this.#i(c),p=this._interpolationState.nodeEntry;(!p||p.tag!==d)&&(p={tag:d,textNodes:[]},this._interpolationState.nodeEntry=p,this.nodesToBind.push(p),this._interpolationState.nodeIndex++);let m=new t;m.template.append(e);let f={...i.injections,[l]:null,index:null},h=[a],u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:null,prop:null,deepProp:null,propsUsed:h,deepPropsUsed:[[a]],defaultValue:{},invocation:null},g={defaultValue:null,nodeIndex:this._interpolationState.nodeIndex,search:u,commentIndex:this._interpolationState.commentIndex++,injections:f,invocation(w,k,S,A){if(!m.adapter){let I=w.nodes[this.nodeIndex],R=Te();w.comments[this.commentIndex]=R,I.replaceWith(R),m.adapter=new Ze({anchorNode:R,composition:m,renderOptions:{target:null,context:w.options.context,store:w.options.store,injections:this.injections}})}let{adapter:T}=m,E=(A??w.options.store)[a];if(!E||E.length===0){T.removeEntries();return}let v=S[a],y={...S},z=m.props.some(I=>I!==a&&I in S);T.startBatch();let D;if(!z&&!(D=Array.isArray(v))){let I=D?v.entries():Object.entries(v);for(let[R,P]of I){if(R==="length"||P===null)continue;let V=+R,ie=E[V];y[l]=P,this.injections[l]=ie,this.injections.index=V,T.renderData(V,y,A,ie,P)}}else{v||delete y[l];for(let[I,R]of E.entries()){let P;if(v){if(!z&&!(I in v)||(P=v[I],P===null))continue;y[l]=P}this.injections[l]=R,this.injections.index=I,T.renderData(I,y,A,R,P)}}T.stopBatch(),T.removeEntries(E.length)}};return m.interpolate({defaults:i.defaults,injections:f}),h.push(...m.props),this.addSearch(u),this.addAction(g),(this.tagsWithBindings??=new Set).add(d),m}interpolate(e){var n;this.interpolateOptions=e,this.cloneable=this.template.cloneNode(!0);let r=document.createTreeWalker(this.cloneable,5),o=r.nextNode();for(;o;){let s=null;switch(o.nodeType){case Node.ELEMENT_NODE:if(s=o,s.tagName==="TEMPLATE"){for(;s.contains(o=r.nextNode()););continue}if(s.tagName==="SCRIPT"){for(;s.contains(o=r.nextNode()););continue}if(s.hasAttribute("mdw-for")){for(;s.contains(o=r.nextNode()););this.#t(s,e);continue}else{let l=s.attributes.id;l&&(this.#r(l,s,e),this.#i(s));for(let a of[...s.attributes].reverse())a.nodeName!=="id"&&this.#r(a,s,e)}break;case Node.TEXT_NODE:if(s=o.parentElement,this.#r(o,s,e)){let l=r.nextNode();o.remove(),o=l;continue}break;default:throw new Error(`Unexpected node type: ${o.nodeType}`)}o=r.nextNode()}"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...Zi(this.styles)]:(this.stylesFragment=Ve(),this.stylesFragment.append(...er(this.styles))),this.props=this.actionsByPropsUsed?[...this.actionsByPropsUsed.keys()]:[];for(let s of this.allIds)(n=this.tagsWithBindings)!=null&&n.has(s)||this.nodesToBind.push({tag:s,textNodes:[]});this.tags=this.nodesToBind.map(s=>s.tag),this.interpolated=!0}addSearch(e){return this.searches.push(e),e.query&&((this.searchByQuery??=new Map).set(e.query,e),this.initCache[e.cacheIndex]=e.defaultValue),e}addAction(e){let i=this.actionsByPropsUsed??=new Map;for(let r of e.search.propsUsed)i.has(r)?i.get(r).push(e):i.set(r,[e]);return e}};function O(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var _=class t extends HTMLElement{static elementName;static get observedAttributes(){return this.attrList.keys()}compose(){return this.#t??=new Le}static _composition=null;static _props=new Map;static _attrs=new Map;static _propChangedCallbacks=new Map;static _attributeChangedCallbacks=new Map;static _onComposeCallbacks=[];static _onConnectedCallbacks=[];static _onDisconnectedCallbacks=[];static _onConstructedCallbacks=[];static interpolatesTemplate=!0;static supportsElementInternals="attachInternals"in HTMLElement.prototype;static supportsElementInternalsRole=t.supportsElementInternals&&"role"in ElementInternals.prototype;static templatable=null;static defined=!1;static autoRegistration=!0;static registrations=new Map;static expressions=this.set;static methods=this.set;static overrides=this.set;static props=this.observe;static idl=this.prop;static _addCallback(e,i){if(!this.hasOwnProperty(e)){this[e]=[...this[e],i];return}this[e].push(i)}static append(...e){return this._onComposeCallbacks.push(({composition:i})=>{i.append(...e)}),this._addCallback("_onComposeCallbacks",(i=>{let{composition:r}=i;r.append(...e)})),this}static recompose(e){return this._addCallback("_onComposeCallbacks",e),this}static css(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;typeof e=="string"||Array.isArray(e)?o.append(wt(e,...i)):o.append(e,...i)})),this}static autoRegister(e){return this.hasOwnProperty("defined")&&this.defined?this:(this.register(e),this)}static html(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;o.append(ci(e,...i))})),this}static extend(e){return e?e(this):class extends this{}}static setStatic(e){return Object.assign(this,e),this}static readonly(e,i){return this.set(e,{...i,writable:!1})}static set(e,i){return Object.defineProperties(this.prototype,Object.fromEntries([...Object.entries(e).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,value:o,writable:!0,...i}])),...Object.getOwnPropertySymbols(e).map(r=>[r,{enumerable:!1,configurable:!0,value:e[r],writable:!0,...i}])])),this}static mixin(e){return e(this)}static register(e){return e&&(this.elementName=e),customElements.define(this.elementName,this),t.registrations.set(this.elementName,this),this.defined=!0,this}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get attrList(){return this.hasOwnProperty("_attrs")||(this._attrs=new Map(this._attrs)),this._attrs}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._attributeChangedCallbacks}static prop(e,i){let r=ni(this.prototype,e,i),{changedCallback:o,attr:n,reflect:s,watchers:l}=r;return o&&l.push([e,o]),r.changedCallback=function(c,d,p){this._onObserverPropertyChanged.call(this,e,c,d,p)},this.propList.set(e,r),n&&(s===!0||s==="read")&&(r.enumerable||!this.attrList.has(n)||!this.attrList.get(n).enumerable)&&this.attrList.set(n,r),this.onPropChanged(l),this}static define(e){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(e).map(([i,r])=>(this.undefine(i),[i,{enumerable:i[0]!=="_",configurable:!0,...typeof r=="function"?{get:r}:r}])))),this}static undefine(e){if(Reflect.deleteProperty(this.prototype,e),this.propList.has(e)){let{watchers:i,attr:r,reflect:o}=this.propList.get(e);if(i.length&&this.propChangedCallbacks.has(e)){let n=this.propChangedCallbacks.get(e);for(let[s,l]of i){let a=n.indexOf(l);a!==-1&&n.splice(a,1)}}r&&(o===!0||o==="read")&&this.attrList.delete(r),this.propList.delete(e)}return this}static observe(e){for(let[i,r]of Object.entries(e??{})){let o=typeof r=="function"?{reflect:!1,get:r}:r;this.prop(i,o)}return this}static defineStatic(e){for(let[i,r]of Object.entries(e??{}))ni(this,i,{reflect:!1,...typeof r=="function"?{get:r}:typeof r=="string"?{type:r}:r});return this}static events(e,i){return this.on({composed({composition:r}){for(let[o,n]of Object.entries(e)){let[,s,l]=o.match(/^([*1~]+)?(.*)$/),a,c=[];if(typeof n=="string"){let d=n.split(".");d.length===1?(a=n,c=[]):(a=d[0],c=d)}r.addCompositionEventListener({type:l,once:s==null?void 0:s.includes("1"),passive:s==null?void 0:s.includes("~"),capture:s==null?void 0:s.includes("*"),...typeof n=="function"?{handleEvent:n}:typeof n=="string"?{prop:a,deepProp:c}:n,...i})}}}),this}static childEvents(e,i){for(let[r,o]of Object.entries(e))this.events(o,{tag:xe(r),...i});return this}static rootEvents(e,i){return this.events(e,{tag:Le.shadowRootTag,...i})}static on(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(n);continue;case"attrs":this.onAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.onPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._addCallback(s,n)}return this}static onPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}static onAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}#e;#r=new Map;#i=new Map;#t;#n=!1;#o=[];_propAttributeCache;_callbackArguments=null;constructor(...e){super(),t.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.render=this.composition.render(this.constructor.prototype,this,{defaults:this.constructor.prototype,store:this,shadowRoot:this.shadowRoot,context:this});for(let i of this.static._onConstructedCallbacks)i.call(this,this.callbackArguments)}propChangedCallback(e,i,r,o=r){this.#n?this.#o.push([e,o,this]):this.render.byProp(e,o,this);let{_propChangedCallbacks:n}=this.static;if(n.has(e))for(let s of n.get(e))s.call(this,i,r,o,this)}attributeChangedCallback(e,i,r){let{attributeChangedCallbacks:o}=this.static;if(o.has(e))for(let d of o.get(e))d.call(this,i,r,this);let{attrList:n}=this.static;if(!n.has(e))return;let s=n.get(e);if(s.attributeChangedCallback){s.attributeChangedCallback.call(this,e,i,r);return}let l;if(this.attributeCache.has(e)&&(l=this.attributeCache.get(e),l.stringValue===r))return;let a=this[s.key],c=r===null?s.nullParser(r):s.type==="boolean"?!0:s.parser(r);c!==a&&(l?(l.stringValue=r,l.parsedValue=c):this.attributeCache.set(e,{stringValue:r,parsedValue:c}),this[s.key]=c)}get#s(){var e;return(e=this.#t)==null?void 0:e.template}_onObserverPropertyChanged(e,i,r,o){let{propList:n}=this.static;if(n.has(e)){let{reflect:s,attr:l}=n.get(e);if(l&&(s===!0||s==="write")){let a,c=!1,{attributeCache:d}=this;if(d.has(l)?(a=d.get(l),c=a.parsedValue!==r):(a={},d.set(l,a),c=!0),c){let p=nr(r);a.parsedValue=r,a.stringValue=p,p==null?this.removeAttribute(l):this.setAttribute(l,p)}}}this.propChangedCallback(e,i,r,o)}patch(e){this.#n=!0,kt(this,e);for(let[i,r,o]of this.#o)i in e||this.render.byProp(i,r,o);this.#o.slice(0,this.#o.length),this.render(e),this.#n=!1}get refs(){return this.#e??=new Proxy({},{get:(e,i)=>{this.#t;let r=this.composition,o;if(!r.interpolated){if(this.#i.has(i)&&(o=this.#i.get(i).deref(),o))return o;let l=xe(i);return o=r.template.getElementById(l),o?(this.#i.set(i,new WeakRef(o)),o):null}if(this.#r.has(i)&&(o=this.#r.get(i).deref(),o))return o;let n=xe(i),s=this.composition.tags.indexOf(n);return o=this.render.state.refs[s],o?(this.#r.set(i,new WeakRef(o)),o):null}})}get attributeCache(){return this._propAttributeCache??=new Map}get static(){return this.constructor}get unique(){return!1}get callbackArguments(){return this._callbackArguments??={composition:this.#t,refs:this.refs,html:ci.bind(this),inline:li,template:this.#s,element:this}}get composition(){if(this.#t)return this.#t;if(!this.unique&&this.static.hasOwnProperty("_composition"))return this.#t=this.static._composition,this.static._composition;this.compose();for(let e of this.static._onComposeCallbacks)e.call(this,this.callbackArguments);return this.unique||(this.static._composition=this.#t),this.#t}connectedCallback(){for(let e of this.static._onConnectedCallbacks)e.call(this,this.callbackArguments)}disconnectedCallback(){for(let e of this.static._onDisconnectedCallbacks)e.call(this,this.callbackArguments)}};_.prototype.delegatesFocus=!1;function G(t){return t.observe({density:"integer"}).css`:host{--mdw-density:var(--mdw-density__default, 0)}:host([density]){--mdw-density:0}:host([density="-1"]){--mdw-density:-1}:host([density="-2"]){--mdw-density:-2}:host([density="-3"]){--mdw-density:-3}:host([density="-4"]){--mdw-density:-4}:host([density="1"]){--mdw-density:1}:host([density="2"]){--mdw-density:2}:host([density="3"]){--mdw-density:3}:host([density="4"]){--mdw-density:4}`}function C(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=outline mdw-if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}></div>`.css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));z-index:0;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}`.css`.outline{position:absolute;inset:0;overflow:hidden;border-style:solid;border-width:1px;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}`}var yo=De.map(t=>[`:host([color="${t}"]){`,`--mdw-bg: var(--mdw-color__${t});`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([color="${t}-container"]){`,`--mdw-bg: var(--mdw-color__${t}-container);`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),ko=De.map(t=>[`:host([ink="${t}"]){`,`--mdw-ink: var(--mdw-color__${t});`,"}",`:host([ink="on-${t}"]){`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([ink="on-${t}-container"]){`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),So=Ut.map(t=>[`:host([type-style|="${t}"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-large__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-large__letter-spacing);`,"}",`:host([type-style="${t}-medium"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-medium__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-medium__letter-spacing);`,"}",`:host([type-style="${t}-small"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-small__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-small__letter-spacing);`,"}"].join("")).join("");function x(t){return t.observe({color:"string",ink:"string",typeStyle:"string"}).css(yo).css`:host([color=background]){--mdw-bg:var(--mdw-color__background);--mdw-ink:var(--mdw-color__on-background)}:host([color=surface-dim]){--mdw-bg:var(--mdw-color__surface-dim)}:host([color=surface-bright]){--mdw-bg:var(--mdw-color__surface-bright)}:host([color=surface-container-lowest]){--mdw-bg:var(--mdw-color__surface-container-lowest)}:host([color=surface-container-low]){--mdw-bg:var(--mdw-color__surface-container-low)}:host([color=surface-container-high]){--mdw-bg:var(--mdw-color__surface-container-high)}:host([color=surface-container-highest]){--mdw-bg:var(--mdw-color__surface-container-highest)}:host([color=surface-primary]){--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__primary)}:host([color$=variant]){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host([color^=inverse]){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([color=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}`.css(ko).css`:host([ink=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}:host([ink=outline]){--mdw-ink:var(--mdw-color__outline)}:host([ink=surface-container-highest]){--mdw-ink:var(--mdw-color__surface-container-highest)}:host([ink=on-surface-variant]){--mdw-ink:var(--mdw-color__on-surface-variant)}:host([ink=inverse-on-surface]){--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([ink=inherit]){--mdw-ink:inherit}`.css(So)}var zo=_.extend().mixin(x).mixin(G).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-error);--mdw-bg:var(--mdw-color__error);--mdw-type__font:var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-block:calc(8px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width:1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){min-block-size:6px;min-inline-size:6px;margin:5px;padding:0}`.autoRegister("mdw-badge");function L(t){return t.set({delegatesFocus:!0}).extend(Ie>=111?e=>e:e=>class extends e{get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&le(this)){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};for(let o of["blur","focus","focusout","focusin"])this.addEventListener(o,r,{capture:!0,once:!0});super.tabIndex=i;for(let o of["blur","focus","focusout","focusin"])this.removeEventListener(o,r,{capture:!0});return}super.tabIndex=i}}})}function pi(t){return t?t.includes("px")||t.includes("em")||t.includes("ex")?t:`calc(${t.replace("sp","")} * 0.0625rem)`:""}function Re(t){return t.mixin(L).observe({textPadding:"string",textPaddingTop:"string",textLeading:"string",textPaddingBottom:"string"}).observe({_computedTextPaddingTop({textPaddingTop:e,textPadding:i}){return pi(e??i)},_computedTextPaddingBottom({textPaddingBottom:e,textPadding:i}){return pi(e??i)},_computedTextLeading({textLeading:e}){return pi(e)}}).observe({_beforeStyle({_computedTextPaddingTop:e,_computedTextLeading:i}){return i?`margin-top:${i}`:e?`margin-top:${e}`:""},_afterStyle({_computedTextPaddingBottom:e}){return e?`vertical-align:calc(-1em + (-1 * ${e}));`:""}}).html`<div id=wrapper style={_wrapperStyle} before={!!_beforeStyle} after={!!_afterStyle}><span id=before mdw-if={!!_beforeStyle} style={_beforeStyle} text-leading={textLeading}></span><span id=content before={!!_beforeStyle} after={!!_afterStyle}><span id=after mdw-if={!!_afterStyle} style={_afterStyle}></span></span></div>`.recompose(({refs:{content:e,slot:i}})=>{e.prepend(i)}).css`:host{display:block}:host(:where([text-padding],[text-padding-top],[text-padding-bottom])){display:flex}#wrapper{display:contents}#wrapper:where([before],[after]){display:flex;align-items:baseline}#wrapper[before]{margin-block-start:-1em}#wrapper[after]{margin-block-end:-1em}#before{display:inline-block;block-size:1.4ex;padding-block-start:1em}@supports (height:1cap){#before{block-size:1cap}}#before[text-leading]{block-size:0}#content{display:contents}#content:where([before],[after]){display:block}#after{display:inline-block;padding-block-end:1em}`}function de(t){return t.observe({block:"boolean",inline:"boolean",row:"boolean",x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"string"}).css`:host{display:flex;flex-direction:column;box-sizing:border-box}:host(:is([inline])){display:inline-flex}:host(:is([block])){display:block}:host(:is([inline][block])){display:inline-block}:host(:is([row])){flex-direction:row}:host(:is([row][y=start],[x=start]:not([row]))){align-items:flex-start}:host(:is([row][y=end],[x=end]:not([row]))){align-items:flex-end}:host(:is([row][y=center],[x=center]:not([row]))){align-items:center}:host(:is([row][y=between],[x=between]:not([row]))){align-items:space-between}:host(:is([row][y=around],[x=around]:not([row]))){align-items:space-around}:host(:is([row][y=baseline],[x=baseline]:not([row]))){align-items:baseline}:host(:is([row][y=stretch],[x=stretch]:not([row]))){align-items:stretch}:host(:is([row][x=start],[y=start]:not([row]))){justify-content:flex-start}:host(:is([row][x=end],[y=end]:not([row]))){justify-content:flex-end}:host(:is([row][x=center],[y=center]:not([row]))){justify-content:center}:host(:is([row][x=between],[y=between]:not([row]))){justify-content:space-between}:host(:is([row][x=stretch],[y=stretch]:not([row]))){justify-content:stretch}:host(:is([wrap])){flex-wrap:wrap}:host(:is([wrap=reverse])){flex-wrap:wrap-reverse}:host(:is([gap])){gap:0}:host(:is([gap="4"])){gap:4px}:host(:is([gap="8"])){gap:8px}:host(:is([gap="12"])){gap:12px}:host(:is([gap="16"])){gap:16px}:host(:is([gap="20"])){gap:20px}:host(:is([gap="24"])){gap:24px}:host(:is([padding])){padding:0}:host(:is([padding=pane])){padding-inline:var(--mdw-pane__padding-inline,0)}:host(:is([padding="4"])){padding:4px}:host(:is([padding="8"])){padding:8px}:host(:is([padding="12"])){padding:12px}:host(:is([padding="16"])){padding:16px}:host(:is([padding="20"])){padding:20px}:host(:is([padding="24"])){padding:24px}:host(:is([padding-x])){padding-inline:0}:host(:is([padding-x="4"])){padding-inline:4px}:host(:is([padding-x="8"])){padding-inline:8px}:host(:is([padding-x="12"])){padding-inline:12px}:host(:is([padding-x="16"])){padding-inline:16px}:host(:is([padding-x="20"])){padding-inline:20px}:host(:is([padding-x="24"])){padding-inline:24px}:host(:is([padding-y])){padding-block:0}:host(:is([padding-y="4"])){padding-block:4px}:host(:is([padding-y="8"])){padding-block:8px}:host(:is([padding-y="12"])){padding-block:12px}:host(:is([padding-y="16"])){padding-block:16px}:host(:is([padding-y="20"])){padding-block:20px}:host(:is([padding-y="24"])){padding-block:24px}`}var H=_.extend().mixin(x).mixin(de).html`<slot id=slot></slot>`.css`:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot::slotted([flex-0]){flex:0}#slot::slotted([flex-1]){flex:1}#slot::slotted([flex-none]){flex:none}`.autoRegister("mdw-box");var Co=H.extend().mixin(Re).css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function $(t){return t.observe({_ariaRole:"string"}).set({_onConnectAriaValues:null}).methods({readAriaProperty(e){if(this.elementInternals&&e in this.elementInternals)return this.elementInternals[e];if(e in this)return this[e];let i=e;return i.startsWith("aria")&&(i=`aria-${i.slice(4).toLowerCase()}`),this.getAttribute(e)},updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(this.isConnected)if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}else this._onConnectAriaValues??=new Map,this._onConnectAriaValues.set(e,i)}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)},connected(){if(this._onConnectAriaValues){for(let[e,i]of this._onConnectAriaValues)this.updateAriaProperty(e,i);this._onConnectAriaValues=null}}})}var Eo=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function oe(t){return t.mixin($).observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Eo},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.readAriaProperty("ariaOrientation")??this.ariaOrientationDefault)==="vertical"},focusCurrentOrFirst(){let e,i;for(let r of this.kbdNavChildren)if(i=r,r.tabIndex===0){e=r;break}return j(e)?e:j(i)?i:null},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let s of n){if(!o){o=e?s===e:s.getAttribute("tabindex")==="0";continue}if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&j(s))return this.ariaActiveDescendantElement=s,s}if(!i)return!le(e)&&e instanceof HTMLElement&&e.focus(),e;for(let s of n)if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&(j(s)||s===e))return s;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!j(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&le(o)?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=le(o)?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function $e(t){return t.mixin($).mixin(oe).set({ariaOrientationDefault:"horizontal",_ariaRole:"toolbar"})}function U(t){return t.css`:host{--mdw-elevation__rgb:var(--mdw-color__shadow);--mdw-elevation__box-shadow__0:0px 1px 1px 0px rgba(var(--mdw-elevation__rgb), 0),0px 0px 1px 1px rgba(var(--mdw-elevation__rgb), 0);--mdw-elevation__box-shadow__1:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 1px 3px 1px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__2:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 2px 6px 2px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__3:0px 1px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 4px 8px 3px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__4:0px 2px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 6px 10px 4px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__5:0px 4px 4px 0px rgba(var(--mdw-elevation__rgb), .3),0px 8px 12px 6px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__drop-shadow__0:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),000)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),00000));--mdw-elevation__drop-shadow__1:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__2:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 2px 005px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__3:drop-shadow(0px 1px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 4px 007px rgba(var(--mdw-elevation__rgb),.263));--mdw-elevation__drop-shadow__4:drop-shadow(0px 2px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 6px 009px rgba(var(--mdw-elevation__rgb),.27));--mdw-elevation__drop-shadow__5:drop-shadow(0px 4px 2px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 8px 012px rgba(var(--mdw-elevation__rgb),.3))}`}var mi=_.extend().mixin(x).mixin(de).mixin(U).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;filter:var(--mdw-elevation__drop-shadow__0);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-surface");var Mo=mi.extend().mixin($e).observe({color:{empty:"surface-container"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);align-items:center;flex-direction:row;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var Z={type:"function",reflect:"read",value:null,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r;try{let o=`with(this.ownerDocument ?? document){with(this.form ?? {}){with(this){${i}}}}`;r=new Function(`return function ${t}(event){${o}}`)()}catch{let o=(this.ownerDocument??document).createElement("button");o.setAttribute("onclick",i),r=o.onclick}this[t]=r},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}},_i=new WeakMap,fi=new WeakMap;function Ao(t){let e=fi.get(this),i;e!=null&&e.has(t)&&(i=e.get(t));let r=_i.get(this),{initial:o}=r.get(t);r.delete(t);let n=this[t];if(!n){i==null||i.cancel();return}let{target:s,styles:l,timing:a}=n,d=(s?typeof s=="string"?this.refs[s]:s:this).animate(l,{...a,...o?{duration:0}:null,fill:"forwards"});d.onremove=()=>{i==null||i.effect.updateTiming({fill:"none"}),i==null||i.finish(),i==null||i.cancel(),i=null},e?e.set(t,d):fi.set(this,new Map([[t,d]]))}var He=new WeakMap,hr=new ResizeObserver(t=>{for(let{target:e}of t)if(He.has(e)){let i=He.get(e);He.delete(e),hr.unobserve(e);for(let r of i)r()}}),ee={type:"object",reflect:!1,diff:null,propChangedCallback(t,e,i){if(!i){let s=fi.get(this);if(!(s!=null&&s.has(t)))return}let r=_i.get(this),o=!this.isConnected;if(r){if(r.has(t))return;r.set(t,{initial:o})}else _i.set(this,new Map([[t,{initial:o}]]));let n=Ao.bind(this,t);this.isConnected?queueMicrotask(n):He.has(this)?He.get(this).push(n):(He.set(this,[n]),hr.observe(this))}},ui=new WeakMap,hi=null,ne={type:"string",reflect:!1,parser(t){return!t||typeof t=="string"?t:`:host{${Object.entries(t).map(([e,i])=>`${xe(e)}:${i}`).join(";")}}`},propChangedCallback(t,e,i){let r,o;if(ui.has(this))r=ui.get(this),r.has(t)&&(o=r.get(t));else{if(!i)return;r=new Map,ui.set(this,r)}if(hi??="adoptedStyleSheets"in ShadowRoot.prototype,!o){if(hi)o=new CSSStyleSheet,this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,o];else{let n=this.ownerDocument.createElement("style");this.shadowRoot.prepend(n),o=n}r.set(t,o)}i?(hi?o.replaceSync(i):i&&(o.textContent=i),o.disabled=!1):o.disabled=!0}};var _r=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function B(t){return t.observe({_resizeObserverEnabled:{type:"boolean",value:!0}}).methods({onResizeObserved(e){},observeResize(){_r.observe(this,{box:"border-box"})},unobserveResize(){_r.unobserve(this)}}).on({connected(){this._resizeObserverEnabled&&this.observeResize()},disconnected(){this.unobserveResize()},_resizeObserverEnabledChanged(e,i){i?this.observeResize():this.unobserveResize()}})}var br,fr=(br=window==null?void 0:window.matchMedia)==null?void 0:br.call(window,"(any-pointer: coarse)").matches;function N(t){return t.observe({disabled:"boolean",focused:"boolean",hovered:"boolean",pressed:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_focusedSynthetic:"boolean",_keyPressed:"boolean",_keyReleased:"boolean",_pointerPressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e,hovered:i}){return e||i},focusedState({_focused:e,focused:i}){return e||i},pressedState({_keyPressed:e,_pointerPressed:i,pressed:r}){return e||i||r},touchedState({_lastInteraction:e}){return e==="touch"},pointedState({_lastInteraction:e}){return e==="mouse"||e==="pen"}}).define({stateTargetElement(){return this}}).html`<div id=state mdw-if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} pointed={pointedState} aria-hidden=true></div>`.events({pointerenter(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!0)},"~pointerup"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!1)},pointercancel(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=!1,this._hovered=!1)},"~keydown"(e){e.isTrusted&&(this._lastInteraction="key",!e.repeat&&e.key===" "&&(this._keyPressed=!0))},"~keyup"(e){e.isTrusted&&(this._lastInteraction="key",e.key===" "&&(this._keyPressed=!1,this._keyReleased=!0,setTimeout(()=>{this._keyReleased=!1})))},blur(e){e.isTrusted&&(this._focused=!1,this._focusedSynthetic=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction&&(fr=this._lastInteraction==="touch",this._lastInteraction=null))},focus(e){e.isTrusted&&(this._focusedSynthetic="sourceCapabilities"in e?!e.sourceCapabilities:this._lastInteraction===null&&!e.relatedTarget,this._focused=!0,!this._lastInteraction&&fr&&(this._lastInteraction="touch"))}}).on({disconnected(){this._focused=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity:.08;--mdw-state__focused-opacity:.12;--mdw-state__pressed-opacity:.12;--mdw-state__dragged-opacity:.12;position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{--mdw-state__opacity:calc( var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity) );position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-state__opacity);background-color:currentColor;border-radius:inherit;transition-delay:0s;transition-duration:0s;transition-property:opacity,color,background-color;will-change:opacity}@supports (background-color:color-mix(in srgb,red 100%,red)){#state{opacity:1;background-color:color-mix(in srgb,currentColor calc(100% * var(--mdw-state__opacity)),transparent);transition-property:color,background-color;will-change:color,background-color}}#state[touched]{--mdw-state__hovered-opacity:0;--mdw-state__focused-opacity:0}#state:is(:not([hovered]),[disabled]:not([state-disabled~=hover]),[state-off~=hover]){--mdw-state__hovered-opacity:0}#state:is(:not([focused]),[disabled]:not([state-disabled~=focus]),[state-off~=focus]){--mdw-state__focused-opacity:0}#state:is(:not([pressed]),[disabled]:not([state-disabled~=pressed]),[state-off~=pressed]){--mdw-state__pressed-opacity:0}#state:is([disabled]:not([state-disabled~=dragged]),[state-off~=dragged]),:host(:not([aria-dragged=true])) #state{--mdw-state__dragged-opacity:0}#state[disabled]:not([state-disabled]){display:none}`}var Ct=_.extend().observe({hidden:"boolean"}).html`<div id=scroll-blocker></div>`.css`:host{position:fixed;inset:0;display:block;overflow:overlay;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-color:transparent transparent;scrollbar-width:none;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;opacity:0;z-index:23;background-color:rgb(var(--mdw-color__scrim));animation:fade-in .2s forwards ease-out;will-change:opacity}:host::-webkit-scrollbar{display:none}:host([hidden]){animation-name:fade-out;animation-timing-function:ease-in}:host([invisible]){background:0 0}#scroll-blocker{position:absolute;inset-block-start:0;inset-inline-start:0;display:block;block-size:200%;inline-size:200%}@keyframes fade-in{0%{opacity:0}to{opacity:.38}}@keyframes fade-out{0%{opacity:.38}to{opacity:0}}`.events({animationend(){this.hidden&&this.remove()}}).autoRegister("mdw-scrim");var To="onscrollend"in window,gr=new WeakSet;_.extend().mixin(N).set({stateLayer:!0}).html`<div id=container><div id=icon aria-hidden=true></div></div>`.recompose(({refs:{container:t,state:e}})=>{t.prepend(e)}).css`:host{--mdw-state__hovered-opacity:0;--mdw-state__pressed-opacity:0;position:absolute;inset-block-start:0;inset-inline:0;align-self:stretch;display:flex;align-items:center;justify-content:center;cursor:grab;outline:0;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;color:rgb(var(--mdw-color__on-surface-variant))}:host(:active){cursor:grabbing!important}#container{position:relative;display:flex;align-items:center;justify-content:center;min-block-size:48px;min-inline-size:48px}#state{border-radius:50%}#state[pointed]{--mdw-state__focused-opacity:0}#icon{block-size:4px;inline-size:32px;background-color:currentColor;border-radius:8px}`.events({touchmove(t){t.preventDefault()}}).autoRegister("mdw-bottom-sheet-handle");var Io=_.extend().mixin(x).mixin(de).mixin(C).mixin($).mixin(L).mixin(B).observe({shapeTop:{type:"boolean",empty:!0},modal:"boolean",fixed:"boolean",open:"boolean",expanded:"boolean",_lastComputedBlockSize:{type:"float",nullable:!1},_lastOffsetTop:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_translateY:{value:"100%"},_lastChildScrollTime:"float",_ariaValueNow:{type:"integer"},dragHandle:"boolean",onopen:Z,onclose:Z}).set({_hasCheckedResize:!1,_scrim:null,_dragTimestamp:0,_dragDeltaY:null,_dragStartY:null}).observe({hostStyles:{...ee,get({open:t,fixed:e,_lastComputedBlockSize:i,_translateY:r,_animationDuration:o,_animationEasing:n}){return{styles:{marginBottom:e?`${-1*i}px`:0,transform:e?"none":`translateY(${r})`},timing:{duration:o,easing:n}}}}}).html`<mdw-bottom-sheet-handle id=drag-handle mdw-if={dragHandle} tabindex=0 role=separator aria-valuemin=-100 aria-valuemax=0 aria-valuenow={_ariaValueNow}></mdw-bottom-sheet-handle><slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,modal:i,_scrim:r}=this;e&&i?(r||(r=new Ct,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragStartY:e,_dragDeltaY:i,_lastComputedBlockSize:r,modal:o,fixed:n,_lastOffsetTop:s}=this;if(!t||n||e==null||i==null)return;let l=s+r-72,a=r>l?r-l:0,c=(r-i)/(r-a);this._dragStartY=null,o&&c<.5?(this._animationDuration=200*c,this._animationEasing="ease-out",this._translateY="100%",this._dragDeltaY=null,this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*c),this._dragDeltaY=a,this._translateY="0px",this._animationEasing="ease-in",this.expanded=!0)},onDragHandleActive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&t.buttons===1&&gr.add(t)},onDragHandleInactive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&(t.type!=="pointerup"&&t.buttons!==1||this.checkDragFinished())},onPointerOrTouchMove(t){let e,i=t.type==="touchmove";if(i){let{touches:u}=t;if(!u.length)return;e=u[0]}else e=t;let{open:r,_lastChildScrollTime:o,_dragStartY:n,_dragTimestamp:s,expanded:l}=this;if(!r||n==null||o&&performance.now()-o<=(To?5e3:500))return;let{clientY:a,pageY:c}=e;a??=c-window.scrollY;let{_lastOffsetTop:d,_lastComputedBlockSize:p}=this,m=d+p-72,f=p>m?p-m:0,h=Math.max(a-n,f);this._dragDeltaY=h,!(i&&l&&performance.now()-s<100)&&(this._animationDuration=0,this._translateY=`${h}px`)}}).overrides({onResizeObserved(t){var e;this._lastComputedBlockSize=(e=t.borderBoxSize[0])==null?void 0:e.blockSize,this._lastOffsetTop=this.offsetTop}}).events({"~pointerdown"(t){if(t.pointerType!=="touch"&&(t.buttons!==1||!gr.has(t))||!this.open)return;let{clientY:e,pageY:i}=t;e??=i-window.scrollY,this._dragStartY=e-(this._dragDeltaY??0),this._dragDeltaY=0,this._dragTimestamp=performance.now()},"~pointermove":"onPointerOrTouchMove","~pointerup"(t){t.pointerType!=="touch"&&this.checkDragFinished()},pointerleave(t){t.pointerType!=="touch"&&this.checkDragFinished()},"~touchmove":"onPointerOrTouchMove",touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartY=null,this._dragDeltaY=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).childEvents({dragHandle:{"~pointerdown":"onDragHandleActive","~pointermove":"onDragHandleActive"}}).on({openChanged(t,e){let i=this.offsetTop;if(this._lastOffsetTop=i,this._animationDuration=e?250:200,e){let r=0;if(!this.fixed){let{_lastComputedBlockSize:o}=this,n=i+o;o>n/2&&(r=o-n/2)}this._translateY=`${r}px`,this._dragDeltaY=r}else this._translateY="100%",this.expanded=!1;this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),e&&this.focus()},modalChanged(){this._animationDuration=0,this.checkForScrim(!1)}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);--mdw-shape__size:var(--mdw-shape__extra-large);--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;position:sticky;inset-block-end:0;inset-inline:0;overflow-y:clip;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-inline-size:640px;margin-inline:auto;padding-block-start:16px;pointer-events:none;transform:translateY(100%);visibility:hidden;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-block-end,visibility}:host(:where([open])){pointer-events:auto;visibility:inherit;transition:visibility 0s}:host(:where(:not([fixed]))){position:fixed;max-block-size:calc(100% - 72px);touch-action:none;z-index:24}:host(:where([expanded])){overflow-y:auto;touch-action:auto}:host(:where([drag-handle])){padding-block-start:48px}`.autoRegister("mdw-bottom-sheet");var wr={};Lt(wr,{addSVGAlias:()=>Lo,svgAliasMap:()=>ve,unaliased:()=>bi});var ve=new Map,bi=new Set;function Lo(t,e,i="0 0 24 24"){t=t.toLowerCase(),e?ve.set(t,{path:e,viewBox:i}):ve.delete(t)}var gi=new Set,Ro=_.extend().mixin(x).define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({icon:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",variation:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:"string",fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"},_isConnected:"boolean"}).observe({_svgAlias:{type:"object",get({icon:t,variation:e}){if(!t)return null;let i=t.trim().toLowerCase(),r=e?`#${e}`:"",o=`${i}${r}`;return ve.has(o)?ve.get(o):(bi.add(o),r&&ve.has(i)?ve.get(i):null)}}}).observe({_computedSVGPath({svgPath:t,_svgAlias:e}){return t||(e==null?void 0:e.path)},_computedViewBox({viewBox:t,_svgAlias:e}){return t??(e==null?void 0:e.viewBox)??"0 0 24 24"}}).observe({_showFontIcon:{type:"boolean",get({icon:t,svg:e,_computedSVGPath:i,src:r}){return t&&!e&&!i&&!r}}}).expressions({showSVG({svg:t,_computedSVGPath:e}){return!!(t||e)}}).html`<link mdw-if={_showFontIcon} id=link rel=stylesheet href={fontLibrary}><svg mdw-if={showSVG} id=svg viewBox={_computedViewBox}><use id=use mdw-if={svg} href={svg} fill=currentColor /><path id=path mdw-if={_computedSVGPath} d={_computedSVGPath} /></svg> <img mdw-if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}> <span id=icon class={fontClass} hidden={!_showFontIcon} aria-hidden=true>{icon}</span>`.css`:host{vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;line-height:1;font-variation-settings:"FILL" 0;transition-duration:.2s;transition-property:inline-size,width}:host([variation=fill]){font-variation-settings:"FILL" 1}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({link:{load({currentTarget:t}){let{href:e,parentNode:i}=t;if(!gi.has(e)){for(let r of document.head.getElementsByTagName("link"))if(r.href===e){gi.add(e);return}document.head.append(t.cloneNode()),gi.add(e)}}}}).extend(t=>class extends t{constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}}).autoRegister("mdw-icon");function wi(t){return t.rootEvents({click(e){let{target:i}=e;if(!(i instanceof HTMLAnchorElement)||!i.href)return;i.dispatchEvent(new CustomEvent("mdw:hyperlink",{bubbles:!0,composed:!0,cancelable:!0,detail:{download:i.download,href:i.href,hreflang:i.hreflang,target:i.target}}))||e.preventDefault()}})}function _e(t){return{get(){return new URL(this.href,window.location.href)[t]},set(e){let{href:i}=this;if(!i)return;let r=new URL(i,window.location.href);r[t]=e,this.href=r.href}}}function te(t){return t.mixin(wi).observe({href:"string",target:"string",download:"string",ping:"string",rel:"string",hreflang:"string",referrerPolicy:{type:"string",attr:"referrerpolicy"}}).define({origin(){return new URL(this.href).origin},protocol:_e("protocol"),username:_e("username"),password:_e("password"),host:_e("host"),hostname:_e("hostname"),port:_e("port"),pathname:_e("pathname"),search:_e("search"),hash:_e("hash")}).html`<a id=anchor href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy}></a>`.methods({toString(){return this.href}})}var xi="mdw-form-associated-changed",vi={nullParser:String,value:""};function pe(t){return t.setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null,_files:null}).observe({ariaControls:"string",autocomplete:vi,name:vi,readOnly:{attr:"readonly",type:"boolean"},formNoValidate:{attr:"formnovalidate",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:vi,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_userInteracted:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e,_userInteracted:i}){return i&&e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){case"filename":default:return r;case"default":return i??"";case"default/on":return i??"on"}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;case"filename":if(e==null||e==="")this._files=null;else throw new DOMException("InvalidStateError");break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checkedDirty:e,defaultChecked:i,_checked:r}){return e?r:i},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.type==="submit"?!this.formNoValidate:this.type==="button"||this.type==="reset"?!1:this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){var r;(r=this._ipcTarget)==null||r.dispatchEvent(new CustomEvent(xi,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(xi,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(xi,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation(),this.checkValidity()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._userInteracted=!1,this._formReset=!1},formStateRestoreCallback(e,i){if(!(Ie<115)&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;case"button":case"reset":this.elementInternals.setFormValue(null);break;case"file":{let{elementInternals:e,_files:i,name:r}=this;if(!i||i.length)e.setFormValue(null);else{let o=new FormData;for(let n of i)o.append(r,n);e.setFormValue(o)}break}case"select-multiple":{let e=new FormData,i=this;if(i.name)for(let r of i.selectedOptions)e.append(i.name,r.value);this.elementInternals.setFormValue(e);break}default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this._userInteracted=!0,this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()},_valueBehaviorChanged(e,i){e!=="filename"&&i==="filename"&&(this.value="")},typeChanged(){this._updateFormAssociatedValue()}})}function ye(t){return t.mixin(pe).mixin(L).observe({ariaLabel:"string",_slotInnerText:"string"}).set({focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0,_slotMutationObserver:null}).methods({_onControlValue(e){this._value=e},onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._onControlValue(e.value)},focus(...e){this.refs.control.focus(...e)},click(){this.disabledState||this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control}}).methods({checkValidity(){if(!this.willValidate)return!0;let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage,e),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity(),this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e,this.refs.control)}}).observe({_computedAriaLabel({ariaLabel:e,_slotInnerText:i}){return(e==null?void 0:e.trim())||(i==null?void 0:i.trim())||null}}).expressions({_computedAriaLabelledby({_computedAriaLabel:e}){return e?null:"slot"}}).recompose(({template:e,html:i,element:r})=>{e.append(i`
|
|
176
176
|
<${r.controlTagName} id=control
|
|
177
177
|
aria-label={_computedAriaLabel}
|
|
178
178
|
aria-labelledby={_computedAriaLabelledby}
|