@3mo/date-time-fields 0.0.3 → 0.0.6

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/bundle.js CHANGED
@@ -1 +1 @@
1
- (()=>{var t={777:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},969:(t,e,n)=>{var r=n(777),o=n(119),i=Object.hasOwnProperty,s=Object.create(null);for(var a in r)i.call(r,a)&&(s[r[a]]=a);var c=t.exports={to:{},get:{}};function l(t,e,n){return Math.min(Math.max(e,t),n)}function d(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}c.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),n="hsl";break;case"hwb":e=c.get.hwb(t),n="hwb";break;default:e=c.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,n,o,s=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var a=2*n;s[n]=parseInt(e.slice(a,a+2),16)}o&&(s[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)s[n]=parseInt(e[n]+e[n],16);o&&(s[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(e[n+1],0);e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(r,e[1])?((s=r[e[1]])[3]=1,s):null:null;for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}for(n=0;n<3;n++)s[n]=l(s[n],0,255);return s[3]=l(s[3],0,1),s},c.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var t=o(arguments);return"#"+d(t[0])+d(t[1])+d(t[2])+(t[3]<1?d(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return s[t.slice(0,3)]}},119:(t,e,n)=>{"use strict";var r=n(774),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a=t[n];r(a)?e=o.call(e,i.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},774:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};var e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)};function r(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}Object.create;function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;const i=window,s=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),c=new WeakMap;class l{constructor(t,e,n){if(this._$cssResult$=!0,n!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&c.set(e,t))}return t}toString(){return this.cssText}}const d=t=>new l("string"==typeof t?t:t+"",void 0,a),u=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return new l(n,t,a)},h=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return d(e)})(t):t;var p;const m=window,f=m.trustedTypes,g=f?f.emptyScript:"",v=m.reactiveElementPolyfillSupport,y={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},b=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:b};class S extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{s?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=i.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=w){var r;const o=this.constructor._$Ep(t,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:y).toAttribute(e,n.type);this._$El=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:y;this._$El=o,this[o]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var $;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:S}),(null!==(p=m.reactiveElementVersions)&&void 0!==p?p:m.reactiveElementVersions=[]).push("1.6.1");const C=window,A=C.trustedTypes,M=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",T=`lit$${(Math.random()+"").slice(9)}$`,_="?"+T,x=`<${_}>`,E=document,k=()=>E.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,O=t=>F(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),N="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,H=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,L=/"/g,z=/^(?:script|style|textarea|title)$/i,j=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),B=j(1),V=j(2),Z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),G=new WeakMap,W=E.createTreeWalker(E,129,null,!1),K=(t,e)=>{const n=t.length-1,r=[];let o,i=2===e?"<svg>":"",s=P;for(let e=0;e<n;e++){const n=t[e];let a,c,l=-1,d=0;for(;d<n.length&&(s.lastIndex=d,c=s.exec(n),null!==c);)d=s.lastIndex,s===P?"!--"===c[1]?s=R:void 0!==c[1]?s=U:void 0!==c[2]?(z.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=H):void 0!==c[3]&&(s=H):s===H?">"===c[0]?(s=null!=o?o:P,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?H:'"'===c[3]?L:Y):s===L||s===Y?s=H:s===R||s===U?s=P:(s=H,o=void 0);const u=s===H&&t[e+1].startsWith("/>")?" ":"";i+=s===P?n+x:l>=0?(r.push(a),n.slice(0,l)+D+n.slice(l)+T+u):n+T+(-2===l?(r.push(void 0),e):u)}const a=i+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,r]};class X{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,i=0;const s=t.length-1,a=this.parts,[c,l]=K(t,e);if(this.el=X.createElement(c,n),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=W.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(D)||e.startsWith(T)){const n=l[i++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+D).split(T),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?ot:"@"===e[1]?it:et})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(z.test(r.tagName)){const t=r.textContent.split(T),e=t.length-1;if(e>0){r.textContent=A?A.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],k()),W.nextNode(),a.push({type:2,index:++o});r.append(t[e],k())}}}else if(8===r.nodeType)if(r.data===_)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(T,t+1));)a.push({type:7,index:o}),t+=T.length-1}o++}}static createElement(t,e){const n=E.createElement("template");return n.innerHTML=t,n}}function J(t,e,n=t,r){var o,i,s,a;if(e===Z)return e;let c=void 0!==r?null===(o=n._$Co)||void 0===o?void 0:o[r]:n._$Cl;const l=I(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(i=null==c?void 0:c._$AO)||void 0===i||i.call(c,!1),void 0===l?c=void 0:(c=new l(t),c._$AT(t,n,r)),void 0!==r?(null!==(s=(a=n)._$Co)&&void 0!==s?s:a._$Co=[])[r]=c:n._$Cl=c),void 0!==c&&(e=J(t,c._$AS(t,e.values),c,r)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).importNode(n,!0);W.currentNode=o;let i=W.nextNode(),s=0,a=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new tt(i,i.nextSibling,this,t):1===c.type?e=new c.ctor(i,c.name,c.strings,this,t):6===c.type&&(e=new st(i,this,t)),this._$AV.push(e),c=r[++a]}s!==(null==c?void 0:c.index)&&(i=W.nextNode(),s++)}return o}v(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class tt{constructor(t,e,n,r){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J(this,t,e),I(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==Z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):O(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=X.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(n);else{const t=new Q(o,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new X(t)),e}T(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new tt(this.k(k()),this.k(k()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,n,r,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const o=this.strings;let i=!1;if(void 0===o)t=J(this,t,e,0),i=!I(t)||t!==this._$AH&&t!==Z,i&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=J(this,r[n+s],e,s),a===Z&&(a=this._$AH[s]),i||(i=!I(a)||a!==this._$AH[s]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}i&&!r&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=A?A.emptyScript:"";class ot extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class it extends et{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=J(this,t,e,0))&&void 0!==n?n:q)===Z)return;const r=this._$AH,o=t===q&&r!==q||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==q&&(r===q||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){J(this,t)}}const at={O:D,P:T,A:_,C:1,M:K,L:Q,D:O,R:J,I:tt,V:et,H:ot,N:it,U:nt,F:st},ct=C.litHtmlPolyfillSupport;null==ct||ct(X,tt),(null!==($=C.litHtmlVersions)&&void 0!==$?$:C.litHtmlVersions=[]).push("2.7.1");const lt=(t,e,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=i._$litPart$;if(void 0===s){const t=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=s=new tt(e.insertBefore(k(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s};var dt,ut;class ht extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Z}}ht.finalized=!0,ht._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ht});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ht});(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.1");const mt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){customElements.define(t,e)}}})(t,e),ft=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function gt(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):ft(t,e)}function vt(t){return gt({...t,state:!0})}const yt=({finisher:t,descriptor:e})=>(n,r)=>{var o;if(void 0===r){const r=null!==(o=n.originalKey)&&void 0!==o?o:n.key,i=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(n.key)}:{...n,key:r};return null!=t&&(i.finisher=function(e){t(e,r)}),i}{const o=n.constructor;void 0!==e&&Object.defineProperty(n,r,e(r)),null==t||t(o,r)}};function bt(t){return yt({finisher:(e,n)=>{Object.assign(e.prototype[n],t)}})}function wt(t,e){return yt({descriptor:n=>{const r={get(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof n?Symbol():"__"+n;r.get=function(){var n,r;return void 0===this[e]&&(this[e]=null!==(r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}var St;null===(St=window.HTMLSlotElement)||void 0===St||St.prototype.assignedElements;const $t=Symbol.for(""),Ct=t=>{if((null==t?void 0:t.r)===$t)return null==t?void 0:t._$litStatic$},At=new Map,Mt=t=>(e,...n)=>{const r=n.length;let o,i;const s=[],a=[];let c,l=0,d=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=n[l],o=Ct(i));)c+=o+e[++l],d=!0;a.push(i),s.push(c),l++}if(l===r&&s.push(e[r]),d){const t=s.join("$$lit$$");void 0===(e=At.get(t))&&(s.raw=s,At.set(t,e=s)),n=a}return t(e,...n)},{I:Dt}=(Mt(B),Mt(V),at),Tt=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,_t=t=>void 0===t.strings,xt=()=>document.createComment(""),Et=(t,e,n)=>{var r;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=o.insertBefore(xt(),i),r=o.insertBefore(xt(),i);n=new Dt(e,r,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,a=s!==t;if(a){let e;null===(r=n._$AQ)||void 0===r||r.call(n,t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==s._$AU&&n._$AP(e)}if(e!==i||a){let t=n._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return n},kt=(t,e,n=t)=>(t._$AI(e,n),t),It={},Ft=(t,e=It)=>t._$AH=e,Ot=t=>t._$AH,Nt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let n=t._$AA;const r=t._$AB.nextSibling;for(;n!==r;){const t=n.nextSibling;n.remove(),n=t}},Pt=t=>{t._$AR()},Rt=1,Ut=2,Ht=3,Yt=4,Lt=6,zt=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Bt=(t,e)=>{var n,r;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null===(r=(n=t)._$AO)||void 0===r||r.call(n,e,!1),Bt(t,e);return!0},Vt=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},Zt=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Wt(e)}};function qt(t){void 0!==this._$AN?(Vt(this),this._$AM=t,Zt(this)):this._$AM=t}function Gt(t,e=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(r))for(let t=n;t<r.length;t++)Bt(r[t],!1),Vt(r[t]);else null!=r&&(Bt(r,!1),Vt(r));else Bt(this,t)}const Wt=t=>{var e,n,r,o;t.type==Ut&&(null!==(e=(r=t)._$AP)&&void 0!==e||(r._$AP=Gt),null!==(n=(o=t)._$AQ)&&void 0!==n||(o._$AQ=qt))};class Kt extends jt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Zt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,r;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),e&&(Bt(this,t),Vt(this))}setValue(t){if(_t(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Xt{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class Jt{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}class Qt extends Kt{constructor(){super(...arguments),this._$Cq=new Xt(this),this._$CK=new Jt}render(t,e){return Z}update(t,[e,n]){if(this.isConnected||this.disconnected(),e===this._$CX)return;this._$CX=e;let r=0;const{_$Cq:o,_$CK:i}=this;return(async(t,e)=>{for await(const n of t)if(!1===await e(n))return})(e,(async t=>{for(;i.get();)await i.get();const s=o.deref();if(void 0!==s){if(s._$CX!==e)return!1;void 0!==n&&(t=n(t,r)),s.commitValue(t,r),r++}return!0})),Z}commitValue(t,e){this.setValue(t)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}zt(Qt),zt(class extends Qt{constructor(t){if(super(t),t.type!==Ut)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){0===e&&Pt(this._$CJ);const n=Et(this._$CJ);kt(n,t)}}),zt(class extends jt{constructor(t){super(t),this.tt=new WeakMap}render(t){return[t]}update(t,[e]){if(Tt(this.et)&&(!Tt(e)||this.et.strings!==e.strings)){const e=Ot(t).pop();let n=this.tt.get(this.et.strings);if(void 0===n){const t=document.createDocumentFragment();n=lt(q,t),n.setConnected(!1),this.tt.set(this.et.strings,n)}Ft(n,[e]),Et(n,void 0,e)}if(Tt(e)){if(!Tt(this.et)||this.et.strings!==e.strings){const n=this.tt.get(e.strings);if(void 0!==n){const e=Ot(n).pop();Pt(t),Et(t,void 0,e),Ft(t,[e])}}this.et=e}else this.et=void 0;return this.render(e)}});const te=zt(class extends jt{constructor(t){var e;if(super(t),t.type!==Rt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,r;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const n=!!e[t];n===this.it.has(t)||(null===(r=this.nt)||void 0===r?void 0:r.has(t))||(n?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return Z}}),ee={},ne=(zt(class extends jt{constructor(){super(...arguments),this.st=ee}render(t,e){return e()}update(t,[e,n]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return Z}else if(this.st===e)return Z;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,n)}}),t=>null!=t?t:q),re=(zt(class extends jt{constructor(){super(...arguments),this.key=q}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(Ft(t),this.key=e),n}}),zt(class extends jt{constructor(t){if(super(t),t.type!==Ht&&t.type!==Rt&&t.type!==Yt)throw Error("The `live` directive is not allowed on child or event bindings");if(!_t(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Z||e===q)return e;const n=t.element,r=t.name;if(t.type===Ht){if(e===n[r])return Z}else if(t.type===Yt){if(!!e===n.hasAttribute(r))return Z}else if(t.type===Rt&&n.getAttribute(r)===e+"")return Z;return Ft(t),e}}));const oe=new WeakMap,ie=(zt(class extends Kt{render(t){return q}update(t,[e]){var n;const r=e!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.ct=null===(n=t.options)||void 0===n?void 0:n.host,this.ot(this.lt=t.element)),q}ot(t){var e;if("function"==typeof this.G){const n=null!==(e=this.ct)&&void 0!==e?e:globalThis;let r=oe.get(n);void 0===r&&(r=new WeakMap,oe.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){var t,e,n;return"function"==typeof this.G?null===(e=oe.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),(t,e,n)=>{const r=new Map;for(let o=e;o<=n;o++)r.set(t[o],o);return r}),se=(zt(class extends jt{constructor(t){if(super(t),t.type!==Ut)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let r;void 0===n?n=e:void 0!==e&&(r=e);const o=[],i=[];let s=0;for(const e of t)o[s]=r?r(e,s):s,i[s]=n(e,s),s++;return{values:i,keys:o}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,r]){var o;const i=Ot(t),{values:s,keys:a}=this.dt(e,n,r);if(!Array.isArray(i))return this.ht=a,s;const c=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],l=[];let d,u,h=0,p=i.length-1,m=0,f=s.length-1;for(;h<=p&&m<=f;)if(null===i[h])h++;else if(null===i[p])p--;else if(c[h]===a[m])l[m]=kt(i[h],s[m]),h++,m++;else if(c[p]===a[f])l[f]=kt(i[p],s[f]),p--,f--;else if(c[h]===a[f])l[f]=kt(i[h],s[f]),Et(t,l[f+1],i[h]),h++,f--;else if(c[p]===a[m])l[m]=kt(i[p],s[m]),Et(t,i[h],i[p]),p--,m++;else if(void 0===d&&(d=ie(a,m,f),u=ie(c,h,p)),d.has(c[h]))if(d.has(c[p])){const e=u.get(a[m]),n=void 0!==e?i[e]:null;if(null===n){const e=Et(t,i[h]);kt(e,s[m]),l[m]=e}else l[m]=kt(n,s[m]),Et(t,i[h],n),i[e]=null;m++}else Nt(i[p]),p--;else Nt(i[h]),h++;for(;m<=f;){const e=Et(t,l[f+1]);kt(e,s[m]),l[m++]=e}for(;h<=p;){const t=i[h++];null!==t&&Nt(t)}return this.ht=a,Ft(t,l),Z}}),"important"),ae=" !"+se,ce=zt(class extends jt{constructor(t){var e;if(super(t),t.type!==Rt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,n)=>{const r=t[n];return null==r?e:e+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")}));for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e=r.endsWith(ae);t.includes("-")||e?n.setProperty(t,e?r.slice(0,-11):r,e?se:""):n[t]=r}}return Z}});zt(class extends jt{constructor(t){if(super(t),t.type!==Ut)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?Z:(this.vt=t,document.importNode(t.content,!0))}});class le extends jt{constructor(t){if(super(t),this.et=q,t.type!==Ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this.ft=void 0,this.et=t;if(t===Z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}le.directiveName="unsafeHTML",le.resultType=1;zt(le);class de extends le{}de.directiveName="unsafeSVG",de.resultType=2;zt(de);const ue=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then,he=1073741823;zt(class extends Kt{constructor(){super(...arguments),this._$C_t=he,this._$Cwt=[],this._$Cq=new Xt(this),this._$CK=new Jt}render(...t){var e;return null!==(e=t.find((t=>!ue(t))))&&void 0!==e?e:Z}update(t,e){const n=this._$Cwt;let r=n.length;this._$Cwt=e;const o=this._$Cq,i=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const s=e[t];if(!ue(s))return this._$C_t=t,s;t<r&&s===n[t]||(this._$C_t=he,r=0,Promise.resolve(s).then((async t=>{for(;i.get();)await i.get();const e=o.deref();if(void 0!==e){const n=e._$Cwt.indexOf(s);n>-1&&n<e._$C_t&&(e._$C_t=n,e.setValue(t))}})))}return Z}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}});const pe=q,me=mt;class fe extends ht{initialized(){}connected(){}disconnected(){}get template(){return pe}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}class ge{constructor(t){this.host=t,this.host.addController(this)}}const ve=t=>(e,n)=>{Object.defineProperty(e,n,{get(){return this.renderRoot?.querySelector(t)??void 0}})},ye=()=>t=>{const e=new t;be.handlers.add(e)};class be extends jt{constructor(t){if(super(t),t.type!==Lt)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,n]of Object.entries(t)){([...be.handlers].find((t=>t.handles(this.element,[e,n])))??be.defaultHandler).apply(this.element,[e,n])}}}be.handlers=new Set,be.defaultHandler=new class{handles(){return!0}apply(t,[e,n]){t.style[e]=null==n?"":n}};const we=zt(be);let Se=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,n]){t.style.setProperty(e,n)}};Se=r([ye()],Se);const $e=t=>(e,n)=>{e.constructor.addInitializer((e=>e.addController(new class extends ge{constructor(){super(e),this.hasChanged=!1}get value(){return this.host[n]}hostUpdate(){this.value!==this.oldValue&&(this.hasChanged=!0)}hostUpdated(){this.hasChanged&&(this.hasChanged=!1,t.call(this.host,this.value,this.oldValue),this.oldValue=this.value)}})))},Ce=t=>(e,n)=>(t?.updated&&$e(t.updated)(e,n),gt(t)(e,n)),Ae=t=>(e,n)=>(t?.updated&&$e(t.updated)(e,n),vt(t)(e,n));async function Me(t){const e=t=>Symbol.iterator in t?[...t]:[t];if(void 0===t)return e(this);if("function"==typeof t){let n=t.call(this);if(n instanceof Promise&&(n=await n),n instanceof EventTarget)return e(n);if(Symbol.iterator in n&&[...n].every((t=>t instanceof EventTarget)))return e(n);throw new TypeError(`${this.constructor}.target is not an EventTarget`)}return e(t??this)}class De extends ge{constructor(t,...e){super(t),this.host=t,this.options=function(t){const e="string"==typeof t[0];return{target:e?void 0:t[0].target,type:e?t[0]:t[0].type,listener:e?t[1]:t[0].listener,options:e?t[2]:t[0].options}}(e)}async subscribe(){const t=await Me.call(this.host,this.options.target);for(const e of t)e.removeEventListener(this.options.type,this.options.listener,this.options.options)}async unsubscribe(){const t=await Me.call(this.host,this.options.target);for(const e of t)e?.addEventListener(this.options.type,this.options.listener,this.options.options)}async hostDisconnected(){await this.subscribe()}async hostConnected(){await this.unsubscribe()}}class Te{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class _e{constructor(t,e,n){this.element=t,this.type=e,this.options=n,this.handlersMap=new Map}dispatch(t){this.element.dispatchEvent(t instanceof CustomEvent?t:new CustomEvent(this.type,{detail:t,...this.options}))}subscribe(t){if(!1===this.handlersMap.has(t)){const e=e=>t(e.detail);this.element.addEventListener(this.type,e),this.handlersMap.set(t,e)}}unsubscribe(t){const e=this.handlersMap.get(t);e&&this.element.removeEventListener(this.type,e),this.handlersMap.delete(t)}}function xe(t){return(e,n)=>{if(void 0===n)return;const r=`$${n}Event$`;Object.defineProperty(e,n,{get(){return this[r]||(this[r]=this instanceof HTMLElement?new _e(this,n,t):new Te),this[r]}})}}class Ee{constructor(t,e,n){this.name=t,this.defaultValue=e,this.reviver=n,this.changed=new Te,Ee.container.add(this)}get value(){const t=window.localStorage.getItem(this.name)??void 0;if(void 0===t)return this.defaultValue;try{return JSON.parse(t,this.reviver)}catch(e){return t}}set value(t){window.localStorage.setItem(this.name,JSON.stringify(t)),this.changed.dispatch(t),Ee.changed.dispatch(this)}}Ee.changed=new Te,Ee.container=new Set;class ke{static get(t){return ke.rules.get(t)}static add(t,...e){e.forEach((e=>ke.rules.set(e,t)))}}ke.rules=new Map,ke.add((()=>0),"ay","bo","cgg","dz","id","ja","ka","kk","km","ko","ky","lo","ms","my","su","th","tt","ug","vi","zh"),ke.add((t=>t>1?1:0),"ak","am","br","fil","fa","fr","gu","ln","mfe","mg","pt","tg","ti","tr","uz"),ke.add((t=>1!==t?1:0),"af","as","az","bg","bn","brx","ca","da","de","el","en","eo","es","et","eu","ff","fi","fo","gl","gu","ha","hi","hu","hy","it","kln","kn","ku","lb","ml","mn","mr","nb","ne","nl","nn","or","pa","ps","pt","rm","rw","sd","se","si","so","sq","sv","sw","ta","te","tk","ur","yo"),ke.add((t=>t%10!=1||t%100==11?1:0),"is"),ke.add((t=>0!==t?1:0),"jv"),ke.add((t=>1===t||t%10==1?0:1),"mk"),ke.add((t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),"be","bs","hr","lt"),ke.add((t=>1===t?0:t>=2&&t<=4?1:2),"cs"),ke.add((t=>1===t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),"pl"),ke.add((t=>t%10==1&&t%100!=11?0:0!==t?1:2),"lv"),ke.add((t=>1===t?0:0===t||t%100>0&&t%100<20?1:2),"ro"),ke.add((t=>1===t?0:2===t?1:8!==t&&11!==t?2:3),"cy"),ke.add((t=>1===t||11===t?0:2===t||12===t?1:t>2&&t<20?2:3),"gd"),ke.add((t=>1===t?0:2===t?1:3===t?2:3),"kw"),ke.add((t=>1===t?0:0===t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),"mt"),ke.add((t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),"sl"),ke.add((t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),"ru","sr","uk"),ke.add((t=>1===t?0:t>=2&&t<=4?1:2),"sk"),ke.add((t=>1===t?0:2===t?1:t>2&&t<7?2:t>6&&t<11?3:4),"ga"),ke.add((t=>0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),"ar");class Ie{static get currentLanguage(){var t;return(null===(t=window.location.search.split("lang=")[1])||void 0===t?void 0:t.split("&")[0])||Ie.languageCodeStorage.value||navigator.language.split("-")[0]||"en"}static set currentLanguage(t){Ie.languageCodeStorage.value=t,Ie.languageChange.dispatch(t)}static register(t,e){const n="object"==typeof e?new Map(Object.entries(e)):e,r=Ie.dictionariesByLanguageCode.get(t),o=new Map([...null!=r?r:[],...n]);Ie.dictionariesByLanguageCode.set(t,o)}static get currentLanguageDictionary(){return Ie.dictionariesByLanguageCode.get(Ie.currentLanguage)}static localize(t,e){var n;return Ie.currentLanguage===Ie.defaultLanguage||(null===(n=Ie.currentLanguageDictionary)||void 0===n?void 0:n.has(t))||console.warn(`[Localizer] No "${Ie.currentLanguage}" localization found for "${t}".`),Ie.getLocalization(t,e)}static matchLocalizationParameters(t){return[...t.matchAll(Ie.regex)].map((([t,e,n])=>({group:t,key:e,type:n})))}static getLocalization(t,e){var n,r,o,i,s;const a=Ie.matchLocalizationParameters(t),c=t=>a.reduce(((t,n)=>((t,e,n)=>{const r=a.find((t=>t.key===e));return(null==r?void 0:r.group)?t.replace(r.group,n).replace(`\${${r.key}}`,"function"==typeof(null==n?void 0:n.format)?n.format():n):t})(t,n.key,e[n.key])),t),l=null!==(r=null===(n=Ie.currentLanguageDictionary)||void 0===n?void 0:n.get(t))&&void 0!==r?r:t;if(!Array.isArray(l))return c(l);const d=null===(o=a.find((t=>t.type===Ie.pluralityIdentityType)))||void 0===o?void 0:o.key,u=d&&e[d]||0;return c(l[null!==(s=null===(i=ke.get(Ie.currentLanguage))||void 0===i?void 0:i(u))&&void 0!==s?s:0])}static getLocalizationParameter(t,e){Ie.matchLocalizationParameters(t).find((t=>t.key===e))}}Ie.defaultLanguage="en",Ie.pluralityIdentityType="pluralityNumber",Ie.languageCodeStorage=new Ee("Localizer.Language",void 0),Ie.dictionariesByLanguageCode=new Map,Ie.regex=/\${(.+?)(?::(.+?))?}/g,r([xe()],Ie,"languageChange",void 0),globalThis.t=Ie.localize;class Fe{static get(t){var e;return null!==(e=Fe.directions.get(t))&&void 0!==e?e:"ltr"}static updateAttributes(){window.document.body.setAttribute("lang",Ie.currentLanguage),window.document.body.setAttribute("dir",Fe.get(Ie.currentLanguage))}static add(t,...e){e.forEach((e=>Fe.directions.set(e,t)))}}Fe.directions=new Map,Fe.add("rtl","ar","hy","az","fa","he","ku","mdv","ur"),Fe.updateAttributes(),Ie.languageChange.subscribe((()=>Fe.updateAttributes()));class Oe extends ge{static requestUpdate(){for(const t of Oe.connectedComponents)t.requestUpdate()}constructor(t){super(t),this.host=t}hostConnected(){Oe.connectedComponents.add(this.host)}hostDisconnected(){Oe.connectedComponents.delete(this.host)}}Oe.connectedComponents=new Set,Ie.languageChange.subscribe((()=>Oe.requestUpdate())),S.addInitializer((t=>new Oe(t))),Number.prototype.format=function(t){var e;return Intl.NumberFormat(null!==(e=null==t?void 0:t.language)&&void 0!==e?e:Ie.currentLanguage,Object.assign({maximumFractionDigits:16,minimumFractionDigits:0,useGrouping:!1},t)).format(this||0)};const Ne=["BTC","AFN","EUR","ALL","DZD","USD","AOA","XCD","ARS","AMD","AWG","AUD","AZN","BSD","BHD","BDT","BBD","BYN","BZD","XOF","BMD","INR","BTN","BOB","BOV","BAM","BWP","NOK","BRL","BND","BGN","BIF","CVE","KHR","XAF","CAD","KYD","CLP","CLF","CNY","COP","COU","KMF","CDF","NZD","CRC","CUP","CUC","ANG","CZK","DKK","DJF","DOP","EGP","SVC","ERN","SZL","ETB","FKP","FJD","XPF","GMD","GEL","GHS","GIP","GTQ","GBP","GNF","GYD","HTG","HNL","HKD","HUF","ISK","IDR","XDR","IRR","IQD","ILS","JMD","JPY","JOD","KZT","KES","KPW","KRW","KWD","KGS","LAK","LBP","LSL","ZAR","LRD","LYD","CHF","MOP","MKD","MGA","MWK","MYR","MVR","MRU","MUR","XUA","MXN","MXV","MDL","MNT","MAD","MZN","MMK","NAD","NPR","NIO","NGN","OMR","PKR","PAB","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","SHP","WST","STN","SAR","RSD","SCR","SLL","SGD","XSU","SBD","SOS","SSP","LKR","SDG","SRD","SEK","CHE","CHW","SYP","SLE","TWD","TJS","TZS","THB","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","USN","UYU","UYI","UYW","UZS","VUV","VES","VED","VND","YER","ZMW","ZWL","XBA","XBB","XBC","XBD","XTS","XXX","XAU","XPD","XPT","XAG"];class Pe{constructor(t){if(this.code=t,!Ne.includes(t))throw new Error(`Invalid currency code: ${t}`)}toString(){return this.code}valueOf(){return this.code}get symbol(){var t,e;try{return null!==(e=null===(t=Intl.NumberFormat("de-DE",{style:"currency",currency:this.code,maximumFractionDigits:0}).formatToParts(0).find((t=>"currency"===t.type)))||void 0===t?void 0:t.value)&&void 0!==e?e:this.code}catch(t){return this.code}}}function Re(t){const e=null!=t?t:{},{language:n}=e,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["language"]),o=0===Object.keys(r).length;return[null!=n?n:Ie.currentLanguage,o?void 0:r]}(()=>{for(const t of Ne)Object.defineProperty(Pe,t,{get:()=>new Pe(t)})})(),Number.prototype.formatAsCurrency=function(...t){var e;const n=t[0]instanceof Pe||"string"==typeof t[0],[r,o]=[n?t[0]:void 0,n?t[1]:t[0]],i=r?r instanceof Pe?r:new Pe(r):void 0;return Intl.NumberFormat(null!==(e=null==o?void 0:o.language)&&void 0!==e?e:Ie.currentLanguage,Object.assign({style:i?"currency":"decimal",currency:null==i?void 0:i.code,useGrouping:!0,minimumFractionDigits:2,maximumFractionDigits:2},o)).format(this||0)},Number.prototype.formatAsUnit=function(t,e){var n;return Intl.NumberFormat(null!==(n=null==e?void 0:e.language)&&void 0!==n?n:Ie.currentLanguage,Object.assign({style:"unit",unit:t},e)).format(this||0)},Number.prototype.formatAsPercent=function(t){var e;return Intl.NumberFormat(null!==(e=null==t?void 0:t.language)&&void 0!==e?e:Ie.currentLanguage,Object.assign({style:"percent",useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:2},t)).format(this/100||0)},String.prototype.toNumber=function(t=Ie.currentLanguage){var e,n,r,o;const i=this.replace(/ /g,""),s=null!==(n=null===(e=Intl.NumberFormat(t).formatToParts(1e3).find((t=>"group"===t.type)))||void 0===e?void 0:e.value)&&void 0!==n?n:"",a=null!==(o=null===(r=Intl.NumberFormat(t).formatToParts(1.1).find((t=>"decimal"===t.type)))||void 0===r?void 0:r.value)&&void 0!==o?o:"",c=parseFloat(i.replace(new RegExp(`\\${s}`,"g"),"").replace(new RegExp(`\\${a}`),"."));return Number.isNaN(c)?void 0:c},Date.prototype.format=function(t){const[e,n]=Re(t);return Intl.DateTimeFormat(e,null!=n?n:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"shortOffset"}).format(this)},Date.prototype.formatAsDate=function(t){const[e,n]=Re(t);return Intl.DateTimeFormat(e,null!=n?n:{year:"numeric",month:"2-digit",day:"2-digit"}).format(this)},Date.prototype.formatAsTime=function(t){const[e,n]=Re(t);return Intl.DateTimeFormat(e,null!=n?n:{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"shortOffset"}).format(this)};const Ue=36e11,He=864e11,Ye=[1,1e3,1e6,1e9,6e10,Ue,He],Le=[9,6,3];function ze(t){return t<=6}function je(t){return t>=6}const Be=Ve("overflow",{constrain:0,reject:1},0);function Ve(t,e,n){const r=function(t,e,n){return(r,o)=>{if(void 0===r){const e=null!=o?o:n;if(void 0===e)throw new RangeError(`Must specify a ${t}`);return e}if(void 0===e[r])throw new RangeError(`Invalid ${t}: ${r}`);return e[r]}}(t,e,n);return(e,n)=>{const o=Ge(e);return r(o[t],n)}}function Ze(t,e,n,r){if(void 0===t)return e;if(!Number.isFinite(t))throw new RangeError("Number must be finite");t=Math.trunc(t);const o=Math.min(Math.max(t,e),n);if(o!==t&&1===r)throw new RangeError("Invalid overflowed value "+t);return o}function qe(t,e){const n={};for(const r in e)void 0!==t[r]&&(n[r]=e[r](t[r]));return n}function Ge(t,e){if(void 0===t&&!e)return{};if(!Ke(t))throw TypeError("options must be an object or undefined");return t}const We=/object|function/;function Ke(t){return null!==t&&We.test(typeof t)}const Xe=Ve("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Je(){const t=new WeakMap;return[t.get.bind(t),t.set.bind(t)]}function Qe(t,e){Object.defineProperties(t.prototype,tn(e,(t=>({get:t}))))}function tn(t,e){const n={};for(const r in t)n[r]=e(t[r],r);return n}function en(t,e,n){const r={};for(const o of e)r[o]=n(t[o]);return r}function nn(t,e){const n={};return t.forEach(((t,r)=>{n[t]=e(t,r)})),n}const rn=["nanosecond","microsecond","millisecond","second","minute","hour"],on=[...rn,"day","week","month","year"],sn=on.map((t=>t+"s")),an=nn(on,((t,e)=>e)),cn=nn(sn,((t,e)=>e));function ln(t,e,n,r){var o;let i;if(void 0===t){if(void 0===e)throw new RangeError("Unit is required");i=e}else if(i=null!=(o=an[t])?o:cn[t],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+t);return i}function dn(t,e,n,r,o,i){var s;const a=Ge(t),c=null!=(s=a.roundingIncrement)?s:1,l=ln(a.smallestUnit,n,r,o),d=Xe(a,i?Math.round:Math.trunc);let u=a.largestUnit;"auto"===u&&(u=void 0);const h=ln(u,e=Math.max(e,l),r,o);if(l>h)throw new RangeError("Bad smallestUnit/largestUnit");if(l<6){const t=Ye[l+1],e=Ye[l]*c;if(t===e)throw new RangeError("Must not equal larger unit");if(t%e)throw new RangeError("Must divide into larger unit")}return{smallestUnit:l,largestUnit:h,roundingFunc:d,roundingIncrement:c}}function un(t,e,n,r){var o;const i=Ge("string"==typeof t?{smallestUnit:t}:t,!0),s=null!=(o=i.roundingIncrement)?o:1,a=ln(i.smallestUnit,void 0,e,n),c=Xe(i,Math.round),l=Ye[a]*s;if(6===a){if(1!==s)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const t=r?He:Ye[a+1];if(!r&&t===l)throw new RangeError("Must not equal larger unit");if(t%l)throw new RangeError("Must divide into larger unit")}return{smallestUnit:a,roundingFunc:c,incNano:l}}const hn=Symbol();function pn(t,e,...n){return e instanceof t?e:t.from(e,...n)}class mn{toJSON(){return this.toString()}}class fn extends mn{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[gn,vn]=Je();class yn extends fn{constructor(t){super(),vn(this,Object.freeze(t))}getISOFields(){return gn(this)}}function bn(t,e){return t<e?-1:t>e?1:0}function wn(t){return bn(t,0)}function Sn(t,e,n){return n(t/e)*e}function $n(t){return Sn(t,6e10,Cn)}function Cn(t){return Math.round(Math.abs(t))*wn(t)}function An(t,e,n){const r=t.div(e).mult(e),o=t.sub(r).toNumber();return r.add(n(o/e)*e)}function Mn(t,e){return(t%e+e)%e}function Dn(t,e){return _n(n=String(t),e,"0")+n;var n}function Tn(t,e,n){return t+_n(t,e,n)}function _n(t,e,n){return new Array(Math.max(0,e-t.length+1)).join(n)}function xn(t){return t<0?"-":"+"}const En=Math.pow(10,8);class kn{constructor(t,e){this.high=t,this.low=e}sign(){return wn(this.high)||wn(this.low)}neg(){return new kn(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(t){const[e,n]=On(t);return Nn(this.high+e,this.low+n)}sub(t){const[e,n]=On(t);return Nn(this.high-e,this.low-n)}mult(t){return Nn(this.high*t,this.low*t)}div(t){const e=this.high/t;let n=String(e);-1!==n.indexOf("e-")&&(n=e.toFixed(20));const r=n.indexOf(".");let o=0;if(-1!==r){let t=n.substr(r+1);t=Tn(t,8,"0"),t=t.substr(0,8),o=parseInt(t)*(wn(e)||1)}return Nn(Math.trunc(e)||0,Math.trunc(this.low/t)+o)}toNumber(){return this.high*En+this.low}toBigInt(){return BigInt(this.high)*BigInt(En)+BigInt(this.low)}}function In(t,e){let n,r;if(t instanceof kn)n=t.high,r=t.low;else if("number"==typeof t){if(e)throw new TypeError("Must supply bigint, not number");n=Math.trunc(t/En),r=t%En||0}else if("bigint"==typeof t){const e=BigInt(En);n=Number(t/e),r=Number(t%e||0)}else{if("string"!=typeof t)throw new Error("Invalid type of BigNano");{if((t=t.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${t} to a BigInt`);const e=t.length-8;n=Number(t.substr(e)),r=Number(t.substr(0,e))}}return new kn(n,r)}function Fn(t,e){return bn(t.high,e.high)||bn(t.low,e.low)}function On(t){return"number"==typeof t?[0,t]:[t.high,t.low]}function Nn(t,e){let n=e%En||0,r=t+Math.trunc(e/En);const o=wn(r),i=wn(n);return i&&o&&i!==o&&(r+=i,n-=En*i),new kn(r,n)}const Pn=sn.concat("sign");function Rn(t){return en(t,Pn,(t=>-t||0))}function Un(t,e){var n,r,o,i,s,a,c,l,d,u;return Hn({years:null!=(n=e.years)?n:t.years,months:null!=(r=e.months)?r:t.months,weeks:null!=(o=e.weeks)?o:t.weeks,days:null!=(i=e.days)?i:t.days,hours:null!=(s=e.hours)?s:t.hours,minutes:null!=(a=e.minutes)?a:t.minutes,seconds:null!=(c=e.seconds)?c:t.seconds,milliseconds:null!=(l=e.milliseconds)?l:t.milliseconds,microseconds:null!=(d=e.microseconds)?d:t.microseconds,nanoseconds:null!=(u=e.nanoseconds)?u:t.nanoseconds})}function Hn(t){return{...t,sign:Yn(t)}}function Yn(t){let e=0;for(const n of sn)if(t[n]){e=wn(t[n]);break}return e}function Ln(t){let e=9;for(;e>0&&!t[sn[e]];)e--;return e}const zn={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},jn={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function Bn(t){return{isoHour:t.hour||0,isoMinute:t.minute||0,isoSecond:t.second||0,isoMillisecond:t.millisecond||0,isoMicrosecond:t.microsecond||0,isoNanosecond:t.nanosecond||0}}function Vn(t){return In(He).mult(t.days).add(Zn(t))}function Zn(t){return In(t.nanoseconds).add(In(t.microseconds).mult(1e3)).add(In(t.milliseconds).mult(1e6)).add(In(t.seconds).mult(1e9)).add(In(t.minutes).mult(6e10)).add(In(t.hours).mult(Ue))}function qn(t){return t.isoHour*Ue+6e10*t.isoMinute+1e9*t.isoSecond+1e6*t.isoMillisecond+1e3*t.isoMicrosecond+t.isoNanosecond}function Gn(t,e){let n,r=0,o=0,i=0,s=0,a=0,c=0;switch(e){case 6:n=t.div(He),r=n.toNumber(),t=t.sub(n.mult(He));case 5:n=t.div(Ue),o=n.toNumber(),t=t.sub(n.mult(Ue));case 4:n=t.div(6e10),i=n.toNumber(),t=t.sub(n.mult(6e10));case 3:n=t.div(1e9),s=n.toNumber(),t=t.sub(n.mult(1e9));case 2:n=t.div(1e6),a=n.toNumber(),t=t.sub(n.mult(1e6));case 1:n=t.div(1e3),c=n.toNumber(),t=t.sub(n.mult(1e3))}return Hn({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:s,milliseconds:a,microseconds:c,nanoseconds:t.toNumber()})}function Wn(t){const e=Math.floor(t/He);t-=e*He;const n=Math.floor(t/Ue);t-=n*Ue;const r=Math.floor(t/6e10);t-=6e10*r;const o=Math.floor(t/1e9);t-=1e9*o;const i=Math.floor(t/1e6);t-=1e6*i;const s=Math.floor(t/1e3);return[{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:s,isoNanosecond:t-=1e3*s},e]}const Kn={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class Xn{constructor(t){this.id=t}monthCode(t,e){return"M"+Dn(t,2)}convertMonthCode(t,e){const n=/L$/.test(t),r=parseInt(t.substr(1));if(n)throw new RangeError("Calendar system doesnt support leap months");return[r,!1]}}function Jn(t,e,n,r){var o;let i=null==(o=Kn[Qn(t)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+e)*(wn(i)||1)}function Qn(t){return t.split("-")[0]}class tr extends Xn{computeFields(t){const e=cr(t);return{era:void 0,eraYear:void 0,year:e.isoYear,month:e.isoMonth,day:e.isoDay}}epochMilliseconds(t,e,n){return sr(t,e,n)}daysInMonth(t,e){return 2===e?this.inLeapYear(t)?29:28:4===e||6===e||9===e||11===e?30:31}monthsInYear(){return 12}inLeapYear(t){return t%4==0&&(t%100!=0||t%400==0)}guessYearForMonthDay(){return nr}normalizeISOYearForMonthDay(){return nr}}const er=new tr("iso8601"),nr=1972,rr=Symbol();function or(t){return ir(t.isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond)}function ir(t,e,n,r,o,i,s,a,c){return In(sr(t,e,n,r,o,i,s)).mult(1e6).add(1e3*(null!=a?a:0)+(null!=c?c:0))}function sr(t,e,n,r,o,i,s){const a=wn(t);let c,l,d=0;const u=t>=0&&t<1e3,h=u?t+1200:t;for(;d<31;d++){c=n-a*d;const t=Date.UTC(h,e-1,c,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=s?s:0);if(!mr(t)){l=t+a*d*864e5;break}}return(void 0===l||c<1||c>er.daysInMonth(t,e))&&fr(),u&&(l=new Date(l).setUTCFullYear(t)),l}function ar(t){let e=t.div(1e6),n=t.sub(e.mult(1e6)).toNumber();n<0&&(n+=1e6,e=e.sub(1));const r=Math.floor(n/1e3);return n-=1e3*r,{...cr(e.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function cr(t){const[e,n]=pr(t);return{isoYear:e.getUTCFullYear(),isoMonth:e.getUTCMonth()+1,isoDay:e.getUTCDate()+n,isoHour:e.getUTCHours(),isoMinute:e.getUTCMinutes(),isoSecond:e.getUTCSeconds(),isoMillisecond:e.getUTCMilliseconds()}}function lr(t){var e;return null!=(e=t[rr])?e:or(t.getISOFields())}function dr(t){return Math.floor(sr(t,1,1)/1e3)}function ur(t){return pr(t.div(1e6).toNumber())[0].getUTCFullYear()}function hr(t,e,n){const[r,o]=pr(sr(t,e,n));return Mn(r.getUTCDay()+o,7)||7}function pr(t){const e=wn(t);let n,r=0;for(;r<31;r++){const o=new Date(t-e*r*864e5);if(!mr(o)){n=o;break}}return void 0===n&&fr(),[n,e*r]}function mr(t){return isNaN(t.valueOf())}function fr(){throw new RangeError("Date outside of supported range")}function gr(t,e){return Math.round((e-t)/864e5)}function vr(t,e){return t+864e5*e}function yr(t,e){return!br(t,e)&&t.calendar.toString()===e.calendar.toString()}function br(t,e){return Fn(or(t.getISOFields()),or(e.getISOFields()))}function wr(t,e){return bn(qn(t.getISOFields()),qn(e.getISOFields()))}function Sr(t,e){return bn(t.year,e.year)||bn(t.month,e.month)||bn(t.day,e.day)}function $r(t,e){return Fn(t[rr],e[rr])}function Cr(t,e,n,r,o){return[t=Number(t),e=Ze(e,1,r.monthsInYear(t),o),n=Ze(n,1,r.daysInMonth(t,e),o)]}function Ar(t,e){const[n,r,o]=Cr(t.isoYear,t.isoMonth,t.isoDay,er,e);return{isoYear:n,isoMonth:r,isoDay:o}}function Mr(t,e){return{...Ar(t,e),...Dr(t,e)}}function Dr({isoHour:t,isoMinute:e,isoSecond:n,isoMillisecond:r,isoMicrosecond:o,isoNanosecond:i},s){return{isoHour:t=Ze(t,0,23,s),isoMinute:e=Ze(e,0,59,s),isoSecond:n=Ze(n,0,59,s),isoMillisecond:r=Ze(r,0,999,s),isoMicrosecond:o=Ze(o,0,999,s),isoNanosecond:i=Ze(i,0,999,s)}}const Tr={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},_r={...Tr,day:Number},xr={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},Er={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},kr=nn(sn,(()=>Number));class Ir extends tr{computeFields(t){const e=super.computeFields(t),{year:n}=e;return{...e,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const Fr=Ve("calendarName",{auto:0,never:1,always:2},0),Or=Ve("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function Nr(t,e=4){const n=Ge(t),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,s=0,a=1;return void 0!==r?(s=ln(r,void 0,0,e),a=Ye[s],i=Le[s]||0):void 0!==o&&"auto"!==o&&(i=Ze(o,0,9,1),a=Math.pow(10,9-i)),{smallestUnit:s,fractionalSecondDigits:i,roundingFunc:Xe(t,Math.trunc),incNano:a}}const Pr=Ve("timeZoneName",{auto:0,never:1},0);function Rr(t,e){return Ur(t)+"T"+Yr(t,e)}function Ur(t){return Hr(t)+"-"+Dn(t.isoDay,2)}function Hr(t){const{isoYear:e}=t;return(e<1e3||e>9999?xn(e)+Dn(Math.abs(e),6):Dn(e,4))+"-"+Dn(t.isoMonth,2)}function Yr(t,e){const n=[Dn(t.isoHour,2)];return e.smallestUnit<=4&&(n.push(Dn(t.isoMinute,2)),e.smallestUnit<=3&&n.push(Dn(t.isoSecond,2)+Br(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,e.fractionalSecondDigits)[0])),n.join(":")}function Lr(t){const[e,n]=Wn(Math.abs(t)),r=Br(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,void 0)[0];return xn(t)+Dn(e.isoHour+24*n,2)+":"+Dn(e.isoMinute,2)+(e.isoSecond||r?":"+Dn(e.isoSecond,2)+r:"")}function zr(t,e){return t&&(2===e||1!==e&&"iso8601"!==t)?`[u-ca=${t}]`:""}function jr(t){return t.map((([t,e,n])=>n||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+e:"")).join("")}function Br(t,e,n,r,o,i){let s=In(t).mult(1e6).add(In(e).mult(1e3)).add(n);o&&(s=An(s,void 0===r?Ye[i]:Math.pow(10,9-r),o));const a=s.abs(),c=a.div(1e9);let l=Dn(a.sub(c.mult(1e9)).toNumber(),9);return l=void 0===r?l.replace(/0+$/,""):l.substr(0,r),[l?"."+l:"",c.toNumber()*(s.sign()||1)]}function Vr(t){Qe(t,{epochNanoseconds(){return this[rr].toBigInt()},epochMicroseconds(){return this[rr].div(1e3).toBigInt()},epochMilliseconds(){return this[rr].div(1e6).toNumber()},epochSeconds(){return this[rr].div(1e9).toNumber()}})}const Zr={calendar:"calendar"};for(const t of on)Zr[t]="iso"+((qr=t).charAt(0).toUpperCase()+qr.slice(1));var qr;function Gr(t,e=[]){Qe(t,nn(e.concat("calendar"),(t=>function(){return this.getISOFields()[Zr[t]]})))}const Wr=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],Kr=[...Wr,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Xr(t,e){Qe(t,nn(e,(t=>function(){const e=this.calendar[t](this);return Object.defineProperty(this,t,{value:e}),e})))}function Jr(t,e){(t.prototype||t)[Symbol.toStringTag]="Temporal."+e}const Qr=Ve("offset",{prefer:0,use:1,ignore:2,reject:3});function to(t,e,n=0){const r=t.getPossibleInstantsFor(e);if(1===r.length)return r[0];if(3===n)throw new RangeError("Ambiguous offset");if(r.length)return r[2===n?1:0];{const r=function(t,e){const n=lr(e),r=t.getOffsetNanosecondsFor(new da(n.sub(He)));return t.getOffsetNanosecondsFor(new da(n.add(He)))-r}(t,e),o=t.getPossibleInstantsFor(e.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function eo({year:t,month:e,day:n},r,o,i){t+=r;const s=Ze(e,1,o.monthsInYear(t),i);let a=e===s?n:1;return a=Ze(a,1,o.daysInMonth(t,s),i),{year:t,month:s,day:a}}function no({year:t,month:e,day:n},r,o,i){if(r){if(e+=r,r<0)for(;e<1;)e+=o.monthsInYear(--t);else{let n;for(;e>(n=o.monthsInYear(t));)e-=n,t++}n=Ze(n,1,o.daysInMonth(t,e),i)}return{year:t,month:e,day:n}}function ro({isoYear:t,isoMonth:e,isoDay:n},r){if(r){let o=sr(t,e,n);o=vr(o,r),({isoYear:t,isoMonth:e,isoDay:n}=cr(o))}return{isoYear:t,isoMonth:e,isoDay:n}}function oo(t,e){if(Ln(e)>=6)throw new RangeError("Duration cant have units >= days");return t.add(Zn(e))}function io(t,e,n=3,r){const{offsetNanoseconds:o,timeZone:i,Z:s}=t;if(void 0!==o&&2!==n){if(1===n||s)return or(t).sub(o);{const r=so(t,o,i,e);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return to(i,Ss(t),Or(r))[rr]}function so(t,e,n,r){const o=n.getPossibleInstantsFor(Ss(t)),i=or(t),s=r?$n(e):e;for(const t of o){const e=t[rr],n=i.sub(e).toNumber();if((r?$n(n):n)===s)return e}}function ao(t){const{timeZone:e}=t,n={...t,...zn,calendar:new Ws("iso8601")},r={...ro(n,1),...zn,calendar:new Ws("iso8601")},o=to(e,Ss(n))[rr];return to(e,Ss(r))[rr].sub(o).toNumber()}const co="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",lo="([+-])"+co,uo="(Z|"+lo+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",ho=bo("([+-]\\d{6}|\\d{4})-?(\\d{2})"+uo),po=bo("(--)?(\\d{2})-?(\\d{2})"+uo),mo=bo("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+uo),fo=bo("T?"+co+uo),go=bo(lo),vo=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,yo=/\u2212/g;function bo(t){return new RegExp(`^${t}$`,"i")}function wo(t){return t.replace(yo,"-")}function So(t){const e=Mo(t);if(!e)throw Ro("dateTime",t);return e}function $o(t){const e=Do(t);if(!e)throw Ro("dateTime",t);return e}function Co(t){const e=xo(t);if(void 0===e)throw Ro("timeZone",t);return e}const Ao=/^Z$/i;function Mo(t){const e=mo.exec(wo(t));if(e)return function(t){const e=t[11];let n,r=!1;return e&&(r=Ao.test(e),n=r?0:Io(t.slice(12))),{...Eo(t),timeZone:t[21],offsetNanoseconds:n,Z:r}}(e.slice(1))}function Do(t,e,n){const r=mo.exec(wo(t));if(r&&(n||!Ao.test(r[12]))&&(!e||r[4]))return Eo(r.slice(1))}function To(t){const e=ho.exec(wo(t));if(e)return{calendar:(n=e.slice(1))[14],isoYear:No(n[0]),isoMonth:No(n[1]),isoDay:1};var n}function _o(t){const e=po.exec(wo(t));if(e)return{calendar:(n=e.slice(1))[15],isoYear:nr,isoMonth:No(n[1]),isoDay:No(n[2])};var n}function xo(t){const e=go.exec(wo(t));if(e)return Io(e.slice(1))}function Eo(t){return{calendar:t[23],isoYear:No(t[0]),isoMonth:No(t[1]),isoDay:No(t[2]),...ko(t.slice(4))}}function ko(t){const e=Oo(t[4]);return{...Wn(Fo(t[6]||""))[0],isoHour:Oo(t[0]),isoMinute:Oo(t[2]),isoSecond:60===e?59:e}}function Io(t){return("+"===t[0]?1:-1)*function(t){return Oo(t[0])*Ue+6e10*Oo(t[2])+1e9*Oo(t[4])+Fo(t[6]||"")}(t.slice(1))}function Fo(t){return parseInt(Tn(t,9,"0"))}function Oo(t){return parseInt(t||"0")}function No(t){return parseInt(t||"1")}function Po(t){return void 0===t?void 0:parseInt(t)}function Ro(t,e){throw new RangeError(`Cannot parse ${t} '${e}'`)}function Uo(t){return{...t,calendar:void 0===t.calendar?Ks():new Ws(t.calendar)}}function Ho(t){return{...Uo(t),timeZone:new ei(t.timeZone)}}class Yo{constructor(t){this.id=t}}class Lo extends Yo{constructor(t,e){super(t),this.offsetNano=e}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function zo(t,e){const n={},r=t.formatToParts(e);for(const t of r)n[t.type]=t.value;return n}const jo={bc:"bce",ad:"ce"};function Bo(t){return t=t.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),jo[t]||t}const Vo=Intl.DateTimeFormat;function Zo(t){return[].concat(t||[])}const qo={"Pacific/Apia":{2011:[[Go(13017528e5),-36e12,-396e11],[Go(13168728e5),-396e11,-36e12],[Go(13252392e5),-36e12,504e11]]}};function Go(t){return In(t).mult(1e6)}const Wo=(new Date).getUTCFullYear()+10,Ko=[182,91,273];class Xo extends Yo{constructor(t){const e=new Vo("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:t});super(e.resolvedOptions().timeZone),this.format=e,this.yearEndOffsets={},this.transitionsInYear=qo[t]||{}}getPossibleOffsets(t){let e;const n=[this.getTransition(t,-1),this.getTransition(t.sub(1),1)].filter(Boolean);for(const r of n){const[n,o,i]=r,s=t.sub(o),a=t.sub(i);if(Fn(n,s)>0&&Fn(n,a)>0)return[o];if(!(Fn(n,s)<=0&&Fn(n,a)<=0))return o<i?[]:[o,i];e=i}return void 0!==e?[e]:[1e9*this.getYearEndOffsetSec(ur(t))]}getOffset(t){return 1e9*this.getOffsetForEpochSecs(t.div(1e9).toNumber())}getOffsetForEpochSecs(t){const e=zo(this.format,1e3*t);let n=parseInt(e.year);"bce"===Bo(e.era)&&(n=-(n-1));const r=sr(n,parseInt(e.month),parseInt(e.day),parseInt(e.hour),parseInt(e.minute),parseInt(e.second));return Math.floor(r/1e3)-t}getTransition(t,e){let n=ur(t);if(n>Wo){const r=this.getTransitionFrom(n,n+e,e,t);if(r||e>0)return r;n=Wo}return this.getTransitionFrom(Math.max(n,1847),e<0?1846:Wo,e,t)}getTransitionFrom(t,e,n,r){for(;t!==e;t+=n){let e=this.getTransitionsInYear(t);n<0&&(e=e.slice().reverse());for(const t of e)if(Fn(t[0],r)===n)return t}}getYearEndOffsetSec(t){const{yearEndOffsets:e}=this;return e[t]||(e[t]=this.getOffsetForEpochSecs(dr(t+1)-1))}getTransitionsInYear(t){const{transitionsInYear:e}=this;return e[t]||(e[t]=this.computeTransitionsInYear(t))}computeTransitionsInYear(t){const e=this.getYearEndOffsetSec(t-1),n=this.getYearEndOffsetSec(t),r=dr(t)-1,o=dr(t+1)-1;if(e!==n)return[this.searchTransition(r,o,e,n)];const i=this.searchIsland(e,r);return void 0!==i?[this.searchTransition(r,i[0],e,i[1]),this.searchTransition(i[0],o,i[1],n)]:[]}searchTransition(t,e,n,r){for(;e-t>1;){const r=Math.floor(t+(e-t)/2);this.getOffsetForEpochSecs(r)===n?t=r:e=r}return[In(e).mult(1e9),1e9*n,1e9*r]}searchIsland(t,e){for(const n of Ko){const r=e+86400*n,o=this.getOffsetForEpochSecs(r);if(o!==t)return[r,o]}}}const Jo={UTC:new Lo("UTC",0)},[Qo,ti]=Je();class ei extends mn{constructor(t){if(!t)throw new RangeError("Invalid timezone ID");super(),ti(this,function(t){const e=(t=String(t)).toLocaleUpperCase();if(Jo[e])return Jo[e];const n=xo(t);if(void 0!==n){if(Math.abs(n)>He)throw new RangeError("Offset out of bounds");return new Lo(Lr(n),n)}return Jo[e]=new Xo(t)}(t))}static from(t){if(Ke(t))return function(t){const e=t.timeZone;return void 0===e?t:Ke(e)&&void 0===e.timeZone?e:new ei(e)}(t);const e=Mo(String(t));if(e){if(e.timeZone){const t=Ho(e);return function(t){const{offsetNanoseconds:e,timeZone:n,Z:r}=t;if(void 0!==e&&!r&&void 0===so(t,e,n,!0))throw new RangeError("Mismatching offset/timezone")}(t),t.timeZone}if(e.Z)return new ei("UTC");if(void 0!==e.offsetNanoseconds)return new ei(Lr(e.offsetNanoseconds))}return new ei(String(t))}get id(){return this.toString()}getOffsetStringFor(t){return Lr(this.getOffsetNanosecondsFor(t))}getOffsetNanosecondsFor(t){const e=pn(da,t);return Qo(this).getOffset(e[rr])}getPlainDateTimeFor(t,e=Ks()){const n=pn(da,t);return Ss({...ar(n[rr].add(this.getOffsetNanosecondsFor(n))),calendar:pn(Ws,e)})}getInstantFor(t,e){return to(this,pn(ws,t),Or(e))}getPossibleInstantsFor(t){const e=or(pn(ws,t).getISOFields());return Qo(this).getPossibleOffsets(e).map((t=>new da(e.sub(t))))}getPreviousTransition(t){const e=pn(da,t),n=Qo(this).getTransition(e[rr],-1);return n?new da(n[0]):null}getNextTransition(t){const e=pn(da,t),n=Qo(this).getTransition(e[rr],1);return n?new da(n[0]):null}toString(){return Qo(this).id}}function ni(t){if(void 0===t.timeZone)throw new TypeError("Must specify timeZone");return pn(ei,t.timeZone)}Jr(ei,"TimeZone");const ri=Mi((function(t,e,n){const r=gi(t,e,n);if(r)return{...r,timeZone:ni(t),offsetNanoseconds:void 0!==t.offset?Co(String(t.offset)):void 0}})),oi=Mi(gi),ii=Mi(vi),si=Mi((function(t,e){const n=Qs(t),r=$i(t,Tr,n);if(Di(r))return n.yearMonthFromFields(r,e)})),ai=Mi((function(t,e){const n=Qs(t),r=$i(t,Er,n);if(Di(r))return void 0===t.year&&void 0===t.calendar&&(r.year=nr),n.monthDayFromFields(r,e)})),ci=Mi(yi),li=Mi((function(t,e,n,r){const o=bi(t,e,n,r),i=void 0!==e.offset;if(o||i)return{...o||t.getISOFields(),timeZone:t.timeZone,offsetNanoseconds:i?Co(String(e.offset)):t.offsetNanoseconds}}),!0),di=Mi(bi,!0),ui=Mi(wi,!0),hi=Mi((function(t,e,n){const r=t.calendar;if(Di($i(e,Tr,r))){const o=Ai(t,e,Tr,r);return r.yearMonthFromFields(o,n)}}),!0),pi=Mi((function(t,e,n){const r=t.calendar;if(Di($i(e,Er,r))){const o=Ai(t,e,Er,r);return r.monthDayFromFields(o,n)}}),!0),mi=Mi(Si,!0),fi=Mi((function(t){const e=qe(t,kr);if(Di(e))return e}));function gi(t,e,n){const r=vi(t,n),o=yi(t,e);if(r)return{...r.getISOFields(),...o||zn}}function vi(t,e){const n=Qs(t),r=$i(t,_r,n);if(Di(r))return n.dateFromFields(r,e)}function yi(t,e){const n=qe(t,xr);if(Di(n))return Dr(Bn(n),e)}function bi(t,e,n,r){const o=wi(t,e,r),i=Si(t,e,n);if(o||i)return{...t.getISOFields(),...o?o.getISOFields():{},...i}}function wi(t,e,n){const r=t.calendar,o=$i(e,_r,r);if(Di(o)){const e=Ai(t,o,_r,r);return r.dateFromFields(e,n)}}function Si(t,e,n){const r=qe(e,xr);if(Di(r))return Dr(Bn((o=t,i=r,tn(xr,((t,e)=>{var n;return null!=(n=i[e])?n:o[e]})))),n);var o,i}function $i(t,e,n){let r=Object.keys(e);return r=n.fields?Array.prototype.slice.call(n.fields(r)):Object.keys(Ci(n,r)),Ci(t,r)}function Ci(t,e){const n={};for(const r of e)void 0!==t[r]&&(n[r]=t[r]);return n}function Ai(t,e,n,r){const o=$i(t,n,r);return r.mergeFields?r.mergeFields(o,e):Xs(o,e)}function Mi(t,e){return(...n)=>{if(e){const t=n[1];if(!Ke(t))throw new TypeError("must be object-like");if(void 0!==t.calendar)throw new TypeError("calendar not allowed");if(void 0!==t.timeZone)throw new TypeError("timeZone not allowed")}const r=t(...n);if(!r)throw new TypeError("No valid fields");return r}}function Di(t){return Object.keys(t).length>0}const Ti=In(He).mult(1e8),_i=Ti.mult(-1),xi=Ti.add(86399999999999),Ei=_i.sub(86399999999999);function ki(t,e){const n=or(t);Ii(n),js(n,e)}function Ii(t){-1!==Fn(t,Ei)&&1!==Fn(t,xi)||fr()}function Fi(t,e){const n=Ni(qn(t),e),[r,o]=Wn(n);return{...ro(t,o),...r}}function Oi(t,e){const n=Ni(qn(t),e),[r]=Wn(n);return r}function Ni(t,e){return Sn(t,e.incNano,e.roundingFunc)}function Pi(t,e,n){return(r,o)=>{const i=zi(t,o)?{}:{...t,...e};return{buildKey:Li(r,o,!1),buildFormat:function(t,e){return new Vo(r,{calendar:t,timeZone:e||void 0,...i,...o,...n})},buildEpochMilli:Ri}}}function Ri(t){return t.epochMilliseconds}function Ui(t,e,n){return(r,o)=>{const i=zi(t,o)?{}:t;return{buildKey:Li(r,o,n),buildFormat:function(t,n){return new Vo(r,{calendar:t,...i,...o,...e,timeZone:n,timeZoneName:void 0})},buildEpochMilli:void 0!==o.timeZone?Hi.bind(null,new ei(o.timeZone)):Yi}}}function Hi(t,e){const n=Ss({...zn,...e.getISOFields()});return t.getInstantFor(n).epochMilliseconds}function Yi(t){return sr((e=t.getISOFields()).isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond);var e}function Li(t,e,n){var r;const o=null!=(r=e.calendar)?r:function(t){for(const e of t){const t=e.match(/-u-ca-(.*)$/);if(t)return t[1]}}(t),i=e.timeZone;return function(t,e){var r,s,a,c;const l=null==(r=t.calendar)?void 0:r.id,d=null==(s=t.timeZone)?void 0:s.id;if(e){if((null==(a=e.calendar)?void 0:a.id)!==l)throw new RangeError("Mismatching calendar");if((null==(c=e.timeZone)?void 0:c.id)!==d)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==l)&&void 0!==l&&void 0!==o&&o!==l)throw new RangeError("Non-iso calendar mismatch");if(void 0!==d&&void 0!==i&&i!==d)throw new RangeError("Given timeZone must agree");return[o||l||"iso8601",i||d||"UTC"]}}function zi(t,e){for(const n in t)if(void 0!==e[n])return!0;return!1}function ji(t,e){t.prototype.toLocaleString=function(t,n){const r=e(Zo(t),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},t.prototype[hn]=e}function Bi(t){return null==t?void 0:t[hn]}function Vi(t,e,n,r){if(void 0!==t){if(void 0!==r)throw new RangeError("Partial units must be last unit");return[parseInt(t),void 0!==e?Fo(e)*(Ye[n]/1e9):void 0]}if(void 0!==r){const t=Math.trunc(r/Ye[n]);return[t,r-t*Ye[n]]}return[void 0,void 0]}const Zi=Ve("offset",{auto:0,never:1},0);class qi extends yn{constructor(t=0,e=0,n=0,r=0,o=0,i=0){super({...Dr({isoHour:t,isoMinute:e,isoSecond:n,isoMillisecond:r,isoMicrosecond:o,isoNanosecond:i},1),calendar:Ks()})}static from(t,e){const n=Be(e);return Gi(t instanceof qi?t.getISOFields():"object"==typeof t?ci(t,n):function(t){let e=function(t){const e=fo.exec(wo(t));if(e)return ko(e.slice(1))}(t);if(void 0!==e){if("T"!==t.charAt(0)){const n=To(t)||_o(t);n&&function(t){try{return Ar(t,1),!0}catch(t){return!1}}(n)&&(e=void 0)}}else e=Do(t,!0);if(void 0===e)throw Ro("time",t);return e}(String(t)))}static compare(t,e){return wr(pn(qi,t),pn(qi,e))}with(t,e){return Gi(mi(this,t,Be(e)))}add(t){return Ki(this,pn(vs,t))}subtract(t){return Ki(this,Rn(pn(vs,t)))}until(t,e){return Xi(this,pn(qi,t),e)}since(t,e){return Xi(pn(qi,t),this,e)}round(t){const e=un(t,0,5);return Gi(Oi(this.getISOFields(),e))}equals(t){return!wr(this,pn(qi,t))}toString(t){const e=Nr(t);return Yr(Oi(this.getISOFields(),e),e)}toZonedDateTime(t){const e=pn(ra,t.plainDate),n=pn(ei,t.timeZone);return is({...e.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(t){return pn(ra,t).toPlainDateTime(this)}}function Gi(t){return new qi(t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond)}function Wi(t){return pn(qi,null!=t?t:{hour:0})}function Ki(t,e){return Gi(function(t,e){const n=qn(t)+Zn(e).toNumber(),[r]=Wn(n);return r}(t.getISOFields(),e))}function Xi(t,e,n){const r=dn(n,5,0,0,5);return ys(function(t,e,n){return Gn(In(Sn(qn(e)-qn(t),Ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(t.getISOFields(),e.getISOFields(),r))}Jr(qi,"PlainTime"),Gr(qi,rn),ji(qi,(function(t,e){return{buildKey:()=>["",""],buildFormat:()=>new Vo(t,{hour:"numeric",minute:"2-digit",second:"2-digit",...e,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:t=>Math.trunc(qn(t.getISOFields())/1e6)}}));const Ji={day:1};class Qi extends yn{constructor(t,e,n=Ks(),r=1){const o=Ar({isoYear:t,isoMonth:e,isoDay:r},1),i=pn(Ws,n);var s,a;s=o,a=i.toString(),js(or(s),a),super({...o,calendar:i})}static from(t,e){if(Be(e),t instanceof Qi)return ts(t.getISOFields());if("object"==typeof t)return si(t,e);const n=function(t){const e=To(t)||Do(t);if(!e)throw Ro("yearMonth",t);return e}(String(t));return void 0===n.calendar&&(n.isoDay=1),ts(Uo(n))}static compare(t,e){return br(pn(Qi,t),pn(Qi,e))}with(t,e){return hi(this,t,e)}add(t,e){return es(this,pn(vs,t),e)}subtract(t,e){return es(this,Rn(pn(vs,t)),e)}until(t,e){return ns(this,pn(Qi,t),!1,e)}since(t,e){return ns(this,pn(Qi,t),!0,e)}equals(t){return!br(this,pn(Qi,t))}toString(t){const e=this.getISOFields(),n=e.calendar.toString(),r=Fr(t);return("iso8601"===n?Hr(e):Ur(e))+zr(n,r)}toPlainDate(t){return this.calendar.dateFromFields({year:this.year,month:this.month,day:t.day})}}function ts(t){return new Qi(t.isoYear,t.isoMonth,t.calendar,t.isoDay)}function es(t,e,n){return t.toPlainDate({day:e.sign<0?t.daysInMonth:1}).add(e,n).toPlainYearMonth()}function ns(t,e,n,r){return ys(aa(t.toPlainDate(Ji),e.toPlainDate(Ji),ta(t,e),n,dn(r,9,8,8,9)))}Jr(Qi,"PlainYearMonth"),Gr(Qi),Xr(Qi,Wr),ji(Qi,Ui({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const rs=Symbol();class os extends yn{constructor(t,e,n=Ks()){const r=pn(ei,e),o=pn(Ws,n),i=In(t),[s,a]=ss(i,r);ki(s,o.toString()),super({...s,calendar:o,timeZone:r,offset:Lr(a)}),this[rr]=i,this[rs]=a}static from(t,e){const n=Qr(e,3),r=Be(e);if(t instanceof os)return new os(t.epochNanoseconds,t.timeZone,t.calendar);const o="object"==typeof t;return is(o?ri(t,r,e):Ho(So(String(t))),!o,n,e)}static compare(t,e){return $r(pn(os,t),pn(os,e))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[rs]}get offset(){return this.getISOFields().offset}with(t,e){Or(e);const n=Be(e),r=Qr(e,0);return is(li(this,t,n,e),!1,r,e)}withPlainDate(t){const e=pn(ra,t),n=e.toPlainDateTime(this),{timeZone:r}=this,o=to(r,n);return new os(o.epochNanoseconds,r,ea(this,e))}withPlainTime(t){return is({...this.getISOFields(),...void 0===t?zn:pn(qi,t).getISOFields()})}withCalendar(t){return new os(this.epochNanoseconds,this.timeZone,t)}withTimeZone(t){return new os(this.epochNanoseconds,t,this.calendar)}add(t,e){return as(this,pn(vs,t),e)}subtract(t,e){return as(this,Rn(pn(vs,t)),e)}until(t,e){return ls(this,pn(os,t),!1,e)}since(t,e){return ls(this,pn(os,t),!0,e)}round(t){return cs(this,un(t,0,6))}equals(t){return this,yr(this,e=pn(os,t))&&this.timeZone.toString()===e.timeZone.toString();var e}startOfDay(){return is({...this.getISOFields(),...zn,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return ao(this.getISOFields())/Ue}toString(t){const e=Nr(t),n=Zi(t),r=Pr(t),o=Fr(t),i=cs(this,e);return Rr(i.getISOFields(),e)+(0===n?Lr($n(i.offsetNanoseconds)):"")+(s=this.timeZone.toString(),1!==r?`[${s}]`:"")+zr(this.calendar.toString(),o);var s}toPlainYearMonth(){return ts(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return Ss(this.getISOFields())}toPlainDate(){return oa(this.getISOFields())}toPlainTime(){return Gi(this.getISOFields())}toInstant(){return new da(this.epochNanoseconds)}}function is(t,e,n,r){const o=io(t,e,n,r);return new os(o,t.timeZone,t.calendar)}function ss(t,e){const n=new da(t),r=e.getOffsetNanosecondsFor(n);return[ar(t.add(r)),r]}function as(t,e,n){const r=t.getISOFields(),o=function(t,e,n){const{calendar:r,timeZone:o}=t,i=r.dateAdd(oa(t),Un(e,jn),n);return to(o,Ss({...t,...i.getISOFields()}))[rr].add(Zn(e))}(r,e,n);return new os(o,r.timeZone,r.calendar)}function cs(t,e){const n=t.getISOFields(),r=function(t,e,n){const{calendar:r,timeZone:o}=t;let i,s,a=qn(t);return 6===n.smallestUnit?(i=zn,s=n.roundingFunc(a/ao(t))):(a=Ni(a,n),[i,s]=Wn(a)),io({...ro(t,s),...i,offsetNanoseconds:e,calendar:r,timeZone:o},!1,0)}(n,t.offsetNanoseconds,e);return new os(r,n.timeZone,n.calendar)}function ls(t,e,n,r){const o=dn(r,5,0,0,9),{largestUnit:i}=o;if(i>=6&&t.timeZone.id!==e.timeZone.id)throw new Error("Must be same timeZone");return ys(sa(t,e,ta(t,e),n,o))}function ds(t){if(void 0===t)return;if(Ke(t))return t instanceof os||t instanceof ws?t:pn(void 0!==t.timeZone?os:ws,t);if("symbol"==typeof t)throw new TypeError("Incorrect relativeTo type");const e=Mo(String(t));if(e)return void 0!==e.timeZone?is(Ho(e),!0):Ss(Uo(e));throw new RangeError("Invalid value of relativeTo")}function us(t,e,n,r){return(n instanceof ra?function(t,e,n,r){const o=n.add(t);return[r.dateUntil(n,o,{largestUnit:on[e]}),o]}(t,Math.max(6,e),n,r):hs(t,e,n,r))[0]}function hs(t,e,n,r,o){const i=!0!==o&&e>7&&t.weeks;i&&(t=Un(t,{weeks:0}));let s=n.add(t),a=ca(n,s,r,e);return i&&(a=Un(a,{weeks:i}),s=s.add({weeks:i})),[a,s]}function ps(t,e,n,r){const o=sn[e],{sign:i}=t;if(!i)return t;const s={};for(let n=9;n>=e;n--){const e=sn[n];s[e]=t[e]}const a={[o]:i},c=n.add(s),l=c.add(a),d=lr(c),u=lr(l),h=lr(r).sub(d).toNumber()/u.sub(d).toNumber()*i;return s[o]+=h,s}function ms(t,e,n,r,o,i){const{largestUnit:s,smallestUnit:a,roundingIncrement:c,roundingFunc:l}=i;if(!je(s))return Gn(An(lr(n).sub(lr(e)).mult(o?-1:1),Ye[a]*c,l),s);let d=ps(t,a,e,n);const u=sn[a];function h(){const t=d[u];d[u]=Sn(t,c,l)}return l===Math.round&&h(),o&&(d=Rn(d)),l!==Math.round&&h(),a>0&&(d=o?Rn(us(Rn(d),s,e,r)):us(d,s,e,r)),d}Jr(os,"ZonedDateTime"),Gr(os,rn),Xr(os,Kr),Vr(os),ji(os,Pi({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[fs,gs]=Je();class vs extends fn{constructor(t=0,e=0,n=0,r=0,o=0,i=0,s=0,a=0,c=0,l=0){super();const d=fi({years:t,months:e,weeks:n,days:r,hours:o,minutes:i,seconds:s,milliseconds:a,microseconds:c,nanoseconds:l});gs(this,function(t){const e=Hn(t),{sign:n}=e;for(const t of sn){const r=e[t],o=wn(e[t]);if(o&&o!==n)throw new RangeError("All fields must be same sign");if(!Number.isInteger(r))throw new RangeError("Duration fields must be integers")}return e}(d))}static from(t){return ys("object"==typeof t?fi(t):function(t){const e=function(t){const e=vo.exec(wo(t));if(e){let t,n,r,o;[t,o]=Vi(e[8],e[10],5,void 0),[n,o]=Vi(e[12],e[14],4,o),[r,o]=Vi(e[16],e[18],3,o);const i=function(t){const e={};for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}({years:Po(e[2]),months:Po(e[3]),weeks:Po(e[4]),days:Po(e[5]),hours:t,minutes:n,seconds:r});if(!Object.keys(i).length)throw new RangeError("Duration string must have at least one field");const s=Gn(In(o||0),2);i.milliseconds=s.milliseconds,i.microseconds=s.microseconds,i.nanoseconds=s.nanoseconds;let a=Hn(i);return"-"===e[1]&&(a=Rn(a)),a}}(t);if(void 0===e)throw Ro("duration",t);return e}(t))}static compare(t,e,n){return function(t,e,n){if(void 0===n&&Ln(t)<=6&&Ln(e)<=6)return Fn(Vn(t),Vn(e));if(!n)throw new RangeError("Need relativeTo");const r=n.add(t),o=n.add(e);return void 0!==n[rr]?$r(r,o):br(r,o)}(pn(vs,t),pn(vs,e),ds(Ge(n).relativeTo))}get years(){return fs(this).years}get months(){return fs(this).months}get weeks(){return fs(this).weeks}get days(){return fs(this).days}get hours(){return fs(this).hours}get minutes(){return fs(this).minutes}get seconds(){return fs(this).seconds}get milliseconds(){return fs(this).milliseconds}get microseconds(){return fs(this).microseconds}get nanoseconds(){return fs(this).nanoseconds}get sign(){return fs(this).sign}get blank(){return!this.sign}with(t){return ys({...fs(this),...fi(t)})}negated(){return ys(Rn(fs(this)))}abs(){return ys(en(fs(this),Pn,(t=>Math.abs(t))))}add(t,e){return bs(this,pn(vs,t),e)}subtract(t,e){return bs(this,Rn(pn(vs,t)),e)}round(t){const e="string"==typeof t?{smallestUnit:t}:t;if(!Ke(e))throw new TypeError("Must specify options");if(void 0===e.largestUnit&&void 0===e.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const n=dn(e,Ln(this),0,0,9,!0),r=ds(e.relativeTo);return ys(function(t,e,n,r){const{largestUnit:o,smallestUnit:i,roundingIncrement:s,roundingFunc:a}=e;if(void 0===n&&Ln(t)<=6&&ze(o)&&ze(i))return Gn(An(Vn(t),Ye[i]*s,a),o);if(!n)throw new RangeError("Need relativeTo");const[c,l]=hs(t,o,n,r);return ms(c,n,l,r,!1,e)}(this,n,r,r?r.calendar:void 0))}total(t){const e=function(t){let e,n;return"string"==typeof t?n=t:(n=Ge(t).unit,e=t.relativeTo),{unit:ln(n,void 0,0,9),relativeTo:e}}(t),n=ds(e.relativeTo);return function(t,e,n,r){if(void 0===n&&Ln(t)<=6&&ze(e))return Vn(t).toNumber()/Ye[e];if(!n)throw new RangeError("Need relativeTo");const[o,i]=hs(t,e,n,r,!0);return ps(o,e,n,i)[sn[e]]}(this,e.unit,n,n?n.calendar:void 0)}toString(t){const e=Nr(t,3);return function(t,e){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=e,{sign:i}=t,s=t.hours,a=t.minutes;let c=t.seconds,l="";if(n<=3){const e=Br(t.milliseconds,t.microseconds,t.nanoseconds,r,o,n);l=e[0],c+=e[1]}const d=void 0!==r||l||!i;return(i<0?"-":"")+"P"+jr([[t.years,"Y"],[t.months,"M"],[t.weeks,"W"],[t.days,"D"]])+(s||a||c||d?"T"+jr([[s,"H"],[a,"M"],[n<=3?c:0,l+"S",d]]):"")}(fs(this),e)}toLocaleString(t,e){return this.toString()}}function ys(t){return new vs(t.years,t.months,t.weeks,t.days,t.hours,t.minutes,t.seconds,t.milliseconds,t.microseconds,t.nanoseconds)}function bs(t,e,n){const r=ds(Ge(n).relativeTo);return ys(function(t,e,n,r){const o=Math.max(Ln(t),Ln(e));if(void 0===n&&o<=6)return Gn(Vn(t).add(Vn(e)),o);if(!n)throw new RangeError("Need relativeTo");const i=n.add(t).add(e);return ca(n,i,r,o)}(t,e,r,r?r.calendar:void 0))}Jr(vs,"Duration");class ws extends yn{constructor(t,e,n,r=0,o=0,i=0,s=0,a=0,c=0,l=Ks()){const d=Mr({isoYear:t,isoMonth:e,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:s,isoMicrosecond:a,isoNanosecond:c},1),u=pn(Ws,l);ki(d,u.toString()),super({...d,calendar:u})}static from(t,e){const n=Be(e);return Ss(t instanceof ws?t.getISOFields():"object"==typeof t?oi(t,n,e):Uo($o(String(t))))}static compare(t,e){return br(pn(ws,t),pn(ws,e))}with(t,e){const n=Be(e);return Ss(di(this,t,n,e))}withPlainDate(t){const e=pn(ra,t);return Ss({...this.getISOFields(),...e.getISOFields(),calendar:ea(this,e)})}withPlainTime(t){return Ss({...this.getISOFields(),...Wi(t).getISOFields()})}withCalendar(t){return Ss({...this.getISOFields(),calendar:pn(Ws,t)})}add(t,e){return $s(this,pn(vs,t),e)}subtract(t,e){return $s(this,Rn(pn(vs,t)),e)}until(t,e){return Cs(this,pn(ws,t),!1,e)}since(t,e){return Cs(this,pn(ws,t),!0,e)}round(t){const e=un(t,0,6);return Ss({...Fi(this.getISOFields(),e),calendar:this.calendar})}equals(t){return yr(this,pn(ws,t))}toString(t){const e=Nr(t),n=Fr(t);return Rr(Fi(this.getISOFields(),e),e)+zr(this.calendar.toString(),n)}toZonedDateTime(t,e){const n=pn(ei,t),r=to(n,this,Or(e));return new os(r.epochNanoseconds,n,this.calendar)}toPlainYearMonth(){return ts(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return oa(this.getISOFields())}toPlainTime(){return Gi(this.getISOFields())}}function Ss(t){return new ws(t.isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,t.calendar)}function $s(t,e,n){const r=function(t,e,n){const{calendar:r}=t;return ar(or(r.dateAdd(oa(t),Un(e,jn),n).getISOFields()).add(qn(t)).add(Zn(e)))}(t.getISOFields(),e,n);return Ss({...r,calendar:t.calendar})}function Cs(t,e,n,r){const o=dn(r,6,0,0,9);return ys(sa(t,e,ta(t,e),n,o))}Jr(ws,"PlainDateTime"),Gr(ws,rn),Xr(ws,Kr),ji(ws,Ui({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class As extends yn{constructor(t,e,n=Ks(),r=nr){super({...Ar({isoYear:r,isoMonth:t,isoDay:e},1),calendar:pn(Ws,n)})}static from(t,e){if(Be(e),t instanceof As)return Ms(t.getISOFields());if("object"==typeof t)return ai(t,e);const n=function(t){const e=_o(t)||Do(t);if(!e)throw Ro("monthDay",t);return e}(String(t));return void 0===n.calendar&&(n.isoYear=nr),Ms(Uo(n))}with(t,e){return pi(this,t,e)}equals(t){return!br(this,pn(As,t))}toString(t){const e=this.getISOFields(),n=e.calendar.toString(),r=Fr(t);return("iso8601"===n?function(t){return Dn(t.isoMonth,2)+"-"+Dn(t.isoDay,2)}(e):Ur(e))+zr(n,r)}toPlainDate(t){return this.calendar.dateFromFields({year:t.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function Ms(t){return new As(t.isoMonth,t.isoDay,t.calendar,t.isoYear)}function Ds(t){return t instanceof ra||t instanceof ws||t instanceof os||t instanceof Qi||t instanceof As}function Ts(t,e,n){let r;if(t instanceof ra)r=t;else if(Ds(t)){if(n&&t instanceof As)throw new TypeError("PlainMonthDay not allowed");r=oa(t.getISOFields())}else r=ra.from(t);return na(r.calendar,e),r}function _s(t,e,n){if(Ds(t))return t.getISOFields();let{era:r,eraYear:o,year:i,month:s,monthCode:a,day:c}=t;const l=void 0!==o&&void 0!==r?Jn(e.id,o,r):void 0;if(void 0===i){if(void 0===l)throw new TypeError("Must specify either a year or an era & eraYear");i=l}else if(void 0!==l&&l!==i)throw new RangeError("year and era/eraYear must match");if(void 0===c)throw new TypeError("Must specify day");const d=Be(n);if(void 0!==a){const[t,n]=e.convertMonthCode(a,i);if(void 0!==s&&s!==t)throw new RangeError("Month doesnt match with monthCode");if(s=t,n){if(1===d)throw new RangeError("Month code out of range");c=e.daysInMonth(i,s)}}else if(void 0===s)throw new TypeError("Must specify either a month or monthCode");return[i,s,c]=Cr(i,s,c,e,d),cr(e.epochMilliseconds(i,s,c))}function xs(t,e){if(Ds(t)){if(e&&t instanceof As)throw new TypeError("PlainMonthDay not allowed");return t.getISOFields()}return ra.from(t).getISOFields()}function Es(t,e){return gr(t.epochMilliseconds(e,1,1),t.epochMilliseconds(e+1,1,1))}function ks(t,e,n,r){return gr(t.epochMilliseconds(e,1,1),t.epochMilliseconds(e,n,r))+1}Jr(As,"PlainMonthDay"),Gr(As),Xr(As,["monthCode","day"]),ji(As,Ui({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Is={hebrew:6,chinese:0,dangi:0};class Fs extends Xn{constructor(t){const e=Os(t);if(n=t,r=e.resolvedOptions().calendar,Qn(n)!==Qn(r))throw new RangeError("Invalid calendar: "+t);var n,r;super(t),this.format=e,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(t,e,n){return vr(this.queryMonthCache(t)[0][e-1],n-1)}daysInMonth(t,e){const n=this.queryMonthCache(t)[0],r=n[e-1];return e>=n.length&&(t++,e=0),gr(r,this.queryMonthCache(t)[0][e])}monthsInYear(t){return this.queryMonthCache(t)[0].length}monthCode(t,e){const n=this.queryLeapMonthByYear(e);return!n||t<n?super.monthCode(t,e):super.monthCode(t-1,e)+(t===n?"L":"")}convertMonthCode(t,e){const n=this.queryLeapMonthByYear(e);let r=/L$/.test(t),o=parseInt(t.substr(1)),i=!1;if(r){const t=Is[this.id];if(void 0===t)throw new RangeError("Calendar system doesnt support leap months");if(t){if(o!==t-1)throw new RangeError("Invalid leap-month month code")}else if(o<=1||o>=12)throw new RangeError("Invalid leap-month month code")}return!r||n&&o===n-1||(i=!0,r=!1),(r||n&&o>=n)&&o++,[o,i]}inLeapYear(t){const e=Es(this,t);return e>Es(this,t-1)&&e>Es(this,t+1)}guessYearForMonthDay(t,e){let n=1970+this.yearCorrection;const r=n+100;for(;n<r;n++){const[r,o]=this.convertMonthCode(t,n);if(!o&&r<=this.monthsInYear(n)&&e<=this.daysInMonth(n,r))return n}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(t){return t}computeFields(t){const e=this.computeFieldsDumb(t),n=this.queryMonthCache(e.year)[2];return{...e,month:n[e.month]}}computeFieldsDumb(t){const e=zo(this.format,t);let n,r,o=parseInt(e.relatedYear||e.year);var i;return e.era&&(i=this.id,void 0!==Kn[Qn(i)])&&(n=Bo(e.era),r=o,o=Jn(this.id,r,n,!0)),{era:n,eraYear:r,year:o,month:e.month,day:parseInt(e.day)}}queryLeapMonthByYear(t){const e=this.queryMonthCache(t),n=this.queryMonthCache(t-1),r=this.queryMonthCache(t+1);if(e[0].length>n[0].length&&e[0].length>r[0].length){const t=e[1],r=n[1];for(let e=0;e<r.length;e++)if(r[e]!==t[e])return e+1}}queryMonthCache(t){const{monthCacheByYear:e}=this;return e[t]||(e[t]=this.buildMonthCache(t))}buildMonthCache(t){const e=[],n=[],r={};let o=sr(this.guessISOYear(t),1,1);for(o=vr(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<t)break;o=vr(o,1-r.day),r.year===t&&(e.unshift(o),n.unshift(r.month)),o=vr(o,-1)}for(let t=0;t<n.length;t++)r[n[t]]=t+1;return[e,n,r]}guessISOYear(t){return t-this.yearCorrection}}function Os(t){return new Vo("en-US",{calendar:t,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const Ns=sr(1868,9,8),Ps={gregory:Ir,japanese:class extends Ir{constructor(){super(...arguments),this.format=Os("japanese")}computeFields(t){const e=super.computeFields(t);if(t>=Ns){const n=zo(this.format,t);e.era=Bo(n.era),e.eraYear=parseInt(n.relatedYear||n.year)}return e}},islamic:class extends Fs{guessISOYear(t){return Math.ceil(32*t/33+622)}}},Rs={iso8601:er};function Us(t){const e=(t=String(t)).toLocaleLowerCase();return Rs[e]||(Rs[e]=new(Ps[Qn(e)]||Fs)(t))}const Hs=sr(1582,10,15),Ys=sr(622,7,18),Ls={buddhist:Hs,japanese:Hs,roc:Hs,islamic:Ys,"islamic-rgsa":Ys,indian:0},zs={};function js(t,e){return Bs(t.div(1e6).toNumber(),e)}function Bs(t,e){if(function(t,e){return function(t){let e=zs[t];if(void 0===e){const n=Ls[t];if(void 0===n)e=!1;else{let r=Us(t);r instanceof Fs||(r=new Fs(t));const o=n-864e5,i=r.computeFields(o);e=o!==r.epochMilliseconds(i.year,i.month,i.day)}zs[t]=e}return e}(e)&&t<Ls[e]}(t,e))throw new RangeError("Invalid timestamp for calendar")}function Vs(t,e,n){const r=7+e-n;return-Mn(hr(t,1,r)-e,7)+r-1}function Zs(t,e,n){const r=Vs(t,e,n),o=Vs(t+1,e,n);return(Es(er,t)-r+o)/7}const[qs,Gs]=Je();class Ws extends mn{constructor(t){super(),"islamicc"===t&&(t="islamic-civil"),Gs(this,Us(t))}static from(t){if(Ke(t))return function(t){const e=t.calendar;return void 0===e?t:Ke(e)&&void 0===e.calendar?e:new Ws(e)}(t);const e=Do(String(t),!1,!0);return new Ws(e?e.calendar||"iso8601":String(t))}get id(){return this.toString()}era(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).era}eraYear(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).eraYear}year(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).year}month(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).month}monthCode(t){const e=Ts(t,this);return qs(this).monthCode(e.month,e.year)}day(t){const e=xs(t);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).day}dayOfWeek(t){const e=xs(t,!0);return hr(e.isoYear,e.isoMonth,e.isoDay)}dayOfYear(t){const e=Ts(t,this,!0);return ks(qs(this),e.year,e.month,e.day)}weekOfYear(t){const e=xs(t,!0);return function(t,e,n,r,o){const i=Vs(t,1,4),s=Math.floor((ks(er,t,e,n)-i-1)/7)+1;if(s<1)return s+Zs(t-1,1,4);const a=Zs(t,1,4);return s>a?s-a:s}(e.isoYear,e.isoMonth,e.isoDay)}daysInWeek(t){return xs(t,!0),7}daysInMonth(t){const e=Ts(t,this,!0);return qs(this).daysInMonth(e.year,e.month)}daysInYear(t){const e=Ts(t,this,!0);return Es(qs(this),e.year)}monthsInYear(t){const e=Ts(t,this,!0);return qs(this).monthsInYear(e.year)}inLeapYear(t){return qs(this).inLeapYear(this.year(t))}dateFromFields(t,e){const n=_s(qe(t,_r),qs(this),e);return new ra(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(t,e){const n=_s({...qe(t,Tr),day:1},qs(this),e);return new Qi(n.isoYear,n.isoMonth,this,n.isoDay)}monthDayFromFields(t,e){const n=qs(this);let{era:r,eraYear:o,year:i,month:s,monthCode:a,day:c}=qe(t,Er);if(void 0===c)throw new TypeError("required property 'day' missing or undefined");if(void 0!==a?i=nr:void 0!==r&&void 0!==o&&(i=Jn(n.id,o,r)),void 0===i){if(void 0===a)throw new TypeError("either year or monthCode required with month");i=n.guessYearForMonthDay(a,c)}const l=_s({year:i,month:s,monthCode:a,day:c},n,e);return new As(l.isoMonth,l.isoDay,this,n.normalizeISOYearForMonthDay(l.isoYear))}dateAdd(t,e,n){const r=qs(this),o=function(t,e,n,r){t=no(t=eo(t,e.years,n,r),e.months,n,r);let o=n.epochMilliseconds(t.year,t.month,t.day);const i=Math.trunc(Zn(e).div(He).toNumber());return o=vr(o,7*e.weeks+e.days+i),cr(o)}(pn(ra,t,n),pn(vs,e),r,Be(n));return new ra(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(t,e,n){const r=qs(this),o=pn(ra,t),i=pn(ra,e),s=Ge(n).largestUnit,a="auto"===s?6:ln(s,6,6,9);return na(this,ta(o,i)),ys(function(t,e,n,r){let o=0,i=0,s=0,a=0;switch(r){case 9:o=function(t,e,n){const[,r,o]=Cr(e.year,t.month,t.day,n,0),i=Sr(e,t),s=bn(e.month,r)||bn(e.day,o);return e.year-t.year-(s&&i&&s!==i?i:0)}(t,e,n),t=eo(t,o,n,0);case 8:i=function(t,e,n){let r=0;const o=Sr(e,t);if(o){let{year:i}=t;for(;i!==e.year;)r+=n.monthsInYear(i)*o,i+=o;const[,s,a]=Cr(e.year,t.month,t.day,n,0);r+=e.month-s;const c=bn(e.day,a);c&&o&&c!==o&&(r-=o)}return r}(t,e,n),t=no(t,i,n,0)}return a=gr(n.epochMilliseconds(t.year,t.month,t.day),n.epochMilliseconds(e.year,e.month,e.day)),7===r&&(s=Math.trunc(a/7),a%=7),Hn({years:o,months:i,weeks:s,days:a,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(o,i,r,a))}fields(t){return t.slice()}mergeFields(t,e){return Xs(t,e)}toString(){return qs(this).id}}function Ks(){return new Ws("iso8601")}function Xs(t,e){var n;const r={...t,...e};if(void 0!==t.year){delete r.era,delete r.eraYear,delete r.year;let n=!1;void 0===e.era&&void 0===e.eraYear||(r.era=e.era,r.eraYear=e.eraYear,n=!0),void 0!==e.year&&(r.year=e.year,n=!0),n||(r.year=t.year)}if(void 0!==t.monthCode){delete r.monthCode,delete r.month;let n=!1;void 0!==e.month&&(r.month=e.month,n=!0),void 0!==e.monthCode&&(r.monthCode=e.monthCode,n=!0),n||(r.monthCode=t.monthCode)}return void 0!==t.day&&(r.day=null!=(n=e.day)?n:t.day),r}function Js(t,e,n,r){const o=sr(e,n,r);return Bs(o,t.id),t.computeFields(o)}function Qs(t){return void 0===t.calendar?Ks():pn(Ws,t.calendar)}function ta(t,e){const{calendar:n}=t;return na(n,e.calendar),n}function ea(t,e){const n=t.calendar,r=e.calendar;if("iso8601"===n.id)return r;if("iso8601"===r.id)return n;if(n.id!==r.id)throw new RangeError("Non-ISO calendars incompatible");return n}function na(t,e){if(t.toString()!==e.toString())throw new RangeError("Calendars must match")}Jr(Ws,"Calendar");class ra extends yn{constructor(t,e,n,r=Ks()){const o=Ar({isoYear:t,isoMonth:e,isoDay:n},1),i=pn(Ws,r);!function(t,e){const n=or(t);Ii(n.add(n.sign()<0?86399999999999:0)),js(n,e)}(o,i.toString()),super({...o,calendar:i})}static from(t,e){return Be(e),t instanceof ra?oa(t.getISOFields()):"object"==typeof t?ii(t,e):oa(Uo($o(String(t))))}static compare(t,e){return br(pn(ra,t),pn(ra,e))}with(t,e){return ui(this,t,e)}withCalendar(t){const e=this.getISOFields();return new ra(e.isoYear,e.isoMonth,e.isoDay,t)}add(t,e){return this.calendar.dateAdd(this,t,e)}subtract(t,e){return this.calendar.dateAdd(this,pn(vs,t).negated(),e)}until(t,e){return ia(this,pn(ra,t),!1,e)}since(t,e){return ia(this,pn(ra,t),!0,e)}equals(t){return!br(this,pn(ra,t))}toString(t){const e=Fr(t),n=this.getISOFields();return Ur(n)+zr(n.calendar.toString(),e)}toZonedDateTime(t){const e=function(t){let e,n;if("string"==typeof t)n=t;else{if("object"!=typeof t)throw new TypeError("Invalid options/timeZone argument");if(void 0!==t.id?n=t:(n=t.timeZone,e=t.plainTime),void 0===n)throw new TypeError("Invalid timeZone argument")}return{plainTime:e,timeZone:n}}(t),n=pn(ei,e.timeZone),r=void 0===e.plainTime?void 0:pn(qi,e.plainTime);return is({...this.getISOFields(),...r?r.getISOFields():zn,timeZone:n})}toPlainDateTime(t){return Ss({...this.getISOFields(),...Wi(t).getISOFields()})}toPlainYearMonth(){return ts(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function oa(t){return new ra(t.isoYear,t.isoMonth,t.isoDay,t.calendar)}function ia(t,e,n,r){return ys(aa(t,e,ta(t,e),n,dn(r,6,6,6,9)))}function sa(t,e,n,r,o){return ms(ca(t,e,n,o.largestUnit),t,e,n,r,o)}function aa(t,e,n,r,o){return ms(n.dateUntil(t,e,{largestUnit:on[o.largestUnit]}),t,e,n,r,o)}function ca(t,e,n,r){if(!je(r))return la(t,e,r);const o=oa({...t.getISOFields(),calendar:n});let i,s,a,c,l,d=oa({...e.getISOFields(),calendar:n});do{s=n.dateUntil(o,d,{largestUnit:on[r]}),i=t.add(s),a=la(i,e,5),c=s.sign,l=a.sign}while(c&&l&&c!==l&&(d=d.add({days:l})));return h=a,{sign:(u=s).sign||h.sign,years:u.years+h.years,months:u.months+h.months,weeks:u.weeks+h.weeks,days:u.days+h.days,hours:u.hours+h.hours,minutes:u.minutes+h.minutes,seconds:u.seconds+h.seconds,milliseconds:u.milliseconds+h.milliseconds,microseconds:u.microseconds+h.microseconds,nanoseconds:u.nanoseconds+h.nanoseconds};var u,h}function la(t,e,n){return Gn(lr(e).sub(lr(t)),n)}Jr(ra,"PlainDate"),Gr(ra),Xr(ra,Kr),ji(ra,Ui({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class da extends fn{constructor(t){super();const e=In(t,!0);!function(t){-1!==Fn(t,_i)&&1!==Fn(t,Ti)||fr()}(e),this[rr]=e}static from(t){if(t instanceof da)return new da(t.epochNanoseconds);const e=So(String(t)),n=e.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new da(or(Mr(e,1)).sub(n))}static fromEpochSeconds(t){return new da(In(t).mult(1e9))}static fromEpochMilliseconds(t){return new da(In(t).mult(1e6))}static fromEpochMicroseconds(t){return new da(t*BigInt(1e3))}static fromEpochNanoseconds(t){return new da(t)}static compare(t,e){return $r(pn(da,t),pn(da,e))}add(t){return new da(oo(this[rr],pn(vs,t)))}subtract(t){return new da(oo(this[rr],Rn(pn(vs,t))))}until(t,e){return ua(this,pn(da,t),e)}since(t,e){return ua(pn(da,t),this,e)}round(t){const e=un(t,0,5,!0);return new da(function(t,e){const[n,r]=function(t){const e=ar(t);return[ir(e.isoYear,e.isoMonth,e.isoDay),qn(e)]}(t),o=Ni(r,e);return n.add(o)}(this[rr],e))}equals(t){return!$r(this,pn(da,t))}toString(t){const e=Ge(t).timeZone;return this.toZonedDateTimeISO(null!=e?e:"UTC").toString({...t,offset:void 0===e?"never":"auto",timeZoneName:"never"})+(void 0===e?"Z":"")}toZonedDateTimeISO(t){return new os(this.epochNanoseconds,t)}toZonedDateTime(t){if(!Ke(t))throw new TypeError("Must specify options");if(void 0===t.calendar)throw new TypeError("Must specify a calendar");if(void 0===t.timeZone)throw new TypeError("Must specify a timeZone");return new os(this.epochNanoseconds,t.timeZone,t.calendar)}}function ua(t,e,n){const r=dn(n,3,0,0,5);return ys(function(t,e,n){return Gn(An(e.sub(t),Ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(t[rr],e[rr],r))}Jr(da,"Instant"),Vr(da),ji(da,Pi({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const ha=Symbol(),pa=Symbol(),ma=Symbol();class fa extends Intl.DateTimeFormat{constructor(t,e){const n=Zo(t),r=function(t){const e={};for(const n in t){let r=t[n];Ke(r)&&(r=r.toString()),e[n]=r}return e}(e||{});super(n,r),this[ha]=n,this[pa]=r,this[ma]=new Map}format(t){const e=va(this,t);return e[0]===this?super.format(e[1]):e[0].format(e[1])}formatToParts(t){return super.formatToParts.call(...va(this,t))}formatRange(t,e){return super.formatRange.call(...ya(this,t,e))}formatRangeToParts(t,e){return super.formatRangeToParts.call(...ya(this,t,e))}}const ga=fa;function va(t,e){const n=Bi(e);if(n){const r=ba(t,n);return[r.buildFormat(e),r.buildEpochMilli(e)]}return[t,e]}function ya(t,e,n){const r=Bi(e);if(r!==Bi(n))throw new TypeError("Mismatch of types");if(r){const o=ba(t,r);return[o.buildFormat(e,n),new Date(o.buildEpochMilli(e)),new Date(o.buildEpochMilli(n))]}return[t,e,n]}function ba(t,e){const n=t[ma];let r=n.get(e);return r||(r=function(t){const e={};return{buildFormat:function(n,r){const o=t.buildKey(n,r),i=o.join("|");return e[i]||(e[i]=t.buildFormat(...o))},buildEpochMilli:t.buildEpochMilli}}(e(t[ha],t[pa])),n.set(e,r)),r}const wa={zonedDateTimeISO:function(t){return is($a("iso8601",t))},zonedDateTime:function(t,e){return is($a(t,e))},plainDateTimeISO:function(t){return Ss($a("iso8601",t))},plainDateTime:function(t,e){return Ss($a(t,e))},plainDateISO:function(t){return oa($a("iso8601",t))},plainDate:function(t,e){return oa($a(t,e))},plainTimeISO:function(t){return Gi($a("iso8601",t))},instant:function(){return new da(Ca())},timeZone:Sa};function Sa(){return new ei((new Vo).resolvedOptions().timeZone)}function $a(t,e=Sa()){const n=pn(ei,e);return{...ss(Ca(),n)[0],timeZone:n,calendar:pn(Ws,t)}}function Ca(){return In(Date.now()).mult(1e6)}Jr(wa,"Now");const Aa={PlainYearMonth:Qi,PlainMonthDay:As,PlainDate:ra,PlainTime:qi,PlainDateTime:ws,ZonedDateTime:os,Instant:da,Calendar:Ws,TimeZone:ei,Duration:vs,Now:wa,[Symbol.toStringTag]:"Temporal"};("undefined"!=typeof globalThis?globalThis:window).Intl;class Ma{static get zero(){return new Ma(0)}static fromMilliseconds(t){return new Ma(t)}static fromSeconds(t){return new Ma(t*Ma.ticksPerSecond)}static fromMinutes(t){return new Ma(t*Ma.ticksPerMinute)}static fromHours(t){return new Ma(t*Ma.ticksPerHour)}static fromDays(t){return new Ma(t*Ma.ticksPerDay)}static fromWeeks(t){return new Ma(t*Ma.ticksPerWeek)}static fromMonths(t){return new Ma(t*Ma.ticksPerMonths)}static fromYears(t){return new Ma(t*Ma.ticksPerYear)}constructor(t){this.milliseconds=t}get seconds(){return this.milliseconds/Ma.ticksPerSecond}get minutes(){return this.milliseconds/Ma.ticksPerMinute}get hours(){return this.milliseconds/Ma.ticksPerHour}get days(){return this.milliseconds/Ma.ticksPerDay}get weeks(){return this.milliseconds/Ma.ticksPerWeek}get months(){return this.milliseconds/Ma.ticksPerMonths}get years(){return this.milliseconds/Ma.ticksPerYear}valueOf(){return this.milliseconds}toString(){return this.format()}format(t){const[e,n]=Re(t),r=new Intl.RelativeTimeFormat(e,null!=n?n:{style:"long",numeric:"auto"}),o=(t,e)=>r.format(Math.sign(t)*Math.floor(Math.abs(t)),e);switch(!0){case Math.abs(this.years)>=1:return o(this.years,"years");case Math.abs(this.months)>=1:return o(this.months,"months");case Math.abs(this.weeks)>=1:return o(this.weeks,"weeks");case Math.abs(this.days)>=1:return o(this.days,"days");case Math.abs(this.hours)>=1:return o(this.hours,"hours");case Math.abs(this.minutes)>=1:return o(this.minutes,"minutes");default:return o(this.seconds,"seconds")}}}Ma.ticksPerSecond=1e3,Ma.ticksPerMinute=60*Ma.ticksPerSecond,Ma.ticksPerHour=60*Ma.ticksPerMinute,Ma.ticksPerDay=24*Ma.ticksPerHour,Ma.ticksPerWeek=7*Ma.ticksPerDay,Ma.ticksPerMonths=30*Ma.ticksPerDay,Ma.ticksPerYear=365*Ma.ticksPerDay,globalThis.TimeSpan=Ma;class Da extends Date{static getWeekDayNames(t=Ie.currentLanguage){return new Array(7).fill((new Da).weekRange.start).map(((e,n)=>e.addDays(n).format({language:t,weekday:"long"})))}static fromEpochNanoseconds(t){return new Da(Number(t/BigInt(1e6)))}get temporalInstant(){var t;return null!==(t=this._temporalInstant)&&void 0!==t?t:this._temporalInstant=new Aa.Instant(BigInt(1e6*this.valueOf()))}get zonedDateTime(){var t;return null!==(t=this._zonedDateTime)&&void 0!==t?t:this._zonedDateTime=this.temporalInstant.toZonedDateTime({calendar:Intl.DateTimeFormat().resolvedOptions().calendar,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone})}equals(t){const e=t instanceof Da?t.temporalInstant:t;return this.temporalInstant.equals(e)}isBefore(t){return this.temporalInstant.epochNanoseconds<t.temporalInstant.epochNanoseconds}isAfter(t){return this.temporalInstant.epochNanoseconds>t.temporalInstant.epochNanoseconds}since(t=new Da){const e=t instanceof Da?t.temporalInstant:t,n=this.temporalInstant.since(e,{largestUnit:"milliseconds"}).milliseconds;return new Ma(n)}until(t=new Da){const e=t instanceof Da?t.temporalInstant:t,n=this.temporalInstant.until(e,{largestUnit:"milliseconds"}).milliseconds;return new Ma(n)}add(...t){return Da.fromEpochNanoseconds(this.zonedDateTime.add(...t).epochNanoseconds)}subtract(...t){return Da.fromEpochNanoseconds(this.zonedDateTime.subtract(...t).epochNanoseconds)}round(...t){return Da.fromEpochNanoseconds(this.zonedDateTime.round(...t).epochNanoseconds)}get day(){return this.getDate()}addDays(t){return this.add({days:t})}get dayOfWeek(){return this.zonedDateTime.dayOfWeek}get weekOfYear(){return this.zonedDateTime.weekOfYear}get weekRange(){const t=this.addDays(1-this.zonedDateTime.dayOfWeek),e=t.addDays(this.zonedDateTime.daysInWeek-1);return new DateTimeRange(t,e)}get weekStart(){return this.weekRange.start}get weekEnd(){return this.weekRange.end}addWeeks(t){return this.add({weeks:t})}static get monthNames(){return new Array(12).fill((new Da).yearStart).map(((t,e)=>t.addMonths(e).format({month:"long"})))}get month(){return this.getMonth()}get localMonth(){return Number(new Intl.DateTimeFormat(Ie.currentLanguage,{month:"numeric",numberingSystem:"latn"}).format(this))}get monthName(){return Da.monthNames[this.month]}get monthRange(){const t=new Da(this.year,this.month,1),e=Number(new Intl.DateTimeFormat(Ie.currentLanguage,{day:"numeric",numberingSystem:"latn"}).format(t))-1,n=t.addDays(-e),r=n.addMonths(1).addDays(-1);return new DateTimeRange(n,r)}get monthStart(){return this.monthRange.start}get monthEnd(){return this.monthRange.end}addMonths(t){return this.add({months:t})}addYears(t){return this.add({years:t})}get year(){return this.getFullYear()}get yearStart(){return new Da(this.year,0,1)}get yearEnd(){return new Da(this.year+1,0,1).addDays(-1)}get yearNames(){return new Array(12).fill(void 0).map(((t,e)=>new Date(Date.UTC(this.year,e,1,0,0,0)).format({year:"numeric",numberingSystem:"latn"})))}get yearName(){return this.yearNames[this.month]}}Da.isoRegularExpression=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/,globalThis.DateTime=Da;class Ta{static parse(t){const e=new Set(["–","–","~",Ta.getUntilDelimiter()]),[n,r]=t.split(new RegExp(`[${[...e].join("")}]+`));return new Ta(n?new Date(n):void 0,r?new Date(r):void 0)}static getUntilDelimiter(t=Ie.currentLanguage){var e;return null===(e=Intl.DateTimeFormat(t).formatRangeToParts(new Date("2010-01-01T00:00:00.000Z"),new Date("2020-01-01T00:00:00.000Z")).find((t=>"shared"===t.source)))||void 0===e?void 0:e.value}static sort(t,e){return t&&e&&t>e?{start:e,end:t}:{start:t,end:e}}constructor(t,e){const n=t?new DateTime(t):void 0,r=e?new DateTime(e):void 0,{start:o,end:i}=Ta.sort(n,r);this.start=o,this.end=i}get isInfinite(){return!this.start&&!this.end}includes(t){return(!this.start||t>=this.start)&&(!this.end||t<=this.end)}equals(t){var e,n;return t.start&&(null===(e=this.start)||void 0===e?void 0:e.equals(t.start))&&this.end&&(null===(n=t.end)||void 0===n?void 0:n.equals(this.end))}toString(){return this.format()}format(t){var e,n;if(!this.start&&!this.end)return"";const[r,o]=Re(t);if(!this.end){return this.start.formatAsDate(t)+(null===(e=Ta.getUntilDelimiter(r))||void 0===e?void 0:e.trimEnd())}if(!this.start){const e=this.end;return(null===(n=Ta.getUntilDelimiter(r))||void 0===n?void 0:n.trimStart())+e.formatAsDate(t)}return Intl.DateTimeFormat(r,null!=o?o:{year:"numeric",month:"2-digit",day:"2-digit"}).formatRange(this.start,this.end)}}var _a;globalThis.DateTimeRange=Ta;let xa=_a=class extends fe{constructor(){super(...arguments),this.variant=_a.defaultVariant}static get(t){const e=_a.fontsByVariant.get(t);if(!e)throw new Error(`No font found for variant ${t}`);return e}static ensureAvailable(t){const e=_a.get(t);_a.fontUrls.add(e.url);const n=[..._a.fontUrls].map((t=>`@import '${t}';`));n.some((t=>!1===_a.fontStyleElement.innerText.includes(t)))&&(_a.fontStyleElement.innerHTML=n.join("\n"))}static get styles(){return u`:host{display:inline-grid;font-size:24px}span{font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`}get template(){return B`<span ${we({fontFamily:_a.get(this.variant).name})}>${this.icon}</span>`}};xa.defaultVariant="filled",xa.fontsByVariant=new Map([["filled",{name:"Material Icons",url:"https://fonts.googleapis.com/icon?family=Material+Icons"}],["outlined",{name:"Material Icons Outlined",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"}],["sharp",{name:"Material Icons Sharp",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Sharp"}],["rounded",{name:"Material Icons Round",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Round"}]]),xa.fontStyleElement=document.createElement("style"),xa.fontUrls=new Set,document.head.appendChild(_a.fontStyleElement),_a.ensureAvailable(_a.defaultVariant),r([Ce({updated(){_a.ensureAvailable(this.variant)}})],xa.prototype,"variant",void 0),r([Ce()],xa.prototype,"icon",void 0),xa=_a=r([me("mo-icon")],xa);const Ea=Symbol();function ka(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}let Ia=!1;const Fa=()=>{},Oa={get passive(){return Ia=!0,!1}};document.addEventListener("x",Fa,Oa),document.removeEventListener("x",Fa);class Na extends ht{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}var Pa=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();var Ra={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Ua={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Ha={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};var Ya=["touchstart","pointerdown","mousedown","keydown"],La=["touchend","pointerup","mouseup","contextmenu"],za=[],ja=function(n){function r(t){var o=n.call(this,e(e({},r.defaultAdapter),t))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(t){o.activateImpl(t)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,n),Object.defineProperty(r,"cssClasses",{get:function(){return Ra},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return Ua},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return Ha},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=r.cssClasses,o=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(i),t.layoutInternal())}))}},r.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(r.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(r.cssClasses.FG_DEACTIVATION));var e=r.cssClasses,n=e.ROOT,o=e.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(n),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},r.prototype.activate=function(t){this.activateImpl(t)},r.prototype.deactivate=function(){this.deactivateImpl()},r.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},r.prototype.setUnbounded=function(t){var e=r.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},r.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},r.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=o(Ya),i=r.next();!i.done;i=r.next()){var s=i.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},r.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=o(La),i=r.next();!i.done;i=r.next()){var s=i.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},r.prototype.deregisterRootHandlers=function(){var t,e;try{for(var n=o(Ya),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},r.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=o(La),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},r.prototype.removeCssVars=function(){var t=this,e=r.strings;Object.keys(e).forEach((function(n){0===n.indexOf("VAR_")&&t.adapter.updateCssVariable(e[n],null)}))},r.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&za.length>0&&za.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(za.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){za=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},r.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},r.prototype.animateActivation=function(){var t=this,e=r.strings,n=e.VAR_FG_TRANSLATE_START,o=e.VAR_FG_TRANSLATE_END,i=r.cssClasses,s=i.FG_DEACTIVATION,a=i.FG_ACTIVATION,c=r.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",d="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates(),h=u.startPoint,p=u.endPoint;l=h.x+"px, "+h.y+"px",d=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},r.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,n){if(!t)return{x:0,y:0};var r,o,i=e.x,s=e.y,a=i+n.left,c=s+n.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-a,o=l.changedTouches[0].pageY-c}else{var d=t;r=d.pageX-a,o=d.pageY-c}return{x:r,y:o}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},r.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=r.cssClasses.FG_DEACTIVATION,n=this.activationState,o=n.hasDeactivationUXRun,i=n.isActivated;(o||!i)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(e)}),Ha.FG_DEACTIVATION_MS))},r.prototype.rmBoundedActivationClasses=function(){var t=r.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},r.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),r.numbers.TAP_DELAY_MS)},r.prototype.deactivateImpl=function(){var t=this,n=this.activationState;if(n.isActivated){var r=e({},n);n.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(r)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(r),t.resetActivationState()})))}},r.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},r.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var e=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+r.numbers.PADDING;var n=Math.floor(e*r.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize=n-1:this.initialSize=n,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},r.prototype.updateLayoutCssVars=function(){var t=r.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,o=t.VAR_TOP,i=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(i,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},r}(Pa);const Ba=ja;class Va extends Na{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Ba}get isActive(){return ka(this.parentElement||this,":active")}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),n={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return B`<div class="mdc-ripple-surface mdc-ripple-upgraded ${te(n)}" style="${ce({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}r([wt(".mdc-ripple-surface")],Va.prototype,"mdcRoot",void 0),r([gt({type:Boolean})],Va.prototype,"primary",void 0),r([gt({type:Boolean})],Va.prototype,"accent",void 0),r([gt({type:Boolean})],Va.prototype,"unbounded",void 0),r([gt({type:Boolean})],Va.prototype,"disabled",void 0),r([gt({type:Boolean})],Va.prototype,"activated",void 0),r([gt({type:Boolean})],Va.prototype,"selected",void 0),r([gt({type:Boolean})],Va.prototype,"internalUseStateLayerCustomProperties",void 0),r([vt()],Va.prototype,"hovering",void 0),r([vt()],Va.prototype,"bgFocused",void 0),r([vt()],Va.prototype,"fgActivation",void 0),r([vt()],Va.prototype,"fgDeactivation",void 0),r([vt()],Va.prototype,"fgScale",void 0),r([vt()],Va.prototype,"fgSize",void 0),r([vt()],Va.prototype,"translateStart",void 0),r([vt()],Va.prototype,"translateEnd",void 0),r([vt()],Va.prototype,"leftPos",void 0),r([vt()],Va.prototype,"topPos",void 0);const Za=u`.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::after,.mdc-ripple-surface--primary::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--primary--activated::after,.mdc-ripple-surface--primary--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--primary--selected::after,.mdc-ripple-surface--primary--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::after,.mdc-ripple-surface--accent::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--accent--activated::after,.mdc-ripple-surface--accent--activated::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--accent--selected::after,.mdc-ripple-surface--accent--selected::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::after,.mdc-ripple-surface--internal-use-state-layer-custom-properties::before{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color,#000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-state-layer-opacity,.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-state-layer-opacity,.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity,.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`;let qa=class extends Va{};function Ga(t,e,n){if(void 0!==e)return function(t,e,n){const r=t.constructor;if(!n){const t=`__${e}`;if(!(n=r.getPropertyDescriptor(e,t)))throw new Error("@ariaProperty must be used after a @property decorator")}const o=n;let i="";if(!o.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(t.dispatchWizEvent)return n;const s={configurable:!0,enumerable:!0,set(t){if(""===i){const t=r.getPropertyOptions(e);i="string"==typeof t.attribute?t.attribute:e}this.hasAttribute(i)&&this.removeAttribute(i),o.set.call(this,t)}};return o.get&&(s.get=function(){return o.get.call(this)}),s}(t,e,n);throw new Error("@ariaProperty only supports TypeScript Decorators")}qa.styles=[Za],qa=r([mt("mwc-ripple")],qa);class Wa{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}class Ka extends ht{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new Wa((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderRipple(){return this.shouldRenderRipple?B`<mwc-ripple .disabled="${this.disabled}" unbounded></mwc-ripple>`:""}focus(){const t=this.buttonElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.buttonElement;t&&(this.rippleHandlers.endFocus(),t.blur())}render(){return B`<button class="mdc-icon-button mdc-icon-button--display-flex" aria-label="${this.ariaLabel||this.icon}" aria-haspopup="${ne(this.ariaHasPopup)}" ?disabled="${this.disabled}" @focus="${this.handleRippleFocus}" @blur="${this.handleRippleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}">${this.renderRipple()} ${this.icon?B`<i class="material-icons">${this.icon}</i>`:""} <span><slot></slot></span></button>`}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}r([gt({type:Boolean,reflect:!0})],Ka.prototype,"disabled",void 0),r([gt({type:String})],Ka.prototype,"icon",void 0),r([Ga,gt({type:String,attribute:"aria-label"})],Ka.prototype,"ariaLabel",void 0),r([Ga,gt({type:String,attribute:"aria-haspopup"})],Ka.prototype,"ariaHasPopup",void 0),r([wt("button")],Ka.prototype,"buttonElement",void 0),r([function(t){return yt({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}("mwc-ripple")],Ka.prototype,"ripple",void 0),r([vt()],Ka.prototype,"shouldRenderRipple",void 0),r([bt({passive:!0})],Ka.prototype,"handleRippleMouseDown",null),r([bt({passive:!0})],Ka.prototype,"handleRippleTouchStart",null);const Xa=u`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;font-style:normal;font-size:var(--mdc-icon-size,24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.mdc-icon-button img,.mdc-icon-button svg{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}:host{display:inline-block;outline:0}:host([disabled]){pointer-events:none}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block}:host{--mdc-ripple-color:currentcolor;-webkit-tap-highlight-color:transparent}.mdc-icon-button,:host{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size,48px);height:var(--mdc-icon-button-size,48px);padding:calc((var(--mdc-icon-button-size,48px) - var(--mdc-icon-size,24px))/ 2)}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block;width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}`;let Ja=class extends Ka{};Ja.styles=[Xa],Ja=r([mt("mwc-icon-button")],Ja);let Qa=class extends fe{constructor(){super(...arguments),this.disabled=!1,this.dense=!1}static get styles(){return u`:host{font-size:20px}:host,mwc-icon-button{display:inline-block}mwc-icon-button::part(button){padding:.4em}:host([dense]) mwc-icon-button::part(button){padding:.2em}mo-icon{font-size:inherit}`}get template(){return B`<mwc-icon-button exportparts="button" ?disabled="${this.disabled}"><slot name="icon"><mo-icon icon="${this.icon}"></mo-icon></slot></mwc-icon-button>`}};var tc;r([Ce()],Qa.prototype,"icon",void 0),r([(t,e)=>{const n=t.constructor;Ce({type:Boolean,reflect:!0,updated(t,e){var n;if(null===(n=null==tc?void 0:tc.updated)||void 0===n||n.call(this,t,e),t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),null==tc?void 0:tc.blockFocus){const e=this;t&&-1!==this.tabIndex&&(e[Ea]=this.tabIndex,this.tabIndex=-1),t||void 0===e[Ea]||(this.tabIndex=e[Ea],e[Ea]=void 0)}}})(t,e),n.elementStyles.push(u`:host([disabled]){pointer-events:none}`)}],Qa.prototype,"disabled",void 0),r([Ce({type:Boolean,reflect:!0})],Qa.prototype,"dense",void 0),Qa=r([me("mo-icon-button")],Qa),Ja.elementStyles.push(u`span{display:inline-grid!important}i{display:none!important}button{width:unset!important;height:unset!important;font-size:inherit!important}::slotted(*){width:unset!important;height:unset!important}`),Ja.addInitializer((t=>{t.updateComplete.then((()=>t.buttonElement.part.add("button")))}));class ec extends ge{constructor(t,e){var n,r,o,i;super(t),this.host=t,this.options=e,this._hover=!1,this.anchorPointerIn=new De(this.host,{type:"pointerenter",target:null!==(r=null===(n=this.options)||void 0===n?void 0:n.target)&&void 0!==r?r:this.host,listener:()=>this.hover=!0}),this.anchorPointerOut=new De(this.host,{type:"pointerleave",target:null!==(i=null===(o=this.options)||void 0===o?void 0:o.target)&&void 0!==i?i:this.host,listener:()=>this.hover=!1})}get hover(){return this._hover}set hover(t){var e,n;t!==this._hover&&(this._hover=t,null===(n=null===(e=this.options)||void 0===e?void 0:e.handleHoverChange)||void 0===n||n.call(e,t),this.host.requestUpdate())}}class nc extends ge{constructor(t,e){var n,r,o,i;super(t),this.host=t,this.options=e,this.bubbled=!1,this._focused=!1,this.anchorFocusIn=new De(this.host,{type:"focusin",target:null!==(r=null===(n=this.options)||void 0===n?void 0:n.target)&&void 0!==r?r:this.host,listener:t=>{this.bubbled=t.target!==this.host,this.focused=!0}}),this.anchorFocusOut=new De(this.host,{type:"focusout",target:null!==(i=null===(o=this.options)||void 0===o?void 0:o.target)&&void 0!==i?i:this.host,listener:t=>{this.bubbled=t.target!==this.host,this.focused=!1}})}get focused(){return this._focused}set focused(t){var e,n;t!==this._focused&&(this._focused=t,null===(n=null===(e=this.options)||void 0===e?void 0:e.handleChange)||void 0===n||n.call(e,t,this.bubbled),this.host.requestUpdate())}}function rc(){return this.anchor}class oc extends ge{constructor(t){super(t),this.host=t,this.anchorFocusController=new nc(this.host,{target:rc,handleChange:()=>this.update()}),this.pointerController=new ec(this.host),this.anchorPointerController=new ec(this.host,{target:rc,handleHoverChange:()=>this.update()}),this.slotChangeHandler=new De(this.host,"slotchange",(()=>this.updatePosition()))}update(){this.openIfApplicable(),this.updatePosition()}openIfApplicable(){var t,e,n,r;const o=null!==(e=null===(t=this.host)||void 0===t?void 0:t.openOnFocus)&&void 0!==e&&e,i=null!==(r=null===(n=this.host)||void 0===n?void 0:n.openOnHover)&&void 0!==r&&r;if(!o&&!i)return;const s=i&&(this.pointerController.hover||this.anchorPointerController.hover)||o&&this.anchorFocusController.focused;this.host.open!==s&&this.host.setOpen(s)}updatePosition(){var t,e,n,r,o,i;const s=this.host.anchor.getBoundingClientRect(),a=this.host.getBoundingClientRect(),c=null!==(n=null===(e=null===(t=this.host)||void 0===t?void 0:t.getLeftPositionOffset)||void 0===e?void 0:e.call(t,s,a))&&void 0!==n?n:0,l=null!==(i=null===(o=null===(r=this.host)||void 0===r?void 0:r.getTopPositionOffset)||void 0===o?void 0:o.call(r,s,a))&&void 0!==i?i:0;let d=0,u=0;switch(this.host.placement){case"top":d=s.left+c,u=s.top-a.height;break;case"bottom":d=s.left+c,u=s.top+s.height;break;case"left":d=s.left-a.width,u=s.top+l;break;case"right":d=s.left+s.width,u=s.top+l}var h;this.host.style.left=`${h=d,Math.max(0,Math.min(h,window.innerWidth-a.width))}px`,this.host.style.top=`${(t=>Math.max(0,Math.min(t,window.innerHeight-a.height)))(u)}px`}}let ic=class extends fe{constructor(){super(...arguments),this.placement="bottom",this.open=!1,this.popoverController=new oc(this)}setOpen(t){this.open=t,this.openChange.dispatch(t)}static get styles(){return u`:host{position:fixed;box-shadow:var(--mo-shadow,0 2px 4px rgba(0,0,0,.2));width:max-content;opacity:0;z-index:99}:host(:not([open])){pointer-events:none}:host([open]){opacity:1}`}get template(){return B`<slot></slot>`}};var sc;r([xe()],ic.prototype,"openChange",void 0),r([Ce({type:Object})],ic.prototype,"anchor",void 0),r([Ce({reflect:!0})],ic.prototype,"placement",void 0),r([Ce({type:Boolean,reflect:!0})],ic.prototype,"open",void 0),r([Ce({type:Boolean})],ic.prototype,"openOnHover",void 0),r([Ce({type:Boolean})],ic.prototype,"openOnFocus",void 0),r([Ce({type:Object})],ic.prototype,"getLeftPositionOffset",void 0),r([Ce({type:Object})],ic.prototype,"getTopPositionOffset",void 0),ic=r([me("mo-popover")],ic);let ac=sc=class{static getProportion(t){return Number(t.replace(sc.regex,"$1")||1)}handles(t,[e,n]){return sc.supportedKeys.has(e)&&sc.regex.test(n)}apply(t,[,e]){const n=sc.getProportion(e);t.style.flexGrow=String(n)}};var cc;ac.supportedKeys=new Set(["width","height"]),ac.regex=/^\s*(0|[1-9][0-9]*)?\s*\*\s*$/,ac=sc=r([ye()],ac);let lc=cc=class extends fe{get direction(){var t;return(null===(t=[...cc.flexDirectionByDirections].find((([,t])=>this.style.flexDirection===t)))||void 0===t?void 0:t[0])||"vertical"}set direction(t){this.style.flexDirection=cc.flexDirectionByDirections.get(t)||"column"}get wrap(){return this.style.flexWrap}set wrap(t){this.style.flexWrap=t}get gap(){return this.style.gap}set gap(t){this.style.gap=t}get justifyItems(){return this.style.justifyItems}set justifyItems(t){this.style.justifyItems=t}get justifyContent(){return this.style.justifyContent}set justifyContent(t){this.style.justifyContent=t}get alignItems(){return this.style.alignItems}set alignItems(t){this.style.alignItems=t}get alignContent(){return this.style.alignContent}set alignContent(t){this.style.alignContent=t}static get styles(){return u`:host{display:flex;flex-direction:column;flex-wrap:nowrap}`}get template(){return B`<slot></slot>`}};lc.flexDirectionByDirections=new Map([["horizontal","row"],["horizontal-reversed","row-reverse"],["vertical","column"],["vertical-reversed","column-reverse"]]),r([Ce()],lc.prototype,"direction",null),r([Ce()],lc.prototype,"wrap",null),r([Ce()],lc.prototype,"gap",null),r([Ce()],lc.prototype,"justifyItems",null),r([Ce()],lc.prototype,"justifyContent",null),r([Ce()],lc.prototype,"alignItems",null),r([Ce()],lc.prototype,"alignContent",null),lc=cc=r([me("mo-flex")],lc);class dc extends ge{constructor(t,e){super(t),this.host=t,this.slotChangeCallback=e,this.mutationObserver=new MutationObserver(this.handleMutation.bind(this)).observe(this.host,{childList:!0,subtree:!0}),this.handleChange=()=>{var t;this.host.requestUpdate(),null===(t=this.slotChangeCallback)||void 0===t||t.call(this)}}getAssignedNodes(t){var e;const n=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(t?`slot[name="${t}"]`:"slot:not([name])");return n?this.extractNodesFromSlot(n):this.extractNodesFromChildren(t)}hasAssignedNodes(t){return this.getAssignedNodes(t).length>0}hasAssignedContent(t){return this.getAssignedNodes(t).some((t=>{var e;return t.nodeType===Node.TEXT_NODE&&(null===(e=t.textContent)||void 0===e?void 0:e.trim())||t.nodeType===Node.ELEMENT_NODE}))}getAssignedElements(t){return this.getAssignedNodes(t).filter((t=>t instanceof Element))}hasAssignedElements(t){return this.getAssignedElements(t).length>0}extractNodesFromSlot(t){return t.assignedNodes().flatMap((t=>t instanceof HTMLSlotElement?this.extractNodesFromSlot(t):[t]))}extractNodesFromChildren(t){return[...this.host.childNodes].filter((t=>{var e;return t instanceof Element||t instanceof Text&&!!(null===(e=t.textContent)||void 0===e?void 0:e.trim())})).filter((e=>e instanceof Element?e.slot===t:!t)).flatMap((t=>t instanceof HTMLSlotElement?t.assignedNodes():[t]))}hostConnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("slotchange",this.handleChange)}hostDisconnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("slotchange",this.handleChange)}handleMutation(t){t.some((t=>"childList"===t.type))&&this.handleChange()}}class uc extends fe{constructor(){super(...arguments),this.label="",this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.focused=!1,this.slotController=new dc(this),this.focusController=new nc(this,{handleChange:t=>{this.focused=t,t?this.handleFocus():this.handleBlur()}})}firstUpdated(){this.validate()}handleFocus(){}handleBlur(){}handleInput(t,e){null==e||e.stopPropagation(),this.inputValue=t,this.input.dispatch(this.inputValue),this.validate()}handleChange(t,e){null==e||e.stopPropagation(),this.handleInput(t),this.value=t,this.change.dispatch(this.value)}get isPopulated(){return void 0!==this.inputValue}get isActive(){return this.isPopulated||this.focused}get isDense(){return!1}get template(){return B`<mo-field label="${this.label}" ?populated="${this.isPopulated}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?dense="${this.isDense}" ?invalid="${this.invalid}" ?active="${this.isActive}">${this.startSlotTemplate} ${this.inputTemplate} ${this.endSlotTemplate}</mo-field>`}get startSlotTemplate(){return this.slotController.hasAssignedElements("start")?B`<slot slot="start" name="start"></slot>`:pe}get endSlotTemplate(){return this.slotController.hasAssignedElements("end")?B`<slot slot="end" name="end"></slot>`:pe}async validate(){const t=await this.checkValidity();this.invalid=!t,this.validityChange.dispatch(t)}}r([xe()],uc.prototype,"change",void 0),r([xe()],uc.prototype,"input",void 0),r([xe()],uc.prototype,"validityChange",void 0),r([Ce({type:Object})],uc.prototype,"value",void 0),r([Ce()],uc.prototype,"label",void 0),r([Ce({type:Boolean})],uc.prototype,"readonly",void 0),r([Ce({type:Boolean})],uc.prototype,"disabled",void 0),r([Ce({type:Boolean})],uc.prototype,"required",void 0),r([Ce({type:Boolean})],uc.prototype,"invalid",void 0),r([Ae()],uc.prototype,"focused",void 0),r([Ae()],uc.prototype,"inputValue",void 0);class hc extends uc{constructor(){super(...arguments),this.selectOnFocus=!1,this.dense=!1}get isPopulated(){return!!this.inputStringValue}get isDense(){return this.dense}update(t){t.has("value")&&(this.inputStringValue=this.valueToInputValue(this.value)),super.update(t)}handleInput(t,e){this.inputStringValue=this.inputElement.value,super.handleInput(t,e)}handleChange(t,e){super.handleChange(t,e),this.inputStringValue=this.valueToInputValue(t)}handleFocus(){super.handleFocus(),this.selectOnFocus&&this.select()}blur(){this.inputElement.blur()}focus(){this.inputElement.focus()}select(){this.inputElement.select()}setSelectionRange(...t){this.inputElement.setSelectionRange(...t)}setRangeText(...t){this.inputElement.setRangeText(...t)}setCustomValidity(t){this.inputElement.setCustomValidity(t)}checkValidity(){return Promise.resolve(this.inputElement.checkValidity())}reportValidity(){this.inputElement.reportValidity()}}r([Ce({type:Boolean,reflect:!0})],hc.prototype,"selectOnFocus",void 0),r([Ce({type:Boolean})],hc.prototype,"dense",void 0),r([Ae()],hc.prototype,"inputStringValue",void 0),r([ve("[part=input]")],hc.prototype,"inputElement",void 0);var pc=n(969),mc=n.n(pc);class fc{constructor(t){var e;this.color=t instanceof Array?t:null===(e=mc().get(t))||void 0===e?void 0:e.value}get r(){return this.color[0]}get g(){return this.color[1]}get b(){return this.color[2]}get a(){return this.color[3]}get hex(){return mc().to.hex(this.color)}get rgb(){return mc().to.rgb(this.color)}get rgbPercent(){return mc().to.rgb.percent(this.color)}get hsl(){return mc().to.hsl(this.color)}get hsv(){return mc().to.hwb(this.color)}get keyword(){return mc().to.keyword(this.color)}toString(){return this.hex}valueOf(){return this.hex}}class gc{constructor(...t){this.colors=new Array,this.colors=t.map((t=>t instanceof fc?t:new fc(t)))}get medianColor(){const t=this.colors[Math.floor(this.colors.length/2)];if(!t)throw new Error("No colors found");return t}}class vc{static inject(t,e=document.createElement("style")){return e.innerHTML=t.cssText,document.head.appendChild(e),e}}class yc{}yc.background=new class extends Ee{constructor(){super("Theme.Background","system"),window.matchMedia("(prefers-color-scheme: dark)").onchange=()=>this.updateAttributeValue(),window.matchMedia("(prefers-color-scheme: light)").onchange=()=>this.updateAttributeValue(),this.updateAttributeValue(),this.changed.subscribe((()=>this.updateAttributeValue()))}get calculatedValue(){return"system"!==this.value?this.value:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}updateAttributeValue(){document.documentElement.setAttribute("data-theme",this.calculatedValue)}},yc.accent=new class extends Ee{constructor(){super("Theme.Accent",new fc("rgb(0, 119, 200)")),this.parseColor=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"Color"===t.$type&&"color"in t)return new fc(t.color)},this.parseColorSet=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"ColorSet"===t.$type&&"colors"in t)return new gc(...t.colors.map((t=>t.color)))},this.injectCss()}get value(){let t=super.value;return t=this.parseColor(t)||this.parseColorSet(t),t||window.localStorage.removeItem(this.name),t||this.defaultValue}set value(t){t.$type=t instanceof gc?"ColorSet":"Color",super.value=t,this.injectCss()}get medianColor(){return this.value instanceof gc?this.value.medianColor:this.value}injectCss(){const t=this.value,e=this.medianColor,n=t instanceof gc?t.colors[0]:t,r=t instanceof gc?t.colors[1]:t,o=t instanceof gc?t.colors[2]:t;this.styleElement=vc.inject(u`:root{--mo-color-accent-base-r:${d(null==e?void 0:e.r)}--mo-color-accent-base-g:${d(null==e?void 0:e.g)}--mo-color-accent-base-b:${d(null==e?void 0:e.b)}--mo-color-accent-gradient-1:${d(null==n?void 0:n.rgb)}--mo-color-accent-gradient-2:${d(null==r?void 0:r.rgb)}--mo-color-accent-gradient-3:${d(null==o?void 0:o.rgb)}}`,this.styleElement)}},vc.inject(u`@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);*{font-weight:400;box-sizing:border-box}html{width:100%;height:100%;font-family:var(--mo-font-family);background-color:var(--mo-color-background);color:var(--mo-color-foreground)}body{height:100%;width:100%;overflow:auto}:root[data-theme=light]{color-scheme:light;--mo-color-background-base:255,255,255;--mo-color-foreground-base:0,0,0;--mo-color-background:rgb(220, 221, 225);--mo-color-foreground:black;--mo-color-foreground-transparent:rgb(48, 48, 48);--mo-color-surface-base:255,255,255;--mo-color-gray-base:121,121,121;--mo-shadow-base:95,81,78}:root[data-theme=dark]{color-scheme:dark;--mo-color-background-base:0,0,0;--mo-color-foreground-base:255,255,255;--mo-color-background:rgb(16, 17, 20);--mo-color-surface-base:42,43,47;--mo-color-foreground:white;--mo-color-foreground-transparent:rgb(220, 220, 220);--mo-color-gray-base:165,165,165;--mo-shadow-base:0,1,3}:root{--mo-font-family:Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;--mo-border-radius:4px;--mo-shadow:rgba(var(--mo-shadow-base), .4) 0 1px 2px 0,rgba(var(--mo-shadow-base), .2) 0 1px 3px 1px;--mo-shadow-deep:0px 5px 5px -3px rgba(var(--mo-shadow-base), 0.2),0px 8px 10px 1px rgba(var(--mo-shadow-base), 0.14),0px 3px 14px 2px rgba(var(--mo-shadow-base), 0.12);--mo-color-on-surface:rgba(var(--mo-color-foreground-base), 0.87);--mo-color-gray:rgb(var(--mo-color-gray-base));--mo-color-gray-transparent:rgba(var(--mo-color-gray-base), 0.5);--mo-color-transparent-gray-alpha:.04;--mo-color-transparent-gray-1:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 1));--mo-color-transparent-gray-2:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 2));--mo-color-transparent-gray-3:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 3));--mo-color-transparent-gray:var(--mo-color-transparent-gray-1);--mo-color-green-base:93,170,96;--mo-color-green:rgb(var(--mo-color-green-base));--mo-color-yellow-base:232,152,35;--mo-color-yellow:rgb(var(--mo-color-yellow-base));--mo-color-red-base:221,61,49;--mo-color-red:rgb(var(--mo-color-red-base));--mo-color-blue-base:0,119,200;--mo-color-accessible-base-value:calc(((((var(--mo-color-accent-base-r) * 299) + (var(--mo-color-accent-base-g) * 587) + (var(--mo-color-accent-base-b) * 114)) / 1000) - 128) * -1000);--mo-color-accessible-base:var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value);--mo-color-accessible:rgb(var(--mo-color-accessible-base));--mo-color-accent-base:var(--mo-color-accent-base-r),var(--mo-color-accent-base-g),var(--mo-color-accent-base-b);--mo-color-accent:rgb(var(--mo-color-accent-base));--mo-color-accent-transparent:rgba(var(--mo-color-accent-base), 0.25);--mo-color-accent-gradient:linear-gradient(135deg, rgb(var(--mo-color-accent-gradient-1)), rgb(var(--mo-color-accent-gradient-2)), rgb(var(--mo-color-accent-gradient-3)));--mo-color-accent-gradient-transparent:linear-gradient(135deg, rgba(var(--mo-color-accent-gradient-1), 0.25), rgba(var(--mo-color-accent-gradient-2), 0.25), rgba(var(--mo-color-accent-gradient-3), 0.25));--mo-color-surface:rgb(var(--mo-color-surface-base))}`);class bc extends ge{constructor(t){super(t),this.host=t,this.handleChange=()=>{this.setAttribute(),this.host.requestUpdate()}}hostConnected(){this.setAttribute(),yc.accent.changed.subscribe(this.handleChange),yc.background.changed.subscribe(this.handleChange)}hostDisconnected(){yc.accent.changed.unsubscribe(this.handleChange),yc.background.changed.unsubscribe(this.handleChange)}setAttribute(){this.host.setAttribute("data-theme",yc.background.calculatedValue)}}let wc=class extends fe{constructor(){super(...arguments),this.label="",this.readonly=!1,this.disabled=!1,this.required=!1,this.dense=!1,this.populated=!1,this.invalid=!1,this.active=!1,this.slotController=new dc(this),this.themeController=new bc(this)}static get styles(){return u`:host{--mo-field-label-scale-value-on-focus:0.75;--mo-field-label-scale-on-focus:scale(var(--mo-field-label-scale-value-on-focus));--mo-field-label-translate-value-on-focus:-50%;--mo-field-label-translate-on-focus:translateY(var(--mo-field-label-translate-value-on-focus));--mo-field-label-transform-on-focus:var(--mo-field-label-translate-on-focus) var(--mo-field-label-scale-on-focus);position:relative;overflow:hidden;display:flex;gap:4px;min-width:0;border-start-start-radius:var(--mo-field-border-start-start-radius,var(--mo-border-radius,4px));border-start-end-radius:var(--mo-field-border-start-end-radius,var(--mo-border-radius,4px));box-sizing:border-box;background:var(--mo-field-background-default);gap:6px;height:40px;justify-content:center;align-items:center}:host([data-theme=light]){--mo-field-background-default:rgba(var(--mo-color-foreground-base), 0.09)}:host([data-theme=dark]){--mo-field-background-default:rgba(var(--mo-color-background-base), 0.5)}:host([active]){outline:0}:host([dense]){height:32px;--mo-field-label-scale-value-on-focus:1}:host([disabled]){pointer-events:none;opacity:.5}div{position:relative;flex:1 1 auto;height:100%}div:first-child{padding-inline-start:10px}slot[name=start]:first-child{padding-inline-start:8px}div:last-child{padding-inline-end:var(--mo-field-input-padding-inline-end,10px)}slot[name=end]:last-child{padding-inline-end:8px}slot:not([name])::slotted(*){border:0;width:100%;font-family:inherit;outline:0;padding:.8rem 0 0 0;height:calc(100% - .8rem);color:var(--mo-color-foreground);background-color:transparent;text-align:inherit}:host([dense]) slot:not([name])::slotted(*){padding:0;height:100%}${this.labelStyles}${this.caretStyles}${this.indicatorLineStyles}slot{color:var(--mo-color-gray);display:flex;height:100%;justify-content:center;align-items:center}`}static get labelStyles(){return u`span{position:absolute;top:min(50%,30px);transform:var(--mo-field-label-translate-on-focus);color:var(--mo-color-gray);transition:.1s ease-out;transform-origin:var(--mo-field-label-transform-origin);pointer-events:none;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;max-width:100%}:host([dense][populated]) span{visibility:hidden}:host([active]) span,:host([populated]) span{top:14px;transform:var(--mo-field-label-transform-on-focus)}:host([active]) span{color:var(--mo-color-accent)}:host([invalid]) span{color:var(--mo-color-red)}`}static get indicatorLineStyles(){return u`:host{border-bottom:1px solid var(--mo-color-gray-transparent)}:host:after{--mo-field-initial-outline-width:10px;content:'';position:absolute;bottom:-1px;height:2px;inset-inline-start:calc(calc(100% - var(--mo-field-initial-outline-width))/ 2);width:var(--mo-field-initial-outline-width);visibility:hidden;background-color:var(--mo-color-accent);transition:.2s ease all}:host(:focus),:host([active]){border-bottom:1px solid var(--mo-color-accent)}:host([active]):after{visibility:visible;width:100%;inset-inline-start:0}:host([invalid]){border-bottom:1px solid var(--mo-color-red)}:host([invalid]):after{background-color:var(--mo-color-red)}`}static get caretStyles(){return u`::slotted(*){caret-color:var(--mo-color-accent)}:host([readonly]) ::slotted(*){caret-color:transparent}:host([invalid]) ::slotted(*){caret-color:var(--mo-color-red)}`}get template(){return this.style.setProperty("--mo-field-label-transform-origin","rtl"===getComputedStyle(this).direction?"right top":"left top"),B`${this.slotController.hasAssignedContent("start")?B`<slot name="start"></slot>`:pe}<div part="container"><span>${this.label} ${this.required?"*":""}</span><slot></slot></div>${this.slotController.hasAssignedContent("end")?B`<slot name="end"></slot>`:pe}`}};r([Ce({reflect:!0})],wc.prototype,"label",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"readonly",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"disabled",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"required",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"dense",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"populated",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"invalid",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"active",void 0),wc=r([me("mo-field")],wc);let Sc=class extends hc{constructor(){super(...arguments),this.type="text",this.inputType="text"}valueToInputValue(t){return null!=t?t:""}get inputTemplate(){return B`<input part="input" inputmode="${this.inputType}" type="${this.type}" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" minlength="${ne(this.minLength)}" maxlength="${ne(this.maxLength)}" pattern="${ne(this.pattern)}" autocomplete="${ne(this.autoComplete)}" @input="${t=>this.handleInput(this.inputElement.value,t)}" @change="${t=>this.handleChange(this.inputElement.value,t)}">`}get endSlotTemplate(){return B`${this.lengthTemplate} ${super.endSlotTemplate}`}get lengthTemplate(){var t,e;if(!this.maxLength)return pe;const n=this.maxLength-(null!==(e=null===(t=this.inputValue)||void 0===t?void 0:t.length)&&void 0!==e?e:0);return B`<span slot="end" ${we({color:"var(--mo-color-gray-transparent)"})}>${n}</span>`}};r([Ce()],Sc.prototype,"value",void 0),r([Ce({type:Number})],Sc.prototype,"minLength",void 0),r([Ce({type:Number})],Sc.prototype,"maxLength",void 0),r([Ce()],Sc.prototype,"pattern",void 0),r([Ce()],Sc.prototype,"autoComplete",void 0),Sc=r([me("mo-field-text")],Sc);let $c=class extends Sc{constructor(){super(...arguments),this.type="password",this.autoComplete="current-password"}get lengthTemplate(){return pe}};r([Ce()],$c.prototype,"autoComplete",void 0),$c=r([me("mo-field-password")],$c);let Cc=class extends Sc{constructor(){super(...arguments),this.inputType="search"}get startSlotTemplate(){return B`<mo-icon slot="start" icon="search" @click="${()=>this.focus()}" ${we({color:this.focusController.focused?"var(--mo-color-accent)":"var(--mo-color-gray)"})}></mo-icon>${super.startSlotTemplate}`}get endSlotTemplate(){return B`<mo-icon-button slot="end" icon="cancel" dense ${we({color:"var(--mo-color-gray)",visibility:this.value?"visible":"hidden"})} @click="${()=>this.clear()}"></mo-icon-button>${super.endSlotTemplate}`}clear(){this.value&&(this.handleInput(""),this.handleChange(""))}};Cc=r([me("mo-field-search")],Cc);let Ac=class extends hc{valueToInputValue(t){return null!=t?t:""}get inputTemplate(){return B`<input part="input" type="email" inputmode="email" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" @input="${t=>this.handleInput(this.inputElement.value,t)}" @change="${t=>this.handleChange(this.inputElement.value,t)}">`}};r([Ce()],Ac.prototype,"value",void 0),Ac=r([me("mo-field-email")],Ac);let Mc=class extends hc{valueToInputValue(t){return null!=t?t:""}static get styles(){return u`mo-field{height:auto;transition:none;--mo-field-input-padding-inline-end:0px;align-items:baseline}textarea{margin-top:1.15rem;line-height:1.5rem;font-size:.875rem;width:100%!important;padding:0}`}get inputTemplate(){return B`<textarea part="input" inputmode="text" type="text" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" minlength="${ne(this.minLength)}" maxlength="${ne(this.maxLength)}" @input="${t=>this.handleInput(this.inputElement.value,t)}" @change="${t=>this.handleChange(this.inputElement.value,t)}"></textarea>`}get endSlotTemplate(){return B`${this.lengthTemplate} ${super.endSlotTemplate}`}get lengthTemplate(){var t,e;if(!this.maxLength)return pe;const n=this.maxLength-(null!==(e=null===(t=this.inputValue)||void 0===t?void 0:t.length)&&void 0!==e?e:0);return B`<span slot="end" ${we({color:"var(--mo-color-gray-transparent)"})}>${n}</span>`}};r([Ce()],Mc.prototype,"value",void 0),r([Ce({type:Number})],Mc.prototype,"minLength",void 0),r([Ce({type:Number})],Mc.prototype,"maxLength",void 0),Mc=r([me("mo-field-text-area")],Mc);let Dc=class extends Sc{constructor(){super(...arguments),this.inputType="time"}get startSlotTemplate(){return B`<mo-icon slot="start" @click="${()=>this.focus()}" icon="schedule" ${we({color:"var(--mo-color-gray)"})}></mo-icon>${super.startSlotTemplate}`}};Dc=r([me("mo-field-time")],Dc);class Tc{constructor(t){this.calendar=t}get styles(){return u``}select(t){this.calendar.value=t,this.calendar.change.dispatch(t)}}var _c;"group"in Array.prototype==!1&&(Array.prototype.group=function(t){return this.reduce(((e,n)=>{const r=t(n);return(e[r]||(e[r]=[])).push(n),e}),{})}),"groupToMap"in Array.prototype==!1&&(Array.prototype.groupToMap=function(t){return new Map(Object.entries(this.group(t)))});let xc=_c=class extends fe{constructor(){super(...arguments),this.includeWeekNumbers=!1,this.navigatingDate=new DateTime,this.yearSelection=!1,this.today=(new DateTime).round({smallestUnit:"day",roundingMode:"floor"}),this.years=new Array(200).fill(void 0).map(((t,e)=>_c.startingYearDate.addYears(e)))}static get styles(){return u`:host{--mo-calendar-max-width:325px;--mo-calendar-min-height:230px;--mo-calendar-day-size:36px;--mo-calendar-week-number-width:var(--mo-calendar-day-size)}.monthHeader,.week{color:var(--mo-color-gray)}.monthHeader{align-items:center}.navigatingMonth,.navigatingYear{font-size:var(--mo-font-size-l);transition:var(--mo-duration-quick)}.navigatingYear:hover{color:var(--mo-color-accent);cursor:pointer}.day,.year{text-align:center;border-radius:100px;cursor:pointer;transition:var(--mo-duration-quick);font-weight:500;user-select:none;font-size:var(--mo-font-size-m);width:var(--mo-calendar-day-size);-webkit-user-select:none;align-items:center;justify-content:center}.year{width:100%;justify-content:center;align-items:center}.selected{background:var(--mo-color-accent);color:var(--mo-color-accessible)!important}.day{height:var(--mo-calendar-day-size)}.day:hover,.year:hover{background:var(--mo-color-transparent-gray-3)}.day:not(.isInMonth){color:var(--mo-color-gray)}.day.today{color:var(--mo-color-accent)}`}get template(){return B`<mo-flex alignItems="center" justifyContent="center" ${we({width:"var(--mo-calendar-max-width)",minHeight:"var(--mo-calendar-min-height)"})}><mo-flex direction="horizontal" justifyContent="space-between" alignItems="center" ${we({width:"100%"})}><mo-icon-button icon="${"rtl"===getComputedStyle(this).direction?"keyboard_arrow_right":"keyboard_arrow_left"}" @click="${()=>this.navigatingDate=this.navigatingDate.addMonths(-1)}"></mo-icon-button><div><a class="navigatingMonth">${this.navigatingDate.monthName}</a> <a class="navigatingYear" @click="${()=>this.toggleYearSelection()}">${this.navigatingDate.yearName}</a></div><mo-icon-button icon="${"rtl"===getComputedStyle(this).direction?"keyboard_arrow_left":"keyboard_arrow_right"}" @click="${()=>this.navigatingDate=this.navigatingDate.addMonths(1)}"></mo-icon-button></mo-flex>${this.yearSelection?this.yearSelectionTemplate:this.daySelectionTemplate}</mo-flex>`}get daySelectionTemplate(){var t,e;const n=null===(t=this.navigatingDate.monthStart)||void 0===t?void 0:t.weekStart,r=null===(e=this.navigatingDate.monthEnd)||void 0===e?void 0:e.weekEnd,o=[...this.rangeOf(n,r).groupToMap((t=>String(t.weekOfYear)))].sort((([,t],[,e])=>{var n;return(null===(n=t[0])||void 0===n?void 0:n.isBefore(e[0]))?-1:1}));return B`<mo-grid class="month" rows="repeat(auto-fill, var(--mo-calendar-day-size))" columns="${this.includeWeekNumbers?"var(--mo-calendar-week-number-width) repeat(7, var(--mo-calendar-day-size))":"repeat(7, var(--mo-calendar-day-size))"}" ${we({alignItems:"center",justifyItems:"center"})}>${!1===this.includeWeekNumbers?pe:B`<div></div>`} ${DateTime.getWeekDayNames().map((t=>B`<div class="monthHeader">${t.charAt(0).toUpperCase()+t.charAt(1)}</div>`))} ${o.map((([t,e])=>B`${!1===this.includeWeekNumbers?pe:B`<div class="week">${t}</div>`} ${e.map((t=>this.getDayTemplate(t)))}`))}</mo-grid>`}getDayTemplate(t){return B`<mo-flex class="${te(this.getDefaultDayElementClasses(t))}">${t.format({day:"numeric"})}</mo-flex>`}getDefaultDayElementClasses(t){var e,n;const r=null===(e=[...this.rangeOf(t.monthStart,t.monthEnd).groupToMap((t=>String(t.month)))].sort((([,t],[,e])=>t.length>e.length?-1:1))[0])||void 0===e?void 0:e[1];return{day:!0,today:t.equals(this.today),isInMonth:t.localMonth===(null===(n=null==r?void 0:r[0])||void 0===n?void 0:n.localMonth)}}get yearSelectionTemplate(){return B`<mo-scroller ${we({height:"*"})}><mo-grid rows="repeat(50, var(--mo-calendar-day-size))" columns="repeat(4, 1fr)">${this.years.map((t=>B`<mo-flex class="${te({year:!0,selected:this.navigatingDate.year===t.year})}" @click="${()=>this.selectYear(t.year)}">${t.yearName}</mo-flex>`))}</mo-grid></mo-scroller>`}selectYear(t){this.navigatingDate.setFullYear(t),this.yearSelection=!1}toggleYearSelection(){this.yearSelection=!this.yearSelection,this.yearSelection&&new Promise((()=>setTimeout((()=>{this.selectedYearElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),1)))}rangeOf(t,e){return new Array(Math.abs(Math.round(e.until(t).days))+1).fill(void 0).map(((e,n)=>t.addDays(n)))}};var Ec;xc.startingYearDate=new DateTime(1900,6,1),r([Ce({type:Boolean,reflect:!0})],xc.prototype,"includeWeekNumbers",void 0),r([Ae()],xc.prototype,"navigatingDate",void 0),r([Ae()],xc.prototype,"yearSelection",void 0),r([ve(".year.selected")],xc.prototype,"selectedYearElement",void 0),xc=_c=r([me("mo-calendar")],xc);let kc=Ec=class extends xc{get selectionAdapter(){return this._selectionAdapter||(this._selectionAdapter=new this.selectionAdapterConstructor(this),Ec.elementStyles.push(this._selectionAdapter.styles)),this._selectionAdapter}getDayTemplate(t){return this.selectionAdapter.getDayTemplate(t,this.getDefaultDayElementClasses(t))}};r([xe()],kc.prototype,"change",void 0),r([Ce({type:Object})],kc.prototype,"selectionAdapterConstructor",void 0),r([Ce({type:Object,updated(){this.navigatingDate=this.selectionAdapter.getNavigatingDate(this.value)}})],kc.prototype,"value",void 0),kc=Ec=r([me("mo-selectable-calendar")],kc);class Ic{static getDateSeparator(t=Ie.currentLanguage){return Intl.DateTimeFormat(t).format(new Date).replace(/\p{Number}/gu,"")[0]}static parse(t,e=new DateTime){if(!(t=t.toLowerCase().trim()))return;if(t.startsWith("+")||t.startsWith("-"))return Ic.parseDateFromOperation(t,e);if(t.includes(Ic.getDateSeparator()))return Ic.parseDateFromLocalDate(t,e);if((3===t.length||4===t.length||8===t.length)&&!isNaN(parseInt(t)))return Ic.parseDateFromShortcut(t);const n=new DateTime(t||new DateTime);if("Invalid Date"!==String(n))return n;const r=Ic.parseDateFromKeyword(t,e);return r||void 0}static parseDateFromLocalDate(t,e=new DateTime){const n=new DateTime(t);if("Invalid Date"===String(n))return;return 2===t.split(Ic.getDateSeparator()).length&&n.setFullYear(e.getFullYear()),n}static parseDateFromOperation(t,e=new DateTime){const n=t.charAt(t.length-1).toLowerCase();let r;if(!isNaN(Number(n)))return r=parseInt(t.substring(0,t.length)),e.addDays(r);switch(r=parseInt(t.substring(0,t.length-1)),n){case"y":return e.addYears(r);case"m":return e.addMonths(r);default:return}}static parseDateFromShortcut(t){const e=t.substring(0,2),n=t.substring(2,t.length>=4?4:3),r=8!==length?void 0:t.substring(4,8);return new DateTime(r?parseInt(r):(new Date).getFullYear(),parseInt(n)-1,parseInt(e))}static parseDateFromKeyword(t,e=new DateTime){switch(t){case"h":return new DateTime(e);case"üm":return e.addDays(2);case"m":return e.addDays(1);case"üüm":return e.addDays(3);case"g":return e.addDays(-1);case"vg":return e.addDays(-2);case"vvg":return e.addDays(-3);case"adw":return e.weekStart;case"edw":return e.weekEnd;case"anw":return e.addWeeks(1).weekStart;case"enw":return e.addWeeks(1).weekEnd;case"alw":return e.addWeeks(-1).weekStart;case"elw":return e.addWeeks(-1).weekEnd;case"adm":return e.monthStart;case"edm":return e.monthEnd;case"anm":return e.addMonths(1).monthStart;case"enm":return e.addMonths(1).monthEnd;case"alm":return e.addMonths(-1).monthStart;case"elm":return e.addMonths(-1).monthEnd;case"adj":return e.yearStart;case"edj":return e.yearEnd;case"anj":return e.addYears(1).yearStart;case"enj":return e.addYears(1).yearEnd;case"alj":return e.addYears(-1).yearStart;case"elj":return e.addYears(-1).yearEnd;default:return}}}class Fc extends hc{constructor(){super(...arguments),this.open=!1,this.hideDatePicker=!1,this.shortcutReferenceDate=new DateTime,this.calendarIconButtonIcon="today"}handleChange(t,e){super.handleChange(t,e),this.inputStringValue=this.valueToInputValue(t)}get isActive(){return super.isActive||this.open}static get styles(){return u`mo-popover{background:var(--mo-color-background);box-shadow:var(--mo-shadow);border-radius:var(--mo-border-radius);color:var(--mo-color-foreground);padding:10px 4px}`}get endSlotTemplate(){return B`${super.endSlotTemplate} ${this.calendarIconButtonTemplate}`}get inputTemplate(){return B`<input part="input" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" @input="${t=>this.handleInput(this.inputValueToValue(this.inputElement.value||""),t)}" @change="${t=>this.handleChange(this.inputValueToValue(this.inputElement.value||""),t)}">`}get calendarIconButtonTemplate(){return B`${this.hideDatePicker?pe:B`<mo-icon-button tabindex="-1" dense slot="end" icon="${this.calendarIconButtonIcon}" ${we({color:this.open?"var(--mo-color-accent)":"var(--mo-color-gray)"})} @click="${()=>this.open=!this.open}"></mo-icon-button>`} ${this.hideDatePicker?pe:B`<mo-popover tabindex="-1" slot="end" .anchor="${this}" ?open="${this.open}" @openChange="${t=>this.open=t.detail}">${this.open?this.menuContentTemplate:pe}</mo-popover>`}`}get menuContentTemplate(){return B`<mo-selectable-calendar .selectionAdapterConstructor="${this.calendarSelectionAdapterConstructor}" .value="${this.value}" @change="${t=>this.handleCalendarChange(t.detail)}"></mo-selectable-calendar>`}handleCalendarChange(t){this.value=t,this.change.dispatch(t)}}r([Ce({type:Boolean,reflect:!0})],Fc.prototype,"open",void 0),r([Ce({type:Boolean})],Fc.prototype,"hideDatePicker",void 0),r([Ce({type:Object})],Fc.prototype,"shortcutReferenceDate",void 0),r([ve("mo-selectable-calendar")],Fc.prototype,"calendarElement",void 0);class Oc extends Tc{getDayTemplate(t,e){var n,r;return B`<mo-flex class="${te(Object.assign(Object.assign({},e),{selected:null!==(r=null===(n=this.calendar.value)||void 0===n?void 0:n.equals(t))&&void 0!==r&&r}))}" @click="${()=>this.select(t)}">${t.format({day:"numeric"})}</mo-flex>`}getNavigatingDate(t){const e=null!=t?t:new DateTime;return new DateTime(e.year,e.month)}}let Nc=class extends Fc{constructor(){super(...arguments),this.calendarSelectionAdapterConstructor=Oc}handleCalendarChange(t){super.handleCalendarChange(t),this.open=!1}valueToInputValue(t){var e;return t&&null!==(e=t.formatAsDate())&&void 0!==e?e:""}inputValueToValue(t){return t?Ic.parse(t,this.shortcutReferenceDate):void 0}};r([Ce({type:Object})],Nc.prototype,"value",void 0),Nc=r([me("mo-field-date")],Nc);class Pc{static parse(t,e=new DateTime){const n=Pc.parseDateRangeFromKeyword(t,e);if(n)return n;let r=Pc.userDateRangeSeparators.find((e=>t.includes(e)));r||(t+=Pc.dateRangeSeparator,r=Pc.dateRangeSeparator);const[o,i]=t.toLowerCase().split(r),s=Ic.parse(o,e),a=Ic.parse(i,e);return new DateTimeRange(s,a)}static parseDateRangeFromKeyword(t,e=new DateTime){switch(t){case"w":case"dw":return new DateTimeRange(e.weekStart,e.weekEnd);case"nw":return new DateTimeRange(e.addWeeks(1).weekStart,e.addWeeks(1).weekEnd);case"lw":return new DateTimeRange(e.addWeeks(-1).weekStart,e.addWeeks(-1).weekEnd);case"m":case"dm":return new DateTimeRange(e.monthStart,e.monthEnd);case"lm":return new DateTimeRange(e.addMonths(-1).monthStart,e.addMonths(-1).monthEnd);case"nm":return new DateTimeRange(e.addMonths(1).monthStart,e.addMonths(1).monthEnd);case"j":case"dj":return new DateTimeRange(e.yearStart,e.yearEnd);case"lj":return new DateTimeRange(e.addYears(-1).yearStart,e.addYears(-1).yearEnd);case"nj":return new DateTimeRange(e.addYears(1).yearStart,e.addYears(1).yearEnd);default:return}}}Pc.dateRangeSeparator=" – ",Pc.userDateRangeSeparators=[Pc.dateRangeSeparator," ","-","~"];class Rc extends Tc{constructor(){super(...arguments),this.currentSelection=0}get styles(){return u`.day.inSelectionRange:not(.selected){background:var(--mo-color-accent-transparent)}.day.inSelectionRange{border-radius:0}.day.selected.first{border-radius:100px 0 0 100px}.day.selected.last{border-radius:0 100px 100px 0}.day.selected.first.last{border-radius:100px}`}getDayTemplate(t,e){const n=this.calendar.value,r=!!(null==n?void 0:n.start)&&t.equals(n.start),o=!!(null==n?void 0:n.end)&&t.equals(n.end),i=Object.assign(Object.assign({},e),{inSelectionRange:!!n&&n.includes(t),selected:r||o,first:r,last:o});return B`<mo-flex class="${te(i)}" @click="${()=>this.handleClick(t)}">${t.format({day:"numeric"})}</mo-flex>`}getNavigatingDate(t){var e;const n=null!==(e=null==t?void 0:t.start)&&void 0!==e?e:new DateTime;return new DateTime(n.year,n.month)}handleClick(t){const e=this.calendar.value,n=!!(null==e?void 0:e.start)&&!!e.end,r=0===this.currentSelection?new DateTimeRange(t,n||null==e?void 0:e.end):new DateTimeRange(n||null==e?void 0:e.start,t);this.currentSelection=r.start?1:0,this.select(r)}}let Uc=class extends Fc{constructor(){super(...arguments),this.calendarSelectionAdapterConstructor=Rc,this.calendarIconButtonIcon="date_range"}get currentSelection(){var t,e,n;return null!==(n=null===(e=null===(t=this.calendarElement)||void 0===t?void 0:t.selectionAdapter)||void 0===e?void 0:e.currentSelection)&&void 0!==n?n:0}set currentSelection(t){var e;const n=null===(e=this.calendarElement)||void 0===e?void 0:e.selectionAdapter;n&&(n.currentSelection=t,this.requestUpdate())}handleCalendarChange(t){super.handleCalendarChange(t),(null==t?void 0:t.start)&&t.end&&(this.open=!1)}get menuContentTemplate(){var t,e;return B`<mo-flex><mo-flex direction="horizontal" alignItems="center" ${we({textAlign:"center",height:"30px"})}><div ${we({width:"*",fontWeight:"500",cursor:"pointer"})} ${we({color:0===this.currentSelection?"var(--mo-color-accent)":"unset"})} @click="${()=>this.currentSelection=0}">${(null===(t=this.value)||void 0===t?void 0:t.start)?this.value.start.formatAsDate():"Start"}</div><div ${we({color:"var(--mo-color-gray)"})}>bis</div><div ${we({width:"*",fontWeight:"500",cursor:"pointer"})} ${we({color:1===this.currentSelection?"var(--mo-color-accent)":"unset"})} @click="${()=>this.currentSelection=1}">${(null===(e=this.value)||void 0===e?void 0:e.end)?this.value.end.formatAsDate():"Ende"}</div></mo-flex>${super.menuContentTemplate}</mo-flex>`}valueToInputValue(t){var e;return t&&null!==(e=t.format())&&void 0!==e?e:""}inputValueToValue(t){return t?Pc.parse(t,this.shortcutReferenceDate):void 0}};r([Ae()],Uc.prototype,"currentSelection",null),r([Ce({type:Object})],Uc.prototype,"value",void 0),Uc=r([me("mo-field-date-range")],Uc)})()})();
1
+ (()=>{var t={777:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},969:(t,e,n)=>{var r=n(777),o=n(119),i=Object.hasOwnProperty,s=Object.create(null);for(var a in r)i.call(r,a)&&(s[r[a]]=a);var c=t.exports={to:{},get:{}};function l(t,e,n){return Math.min(Math.max(e,t),n)}function d(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}c.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=c.get.hsl(t),n="hsl";break;case"hwb":e=c.get.hwb(t),n="hwb";break;default:e=c.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},c.get.rgb=function(t){if(!t)return null;var e,n,o,s=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var a=2*n;s[n]=parseInt(e.slice(a,a+2),16)}o&&(s[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)s[n]=parseInt(e[n]+e[n],16);o&&(s[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(e[n+1],0);e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(r,e[1])?((s=r[e[1]])[3]=1,s):null:null;for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?s[3]=.01*parseFloat(e[4]):s[3]=parseFloat(e[4]))}for(n=0;n<3;n++)s[n]=l(s[n],0,255);return s[3]=l(s[3],0,1),s},c.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var t=o(arguments);return"#"+d(t[0])+d(t[1])+d(t[2])+(t[3]<1?d(Math.round(255*t[3])):"")},c.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},c.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},c.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},c.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},c.to.keyword=function(t){return s[t.slice(0,3)]}},119:(t,e,n)=>{"use strict";var r=n(774),o=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var a=t[n];r(a)?e=o.call(e,i.call(a)):e.push(a)}return e};s.wrap=function(t){return function(){return t(s(arguments))}}},774:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};var e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)};function r(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}Object.create;function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;const i=window,s=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),c=new WeakMap;class l{constructor(t,e,n){if(this._$cssResult$=!0,n!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&c.set(e,t))}return t}toString(){return this.cssText}}const d=t=>new l("string"==typeof t?t:t+"",void 0,a),u=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return new l(n,t,a)},h=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return d(e)})(t):t;var p;const m=window,f=m.trustedTypes,g=f?f.emptyScript:"",v=m.reactiveElementPolyfillSupport,y={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},b=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:b};class S extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const r=this._$Ep(n,e);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{s?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=i.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=w){var r;const o=this.constructor._$Ep(t,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:y).toAttribute(e,n.type);this._$El=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(t,e){var n;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:y;this._$El=o,this[o]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var $;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:S}),(null!==(p=m.reactiveElementVersions)&&void 0!==p?p:m.reactiveElementVersions=[]).push("1.6.1");const C=window,A=C.trustedTypes,M=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",T=`lit$${(Math.random()+"").slice(9)}$`,_="?"+T,x=`<${_}>`,E=document,k=()=>E.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,O=t=>F(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),N="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,H=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,L=/"/g,z=/^(?:script|style|textarea|title)$/i,j=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),B=j(1),V=j(2),Z=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),G=new WeakMap,W=E.createTreeWalker(E,129,null,!1),K=(t,e)=>{const n=t.length-1,r=[];let o,i=2===e?"<svg>":"",s=P;for(let e=0;e<n;e++){const n=t[e];let a,c,l=-1,d=0;for(;d<n.length&&(s.lastIndex=d,c=s.exec(n),null!==c);)d=s.lastIndex,s===P?"!--"===c[1]?s=R:void 0!==c[1]?s=U:void 0!==c[2]?(z.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=H):void 0!==c[3]&&(s=H):s===H?">"===c[0]?(s=null!=o?o:P,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?H:'"'===c[3]?L:Y):s===L||s===Y?s=H:s===R||s===U?s=P:(s=H,o=void 0);const u=s===H&&t[e+1].startsWith("/>")?" ":"";i+=s===P?n+x:l>=0?(r.push(a),n.slice(0,l)+D+n.slice(l)+T+u):n+T+(-2===l?(r.push(void 0),e):u)}const a=i+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,r]};class X{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,i=0;const s=t.length-1,a=this.parts,[c,l]=K(t,e);if(this.el=X.createElement(c,n),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=W.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(D)||e.startsWith(T)){const n=l[i++];if(t.push(e),void 0!==n){const t=r.getAttribute(n.toLowerCase()+D).split(T),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?ot:"@"===e[1]?it:et})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(z.test(r.tagName)){const t=r.textContent.split(T),e=t.length-1;if(e>0){r.textContent=A?A.emptyScript:"";for(let n=0;n<e;n++)r.append(t[n],k()),W.nextNode(),a.push({type:2,index:++o});r.append(t[e],k())}}}else if(8===r.nodeType)if(r.data===_)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(T,t+1));)a.push({type:7,index:o}),t+=T.length-1}o++}}static createElement(t,e){const n=E.createElement("template");return n.innerHTML=t,n}}function J(t,e,n=t,r){var o,i,s,a;if(e===Z)return e;let c=void 0!==r?null===(o=n._$Co)||void 0===o?void 0:o[r]:n._$Cl;const l=I(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(i=null==c?void 0:c._$AO)||void 0===i||i.call(c,!1),void 0===l?c=void 0:(c=new l(t),c._$AT(t,n,r)),void 0!==r?(null!==(s=(a=n)._$Co)&&void 0!==s?s:a._$Co=[])[r]=c:n._$Cl=c),void 0!==c&&(e=J(t,c._$AS(t,e.values),c,r)),e}class Q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).importNode(n,!0);W.currentNode=o;let i=W.nextNode(),s=0,a=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new tt(i,i.nextSibling,this,t):1===c.type?e=new c.ctor(i,c.name,c.strings,this,t):6===c.type&&(e=new st(i,this,t)),this._$AV.push(e),c=r[++a]}s!==(null==c?void 0:c.index)&&(i=W.nextNode(),s++)}return o}v(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class tt{constructor(t,e,n,r){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J(this,t,e),I(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==Z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):O(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=X.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(n);else{const t=new Q(o,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new X(t)),e}T(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new tt(this.k(k()),this.k(k()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,n,r,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,r){const o=this.strings;let i=!1;if(void 0===o)t=J(this,t,e,0),i=!I(t)||t!==this._$AH&&t!==Z,i&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=J(this,r[n+s],e,s),a===Z&&(a=this._$AH[s]),i||(i=!I(a)||a!==this._$AH[s]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}i&&!r&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=A?A.emptyScript:"";class ot extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class it extends et{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=J(this,t,e,0))&&void 0!==n?n:q)===Z)return;const r=this._$AH,o=t===q&&r!==q||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==q&&(r===q||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){J(this,t)}}const at={O:D,P:T,A:_,C:1,M:K,L:Q,D:O,R:J,I:tt,V:et,H:ot,N:it,U:nt,F:st},ct=C.litHtmlPolyfillSupport;null==ct||ct(X,tt),(null!==($=C.litHtmlVersions)&&void 0!==$?$:C.litHtmlVersions=[]).push("2.7.1");const lt=(t,e,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:e;let s=i._$litPart$;if(void 0===s){const t=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=s=new tt(e.insertBefore(k(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s};var dt,ut;class ht extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Z}}ht.finalized=!0,ht._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ht});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ht});(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.1");const mt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:n,elements:r}=e;return{kind:n,elements:r,finisher(e){customElements.define(t,e)}}})(t,e),ft=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function gt(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):ft(t,e)}function vt(t){return gt({...t,state:!0})}const yt=({finisher:t,descriptor:e})=>(n,r)=>{var o;if(void 0===r){const r=null!==(o=n.originalKey)&&void 0!==o?o:n.key,i=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(n.key)}:{...n,key:r};return null!=t&&(i.finisher=function(e){t(e,r)}),i}{const o=n.constructor;void 0!==e&&Object.defineProperty(n,r,e(r)),null==t||t(o,r)}};function bt(t){return yt({finisher:(e,n)=>{Object.assign(e.prototype[n],t)}})}function wt(t,e){return yt({descriptor:n=>{const r={get(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof n?Symbol():"__"+n;r.get=function(){var n,r;return void 0===this[e]&&(this[e]=null!==(r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}var St;null===(St=window.HTMLSlotElement)||void 0===St||St.prototype.assignedElements;const $t=Symbol.for(""),Ct=t=>{if((null==t?void 0:t.r)===$t)return null==t?void 0:t._$litStatic$},At=new Map,Mt=t=>(e,...n)=>{const r=n.length;let o,i;const s=[],a=[];let c,l=0,d=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=n[l],o=Ct(i));)c+=o+e[++l],d=!0;a.push(i),s.push(c),l++}if(l===r&&s.push(e[r]),d){const t=s.join("$$lit$$");void 0===(e=At.get(t))&&(s.raw=s,At.set(t,e=s)),n=a}return t(e,...n)},{I:Dt}=(Mt(B),Mt(V),at),Tt=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,_t=t=>void 0===t.strings,xt=()=>document.createComment(""),Et=(t,e,n)=>{var r;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=o.insertBefore(xt(),i),r=o.insertBefore(xt(),i);n=new Dt(e,r,t,t.options)}else{const e=n._$AB.nextSibling,s=n._$AM,a=s!==t;if(a){let e;null===(r=n._$AQ)||void 0===r||r.call(n,t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==s._$AU&&n._$AP(e)}if(e!==i||a){let t=n._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return n},kt=(t,e,n=t)=>(t._$AI(e,n),t),It={},Ft=(t,e=It)=>t._$AH=e,Ot=t=>t._$AH,Nt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let n=t._$AA;const r=t._$AB.nextSibling;for(;n!==r;){const t=n.nextSibling;n.remove(),n=t}},Pt=t=>{t._$AR()},Rt=1,Ut=2,Ht=3,Yt=4,Lt=6,zt=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Bt=(t,e)=>{var n,r;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null===(r=(n=t)._$AO)||void 0===r||r.call(n,e,!1),Bt(t,e);return!0},Vt=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},Zt=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),Wt(e)}};function qt(t){void 0!==this._$AN?(Vt(this),this._$AM=t,Zt(this)):this._$AM=t}function Gt(t,e=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(r))for(let t=n;t<r.length;t++)Bt(r[t],!1),Vt(r[t]);else null!=r&&(Bt(r,!1),Vt(r));else Bt(this,t)}const Wt=t=>{var e,n,r,o;t.type==Ut&&(null!==(e=(r=t)._$AP)&&void 0!==e||(r._$AP=Gt),null!==(n=(o=t)._$AQ)&&void 0!==n||(o._$AQ=qt))};class Kt extends jt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),Zt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,r;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),e&&(Bt(this,t),Vt(this))}setValue(t){if(_t(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Xt{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class Jt{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}class Qt extends Kt{constructor(){super(...arguments),this._$Cq=new Xt(this),this._$CK=new Jt}render(t,e){return Z}update(t,[e,n]){if(this.isConnected||this.disconnected(),e===this._$CX)return;this._$CX=e;let r=0;const{_$Cq:o,_$CK:i}=this;return(async(t,e)=>{for await(const n of t)if(!1===await e(n))return})(e,(async t=>{for(;i.get();)await i.get();const s=o.deref();if(void 0!==s){if(s._$CX!==e)return!1;void 0!==n&&(t=n(t,r)),s.commitValue(t,r),r++}return!0})),Z}commitValue(t,e){this.setValue(t)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}zt(Qt),zt(class extends Qt{constructor(t){if(super(t),t.type!==Ut)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){0===e&&Pt(this._$CJ);const n=Et(this._$CJ);kt(n,t)}}),zt(class extends jt{constructor(t){super(t),this.tt=new WeakMap}render(t){return[t]}update(t,[e]){if(Tt(this.et)&&(!Tt(e)||this.et.strings!==e.strings)){const e=Ot(t).pop();let n=this.tt.get(this.et.strings);if(void 0===n){const t=document.createDocumentFragment();n=lt(q,t),n.setConnected(!1),this.tt.set(this.et.strings,n)}Ft(n,[e]),Et(n,void 0,e)}if(Tt(e)){if(!Tt(this.et)||this.et.strings!==e.strings){const n=this.tt.get(e.strings);if(void 0!==n){const e=Ot(n).pop();Pt(t),Et(t,void 0,e),Ft(t,[e])}}this.et=e}else this.et=void 0;return this.render(e)}});const te=zt(class extends jt{constructor(t){var e;if(super(t),t.type!==Rt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,r;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const n=!!e[t];n===this.it.has(t)||(null===(r=this.nt)||void 0===r?void 0:r.has(t))||(n?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return Z}}),ee={},ne=(zt(class extends jt{constructor(){super(...arguments),this.st=ee}render(t,e){return e()}update(t,[e,n]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return Z}else if(this.st===e)return Z;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,n)}}),t=>null!=t?t:q),re=(zt(class extends jt{constructor(){super(...arguments),this.key=q}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(Ft(t),this.key=e),n}}),zt(class extends jt{constructor(t){if(super(t),t.type!==Ht&&t.type!==Rt&&t.type!==Yt)throw Error("The `live` directive is not allowed on child or event bindings");if(!_t(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Z||e===q)return e;const n=t.element,r=t.name;if(t.type===Ht){if(e===n[r])return Z}else if(t.type===Yt){if(!!e===n.hasAttribute(r))return Z}else if(t.type===Rt&&n.getAttribute(r)===e+"")return Z;return Ft(t),e}}));const oe=new WeakMap,ie=(zt(class extends Kt{render(t){return q}update(t,[e]){var n;const r=e!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.ct=null===(n=t.options)||void 0===n?void 0:n.host,this.ot(this.lt=t.element)),q}ot(t){var e;if("function"==typeof this.G){const n=null!==(e=this.ct)&&void 0!==e?e:globalThis;let r=oe.get(n);void 0===r&&(r=new WeakMap,oe.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){var t,e,n;return"function"==typeof this.G?null===(e=oe.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),(t,e,n)=>{const r=new Map;for(let o=e;o<=n;o++)r.set(t[o],o);return r}),se=(zt(class extends jt{constructor(t){if(super(t),t.type!==Ut)throw Error("repeat() can only be used in text expressions")}dt(t,e,n){let r;void 0===n?n=e:void 0!==e&&(r=e);const o=[],i=[];let s=0;for(const e of t)o[s]=r?r(e,s):s,i[s]=n(e,s),s++;return{values:i,keys:o}}render(t,e,n){return this.dt(t,e,n).values}update(t,[e,n,r]){var o;const i=Ot(t),{values:s,keys:a}=this.dt(e,n,r);if(!Array.isArray(i))return this.ht=a,s;const c=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],l=[];let d,u,h=0,p=i.length-1,m=0,f=s.length-1;for(;h<=p&&m<=f;)if(null===i[h])h++;else if(null===i[p])p--;else if(c[h]===a[m])l[m]=kt(i[h],s[m]),h++,m++;else if(c[p]===a[f])l[f]=kt(i[p],s[f]),p--,f--;else if(c[h]===a[f])l[f]=kt(i[h],s[f]),Et(t,l[f+1],i[h]),h++,f--;else if(c[p]===a[m])l[m]=kt(i[p],s[m]),Et(t,i[h],i[p]),p--,m++;else if(void 0===d&&(d=ie(a,m,f),u=ie(c,h,p)),d.has(c[h]))if(d.has(c[p])){const e=u.get(a[m]),n=void 0!==e?i[e]:null;if(null===n){const e=Et(t,i[h]);kt(e,s[m]),l[m]=e}else l[m]=kt(n,s[m]),Et(t,i[h],n),i[e]=null;m++}else Nt(i[p]),p--;else Nt(i[h]),h++;for(;m<=f;){const e=Et(t,l[f+1]);kt(e,s[m]),l[m++]=e}for(;h<=p;){const t=i[h++];null!==t&&Nt(t)}return this.ht=a,Ft(t,l),Z}}),"important"),ae=" !"+se,ce=zt(class extends jt{constructor(t){var e;if(super(t),t.type!==Rt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,n)=>{const r=t[n];return null==r?e:e+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")}));for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e=r.endsWith(ae);t.includes("-")||e?n.setProperty(t,e?r.slice(0,-11):r,e?se:""):n[t]=r}}return Z}});zt(class extends jt{constructor(t){if(super(t),t.type!==Ut)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?Z:(this.vt=t,document.importNode(t.content,!0))}});class le extends jt{constructor(t){if(super(t),this.et=q,t.type!==Ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this.ft=void 0,this.et=t;if(t===Z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}le.directiveName="unsafeHTML",le.resultType=1;zt(le);class de extends le{}de.directiveName="unsafeSVG",de.resultType=2;zt(de);const ue=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then,he=1073741823;zt(class extends Kt{constructor(){super(...arguments),this._$C_t=he,this._$Cwt=[],this._$Cq=new Xt(this),this._$CK=new Jt}render(...t){var e;return null!==(e=t.find((t=>!ue(t))))&&void 0!==e?e:Z}update(t,e){const n=this._$Cwt;let r=n.length;this._$Cwt=e;const o=this._$Cq,i=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const s=e[t];if(!ue(s))return this._$C_t=t,s;t<r&&s===n[t]||(this._$C_t=he,r=0,Promise.resolve(s).then((async t=>{for(;i.get();)await i.get();const e=o.deref();if(void 0!==e){const n=e._$Cwt.indexOf(s);n>-1&&n<e._$C_t&&(e._$C_t=n,e.setValue(t))}})))}return Z}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}});const pe=q,me=mt;class fe extends ht{initialized(){}connected(){}disconnected(){}get template(){return pe}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}class ge{constructor(t){this.host=t,this.host.addController(this)}}const ve=t=>(e,n)=>{Object.defineProperty(e,n,{get(){return this.renderRoot?.querySelector(t)??void 0}})},ye=()=>t=>{const e=new t;be.handlers.add(e)};class be extends jt{constructor(t){if(super(t),t.type!==Lt)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,n]of Object.entries(t)){([...be.handlers].find((t=>t.handles(this.element,[e,n])))??be.defaultHandler).apply(this.element,[e,n])}}}be.handlers=new Set,be.defaultHandler=new class{handles(){return!0}apply(t,[e,n]){t.style[e]=null==n?"":n}};const we=zt(be);let Se=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,n]){t.style.setProperty(e,n)}};Se=r([ye()],Se);const $e=t=>(e,n)=>{e.constructor.addInitializer((e=>e.addController(new class extends ge{constructor(){super(e),this.hasChanged=!1}get value(){return this.host[n]}hostUpdate(){this.value!==this.oldValue&&(this.hasChanged=!0)}hostUpdated(){this.hasChanged&&(this.hasChanged=!1,t.call(this.host,this.value,this.oldValue),this.oldValue=this.value)}})))},Ce=t=>(e,n)=>(t?.updated&&$e(t.updated)(e,n),gt(t)(e,n)),Ae=t=>(e,n)=>(t?.updated&&$e(t.updated)(e,n),vt(t)(e,n));async function Me(t){const e=t=>Symbol.iterator in t?[...t]:[t];if(void 0===t)return e(this);if("function"==typeof t){let n=t.call(this);if(n instanceof Promise&&(n=await n),n instanceof EventTarget)return e(n);if(Symbol.iterator in n&&[...n].every((t=>t instanceof EventTarget)))return e(n);throw new TypeError(`${this.constructor}.target is not an EventTarget`)}return e(t??this)}class De extends ge{constructor(t,...e){super(t),this.host=t,this.options=function(t){const e="string"==typeof t[0];return{target:e?void 0:t[0].target,type:e?t[0]:t[0].type,listener:e?t[1]:t[0].listener,options:e?t[2]:t[0].options}}(e)}async subscribe(){const t=await Me.call(this.host,this.options.target);for(const e of t)e.removeEventListener(this.options.type,this.options.listener,this.options.options)}async unsubscribe(){const t=await Me.call(this.host,this.options.target);for(const e of t)e?.addEventListener(this.options.type,this.options.listener,this.options.options)}async hostDisconnected(){await this.subscribe()}async hostConnected(){await this.unsubscribe()}}class Te{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class _e{constructor(t,e,n){this.element=t,this.type=e,this.options=n,this.handlersMap=new Map}dispatch(t){this.element.dispatchEvent(t instanceof CustomEvent?t:new CustomEvent(this.type,{detail:t,...this.options}))}subscribe(t){if(!1===this.handlersMap.has(t)){const e=e=>t(e.detail);this.element.addEventListener(this.type,e),this.handlersMap.set(t,e)}}unsubscribe(t){const e=this.handlersMap.get(t);e&&this.element.removeEventListener(this.type,e),this.handlersMap.delete(t)}}function xe(t){return(e,n)=>{if(void 0===n)return;const r=`$${n}Event$`;Object.defineProperty(e,n,{get(){return this[r]||(this[r]=this instanceof HTMLElement?new _e(this,n,t):new Te),this[r]}})}}class Ee{constructor(t,e,n){this.name=t,this.defaultValue=e,this.reviver=n,this.changed=new Te,Ee.container.add(this)}get value(){const t=window.localStorage.getItem(this.name)??void 0;if(void 0===t)return this.defaultValue;try{return JSON.parse(t,this.reviver)}catch(e){return t}}set value(t){window.localStorage.setItem(this.name,JSON.stringify(t)),this.changed.dispatch(t),Ee.changed.dispatch(this)}}Ee.changed=new Te,Ee.container=new Set;class ke{static get(t){return ke.rules.get(t)}static add(t,...e){e.forEach((e=>ke.rules.set(e,t)))}}ke.rules=new Map,ke.add((()=>0),"ay","bo","cgg","dz","id","ja","ka","kk","km","ko","ky","lo","ms","my","su","th","tt","ug","vi","zh"),ke.add((t=>t>1?1:0),"ak","am","br","fil","fa","fr","gu","ln","mfe","mg","pt","tg","ti","tr","uz"),ke.add((t=>1!==t?1:0),"af","as","az","bg","bn","brx","ca","da","de","el","en","eo","es","et","eu","ff","fi","fo","gl","gu","ha","hi","hu","hy","it","kln","kn","ku","lb","ml","mn","mr","nb","ne","nl","nn","or","pa","ps","pt","rm","rw","sd","se","si","so","sq","sv","sw","ta","te","tk","ur","yo"),ke.add((t=>t%10!=1||t%100==11?1:0),"is"),ke.add((t=>0!==t?1:0),"jv"),ke.add((t=>1===t||t%10==1?0:1),"mk"),ke.add((t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),"be","bs","hr","lt"),ke.add((t=>1===t?0:t>=2&&t<=4?1:2),"cs"),ke.add((t=>1===t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),"pl"),ke.add((t=>t%10==1&&t%100!=11?0:0!==t?1:2),"lv"),ke.add((t=>1===t?0:0===t||t%100>0&&t%100<20?1:2),"ro"),ke.add((t=>1===t?0:2===t?1:8!==t&&11!==t?2:3),"cy"),ke.add((t=>1===t||11===t?0:2===t||12===t?1:t>2&&t<20?2:3),"gd"),ke.add((t=>1===t?0:2===t?1:3===t?2:3),"kw"),ke.add((t=>1===t?0:0===t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),"mt"),ke.add((t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),"sl"),ke.add((t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),"ru","sr","uk"),ke.add((t=>1===t?0:t>=2&&t<=4?1:2),"sk"),ke.add((t=>1===t?0:2===t?1:t>2&&t<7?2:t>6&&t<11?3:4),"ga"),ke.add((t=>0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),"ar");class Ie{static get currentLanguage(){var t;return(null===(t=window.location.search.split("lang=")[1])||void 0===t?void 0:t.split("&")[0])||Ie.languageCodeStorage.value||navigator.language.split("-")[0]||"en"}static set currentLanguage(t){Ie.languageCodeStorage.value=t,Ie.languageChange.dispatch(t)}static register(t,e){const n="object"==typeof e?new Map(Object.entries(e)):e,r=Ie.dictionariesByLanguageCode.get(t),o=new Map([...null!=r?r:[],...n]);Ie.dictionariesByLanguageCode.set(t,o)}static get currentLanguageDictionary(){return Ie.dictionariesByLanguageCode.get(Ie.currentLanguage)}static localize(t,e){var n;return Ie.currentLanguage===Ie.defaultLanguage||(null===(n=Ie.currentLanguageDictionary)||void 0===n?void 0:n.has(t))||console.warn(`[Localizer] No "${Ie.currentLanguage}" localization found for "${t}".`),Ie.getLocalization(t,e)}static matchLocalizationParameters(t){return[...t.matchAll(Ie.regex)].map((([t,e,n])=>({group:t,key:e,type:n})))}static getLocalization(t,e){var n,r,o,i,s;const a=Ie.matchLocalizationParameters(t),c=t=>a.reduce(((t,n)=>((t,e,n)=>{const r=a.find((t=>t.key===e));return(null==r?void 0:r.group)?t.replace(r.group,n).replace(`\${${r.key}}`,"function"==typeof(null==n?void 0:n.format)?n.format():n):t})(t,n.key,e[n.key])),t),l=null!==(r=null===(n=Ie.currentLanguageDictionary)||void 0===n?void 0:n.get(t))&&void 0!==r?r:t;if(!Array.isArray(l))return c(l);const d=null===(o=a.find((t=>t.type===Ie.pluralityIdentityType)))||void 0===o?void 0:o.key,u=d&&e[d]||0;return c(l[null!==(s=null===(i=ke.get(Ie.currentLanguage))||void 0===i?void 0:i(u))&&void 0!==s?s:0])}static getLocalizationParameter(t,e){Ie.matchLocalizationParameters(t).find((t=>t.key===e))}}Ie.defaultLanguage="en",Ie.pluralityIdentityType="pluralityNumber",Ie.languageCodeStorage=new Ee("Localizer.Language",void 0),Ie.dictionariesByLanguageCode=new Map,Ie.regex=/\${(.+?)(?::(.+?))?}/g,r([xe()],Ie,"languageChange",void 0),globalThis.t=Ie.localize;class Fe{static get(t){var e;return null!==(e=Fe.directions.get(t))&&void 0!==e?e:"ltr"}static updateAttributes(){window.document.body.setAttribute("lang",Ie.currentLanguage),window.document.body.setAttribute("dir",Fe.get(Ie.currentLanguage))}static add(t,...e){e.forEach((e=>Fe.directions.set(e,t)))}}Fe.directions=new Map,Fe.add("rtl","ar","hy","az","fa","he","ku","mdv","ur"),Fe.updateAttributes(),Ie.languageChange.subscribe((()=>Fe.updateAttributes()));class Oe extends ge{static requestUpdate(){for(const t of Oe.connectedComponents)t.requestUpdate()}constructor(t){super(t),this.host=t}hostConnected(){Oe.connectedComponents.add(this.host)}hostDisconnected(){Oe.connectedComponents.delete(this.host)}}Oe.connectedComponents=new Set,Ie.languageChange.subscribe((()=>Oe.requestUpdate())),S.addInitializer((t=>new Oe(t))),Number.prototype.format=function(t){var e;return Intl.NumberFormat(null!==(e=null==t?void 0:t.language)&&void 0!==e?e:Ie.currentLanguage,Object.assign({maximumFractionDigits:16,minimumFractionDigits:0,useGrouping:!1},t)).format(this||0)};const Ne=["BTC","AFN","EUR","ALL","DZD","USD","AOA","XCD","ARS","AMD","AWG","AUD","AZN","BSD","BHD","BDT","BBD","BYN","BZD","XOF","BMD","INR","BTN","BOB","BOV","BAM","BWP","NOK","BRL","BND","BGN","BIF","CVE","KHR","XAF","CAD","KYD","CLP","CLF","CNY","COP","COU","KMF","CDF","NZD","CRC","CUP","CUC","ANG","CZK","DKK","DJF","DOP","EGP","SVC","ERN","SZL","ETB","FKP","FJD","XPF","GMD","GEL","GHS","GIP","GTQ","GBP","GNF","GYD","HTG","HNL","HKD","HUF","ISK","IDR","XDR","IRR","IQD","ILS","JMD","JPY","JOD","KZT","KES","KPW","KRW","KWD","KGS","LAK","LBP","LSL","ZAR","LRD","LYD","CHF","MOP","MKD","MGA","MWK","MYR","MVR","MRU","MUR","XUA","MXN","MXV","MDL","MNT","MAD","MZN","MMK","NAD","NPR","NIO","NGN","OMR","PKR","PAB","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","SHP","WST","STN","SAR","RSD","SCR","SLL","SGD","XSU","SBD","SOS","SSP","LKR","SDG","SRD","SEK","CHE","CHW","SYP","SLE","TWD","TJS","TZS","THB","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","USN","UYU","UYI","UYW","UZS","VUV","VES","VED","VND","YER","ZMW","ZWL","XBA","XBB","XBC","XBD","XTS","XXX","XAU","XPD","XPT","XAG"];class Pe{constructor(t){if(this.code=t,!Ne.includes(t))throw new Error(`Invalid currency code: ${t}`)}toString(){return this.code}valueOf(){return this.code}get symbol(){var t,e;try{return null!==(e=null===(t=Intl.NumberFormat("de-DE",{style:"currency",currency:this.code,maximumFractionDigits:0}).formatToParts(0).find((t=>"currency"===t.type)))||void 0===t?void 0:t.value)&&void 0!==e?e:this.code}catch(t){return this.code}}}function Re(t){const e=null!=t?t:{},{language:n}=e,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["language"]),o=0===Object.keys(r).length;return[null!=n?n:Ie.currentLanguage,o?void 0:r]}(()=>{for(const t of Ne)Object.defineProperty(Pe,t,{get:()=>new Pe(t)})})(),Number.prototype.formatAsCurrency=function(...t){var e;const n=t[0]instanceof Pe||"string"==typeof t[0],[r,o]=[n?t[0]:void 0,n?t[1]:t[0]],i=r?r instanceof Pe?r:new Pe(r):void 0;return Intl.NumberFormat(null!==(e=null==o?void 0:o.language)&&void 0!==e?e:Ie.currentLanguage,Object.assign({style:i?"currency":"decimal",currency:null==i?void 0:i.code,useGrouping:!0,minimumFractionDigits:2,maximumFractionDigits:2},o)).format(this||0)},Number.prototype.formatAsUnit=function(t,e){var n;return Intl.NumberFormat(null!==(n=null==e?void 0:e.language)&&void 0!==n?n:Ie.currentLanguage,Object.assign({style:"unit",unit:t},e)).format(this||0)},Number.prototype.formatAsPercent=function(t){var e;return Intl.NumberFormat(null!==(e=null==t?void 0:t.language)&&void 0!==e?e:Ie.currentLanguage,Object.assign({style:"percent",useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:2},t)).format(this/100||0)},String.prototype.toNumber=function(t=Ie.currentLanguage){var e,n,r,o;const i=this.replace(/ /g,""),s=null!==(n=null===(e=Intl.NumberFormat(t).formatToParts(1e3).find((t=>"group"===t.type)))||void 0===e?void 0:e.value)&&void 0!==n?n:"",a=null!==(o=null===(r=Intl.NumberFormat(t).formatToParts(1.1).find((t=>"decimal"===t.type)))||void 0===r?void 0:r.value)&&void 0!==o?o:"",c=parseFloat(i.replace(new RegExp(`\\${s}`,"g"),"").replace(new RegExp(`\\${a}`),"."));return Number.isNaN(c)?void 0:c},Date.prototype.format=function(t){const[e,n]=Re(t);return Intl.DateTimeFormat(e,null!=n?n:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"shortOffset"}).format(this)},Date.prototype.formatAsDate=function(t){const[e,n]=Re(t);return Intl.DateTimeFormat(e,null!=n?n:{year:"numeric",month:"2-digit",day:"2-digit"}).format(this)},Date.prototype.formatAsTime=function(t){const[e,n]=Re(t);return Intl.DateTimeFormat(e,null!=n?n:{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"shortOffset"}).format(this)};const Ue=36e11,He=864e11,Ye=[1,1e3,1e6,1e9,6e10,Ue,He],Le=[9,6,3];function ze(t){return t<=6}function je(t){return t>=6}const Be=Ve("overflow",{constrain:0,reject:1},0);function Ve(t,e,n){const r=function(t,e,n){return(r,o)=>{if(void 0===r){const e=null!=o?o:n;if(void 0===e)throw new RangeError(`Must specify a ${t}`);return e}if(void 0===e[r])throw new RangeError(`Invalid ${t}: ${r}`);return e[r]}}(t,e,n);return(e,n)=>{const o=Ge(e);return r(o[t],n)}}function Ze(t,e,n,r){if(void 0===t)return e;if(!Number.isFinite(t))throw new RangeError("Number must be finite");t=Math.trunc(t);const o=Math.min(Math.max(t,e),n);if(o!==t&&1===r)throw new RangeError("Invalid overflowed value "+t);return o}function qe(t,e){const n={};for(const r in e)void 0!==t[r]&&(n[r]=e[r](t[r]));return n}function Ge(t,e){if(void 0===t&&!e)return{};if(!Ke(t))throw TypeError("options must be an object or undefined");return t}const We=/object|function/;function Ke(t){return null!==t&&We.test(typeof t)}const Xe=Ve("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Je(){const t=new WeakMap;return[t.get.bind(t),t.set.bind(t)]}function Qe(t,e){Object.defineProperties(t.prototype,tn(e,(t=>({get:t}))))}function tn(t,e){const n={};for(const r in t)n[r]=e(t[r],r);return n}function en(t,e,n){const r={};for(const o of e)r[o]=n(t[o]);return r}function nn(t,e){const n={};return t.forEach(((t,r)=>{n[t]=e(t,r)})),n}const rn=["nanosecond","microsecond","millisecond","second","minute","hour"],on=[...rn,"day","week","month","year"],sn=on.map((t=>t+"s")),an=nn(on,((t,e)=>e)),cn=nn(sn,((t,e)=>e));function ln(t,e,n,r){var o;let i;if(void 0===t){if(void 0===e)throw new RangeError("Unit is required");i=e}else if(i=null!=(o=an[t])?o:cn[t],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+t);return i}function dn(t,e,n,r,o,i){var s;const a=Ge(t),c=null!=(s=a.roundingIncrement)?s:1,l=ln(a.smallestUnit,n,r,o),d=Xe(a,i?Math.round:Math.trunc);let u=a.largestUnit;"auto"===u&&(u=void 0);const h=ln(u,e=Math.max(e,l),r,o);if(l>h)throw new RangeError("Bad smallestUnit/largestUnit");if(l<6){const t=Ye[l+1],e=Ye[l]*c;if(t===e)throw new RangeError("Must not equal larger unit");if(t%e)throw new RangeError("Must divide into larger unit")}return{smallestUnit:l,largestUnit:h,roundingFunc:d,roundingIncrement:c}}function un(t,e,n,r){var o;const i=Ge("string"==typeof t?{smallestUnit:t}:t,!0),s=null!=(o=i.roundingIncrement)?o:1,a=ln(i.smallestUnit,void 0,e,n),c=Xe(i,Math.round),l=Ye[a]*s;if(6===a){if(1!==s)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const t=r?He:Ye[a+1];if(!r&&t===l)throw new RangeError("Must not equal larger unit");if(t%l)throw new RangeError("Must divide into larger unit")}return{smallestUnit:a,roundingFunc:c,incNano:l}}const hn=Symbol();function pn(t,e,...n){return e instanceof t?e:t.from(e,...n)}class mn{toJSON(){return this.toString()}}class fn extends mn{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[gn,vn]=Je();class yn extends fn{constructor(t){super(),vn(this,Object.freeze(t))}getISOFields(){return gn(this)}}function bn(t,e){return t<e?-1:t>e?1:0}function wn(t){return bn(t,0)}function Sn(t,e,n){return n(t/e)*e}function $n(t){return Sn(t,6e10,Cn)}function Cn(t){return Math.round(Math.abs(t))*wn(t)}function An(t,e,n){const r=t.div(e).mult(e),o=t.sub(r).toNumber();return r.add(n(o/e)*e)}function Mn(t,e){return(t%e+e)%e}function Dn(t,e){return _n(n=String(t),e,"0")+n;var n}function Tn(t,e,n){return t+_n(t,e,n)}function _n(t,e,n){return new Array(Math.max(0,e-t.length+1)).join(n)}function xn(t){return t<0?"-":"+"}const En=Math.pow(10,8);class kn{constructor(t,e){this.high=t,this.low=e}sign(){return wn(this.high)||wn(this.low)}neg(){return new kn(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(t){const[e,n]=On(t);return Nn(this.high+e,this.low+n)}sub(t){const[e,n]=On(t);return Nn(this.high-e,this.low-n)}mult(t){return Nn(this.high*t,this.low*t)}div(t){const e=this.high/t;let n=String(e);-1!==n.indexOf("e-")&&(n=e.toFixed(20));const r=n.indexOf(".");let o=0;if(-1!==r){let t=n.substr(r+1);t=Tn(t,8,"0"),t=t.substr(0,8),o=parseInt(t)*(wn(e)||1)}return Nn(Math.trunc(e)||0,Math.trunc(this.low/t)+o)}toNumber(){return this.high*En+this.low}toBigInt(){return BigInt(this.high)*BigInt(En)+BigInt(this.low)}}function In(t,e){let n,r;if(t instanceof kn)n=t.high,r=t.low;else if("number"==typeof t){if(e)throw new TypeError("Must supply bigint, not number");n=Math.trunc(t/En),r=t%En||0}else if("bigint"==typeof t){const e=BigInt(En);n=Number(t/e),r=Number(t%e||0)}else{if("string"!=typeof t)throw new Error("Invalid type of BigNano");{if((t=t.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${t} to a BigInt`);const e=t.length-8;n=Number(t.substr(e)),r=Number(t.substr(0,e))}}return new kn(n,r)}function Fn(t,e){return bn(t.high,e.high)||bn(t.low,e.low)}function On(t){return"number"==typeof t?[0,t]:[t.high,t.low]}function Nn(t,e){let n=e%En||0,r=t+Math.trunc(e/En);const o=wn(r),i=wn(n);return i&&o&&i!==o&&(r+=i,n-=En*i),new kn(r,n)}const Pn=sn.concat("sign");function Rn(t){return en(t,Pn,(t=>-t||0))}function Un(t,e){var n,r,o,i,s,a,c,l,d,u;return Hn({years:null!=(n=e.years)?n:t.years,months:null!=(r=e.months)?r:t.months,weeks:null!=(o=e.weeks)?o:t.weeks,days:null!=(i=e.days)?i:t.days,hours:null!=(s=e.hours)?s:t.hours,minutes:null!=(a=e.minutes)?a:t.minutes,seconds:null!=(c=e.seconds)?c:t.seconds,milliseconds:null!=(l=e.milliseconds)?l:t.milliseconds,microseconds:null!=(d=e.microseconds)?d:t.microseconds,nanoseconds:null!=(u=e.nanoseconds)?u:t.nanoseconds})}function Hn(t){return{...t,sign:Yn(t)}}function Yn(t){let e=0;for(const n of sn)if(t[n]){e=wn(t[n]);break}return e}function Ln(t){let e=9;for(;e>0&&!t[sn[e]];)e--;return e}const zn={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},jn={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function Bn(t){return{isoHour:t.hour||0,isoMinute:t.minute||0,isoSecond:t.second||0,isoMillisecond:t.millisecond||0,isoMicrosecond:t.microsecond||0,isoNanosecond:t.nanosecond||0}}function Vn(t){return In(He).mult(t.days).add(Zn(t))}function Zn(t){return In(t.nanoseconds).add(In(t.microseconds).mult(1e3)).add(In(t.milliseconds).mult(1e6)).add(In(t.seconds).mult(1e9)).add(In(t.minutes).mult(6e10)).add(In(t.hours).mult(Ue))}function qn(t){return t.isoHour*Ue+6e10*t.isoMinute+1e9*t.isoSecond+1e6*t.isoMillisecond+1e3*t.isoMicrosecond+t.isoNanosecond}function Gn(t,e){let n,r=0,o=0,i=0,s=0,a=0,c=0;switch(e){case 6:n=t.div(He),r=n.toNumber(),t=t.sub(n.mult(He));case 5:n=t.div(Ue),o=n.toNumber(),t=t.sub(n.mult(Ue));case 4:n=t.div(6e10),i=n.toNumber(),t=t.sub(n.mult(6e10));case 3:n=t.div(1e9),s=n.toNumber(),t=t.sub(n.mult(1e9));case 2:n=t.div(1e6),a=n.toNumber(),t=t.sub(n.mult(1e6));case 1:n=t.div(1e3),c=n.toNumber(),t=t.sub(n.mult(1e3))}return Hn({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:s,milliseconds:a,microseconds:c,nanoseconds:t.toNumber()})}function Wn(t){const e=Math.floor(t/He);t-=e*He;const n=Math.floor(t/Ue);t-=n*Ue;const r=Math.floor(t/6e10);t-=6e10*r;const o=Math.floor(t/1e9);t-=1e9*o;const i=Math.floor(t/1e6);t-=1e6*i;const s=Math.floor(t/1e3);return[{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:s,isoNanosecond:t-=1e3*s},e]}const Kn={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class Xn{constructor(t){this.id=t}monthCode(t,e){return"M"+Dn(t,2)}convertMonthCode(t,e){const n=/L$/.test(t),r=parseInt(t.substr(1));if(n)throw new RangeError("Calendar system doesnt support leap months");return[r,!1]}}function Jn(t,e,n,r){var o;let i=null==(o=Kn[Qn(t)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+e)*(wn(i)||1)}function Qn(t){return t.split("-")[0]}class tr extends Xn{computeFields(t){const e=cr(t);return{era:void 0,eraYear:void 0,year:e.isoYear,month:e.isoMonth,day:e.isoDay}}epochMilliseconds(t,e,n){return sr(t,e,n)}daysInMonth(t,e){return 2===e?this.inLeapYear(t)?29:28:4===e||6===e||9===e||11===e?30:31}monthsInYear(){return 12}inLeapYear(t){return t%4==0&&(t%100!=0||t%400==0)}guessYearForMonthDay(){return nr}normalizeISOYearForMonthDay(){return nr}}const er=new tr("iso8601"),nr=1972,rr=Symbol();function or(t){return ir(t.isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond)}function ir(t,e,n,r,o,i,s,a,c){return In(sr(t,e,n,r,o,i,s)).mult(1e6).add(1e3*(null!=a?a:0)+(null!=c?c:0))}function sr(t,e,n,r,o,i,s){const a=wn(t);let c,l,d=0;const u=t>=0&&t<1e3,h=u?t+1200:t;for(;d<31;d++){c=n-a*d;const t=Date.UTC(h,e-1,c,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=s?s:0);if(!mr(t)){l=t+a*d*864e5;break}}return(void 0===l||c<1||c>er.daysInMonth(t,e))&&fr(),u&&(l=new Date(l).setUTCFullYear(t)),l}function ar(t){let e=t.div(1e6),n=t.sub(e.mult(1e6)).toNumber();n<0&&(n+=1e6,e=e.sub(1));const r=Math.floor(n/1e3);return n-=1e3*r,{...cr(e.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function cr(t){const[e,n]=pr(t);return{isoYear:e.getUTCFullYear(),isoMonth:e.getUTCMonth()+1,isoDay:e.getUTCDate()+n,isoHour:e.getUTCHours(),isoMinute:e.getUTCMinutes(),isoSecond:e.getUTCSeconds(),isoMillisecond:e.getUTCMilliseconds()}}function lr(t){var e;return null!=(e=t[rr])?e:or(t.getISOFields())}function dr(t){return Math.floor(sr(t,1,1)/1e3)}function ur(t){return pr(t.div(1e6).toNumber())[0].getUTCFullYear()}function hr(t,e,n){const[r,o]=pr(sr(t,e,n));return Mn(r.getUTCDay()+o,7)||7}function pr(t){const e=wn(t);let n,r=0;for(;r<31;r++){const o=new Date(t-e*r*864e5);if(!mr(o)){n=o;break}}return void 0===n&&fr(),[n,e*r]}function mr(t){return isNaN(t.valueOf())}function fr(){throw new RangeError("Date outside of supported range")}function gr(t,e){return Math.round((e-t)/864e5)}function vr(t,e){return t+864e5*e}function yr(t,e){return!br(t,e)&&t.calendar.toString()===e.calendar.toString()}function br(t,e){return Fn(or(t.getISOFields()),or(e.getISOFields()))}function wr(t,e){return bn(qn(t.getISOFields()),qn(e.getISOFields()))}function Sr(t,e){return bn(t.year,e.year)||bn(t.month,e.month)||bn(t.day,e.day)}function $r(t,e){return Fn(t[rr],e[rr])}function Cr(t,e,n,r,o){return[t=Number(t),e=Ze(e,1,r.monthsInYear(t),o),n=Ze(n,1,r.daysInMonth(t,e),o)]}function Ar(t,e){const[n,r,o]=Cr(t.isoYear,t.isoMonth,t.isoDay,er,e);return{isoYear:n,isoMonth:r,isoDay:o}}function Mr(t,e){return{...Ar(t,e),...Dr(t,e)}}function Dr({isoHour:t,isoMinute:e,isoSecond:n,isoMillisecond:r,isoMicrosecond:o,isoNanosecond:i},s){return{isoHour:t=Ze(t,0,23,s),isoMinute:e=Ze(e,0,59,s),isoSecond:n=Ze(n,0,59,s),isoMillisecond:r=Ze(r,0,999,s),isoMicrosecond:o=Ze(o,0,999,s),isoNanosecond:i=Ze(i,0,999,s)}}const Tr={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},_r={...Tr,day:Number},xr={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},Er={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},kr=nn(sn,(()=>Number));class Ir extends tr{computeFields(t){const e=super.computeFields(t),{year:n}=e;return{...e,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const Fr=Ve("calendarName",{auto:0,never:1,always:2},0),Or=Ve("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function Nr(t,e=4){const n=Ge(t),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,s=0,a=1;return void 0!==r?(s=ln(r,void 0,0,e),a=Ye[s],i=Le[s]||0):void 0!==o&&"auto"!==o&&(i=Ze(o,0,9,1),a=Math.pow(10,9-i)),{smallestUnit:s,fractionalSecondDigits:i,roundingFunc:Xe(t,Math.trunc),incNano:a}}const Pr=Ve("timeZoneName",{auto:0,never:1},0);function Rr(t,e){return Ur(t)+"T"+Yr(t,e)}function Ur(t){return Hr(t)+"-"+Dn(t.isoDay,2)}function Hr(t){const{isoYear:e}=t;return(e<1e3||e>9999?xn(e)+Dn(Math.abs(e),6):Dn(e,4))+"-"+Dn(t.isoMonth,2)}function Yr(t,e){const n=[Dn(t.isoHour,2)];return e.smallestUnit<=4&&(n.push(Dn(t.isoMinute,2)),e.smallestUnit<=3&&n.push(Dn(t.isoSecond,2)+Br(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,e.fractionalSecondDigits)[0])),n.join(":")}function Lr(t){const[e,n]=Wn(Math.abs(t)),r=Br(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,void 0)[0];return xn(t)+Dn(e.isoHour+24*n,2)+":"+Dn(e.isoMinute,2)+(e.isoSecond||r?":"+Dn(e.isoSecond,2)+r:"")}function zr(t,e){return t&&(2===e||1!==e&&"iso8601"!==t)?`[u-ca=${t}]`:""}function jr(t){return t.map((([t,e,n])=>n||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+e:"")).join("")}function Br(t,e,n,r,o,i){let s=In(t).mult(1e6).add(In(e).mult(1e3)).add(n);o&&(s=An(s,void 0===r?Ye[i]:Math.pow(10,9-r),o));const a=s.abs(),c=a.div(1e9);let l=Dn(a.sub(c.mult(1e9)).toNumber(),9);return l=void 0===r?l.replace(/0+$/,""):l.substr(0,r),[l?"."+l:"",c.toNumber()*(s.sign()||1)]}function Vr(t){Qe(t,{epochNanoseconds(){return this[rr].toBigInt()},epochMicroseconds(){return this[rr].div(1e3).toBigInt()},epochMilliseconds(){return this[rr].div(1e6).toNumber()},epochSeconds(){return this[rr].div(1e9).toNumber()}})}const Zr={calendar:"calendar"};for(const t of on)Zr[t]="iso"+((qr=t).charAt(0).toUpperCase()+qr.slice(1));var qr;function Gr(t,e=[]){Qe(t,nn(e.concat("calendar"),(t=>function(){return this.getISOFields()[Zr[t]]})))}const Wr=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],Kr=[...Wr,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Xr(t,e){Qe(t,nn(e,(t=>function(){const e=this.calendar[t](this);return Object.defineProperty(this,t,{value:e}),e})))}function Jr(t,e){(t.prototype||t)[Symbol.toStringTag]="Temporal."+e}const Qr=Ve("offset",{prefer:0,use:1,ignore:2,reject:3});function to(t,e,n=0){const r=t.getPossibleInstantsFor(e);if(1===r.length)return r[0];if(3===n)throw new RangeError("Ambiguous offset");if(r.length)return r[2===n?1:0];{const r=function(t,e){const n=lr(e),r=t.getOffsetNanosecondsFor(new da(n.sub(He)));return t.getOffsetNanosecondsFor(new da(n.add(He)))-r}(t,e),o=t.getPossibleInstantsFor(e.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function eo({year:t,month:e,day:n},r,o,i){t+=r;const s=Ze(e,1,o.monthsInYear(t),i);let a=e===s?n:1;return a=Ze(a,1,o.daysInMonth(t,s),i),{year:t,month:s,day:a}}function no({year:t,month:e,day:n},r,o,i){if(r){if(e+=r,r<0)for(;e<1;)e+=o.monthsInYear(--t);else{let n;for(;e>(n=o.monthsInYear(t));)e-=n,t++}n=Ze(n,1,o.daysInMonth(t,e),i)}return{year:t,month:e,day:n}}function ro({isoYear:t,isoMonth:e,isoDay:n},r){if(r){let o=sr(t,e,n);o=vr(o,r),({isoYear:t,isoMonth:e,isoDay:n}=cr(o))}return{isoYear:t,isoMonth:e,isoDay:n}}function oo(t,e){if(Ln(e)>=6)throw new RangeError("Duration cant have units >= days");return t.add(Zn(e))}function io(t,e,n=3,r){const{offsetNanoseconds:o,timeZone:i,Z:s}=t;if(void 0!==o&&2!==n){if(1===n||s)return or(t).sub(o);{const r=so(t,o,i,e);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return to(i,Ss(t),Or(r))[rr]}function so(t,e,n,r){const o=n.getPossibleInstantsFor(Ss(t)),i=or(t),s=r?$n(e):e;for(const t of o){const e=t[rr],n=i.sub(e).toNumber();if((r?$n(n):n)===s)return e}}function ao(t){const{timeZone:e}=t,n={...t,...zn,calendar:new Ws("iso8601")},r={...ro(n,1),...zn,calendar:new Ws("iso8601")},o=to(e,Ss(n))[rr];return to(e,Ss(r))[rr].sub(o).toNumber()}const co="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",lo="([+-])"+co,uo="(Z|"+lo+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",ho=bo("([+-]\\d{6}|\\d{4})-?(\\d{2})"+uo),po=bo("(--)?(\\d{2})-?(\\d{2})"+uo),mo=bo("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+uo),fo=bo("T?"+co+uo),go=bo(lo),vo=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,yo=/\u2212/g;function bo(t){return new RegExp(`^${t}$`,"i")}function wo(t){return t.replace(yo,"-")}function So(t){const e=Mo(t);if(!e)throw Ro("dateTime",t);return e}function $o(t){const e=Do(t);if(!e)throw Ro("dateTime",t);return e}function Co(t){const e=xo(t);if(void 0===e)throw Ro("timeZone",t);return e}const Ao=/^Z$/i;function Mo(t){const e=mo.exec(wo(t));if(e)return function(t){const e=t[11];let n,r=!1;return e&&(r=Ao.test(e),n=r?0:Io(t.slice(12))),{...Eo(t),timeZone:t[21],offsetNanoseconds:n,Z:r}}(e.slice(1))}function Do(t,e,n){const r=mo.exec(wo(t));if(r&&(n||!Ao.test(r[12]))&&(!e||r[4]))return Eo(r.slice(1))}function To(t){const e=ho.exec(wo(t));if(e)return{calendar:(n=e.slice(1))[14],isoYear:No(n[0]),isoMonth:No(n[1]),isoDay:1};var n}function _o(t){const e=po.exec(wo(t));if(e)return{calendar:(n=e.slice(1))[15],isoYear:nr,isoMonth:No(n[1]),isoDay:No(n[2])};var n}function xo(t){const e=go.exec(wo(t));if(e)return Io(e.slice(1))}function Eo(t){return{calendar:t[23],isoYear:No(t[0]),isoMonth:No(t[1]),isoDay:No(t[2]),...ko(t.slice(4))}}function ko(t){const e=Oo(t[4]);return{...Wn(Fo(t[6]||""))[0],isoHour:Oo(t[0]),isoMinute:Oo(t[2]),isoSecond:60===e?59:e}}function Io(t){return("+"===t[0]?1:-1)*function(t){return Oo(t[0])*Ue+6e10*Oo(t[2])+1e9*Oo(t[4])+Fo(t[6]||"")}(t.slice(1))}function Fo(t){return parseInt(Tn(t,9,"0"))}function Oo(t){return parseInt(t||"0")}function No(t){return parseInt(t||"1")}function Po(t){return void 0===t?void 0:parseInt(t)}function Ro(t,e){throw new RangeError(`Cannot parse ${t} '${e}'`)}function Uo(t){return{...t,calendar:void 0===t.calendar?Ks():new Ws(t.calendar)}}function Ho(t){return{...Uo(t),timeZone:new ei(t.timeZone)}}class Yo{constructor(t){this.id=t}}class Lo extends Yo{constructor(t,e){super(t),this.offsetNano=e}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function zo(t,e){const n={},r=t.formatToParts(e);for(const t of r)n[t.type]=t.value;return n}const jo={bc:"bce",ad:"ce"};function Bo(t){return t=t.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),jo[t]||t}const Vo=Intl.DateTimeFormat;function Zo(t){return[].concat(t||[])}const qo={"Pacific/Apia":{2011:[[Go(13017528e5),-36e12,-396e11],[Go(13168728e5),-396e11,-36e12],[Go(13252392e5),-36e12,504e11]]}};function Go(t){return In(t).mult(1e6)}const Wo=(new Date).getUTCFullYear()+10,Ko=[182,91,273];class Xo extends Yo{constructor(t){const e=new Vo("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:t});super(e.resolvedOptions().timeZone),this.format=e,this.yearEndOffsets={},this.transitionsInYear=qo[t]||{}}getPossibleOffsets(t){let e;const n=[this.getTransition(t,-1),this.getTransition(t.sub(1),1)].filter(Boolean);for(const r of n){const[n,o,i]=r,s=t.sub(o),a=t.sub(i);if(Fn(n,s)>0&&Fn(n,a)>0)return[o];if(!(Fn(n,s)<=0&&Fn(n,a)<=0))return o<i?[]:[o,i];e=i}return void 0!==e?[e]:[1e9*this.getYearEndOffsetSec(ur(t))]}getOffset(t){return 1e9*this.getOffsetForEpochSecs(t.div(1e9).toNumber())}getOffsetForEpochSecs(t){const e=zo(this.format,1e3*t);let n=parseInt(e.year);"bce"===Bo(e.era)&&(n=-(n-1));const r=sr(n,parseInt(e.month),parseInt(e.day),parseInt(e.hour),parseInt(e.minute),parseInt(e.second));return Math.floor(r/1e3)-t}getTransition(t,e){let n=ur(t);if(n>Wo){const r=this.getTransitionFrom(n,n+e,e,t);if(r||e>0)return r;n=Wo}return this.getTransitionFrom(Math.max(n,1847),e<0?1846:Wo,e,t)}getTransitionFrom(t,e,n,r){for(;t!==e;t+=n){let e=this.getTransitionsInYear(t);n<0&&(e=e.slice().reverse());for(const t of e)if(Fn(t[0],r)===n)return t}}getYearEndOffsetSec(t){const{yearEndOffsets:e}=this;return e[t]||(e[t]=this.getOffsetForEpochSecs(dr(t+1)-1))}getTransitionsInYear(t){const{transitionsInYear:e}=this;return e[t]||(e[t]=this.computeTransitionsInYear(t))}computeTransitionsInYear(t){const e=this.getYearEndOffsetSec(t-1),n=this.getYearEndOffsetSec(t),r=dr(t)-1,o=dr(t+1)-1;if(e!==n)return[this.searchTransition(r,o,e,n)];const i=this.searchIsland(e,r);return void 0!==i?[this.searchTransition(r,i[0],e,i[1]),this.searchTransition(i[0],o,i[1],n)]:[]}searchTransition(t,e,n,r){for(;e-t>1;){const r=Math.floor(t+(e-t)/2);this.getOffsetForEpochSecs(r)===n?t=r:e=r}return[In(e).mult(1e9),1e9*n,1e9*r]}searchIsland(t,e){for(const n of Ko){const r=e+86400*n,o=this.getOffsetForEpochSecs(r);if(o!==t)return[r,o]}}}const Jo={UTC:new Lo("UTC",0)},[Qo,ti]=Je();class ei extends mn{constructor(t){if(!t)throw new RangeError("Invalid timezone ID");super(),ti(this,function(t){const e=(t=String(t)).toLocaleUpperCase();if(Jo[e])return Jo[e];const n=xo(t);if(void 0!==n){if(Math.abs(n)>He)throw new RangeError("Offset out of bounds");return new Lo(Lr(n),n)}return Jo[e]=new Xo(t)}(t))}static from(t){if(Ke(t))return function(t){const e=t.timeZone;return void 0===e?t:Ke(e)&&void 0===e.timeZone?e:new ei(e)}(t);const e=Mo(String(t));if(e){if(e.timeZone){const t=Ho(e);return function(t){const{offsetNanoseconds:e,timeZone:n,Z:r}=t;if(void 0!==e&&!r&&void 0===so(t,e,n,!0))throw new RangeError("Mismatching offset/timezone")}(t),t.timeZone}if(e.Z)return new ei("UTC");if(void 0!==e.offsetNanoseconds)return new ei(Lr(e.offsetNanoseconds))}return new ei(String(t))}get id(){return this.toString()}getOffsetStringFor(t){return Lr(this.getOffsetNanosecondsFor(t))}getOffsetNanosecondsFor(t){const e=pn(da,t);return Qo(this).getOffset(e[rr])}getPlainDateTimeFor(t,e=Ks()){const n=pn(da,t);return Ss({...ar(n[rr].add(this.getOffsetNanosecondsFor(n))),calendar:pn(Ws,e)})}getInstantFor(t,e){return to(this,pn(ws,t),Or(e))}getPossibleInstantsFor(t){const e=or(pn(ws,t).getISOFields());return Qo(this).getPossibleOffsets(e).map((t=>new da(e.sub(t))))}getPreviousTransition(t){const e=pn(da,t),n=Qo(this).getTransition(e[rr],-1);return n?new da(n[0]):null}getNextTransition(t){const e=pn(da,t),n=Qo(this).getTransition(e[rr],1);return n?new da(n[0]):null}toString(){return Qo(this).id}}function ni(t){if(void 0===t.timeZone)throw new TypeError("Must specify timeZone");return pn(ei,t.timeZone)}Jr(ei,"TimeZone");const ri=Mi((function(t,e,n){const r=gi(t,e,n);if(r)return{...r,timeZone:ni(t),offsetNanoseconds:void 0!==t.offset?Co(String(t.offset)):void 0}})),oi=Mi(gi),ii=Mi(vi),si=Mi((function(t,e){const n=Qs(t),r=$i(t,Tr,n);if(Di(r))return n.yearMonthFromFields(r,e)})),ai=Mi((function(t,e){const n=Qs(t),r=$i(t,Er,n);if(Di(r))return void 0===t.year&&void 0===t.calendar&&(r.year=nr),n.monthDayFromFields(r,e)})),ci=Mi(yi),li=Mi((function(t,e,n,r){const o=bi(t,e,n,r),i=void 0!==e.offset;if(o||i)return{...o||t.getISOFields(),timeZone:t.timeZone,offsetNanoseconds:i?Co(String(e.offset)):t.offsetNanoseconds}}),!0),di=Mi(bi,!0),ui=Mi(wi,!0),hi=Mi((function(t,e,n){const r=t.calendar;if(Di($i(e,Tr,r))){const o=Ai(t,e,Tr,r);return r.yearMonthFromFields(o,n)}}),!0),pi=Mi((function(t,e,n){const r=t.calendar;if(Di($i(e,Er,r))){const o=Ai(t,e,Er,r);return r.monthDayFromFields(o,n)}}),!0),mi=Mi(Si,!0),fi=Mi((function(t){const e=qe(t,kr);if(Di(e))return e}));function gi(t,e,n){const r=vi(t,n),o=yi(t,e);if(r)return{...r.getISOFields(),...o||zn}}function vi(t,e){const n=Qs(t),r=$i(t,_r,n);if(Di(r))return n.dateFromFields(r,e)}function yi(t,e){const n=qe(t,xr);if(Di(n))return Dr(Bn(n),e)}function bi(t,e,n,r){const o=wi(t,e,r),i=Si(t,e,n);if(o||i)return{...t.getISOFields(),...o?o.getISOFields():{},...i}}function wi(t,e,n){const r=t.calendar,o=$i(e,_r,r);if(Di(o)){const e=Ai(t,o,_r,r);return r.dateFromFields(e,n)}}function Si(t,e,n){const r=qe(e,xr);if(Di(r))return Dr(Bn((o=t,i=r,tn(xr,((t,e)=>{var n;return null!=(n=i[e])?n:o[e]})))),n);var o,i}function $i(t,e,n){let r=Object.keys(e);return r=n.fields?Array.prototype.slice.call(n.fields(r)):Object.keys(Ci(n,r)),Ci(t,r)}function Ci(t,e){const n={};for(const r of e)void 0!==t[r]&&(n[r]=t[r]);return n}function Ai(t,e,n,r){const o=$i(t,n,r);return r.mergeFields?r.mergeFields(o,e):Xs(o,e)}function Mi(t,e){return(...n)=>{if(e){const t=n[1];if(!Ke(t))throw new TypeError("must be object-like");if(void 0!==t.calendar)throw new TypeError("calendar not allowed");if(void 0!==t.timeZone)throw new TypeError("timeZone not allowed")}const r=t(...n);if(!r)throw new TypeError("No valid fields");return r}}function Di(t){return Object.keys(t).length>0}const Ti=In(He).mult(1e8),_i=Ti.mult(-1),xi=Ti.add(86399999999999),Ei=_i.sub(86399999999999);function ki(t,e){const n=or(t);Ii(n),js(n,e)}function Ii(t){-1!==Fn(t,Ei)&&1!==Fn(t,xi)||fr()}function Fi(t,e){const n=Ni(qn(t),e),[r,o]=Wn(n);return{...ro(t,o),...r}}function Oi(t,e){const n=Ni(qn(t),e),[r]=Wn(n);return r}function Ni(t,e){return Sn(t,e.incNano,e.roundingFunc)}function Pi(t,e,n){return(r,o)=>{const i=zi(t,o)?{}:{...t,...e};return{buildKey:Li(r,o,!1),buildFormat:function(t,e){return new Vo(r,{calendar:t,timeZone:e||void 0,...i,...o,...n})},buildEpochMilli:Ri}}}function Ri(t){return t.epochMilliseconds}function Ui(t,e,n){return(r,o)=>{const i=zi(t,o)?{}:t;return{buildKey:Li(r,o,n),buildFormat:function(t,n){return new Vo(r,{calendar:t,...i,...o,...e,timeZone:n,timeZoneName:void 0})},buildEpochMilli:void 0!==o.timeZone?Hi.bind(null,new ei(o.timeZone)):Yi}}}function Hi(t,e){const n=Ss({...zn,...e.getISOFields()});return t.getInstantFor(n).epochMilliseconds}function Yi(t){return sr((e=t.getISOFields()).isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond);var e}function Li(t,e,n){var r;const o=null!=(r=e.calendar)?r:function(t){for(const e of t){const t=e.match(/-u-ca-(.*)$/);if(t)return t[1]}}(t),i=e.timeZone;return function(t,e){var r,s,a,c;const l=null==(r=t.calendar)?void 0:r.id,d=null==(s=t.timeZone)?void 0:s.id;if(e){if((null==(a=e.calendar)?void 0:a.id)!==l)throw new RangeError("Mismatching calendar");if((null==(c=e.timeZone)?void 0:c.id)!==d)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==l)&&void 0!==l&&void 0!==o&&o!==l)throw new RangeError("Non-iso calendar mismatch");if(void 0!==d&&void 0!==i&&i!==d)throw new RangeError("Given timeZone must agree");return[o||l||"iso8601",i||d||"UTC"]}}function zi(t,e){for(const n in t)if(void 0!==e[n])return!0;return!1}function ji(t,e){t.prototype.toLocaleString=function(t,n){const r=e(Zo(t),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},t.prototype[hn]=e}function Bi(t){return null==t?void 0:t[hn]}function Vi(t,e,n,r){if(void 0!==t){if(void 0!==r)throw new RangeError("Partial units must be last unit");return[parseInt(t),void 0!==e?Fo(e)*(Ye[n]/1e9):void 0]}if(void 0!==r){const t=Math.trunc(r/Ye[n]);return[t,r-t*Ye[n]]}return[void 0,void 0]}const Zi=Ve("offset",{auto:0,never:1},0);class qi extends yn{constructor(t=0,e=0,n=0,r=0,o=0,i=0){super({...Dr({isoHour:t,isoMinute:e,isoSecond:n,isoMillisecond:r,isoMicrosecond:o,isoNanosecond:i},1),calendar:Ks()})}static from(t,e){const n=Be(e);return Gi(t instanceof qi?t.getISOFields():"object"==typeof t?ci(t,n):function(t){let e=function(t){const e=fo.exec(wo(t));if(e)return ko(e.slice(1))}(t);if(void 0!==e){if("T"!==t.charAt(0)){const n=To(t)||_o(t);n&&function(t){try{return Ar(t,1),!0}catch(t){return!1}}(n)&&(e=void 0)}}else e=Do(t,!0);if(void 0===e)throw Ro("time",t);return e}(String(t)))}static compare(t,e){return wr(pn(qi,t),pn(qi,e))}with(t,e){return Gi(mi(this,t,Be(e)))}add(t){return Ki(this,pn(vs,t))}subtract(t){return Ki(this,Rn(pn(vs,t)))}until(t,e){return Xi(this,pn(qi,t),e)}since(t,e){return Xi(pn(qi,t),this,e)}round(t){const e=un(t,0,5);return Gi(Oi(this.getISOFields(),e))}equals(t){return!wr(this,pn(qi,t))}toString(t){const e=Nr(t);return Yr(Oi(this.getISOFields(),e),e)}toZonedDateTime(t){const e=pn(ra,t.plainDate),n=pn(ei,t.timeZone);return is({...e.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(t){return pn(ra,t).toPlainDateTime(this)}}function Gi(t){return new qi(t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond)}function Wi(t){return pn(qi,null!=t?t:{hour:0})}function Ki(t,e){return Gi(function(t,e){const n=qn(t)+Zn(e).toNumber(),[r]=Wn(n);return r}(t.getISOFields(),e))}function Xi(t,e,n){const r=dn(n,5,0,0,5);return ys(function(t,e,n){return Gn(In(Sn(qn(e)-qn(t),Ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(t.getISOFields(),e.getISOFields(),r))}Jr(qi,"PlainTime"),Gr(qi,rn),ji(qi,(function(t,e){return{buildKey:()=>["",""],buildFormat:()=>new Vo(t,{hour:"numeric",minute:"2-digit",second:"2-digit",...e,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:t=>Math.trunc(qn(t.getISOFields())/1e6)}}));const Ji={day:1};class Qi extends yn{constructor(t,e,n=Ks(),r=1){const o=Ar({isoYear:t,isoMonth:e,isoDay:r},1),i=pn(Ws,n);var s,a;s=o,a=i.toString(),js(or(s),a),super({...o,calendar:i})}static from(t,e){if(Be(e),t instanceof Qi)return ts(t.getISOFields());if("object"==typeof t)return si(t,e);const n=function(t){const e=To(t)||Do(t);if(!e)throw Ro("yearMonth",t);return e}(String(t));return void 0===n.calendar&&(n.isoDay=1),ts(Uo(n))}static compare(t,e){return br(pn(Qi,t),pn(Qi,e))}with(t,e){return hi(this,t,e)}add(t,e){return es(this,pn(vs,t),e)}subtract(t,e){return es(this,Rn(pn(vs,t)),e)}until(t,e){return ns(this,pn(Qi,t),!1,e)}since(t,e){return ns(this,pn(Qi,t),!0,e)}equals(t){return!br(this,pn(Qi,t))}toString(t){const e=this.getISOFields(),n=e.calendar.toString(),r=Fr(t);return("iso8601"===n?Hr(e):Ur(e))+zr(n,r)}toPlainDate(t){return this.calendar.dateFromFields({year:this.year,month:this.month,day:t.day})}}function ts(t){return new Qi(t.isoYear,t.isoMonth,t.calendar,t.isoDay)}function es(t,e,n){return t.toPlainDate({day:e.sign<0?t.daysInMonth:1}).add(e,n).toPlainYearMonth()}function ns(t,e,n,r){return ys(aa(t.toPlainDate(Ji),e.toPlainDate(Ji),ta(t,e),n,dn(r,9,8,8,9)))}Jr(Qi,"PlainYearMonth"),Gr(Qi),Xr(Qi,Wr),ji(Qi,Ui({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const rs=Symbol();class os extends yn{constructor(t,e,n=Ks()){const r=pn(ei,e),o=pn(Ws,n),i=In(t),[s,a]=ss(i,r);ki(s,o.toString()),super({...s,calendar:o,timeZone:r,offset:Lr(a)}),this[rr]=i,this[rs]=a}static from(t,e){const n=Qr(e,3),r=Be(e);if(t instanceof os)return new os(t.epochNanoseconds,t.timeZone,t.calendar);const o="object"==typeof t;return is(o?ri(t,r,e):Ho(So(String(t))),!o,n,e)}static compare(t,e){return $r(pn(os,t),pn(os,e))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[rs]}get offset(){return this.getISOFields().offset}with(t,e){Or(e);const n=Be(e),r=Qr(e,0);return is(li(this,t,n,e),!1,r,e)}withPlainDate(t){const e=pn(ra,t),n=e.toPlainDateTime(this),{timeZone:r}=this,o=to(r,n);return new os(o.epochNanoseconds,r,ea(this,e))}withPlainTime(t){return is({...this.getISOFields(),...void 0===t?zn:pn(qi,t).getISOFields()})}withCalendar(t){return new os(this.epochNanoseconds,this.timeZone,t)}withTimeZone(t){return new os(this.epochNanoseconds,t,this.calendar)}add(t,e){return as(this,pn(vs,t),e)}subtract(t,e){return as(this,Rn(pn(vs,t)),e)}until(t,e){return ls(this,pn(os,t),!1,e)}since(t,e){return ls(this,pn(os,t),!0,e)}round(t){return cs(this,un(t,0,6))}equals(t){return this,yr(this,e=pn(os,t))&&this.timeZone.toString()===e.timeZone.toString();var e}startOfDay(){return is({...this.getISOFields(),...zn,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return ao(this.getISOFields())/Ue}toString(t){const e=Nr(t),n=Zi(t),r=Pr(t),o=Fr(t),i=cs(this,e);return Rr(i.getISOFields(),e)+(0===n?Lr($n(i.offsetNanoseconds)):"")+(s=this.timeZone.toString(),1!==r?`[${s}]`:"")+zr(this.calendar.toString(),o);var s}toPlainYearMonth(){return ts(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return Ss(this.getISOFields())}toPlainDate(){return oa(this.getISOFields())}toPlainTime(){return Gi(this.getISOFields())}toInstant(){return new da(this.epochNanoseconds)}}function is(t,e,n,r){const o=io(t,e,n,r);return new os(o,t.timeZone,t.calendar)}function ss(t,e){const n=new da(t),r=e.getOffsetNanosecondsFor(n);return[ar(t.add(r)),r]}function as(t,e,n){const r=t.getISOFields(),o=function(t,e,n){const{calendar:r,timeZone:o}=t,i=r.dateAdd(oa(t),Un(e,jn),n);return to(o,Ss({...t,...i.getISOFields()}))[rr].add(Zn(e))}(r,e,n);return new os(o,r.timeZone,r.calendar)}function cs(t,e){const n=t.getISOFields(),r=function(t,e,n){const{calendar:r,timeZone:o}=t;let i,s,a=qn(t);return 6===n.smallestUnit?(i=zn,s=n.roundingFunc(a/ao(t))):(a=Ni(a,n),[i,s]=Wn(a)),io({...ro(t,s),...i,offsetNanoseconds:e,calendar:r,timeZone:o},!1,0)}(n,t.offsetNanoseconds,e);return new os(r,n.timeZone,n.calendar)}function ls(t,e,n,r){const o=dn(r,5,0,0,9),{largestUnit:i}=o;if(i>=6&&t.timeZone.id!==e.timeZone.id)throw new Error("Must be same timeZone");return ys(sa(t,e,ta(t,e),n,o))}function ds(t){if(void 0===t)return;if(Ke(t))return t instanceof os||t instanceof ws?t:pn(void 0!==t.timeZone?os:ws,t);if("symbol"==typeof t)throw new TypeError("Incorrect relativeTo type");const e=Mo(String(t));if(e)return void 0!==e.timeZone?is(Ho(e),!0):Ss(Uo(e));throw new RangeError("Invalid value of relativeTo")}function us(t,e,n,r){return(n instanceof ra?function(t,e,n,r){const o=n.add(t);return[r.dateUntil(n,o,{largestUnit:on[e]}),o]}(t,Math.max(6,e),n,r):hs(t,e,n,r))[0]}function hs(t,e,n,r,o){const i=!0!==o&&e>7&&t.weeks;i&&(t=Un(t,{weeks:0}));let s=n.add(t),a=ca(n,s,r,e);return i&&(a=Un(a,{weeks:i}),s=s.add({weeks:i})),[a,s]}function ps(t,e,n,r){const o=sn[e],{sign:i}=t;if(!i)return t;const s={};for(let n=9;n>=e;n--){const e=sn[n];s[e]=t[e]}const a={[o]:i},c=n.add(s),l=c.add(a),d=lr(c),u=lr(l),h=lr(r).sub(d).toNumber()/u.sub(d).toNumber()*i;return s[o]+=h,s}function ms(t,e,n,r,o,i){const{largestUnit:s,smallestUnit:a,roundingIncrement:c,roundingFunc:l}=i;if(!je(s))return Gn(An(lr(n).sub(lr(e)).mult(o?-1:1),Ye[a]*c,l),s);let d=ps(t,a,e,n);const u=sn[a];function h(){const t=d[u];d[u]=Sn(t,c,l)}return l===Math.round&&h(),o&&(d=Rn(d)),l!==Math.round&&h(),a>0&&(d=o?Rn(us(Rn(d),s,e,r)):us(d,s,e,r)),d}Jr(os,"ZonedDateTime"),Gr(os,rn),Xr(os,Kr),Vr(os),ji(os,Pi({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[fs,gs]=Je();class vs extends fn{constructor(t=0,e=0,n=0,r=0,o=0,i=0,s=0,a=0,c=0,l=0){super();const d=fi({years:t,months:e,weeks:n,days:r,hours:o,minutes:i,seconds:s,milliseconds:a,microseconds:c,nanoseconds:l});gs(this,function(t){const e=Hn(t),{sign:n}=e;for(const t of sn){const r=e[t],o=wn(e[t]);if(o&&o!==n)throw new RangeError("All fields must be same sign");if(!Number.isInteger(r))throw new RangeError("Duration fields must be integers")}return e}(d))}static from(t){return ys("object"==typeof t?fi(t):function(t){const e=function(t){const e=vo.exec(wo(t));if(e){let t,n,r,o;[t,o]=Vi(e[8],e[10],5,void 0),[n,o]=Vi(e[12],e[14],4,o),[r,o]=Vi(e[16],e[18],3,o);const i=function(t){const e={};for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}({years:Po(e[2]),months:Po(e[3]),weeks:Po(e[4]),days:Po(e[5]),hours:t,minutes:n,seconds:r});if(!Object.keys(i).length)throw new RangeError("Duration string must have at least one field");const s=Gn(In(o||0),2);i.milliseconds=s.milliseconds,i.microseconds=s.microseconds,i.nanoseconds=s.nanoseconds;let a=Hn(i);return"-"===e[1]&&(a=Rn(a)),a}}(t);if(void 0===e)throw Ro("duration",t);return e}(t))}static compare(t,e,n){return function(t,e,n){if(void 0===n&&Ln(t)<=6&&Ln(e)<=6)return Fn(Vn(t),Vn(e));if(!n)throw new RangeError("Need relativeTo");const r=n.add(t),o=n.add(e);return void 0!==n[rr]?$r(r,o):br(r,o)}(pn(vs,t),pn(vs,e),ds(Ge(n).relativeTo))}get years(){return fs(this).years}get months(){return fs(this).months}get weeks(){return fs(this).weeks}get days(){return fs(this).days}get hours(){return fs(this).hours}get minutes(){return fs(this).minutes}get seconds(){return fs(this).seconds}get milliseconds(){return fs(this).milliseconds}get microseconds(){return fs(this).microseconds}get nanoseconds(){return fs(this).nanoseconds}get sign(){return fs(this).sign}get blank(){return!this.sign}with(t){return ys({...fs(this),...fi(t)})}negated(){return ys(Rn(fs(this)))}abs(){return ys(en(fs(this),Pn,(t=>Math.abs(t))))}add(t,e){return bs(this,pn(vs,t),e)}subtract(t,e){return bs(this,Rn(pn(vs,t)),e)}round(t){const e="string"==typeof t?{smallestUnit:t}:t;if(!Ke(e))throw new TypeError("Must specify options");if(void 0===e.largestUnit&&void 0===e.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const n=dn(e,Ln(this),0,0,9,!0),r=ds(e.relativeTo);return ys(function(t,e,n,r){const{largestUnit:o,smallestUnit:i,roundingIncrement:s,roundingFunc:a}=e;if(void 0===n&&Ln(t)<=6&&ze(o)&&ze(i))return Gn(An(Vn(t),Ye[i]*s,a),o);if(!n)throw new RangeError("Need relativeTo");const[c,l]=hs(t,o,n,r);return ms(c,n,l,r,!1,e)}(this,n,r,r?r.calendar:void 0))}total(t){const e=function(t){let e,n;return"string"==typeof t?n=t:(n=Ge(t).unit,e=t.relativeTo),{unit:ln(n,void 0,0,9),relativeTo:e}}(t),n=ds(e.relativeTo);return function(t,e,n,r){if(void 0===n&&Ln(t)<=6&&ze(e))return Vn(t).toNumber()/Ye[e];if(!n)throw new RangeError("Need relativeTo");const[o,i]=hs(t,e,n,r,!0);return ps(o,e,n,i)[sn[e]]}(this,e.unit,n,n?n.calendar:void 0)}toString(t){const e=Nr(t,3);return function(t,e){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=e,{sign:i}=t,s=t.hours,a=t.minutes;let c=t.seconds,l="";if(n<=3){const e=Br(t.milliseconds,t.microseconds,t.nanoseconds,r,o,n);l=e[0],c+=e[1]}const d=void 0!==r||l||!i;return(i<0?"-":"")+"P"+jr([[t.years,"Y"],[t.months,"M"],[t.weeks,"W"],[t.days,"D"]])+(s||a||c||d?"T"+jr([[s,"H"],[a,"M"],[n<=3?c:0,l+"S",d]]):"")}(fs(this),e)}toLocaleString(t,e){return this.toString()}}function ys(t){return new vs(t.years,t.months,t.weeks,t.days,t.hours,t.minutes,t.seconds,t.milliseconds,t.microseconds,t.nanoseconds)}function bs(t,e,n){const r=ds(Ge(n).relativeTo);return ys(function(t,e,n,r){const o=Math.max(Ln(t),Ln(e));if(void 0===n&&o<=6)return Gn(Vn(t).add(Vn(e)),o);if(!n)throw new RangeError("Need relativeTo");const i=n.add(t).add(e);return ca(n,i,r,o)}(t,e,r,r?r.calendar:void 0))}Jr(vs,"Duration");class ws extends yn{constructor(t,e,n,r=0,o=0,i=0,s=0,a=0,c=0,l=Ks()){const d=Mr({isoYear:t,isoMonth:e,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:s,isoMicrosecond:a,isoNanosecond:c},1),u=pn(Ws,l);ki(d,u.toString()),super({...d,calendar:u})}static from(t,e){const n=Be(e);return Ss(t instanceof ws?t.getISOFields():"object"==typeof t?oi(t,n,e):Uo($o(String(t))))}static compare(t,e){return br(pn(ws,t),pn(ws,e))}with(t,e){const n=Be(e);return Ss(di(this,t,n,e))}withPlainDate(t){const e=pn(ra,t);return Ss({...this.getISOFields(),...e.getISOFields(),calendar:ea(this,e)})}withPlainTime(t){return Ss({...this.getISOFields(),...Wi(t).getISOFields()})}withCalendar(t){return Ss({...this.getISOFields(),calendar:pn(Ws,t)})}add(t,e){return $s(this,pn(vs,t),e)}subtract(t,e){return $s(this,Rn(pn(vs,t)),e)}until(t,e){return Cs(this,pn(ws,t),!1,e)}since(t,e){return Cs(this,pn(ws,t),!0,e)}round(t){const e=un(t,0,6);return Ss({...Fi(this.getISOFields(),e),calendar:this.calendar})}equals(t){return yr(this,pn(ws,t))}toString(t){const e=Nr(t),n=Fr(t);return Rr(Fi(this.getISOFields(),e),e)+zr(this.calendar.toString(),n)}toZonedDateTime(t,e){const n=pn(ei,t),r=to(n,this,Or(e));return new os(r.epochNanoseconds,n,this.calendar)}toPlainYearMonth(){return ts(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return oa(this.getISOFields())}toPlainTime(){return Gi(this.getISOFields())}}function Ss(t){return new ws(t.isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,t.calendar)}function $s(t,e,n){const r=function(t,e,n){const{calendar:r}=t;return ar(or(r.dateAdd(oa(t),Un(e,jn),n).getISOFields()).add(qn(t)).add(Zn(e)))}(t.getISOFields(),e,n);return Ss({...r,calendar:t.calendar})}function Cs(t,e,n,r){const o=dn(r,6,0,0,9);return ys(sa(t,e,ta(t,e),n,o))}Jr(ws,"PlainDateTime"),Gr(ws,rn),Xr(ws,Kr),ji(ws,Ui({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class As extends yn{constructor(t,e,n=Ks(),r=nr){super({...Ar({isoYear:r,isoMonth:t,isoDay:e},1),calendar:pn(Ws,n)})}static from(t,e){if(Be(e),t instanceof As)return Ms(t.getISOFields());if("object"==typeof t)return ai(t,e);const n=function(t){const e=_o(t)||Do(t);if(!e)throw Ro("monthDay",t);return e}(String(t));return void 0===n.calendar&&(n.isoYear=nr),Ms(Uo(n))}with(t,e){return pi(this,t,e)}equals(t){return!br(this,pn(As,t))}toString(t){const e=this.getISOFields(),n=e.calendar.toString(),r=Fr(t);return("iso8601"===n?function(t){return Dn(t.isoMonth,2)+"-"+Dn(t.isoDay,2)}(e):Ur(e))+zr(n,r)}toPlainDate(t){return this.calendar.dateFromFields({year:t.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function Ms(t){return new As(t.isoMonth,t.isoDay,t.calendar,t.isoYear)}function Ds(t){return t instanceof ra||t instanceof ws||t instanceof os||t instanceof Qi||t instanceof As}function Ts(t,e,n){let r;if(t instanceof ra)r=t;else if(Ds(t)){if(n&&t instanceof As)throw new TypeError("PlainMonthDay not allowed");r=oa(t.getISOFields())}else r=ra.from(t);return na(r.calendar,e),r}function _s(t,e,n){if(Ds(t))return t.getISOFields();let{era:r,eraYear:o,year:i,month:s,monthCode:a,day:c}=t;const l=void 0!==o&&void 0!==r?Jn(e.id,o,r):void 0;if(void 0===i){if(void 0===l)throw new TypeError("Must specify either a year or an era & eraYear");i=l}else if(void 0!==l&&l!==i)throw new RangeError("year and era/eraYear must match");if(void 0===c)throw new TypeError("Must specify day");const d=Be(n);if(void 0!==a){const[t,n]=e.convertMonthCode(a,i);if(void 0!==s&&s!==t)throw new RangeError("Month doesnt match with monthCode");if(s=t,n){if(1===d)throw new RangeError("Month code out of range");c=e.daysInMonth(i,s)}}else if(void 0===s)throw new TypeError("Must specify either a month or monthCode");return[i,s,c]=Cr(i,s,c,e,d),cr(e.epochMilliseconds(i,s,c))}function xs(t,e){if(Ds(t)){if(e&&t instanceof As)throw new TypeError("PlainMonthDay not allowed");return t.getISOFields()}return ra.from(t).getISOFields()}function Es(t,e){return gr(t.epochMilliseconds(e,1,1),t.epochMilliseconds(e+1,1,1))}function ks(t,e,n,r){return gr(t.epochMilliseconds(e,1,1),t.epochMilliseconds(e,n,r))+1}Jr(As,"PlainMonthDay"),Gr(As),Xr(As,["monthCode","day"]),ji(As,Ui({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Is={hebrew:6,chinese:0,dangi:0};class Fs extends Xn{constructor(t){const e=Os(t);if(n=t,r=e.resolvedOptions().calendar,Qn(n)!==Qn(r))throw new RangeError("Invalid calendar: "+t);var n,r;super(t),this.format=e,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(t,e,n){return vr(this.queryMonthCache(t)[0][e-1],n-1)}daysInMonth(t,e){const n=this.queryMonthCache(t)[0],r=n[e-1];return e>=n.length&&(t++,e=0),gr(r,this.queryMonthCache(t)[0][e])}monthsInYear(t){return this.queryMonthCache(t)[0].length}monthCode(t,e){const n=this.queryLeapMonthByYear(e);return!n||t<n?super.monthCode(t,e):super.monthCode(t-1,e)+(t===n?"L":"")}convertMonthCode(t,e){const n=this.queryLeapMonthByYear(e);let r=/L$/.test(t),o=parseInt(t.substr(1)),i=!1;if(r){const t=Is[this.id];if(void 0===t)throw new RangeError("Calendar system doesnt support leap months");if(t){if(o!==t-1)throw new RangeError("Invalid leap-month month code")}else if(o<=1||o>=12)throw new RangeError("Invalid leap-month month code")}return!r||n&&o===n-1||(i=!0,r=!1),(r||n&&o>=n)&&o++,[o,i]}inLeapYear(t){const e=Es(this,t);return e>Es(this,t-1)&&e>Es(this,t+1)}guessYearForMonthDay(t,e){let n=1970+this.yearCorrection;const r=n+100;for(;n<r;n++){const[r,o]=this.convertMonthCode(t,n);if(!o&&r<=this.monthsInYear(n)&&e<=this.daysInMonth(n,r))return n}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(t){return t}computeFields(t){const e=this.computeFieldsDumb(t),n=this.queryMonthCache(e.year)[2];return{...e,month:n[e.month]}}computeFieldsDumb(t){const e=zo(this.format,t);let n,r,o=parseInt(e.relatedYear||e.year);var i;return e.era&&(i=this.id,void 0!==Kn[Qn(i)])&&(n=Bo(e.era),r=o,o=Jn(this.id,r,n,!0)),{era:n,eraYear:r,year:o,month:e.month,day:parseInt(e.day)}}queryLeapMonthByYear(t){const e=this.queryMonthCache(t),n=this.queryMonthCache(t-1),r=this.queryMonthCache(t+1);if(e[0].length>n[0].length&&e[0].length>r[0].length){const t=e[1],r=n[1];for(let e=0;e<r.length;e++)if(r[e]!==t[e])return e+1}}queryMonthCache(t){const{monthCacheByYear:e}=this;return e[t]||(e[t]=this.buildMonthCache(t))}buildMonthCache(t){const e=[],n=[],r={};let o=sr(this.guessISOYear(t),1,1);for(o=vr(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<t)break;o=vr(o,1-r.day),r.year===t&&(e.unshift(o),n.unshift(r.month)),o=vr(o,-1)}for(let t=0;t<n.length;t++)r[n[t]]=t+1;return[e,n,r]}guessISOYear(t){return t-this.yearCorrection}}function Os(t){return new Vo("en-US",{calendar:t,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const Ns=sr(1868,9,8),Ps={gregory:Ir,japanese:class extends Ir{constructor(){super(...arguments),this.format=Os("japanese")}computeFields(t){const e=super.computeFields(t);if(t>=Ns){const n=zo(this.format,t);e.era=Bo(n.era),e.eraYear=parseInt(n.relatedYear||n.year)}return e}},islamic:class extends Fs{guessISOYear(t){return Math.ceil(32*t/33+622)}}},Rs={iso8601:er};function Us(t){const e=(t=String(t)).toLocaleLowerCase();return Rs[e]||(Rs[e]=new(Ps[Qn(e)]||Fs)(t))}const Hs=sr(1582,10,15),Ys=sr(622,7,18),Ls={buddhist:Hs,japanese:Hs,roc:Hs,islamic:Ys,"islamic-rgsa":Ys,indian:0},zs={};function js(t,e){return Bs(t.div(1e6).toNumber(),e)}function Bs(t,e){if(function(t,e){return function(t){let e=zs[t];if(void 0===e){const n=Ls[t];if(void 0===n)e=!1;else{let r=Us(t);r instanceof Fs||(r=new Fs(t));const o=n-864e5,i=r.computeFields(o);e=o!==r.epochMilliseconds(i.year,i.month,i.day)}zs[t]=e}return e}(e)&&t<Ls[e]}(t,e))throw new RangeError("Invalid timestamp for calendar")}function Vs(t,e,n){const r=7+e-n;return-Mn(hr(t,1,r)-e,7)+r-1}function Zs(t,e,n){const r=Vs(t,e,n),o=Vs(t+1,e,n);return(Es(er,t)-r+o)/7}const[qs,Gs]=Je();class Ws extends mn{constructor(t){super(),"islamicc"===t&&(t="islamic-civil"),Gs(this,Us(t))}static from(t){if(Ke(t))return function(t){const e=t.calendar;return void 0===e?t:Ke(e)&&void 0===e.calendar?e:new Ws(e)}(t);const e=Do(String(t),!1,!0);return new Ws(e?e.calendar||"iso8601":String(t))}get id(){return this.toString()}era(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).era}eraYear(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).eraYear}year(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).year}month(t){const e=xs(t,!0);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).month}monthCode(t){const e=Ts(t,this);return qs(this).monthCode(e.month,e.year)}day(t){const e=xs(t);return Js(qs(this),e.isoYear,e.isoMonth,e.isoDay).day}dayOfWeek(t){const e=xs(t,!0);return hr(e.isoYear,e.isoMonth,e.isoDay)}dayOfYear(t){const e=Ts(t,this,!0);return ks(qs(this),e.year,e.month,e.day)}weekOfYear(t){const e=xs(t,!0);return function(t,e,n,r,o){const i=Vs(t,1,4),s=Math.floor((ks(er,t,e,n)-i-1)/7)+1;if(s<1)return s+Zs(t-1,1,4);const a=Zs(t,1,4);return s>a?s-a:s}(e.isoYear,e.isoMonth,e.isoDay)}daysInWeek(t){return xs(t,!0),7}daysInMonth(t){const e=Ts(t,this,!0);return qs(this).daysInMonth(e.year,e.month)}daysInYear(t){const e=Ts(t,this,!0);return Es(qs(this),e.year)}monthsInYear(t){const e=Ts(t,this,!0);return qs(this).monthsInYear(e.year)}inLeapYear(t){return qs(this).inLeapYear(this.year(t))}dateFromFields(t,e){const n=_s(qe(t,_r),qs(this),e);return new ra(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(t,e){const n=_s({...qe(t,Tr),day:1},qs(this),e);return new Qi(n.isoYear,n.isoMonth,this,n.isoDay)}monthDayFromFields(t,e){const n=qs(this);let{era:r,eraYear:o,year:i,month:s,monthCode:a,day:c}=qe(t,Er);if(void 0===c)throw new TypeError("required property 'day' missing or undefined");if(void 0!==a?i=nr:void 0!==r&&void 0!==o&&(i=Jn(n.id,o,r)),void 0===i){if(void 0===a)throw new TypeError("either year or monthCode required with month");i=n.guessYearForMonthDay(a,c)}const l=_s({year:i,month:s,monthCode:a,day:c},n,e);return new As(l.isoMonth,l.isoDay,this,n.normalizeISOYearForMonthDay(l.isoYear))}dateAdd(t,e,n){const r=qs(this),o=function(t,e,n,r){t=no(t=eo(t,e.years,n,r),e.months,n,r);let o=n.epochMilliseconds(t.year,t.month,t.day);const i=Math.trunc(Zn(e).div(He).toNumber());return o=vr(o,7*e.weeks+e.days+i),cr(o)}(pn(ra,t,n),pn(vs,e),r,Be(n));return new ra(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(t,e,n){const r=qs(this),o=pn(ra,t),i=pn(ra,e),s=Ge(n).largestUnit,a="auto"===s?6:ln(s,6,6,9);return na(this,ta(o,i)),ys(function(t,e,n,r){let o=0,i=0,s=0,a=0;switch(r){case 9:o=function(t,e,n){const[,r,o]=Cr(e.year,t.month,t.day,n,0),i=Sr(e,t),s=bn(e.month,r)||bn(e.day,o);return e.year-t.year-(s&&i&&s!==i?i:0)}(t,e,n),t=eo(t,o,n,0);case 8:i=function(t,e,n){let r=0;const o=Sr(e,t);if(o){let{year:i}=t;for(;i!==e.year;)r+=n.monthsInYear(i)*o,i+=o;const[,s,a]=Cr(e.year,t.month,t.day,n,0);r+=e.month-s;const c=bn(e.day,a);c&&o&&c!==o&&(r-=o)}return r}(t,e,n),t=no(t,i,n,0)}return a=gr(n.epochMilliseconds(t.year,t.month,t.day),n.epochMilliseconds(e.year,e.month,e.day)),7===r&&(s=Math.trunc(a/7),a%=7),Hn({years:o,months:i,weeks:s,days:a,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(o,i,r,a))}fields(t){return t.slice()}mergeFields(t,e){return Xs(t,e)}toString(){return qs(this).id}}function Ks(){return new Ws("iso8601")}function Xs(t,e){var n;const r={...t,...e};if(void 0!==t.year){delete r.era,delete r.eraYear,delete r.year;let n=!1;void 0===e.era&&void 0===e.eraYear||(r.era=e.era,r.eraYear=e.eraYear,n=!0),void 0!==e.year&&(r.year=e.year,n=!0),n||(r.year=t.year)}if(void 0!==t.monthCode){delete r.monthCode,delete r.month;let n=!1;void 0!==e.month&&(r.month=e.month,n=!0),void 0!==e.monthCode&&(r.monthCode=e.monthCode,n=!0),n||(r.monthCode=t.monthCode)}return void 0!==t.day&&(r.day=null!=(n=e.day)?n:t.day),r}function Js(t,e,n,r){const o=sr(e,n,r);return Bs(o,t.id),t.computeFields(o)}function Qs(t){return void 0===t.calendar?Ks():pn(Ws,t.calendar)}function ta(t,e){const{calendar:n}=t;return na(n,e.calendar),n}function ea(t,e){const n=t.calendar,r=e.calendar;if("iso8601"===n.id)return r;if("iso8601"===r.id)return n;if(n.id!==r.id)throw new RangeError("Non-ISO calendars incompatible");return n}function na(t,e){if(t.toString()!==e.toString())throw new RangeError("Calendars must match")}Jr(Ws,"Calendar");class ra extends yn{constructor(t,e,n,r=Ks()){const o=Ar({isoYear:t,isoMonth:e,isoDay:n},1),i=pn(Ws,r);!function(t,e){const n=or(t);Ii(n.add(n.sign()<0?86399999999999:0)),js(n,e)}(o,i.toString()),super({...o,calendar:i})}static from(t,e){return Be(e),t instanceof ra?oa(t.getISOFields()):"object"==typeof t?ii(t,e):oa(Uo($o(String(t))))}static compare(t,e){return br(pn(ra,t),pn(ra,e))}with(t,e){return ui(this,t,e)}withCalendar(t){const e=this.getISOFields();return new ra(e.isoYear,e.isoMonth,e.isoDay,t)}add(t,e){return this.calendar.dateAdd(this,t,e)}subtract(t,e){return this.calendar.dateAdd(this,pn(vs,t).negated(),e)}until(t,e){return ia(this,pn(ra,t),!1,e)}since(t,e){return ia(this,pn(ra,t),!0,e)}equals(t){return!br(this,pn(ra,t))}toString(t){const e=Fr(t),n=this.getISOFields();return Ur(n)+zr(n.calendar.toString(),e)}toZonedDateTime(t){const e=function(t){let e,n;if("string"==typeof t)n=t;else{if("object"!=typeof t)throw new TypeError("Invalid options/timeZone argument");if(void 0!==t.id?n=t:(n=t.timeZone,e=t.plainTime),void 0===n)throw new TypeError("Invalid timeZone argument")}return{plainTime:e,timeZone:n}}(t),n=pn(ei,e.timeZone),r=void 0===e.plainTime?void 0:pn(qi,e.plainTime);return is({...this.getISOFields(),...r?r.getISOFields():zn,timeZone:n})}toPlainDateTime(t){return Ss({...this.getISOFields(),...Wi(t).getISOFields()})}toPlainYearMonth(){return ts(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function oa(t){return new ra(t.isoYear,t.isoMonth,t.isoDay,t.calendar)}function ia(t,e,n,r){return ys(aa(t,e,ta(t,e),n,dn(r,6,6,6,9)))}function sa(t,e,n,r,o){return ms(ca(t,e,n,o.largestUnit),t,e,n,r,o)}function aa(t,e,n,r,o){return ms(n.dateUntil(t,e,{largestUnit:on[o.largestUnit]}),t,e,n,r,o)}function ca(t,e,n,r){if(!je(r))return la(t,e,r);const o=oa({...t.getISOFields(),calendar:n});let i,s,a,c,l,d=oa({...e.getISOFields(),calendar:n});do{s=n.dateUntil(o,d,{largestUnit:on[r]}),i=t.add(s),a=la(i,e,5),c=s.sign,l=a.sign}while(c&&l&&c!==l&&(d=d.add({days:l})));return h=a,{sign:(u=s).sign||h.sign,years:u.years+h.years,months:u.months+h.months,weeks:u.weeks+h.weeks,days:u.days+h.days,hours:u.hours+h.hours,minutes:u.minutes+h.minutes,seconds:u.seconds+h.seconds,milliseconds:u.milliseconds+h.milliseconds,microseconds:u.microseconds+h.microseconds,nanoseconds:u.nanoseconds+h.nanoseconds};var u,h}function la(t,e,n){return Gn(lr(e).sub(lr(t)),n)}Jr(ra,"PlainDate"),Gr(ra),Xr(ra,Kr),ji(ra,Ui({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class da extends fn{constructor(t){super();const e=In(t,!0);!function(t){-1!==Fn(t,_i)&&1!==Fn(t,Ti)||fr()}(e),this[rr]=e}static from(t){if(t instanceof da)return new da(t.epochNanoseconds);const e=So(String(t)),n=e.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new da(or(Mr(e,1)).sub(n))}static fromEpochSeconds(t){return new da(In(t).mult(1e9))}static fromEpochMilliseconds(t){return new da(In(t).mult(1e6))}static fromEpochMicroseconds(t){return new da(t*BigInt(1e3))}static fromEpochNanoseconds(t){return new da(t)}static compare(t,e){return $r(pn(da,t),pn(da,e))}add(t){return new da(oo(this[rr],pn(vs,t)))}subtract(t){return new da(oo(this[rr],Rn(pn(vs,t))))}until(t,e){return ua(this,pn(da,t),e)}since(t,e){return ua(pn(da,t),this,e)}round(t){const e=un(t,0,5,!0);return new da(function(t,e){const[n,r]=function(t){const e=ar(t);return[ir(e.isoYear,e.isoMonth,e.isoDay),qn(e)]}(t),o=Ni(r,e);return n.add(o)}(this[rr],e))}equals(t){return!$r(this,pn(da,t))}toString(t){const e=Ge(t).timeZone;return this.toZonedDateTimeISO(null!=e?e:"UTC").toString({...t,offset:void 0===e?"never":"auto",timeZoneName:"never"})+(void 0===e?"Z":"")}toZonedDateTimeISO(t){return new os(this.epochNanoseconds,t)}toZonedDateTime(t){if(!Ke(t))throw new TypeError("Must specify options");if(void 0===t.calendar)throw new TypeError("Must specify a calendar");if(void 0===t.timeZone)throw new TypeError("Must specify a timeZone");return new os(this.epochNanoseconds,t.timeZone,t.calendar)}}function ua(t,e,n){const r=dn(n,3,0,0,5);return ys(function(t,e,n){return Gn(An(e.sub(t),Ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(t[rr],e[rr],r))}Jr(da,"Instant"),Vr(da),ji(da,Pi({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const ha=Symbol(),pa=Symbol(),ma=Symbol();class fa extends Intl.DateTimeFormat{constructor(t,e){const n=Zo(t),r=function(t){const e={};for(const n in t){let r=t[n];Ke(r)&&(r=r.toString()),e[n]=r}return e}(e||{});super(n,r),this[ha]=n,this[pa]=r,this[ma]=new Map}format(t){const e=va(this,t);return e[0]===this?super.format(e[1]):e[0].format(e[1])}formatToParts(t){return super.formatToParts.call(...va(this,t))}formatRange(t,e){return super.formatRange.call(...ya(this,t,e))}formatRangeToParts(t,e){return super.formatRangeToParts.call(...ya(this,t,e))}}const ga=fa;function va(t,e){const n=Bi(e);if(n){const r=ba(t,n);return[r.buildFormat(e),r.buildEpochMilli(e)]}return[t,e]}function ya(t,e,n){const r=Bi(e);if(r!==Bi(n))throw new TypeError("Mismatch of types");if(r){const o=ba(t,r);return[o.buildFormat(e,n),new Date(o.buildEpochMilli(e)),new Date(o.buildEpochMilli(n))]}return[t,e,n]}function ba(t,e){const n=t[ma];let r=n.get(e);return r||(r=function(t){const e={};return{buildFormat:function(n,r){const o=t.buildKey(n,r),i=o.join("|");return e[i]||(e[i]=t.buildFormat(...o))},buildEpochMilli:t.buildEpochMilli}}(e(t[ha],t[pa])),n.set(e,r)),r}const wa={zonedDateTimeISO:function(t){return is($a("iso8601",t))},zonedDateTime:function(t,e){return is($a(t,e))},plainDateTimeISO:function(t){return Ss($a("iso8601",t))},plainDateTime:function(t,e){return Ss($a(t,e))},plainDateISO:function(t){return oa($a("iso8601",t))},plainDate:function(t,e){return oa($a(t,e))},plainTimeISO:function(t){return Gi($a("iso8601",t))},instant:function(){return new da(Ca())},timeZone:Sa};function Sa(){return new ei((new Vo).resolvedOptions().timeZone)}function $a(t,e=Sa()){const n=pn(ei,e);return{...ss(Ca(),n)[0],timeZone:n,calendar:pn(Ws,t)}}function Ca(){return In(Date.now()).mult(1e6)}Jr(wa,"Now");const Aa={PlainYearMonth:Qi,PlainMonthDay:As,PlainDate:ra,PlainTime:qi,PlainDateTime:ws,ZonedDateTime:os,Instant:da,Calendar:Ws,TimeZone:ei,Duration:vs,Now:wa,[Symbol.toStringTag]:"Temporal"};("undefined"!=typeof globalThis?globalThis:window).Intl;class Ma{static get zero(){return new Ma(0)}static fromMilliseconds(t){return new Ma(t)}static fromSeconds(t){return new Ma(t*Ma.ticksPerSecond)}static fromMinutes(t){return new Ma(t*Ma.ticksPerMinute)}static fromHours(t){return new Ma(t*Ma.ticksPerHour)}static fromDays(t){return new Ma(t*Ma.ticksPerDay)}static fromWeeks(t){return new Ma(t*Ma.ticksPerWeek)}static fromMonths(t){return new Ma(t*Ma.ticksPerMonths)}static fromYears(t){return new Ma(t*Ma.ticksPerYear)}constructor(t){this.milliseconds=t}get seconds(){return this.milliseconds/Ma.ticksPerSecond}get minutes(){return this.milliseconds/Ma.ticksPerMinute}get hours(){return this.milliseconds/Ma.ticksPerHour}get days(){return this.milliseconds/Ma.ticksPerDay}get weeks(){return this.milliseconds/Ma.ticksPerWeek}get months(){return this.milliseconds/Ma.ticksPerMonths}get years(){return this.milliseconds/Ma.ticksPerYear}valueOf(){return this.milliseconds}toString(){return this.format()}format(t){const[e,n]=Re(t),r=new Intl.RelativeTimeFormat(e,null!=n?n:{style:"long",numeric:"auto"}),o=(t,e)=>r.format(Math.sign(t)*Math.floor(Math.abs(t)),e);switch(!0){case Math.abs(this.years)>=1:return o(this.years,"years");case Math.abs(this.months)>=1:return o(this.months,"months");case Math.abs(this.weeks)>=1:return o(this.weeks,"weeks");case Math.abs(this.days)>=1:return o(this.days,"days");case Math.abs(this.hours)>=1:return o(this.hours,"hours");case Math.abs(this.minutes)>=1:return o(this.minutes,"minutes");default:return o(this.seconds,"seconds")}}}Ma.ticksPerSecond=1e3,Ma.ticksPerMinute=60*Ma.ticksPerSecond,Ma.ticksPerHour=60*Ma.ticksPerMinute,Ma.ticksPerDay=24*Ma.ticksPerHour,Ma.ticksPerWeek=7*Ma.ticksPerDay,Ma.ticksPerMonths=30*Ma.ticksPerDay,Ma.ticksPerYear=365*Ma.ticksPerDay,globalThis.TimeSpan=Ma;class Da extends Date{static getWeekDayNames(t=Ie.currentLanguage){return new Array(7).fill((new Da).weekRange.start).map(((e,n)=>e.addDays(n).format({language:t,weekday:"long"})))}static fromEpochNanoseconds(t){return new Da(Number(t/BigInt(1e6)))}get temporalInstant(){var t;return null!==(t=this._temporalInstant)&&void 0!==t?t:this._temporalInstant=new Aa.Instant(BigInt(1e6*this.valueOf()))}get zonedDateTime(){var t;return null!==(t=this._zonedDateTime)&&void 0!==t?t:this._zonedDateTime=this.temporalInstant.toZonedDateTime({calendar:Intl.DateTimeFormat().resolvedOptions().calendar,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone})}equals(t){const e=t instanceof Da?t.temporalInstant:t;return this.temporalInstant.equals(e)}isBefore(t){return this.temporalInstant.epochNanoseconds<t.temporalInstant.epochNanoseconds}isAfter(t){return this.temporalInstant.epochNanoseconds>t.temporalInstant.epochNanoseconds}since(t=new Da){const e=t instanceof Da?t.temporalInstant:t,n=this.temporalInstant.since(e,{largestUnit:"milliseconds"}).milliseconds;return new Ma(n)}until(t=new Da){const e=t instanceof Da?t.temporalInstant:t,n=this.temporalInstant.until(e,{largestUnit:"milliseconds"}).milliseconds;return new Ma(n)}add(...t){return Da.fromEpochNanoseconds(this.zonedDateTime.add(...t).epochNanoseconds)}subtract(...t){return Da.fromEpochNanoseconds(this.zonedDateTime.subtract(...t).epochNanoseconds)}round(...t){return Da.fromEpochNanoseconds(this.zonedDateTime.round(...t).epochNanoseconds)}get day(){return this.getDate()}addDays(t){return this.add({days:t})}get dayOfWeek(){return this.zonedDateTime.dayOfWeek}get weekOfYear(){return this.zonedDateTime.weekOfYear}get weekRange(){const t=this.addDays(1-this.zonedDateTime.dayOfWeek),e=t.addDays(this.zonedDateTime.daysInWeek-1);return new DateTimeRange(t,e)}get weekStart(){return this.weekRange.start}get weekEnd(){return this.weekRange.end}addWeeks(t){return this.add({weeks:t})}static get monthNames(){return new Array(12).fill((new Da).yearStart).map(((t,e)=>t.addMonths(e).format({month:"long"})))}get month(){return this.getMonth()}get localMonth(){return Number(new Intl.DateTimeFormat(Ie.currentLanguage,{month:"numeric",numberingSystem:"latn"}).format(this))}get monthName(){return Da.monthNames[this.month]}get monthRange(){const t=new Da(this.year,this.month,1),e=Number(new Intl.DateTimeFormat(Ie.currentLanguage,{day:"numeric",numberingSystem:"latn"}).format(t))-1,n=t.addDays(-e),r=n.addMonths(1).addDays(-1);return new DateTimeRange(n,r)}get monthStart(){return this.monthRange.start}get monthEnd(){return this.monthRange.end}addMonths(t){return this.add({months:t})}addYears(t){return this.add({years:t})}get year(){return this.getFullYear()}get yearStart(){return new Da(this.year,0,1)}get yearEnd(){return new Da(this.year+1,0,1).addDays(-1)}get yearNames(){return new Array(12).fill(void 0).map(((t,e)=>new Date(Date.UTC(this.year,e,1,0,0,0)).format({year:"numeric",numberingSystem:"latn"})))}get yearName(){return this.yearNames[this.month]}}Da.isoRegularExpression=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/,globalThis.DateTime=Da;class Ta{static parse(t){const e=new Set(["–","–","~",Ta.getUntilDelimiter()]),[n,r]=t.split(new RegExp(`[${[...e].join("")}]+`));return new Ta(n?new Date(n):void 0,r?new Date(r):void 0)}static getUntilDelimiter(t=Ie.currentLanguage){var e;return null===(e=Intl.DateTimeFormat(t).formatRangeToParts(new Date("2010-01-01T00:00:00.000Z"),new Date("2020-01-01T00:00:00.000Z")).find((t=>"shared"===t.source)))||void 0===e?void 0:e.value}static sort(t,e){return t&&e&&t>e?{start:e,end:t}:{start:t,end:e}}constructor(t,e){const n=t?new DateTime(t):void 0,r=e?new DateTime(e):void 0,{start:o,end:i}=Ta.sort(n,r);this.start=o,this.end=i}get isInfinite(){return!this.start&&!this.end}includes(t){return(!this.start||t>=this.start)&&(!this.end||t<=this.end)}equals(t){var e,n;return t.start&&(null===(e=this.start)||void 0===e?void 0:e.equals(t.start))&&this.end&&(null===(n=t.end)||void 0===n?void 0:n.equals(this.end))}toString(){return this.format()}format(t){var e,n;if(!this.start&&!this.end)return"";const[r,o]=Re(t);if(!this.end){return this.start.formatAsDate(t)+(null===(e=Ta.getUntilDelimiter(r))||void 0===e?void 0:e.trimEnd())}if(!this.start){const e=this.end;return(null===(n=Ta.getUntilDelimiter(r))||void 0===n?void 0:n.trimStart())+e.formatAsDate(t)}return Intl.DateTimeFormat(r,null!=o?o:{year:"numeric",month:"2-digit",day:"2-digit"}).formatRange(this.start,this.end)}}var _a;globalThis.DateTimeRange=Ta;let xa=_a=class extends fe{constructor(){super(...arguments),this.variant=_a.defaultVariant}static get(t){const e=_a.fontsByVariant.get(t);if(!e)throw new Error(`No font found for variant ${t}`);return e}static ensureAvailable(t){const e=_a.get(t);_a.fontUrls.add(e.url);const n=[..._a.fontUrls].map((t=>`@import '${t}';`));n.some((t=>!1===_a.fontStyleElement.innerText.includes(t)))&&(_a.fontStyleElement.innerHTML=n.join("\n"))}static get styles(){return u`:host{display:inline-grid;font-size:24px}span{font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`}get template(){return B`<span ${we({fontFamily:_a.get(this.variant).name})}>${this.icon}</span>`}};xa.defaultVariant="filled",xa.fontsByVariant=new Map([["filled",{name:"Material Icons",url:"https://fonts.googleapis.com/icon?family=Material+Icons"}],["outlined",{name:"Material Icons Outlined",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"}],["sharp",{name:"Material Icons Sharp",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Sharp"}],["rounded",{name:"Material Icons Round",url:"https://fonts.googleapis.com/icon?family=Material+Icons+Round"}]]),xa.fontStyleElement=document.createElement("style"),xa.fontUrls=new Set,document.head.appendChild(_a.fontStyleElement),_a.ensureAvailable(_a.defaultVariant),r([Ce({updated(){_a.ensureAvailable(this.variant)}})],xa.prototype,"variant",void 0),r([Ce()],xa.prototype,"icon",void 0),xa=_a=r([me("mo-icon")],xa);const Ea=Symbol();function ka(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}let Ia=!1;const Fa=()=>{},Oa={get passive(){return Ia=!0,!1}};document.addEventListener("x",Fa,Oa),document.removeEventListener("x",Fa);class Na extends ht{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}var Pa=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();var Ra={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Ua={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Ha={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};var Ya=["touchstart","pointerdown","mousedown","keydown"],La=["touchend","pointerup","mouseup","contextmenu"],za=[],ja=function(n){function r(t){var o=n.call(this,e(e({},r.defaultAdapter),t))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(t){o.activateImpl(t)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,n),Object.defineProperty(r,"cssClasses",{get:function(){return Ra},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return Ua},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return Ha},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=r.cssClasses,o=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(i),t.layoutInternal())}))}},r.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(r.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(r.cssClasses.FG_DEACTIVATION));var e=r.cssClasses,n=e.ROOT,o=e.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(n),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},r.prototype.activate=function(t){this.activateImpl(t)},r.prototype.deactivate=function(){this.deactivateImpl()},r.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},r.prototype.setUnbounded=function(t){var e=r.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},r.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},r.prototype.registerRootHandlers=function(t){var e,n;if(t){try{for(var r=o(Ya),i=r.next();!i.done;i=r.next()){var s=i.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},r.prototype.registerDeactivationHandlers=function(t){var e,n;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=o(La),i=r.next();!i.done;i=r.next()){var s=i.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},r.prototype.deregisterRootHandlers=function(){var t,e;try{for(var n=o(Ya),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterInteractionHandler(i,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},r.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=o(La),r=n.next();!r.done;r=n.next()){var i=r.value;this.adapter.deregisterDocumentInteractionHandler(i,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},r.prototype.removeCssVars=function(){var t=this,e=r.strings;Object.keys(e).forEach((function(n){0===n.indexOf("VAR_")&&t.adapter.updateCssVariable(e[n],null)}))},r.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&za.length>0&&za.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(za.push(t.target),this.registerDeactivationHandlers(t)),n.wasElementMadeActive=this.checkElementMadeActive(t),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){za=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive(t),n.wasElementMadeActive&&e.animateActivation()),n.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},r.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},r.prototype.animateActivation=function(){var t=this,e=r.strings,n=e.VAR_FG_TRANSLATE_START,o=e.VAR_FG_TRANSLATE_END,i=r.cssClasses,s=i.FG_DEACTIVATION,a=i.FG_ACTIVATION,c=r.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",d="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates(),h=u.startPoint,p=u.endPoint;l=h.x+"px, "+h.y+"px",d=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},r.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,n=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,n){if(!t)return{x:0,y:0};var r,o,i=e.x,s=e.y,a=i+n.left,c=s+n.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-a,o=l.changedTouches[0].pageY-c}else{var d=t;r=d.pageX-a,o=d.pageY-c}return{x:r,y:o}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},r.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=r.cssClasses.FG_DEACTIVATION,n=this.activationState,o=n.hasDeactivationUXRun,i=n.isActivated;(o||!i)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(e)}),Ha.FG_DEACTIVATION_MS))},r.prototype.rmBoundedActivationClasses=function(){var t=r.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},r.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),r.numbers.TAP_DELAY_MS)},r.prototype.deactivateImpl=function(){var t=this,n=this.activationState;if(n.isActivated){var r=e({},n);n.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(r)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(r),t.resetActivationState()})))}},r.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady()},r.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var e=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+r.numbers.PADDING;var n=Math.floor(e*r.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize=n-1:this.initialSize=n,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},r.prototype.updateLayoutCssVars=function(){var t=r.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,o=t.VAR_TOP,i=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(i,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},r}(Pa);const Ba=ja;class Va extends Na{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Ba}get isActive(){return ka(this.parentElement||this,":active")}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),n={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return B`<div class="mdc-ripple-surface mdc-ripple-upgraded ${te(n)}" style="${ce({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}r([wt(".mdc-ripple-surface")],Va.prototype,"mdcRoot",void 0),r([gt({type:Boolean})],Va.prototype,"primary",void 0),r([gt({type:Boolean})],Va.prototype,"accent",void 0),r([gt({type:Boolean})],Va.prototype,"unbounded",void 0),r([gt({type:Boolean})],Va.prototype,"disabled",void 0),r([gt({type:Boolean})],Va.prototype,"activated",void 0),r([gt({type:Boolean})],Va.prototype,"selected",void 0),r([gt({type:Boolean})],Va.prototype,"internalUseStateLayerCustomProperties",void 0),r([vt()],Va.prototype,"hovering",void 0),r([vt()],Va.prototype,"bgFocused",void 0),r([vt()],Va.prototype,"fgActivation",void 0),r([vt()],Va.prototype,"fgDeactivation",void 0),r([vt()],Va.prototype,"fgScale",void 0),r([vt()],Va.prototype,"fgSize",void 0),r([vt()],Va.prototype,"translateStart",void 0),r([vt()],Va.prototype,"translateEnd",void 0),r([vt()],Va.prototype,"leftPos",void 0),r([vt()],Va.prototype,"topPos",void 0);const Za=u`.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::after,.mdc-ripple-surface--primary::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--primary--activated::after,.mdc-ripple-surface--primary--activated::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--primary--selected::after,.mdc-ripple-surface--primary--selected::before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--primary--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::after,.mdc-ripple-surface--accent::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}.mdc-ripple-surface--accent--activated::after,.mdc-ripple-surface--accent--activated::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--activated:hover::before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}.mdc-ripple-surface--accent--selected::after,.mdc-ripple-surface--accent--selected::before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before,.mdc-ripple-surface--accent--selected:hover::before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::after,.mdc-ripple-surface--internal-use-state-layer-custom-properties::before{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color,#000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-state-layer-opacity,.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-state-layer-opacity,.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity,.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`;let qa=class extends Va{};function Ga(t,e,n){if(void 0!==e)return function(t,e,n){const r=t.constructor;if(!n){const t=`__${e}`;if(!(n=r.getPropertyDescriptor(e,t)))throw new Error("@ariaProperty must be used after a @property decorator")}const o=n;let i="";if(!o.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(t.dispatchWizEvent)return n;const s={configurable:!0,enumerable:!0,set(t){if(""===i){const t=r.getPropertyOptions(e);i="string"==typeof t.attribute?t.attribute:e}this.hasAttribute(i)&&this.removeAttribute(i),o.set.call(this,t)}};return o.get&&(s.get=function(){return o.get.call(this)}),s}(t,e,n);throw new Error("@ariaProperty only supports TypeScript Decorators")}qa.styles=[Za],qa=r([mt("mwc-ripple")],qa);class Wa{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}class Ka extends ht{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new Wa((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderRipple(){return this.shouldRenderRipple?B`<mwc-ripple .disabled="${this.disabled}" unbounded></mwc-ripple>`:""}focus(){const t=this.buttonElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.buttonElement;t&&(this.rippleHandlers.endFocus(),t.blur())}render(){return B`<button class="mdc-icon-button mdc-icon-button--display-flex" aria-label="${this.ariaLabel||this.icon}" aria-haspopup="${ne(this.ariaHasPopup)}" ?disabled="${this.disabled}" @focus="${this.handleRippleFocus}" @blur="${this.handleRippleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}">${this.renderRipple()} ${this.icon?B`<i class="material-icons">${this.icon}</i>`:""} <span><slot></slot></span></button>`}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}r([gt({type:Boolean,reflect:!0})],Ka.prototype,"disabled",void 0),r([gt({type:String})],Ka.prototype,"icon",void 0),r([Ga,gt({type:String,attribute:"aria-label"})],Ka.prototype,"ariaLabel",void 0),r([Ga,gt({type:String,attribute:"aria-haspopup"})],Ka.prototype,"ariaHasPopup",void 0),r([wt("button")],Ka.prototype,"buttonElement",void 0),r([function(t){return yt({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}("mwc-ripple")],Ka.prototype,"ripple",void 0),r([vt()],Ka.prototype,"shouldRenderRipple",void 0),r([bt({passive:!0})],Ka.prototype,"handleRippleMouseDown",null),r([bt({passive:!0})],Ka.prototype,"handleRippleTouchStart",null);const Xa=u`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;font-style:normal;font-size:var(--mdc-icon-size,24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.mdc-icon-button img,.mdc-icon-button svg{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}:host{display:inline-block;outline:0}:host([disabled]){pointer-events:none}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block}:host{--mdc-ripple-color:currentcolor;-webkit-tap-highlight-color:transparent}.mdc-icon-button,:host{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size,48px);height:var(--mdc-icon-button-size,48px);padding:calc((var(--mdc-icon-button-size,48px) - var(--mdc-icon-size,24px))/ 2)}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block;width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}`;let Ja=class extends Ka{};Ja.styles=[Xa],Ja=r([mt("mwc-icon-button")],Ja);let Qa=class extends fe{constructor(){super(...arguments),this.disabled=!1,this.dense=!1}static get styles(){return u`:host{font-size:20px}:host,mwc-icon-button{display:inline-block}mwc-icon-button::part(button){padding:.4em}:host([dense]) mwc-icon-button::part(button){padding:.2em}mo-icon{font-size:inherit}`}get template(){return B`<mwc-icon-button exportparts="button" ?disabled="${this.disabled}"><slot name="icon"><mo-icon icon="${this.icon}"></mo-icon></slot></mwc-icon-button>`}};var tc;r([Ce()],Qa.prototype,"icon",void 0),r([(t,e)=>{const n=t.constructor;Ce({type:Boolean,reflect:!0,updated(t,e){var n;if(null===(n=null==tc?void 0:tc.updated)||void 0===n||n.call(this,t,e),t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),null==tc?void 0:tc.blockFocus){const e=this;t&&-1!==this.tabIndex&&(e[Ea]=this.tabIndex,this.tabIndex=-1),t||void 0===e[Ea]||(this.tabIndex=e[Ea],e[Ea]=void 0)}}})(t,e),n.elementStyles.push(u`:host([disabled]){pointer-events:none}`)}],Qa.prototype,"disabled",void 0),r([Ce({type:Boolean,reflect:!0})],Qa.prototype,"dense",void 0),Qa=r([me("mo-icon-button")],Qa),Ja.elementStyles.push(u`span{display:inline-grid!important}i{display:none!important}button{width:unset!important;height:unset!important;font-size:inherit!important}::slotted(*){width:unset!important;height:unset!important}`),Ja.addInitializer((t=>{t.updateComplete.then((()=>t.buttonElement.part.add("button")))}));class ec extends ge{constructor(t,e){var n,r,o,i;super(t),this.host=t,this.options=e,this._hover=!1,this.anchorPointerIn=new De(this.host,{type:"pointerenter",target:null!==(r=null===(n=this.options)||void 0===n?void 0:n.target)&&void 0!==r?r:this.host,listener:()=>this.hover=!0}),this.anchorPointerOut=new De(this.host,{type:"pointerleave",target:null!==(i=null===(o=this.options)||void 0===o?void 0:o.target)&&void 0!==i?i:this.host,listener:()=>this.hover=!1})}get hover(){return this._hover}set hover(t){var e,n;t!==this._hover&&(this._hover=t,null===(n=null===(e=this.options)||void 0===e?void 0:e.handleHoverChange)||void 0===n||n.call(e,t),this.host.requestUpdate())}}class nc extends ge{constructor(t,e){var n,r,o,i;super(t),this.host=t,this.options=e,this.bubbled=!1,this._focused=!1,this.anchorFocusIn=new De(this.host,{type:"focusin",target:null!==(r=null===(n=this.options)||void 0===n?void 0:n.target)&&void 0!==r?r:this.host,listener:t=>{this.bubbled=t.target!==this.host,this.focused=!0}}),this.anchorFocusOut=new De(this.host,{type:"focusout",target:null!==(i=null===(o=this.options)||void 0===o?void 0:o.target)&&void 0!==i?i:this.host,listener:t=>{this.bubbled=t.target!==this.host,this.focused=!1}})}get focused(){return this._focused}set focused(t){var e,n;t!==this._focused&&(this._focused=t,null===(n=null===(e=this.options)||void 0===e?void 0:e.handleChange)||void 0===n||n.call(e,t,this.bubbled),this.host.requestUpdate())}}function rc(){return this.anchor}class oc extends ge{constructor(t){super(t),this.host=t,this.anchorFocusController=new nc(this.host,{target:rc,handleChange:()=>this.update()}),this.pointerController=new ec(this.host),this.anchorPointerController=new ec(this.host,{target:rc,handleHoverChange:()=>this.update()}),this.slotChangeHandler=new De(this.host,"slotchange",(()=>this.updatePosition()))}update(){this.openIfApplicable(),this.updatePosition()}openIfApplicable(){var t,e,n,r;const o=null!==(e=null===(t=this.host)||void 0===t?void 0:t.openOnFocus)&&void 0!==e&&e,i=null!==(r=null===(n=this.host)||void 0===n?void 0:n.openOnHover)&&void 0!==r&&r;if(!o&&!i)return;const s=i&&(this.pointerController.hover||this.anchorPointerController.hover)||o&&this.anchorFocusController.focused;this.host.open!==s&&this.host.setOpen(s)}updatePosition(){var t,e,n,r,o,i;const s=this.host.anchor.getBoundingClientRect(),a=this.host.getBoundingClientRect(),c=null!==(n=null===(e=null===(t=this.host)||void 0===t?void 0:t.getLeftPositionOffset)||void 0===e?void 0:e.call(t,s,a))&&void 0!==n?n:0,l=null!==(i=null===(o=null===(r=this.host)||void 0===r?void 0:r.getTopPositionOffset)||void 0===o?void 0:o.call(r,s,a))&&void 0!==i?i:0;let d=0,u=0;switch(this.host.placement){case"top":d=s.left+c,u=s.top-a.height;break;case"bottom":d=s.left+c,u=s.top+s.height;break;case"left":d=s.left-a.width,u=s.top+l;break;case"right":d=s.left+s.width,u=s.top+l}var h;this.host.style.left=`${h=d,Math.max(0,Math.min(h,window.innerWidth-a.width))}px`,this.host.style.top=`${(t=>Math.max(0,Math.min(t,window.innerHeight-a.height)))(u)}px`}}let ic=class extends fe{constructor(){super(...arguments),this.placement="bottom",this.open=!1,this.popoverController=new oc(this)}setOpen(t){this.open=t,this.openChange.dispatch(t)}static get styles(){return u`:host{position:fixed;box-shadow:var(--mo-shadow,0 2px 4px rgba(0,0,0,.2));width:max-content;opacity:0;z-index:99}:host(:not([open])){pointer-events:none}:host([open]){opacity:1}`}get template(){return B`<slot></slot>`}};var sc;r([xe()],ic.prototype,"openChange",void 0),r([Ce({type:Object})],ic.prototype,"anchor",void 0),r([Ce({reflect:!0})],ic.prototype,"placement",void 0),r([Ce({type:Boolean,reflect:!0})],ic.prototype,"open",void 0),r([Ce({type:Boolean})],ic.prototype,"openOnHover",void 0),r([Ce({type:Boolean})],ic.prototype,"openOnFocus",void 0),r([Ce({type:Object})],ic.prototype,"getLeftPositionOffset",void 0),r([Ce({type:Object})],ic.prototype,"getTopPositionOffset",void 0),ic=r([me("mo-popover")],ic);let ac=sc=class{static getProportion(t){return Number(t.replace(sc.regex,"$1")||1)}handles(t,[e,n]){return sc.supportedKeys.has(e)&&sc.regex.test(n)}apply(t,[,e]){const n=sc.getProportion(e);t.style.flexGrow=String(n)}};var cc;ac.supportedKeys=new Set(["width","height"]),ac.regex=/^\s*(0|[1-9][0-9]*)?\s*\*\s*$/,ac=sc=r([ye()],ac);let lc=cc=class extends fe{get direction(){var t;return(null===(t=[...cc.flexDirectionByDirections].find((([,t])=>this.style.flexDirection===t)))||void 0===t?void 0:t[0])||"vertical"}set direction(t){this.style.flexDirection=cc.flexDirectionByDirections.get(t)||"column"}get wrap(){return this.style.flexWrap}set wrap(t){this.style.flexWrap=t}get gap(){return this.style.gap}set gap(t){this.style.gap=t}get justifyItems(){return this.style.justifyItems}set justifyItems(t){this.style.justifyItems=t}get justifyContent(){return this.style.justifyContent}set justifyContent(t){this.style.justifyContent=t}get alignItems(){return this.style.alignItems}set alignItems(t){this.style.alignItems=t}get alignContent(){return this.style.alignContent}set alignContent(t){this.style.alignContent=t}static get styles(){return u`:host{display:flex;flex-direction:column;flex-wrap:nowrap}`}get template(){return B`<slot></slot>`}};lc.flexDirectionByDirections=new Map([["horizontal","row"],["horizontal-reversed","row-reverse"],["vertical","column"],["vertical-reversed","column-reverse"]]),r([Ce()],lc.prototype,"direction",null),r([Ce()],lc.prototype,"wrap",null),r([Ce()],lc.prototype,"gap",null),r([Ce()],lc.prototype,"justifyItems",null),r([Ce()],lc.prototype,"justifyContent",null),r([Ce()],lc.prototype,"alignItems",null),r([Ce()],lc.prototype,"alignContent",null),lc=cc=r([me("mo-flex")],lc);class dc extends ge{constructor(t,e){super(t),this.host=t,this.slotChangeCallback=e,this.mutationObserver=new MutationObserver(this.handleMutation.bind(this)).observe(this.host,{childList:!0,subtree:!0}),this.handleChange=()=>{var t;this.host.requestUpdate(),null===(t=this.slotChangeCallback)||void 0===t||t.call(this)}}getAssignedNodes(t){var e;const n=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(t?`slot[name="${t}"]`:"slot:not([name])");return n?this.extractNodesFromSlot(n):this.extractNodesFromChildren(t)}hasAssignedNodes(t){return this.getAssignedNodes(t).length>0}hasAssignedContent(t){return this.getAssignedNodes(t).some((t=>{var e;return t.nodeType===Node.TEXT_NODE&&(null===(e=t.textContent)||void 0===e?void 0:e.trim())||t.nodeType===Node.ELEMENT_NODE}))}getAssignedElements(t){return this.getAssignedNodes(t).filter((t=>t instanceof Element))}hasAssignedElements(t){return this.getAssignedElements(t).length>0}extractNodesFromSlot(t){return t.assignedNodes().flatMap((t=>t instanceof HTMLSlotElement?this.extractNodesFromSlot(t):[t]))}extractNodesFromChildren(t){return[...this.host.childNodes].filter((t=>{var e;return t instanceof Element||t instanceof Text&&!!(null===(e=t.textContent)||void 0===e?void 0:e.trim())})).filter((e=>e instanceof Element?e.slot===t:!t)).flatMap((t=>t instanceof HTMLSlotElement?t.assignedNodes():[t]))}hostConnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("slotchange",this.handleChange)}hostDisconnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("slotchange",this.handleChange)}handleMutation(t){t.some((t=>"childList"===t.type))&&this.handleChange()}}class uc extends fe{constructor(){super(...arguments),this.label="",this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.focused=!1,this.slotController=new dc(this),this.focusController=new nc(this,{handleChange:t=>{this.focused=t,t?this.handleFocus():this.handleBlur()}})}firstUpdated(){this.validate()}handleFocus(){}handleBlur(){}handleInput(t,e){null==e||e.stopPropagation(),this.inputValue=t,this.input.dispatch(this.inputValue),this.validate()}handleChange(t,e){null==e||e.stopPropagation(),this.handleInput(t),this.value=t,this.change.dispatch(this.value)}get isPopulated(){return void 0!==this.inputValue}get isActive(){return this.isPopulated||this.focused}get isDense(){return!1}get template(){return B`<mo-field label="${this.label}" ?populated="${this.isPopulated}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?dense="${this.isDense}" ?invalid="${this.invalid}" ?active="${this.isActive}">${this.startSlotTemplate} ${this.inputTemplate} ${this.endSlotTemplate}</mo-field>`}get startSlotTemplate(){return this.slotController.hasAssignedElements("start")?B`<slot slot="start" name="start"></slot>`:pe}get endSlotTemplate(){return this.slotController.hasAssignedElements("end")?B`<slot slot="end" name="end"></slot>`:pe}async validate(){const t=await this.checkValidity();this.invalid=!t,this.validityChange.dispatch(t)}}r([xe()],uc.prototype,"change",void 0),r([xe()],uc.prototype,"input",void 0),r([xe()],uc.prototype,"validityChange",void 0),r([Ce({type:Object})],uc.prototype,"value",void 0),r([Ce()],uc.prototype,"label",void 0),r([Ce({type:Boolean})],uc.prototype,"readonly",void 0),r([Ce({type:Boolean})],uc.prototype,"disabled",void 0),r([Ce({type:Boolean})],uc.prototype,"required",void 0),r([Ce({type:Boolean})],uc.prototype,"invalid",void 0),r([Ae()],uc.prototype,"focused",void 0),r([Ae()],uc.prototype,"inputValue",void 0);class hc extends uc{constructor(){super(...arguments),this.selectOnFocus=!1,this.dense=!1}get isPopulated(){return!!this.inputStringValue}get isDense(){return this.dense}update(t){t.has("value")&&(this.inputStringValue=this.valueToInputValue(this.value)),super.update(t)}handleInput(t,e){this.inputStringValue=this.inputElement.value,super.handleInput(t,e)}handleChange(t,e){super.handleChange(t,e),this.inputStringValue=this.valueToInputValue(t)}handleFocus(){super.handleFocus(),this.selectOnFocus&&this.select()}blur(){this.inputElement.blur()}focus(){this.inputElement.focus()}select(){this.inputElement.select()}setSelectionRange(...t){this.inputElement.setSelectionRange(...t)}setRangeText(...t){this.inputElement.setRangeText(...t)}setCustomValidity(t){this.inputElement.setCustomValidity(t)}checkValidity(){return Promise.resolve(this.inputElement.checkValidity())}reportValidity(){this.inputElement.reportValidity()}}r([Ce({type:Boolean,reflect:!0})],hc.prototype,"selectOnFocus",void 0),r([Ce({type:Boolean})],hc.prototype,"dense",void 0),r([Ae()],hc.prototype,"inputStringValue",void 0),r([ve("[part=input]")],hc.prototype,"inputElement",void 0);var pc=n(969),mc=n.n(pc);class fc{constructor(t){var e;this.color=t instanceof Array?t:null===(e=mc().get(t))||void 0===e?void 0:e.value}get r(){return this.color[0]}get g(){return this.color[1]}get b(){return this.color[2]}get a(){return this.color[3]}get hex(){return mc().to.hex(this.color)}get rgb(){return mc().to.rgb(this.color)}get rgbPercent(){return mc().to.rgb.percent(this.color)}get hsl(){return mc().to.hsl(this.color)}get hsv(){return mc().to.hwb(this.color)}get keyword(){return mc().to.keyword(this.color)}toString(){return this.hex}valueOf(){return this.hex}}class gc{constructor(...t){this.colors=new Array,this.colors=t.map((t=>t instanceof fc?t:new fc(t)))}get medianColor(){const t=this.colors[Math.floor(this.colors.length/2)];if(!t)throw new Error("No colors found");return t}}class vc{static inject(t,e=document.createElement("style")){return e.innerHTML=t.cssText,document.head.appendChild(e),e}}class yc{}yc.background=new class extends Ee{constructor(){super("Theme.Background","system"),window.matchMedia("(prefers-color-scheme: dark)").onchange=()=>this.updateAttributeValue(),window.matchMedia("(prefers-color-scheme: light)").onchange=()=>this.updateAttributeValue(),this.updateAttributeValue(),this.changed.subscribe((()=>this.updateAttributeValue()))}get calculatedValue(){return"system"!==this.value?this.value:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}updateAttributeValue(){document.documentElement.setAttribute("data-theme",this.calculatedValue)}},yc.accent=new class extends Ee{constructor(){super("Theme.Accent",new fc("rgb(0, 119, 200)")),this.parseColor=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"Color"===t.$type&&"color"in t)return new fc(t.color)},this.parseColorSet=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"ColorSet"===t.$type&&"colors"in t)return new gc(...t.colors.map((t=>t.color)))},this.injectCss()}get value(){let t=super.value;return t=this.parseColor(t)||this.parseColorSet(t),t||window.localStorage.removeItem(this.name),t||this.defaultValue}set value(t){t.$type=t instanceof gc?"ColorSet":"Color",super.value=t,this.injectCss()}get medianColor(){return this.value instanceof gc?this.value.medianColor:this.value}injectCss(){const t=this.value,e=this.medianColor,n=t instanceof gc?t.colors[0]:t,r=t instanceof gc?t.colors[1]:t,o=t instanceof gc?t.colors[2]:t;this.styleElement=vc.inject(u`:root{--mo-color-accent-base-r:${d(null==e?void 0:e.r)}--mo-color-accent-base-g:${d(null==e?void 0:e.g)}--mo-color-accent-base-b:${d(null==e?void 0:e.b)}--mo-color-accent-gradient-1:${d(null==n?void 0:n.rgb)}--mo-color-accent-gradient-2:${d(null==r?void 0:r.rgb)}--mo-color-accent-gradient-3:${d(null==o?void 0:o.rgb)}}`,this.styleElement)}},vc.inject(u`@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);*{font-weight:400;box-sizing:border-box}html{width:100%;height:100%;font-family:var(--mo-font-family);background-color:var(--mo-color-background);color:var(--mo-color-foreground)}body{height:100%;width:100%;overflow:auto}:root[data-theme=light]{color-scheme:light;--mo-color-background-base:255,255,255;--mo-color-foreground-base:0,0,0;--mo-color-background:rgb(220, 221, 225);--mo-color-foreground:black;--mo-color-foreground-transparent:rgb(48, 48, 48);--mo-color-surface-base:255,255,255;--mo-color-gray-base:121,121,121;--mo-shadow-base:95,81,78}:root[data-theme=dark]{color-scheme:dark;--mo-color-background-base:0,0,0;--mo-color-foreground-base:255,255,255;--mo-color-background:rgb(16, 17, 20);--mo-color-surface-base:42,43,47;--mo-color-foreground:white;--mo-color-foreground-transparent:rgb(220, 220, 220);--mo-color-gray-base:165,165,165;--mo-shadow-base:0,1,3}:root{--mo-font-family:Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;--mo-border-radius:4px;--mo-shadow:rgba(var(--mo-shadow-base), .4) 0 1px 2px 0,rgba(var(--mo-shadow-base), .2) 0 1px 3px 1px;--mo-shadow-deep:0px 5px 5px -3px rgba(var(--mo-shadow-base), 0.2),0px 8px 10px 1px rgba(var(--mo-shadow-base), 0.14),0px 3px 14px 2px rgba(var(--mo-shadow-base), 0.12);--mo-color-on-surface:rgba(var(--mo-color-foreground-base), 0.87);--mo-color-gray:rgb(var(--mo-color-gray-base));--mo-color-gray-transparent:rgba(var(--mo-color-gray-base), 0.5);--mo-color-transparent-gray-alpha:.04;--mo-color-transparent-gray-1:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 1));--mo-color-transparent-gray-2:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 2));--mo-color-transparent-gray-3:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 3));--mo-color-transparent-gray:var(--mo-color-transparent-gray-1);--mo-color-green-base:93,170,96;--mo-color-green:rgb(var(--mo-color-green-base));--mo-color-yellow-base:232,152,35;--mo-color-yellow:rgb(var(--mo-color-yellow-base));--mo-color-red-base:221,61,49;--mo-color-red:rgb(var(--mo-color-red-base));--mo-color-blue-base:0,119,200;--mo-color-accessible-base-value:calc(((((var(--mo-color-accent-base-r) * 299) + (var(--mo-color-accent-base-g) * 587) + (var(--mo-color-accent-base-b) * 114)) / 1000) - 128) * -1000);--mo-color-accessible-base:var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value);--mo-color-accessible:rgb(var(--mo-color-accessible-base));--mo-color-accent-base:var(--mo-color-accent-base-r),var(--mo-color-accent-base-g),var(--mo-color-accent-base-b);--mo-color-accent:rgb(var(--mo-color-accent-base));--mo-color-accent-transparent:rgba(var(--mo-color-accent-base), 0.25);--mo-color-accent-gradient:linear-gradient(135deg, rgb(var(--mo-color-accent-gradient-1)), rgb(var(--mo-color-accent-gradient-2)), rgb(var(--mo-color-accent-gradient-3)));--mo-color-accent-gradient-transparent:linear-gradient(135deg, rgba(var(--mo-color-accent-gradient-1), 0.25), rgba(var(--mo-color-accent-gradient-2), 0.25), rgba(var(--mo-color-accent-gradient-3), 0.25));--mo-color-surface:rgb(var(--mo-color-surface-base))}`);class bc extends ge{constructor(t){super(t),this.host=t,this.handleChange=()=>{this.setAttribute(),this.host.requestUpdate()}}hostConnected(){this.setAttribute(),yc.accent.changed.subscribe(this.handleChange),yc.background.changed.subscribe(this.handleChange)}hostDisconnected(){yc.accent.changed.unsubscribe(this.handleChange),yc.background.changed.unsubscribe(this.handleChange)}setAttribute(){this.host.setAttribute("data-theme",yc.background.calculatedValue)}}let wc=class extends fe{constructor(){super(...arguments),this.label="",this.readonly=!1,this.disabled=!1,this.required=!1,this.dense=!1,this.populated=!1,this.invalid=!1,this.active=!1,this.slotController=new dc(this),this.themeController=new bc(this)}static get styles(){return u`:host{--mo-field-label-scale-value-on-focus:0.75;--mo-field-label-scale-on-focus:scale(var(--mo-field-label-scale-value-on-focus));--mo-field-label-translate-value-on-focus:-50%;--mo-field-label-translate-on-focus:translateY(var(--mo-field-label-translate-value-on-focus));--mo-field-label-transform-on-focus:var(--mo-field-label-translate-on-focus) var(--mo-field-label-scale-on-focus);position:relative;overflow:hidden;display:flex;gap:4px;min-width:0;border-start-start-radius:var(--mo-field-border-start-start-radius,var(--mo-border-radius,4px));border-start-end-radius:var(--mo-field-border-start-end-radius,var(--mo-border-radius,4px));box-sizing:border-box;background:var(--mo-field-background-default);gap:6px;height:40px;justify-content:center;align-items:center}:host([data-theme=light]){--mo-field-background-default:rgba(var(--mo-color-foreground-base), 0.09)}:host([data-theme=dark]){--mo-field-background-default:rgba(var(--mo-color-background-base), 0.5)}:host([active]){outline:0}:host([dense]){height:32px;--mo-field-label-scale-value-on-focus:1}:host([disabled]){pointer-events:none;opacity:.5}div{position:relative;flex:1 1 auto;height:100%}div:first-child{padding-inline-start:10px}slot[name=start]:first-child{padding-inline-start:8px}div:last-child{padding-inline-end:var(--mo-field-input-padding-inline-end,10px)}slot[name=end]:last-child{padding-inline-end:8px}slot:not([name])::slotted(*){border:0;width:100%;font-family:inherit;outline:0;padding:.8rem 0 0 0;height:calc(100% - .8rem);color:var(--mo-color-foreground);background-color:transparent;text-align:inherit}:host([dense]) slot:not([name])::slotted(*){padding:0;height:100%}${this.labelStyles}${this.caretStyles}${this.indicatorLineStyles}slot{color:var(--mo-color-gray);display:flex;height:100%;justify-content:center;align-items:center}`}static get labelStyles(){return u`span{position:absolute;top:min(50%,30px);transform:var(--mo-field-label-translate-on-focus);color:var(--mo-color-gray);transition:.1s ease-out;transform-origin:var(--mo-field-label-transform-origin);pointer-events:none;white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;max-width:100%}:host([dense][populated]) span{visibility:hidden}:host([active]) span,:host([populated]) span{top:14px;transform:var(--mo-field-label-transform-on-focus)}:host([active]) span{color:var(--mo-color-accent)}:host([invalid]) span{color:var(--mo-color-red)}`}static get indicatorLineStyles(){return u`:host{border-bottom:1px solid var(--mo-color-gray-transparent)}:host:after{--mo-field-initial-outline-width:10px;content:'';position:absolute;bottom:-1px;height:2px;inset-inline-start:calc(calc(100% - var(--mo-field-initial-outline-width))/ 2);width:var(--mo-field-initial-outline-width);visibility:hidden;background-color:var(--mo-color-accent);transition:.2s ease all}:host(:focus),:host([active]){border-bottom:1px solid var(--mo-color-accent)}:host([active]):after{visibility:visible;width:100%;inset-inline-start:0}:host([invalid]){border-bottom:1px solid var(--mo-color-red)}:host([invalid]):after{background-color:var(--mo-color-red)}`}static get caretStyles(){return u`::slotted(*){caret-color:var(--mo-color-accent)}:host([readonly]) ::slotted(*){caret-color:transparent}:host([invalid]) ::slotted(*){caret-color:var(--mo-color-red)}`}get template(){return this.style.setProperty("--mo-field-label-transform-origin","rtl"===getComputedStyle(this).direction?"right top":"left top"),B`${this.slotController.hasAssignedContent("start")?B`<slot name="start"></slot>`:pe}<div part="container"><span>${this.label} ${this.required?"*":""}</span><slot></slot></div>${this.slotController.hasAssignedContent("end")?B`<slot name="end"></slot>`:pe}`}};r([Ce({reflect:!0})],wc.prototype,"label",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"readonly",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"disabled",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"required",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"dense",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"populated",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"invalid",void 0),r([Ce({type:Boolean,reflect:!0})],wc.prototype,"active",void 0),wc=r([me("mo-field")],wc);let Sc=class extends hc{constructor(){super(...arguments),this.type="text",this.inputType="text"}valueToInputValue(t){return null!=t?t:""}get inputTemplate(){return B`<input part="input" inputmode="${this.inputType}" type="${this.type}" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" minlength="${ne(this.minLength)}" maxlength="${ne(this.maxLength)}" pattern="${ne(this.pattern)}" autocomplete="${ne(this.autoComplete)}" @input="${t=>this.handleInput(this.inputElement.value,t)}" @change="${t=>this.handleChange(this.inputElement.value,t)}">`}get endSlotTemplate(){return B`${this.lengthTemplate} ${super.endSlotTemplate}`}get lengthTemplate(){var t,e;if(!this.maxLength)return pe;const n=this.maxLength-(null!==(e=null===(t=this.inputValue)||void 0===t?void 0:t.length)&&void 0!==e?e:0);return B`<span slot="end" ${we({color:"var(--mo-color-gray-transparent)"})}>${n}</span>`}};r([Ce()],Sc.prototype,"value",void 0),r([Ce({type:Number})],Sc.prototype,"minLength",void 0),r([Ce({type:Number})],Sc.prototype,"maxLength",void 0),r([Ce()],Sc.prototype,"pattern",void 0),r([Ce()],Sc.prototype,"autoComplete",void 0),Sc=r([me("mo-field-text")],Sc);let $c=class extends Sc{constructor(){super(...arguments),this.type="password",this.autoComplete="current-password"}get lengthTemplate(){return pe}};r([Ce()],$c.prototype,"autoComplete",void 0),$c=r([me("mo-field-password")],$c);let Cc=class extends Sc{constructor(){super(...arguments),this.inputType="search"}get startSlotTemplate(){return B`<mo-icon slot="start" icon="search" @click="${()=>this.focus()}" ${we({color:this.focusController.focused?"var(--mo-color-accent)":"var(--mo-color-gray)"})}></mo-icon>${super.startSlotTemplate}`}get endSlotTemplate(){return B`<mo-icon-button slot="end" icon="cancel" dense ${we({color:"var(--mo-color-gray)",visibility:this.value?"visible":"hidden"})} @click="${()=>this.clear()}"></mo-icon-button>${super.endSlotTemplate}`}clear(){this.value&&(this.handleInput(""),this.handleChange(""))}};Cc=r([me("mo-field-search")],Cc);let Ac=class extends hc{valueToInputValue(t){return null!=t?t:""}get inputTemplate(){return B`<input part="input" type="email" inputmode="email" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" @input="${t=>this.handleInput(this.inputElement.value,t)}" @change="${t=>this.handleChange(this.inputElement.value,t)}">`}};r([Ce()],Ac.prototype,"value",void 0),Ac=r([me("mo-field-email")],Ac);let Mc=class extends hc{valueToInputValue(t){return null!=t?t:""}static get styles(){return u`mo-field{height:auto;transition:none;--mo-field-input-padding-inline-end:0px;align-items:baseline}textarea{margin-top:1.15rem;line-height:1.5rem;font-size:.875rem;width:100%!important;padding:0}`}get inputTemplate(){return B`<textarea part="input" inputmode="text" type="text" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" minlength="${ne(this.minLength)}" maxlength="${ne(this.maxLength)}" @input="${t=>this.handleInput(this.inputElement.value,t)}" @change="${t=>this.handleChange(this.inputElement.value,t)}"></textarea>`}get endSlotTemplate(){return B`${this.lengthTemplate} ${super.endSlotTemplate}`}get lengthTemplate(){var t,e;if(!this.maxLength)return pe;const n=this.maxLength-(null!==(e=null===(t=this.inputValue)||void 0===t?void 0:t.length)&&void 0!==e?e:0);return B`<span slot="end" ${we({color:"var(--mo-color-gray-transparent)"})}>${n}</span>`}};r([Ce()],Mc.prototype,"value",void 0),r([Ce({type:Number})],Mc.prototype,"minLength",void 0),r([Ce({type:Number})],Mc.prototype,"maxLength",void 0),Mc=r([me("mo-field-text-area")],Mc);let Dc=class extends Sc{constructor(){super(...arguments),this.inputType="time"}get startSlotTemplate(){return B`<mo-icon slot="start" @click="${()=>this.focus()}" icon="schedule" ${we({color:"var(--mo-color-gray)"})}></mo-icon>${super.startSlotTemplate}`}};Dc=r([me("mo-field-time")],Dc);class Tc{constructor(t){this.calendar=t}get styles(){return u``}select(t){this.calendar.value=t,this.calendar.change.dispatch(t)}}var _c;"group"in Array.prototype==!1&&(Array.prototype.group=function(t){return this.reduce(((e,n)=>{const r=t(n);return(e[r]||(e[r]=[])).push(n),e}),{})}),"groupToMap"in Array.prototype==!1&&(Array.prototype.groupToMap=function(t){return new Map(Object.entries(this.group(t)))});let xc=_c=class extends fe{constructor(){super(...arguments),this.includeWeekNumbers=!1,this.navigatingDate=new DateTime,this.yearSelection=!1,this.today=(new DateTime).round({smallestUnit:"day",roundingMode:"floor"}),this.years=new Array(200).fill(void 0).map(((t,e)=>_c.startingYearDate.addYears(e)))}static get styles(){return u`:host{--mo-calendar-max-width:325px;--mo-calendar-min-height:230px;--mo-calendar-day-size:36px;--mo-calendar-week-number-width:var(--mo-calendar-day-size)}.monthHeader,.week{color:var(--mo-color-gray)}.monthHeader{align-items:center}.navigatingMonth,.navigatingYear{font-size:var(--mo-font-size-l);transition:var(--mo-duration-quick)}.navigatingYear:hover{color:var(--mo-color-accent);cursor:pointer}.day,.year{text-align:center;border-radius:100px;cursor:pointer;transition:var(--mo-duration-quick);font-weight:500;user-select:none;font-size:var(--mo-font-size-m);width:var(--mo-calendar-day-size);-webkit-user-select:none;align-items:center;justify-content:center}.year{width:100%;justify-content:center;align-items:center}.selected{background:var(--mo-color-accent);color:var(--mo-color-accessible)!important}.day{height:var(--mo-calendar-day-size)}.day:hover,.year:hover{background:var(--mo-color-transparent-gray-3)}.day:not(.isInMonth){color:var(--mo-color-gray)}.day.today{color:var(--mo-color-accent)}`}get template(){return B`<mo-flex alignItems="center" justifyContent="center" ${we({width:"var(--mo-calendar-max-width)",minHeight:"var(--mo-calendar-min-height)"})}><mo-flex direction="horizontal" justifyContent="space-between" alignItems="center" ${we({width:"100%"})}><mo-icon-button icon="${"rtl"===getComputedStyle(this).direction?"keyboard_arrow_right":"keyboard_arrow_left"}" @click="${()=>this.navigatingDate=this.navigatingDate.addMonths(-1)}"></mo-icon-button><div><a class="navigatingMonth">${this.navigatingDate.monthName}</a> <a class="navigatingYear" @click="${()=>this.toggleYearSelection()}">${this.navigatingDate.yearName}</a></div><mo-icon-button icon="${"rtl"===getComputedStyle(this).direction?"keyboard_arrow_left":"keyboard_arrow_right"}" @click="${()=>this.navigatingDate=this.navigatingDate.addMonths(1)}"></mo-icon-button></mo-flex>${this.yearSelection?this.yearSelectionTemplate:this.daySelectionTemplate}</mo-flex>`}get daySelectionTemplate(){var t,e;const n=null===(t=this.navigatingDate.monthStart)||void 0===t?void 0:t.weekStart,r=null===(e=this.navigatingDate.monthEnd)||void 0===e?void 0:e.weekEnd,o=[...this.rangeOf(n,r).groupToMap((t=>String(t.weekOfYear)))].sort((([,t],[,e])=>{var n;return(null===(n=t[0])||void 0===n?void 0:n.isBefore(e[0]))?-1:1}));return B`<mo-grid class="month" rows="repeat(auto-fill, var(--mo-calendar-day-size))" columns="${this.includeWeekNumbers?"var(--mo-calendar-week-number-width) repeat(7, var(--mo-calendar-day-size))":"repeat(7, var(--mo-calendar-day-size))"}" ${we({alignItems:"center",justifyItems:"center"})}>${!1===this.includeWeekNumbers?pe:B`<div></div>`} ${DateTime.getWeekDayNames().map((t=>B`<div class="monthHeader">${t.charAt(0).toUpperCase()+t.charAt(1)}</div>`))} ${o.map((([t,e])=>B`${!1===this.includeWeekNumbers?pe:B`<div class="week">${t}</div>`} ${e.map((t=>this.getDayTemplate(t)))}`))}</mo-grid>`}getDayTemplate(t){return B`<mo-flex class="${te(this.getDefaultDayElementClasses(t))}">${t.format({day:"numeric"})}</mo-flex>`}getDefaultDayElementClasses(t){var e,n;const r=null===(e=[...this.rangeOf(t.monthStart,t.monthEnd).groupToMap((t=>String(t.month)))].sort((([,t],[,e])=>t.length>e.length?-1:1))[0])||void 0===e?void 0:e[1];return{day:!0,today:t.equals(this.today),isInMonth:t.localMonth===(null===(n=null==r?void 0:r[0])||void 0===n?void 0:n.localMonth)}}get yearSelectionTemplate(){return B`<mo-scroller ${we({height:"*"})}><mo-grid rows="repeat(50, var(--mo-calendar-day-size))" columns="repeat(4, 1fr)">${this.years.map((t=>B`<mo-flex class="${te({year:!0,selected:this.navigatingDate.year===t.year})}" @click="${()=>this.selectYear(t.year)}">${t.yearName}</mo-flex>`))}</mo-grid></mo-scroller>`}selectYear(t){this.navigatingDate.setFullYear(t),this.yearSelection=!1}toggleYearSelection(){this.yearSelection=!this.yearSelection,this.yearSelection&&new Promise((()=>setTimeout((()=>{this.selectedYearElement.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),1)))}rangeOf(t,e){return new Array(Math.abs(Math.round(e.until(t).days))+1).fill(void 0).map(((e,n)=>t.addDays(n)))}};var Ec;xc.startingYearDate=new DateTime(1900,6,1),r([Ce({type:Boolean,reflect:!0})],xc.prototype,"includeWeekNumbers",void 0),r([Ae()],xc.prototype,"navigatingDate",void 0),r([Ae()],xc.prototype,"yearSelection",void 0),r([ve(".year.selected")],xc.prototype,"selectedYearElement",void 0),xc=_c=r([me("mo-calendar")],xc);let kc=Ec=class extends xc{get selectionAdapter(){return this._selectionAdapter||(this._selectionAdapter=new this.selectionAdapterConstructor(this),Ec.elementStyles.push(this._selectionAdapter.styles)),this._selectionAdapter}getDayTemplate(t){return this.selectionAdapter.getDayTemplate(t,this.getDefaultDayElementClasses(t))}};r([xe()],kc.prototype,"change",void 0),r([Ce({type:Object})],kc.prototype,"selectionAdapterConstructor",void 0),r([Ce({type:Object,updated(){this.navigatingDate=this.selectionAdapter.getNavigatingDate(this.value)}})],kc.prototype,"value",void 0),kc=Ec=r([me("mo-selectable-calendar")],kc);class Ic{static getDateSeparator(t=Ie.currentLanguage){return Intl.DateTimeFormat(t).format(new Date).replace(/\p{Number}/gu,"")[0]}static parse(t,e=new DateTime){if(!(t=t.toLowerCase().trim()))return;if(t.startsWith("+")||t.startsWith("-"))return Ic.parseDateFromOperation(t,e);if(t.includes(Ic.getDateSeparator()))return Ic.parseDateFromLocalDate(t,e);if((3===t.length||4===t.length||8===t.length)&&!isNaN(parseInt(t)))return Ic.parseDateFromShortcut(t);const n=new DateTime(t||new DateTime);if("Invalid Date"!==String(n))return n;const r=Ic.parseDateFromKeyword(t,e);return r||void 0}static parseDateFromLocalDate(t,e=new DateTime){const n=new DateTime(t);if("Invalid Date"===String(n))return;return 2===t.split(Ic.getDateSeparator()).length&&n.setFullYear(e.getFullYear()),n}static parseDateFromOperation(t,e=new DateTime){const n=t.charAt(t.length-1).toLowerCase();let r;if(!isNaN(Number(n)))return r=parseInt(t.substring(0,t.length)),e.addDays(r);switch(r=parseInt(t.substring(0,t.length-1)),n){case"y":return e.addYears(r);case"m":return e.addMonths(r);default:return}}static parseDateFromShortcut(t){const e=t.substring(0,2),n=t.substring(2,t.length>=4?4:3),r=8!==length?void 0:t.substring(4,8);return new DateTime(r?parseInt(r):(new Date).getFullYear(),parseInt(n)-1,parseInt(e))}static parseDateFromKeyword(t,e=new DateTime){switch(t){case"h":return new DateTime(e);case"üm":return e.addDays(2);case"m":return e.addDays(1);case"üüm":return e.addDays(3);case"g":return e.addDays(-1);case"vg":return e.addDays(-2);case"vvg":return e.addDays(-3);case"adw":return e.weekStart;case"edw":return e.weekEnd;case"anw":return e.addWeeks(1).weekStart;case"enw":return e.addWeeks(1).weekEnd;case"alw":return e.addWeeks(-1).weekStart;case"elw":return e.addWeeks(-1).weekEnd;case"adm":return e.monthStart;case"edm":return e.monthEnd;case"anm":return e.addMonths(1).monthStart;case"enm":return e.addMonths(1).monthEnd;case"alm":return e.addMonths(-1).monthStart;case"elm":return e.addMonths(-1).monthEnd;case"adj":return e.yearStart;case"edj":return e.yearEnd;case"anj":return e.addYears(1).yearStart;case"enj":return e.addYears(1).yearEnd;case"alj":return e.addYears(-1).yearStart;case"elj":return e.addYears(-1).yearEnd;default:return}}}class Fc extends hc{constructor(){super(...arguments),this.open=!1,this.hideDatePicker=!1,this.shortcutReferenceDate=new DateTime,this.calendarIconButtonIcon="today"}handleChange(t,e){super.handleChange(t,e),this.inputStringValue=this.valueToInputValue(t)}get isActive(){return super.isActive||this.open}static get styles(){return u`mo-popover{background:var(--mo-color-background);box-shadow:var(--mo-shadow);border-radius:var(--mo-border-radius);color:var(--mo-color-foreground);padding:10px 4px}`}get endSlotTemplate(){return B`${super.endSlotTemplate} ${this.calendarIconButtonTemplate}`}get inputTemplate(){return B`<input part="input" ?readonly="${this.readonly}" ?required="${this.required}" ?disabled="${this.disabled}" .value="${re(this.inputStringValue||"")}" @input="${t=>this.handleInput(this.inputValueToValue(this.inputElement.value||""),t)}" @change="${t=>this.handleChange(this.inputValueToValue(this.inputElement.value||""),t)}">`}get calendarIconButtonTemplate(){return B`${this.hideDatePicker?pe:B`<mo-icon-button tabindex="-1" dense slot="end" icon="${this.calendarIconButtonIcon}" ${we({color:this.isActive?"var(--mo-color-accent)":"var(--mo-color-gray)"})} @click="${()=>this.open=!this.open}"></mo-icon-button>`} ${this.hideDatePicker?pe:B`<mo-popover tabindex="-1" slot="end" openOnFocus .anchor="${this}" ?open="${this.open}" @openChange="${t=>this.open=t.detail}">${this.open?this.menuContentTemplate:pe}</mo-popover>`}`}get menuContentTemplate(){return B`<mo-selectable-calendar .selectionAdapterConstructor="${this.calendarSelectionAdapterConstructor}" .value="${this.value}" @change="${t=>this.handleCalendarChange(t.detail)}"></mo-selectable-calendar>`}handleCalendarChange(t){this.value=t,this.change.dispatch(t)}}r([Ce({type:Boolean,reflect:!0})],Fc.prototype,"open",void 0),r([Ce({type:Boolean})],Fc.prototype,"hideDatePicker",void 0),r([Ce({type:Object})],Fc.prototype,"shortcutReferenceDate",void 0),r([ve("mo-selectable-calendar")],Fc.prototype,"calendarElement",void 0);class Oc extends Tc{getDayTemplate(t,e){var n,r;return B`<mo-flex class="${te(Object.assign(Object.assign({},e),{selected:null!==(r=null===(n=this.calendar.value)||void 0===n?void 0:n.equals(t))&&void 0!==r&&r}))}" @click="${()=>this.select(t)}">${t.format({day:"numeric"})}</mo-flex>`}getNavigatingDate(t){const e=null!=t?t:new DateTime;return new DateTime(e.year,e.month)}}let Nc=class extends Fc{constructor(){super(...arguments),this.calendarSelectionAdapterConstructor=Oc}handleCalendarChange(t){super.handleCalendarChange(t),this.open=!1}valueToInputValue(t){var e;return t&&null!==(e=t.formatAsDate())&&void 0!==e?e:""}inputValueToValue(t){return t?Ic.parse(t,this.shortcutReferenceDate):void 0}};r([Ce({type:Object})],Nc.prototype,"value",void 0),Nc=r([me("mo-field-date")],Nc);class Pc{static parse(t,e=new DateTime){const n=Pc.parseDateRangeFromKeyword(t,e);if(n)return n;let r=Pc.userDateRangeSeparators.find((e=>t.includes(e)));r||(t+=Pc.dateRangeSeparator,r=Pc.dateRangeSeparator);const[o,i]=t.toLowerCase().split(r),s=Ic.parse(o,e),a=Ic.parse(i,e);return new DateTimeRange(s,a)}static parseDateRangeFromKeyword(t,e=new DateTime){switch(t){case"w":case"dw":return new DateTimeRange(e.weekStart,e.weekEnd);case"nw":return new DateTimeRange(e.addWeeks(1).weekStart,e.addWeeks(1).weekEnd);case"lw":return new DateTimeRange(e.addWeeks(-1).weekStart,e.addWeeks(-1).weekEnd);case"m":case"dm":return new DateTimeRange(e.monthStart,e.monthEnd);case"lm":return new DateTimeRange(e.addMonths(-1).monthStart,e.addMonths(-1).monthEnd);case"nm":return new DateTimeRange(e.addMonths(1).monthStart,e.addMonths(1).monthEnd);case"j":case"dj":return new DateTimeRange(e.yearStart,e.yearEnd);case"lj":return new DateTimeRange(e.addYears(-1).yearStart,e.addYears(-1).yearEnd);case"nj":return new DateTimeRange(e.addYears(1).yearStart,e.addYears(1).yearEnd);default:return}}}Pc.dateRangeSeparator=" – ",Pc.userDateRangeSeparators=[Pc.dateRangeSeparator," ","-","~"];class Rc extends Tc{constructor(){super(...arguments),this.currentSelection=0}get styles(){return u`.day.inSelectionRange:not(.selected){background:var(--mo-color-accent-transparent)}.day.inSelectionRange{border-radius:0}.day.selected.first{border-radius:100px 0 0 100px}.day.selected.last{border-radius:0 100px 100px 0}.day.selected.first.last{border-radius:100px}`}getDayTemplate(t,e){const n=this.calendar.value,r=!!(null==n?void 0:n.start)&&t.equals(n.start),o=!!(null==n?void 0:n.end)&&t.equals(n.end),i=Object.assign(Object.assign({},e),{inSelectionRange:!!n&&n.includes(t),selected:r||o,first:r,last:o});return B`<mo-flex class="${te(i)}" @click="${()=>this.handleClick(t)}">${t.format({day:"numeric"})}</mo-flex>`}getNavigatingDate(t){var e;const n=null!==(e=null==t?void 0:t.start)&&void 0!==e?e:new DateTime;return new DateTime(n.year,n.month)}handleClick(t){const e=this.calendar.value,n=!!(null==e?void 0:e.start)&&!!e.end,r=0===this.currentSelection?new DateTimeRange(t,n||null==e?void 0:e.end):new DateTimeRange(n||null==e?void 0:e.start,t);this.currentSelection=r.start?1:0,this.select(r)}}let Uc=class extends Fc{constructor(){super(...arguments),this.calendarSelectionAdapterConstructor=Rc,this.calendarIconButtonIcon="date_range"}get currentSelection(){var t,e,n;return null!==(n=null===(e=null===(t=this.calendarElement)||void 0===t?void 0:t.selectionAdapter)||void 0===e?void 0:e.currentSelection)&&void 0!==n?n:0}set currentSelection(t){var e;const n=null===(e=this.calendarElement)||void 0===e?void 0:e.selectionAdapter;n&&(n.currentSelection=t,this.requestUpdate())}handleCalendarChange(t){super.handleCalendarChange(t),(null==t?void 0:t.start)&&t.end&&(this.open=!1)}get menuContentTemplate(){var t,e;return B`<mo-flex><mo-flex direction="horizontal" alignItems="center" ${we({textAlign:"center",height:"30px"})}><div ${we({width:"*",fontWeight:"500",cursor:"pointer"})} ${we({color:0===this.currentSelection?"var(--mo-color-accent)":"unset"})} @click="${()=>this.currentSelection=0}">${(null===(t=this.value)||void 0===t?void 0:t.start)?this.value.start.formatAsDate():"Start"}</div><div ${we({color:"var(--mo-color-gray)"})}>bis</div><div ${we({width:"*",fontWeight:"500",cursor:"pointer"})} ${we({color:1===this.currentSelection?"var(--mo-color-accent)":"unset"})} @click="${()=>this.currentSelection=1}">${(null===(e=this.value)||void 0===e?void 0:e.end)?this.value.end.formatAsDate():"Ende"}</div></mo-flex>${super.menuContentTemplate}</mo-flex>`}valueToInputValue(t){var e;return t&&null!==(e=t.format())&&void 0!==e?e:""}inputValueToValue(t){return t?Pc.parse(t,this.shortcutReferenceDate):void 0}};r([Ae()],Uc.prototype,"currentSelection",null),r([Ce({type:Object})],Uc.prototype,"value",void 0),Uc=r([me("mo-field-date-range")],Uc)})()})();