@everymatrix/player-bonus-history 1.34.3 → 1.36.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function U(){}function S(e){return e()}function P(){return Object.create(null)}function D(e){e.forEach(S)}function k(e){return"function"==typeof e}function O(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return U;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function N(e,t,r){e.$$.on_destroy.push(M(t,r))}function z(e,t){e.appendChild(t)}function V(e,t,r){e.insertBefore(t,r||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function I(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function t(e){return document.createElement(e)}function F(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function W(e){return document.createTextNode(e)}function G(){return W(" ")}function B(){return W("")}function Y(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function q(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function R(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:q(e,t,r)}function K(e,t){e.data!==(t=""+t)&&(e.data=t)}function L(e){var t={};for(const r of e)t[r.name]=r.value;return t}let H;function $(e){H=e}const X=[],Z=[];let J=[];const Q=[],ee=Promise.resolve();let te=!1;function re(e){J.push(e)}const ne=new Set;let ie=0;function c(){if(0===ie){const n=H;do{try{for(;ie<X.length;){const n=X[ie];ie++,$(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),D(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(re))}}catch(n){throw X.length=0,ie=0,n}for($(null),X.length=0,ie=0;Z.length;)Z.pop()();for(let e=0;e<J.length;e+=1){var r=J[e];ne.has(r)||(ne.add(r),r())}}while(J.length=0,X.length);for(;Q.length;)Q.pop()();te=!1,ne.clear(),$(n)}}const oe=new Set;function se(n,e,t,r,i,o,s,a=[-1]){var l=H;$(n);const h=n.$$={fragment:null,ctx:[],props:o,update:U,not_equal:i,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let u=!1;if(h.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),u)&&(r=e,-1===(e=n).$$.dirty[0]&&(X.push(e),te||(te=!0,ee.then(c)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],h.update(),u=!0,D(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){o=e.target;const U=Array.from(o.childNodes);h.fragment&&h.fragment.l(U),U.forEach(j)}else h.fragment&&h.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(oe.delete(a),a.i(void 0));var d=n,s=e.target,t=e.anchor,r=e.customElement,{fragment:o,after_update:a}=d.$$;o&&o.m(s,t),r||re(()=>{var e=d.$$.on_mount.map(S).filter(k);d.$$.on_destroy?d.$$.on_destroy.push(...e):D(e),d.$$.on_mount=[]}),a.forEach(re),c()}$(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const n=[],i=[];J.forEach(e=>(-1===r.indexOf(e)?n:i).push(e)),i.forEach(e=>e()),J=n}D(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=U}$on(e,t){if(!k(t))return U;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var le,he,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ue="URLSearchParams"in l,de="Symbol"in l&&"iterator"in Symbol,ce="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in l,me="ArrayBuffer"in l;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ge(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ve(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function be(e){var t=new FileReader,r=ve(t);return t.readAsArrayBuffer(e),r}function we(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Ee(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ce&&(this.blob=function(){var e=ge(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ge(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(ce)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n=ge(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=ve(e=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(n.type))?r[1]:"utf-8",e.readAsText(n,r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(Ce)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=fe(e),t=_e(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[fe(e)]},h.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},h.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ye(r)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ye(r)},de&&(h.prototype[Symbol.iterator]=h.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Ae){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ce(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function Te(e,t){if(!(this instanceof Te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ae.prototype.clone=function(){return new Ae(this,{body:this._bodyInit})},Ee.call(Ae.prototype),Ee.call(Te.prototype),Te.prototype.clone=function(){return new Te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Te.error=function(){var e=new Te(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Se=[301,302,303,307,308],Pe=(Te.redirect=function(e,t){if(-1===Se.indexOf(t))throw new RangeError("Invalid status code");return new Te(null,{status:t,headers:{location:e}})},l.DOMException);try{new Pe}catch(U){(Pe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Pe.prototype.constructor=Pe}function De(n,a){return new Promise(function(i,e){var o=new Ae(n,a);if(o.signal&&o.signal.aborted)return e(new Pe("Aborted","AbortError"));var r,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,n,t={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),r=t.shift().trim();if(r){t=t.join(":").trim();try{n.append(r,t)}catch(e){console.warn("Response "+e.message)}}}),n)},r=(o.url.startsWith("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new Te(r,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Pe("Aborted","AbortError"))},0)},s.open(o.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(ce?s.responseType="blob":me&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){r.push(fe(e)),s.setRequestHeader(e,_e(a.headers[e]))}),o.headers.forEach(function(e,t){-1===r.indexOf(t)&&s.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",t)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}function kr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ae,l.Response=Te),self.fetch.bind(self);var ke=function(e,t){return(ke=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Me(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ne(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ie(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Be(e){return"function"==typeof e}function Le(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var He=Le(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Re(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Me(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(Be(o))try{o()}catch(e){i=e instanceof He?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Me(o),h=l.next();!h.done;h=l.next()){var u=h.value;try{Ue(u)}catch(e){i=null!=i?i:[],e instanceof He?i=Ie(Ie([],Ne(i)),Ne(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new He(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ue(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((e=new r).closed=!0,e);var Fe=r,Ye=Fe.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function $e(e){return e instanceof Fe||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function Ue(e){Be(e)?e():e.unsubscribe()}var ze=void 0,Ve=!1,je=!1,We={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=We.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ie([e,t],Ne(r))):setTimeout.apply(void 0,Ie([e,t],Ne(r)))},clearTimeout:function(e){var t=We.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ge(){}var qe=null;function Ke(e){if(Ve){var t=!qe;if(t&&(qe={errorThrown:!1,error:null}),e(),t){var t=qe,r=t.errorThrown,t=t.error;if(qe=null,r)throw t}}else e()}Oe(Qe,Xe=Fe),Qe.create=function(e,t,r){return new nt(e,t,r)},Qe.prototype.next=function(e){this.isStopped||this._next(e)},Qe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Qe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Qe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xe.prototype.unsubscribe.call(this),this.destination=null)},Qe.prototype._next=function(e){this.destination.next(e)},Qe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Qe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xe,Ze=Qe,Je=Function.prototype.bind;function Qe(e){var t=Xe.call(this)||this;return t.isStopped=!1,e?$e(t.destination=e)&&e.add(t):t.destination=at,t}function et(e,t){return Je.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){st(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){st(e)}else st(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){st(e)}};var tt,rt=ot,nt=(Oe(it,tt=Ze),it);function it(e,t,r){var n=tt.call(this)||this,r=Be(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&je?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&et(e.next,t),error:e.error&&et(e.error,t),complete:e.complete&&et(e.complete,t)}):e;return n.destination=new rt(r),n}function ot(e){this.partialObserver=e}function st(e){var t=e;We.setTimeout(function(){throw t})}var at={closed:!0,next:Ge,error:function(e){throw e},complete:Ge},e="function"==typeof Symbol&&Symbol.observable||"@@observable";n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ze||n&&Be(n.next)&&Be(n.error)&&Be(n.complete)&&$e(n)?e:new nt(e,t,r);return Ke(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(n,e){var i=this;return new(e=ht(e))(function(e,t){var r=new nt({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[e]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var n=this;return new(e=ht(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},n.create=function(e){return new n(e)};var lt=n;function n(e){e&&(this._subscribe=e)}function ht(e){return null!=(e=null!=e?e:ze)?e:Promise}var ut,dt,ct,pt=Le(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Oe(i,ct=lt),i.prototype.lift=function(e){var t=new mt(this,this);return t.operator=e,t},i.prototype._throwIfClosed=function(){if(this.closed)throw new pt},i.prototype.next=function(i){var o=this;Ke(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Me(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},i.prototype.error=function(t){var r=this;Ke(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},i.prototype.complete=function(){var t=this;Ke(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),ct.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Ye:(this.currentObservers=null,i.push(e),new Fe(function(){t.currentObservers=null,Re(i,e)}))},i.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},i.prototype.asObservable=function(){var e=new lt;return e.source=this,e},i.create=function(e,t){return new mt(e,t)},i),mt=(Oe(gt,dt=e),gt.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},gt.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},gt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},gt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ye},gt),ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0},_t=(Oe(yt,ut=e),yt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i)||n.push(o.now()+t),this._trimBuffer(),ut.prototype.next.call(this,e)},yt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},yt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},yt);function yt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ft);var n=ut.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function gt(e,t){var r=dt.call(this)||this;return r.destination=e,r.source=t,r}function i(){var e=ct.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let vt=[],bt={};const wt=[];function Et(n,i=U){let o;const s=new Set;function a(e){if(O(n,e)&&(n=e,o)){const e=!wt.length;for(const e of s)e[1](),wt.push(e,n);if(e){for(let e=0;e<wt.length;e+=2)wt[e][0](wt[e+1]);wt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=U){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||U),e(n),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function xt(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:Et(t,t=>{let r=!1;const n=[];let i=0,o=U;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=k(e)?e:U)},e=h.map((e,t)=>M(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){D(e),o(),r=!1}}).subscribe}}function At(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Ct);var t}var Ct="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ot(Array.isArray(e)?[]:{},e,t):e}function St(e,t,r){return e.concat(t).map(function(e){return Tt(e,r)})}function Pt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Dt(e,t){try{return t in e}catch(e){return!1}}function kt(n,i,o){var s={};return o.isMergeableObject(n)&&Pt(n).forEach(function(e){s[e]=Tt(n[e],o)}),Pt(i).forEach(function(e){var t,r;(!Dt(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(Dt(n,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Ot)(n[e],i[e],o):s[e]=Tt(i[e],o))}),s}function Ot(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||St,r.isMergeableObject=r.isMergeableObject||At,r.cloneUnlessOtherwiseSpecified=Tt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):kt(e,t,r):Tt(t,r)}Ot.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Ot(e,t,r)},{});throw new Error("first argument should be an array")};var Mt=Ot,Nt=function(e,t){return(Nt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function It(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Nt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,y,Bt,_=function(){return(_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Lt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Ht(e){return e.type===y.literal}function Rt(e){return e.type===y.number}function Ft(e){return e.type===y.date}function Yt(e){return e.type===y.time}function $t(e){return e.type===y.select}function Ut(e){return e.type===y.plural}function zt(e){return e.type===y.tag}function Vt(e){return e&&"object"==typeof e&&e.type===Bt.number}function jt(e){return e&&"object"==typeof e&&e.type===Bt.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Bt=Bt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Gt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,qt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Kt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Zt=/^(0+)$/;function Jt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Kt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Qt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function er(e){return Qt(e)||{}}function tr(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=_(_(_({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),er(t))},{}));continue;case"engineering":s=_(_(_({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),er(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Xt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Zt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(qt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(qt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=_(_({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=_(_({},s),Jt(o)))}else Kt.test(i.stem)?s=_(_({},s),Jt(i.stem)):((o=Qt(i.stem))&&(s=_(_({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Zt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=_(_({},s),n)))}return s}var rr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var nr=new RegExp("^".concat(e.source,"*")),ir=new RegExp("".concat(e.source,"*$"));function g(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,o=!!String.fromCodePoint,or=!!Object.fromEntries,s=!!String.prototype.codePointAt,a=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,ar=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},u=!0;try{u="a"===(null==(Pr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Pr[0])}catch(xi){u=!1}var lr,hr,ur=e?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dr=o?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},cr=or?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},pr=s?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},mr=a?function(e){return e.trimStart()}:function(e){return e.replace(nr,"")},fr=sr?function(e){return e.trimEnd()}:function(e){return e.replace(ir,"")};function _r(e,t){return new RegExp(e,t)}hr=u?(lr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return lr.lastIndex=t,null!=(t=lr.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=pr(e,t);if(void 0===i||vr(i)||33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;n.push(i),t+=65536<=i?2:1}return dr.apply(void 0,n)};d.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},d.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&gr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:g(o,this.clonePosition())})}}}return{val:n,err:null}},d.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(i,"/>"),location:g(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!gr(this.char())?this.error(f.INVALID_TAG,g(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:t,location:g(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,g(n,this.clonePosition()))):this.error(f.INVALID_TAG,g(n,this.clonePosition()))},d.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},d.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=g(r,this.clonePosition());return{val:{type:y.literal,value:n,location:r},err:null}},d.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(gr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},d.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return dr.apply(void 0,t)},d.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),dr(r))},d.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,g(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,g(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:g(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(f.MALFORMED_ARGUMENT,g(r,this.clonePosition()))}},d.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=hr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:g(e,this.clonePosition())}},d.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,g(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(c=fr(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:c,styleLocation:g(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(n)).err?h:(p=g(n,this.clonePosition()),l&&ur(null==l?void 0:l.style,"::",0)?(m=mr(l.style.slice(2)),"number"===s?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:r,location:p,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(rr[t||""]||rr[r||""]||rr["".concat(r,"-001")]||rr["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(m,this.locale)),c={type:Bt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Wt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}},{val:{type:"date"===s?y.date:y.time,value:r,location:p,style:c},err:null})):{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(u,_({},u)));this.bumpSpace();var d,c=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,s,t,c);return l.err?l:(h=this.tryParseArgumentClose(n)).err?h:(m=g(n,this.clonePosition()),"select"===s?{val:{type:y.select,value:r,options:cr(l.val),location:m},err:null}:{val:{type:y.plural,value:r,options:cr(l.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,g(o,a))}},d.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},d.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},d.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Gt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Bt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?tr(r):{}},err:null}},d.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=g(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,g(this.clonePosition(),this.clonePosition()));h=this.parseMessage(e+1,t,r);if(h.err)return h;var d=this.tryParseArgumentClose(u);if(d.err)return d;o.push([a,{value:h.val,location:g(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,g(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(f.MISSING_OTHER_CLAUSE,g(this.clonePosition(),this.clonePosition())):{val:o,err:null}},d.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=g(n,this.clonePosition());return i?ar(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},d.prototype.offset=function(){return this.position.offset},d.prototype.isEOF=function(){return this.offset()===this.message.length},d.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},d.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=pr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},d.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},d.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},d.prototype.bumpIf=function(e){if(ur(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},d.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},d.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},d.prototype.bumpSpace=function(){for(;!this.isEOF()&&vr(this.char());)this.bump()},d.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var yr=d;function d(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function gr(e){return 97<=e&&e<=122||65<=e&&e<=90}function vr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function br(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new yr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,$t(e)||Ut(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Rt(e)&&Vt(e.style)||(Ft(e)||Yt(e))&&jt(e.style)?delete e.style.location:zt(e)&&r(e.children)})}(e.val),e.val}function wr(e,t){var r=t&&t.cache?t.cache:Dr,n=t&&t.serializer?t.serializer:Cr;return(t&&t.strategy?t.strategy:function(e,t){return Ar(e,this,1===e.length?Er:xr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Er(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function xr(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Ar(e,t,r,n,i){return r.bind(t,e,n,i)}var Cr=function(){return JSON.stringify(arguments)};function Tr(){this.cache=Object.create(null)}Tr.prototype.get=function(e){return this.cache[e]},Tr.prototype.set=function(e,t){this.cache[e]=t};var Sr,Pr,Dr={create:function(){return new Tr}},Or={variadic:function(e,t){return Ar(e,this,xr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ar(e,this,Er,t.cache.create(),t.serializer)}};(Pr=Sr=Sr||{}).MISSING_VALUE="MISSING_VALUE",Pr.INVALID_VALUE="INVALID_VALUE",Pr.MISSING_INTL_API="MISSING_INTL_API";It(zr,Br=Error),zr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,Mr,Nr,Ir,Br,Lr=zr,Hr=(It(Ur,Ir=Lr),Ur),Rr=(It($r,Nr=Lr),$r),Fr=(It(Yr,Mr=Lr),Yr);function Yr(e,t){return Mr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Sr.MISSING_VALUE,t)||this}function $r(e,t,r){return Nr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Sr.INVALID_VALUE,r)||this}function Ur(e,t,r,n){return Ir.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Sr.INVALID_VALUE,n)||this}function zr(e,t,r){e=Br.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Vr(e,t,r,n,i,o,s){if(1===e.length&&Ht(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Ht(u))a.push({type:v.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&a.push({type:v.literal,value:r.getNumberFormat(t).format(o)});else{var d=u.value;if(!(i&&d in i))throw new Fr(d,s);d=i[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?v.literal:v.object,value:d});else if(Ft(u)){var c="string"==typeof u.style?n.date[u.style]:jt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:r.getDateTimeFormat(t,c).format(d)})}else if(Yt(u))c="string"==typeof u.style?n.time[u.style]:jt(u.style)?u.style.parsedOptions:n.time.medium,a.push({type:v.literal,value:r.getDateTimeFormat(t,c).format(d)});else if(Rt(u))(c="string"==typeof u.style?n.number[u.style]:Vt(u.style)?u.style.parsedOptions:void 0)&&c.scale&&(d*=c.scale||1),a.push({type:v.literal,value:r.getNumberFormat(t,c).format(d)});else{if(zt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Rr(m,"function",s);m=f(Vr(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?v.literal:v.object,value:e}}))}if($t(u)){if(!(_=u.options[d]||u.options.other))throw new Hr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Vr(_.value,t,r,n,i))}else if(Ut(u)){if(!(_=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Lr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new Hr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Vr(_.value,t,r,n,i,d-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===v.literal&&t.type===v.literal?r.value+=t.value:e.push(t),e},[])}function jr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(e=v=v||{})[e.literal=0]="literal",e[e.object=1]="object";Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},p.__parse=br,p.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Wr=p;function p(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Vr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=p.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?_(_(_({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=_(_({},r[t]),n[t]||{}),e},{})):r),e},_({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:wr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Lt([void 0],t,!1)))},{cache:jr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Or.variadic}),getDateTimeFormat:wr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Lt([void 0],t,!1)))},{cache:jr(t.dateTime),strategy:Or.variadic}),getPluralRules:wr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Lt([void 0],t,!1)))},{cache:jr(t.pluralRules),strategy:Or.variadic})}}const Gr={},qr=(e,t,r)=>r&&(t in Gr||(Gr[t]={}),e in Gr[t]||(Gr[t][e]=r),r),Kr=(t,r)=>{if(null!=r){if(r in Gr&&t in Gr[r])return Gr[r][t];var n=gn(r);for(let e=0;e<n.length;e++){var i=function(e,t){if(!Jr(e))return null;e=function(e){return Xr[e]||null}(e),e=function(e,r){if(null!=r){if(r in e)return e[r];var n=r.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const r=n.slice(e,n.length).join(".");if(r in t){t=t[r];break}}t=t[n[e]]}else t=void 0;return t}}(e,t);return e}(n[e],t);if(i)return qr(t,r,i)}}};let Xr;const Zr=Et({});function Jr(e){return e in Xr}function Qr(t,...r){delete Gr[t],Zr.update(e=>(e[t]=Mt.all([e[t]||{},...r]),e))}xt([Zr],([e])=>Object.keys(e)),Zr.subscribe(e=>Xr=e);const en={};function tn(e){return en[e]}function rn(e){return null!=e&&gn(e).some(e=>{return null==(e=tn(e))?void 0:e.size})}function nn(n,e){return Promise.all(e.map(e=>{return t=n,r=e,en[t].delete(r),0===en[t].size&&delete en[t],e().then(e=>e.default||e);var t,r})).then(e=>Qr(n,...e))}const on={};function sn(e){var t;return rn(e)?(t=gn(e).map(e=>{var t=tn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),on[e]=Promise.all(t.map(([e,t])=>nn(e,t))).then(()=>{if(rn(e))return sn(e);delete on[e]}),on[e]):e in on?on[e]:Promise.resolve()}const an={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ln(){return an}const hn=Et(!1);var un=Object.defineProperty,o=Object.defineProperties,or=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,mn=(e,t,r)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let fn;const _n=Et(null);function yn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function gn(e,t=an.fallbackLocale){e=yn(e);return t?[...new Set([...e,...yn(t)])]:e}function vn(){return null!=fn?fn:void 0}_n.subscribe(e=>{fn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});s=((e,t)=>{for(var r in t=t||{})cn.call(t,r)&&mn(e,r,t[r]);if(dn)for(var r of dn(t))pn.call(t,r)&&mn(e,r,t[r]);return e})({},_n);const bn=o(s,or({set:t=>{if(t&&function(e){if(null==e)return;const t=gn(e);for(let e=0;e<t.length;e++){const r=t[e];if(Jr(r))return r}}(t)&&rn(t)){const{loadingDelay:r}=ln();let e;return"undefined"!=typeof window&&null!=vn()&&r?e=window.setTimeout(()=>hn.set(!0),r):hn.set(!0),sn(t).then(()=>{_n.set(t)}).finally(()=>{clearTimeout(e),hn.set(!1)})}return _n.set(t)}})),wn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}};var En=Object.defineProperty,xn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Tn=(e,t,r)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t=t||{})An.call(t,r)&&Tn(e,r,t[r]);if(xn)for(var r of xn(t))Cn.call(t,r)&&Tn(e,r,t[r]);return e},Pn=(e,t)=>{var r={};for(n in e)An.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&xn)for(var n of xn(e))t.indexOf(n)<0&&Cn.call(e,n)&&(r[n]=e[n]);return r};const Dn=(e,t)=>{var r=an["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},kn=wn(e=>{var{locale:t,format:r}=e,e=Pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Dn("number",r)),new Intl.NumberFormat(t,e)}),On=wn(e=>{var{locale:t,format:r}=e,e=Pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Dn("date",r):0===Object.keys(e).length&&(e=Dn("date","short")),new Intl.DateTimeFormat(t,e)}),Mn=wn(e=>{var{locale:t,format:r}=e,e=Pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Dn("time",r):0===Object.keys(e).length&&(e=Dn("time","short")),new Intl.DateTimeFormat(t,e)}),Nn=wn((e,t=vn())=>new Wr(e,t,an.formats,{ignoreTag:an.ignoreTag})),In=xt([bn,Zr],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=vn(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let h=l;try{h=Nn(l,s).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),Bn=(xt([bn],()=>(e,t)=>((e={})=>{var{locale:t=vn()}=e,e=Pn(e,["locale"]);return Mn(Sn({locale:t},e))})(t).format(e)),xt([bn],()=>(e,t)=>((e={})=>{var{locale:t=vn()}=e,e=Pn(e,["locale"]);return On(Sn({locale:t},e))})(t).format(e)),xt([bn],()=>(e,t)=>((e={})=>{var{locale:t=vn()}=e,e=Pn(e,["locale"]);return kn(Sn({locale:t},e))})(t).format(e)),xt([bn,Zr],()=>(e,t=vn())=>Kr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==vt.indexOf(e)&&(t=new _t(t),bt[e]=t,vt.push(e)),bt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Hn=Ln={path:void 0,exports:{},require:function(e,t){return kr(null==t&&Ln.path)}},Ln.exports,Hn.exports=function(){var L;function m(){return L.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function a(e){return void 0===e}function F(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function $(e,t){for(var r=[],n=e.length,i=0;i<n;++i)r.push(t(e[i],i));return r}function U(e,t){for(var r in t)f(t,r)&&(e[r]=t[r]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,r,n){return Ot(e,t,r,n,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function z(e){if(null==e._isValid){var t=_(e),r=j.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function V(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},W=m.momentProperties=[],G=!1;function q(e,t){var r,n,i,o=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=_(t)),a(t._locale)||(e._locale=t._locale),0<o)for(r=0;r<o;r++)a(i=t[n=W[r]])||(e[n]=i);return e}function K(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof K||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,s){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),a){for(var e,t,r=[],n=arguments.length,i=0;i<n;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];r.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var Z={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),Z[e]||(X(t),Z[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var r,n=U({},e);for(r in t)f(t,r)&&(H(e[r])&&H(t[r])?(n[r]={},U(n[r],e[r]),U(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)f(e,r)&&!f(t,r)&&H(e[r])&&(n[r]=U({},n[r]));return n}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)f(e,t)&&r.push(t);return r};function o(e,t,r){var n=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var re=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},oe={};function n(e,t,r,n){var i="string"==typeof n?function(){return this[n]()}:n;e&&(oe[e]=i),t&&(oe[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])}),r&&(oe[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(n){for(var e,i=n.match(re),t=0,o=i.length;t<o;t++)oe[i[t]]?i[t]=oe[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<o;r++)t+=u(i[r])?i[r].call(e,n):i[r];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=r&&ne.test(e);)e=e.replace(ne,n),ne.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,r,n={};for(r in e)f(e,r)&&(t=d(r))&&(n[t]=e[r]);return n}var ue={};function r(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function c(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?c(e):t}function ce(t,r){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,r),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(r=p(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Ie(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var i=/\d/,y=/\d\d/,fe=/\d{3}/,_e=/\d{4}/,ye=/[+-]?\d{6}/,g=/\d\d?/,ge=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,be=/\d{1,3}/,we=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,xe=/\d+/,Ae=/[+-]?\d+/,Ce=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,r,n){Pe[e]=u(r)?r:function(e,t){return e&&n?n:r}}function Se(e,t){return f(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,i){return t||r||n||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function E(e,r){var t,n,i=r;for("string"==typeof e&&(e=[e]),F(r)&&(i=function(e,t){t[r]=p(e)}),n=e.length,t=0;t<n;t++)De[e[t]]=i}function ke(e,i){E(e,function(e,t,r,n){r._w=r._w||{},i(e,r._w,r,n)})}var x,A=0,C=1,T=2,S=3,P=4,D=5,Oe=6,Me=7,Ne=8;function Ie(e,t){var r;return isNaN(e)||isNaN(t)?NaN:(r=(t%(r=12)+r)%r,e+=(t-r)/12,1==r?de(e)?29:28:31-r%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),b("M",g),b("MM",g,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),E(["M","MM"],function(e,t){t[C]=p(e)-1}),E(["MMM","MMMM"],function(e,t,r,n){n=r._locale.monthsParse(e,n,r._strict);null!=n?t[C]=n:_(r).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=v,Fe=v;function Ye(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function $e(e){return null!=e?(Ye(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,r=[],n=[],i=[],o=0;o<12;o++)t=h([2e3,o]),r.push(this.monthsShort(t,"")),n.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(r.sort(e),n.sort(e),i.sort(e),o=0;o<12;o++)r[o]=w(r[o]),n[o]=w(n[o]);for(o=0;o<24;o++)i[o]=w(i[o]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){return de(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),b("Y",Ae),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",Ee,ye),b("YYYYYY",Ee,ye),E(["YYYYY","YYYYYY"],A),E("YYYY",function(e,t){t[A]=2===e.length?m.parseTwoDigitYear(e):p(e)}),E("YY",function(e,t){t[A]=m.parseTwoDigitYear(e)}),E("Y",function(e,t){t[A]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var Ve=ce("FullYear",!0);function je(e,t,r,n,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,n,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,i,o,s),a}function We(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,r){r=7+t-r;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,r,n,i){var o,t=1+7*(t-1)+(7+r-n)%7+Ge(e,n,i),r=t<=0?ze(o=e-1)+t:t>ze(e)?(o=e+1,t-ze(e)):(o=e,t);return{year:o,dayOfYear:r}}function Ke(e,t,r){var n,i,o=Ge(e.year(),t,r),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+k(i=e.year()-1,t,r):o>k(e.year(),t,r)?(n=o-k(e.year(),t,r),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function k(e,t,r){var n=Ge(e,t,r),t=Ge(e+1,t,r);return(ze(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),b("w",g),b("ww",g,y),b("W",g),b("WW",g,y),ke(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=p(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),b("d",g),b("e",g),b("E",g),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,r,n){n=r._locale.weekdaysParse(e,n,r._strict);null!=n?t.d=n:_(r).invalidWeekday=e}),ke(["d","e","E"],function(e,t,r,n){t[n]=p(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,rt=v;function nt(){function e(e,t){return t.length-e.length}for(var t,r,n,i=[],o=[],s=[],a=[],l=0;l<7;l++)n=h([2e3,1]).day(l),t=w(this.weekdaysMin(n,"")),r=w(this.weekdaysShort(n,"")),n=w(this.weekdays(n,"")),i.push(t),o.push(r),s.push(n),a.push(t),a.push(r),a.push(n);i.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function ot(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,it),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)}),n("hmmss",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),r("hour",13),b("a",st),b("A",st),b("H",g),b("h",g),b("k",g),b("HH",g,y),b("hh",g,y),b("kk",g,y),b("hmm",ge),b("hmmss",ve),b("Hmm",ge),b("Hmmss",ve),E(["H","HH"],S),E(["k","kk"],function(e,t,r){e=p(e);t[S]=24===e?0:e}),E(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),E(["h","hh"],function(e,t,r){t[S]=p(e),_(r).bigHour=!0}),E("hmm",function(e,t,r){var n=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n)),_(r).bigHour=!0}),E("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n,2)),t[D]=p(e.substr(i)),_(r).bigHour=!0}),E("Hmm",function(e,t,r){var n=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n))}),E("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n,2)),t[D]=p(e.substr(i))});v=ce("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Be,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,r,n,i,o=0;o<e.length;){for(t=(i=ut(e[o]).split("-")).length,r=(r=ut(e[o+1]))?r.split("-"):null;0<t;){if(n=ct(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}(i,r)>=t-1)break;t--}o++}return at}function ct(t){var e;if(void 0===O[t]&&Hn&&Hn.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,kr(),pt(e)}catch(e){O[t]=null}return O[t]}function pt(e,t){return e&&((t=a(t)?M(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete O[e],null;var r,n=lt;if(t.abbr=e,null!=O[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])n=O[t.parentLocale]._config;else{if(null==(r=ct(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;n=r._config}return O[e]=new ee(Q(n,t)),ht[e]&&ht[e].forEach(function(e){mt(e.name,e.config)}),pt(e),O[e]}function M(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=ct(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===_(e).overflow&&(t=t[C]<0||11<t[C]?C:t[T]<1||t[T]>Ie(t[A],t[C])?T:t[S]<0||24<t[S]||24===t[S]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?S:t[P]<0||59<t[P]?P:t[D]<0||59<t[D]?D:t[Oe]<0||999<t[Oe]?Oe:-1,_(e)._overflowDayOfYear&&(t<A||T<t)&&(t=T),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ne),_(e).overflow=t),e}var _t=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function At(e){var t,r,n,i,o,s,a=e._i,l=_t.exec(a)||yt.exec(a),a=vt.length,h=bt.length;if(l){for(_(e).iso=!0,t=0,r=a;t<r;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],n=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,r=h;t<r;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!n&&null!=o)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),Dt(e)}else e._isValid=!1}function Ct(e,t,r,n,i,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Le.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return o&&e.push(parseInt(o,10)),e}function Tt(e){var t,r,n,i,o=Et.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Ct(o[4],o[3],o[2],o[5],o[6],o[7]),r=o[1],n=t,i=e,r&&Je.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(r=o[8],n=o[9],i=o[10],r?xt[r]:n?0:((r=parseInt(i,10))-(n=r%100))/100*60+n),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function St(e,t,r){return null!=e?e:null!=t?t:r}function Pt(e){var t,r,n,i,o,s,a,l,h,u,d,c=[];if(!e._d){for(u=e,d=new Date(m.now()),r=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[T]&&null==e._a[C]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(s=1,a=4,n=St(d.GG,u._a[A],Ke(N(),1,4).year),i=St(d.W,1),((o=St(d.E,1))<1||7<o)&&(l=!0)):(s=u._locale._week.dow,a=u._locale._week.doy,h=Ke(N(),s,a),n=St(d.gg,u._a[A],h.year),i=St(d.w,h.week),null!=d.d?((o=d.d)<0||6<o)&&(l=!0):null!=d.e?(o=d.e+s,(d.e<0||6<d.e)&&(l=!0)):o=s),i<1||i>k(n,s,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(n,i,o,s,a),u._a[A]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(d=St(e._a[A],r[A]),(e._dayOfYear>ze(d)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=We(d,0,e._dayOfYear),e._a[C]=l.getUTCMonth(),e._a[T]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=r[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[S]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[S]=0),e._d=(e._useUTC?We:je).apply(null,c),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[S]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(_(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],_(e).empty=!0;for(var t,r,n,i=""+e._i,o=i.length,s=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)n=r[l],(t=(i.match(Se(n,e))||[])[0])&&(0<(d=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(d),i=i.slice(i.indexOf(t)+t.length),s+=t.length),oe[n]?(t?_(e).empty=!1:_(e).unusedTokens.push(n),d=n,p=e,null!=(c=t)&&f(De,d)&&De[d](c,p._a,p,d)):e._strict&&!t&&_(e).unusedTokens.push(n);_(e).charsLeftOver=o-s,0<i.length&&_(e).unusedInput.push(i),e._a[S]<=12&&!0===_(e).bigHour&&0<e._a[S]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[S]=(o=e._locale,h=e._a[S],null==(u=e._meridiem)?h:null!=o.meridiemHour?o.meridiemHour(h,u):null!=o.isPM?((o=o.isPM(u))&&h<12&&(h+=12),h=o||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[A]=e._locale.erasConvertYear(u,e._a[A])),Pt(e),ft(e)}else Tt(e);else At(e);var h,u,d,c,p}function kt(e){var t,r=e._i,n=e._f;{var i,o;return(e._locale=e._locale||M(e._l),null===r||void 0===n&&""===r)?V({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new K(ft(r)):(Y(r)?e._d=r:s(n)?function(e){var t,r,n,i,o,s,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)o=0,s=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),z(t)&&(s=!0),o=(o+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=o,a?o<n&&(n=o,r=t):(null==n||o<n||s)&&(n=o,r=t,s)&&(a=!0);U(e,r||t)}(e):n?Dt(e):a(n=(r=e)._i)?r._d=new Date(m.now()):Y(n)?r._d=new Date(n.valueOf()):"string"==typeof n?(i=r,null===(o=wt.exec(i._i))?(At(i),!1===i._isValid&&(delete i._isValid,Tt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+o[1])):s(n)?(r._a=$(n.slice(0),function(e){return parseInt(e,10)}),Pt(r)):H(n)?(i=r)._d||(t=void 0===(o=he(i._i)).day?o.date:o.day,i._a=$([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(n)?r._d=new Date(n):m.createFromInputFallback(r),z(e)||(e._d=null),e))}}function Ot(e,t,r,n,i){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(H(e)&&R(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=r,o._i=e,o._f=t,o._strict=n,(i=new K(ft(kt(i=o))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function N(e,t,r,n){return Ot(e,t,r,n,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ge=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:V()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:V()});function Mt(e,t){var r,n;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return N();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var e=he(e),t=e.year||0,r=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,a=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,r,n=!1,i=Nt.length;for(t in e)if(f(e,t)&&(-1===x.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[Nt[r]]){if(n)return!1;parseFloat(e[Nt[r]])!==p(e[Nt[r]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*i,this._months=+n+3*r+12*t,this._data={},this._locale=M(),this._bubble()}function Bt(e){return e instanceof It}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,r){n(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+r+o(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),b("Z",Te),b("ZZ",Te),E(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Ft(Te,e)});var Rt=/([\+\-]|\d\d)/gi;function Ft(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Rt)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function Yt(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||Y(e)?e:N(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),m.updateOffset(t,!1),t):N(e).local()}function $t(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function I(e,t){var r,n,i=e;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=zt.exec(e))?(r="-"===t[1]?-1:1,i={y:0,d:p(t[T])*r,h:p(t[S])*r,m:p(t[P])*r,s:p(t[D])*r,ms:p(Lt(1e3*t[Oe]))*r}):(t=Vt.exec(e))?(r="-"===t[1]?-1:1,i={y:jt(t[2],r),M:jt(t[3],r),w:jt(t[4],r),d:jt(t[5],r),h:jt(t[6],r),m:jt(t[7],r),s:jt(t[8],r)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=N(i.from),r=N(i.to),t=t.isValid()&&r.isValid()?(r=Yt(r,t),t.isBefore(r)?n=Wt(t,r):((n=Wt(r,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),n=new It(i),Bt(e)&&f(e,"_locale")&&(n._locale=e._locale),Bt(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Gt(n,i){return function(e,t){var r;return null===t||isNaN(+t)||(J(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),qt(this,I(e,t),n),this}}function qt(e,t,r,n){var i=t._milliseconds,o=Lt(t._days),t=Lt(t._months);e.isValid()&&(n=null==n||n,t&&Ye(e,pe(e,"Month")+t*r),o&&me(e,"Date",pe(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),n)&&m.updateOffset(e,o||t)}I.fn=It.prototype,I.invalid=function(){return I(NaN)};Be=Gt(1,"add"),Ze=Gt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||Y(e)||Kt(e)||F(e)||(r=s(t=e),n=!1,r&&(n=0===t.filter(function(e){return!F(e)&&Kt(t)}).length),r&&n)||function(e){var t,r,n=H(e)&&!R(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)r=o[t],i=i||f(e,r);return n&&i}(e)||null==e;var t,r,n}function Zt(e,t){var r,n;return e.date()<t.date()?-Zt(t,e):-((r=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(n=e.clone().add(r,"months"))<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(1+r,"months")-n)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=M(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function nr(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function ir(e,t){return t.erasAbbrRegex(e)}function or(){for(var e=[],t=[],r=[],n=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(w(i[o].name)),e.push(w(i[o].abbr)),r.push(w(i[o].narrow)),n.push(w(i[o].name)),n.push(w(i[o].abbr)),n.push(w(i[o].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function sr(e,t){n(0,[e,e.length],0,t)}function ar(e,t,r,n,i){var o;return null==e?Ke(this,n,i).year:(t>(o=k(e,n,i))&&(t=o),function(e,t,r,n,i){e=qe(e,t,r,n,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,n,i))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),b("N",ir),b("NN",ir),b("NNN",ir),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),E(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){n=r._locale.erasParse(e,n,r._strict);n?_(r).era=n:_(r).invalidEra=e}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),E(["y","yy","yyy","yyyy"],A),E(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[A]=r._locale.eraYearOrdinalParse(e,i):t[A]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sr("gggg","weekYear"),sr("ggggg","weekYear"),sr("GGGG","isoWeekYear"),sr("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),b("G",Ae),b("g",Ae),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",Ee,ye),b("ggggg",Ee,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=p(e)}),ke(["gg","GG"],function(e,t,r,n){t[n]=m.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),b("Q",i),E("Q",function(e,t){t[C]=3*(p(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),r("date",9),b("D",g),b("DD",g,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),E(["D","DD"],T),E("Do",function(e,t){t[T]=p(e.match(g)[0])});we=ce("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),b("DDD",be),b("DDDD",fe),E(["DDD","DDDD"],function(e,t,r){r._dayOfYear=p(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),b("m",g),b("mm",g,y),E(["m","mm"],P);_e=ce("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),r("second",15),b("s",g),b("ss",g,y),E(["s","ss"],D);var lr,Ee=ce("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),b("S",be,i),b("SS",be,y),b("SSS",be,fe),lr="SSSS";lr.length<=9;lr+="S")b(lr,xe);function hr(e,t){t[Oe]=p(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")E(lr,hr);ye=ce("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");i=K.prototype;function ur(e){return e}i.add=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!R(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<n.length;i+=1)r=r||f(e,n[i]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||N(),r=Yt(e,this).startOf("day"),r=m.calendarFormat(this,r)||"sameElse",t=t&&(u(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,N(e)))},i.clone=function(){return new K(this)},i.diff=function(e,t,r){var n,i,o;if(!this.isValid())return NaN;if(!(n=Yt(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Zt(this,n)/12;break;case"month":o=Zt(this,n);break;case"quarter":o=Zt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-i)/864e5;break;case"week":o=(this-n-i)/6048e5;break;default:o=this-n}return r?o:c(o)},i.endOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?nr:rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=se(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(N(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(N(),e)},i.get=function(e){return u(this[e=d(e)])?this[e]():this},i.invalidAt=function(){return _(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,r,n){return e=l(e)?e:N(e),t=l(t)?t:N(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===n[1]?this.isBefore(t,r):!this.isAfter(t,r))},i.isSame=function(e,t){var e=l(e)?e:N(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return z(this)},i.lang=Qe,i.locale=Jt,i.localeData=Qt,i.max=ve,i.min=ge,i.parsingFlags=function(){return U({},_(this))},i.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)f(e,t)&&r.push({unit:t,priority:ue[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=he(e)),n=r.length,i=0;i<n;i++)this[r[i].unit](e[r[i].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},i.startOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?nr:rr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.subtract=Ze,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,r;return this.isValid()?(t="moment",r="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},i.eraYear=function(){for(var e,t,r=this.localeData().eras(),n=0,i=r.length;n<i;++n)if(e=r[n].since<=r[n].until?1:-1,t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return(this.year()-m(r[n].since).year())*e+r[n].offset;return this.year()},i.year=Ve,i.isLeapYear=function(){return de(this.year())},i.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=$e,i.daysInMonth=function(){return Ie(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return k(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},i.date=we,i.day=i.days=function(e){var t,r,n;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(r=e,n=this.localeData(),e="string"!=typeof r?r:isNaN(r)?"number"==typeof(r=n.weekdaysParse(r))?r:null:parseInt(r,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,r;return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=v,i.minute=i.minutes=_e,i.second=i.seconds=Ee,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,r){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:$t(this);if("string"==typeof e){if(null===(e=Ft(Te,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=$t(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?qt(this,I(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract($t(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ft(Ce,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?N(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Ut,i.isUTC=Ut,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",we),i.months=e("months accessor is deprecated. Use month instead",$e),i.years=e("years accessor is deprecated. Use year instead",Ve),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=kt(t))._a?(e=(t._isUTC?h:N)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<n;s++)(r&&e[s]!==t[s]||!r&&p(e[s])!==p(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dr(e,t,r,n){var i=M(),n=h().set(n,t);return i[r](n,e)}function cr(e,t,r){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return dr(e,t,r,"month");for(var n=[],i=0;i<12;i++)n[i]=dr(e,i,r,"month");return n}function pr(e,t,r,n){t=("boolean"==typeof e||(r=t=e,e=!1),F(t)&&(r=t,t=void 0),t||"");var i,o=M(),s=e?o._week.dow:0,a=[];if(null!=r)return dr(t,(r+s)%7,n,"day");for(i=0;i<7;i++)a[i]=dr(t,(i+s)%7,n,"day");return a}y.calendar=function(e,t,r){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ur,y.postformat=ur,y.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return u(i)?i(e,t,r,n):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)f(e,r)&&(u(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,n=this._eras||M("en")._eras,i=0,o=n.length;i<o;++i)switch("string"==typeof n[i].since&&(r=m(n[i].since).startOf("day"),n[i].since=r.valueOf()),typeof n[i].until){case"undefined":n[i].until=1/0;break;case"string":r=m(n[i].until).startOf("day").valueOf(),n[i].until=r.valueOf()}return n},y.erasParse=function(e,t,r){var n,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(o=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(a===e)return l[n]}else if(0<=[o,s,a].indexOf(e))return l[n]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||or.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||or.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||or.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[He.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var n,i;if(this._monthsParseExact)return function(e,t,r){var n,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=h([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var n,i;if(this._weekdaysParseExact)return function(e,t,r){var n,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=h([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",pt),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",M);var mr=Math.abs;function fr(e,t,r,n){t=I(t,r);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function _r(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function gr(e){return 146097*e/4800}function vr(e){return function(){return this.as(e)}}be=vr("ms"),fe=vr("s"),Be=vr("m"),ve=vr("h"),ge=vr("d"),Ze=vr("w"),v=vr("M"),_e=vr("Q"),Ee=vr("y");function br(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=br("milliseconds"),we=br("seconds"),Ve=br("minutes"),y=br("hours"),wr=br("days"),Er=br("months"),xr=br("years");var Ar=Math.round,Cr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tr(e,t,r,n){var i=I(e).abs(),o=Ar(i.as("s")),s=Ar(i.as("m")),a=Ar(i.as("h")),l=Ar(i.as("d")),h=Ar(i.as("M")),u=Ar(i.as("w")),i=Ar(i.as("y")),o=(o<=r.ss?["s",o]:o<r.s&&["ss",o])||(s<=1?["m"]:s<r.m&&["mm",s])||(a<=1?["h"]:a<r.h&&["hh",a])||(l<=1?["d"]:l<r.d&&["dd",l]);return(o=(o=null!=r.w?o||(u<=1?["w"]:u<r.w&&["ww",u]):o)||(h<=1?["M"]:h<r.M&&["MM",h])||(i<=1?["y"]:["yy",i]))[2]=t,o[3]=0<+e,o[4]=n,function(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}.apply(null,o)}var Sr=Math.abs;function Pr(e){return(0<e)-(e<0)||+e}function Dr(){var e,t,r,n,i,o,s,a,l,h,u;return this.isValid()?(a=Sr(this._milliseconds)/1e3,l=Sr(this._days),h=Sr(this._months),(u=this.asSeconds())?(e=c(a/60),t=c(e/60),a%=60,e%=60,r=c(h/12),h%=12,n=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Pr(this._months)!==Pr(u)?"-":"",o=Pr(this._days)!==Pr(u)?"-":"",s=Pr(this._milliseconds)!==Pr(u)?"-":"",(u<0?"-":"")+"P"+(r?i+r+"Y":"")+(h?i+h+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+n+"S":"")):"P0D"):this.localeData().invalidDate()}var B=It.prototype;return B.isValid=function(){return this._isValid},B.abs=function(){var e=this._data;return this._milliseconds=mr(this._milliseconds),this._days=mr(this._days),this._months=mr(this._months),e.milliseconds=mr(e.milliseconds),e.seconds=mr(e.seconds),e.minutes=mr(e.minutes),e.hours=mr(e.hours),e.months=mr(e.months),e.years=mr(e.years),this},B.add=function(e,t){return fr(this,e,t,1)},B.subtract=function(e,t){return fr(this,e,t,-1)},B.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(gr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},B.asMilliseconds=be,B.asSeconds=fe,B.asMinutes=Be,B.asHours=ve,B.asDays=ge,B.asWeeks=Ze,B.asMonths=v,B.asQuarters=_e,B.asYears=Ee,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*_r(gr(r)+t),r=t=0),n.milliseconds=e%1e3,e=c(e/1e3),n.seconds=e%60,e=c(e/60),n.minutes=e%60,e=c(e/60),n.hours=e%24,t+=c(e/24),r+=e=c(yr(t)),t-=_r(gr(e)),e=c(r/12),r%=12,n.days=t,n.months=r,n.years=e,this},B.clone=function(){return I(this)},B.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=we,B.minutes=Ve,B.hours=y,B.days=wr,B.weeks=function(){return c(this.days()/7)},B.months=Er,B.years=xr,B.humanize=function(e,t){var r,n;return this.isValid()?(r=!1,n=Cr,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(n=Object.assign({},Cr,t),null!=t.s)&&null==t.ss&&(n.ss=t.s-1),t=Tr(this,!r,n,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=Dr,B.toString=Dr,B.toJSON=Dr,B.locale=Jt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dr),B.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),b("x",Ae),b("X",/[+-]?\d+(\.\d{1,3})?/),E("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),E("x",function(e,t,r){r._d=new Date(p(e))}),m.version="2.29.4",L=N,m.fn=i,m.min=function(){return Mt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Mt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(e){return N(1e3*e)},m.months=function(e,t){return cr(e,t,"months")},m.isDate=Y,m.locale=pt,m.invalid=V,m.duration=I,m.isMoment=l,m.weekdays=function(e,t,r){return pr(e,t,r,"weekdays")},m.parseZone=function(){return N.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=Bt,m.monthsShort=function(e,t){return cr(e,t,"monthsShort")},m.weekdaysMin=function(e,t,r){return pr(e,t,r,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var r,n;return null!=t?(n=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(n=null!=(r=ct(e))?r._config:n,t),null==r&&(t.abbr=e),(n=new ee(t)).parentLocale=O[e],O[e]=n),pt(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===pt()&&pt(e)):null!=O[e]&&delete O[e]),O[e]},m.locales=function(){return te(O)},m.weekdaysShort=function(e,t,r){return pr(e,t,r,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?Ar:"function"==typeof e&&(Ar=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Cr[e]&&(void 0===t?Cr[e]:(Cr[e]=t,"s"===e&&(Cr.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Ln,Hn,Rn=Ln.exports;function Fn(e,t){Qr(e,t)}const Yn={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},hr:{date:"Odobreni datum:",bonusName:"Ime bonusa",bonusType:"Vrsta bonusa",bonusAmount:"Iznos bonusa",wageringAmount:"Potrebno odigrati",remainingBonus:"Trenutno stanje bonusa",forfeitBonus:"Otkaži bonus",active:"aktivan",released:"razriješen",expired:"Istekao",forfeited:"otkazan"},"pt-br":{date:"Data concedida:",bonusName:"Nome do bônus:",bonusType:"Tipo de bônus:",bonusAmount:"Valor do bônus:",wageringAmount:"Progresso da Quantidade de Apostas (Rollover)",remainingBonus:"Saldo atual de bônus:",forfeitBonus:"Recusar bônus",active:"Ativo",released:"Lançado",expired:"Expirado",forfeited:"Perdido"},"es-mx":{date:"Fecha concedida:",bonusName:"Nombre de bono:",bonusType:"Tipo de Bono:",bonusAmount:"valor de Bono:",wageringAmount:"Progreso de monto de apuestas (Rollover)",remainingBonus:"Saldo de bono actual:",forfeitBonus:"Declinar bono",active:"Activo",released:"Liberado",expired:"Expirado",forfeited:"Perdido"}};function $n(e){let r,n,i,o,s,a,l,h,u=e[9]("bonusAmount")+"";return{c(){r=t("div"),n=t("p"),i=W(u),o=G(),s=t("p"),a=W(e[3]),l=G(),h=W(e[6]),q(n,"class","BonusCardRowTitle"),q(s,"class","BonusCardRowText"),q(r,"class","BonusCardRow")},m(e,t){V(e,r,t),z(r,n),z(n,i),z(r,o),z(r,s),z(s,a),z(s,l),z(s,h)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&K(i,u),8&t&&K(a,e[3]),64&t&&K(h,e[6])},d(e){e&&j(r)}}}function Un(e){let r,n,i,o,s,a,l,h,u=e[9]("wageringAmount")+"";return{c(){r=t("div"),n=t("p"),i=W(u),o=G(),s=t("p"),a=W(e[4]),l=G(),h=W(e[6]),q(n,"class","BonusCardRowTitle"),q(s,"class","BonusCardRowText"),q(r,"class","BonusCardRow")},m(e,t){V(e,r,t),z(r,n),z(n,i),z(r,o),z(r,s),z(s,a),z(s,l),z(s,h)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&K(i,u),16&t&&K(a,e[4]),64&t&&K(h,e[6])},d(e){e&&j(r)}}}function zn(e){let r,n,i,o,s,a,l,h,u=e[9]("remainingBonus")+"";return{c(){r=t("div"),n=t("p"),i=W(u),o=G(),s=t("p"),a=W(e[5]),l=G(),h=W(e[6]),q(n,"class","BonusCardRowTitle"),q(s,"class","BonusCardRowText"),q(r,"class","BonusCardRow")},m(e,t){V(e,r,t),z(r,n),z(n,i),z(r,o),z(r,s),z(s,a),z(s,l),z(s,h)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&K(i,u),32&t&&K(a,e[5]),64&t&&K(h,e[6])},d(e){e&&j(r)}}}function Vn(r){let n,i,o,s,a=r[9]("forfeitBonus")+"";return{c(){n=t("button"),i=W(a),q(n,"class","DeleteBonus "+(r[10]?"DeleteBonusMobile":""))},m(e,t){V(e,n,t),z(n,i),o||(s=Y(n,"click",r[11]),o=!0)},p(e,t){512&t&&a!==(a=e[9]("forfeitBonus")+"")&&K(i,a)},d(e){e&&j(n),o=!1,s()}}}function jn(r){let n,i,o,s,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,R,E,x,A,F,C,T,Y,S,P,$,D=r[9]("date")+"",k=Rn(r[0]).format("DD/MM/YYYY h:mm A")+"",O=r[9](""+r[1])+"",M=r[9]("bonusName")+"",N=r[9]("bonusType")+"",I=r[3]&&$n(r),B=r[4]&&Un(r),L=r[5]&&zn(r),H="active"===r[1]&&Vn(r);return{c(){n=t("div"),i=t("div"),o=t("div"),s=t("p"),a=W(D),l=G(),h=t("span"),u=W(k),d=G(),c=t("p"),p=W(O),f=G(),_=t("div"),y=t("p"),g=W(M),v=G(),b=t("p"),w=W(r[2]),R=G(),E=t("div"),x=t("p"),A=W(N),F=G(),C=t("p"),T=W(r[8]),Y=G(),I&&I.c(),S=G(),B&&B.c(),P=G(),L&&L.c(),$=G(),H&&H.c(),this.c=U,q(s,"class","BonusCardRowTitle"),q(c,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===r[1]||"released"===r[1]?"StatusActive":"")+" "+("expired"===r[1]?"StatusExpired":"")+" "+("forfeited"===r[1]?"StatusForfeited":"")),q(o,"class","BonusCardRow"),q(y,"class","BonusCardRowTitle"),q(b,"class","BonusCardRowText"),q(_,"class","BonusCardRow"),q(x,"class","BonusCardRowTitle"),q(C,"class","BonusCardRowText TextCapitalize"),q(E,"class","BonusCardRow"),q(i,"class","BonusCardInfo"),q(n,"class","BonusCard")},m(e,t){V(e,n,t),z(n,i),z(i,o),z(o,s),z(s,a),z(s,l),z(s,h),z(h,u),z(o,d),z(o,c),z(c,p),z(i,f),z(i,_),z(_,y),z(y,g),z(_,v),z(_,b),z(b,w),z(i,R),z(i,E),z(E,x),z(x,A),z(E,F),z(E,C),z(C,T),z(i,Y),I&&I.m(i,null),z(i,S),B&&B.m(i,null),z(i,P),L&&L.m(i,null),z(n,$),H&&H.m(n,null),r[18](n)},p(e,[t]){512&t&&D!==(D=e[9]("date")+"")&&K(a,D),1&t&&k!==(k=Rn(e[0]).format("DD/MM/YYYY h:mm A")+"")&&K(u,k),514&t&&O!==(O=e[9](""+e[1])+"")&&K(p,O),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&q(c,"class",m),512&t&&M!==(M=e[9]("bonusName")+"")&&K(g,M),4&t&&K(w,e[2]),512&t&&N!==(N=e[9]("bonusType")+"")&&K(A,N),256&t&&K(T,e[8]),e[3]?I?I.p(e,t):((I=$n(e)).c(),I.m(i,S)):I&&(I.d(1),I=null),e[4]?B?B.p(e,t):((B=Un(e)).c(),B.m(i,P)):B&&(B.d(1),B=null),e[5]?L?L.p(e,t):((L=zn(e)).c(),L.m(i,null)):L&&(L.d(1),L=null),"active"===e[1]?H?H.p(e,t):((H=Vn(e)).c(),H.m(n,null)):H&&(H.d(1),H=null)},i:U,o:U,d(e){e&&j(n),I&&I.d(),B&&B.d(),L&&L.d(),H&&H.d(),r[18](null)}}}function Wn(t,e,r){let n;N(t,In,e=>r(9,n=e));let i,{bonuswalletid:o=""}=e,{bonusdate:s=""}=e,{bonusstatus:a=""}=e,{bonusname:l=""}=e,{bonustype:h=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:c=""}=e,{bonuscurrency:p=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:y=""}=e,g=window.navigator.userAgent,v="PC"!==Bn(g),b="";Object.keys(Yn).forEach(e=>{Fn(e,Yn[e])});return t.$$set=e=>{"bonuswalletid"in e&&r(12,o=e.bonuswalletid),"bonusdate"in e&&r(0,s=e.bonusdate),"bonusstatus"in e&&r(1,a=e.bonusstatus),"bonusname"in e&&r(2,l=e.bonusname),"bonustype"in e&&r(13,h=e.bonustype),"bonusamount"in e&&r(3,u=e.bonusamount),"bonuswageringamount"in e&&r(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&r(5,c=e.bonusremainingamount),"bonuscurrency"in e&&r(6,p=e.bonuscurrency),"lang"in e&&r(14,m=e.lang),"clientstyling"in e&&r(15,f=e.clientstyling),"clientstylingurl"in e&&r(16,_=e.clientstylingurl),"translationurl"in e&&r(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,bn.set(e)),8192&t.$$.dirty&&h&&(r(8,b=h),"freeRound"===b?r(8,b="Free Spins"):"freeBet"===b&&r(8,b="Free Bet")),65664&t.$$.dirty&&_&&i){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fn(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,l,u,d,c,p,i,b,n,v,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:o},window.location.href)},o,h,m,f,_,y,function(e){Z[e?"unshift":"push"](()=>{i=e,r(7,i)})}]}function Gn(e){var t,r=customElements.get(e.is);r?(t=r.version)&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${r.version} is already in use. Something will probably break.`):customElements.define(e.is,e)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}",this.shadowRoot.appendChild(t),se(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Wn,jn,O,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&V(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),c()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),c()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),c()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),c()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),c()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),c()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),c()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),c()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),c()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),c()}});class qn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}Gn(qn);const Kn=window,Xn=Kn.ShadowRoot&&(void 0===Kn.ShadyCSS||Kn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zn=Symbol(),Jn=new WeakMap;class Qn{constructor(e,t,r){if(this._$cssResult$=!0,r!==Zn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,r=this.t;return Xn&&void 0===e&&(t=void 0!==r&&1===r.length,void 0===(e=t?Jn.get(r):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Jn.set(r,e),e}toString(){return this.cssText}}const m=(n,...e)=>{e=1===n.length?n[0]:e.reduce((e,t,r)=>e+(()=>{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[r+1],n[0]);return new Qn(e,n,Zn)},ei=Xn?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const r of t.cssRules)e+=r.cssText;return t=e,new Qn("string"==typeof t?t:t+"",void 0,Zn)}},ti=window,ri=ti.trustedTypes,ni=ri?ri.emptyScript:"",ii=ti.reactiveElementPolyfillSupport,oi={toAttribute(e,t){switch(t){case Boolean:e=e?ni:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},si=(e,t)=>t!==e&&(t==t||e==e),ai={attribute:!0,type:String,converter:oi,reflect:!1,hasChanged:si},li="finalized";class hi extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const r=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),r.push(e))}),r}static createProperty(e,t=ai){var r;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(r="symbol"==typeof e?Symbol():"__"+e,void 0!==(r=this.getPropertyDescriptor(e,r,t))&&Object.defineProperty(this.prototype,e,r))}static getPropertyDescriptor(r,n,i){return{get(){return this[n]},set(e){var t=this[r];this[n]=e,this.requestUpdate(r,t,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ai}static finalize(){if(this.hasOwnProperty(li))return!1;this[li]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(ei(e))}else void 0!==e&&t.push(ei(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var n,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return n=t,e=this.constructor.elementStyles,Xn?n.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),r=Kn.litNonce;void 0!==r&&t.setAttribute("nonce",r),t.textContent=e.cssText,n.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=ai){var n,i=this.constructor._$Ep(e,r);void 0!==i&&!0===r.reflect&&(n=(void 0!==(null==(n=r.converter)?void 0:n.toAttribute)?r.converter:oi).toAttribute(t,r.type),this._$El=e,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$El=null)}_$AK(e,t){var r=this.constructor,n=r._$Ev.get(e);if(void 0!==n&&this._$El!==n){const e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(r=e.converter)?void 0:r.fromAttribute)?e.converter:oi;this._$El=n,this[n]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||si)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var r=this._$AL;try{(e=this.shouldUpdate(r))?(this.willUpdate(r),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}hi[li]=!0,hi.elementProperties=new Map,hi.elementStyles=[],hi.shadowRootOptions={mode:"open"},null!=ii&&ii({ReactiveElement:hi}),(null!=(a=ti.reactiveElementVersions)?a:ti.reactiveElementVersions=[]).push("1.6.3");const ui=window,di=ui.trustedTypes,ci=di?di.createPolicy("lit-html",{createHTML:e=>e}):void 0,pi="$lit$",mi=`lit$${(Math.random()+"").slice(9)}$`,fi="?"+mi,_i=`<${fi}>`,yi=document,gi=()=>yi.createComment(""),vi=e=>null===e||"object"!=typeof e&&"function"!=typeof e,bi=Array.isArray,wi="[ \t\n\f\r]",Ei=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xi=/-->/g,Ai=/>/g,Ci=RegExp(`>|${wi}(?:([^\\s"'>=/]+)(${wi}*=${wi}*(?:[^
|
2
|
-
\r"'\`<>=]|("|')|))|$)`,"g"),Ti=/'/g,Si=/"/g,Pi=/^(?:script|style|textarea|title)$/i,Di=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),ki=new WeakMap,Oi=yi.createTreeWalker(yi,129,null,!1);function Mi(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==ci?ci.createHTML(t):t;throw Error("invalid template strings array")}class Ni{constructor({strings:t,_$litType$:r},e){var n;this.parts=[];let i=0,o=0;var s=t.length-1,a=this.parts,[t,l]=((o,e)=>{const s=o.length-1,a=[];let l,h=2===e?"<svg>":"",u=Ei;for(let i=0;i<s;i++){const s=o[i];let e,t,r=-1,n=0;for(;n<s.length&&(u.lastIndex=n,null!==(t=u.exec(s)));)n=u.lastIndex,u===Ei?"!--"===t[1]?u=xi:void 0!==t[1]?u=Ai:void 0!==t[2]?(Pi.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=Ci):void 0!==t[3]&&(u=Ci):u===Ci?">"===t[0]?(u=null!=l?l:Ei,r=-1):void 0===t[1]?r=-2:(r=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?Ci:'"'===t[3]?Si:Ti):u===Si||u===Ti?u=Ci:u===xi||u===Ai?u=Ei:(u=Ci,l=void 0);var d=u===Ci&&o[i+1].startsWith("/>")?" ":"";h+=u===Ei?s+_i:0<=r?(a.push(e),s.slice(0,r)+pi+s.slice(r)+mi+d):s+mi+(-2===r?(a.push(void 0),i):d)}return[Mi(o,h+(o[s]||"<?>")+(2===e?"</svg>":"")),a]})(t,r);if(this.el=Ni.createElement(t,e),Oi.currentNode=this.el.content,2===r){const t=this.el.content,r=t.firstChild;r.remove(),t.append(...r.childNodes)}for(;null!==(n=Oi.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const r of n.getAttributeNames())if(r.endsWith(pi)||r.startsWith(mi)){const e=l[o++];if(t.push(r),void 0!==e){const t=n.getAttribute(e.toLowerCase()+pi).split(mi),r=/([.?@])?(.*)/.exec(e);a.push({type:1,index:i,name:r[2],strings:t,ctor:"."===r[1]?Ri:"?"===r[1]?Yi:"@"===r[1]?$i:Hi})}else a.push({type:6,index:i})}for(const r of t)n.removeAttribute(r)}if(Pi.test(n.tagName)){const t=n.textContent.split(mi),r=t.length-1;if(0<r){n.textContent=di?di.emptyScript:"";for(let e=0;e<r;e++)n.append(t[e],gi()),Oi.nextNode(),a.push({type:2,index:++i});n.append(t[r],gi())}}}else if(8===n.nodeType)if(n.data===fi)a.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(mi,e+1));)a.push({type:7,index:i}),e+=mi.length-1}i++}}static createElement(e,t){var r=yi.createElement("template");return r.innerHTML=e,r}}function
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function U(){}function S(e){return e()}function P(){return Object.create(null)}function D(e){e.forEach(S)}function k(e){return"function"==typeof e}function O(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return U;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function N(e,t,r){e.$$.on_destroy.push(M(t,r))}function z(e,t){e.appendChild(t)}function V(e,t,r){e.insertBefore(t,r||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function B(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function t(e){return document.createElement(e)}function F(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function W(e){return document.createTextNode(e)}function G(){return W(" ")}function I(){return W("")}function Y(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function q(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function R(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:q(e,t,r)}function K(e,t){e.data!==(t=""+t)&&(e.data=t)}function L(e){var t={};for(const r of e)t[r.name]=r.value;return t}let H;function $(e){H=e}const X=[],Z=[];let J=[];const Q=[],ee=Promise.resolve();let te=!1;function re(e){J.push(e)}const ne=new Set;let ie=0;function c(){if(0===ie){const n=H;do{try{for(;ie<X.length;){const n=X[ie];ie++,$(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),D(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(re))}}catch(n){throw X.length=0,ie=0,n}for($(null),X.length=0,ie=0;Z.length;)Z.pop()();for(let e=0;e<J.length;e+=1){var r=J[e];ne.has(r)||(ne.add(r),r())}}while(J.length=0,X.length);for(;Q.length;)Q.pop()();te=!1,ne.clear(),$(n)}}const oe=new Set;function se(n,e,t,r,i,o,s,a=[-1]){var l=H;$(n);const h=n.$$={fragment:null,ctx:[],props:o,update:U,not_equal:i,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let u=!1;if(h.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),u)&&(r=e,-1===(e=n).$$.dirty[0]&&(X.push(e),te||(te=!0,ee.then(c)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],h.update(),u=!0,D(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){o=e.target;const U=Array.from(o.childNodes);h.fragment&&h.fragment.l(U),U.forEach(j)}else h.fragment&&h.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(oe.delete(a),a.i(void 0));var d=n,s=e.target,t=e.anchor,r=e.customElement,{fragment:o,after_update:a}=d.$$;o&&o.m(s,t),r||re(()=>{var e=d.$$.on_mount.map(S).filter(k);d.$$.on_destroy?d.$$.on_destroy.push(...e):D(e),d.$$.on_mount=[]}),a.forEach(re),c()}$(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(S).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;const n=[],i=[];J.forEach(e=>(-1===r.indexOf(e)?n:i).push(e)),i.forEach(e=>e()),J=n}D(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=U}$on(e,t){if(!k(t))return U;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var le,he,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ue="URLSearchParams"in l,de="Symbol"in l&&"iterator"in Symbol,ce="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in l,me="ArrayBuffer"in l;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ge(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ve(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function be(e){var t=new FileReader,r=ve(t);return t.readAsArrayBuffer(e),r}function we(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Ee(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ce&&(this.blob=function(){var e=ge(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ge(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(ce)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n=ge(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=ve(e=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(n.type))?r[1]:"utf-8",e.readAsText(n,r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(Ce)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=fe(e),t=_e(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[fe(e)]},h.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},h.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ye(r)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ye(r)},de&&(h.prototype[Symbol.iterator]=h.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Ae){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ce(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function Te(e,t){if(!(this instanceof Te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ae.prototype.clone=function(){return new Ae(this,{body:this._bodyInit})},Ee.call(Ae.prototype),Ee.call(Te.prototype),Te.prototype.clone=function(){return new Te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Te.error=function(){var e=new Te(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Se=[301,302,303,307,308],Pe=(Te.redirect=function(e,t){if(-1===Se.indexOf(t))throw new RangeError("Invalid status code");return new Te(null,{status:t,headers:{location:e}})},l.DOMException);try{new Pe}catch(U){(Pe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Pe.prototype.constructor=Pe}function De(n,a){return new Promise(function(i,e){var o=new Ae(n,a);if(o.signal&&o.signal.aborted)return e(new Pe("Aborted","AbortError"));var r,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,n,t={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),r=t.shift().trim();if(r){t=t.join(":").trim();try{n.append(r,t)}catch(e){console.warn("Response "+e.message)}}}),n)},r=(o.url.startsWith("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new Te(r,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Pe("Aborted","AbortError"))},0)},s.open(o.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(ce?s.responseType="blob":me&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){r.push(fe(e)),s.setRequestHeader(e,_e(a.headers[e]))}),o.headers.forEach(function(e,t){-1===r.indexOf(t)&&s.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",t)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}function kr(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ae,l.Response=Te),self.fetch.bind(self);var ke=function(e,t){return(ke=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Me(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ne(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Be(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Ie(e){return"function"==typeof e}function Le(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var He=Le(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Re(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Me(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(Ie(o))try{o()}catch(e){i=e instanceof He?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Me(o),h=l.next();!h.done;h=l.next()){var u=h.value;try{Ue(u)}catch(e){i=null!=i?i:[],e instanceof He?i=Be(Be([],Ne(i)),Ne(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new He(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ue(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((e=new r).closed=!0,e);var Fe=r,Ye=Fe.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function $e(e){return e instanceof Fe||e&&"closed"in e&&Ie(e.remove)&&Ie(e.add)&&Ie(e.unsubscribe)}function Ue(e){Ie(e)?e():e.unsubscribe()}var ze=void 0,Ve=!1,je=!1,We={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=We.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Be([e,t],Ne(r))):setTimeout.apply(void 0,Be([e,t],Ne(r)))},clearTimeout:function(e){var t=We.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ge(){}var qe=null;function Ke(e){if(Ve){var t=!qe;if(t&&(qe={errorThrown:!1,error:null}),e(),t){var t=qe,r=t.errorThrown,t=t.error;if(qe=null,r)throw t}}else e()}Oe(Qe,Xe=Fe),Qe.create=function(e,t,r){return new nt(e,t,r)},Qe.prototype.next=function(e){this.isStopped||this._next(e)},Qe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Qe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Qe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xe.prototype.unsubscribe.call(this),this.destination=null)},Qe.prototype._next=function(e){this.destination.next(e)},Qe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Qe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xe,Ze=Qe,Je=Function.prototype.bind;function Qe(e){var t=Xe.call(this)||this;return t.isStopped=!1,e?$e(t.destination=e)&&e.add(t):t.destination=at,t}function et(e,t){return Je.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){st(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){st(e)}else st(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){st(e)}};var tt,rt=ot,nt=(Oe(it,tt=Ze),it);function it(e,t,r){var n=tt.call(this)||this,r=Ie(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&je?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&et(e.next,t),error:e.error&&et(e.error,t),complete:e.complete&&et(e.complete,t)}):e;return n.destination=new rt(r),n}function ot(e){this.partialObserver=e}function st(e){var t=e;We.setTimeout(function(){throw t})}var at={closed:!0,next:Ge,error:function(e){throw e},complete:Ge},e="function"==typeof Symbol&&Symbol.observable||"@@observable";n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ze||n&&Ie(n.next)&&Ie(n.error)&&Ie(n.complete)&&$e(n)?e:new nt(e,t,r);return Ke(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(n,e){var i=this;return new(e=ht(e))(function(e,t){var r=new nt({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[e]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var n=this;return new(e=ht(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},n.create=function(e){return new n(e)};var lt=n;function n(e){e&&(this._subscribe=e)}function ht(e){return null!=(e=null!=e?e:ze)?e:Promise}var ut,dt,ct,pt=Le(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Oe(i,ct=lt),i.prototype.lift=function(e){var t=new mt(this,this);return t.operator=e,t},i.prototype._throwIfClosed=function(){if(this.closed)throw new pt},i.prototype.next=function(i){var o=this;Ke(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Me(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},i.prototype.error=function(t){var r=this;Ke(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},i.prototype.complete=function(){var t=this;Ke(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),ct.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Ye:(this.currentObservers=null,i.push(e),new Fe(function(){t.currentObservers=null,Re(i,e)}))},i.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},i.prototype.asObservable=function(){var e=new lt;return e.source=this,e},i.create=function(e,t){return new mt(e,t)},i),mt=(Oe(gt,dt=e),gt.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},gt.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},gt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},gt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ye},gt),ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0},_t=(Oe(yt,ut=e),yt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i)||n.push(o.now()+t),this._trimBuffer(),ut.prototype.next.call(this,e)},yt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},yt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},yt);function yt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ft);var n=ut.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function gt(e,t){var r=dt.call(this)||this;return r.destination=e,r.source=t,r}function i(){var e=ct.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let vt=[],bt={};const wt=[];function Et(n,i=U){let o;const s=new Set;function a(e){if(O(n,e)&&(n=e,o)){const e=!wt.length;for(const e of s)e[1](),wt.push(e,n);if(e){for(let e=0;e<wt.length;e+=2)wt[e][0](wt[e+1]);wt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=U){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||U),e(n),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function xt(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:Et(t,t=>{let r=!1;const n=[];let i=0,o=U;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=k(e)?e:U)},e=h.map((e,t)=>M(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){D(e),o(),r=!1}}).subscribe}}function At(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Ct);var t}var Ct="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ot(Array.isArray(e)?[]:{},e,t):e}function St(e,t,r){return e.concat(t).map(function(e){return Tt(e,r)})}function Pt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Dt(e,t){try{return t in e}catch(e){return!1}}function kt(n,i,o){var s={};return o.isMergeableObject(n)&&Pt(n).forEach(function(e){s[e]=Tt(n[e],o)}),Pt(i).forEach(function(e){var t,r;(!Dt(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(Dt(n,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Ot)(n[e],i[e],o):s[e]=Tt(i[e],o))}),s}function Ot(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||St,r.isMergeableObject=r.isMergeableObject||At,r.cloneUnlessOtherwiseSpecified=Tt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):kt(e,t,r):Tt(t,r)}Ot.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Ot(e,t,r)},{});throw new Error("first argument should be an array")};var Mt=Ot,Nt=function(e,t){return(Nt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Nt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,y,It,_=function(){return(_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Lt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Ht(e){return e.type===y.literal}function Rt(e){return e.type===y.number}function Ft(e){return e.type===y.date}function Yt(e){return e.type===y.time}function $t(e){return e.type===y.select}function Ut(e){return e.type===y.plural}function zt(e){return e.type===y.tag}function Vt(e){return e&&"object"==typeof e&&e.type===It.number}function jt(e){return e&&"object"==typeof e&&e.type===It.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=It=It||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Gt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,qt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Kt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Zt=/^(0+)$/;function Jt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Kt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Qt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function er(e){return Qt(e)||{}}function tr(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=_(_(_({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),er(t))},{}));continue;case"engineering":s=_(_(_({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),er(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Xt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Zt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(qt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(qt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=_(_({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=_(_({},s),Jt(o)))}else Kt.test(i.stem)?s=_(_({},s),Jt(i.stem)):((o=Qt(i.stem))&&(s=_(_({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Zt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=_(_({},s),n)))}return s}var rr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var nr=new RegExp("^".concat(e.source,"*")),ir=new RegExp("".concat(e.source,"*$"));function g(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,o=!!String.fromCodePoint,or=!!Object.fromEntries,s=!!String.prototype.codePointAt,a=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,ar=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},u=!0;try{u="a"===(null==(Pr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Pr[0])}catch(xi){u=!1}var lr,hr,ur=e?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dr=o?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},cr=or?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},pr=s?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},mr=a?function(e){return e.trimStart()}:function(e){return e.replace(nr,"")},fr=sr?function(e){return e.trimEnd()}:function(e){return e.replace(ir,"")};function _r(e,t){return new RegExp(e,t)}hr=u?(lr=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return lr.lastIndex=t,null!=(t=lr.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=pr(e,t);if(void 0===i||vr(i)||33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;n.push(i),t+=65536<=i?2:1}return dr.apply(void 0,n)};d.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},d.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&gr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:g(o,this.clonePosition())})}}}return{val:n,err:null}},d.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(i,"/>"),location:g(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!gr(this.char())?this.error(f.INVALID_TAG,g(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:t,location:g(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,g(n,this.clonePosition()))):this.error(f.INVALID_TAG,g(n,this.clonePosition()))},d.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},d.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=g(r,this.clonePosition());return{val:{type:y.literal,value:n,location:r},err:null}},d.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(gr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},d.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return dr.apply(void 0,t)},d.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),dr(r))},d.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,g(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,g(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:g(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(f.MALFORMED_ARGUMENT,g(r,this.clonePosition()))}},d.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=hr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:g(e,this.clonePosition())}},d.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,g(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(c=fr(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:c,styleLocation:g(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(n)).err?h:(p=g(n,this.clonePosition()),l&&ur(null==l?void 0:l.style,"::",0)?(m=mr(l.style.slice(2)),"number"===s?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:r,location:p,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(rr[t||""]||rr[r||""]||rr["".concat(r,"-001")]||rr["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(m,this.locale)),c={type:It.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Wt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}},{val:{type:"date"===s?y.date:y.time,value:r,location:p,style:c},err:null})):{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(u,_({},u)));this.bumpSpace();var d,c=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,s,t,c);return l.err?l:(h=this.tryParseArgumentClose(n)).err?h:(m=g(n,this.clonePosition()),"select"===s?{val:{type:y.select,value:r,options:cr(l.val),location:m},err:null}:{val:{type:y.plural,value:r,options:cr(l.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,g(o,a))}},d.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},d.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},d.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Gt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:It.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?tr(r):{}},err:null}},d.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=g(h,this.clonePosition()),a=this.message.slice(h.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,g(this.clonePosition(),this.clonePosition()));h=this.parseMessage(e+1,t,r);if(h.err)return h;var d=this.tryParseArgumentClose(u);if(d.err)return d;o.push([a,{value:h.val,location:g(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,g(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(f.MISSING_OTHER_CLAUSE,g(this.clonePosition(),this.clonePosition())):{val:o,err:null}},d.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=g(n,this.clonePosition());return i?ar(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},d.prototype.offset=function(){return this.position.offset},d.prototype.isEOF=function(){return this.offset()===this.message.length},d.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},d.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=pr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},d.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},d.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},d.prototype.bumpIf=function(e){if(ur(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},d.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},d.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},d.prototype.bumpSpace=function(){for(;!this.isEOF()&&vr(this.char());)this.bump()},d.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var yr=d;function d(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function gr(e){return 97<=e&&e<=122||65<=e&&e<=90}function vr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function br(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new yr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,$t(e)||Ut(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Rt(e)&&Vt(e.style)||(Ft(e)||Yt(e))&&jt(e.style)?delete e.style.location:zt(e)&&r(e.children)})}(e.val),e.val}function wr(e,t){var r=t&&t.cache?t.cache:Dr,n=t&&t.serializer?t.serializer:Cr;return(t&&t.strategy?t.strategy:function(e,t){return Ar(e,this,1===e.length?Er:xr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Er(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function xr(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Ar(e,t,r,n,i){return r.bind(t,e,n,i)}var Cr=function(){return JSON.stringify(arguments)};function Tr(){this.cache=Object.create(null)}Tr.prototype.get=function(e){return this.cache[e]},Tr.prototype.set=function(e,t){this.cache[e]=t};var Sr,Pr,Dr={create:function(){return new Tr}},Or={variadic:function(e,t){return Ar(e,this,xr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ar(e,this,Er,t.cache.create(),t.serializer)}};(Pr=Sr=Sr||{}).MISSING_VALUE="MISSING_VALUE",Pr.INVALID_VALUE="INVALID_VALUE",Pr.MISSING_INTL_API="MISSING_INTL_API";Bt(zr,Ir=Error),zr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,Mr,Nr,Br,Ir,Lr=zr,Hr=(Bt(Ur,Br=Lr),Ur),Rr=(Bt($r,Nr=Lr),$r),Fr=(Bt(Yr,Mr=Lr),Yr);function Yr(e,t){return Mr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Sr.MISSING_VALUE,t)||this}function $r(e,t,r){return Nr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Sr.INVALID_VALUE,r)||this}function Ur(e,t,r,n){return Br.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Sr.INVALID_VALUE,n)||this}function zr(e,t,r){e=Ir.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Vr(e,t,r,n,i,o,s){if(1===e.length&&Ht(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Ht(u))a.push({type:v.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&a.push({type:v.literal,value:r.getNumberFormat(t).format(o)});else{var d=u.value;if(!(i&&d in i))throw new Fr(d,s);d=i[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?v.literal:v.object,value:d});else if(Ft(u)){var c="string"==typeof u.style?n.date[u.style]:jt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:r.getDateTimeFormat(t,c).format(d)})}else if(Yt(u))c="string"==typeof u.style?n.time[u.style]:jt(u.style)?u.style.parsedOptions:n.time.medium,a.push({type:v.literal,value:r.getDateTimeFormat(t,c).format(d)});else if(Rt(u))(c="string"==typeof u.style?n.number[u.style]:Vt(u.style)?u.style.parsedOptions:void 0)&&c.scale&&(d*=c.scale||1),a.push({type:v.literal,value:r.getNumberFormat(t,c).format(d)});else{if(zt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Rr(m,"function",s);m=f(Vr(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?v.literal:v.object,value:e}}))}if($t(u)){if(!(_=u.options[d]||u.options.other))throw new Hr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Vr(_.value,t,r,n,i))}else if(Ut(u)){if(!(_=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Lr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new Hr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Vr(_.value,t,r,n,i,d-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===v.literal&&t.type===v.literal?r.value+=t.value:e.push(t),e},[])}function jr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(e=v=v||{})[e.literal=0]="literal",e[e.object=1]="object";Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},p.__parse=br,p.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Wr=p;function p(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Vr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=p.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?_(_(_({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=_(_({},r[t]),n[t]||{}),e},{})):r),e},_({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:wr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Lt([void 0],t,!1)))},{cache:jr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Or.variadic}),getDateTimeFormat:wr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Lt([void 0],t,!1)))},{cache:jr(t.dateTime),strategy:Or.variadic}),getPluralRules:wr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Lt([void 0],t,!1)))},{cache:jr(t.pluralRules),strategy:Or.variadic})}}const Gr={},qr=(e,t,r)=>r&&(t in Gr||(Gr[t]={}),e in Gr[t]||(Gr[t][e]=r),r),Kr=(t,r)=>{if(null!=r){if(r in Gr&&t in Gr[r])return Gr[r][t];var n=gn(r);for(let e=0;e<n.length;e++){var i=function(e,t){if(!Jr(e))return null;e=function(e){return Xr[e]||null}(e),e=function(e,r){if(null!=r){if(r in e)return e[r];var n=r.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const r=n.slice(e,n.length).join(".");if(r in t){t=t[r];break}}t=t[n[e]]}else t=void 0;return t}}(e,t);return e}(n[e],t);if(i)return qr(t,r,i)}}};let Xr;const Zr=Et({});function Jr(e){return e in Xr}function Qr(t,...r){delete Gr[t],Zr.update(e=>(e[t]=Mt.all([e[t]||{},...r]),e))}xt([Zr],([e])=>Object.keys(e)),Zr.subscribe(e=>Xr=e);const en={};function tn(e){return en[e]}function rn(e){return null!=e&&gn(e).some(e=>{return null==(e=tn(e))?void 0:e.size})}function nn(n,e){return Promise.all(e.map(e=>{return t=n,r=e,en[t].delete(r),0===en[t].size&&delete en[t],e().then(e=>e.default||e);var t,r})).then(e=>Qr(n,...e))}const on={};function sn(e){var t;return rn(e)?(t=gn(e).map(e=>{var t=tn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),on[e]=Promise.all(t.map(([e,t])=>nn(e,t))).then(()=>{if(rn(e))return sn(e);delete on[e]}),on[e]):e in on?on[e]:Promise.resolve()}const an={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ln(){return an}const hn=Et(!1);var un=Object.defineProperty,o=Object.defineProperties,or=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,mn=(e,t,r)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let fn;const _n=Et(null);function yn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function gn(e,t=an.fallbackLocale){e=yn(e);return t?[...new Set([...e,...yn(t)])]:e}function vn(){return null!=fn?fn:void 0}_n.subscribe(e=>{fn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});s=((e,t)=>{for(var r in t=t||{})cn.call(t,r)&&mn(e,r,t[r]);if(dn)for(var r of dn(t))pn.call(t,r)&&mn(e,r,t[r]);return e})({},_n);const bn=o(s,or({set:t=>{if(t&&function(e){if(null==e)return;const t=gn(e);for(let e=0;e<t.length;e++){const r=t[e];if(Jr(r))return r}}(t)&&rn(t)){const{loadingDelay:r}=ln();let e;return"undefined"!=typeof window&&null!=vn()&&r?e=window.setTimeout(()=>hn.set(!0),r):hn.set(!0),sn(t).then(()=>{_n.set(t)}).finally(()=>{clearTimeout(e),hn.set(!1)})}return _n.set(t)}})),wn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}};var En=Object.defineProperty,xn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Tn=(e,t,r)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t=t||{})An.call(t,r)&&Tn(e,r,t[r]);if(xn)for(var r of xn(t))Cn.call(t,r)&&Tn(e,r,t[r]);return e},Pn=(e,t)=>{var r={};for(n in e)An.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&xn)for(var n of xn(e))t.indexOf(n)<0&&Cn.call(e,n)&&(r[n]=e[n]);return r};const Dn=(e,t)=>{var r=an["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},kn=wn(e=>{var{locale:t,format:r}=e,e=Pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Dn("number",r)),new Intl.NumberFormat(t,e)}),On=wn(e=>{var{locale:t,format:r}=e,e=Pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Dn("date",r):0===Object.keys(e).length&&(e=Dn("date","short")),new Intl.DateTimeFormat(t,e)}),Mn=wn(e=>{var{locale:t,format:r}=e,e=Pn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Dn("time",r):0===Object.keys(e).length&&(e=Dn("time","short")),new Intl.DateTimeFormat(t,e)}),Nn=wn((e,t=vn())=>new Wr(e,t,an.formats,{ignoreTag:an.ignoreTag})),Bn=xt([bn,Zr],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=vn(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kr(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let h=l;try{h=Nn(l,s).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),In=(xt([bn],()=>(e,t)=>((e={})=>{var{locale:t=vn()}=e,e=Pn(e,["locale"]);return Mn(Sn({locale:t},e))})(t).format(e)),xt([bn],()=>(e,t)=>((e={})=>{var{locale:t=vn()}=e,e=Pn(e,["locale"]);return On(Sn({locale:t},e))})(t).format(e)),xt([bn],()=>(e,t)=>((e={})=>{var{locale:t=vn()}=e,e=Pn(e,["locale"]);return kn(Sn({locale:t},e))})(t).format(e)),xt([bn,Zr],()=>(e,t=vn())=>Kr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==vt.indexOf(e)&&(t=new _t(t),bt[e]=t,vt.push(e)),bt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Hn=Ln={path:void 0,exports:{},require:function(e,t){return kr(null==t&&Ln.path)}},Ln.exports,Hn.exports=function(){var L;function m(){return L.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function a(e){return void 0===e}function F(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function $(e,t){for(var r=[],n=e.length,i=0;i<n;++i)r.push(t(e[i],i));return r}function U(e,t){for(var r in t)f(t,r)&&(e[r]=t[r]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,r,n){return Ot(e,t,r,n,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function z(e){if(null==e._isValid){var t=_(e),r=j.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function V(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},W=m.momentProperties=[],G=!1;function q(e,t){var r,n,i,o=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=_(t)),a(t._locale)||(e._locale=t._locale),0<o)for(r=0;r<o;r++)a(i=t[n=W[r]])||(e[n]=i);return e}function K(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof K||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,s){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),a){for(var e,t,r=[],n=arguments.length,i=0;i<n;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];r.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var Z={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),Z[e]||(X(t),Z[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var r,n=U({},e);for(r in t)f(t,r)&&(H(e[r])&&H(t[r])?(n[r]={},U(n[r],e[r]),U(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)f(e,r)&&!f(t,r)&&H(e[r])&&(n[r]=U({},n[r]));return n}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)f(e,t)&&r.push(t);return r};function o(e,t,r){var n=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var re=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},oe={};function n(e,t,r,n){var i="string"==typeof n?function(){return this[n]()}:n;e&&(oe[e]=i),t&&(oe[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])}),r&&(oe[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(n){for(var e,i=n.match(re),t=0,o=i.length;t<o;t++)oe[i[t]]?i[t]=oe[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<o;r++)t+=u(i[r])?i[r].call(e,n):i[r];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=r&&ne.test(e);)e=e.replace(ne,n),ne.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,r,n={};for(r in e)f(e,r)&&(t=d(r))&&(n[t]=e[r]);return n}var ue={};function r(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function c(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?c(e):t}function ce(t,r){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,r),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(r=p(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Be(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var i=/\d/,y=/\d\d/,fe=/\d{3}/,_e=/\d{4}/,ye=/[+-]?\d{6}/,g=/\d\d?/,ge=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,be=/\d{1,3}/,we=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,xe=/\d+/,Ae=/[+-]?\d+/,Ce=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,r,n){Pe[e]=u(r)?r:function(e,t){return e&&n?n:r}}function Se(e,t){return f(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,i){return t||r||n||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function E(e,r){var t,n,i=r;for("string"==typeof e&&(e=[e]),F(r)&&(i=function(e,t){t[r]=p(e)}),n=e.length,t=0;t<n;t++)De[e[t]]=i}function ke(e,i){E(e,function(e,t,r,n){r._w=r._w||{},i(e,r._w,r,n)})}var x,A=0,C=1,T=2,S=3,P=4,D=5,Oe=6,Me=7,Ne=8;function Be(e,t){var r;return isNaN(e)||isNaN(t)?NaN:(r=(t%(r=12)+r)%r,e+=(t-r)/12,1==r?de(e)?29:28:31-r%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),b("M",g),b("MM",g,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),E(["M","MM"],function(e,t){t[C]=p(e)-1}),E(["MMM","MMMM"],function(e,t,r,n){n=r._locale.monthsParse(e,n,r._strict);null!=n?t[C]=n:_(r).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=v,Fe=v;function Ye(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function $e(e){return null!=e?(Ye(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,r=[],n=[],i=[],o=0;o<12;o++)t=h([2e3,o]),r.push(this.monthsShort(t,"")),n.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(r.sort(e),n.sort(e),i.sort(e),o=0;o<12;o++)r[o]=w(r[o]),n[o]=w(n[o]);for(o=0;o<24;o++)i[o]=w(i[o]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){return de(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),b("Y",Ae),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",Ee,ye),b("YYYYYY",Ee,ye),E(["YYYYY","YYYYYY"],A),E("YYYY",function(e,t){t[A]=2===e.length?m.parseTwoDigitYear(e):p(e)}),E("YY",function(e,t){t[A]=m.parseTwoDigitYear(e)}),E("Y",function(e,t){t[A]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var Ve=ce("FullYear",!0);function je(e,t,r,n,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,n,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,i,o,s),a}function We(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,r){r=7+t-r;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,r,n,i){var o,t=1+7*(t-1)+(7+r-n)%7+Ge(e,n,i),r=t<=0?ze(o=e-1)+t:t>ze(e)?(o=e+1,t-ze(e)):(o=e,t);return{year:o,dayOfYear:r}}function Ke(e,t,r){var n,i,o=Ge(e.year(),t,r),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+k(i=e.year()-1,t,r):o>k(e.year(),t,r)?(n=o-k(e.year(),t,r),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function k(e,t,r){var n=Ge(e,t,r),t=Ge(e+1,t,r);return(ze(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),b("w",g),b("ww",g,y),b("W",g),b("WW",g,y),ke(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=p(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),b("d",g),b("e",g),b("E",g),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,r,n){n=r._locale.weekdaysParse(e,n,r._strict);null!=n?t.d=n:_(r).invalidWeekday=e}),ke(["d","e","E"],function(e,t,r,n){t[n]=p(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,rt=v;function nt(){function e(e,t){return t.length-e.length}for(var t,r,n,i=[],o=[],s=[],a=[],l=0;l<7;l++)n=h([2e3,1]).day(l),t=w(this.weekdaysMin(n,"")),r=w(this.weekdaysShort(n,"")),n=w(this.weekdays(n,"")),i.push(t),o.push(r),s.push(n),a.push(t),a.push(r),a.push(n);i.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function ot(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,it),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)}),n("hmmss",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),r("hour",13),b("a",st),b("A",st),b("H",g),b("h",g),b("k",g),b("HH",g,y),b("hh",g,y),b("kk",g,y),b("hmm",ge),b("hmmss",ve),b("Hmm",ge),b("Hmmss",ve),E(["H","HH"],S),E(["k","kk"],function(e,t,r){e=p(e);t[S]=24===e?0:e}),E(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),E(["h","hh"],function(e,t,r){t[S]=p(e),_(r).bigHour=!0}),E("hmm",function(e,t,r){var n=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n)),_(r).bigHour=!0}),E("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n,2)),t[D]=p(e.substr(i)),_(r).bigHour=!0}),E("Hmm",function(e,t,r){var n=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n))}),E("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[S]=p(e.substr(0,n)),t[P]=p(e.substr(n,2)),t[D]=p(e.substr(i))});v=ce("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,r,n,i,o=0;o<e.length;){for(t=(i=ut(e[o]).split("-")).length,r=(r=ut(e[o+1]))?r.split("-"):null;0<t;){if(n=ct(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}(i,r)>=t-1)break;t--}o++}return at}function ct(t){var e;if(void 0===O[t]&&Hn&&Hn.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,kr(),pt(e)}catch(e){O[t]=null}return O[t]}function pt(e,t){return e&&((t=a(t)?M(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete O[e],null;var r,n=lt;if(t.abbr=e,null!=O[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])n=O[t.parentLocale]._config;else{if(null==(r=ct(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;n=r._config}return O[e]=new ee(Q(n,t)),ht[e]&&ht[e].forEach(function(e){mt(e.name,e.config)}),pt(e),O[e]}function M(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=ct(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===_(e).overflow&&(t=t[C]<0||11<t[C]?C:t[T]<1||t[T]>Be(t[A],t[C])?T:t[S]<0||24<t[S]||24===t[S]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?S:t[P]<0||59<t[P]?P:t[D]<0||59<t[D]?D:t[Oe]<0||999<t[Oe]?Oe:-1,_(e)._overflowDayOfYear&&(t<A||T<t)&&(t=T),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ne),_(e).overflow=t),e}var _t=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function At(e){var t,r,n,i,o,s,a=e._i,l=_t.exec(a)||yt.exec(a),a=vt.length,h=bt.length;if(l){for(_(e).iso=!0,t=0,r=a;t<r;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],n=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,r=h;t<r;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!n&&null!=o)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),Dt(e)}else e._isValid=!1}function Ct(e,t,r,n,i,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Le.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return o&&e.push(parseInt(o,10)),e}function Tt(e){var t,r,n,i,o=Et.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Ct(o[4],o[3],o[2],o[5],o[6],o[7]),r=o[1],n=t,i=e,r&&Je.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(r=o[8],n=o[9],i=o[10],r?xt[r]:n?0:((r=parseInt(i,10))-(n=r%100))/100*60+n),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function St(e,t,r){return null!=e?e:null!=t?t:r}function Pt(e){var t,r,n,i,o,s,a,l,h,u,d,c=[];if(!e._d){for(u=e,d=new Date(m.now()),r=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[T]&&null==e._a[C]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(s=1,a=4,n=St(d.GG,u._a[A],Ke(N(),1,4).year),i=St(d.W,1),((o=St(d.E,1))<1||7<o)&&(l=!0)):(s=u._locale._week.dow,a=u._locale._week.doy,h=Ke(N(),s,a),n=St(d.gg,u._a[A],h.year),i=St(d.w,h.week),null!=d.d?((o=d.d)<0||6<o)&&(l=!0):null!=d.e?(o=d.e+s,(d.e<0||6<d.e)&&(l=!0)):o=s),i<1||i>k(n,s,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(n,i,o,s,a),u._a[A]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(d=St(e._a[A],r[A]),(e._dayOfYear>ze(d)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=We(d,0,e._dayOfYear),e._a[C]=l.getUTCMonth(),e._a[T]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=r[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[S]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[S]=0),e._d=(e._useUTC?We:je).apply(null,c),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[S]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(_(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],_(e).empty=!0;for(var t,r,n,i=""+e._i,o=i.length,s=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)n=r[l],(t=(i.match(Se(n,e))||[])[0])&&(0<(d=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(d),i=i.slice(i.indexOf(t)+t.length),s+=t.length),oe[n]?(t?_(e).empty=!1:_(e).unusedTokens.push(n),d=n,p=e,null!=(c=t)&&f(De,d)&&De[d](c,p._a,p,d)):e._strict&&!t&&_(e).unusedTokens.push(n);_(e).charsLeftOver=o-s,0<i.length&&_(e).unusedInput.push(i),e._a[S]<=12&&!0===_(e).bigHour&&0<e._a[S]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[S]=(o=e._locale,h=e._a[S],null==(u=e._meridiem)?h:null!=o.meridiemHour?o.meridiemHour(h,u):null!=o.isPM?((o=o.isPM(u))&&h<12&&(h+=12),h=o||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[A]=e._locale.erasConvertYear(u,e._a[A])),Pt(e),ft(e)}else Tt(e);else At(e);var h,u,d,c,p}function kt(e){var t,r=e._i,n=e._f;{var i,o;return(e._locale=e._locale||M(e._l),null===r||void 0===n&&""===r)?V({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new K(ft(r)):(Y(r)?e._d=r:s(n)?function(e){var t,r,n,i,o,s,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)o=0,s=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),z(t)&&(s=!0),o=(o+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=o,a?o<n&&(n=o,r=t):(null==n||o<n||s)&&(n=o,r=t,s)&&(a=!0);U(e,r||t)}(e):n?Dt(e):a(n=(r=e)._i)?r._d=new Date(m.now()):Y(n)?r._d=new Date(n.valueOf()):"string"==typeof n?(i=r,null===(o=wt.exec(i._i))?(At(i),!1===i._isValid&&(delete i._isValid,Tt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+o[1])):s(n)?(r._a=$(n.slice(0),function(e){return parseInt(e,10)}),Pt(r)):H(n)?(i=r)._d||(t=void 0===(o=he(i._i)).day?o.date:o.day,i._a=$([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(n)?r._d=new Date(n):m.createFromInputFallback(r),z(e)||(e._d=null),e))}}function Ot(e,t,r,n,i){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(H(e)&&R(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=r,o._i=e,o._f=t,o._strict=n,(i=new K(ft(kt(i=o))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function N(e,t,r,n){return Ot(e,t,r,n,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ge=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:V()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=N.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:V()});function Mt(e,t){var r,n;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return N();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var e=he(e),t=e.year||0,r=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,a=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,r,n=!1,i=Nt.length;for(t in e)if(f(e,t)&&(-1===x.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[Nt[r]]){if(n)return!1;parseFloat(e[Nt[r]])!==p(e[Nt[r]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*i,this._months=+n+3*r+12*t,this._data={},this._locale=M(),this._bubble()}function It(e){return e instanceof Bt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,r){n(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+r+o(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),b("Z",Te),b("ZZ",Te),E(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Ft(Te,e)});var Rt=/([\+\-]|\d\d)/gi;function Ft(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Rt)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function Yt(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||Y(e)?e:N(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),m.updateOffset(t,!1),t):N(e).local()}function $t(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var r,n,i=e;return It(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=zt.exec(e))?(r="-"===t[1]?-1:1,i={y:0,d:p(t[T])*r,h:p(t[S])*r,m:p(t[P])*r,s:p(t[D])*r,ms:p(Lt(1e3*t[Oe]))*r}):(t=Vt.exec(e))?(r="-"===t[1]?-1:1,i={y:jt(t[2],r),M:jt(t[3],r),w:jt(t[4],r),d:jt(t[5],r),h:jt(t[6],r),m:jt(t[7],r),s:jt(t[8],r)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=N(i.from),r=N(i.to),t=t.isValid()&&r.isValid()?(r=Yt(r,t),t.isBefore(r)?n=Wt(t,r):((n=Wt(r,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),n=new Bt(i),It(e)&&f(e,"_locale")&&(n._locale=e._locale),It(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Gt(n,i){return function(e,t){var r;return null===t||isNaN(+t)||(J(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),qt(this,B(e,t),n),this}}function qt(e,t,r,n){var i=t._milliseconds,o=Lt(t._days),t=Lt(t._months);e.isValid()&&(n=null==n||n,t&&Ye(e,pe(e,"Month")+t*r),o&&me(e,"Date",pe(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),n)&&m.updateOffset(e,o||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ie=Gt(1,"add"),Ze=Gt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||Y(e)||Kt(e)||F(e)||(r=s(t=e),n=!1,r&&(n=0===t.filter(function(e){return!F(e)&&Kt(t)}).length),r&&n)||function(e){var t,r,n=H(e)&&!R(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)r=o[t],i=i||f(e,r);return n&&i}(e)||null==e;var t,r,n}function Zt(e,t){var r,n;return e.date()<t.date()?-Zt(t,e):-((r=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(n=e.clone().add(r,"months"))<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(1+r,"months")-n)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=M(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function nr(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function ir(e,t){return t.erasAbbrRegex(e)}function or(){for(var e=[],t=[],r=[],n=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(w(i[o].name)),e.push(w(i[o].abbr)),r.push(w(i[o].narrow)),n.push(w(i[o].name)),n.push(w(i[o].abbr)),n.push(w(i[o].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function sr(e,t){n(0,[e,e.length],0,t)}function ar(e,t,r,n,i){var o;return null==e?Ke(this,n,i).year:(t>(o=k(e,n,i))&&(t=o),function(e,t,r,n,i){e=qe(e,t,r,n,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,n,i))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),b("N",ir),b("NN",ir),b("NNN",ir),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),E(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){n=r._locale.erasParse(e,n,r._strict);n?_(r).era=n:_(r).invalidEra=e}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),E(["y","yy","yyy","yyyy"],A),E(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[A]=r._locale.eraYearOrdinalParse(e,i):t[A]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sr("gggg","weekYear"),sr("ggggg","weekYear"),sr("GGGG","isoWeekYear"),sr("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),b("G",Ae),b("g",Ae),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",Ee,ye),b("ggggg",Ee,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=p(e)}),ke(["gg","GG"],function(e,t,r,n){t[n]=m.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),b("Q",i),E("Q",function(e,t){t[C]=3*(p(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),r("date",9),b("D",g),b("DD",g,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),E(["D","DD"],T),E("Do",function(e,t){t[T]=p(e.match(g)[0])});we=ce("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),b("DDD",be),b("DDDD",fe),E(["DDD","DDDD"],function(e,t,r){r._dayOfYear=p(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),b("m",g),b("mm",g,y),E(["m","mm"],P);_e=ce("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),r("second",15),b("s",g),b("ss",g,y),E(["s","ss"],D);var lr,Ee=ce("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),b("S",be,i),b("SS",be,y),b("SSS",be,fe),lr="SSSS";lr.length<=9;lr+="S")b(lr,xe);function hr(e,t){t[Oe]=p(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")E(lr,hr);ye=ce("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");i=K.prototype;function ur(e){return e}i.add=Ie,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!R(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<n.length;i+=1)r=r||f(e,n[i]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||N(),r=Yt(e,this).startOf("day"),r=m.calendarFormat(this,r)||"sameElse",t=t&&(u(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,N(e)))},i.clone=function(){return new K(this)},i.diff=function(e,t,r){var n,i,o;if(!this.isValid())return NaN;if(!(n=Yt(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Zt(this,n)/12;break;case"month":o=Zt(this,n);break;case"quarter":o=Zt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-i)/864e5;break;case"week":o=(this-n-i)/6048e5;break;default:o=this-n}return r?o:c(o)},i.endOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?nr:rr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=se(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(N(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||N(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(N(),e)},i.get=function(e){return u(this[e=d(e)])?this[e]():this},i.invalidAt=function(){return _(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:N(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,r,n){return e=l(e)?e:N(e),t=l(t)?t:N(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===n[1]?this.isBefore(t,r):!this.isAfter(t,r))},i.isSame=function(e,t){var e=l(e)?e:N(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return z(this)},i.lang=Qe,i.locale=Jt,i.localeData=Qt,i.max=ve,i.min=ge,i.parsingFlags=function(){return U({},_(this))},i.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)f(e,t)&&r.push({unit:t,priority:ue[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=he(e)),n=r.length,i=0;i<n;i++)this[r[i].unit](e[r[i].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},i.startOf=function(e){var t,r;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(r=this._isUTC?nr:rr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.subtract=Ze,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,r;return this.isValid()?(t="moment",r="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},i.eraYear=function(){for(var e,t,r=this.localeData().eras(),n=0,i=r.length;n<i;++n)if(e=r[n].since<=r[n].until?1:-1,t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return(this.year()-m(r[n].since).year())*e+r[n].offset;return this.year()},i.year=Ve,i.isLeapYear=function(){return de(this.year())},i.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=$e,i.daysInMonth=function(){return Be(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return k(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},i.date=we,i.day=i.days=function(e){var t,r,n;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(r=e,n=this.localeData(),e="string"!=typeof r?r:isNaN(r)?"number"==typeof(r=n.weekdaysParse(r))?r:null:parseInt(r,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,r;return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=v,i.minute=i.minutes=_e,i.second=i.seconds=Ee,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,r){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:$t(this);if("string"==typeof e){if(null===(e=Ft(Te,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=$t(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?qt(this,B(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract($t(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Ft(Ce,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?N(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Ut,i.isUTC=Ut,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",we),i.months=e("months accessor is deprecated. Use month instead",$e),i.years=e("years accessor is deprecated. Use year instead",Ve),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=kt(t))._a?(e=(t._isUTC?h:N)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<n;s++)(r&&e[s]!==t[s]||!r&&p(e[s])!==p(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dr(e,t,r,n){var i=M(),n=h().set(n,t);return i[r](n,e)}function cr(e,t,r){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return dr(e,t,r,"month");for(var n=[],i=0;i<12;i++)n[i]=dr(e,i,r,"month");return n}function pr(e,t,r,n){t=("boolean"==typeof e||(r=t=e,e=!1),F(t)&&(r=t,t=void 0),t||"");var i,o=M(),s=e?o._week.dow:0,a=[];if(null!=r)return dr(t,(r+s)%7,n,"day");for(i=0;i<7;i++)a[i]=dr(t,(i+s)%7,n,"day");return a}y.calendar=function(e,t,r){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ur,y.postformat=ur,y.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return u(i)?i(e,t,r,n):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)f(e,r)&&(u(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,n=this._eras||M("en")._eras,i=0,o=n.length;i<o;++i)switch("string"==typeof n[i].since&&(r=m(n[i].since).startOf("day"),n[i].since=r.valueOf()),typeof n[i].until){case"undefined":n[i].until=1/0;break;case"string":r=m(n[i].until).startOf("day").valueOf(),n[i].until=r.valueOf()}return n},y.erasParse=function(e,t,r){var n,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(o=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(a===e)return l[n]}else if(0<=[o,s,a].indexOf(e))return l[n]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||or.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||or.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||or.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[He.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var n,i;if(this._monthsParseExact)return function(e,t,r){var n,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=h([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var n,i;if(this._weekdaysParseExact)return function(e,t,r){var n,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=h([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",pt),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",M);var mr=Math.abs;function fr(e,t,r,n){t=B(t,r);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function _r(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function gr(e){return 146097*e/4800}function vr(e){return function(){return this.as(e)}}be=vr("ms"),fe=vr("s"),Ie=vr("m"),ve=vr("h"),ge=vr("d"),Ze=vr("w"),v=vr("M"),_e=vr("Q"),Ee=vr("y");function br(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=br("milliseconds"),we=br("seconds"),Ve=br("minutes"),y=br("hours"),wr=br("days"),Er=br("months"),xr=br("years");var Ar=Math.round,Cr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tr(e,t,r,n){var i=B(e).abs(),o=Ar(i.as("s")),s=Ar(i.as("m")),a=Ar(i.as("h")),l=Ar(i.as("d")),h=Ar(i.as("M")),u=Ar(i.as("w")),i=Ar(i.as("y")),o=(o<=r.ss?["s",o]:o<r.s&&["ss",o])||(s<=1?["m"]:s<r.m&&["mm",s])||(a<=1?["h"]:a<r.h&&["hh",a])||(l<=1?["d"]:l<r.d&&["dd",l]);return(o=(o=null!=r.w?o||(u<=1?["w"]:u<r.w&&["ww",u]):o)||(h<=1?["M"]:h<r.M&&["MM",h])||(i<=1?["y"]:["yy",i]))[2]=t,o[3]=0<+e,o[4]=n,function(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}.apply(null,o)}var Sr=Math.abs;function Pr(e){return(0<e)-(e<0)||+e}function Dr(){var e,t,r,n,i,o,s,a,l,h,u;return this.isValid()?(a=Sr(this._milliseconds)/1e3,l=Sr(this._days),h=Sr(this._months),(u=this.asSeconds())?(e=c(a/60),t=c(e/60),a%=60,e%=60,r=c(h/12),h%=12,n=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Pr(this._months)!==Pr(u)?"-":"",o=Pr(this._days)!==Pr(u)?"-":"",s=Pr(this._milliseconds)!==Pr(u)?"-":"",(u<0?"-":"")+"P"+(r?i+r+"Y":"")+(h?i+h+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+n+"S":"")):"P0D"):this.localeData().invalidDate()}var I=Bt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=mr(this._milliseconds),this._days=mr(this._days),this._months=mr(this._months),e.milliseconds=mr(e.milliseconds),e.seconds=mr(e.seconds),e.minutes=mr(e.minutes),e.hours=mr(e.hours),e.months=mr(e.months),e.years=mr(e.years),this},I.add=function(e,t){return fr(this,e,t,1)},I.subtract=function(e,t){return fr(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(gr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=be,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=ve,I.asDays=ge,I.asWeeks=Ze,I.asMonths=v,I.asQuarters=_e,I.asYears=Ee,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*_r(gr(r)+t),r=t=0),n.milliseconds=e%1e3,e=c(e/1e3),n.seconds=e%60,e=c(e/60),n.minutes=e%60,e=c(e/60),n.hours=e%24,t+=c(e/24),r+=e=c(yr(t)),t-=_r(gr(e)),e=c(r/12),r%=12,n.days=t,n.months=r,n.years=e,this},I.clone=function(){return B(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=we,I.minutes=Ve,I.hours=y,I.days=wr,I.weeks=function(){return c(this.days()/7)},I.months=Er,I.years=xr,I.humanize=function(e,t){var r,n;return this.isValid()?(r=!1,n=Cr,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(n=Object.assign({},Cr,t),null!=t.s)&&null==t.ss&&(n.ss=t.s-1),t=Tr(this,!r,n,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=Dr,I.toString=Dr,I.toJSON=Dr,I.locale=Jt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dr),I.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),b("x",Ae),b("X",/[+-]?\d+(\.\d{1,3})?/),E("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),E("x",function(e,t,r){r._d=new Date(p(e))}),m.version="2.29.4",L=N,m.fn=i,m.min=function(){return Mt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Mt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(e){return N(1e3*e)},m.months=function(e,t){return cr(e,t,"months")},m.isDate=Y,m.locale=pt,m.invalid=V,m.duration=B,m.isMoment=l,m.weekdays=function(e,t,r){return pr(e,t,r,"weekdays")},m.parseZone=function(){return N.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=It,m.monthsShort=function(e,t){return cr(e,t,"monthsShort")},m.weekdaysMin=function(e,t,r){return pr(e,t,r,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var r,n;return null!=t?(n=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(n=null!=(r=ct(e))?r._config:n,t),null==r&&(t.abbr=e),(n=new ee(t)).parentLocale=O[e],O[e]=n),pt(e)):null!=O[e]&&(null!=O[e].parentLocale?(O[e]=O[e].parentLocale,e===pt()&&pt(e)):null!=O[e]&&delete O[e]),O[e]},m.locales=function(){return te(O)},m.weekdaysShort=function(e,t,r){return pr(e,t,r,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?Ar:"function"==typeof e&&(Ar=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Cr[e]&&(void 0===t?Cr[e]:(Cr[e]=t,"s"===e&&(Cr.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Ln,Hn,Rn=Ln.exports;function Fn(e,t){Qr(e,t)}const Yn={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},hr:{date:"Odobreni datum:",bonusName:"Ime bonusa",bonusType:"Vrsta bonusa",bonusAmount:"Iznos bonusa",wageringAmount:"Potrebno odigrati",remainingBonus:"Trenutno stanje bonusa",forfeitBonus:"Otkaži bonus",active:"aktivan",released:"razriješen",expired:"Istekao",forfeited:"otkazan"},"pt-br":{date:"Data concedida:",bonusName:"Nome do bônus:",bonusType:"Tipo de bônus:",bonusAmount:"Valor do bônus:",wageringAmount:"Progresso da Quantidade de Apostas (Rollover)",remainingBonus:"Saldo atual de bônus:",forfeitBonus:"Recusar bônus",active:"Ativo",released:"Lançado",expired:"Expirado",forfeited:"Perdido"},"es-mx":{date:"Fecha concedida:",bonusName:"Nombre de bono:",bonusType:"Tipo de Bono:",bonusAmount:"valor de Bono:",wageringAmount:"Progreso de monto de apuestas (Rollover)",remainingBonus:"Saldo de bono actual:",forfeitBonus:"Declinar bono",active:"Activo",released:"Liberado",expired:"Expirado",forfeited:"Perdido"},tr:{date:"Verilen tarih:",bonusName:"Bonus Adı",bonusType:"Bonus Türü",bonusAmount:"Bonus Tutarı",wageringAmount:"Bahis İlerlemesi (Rollover)",remainingBonus:"Mevcut Bonus Bakiyesi",forfeitBonus:"Fesih Bonusu",active:"aktif",released:"piyasaya sürülmüş",expired:"günü geçmiş",forfeited:"kaybedilen"}};function $n(e){let r,n,i,o,s,a,l,h,u=e[9]("bonusAmount")+"";return{c(){r=t("div"),n=t("p"),i=W(u),o=G(),s=t("p"),a=W(e[3]),l=G(),h=W(e[6]),q(n,"class","BonusCardRowTitle"),q(s,"class","BonusCardRowText"),q(r,"class","BonusCardRow")},m(e,t){V(e,r,t),z(r,n),z(n,i),z(r,o),z(r,s),z(s,a),z(s,l),z(s,h)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&K(i,u),8&t&&K(a,e[3]),64&t&&K(h,e[6])},d(e){e&&j(r)}}}function Un(e){let r,n,i,o,s,a,l,h,u=e[9]("wageringAmount")+"";return{c(){r=t("div"),n=t("p"),i=W(u),o=G(),s=t("p"),a=W(e[4]),l=G(),h=W(e[6]),q(n,"class","BonusCardRowTitle"),q(s,"class","BonusCardRowText"),q(r,"class","BonusCardRow")},m(e,t){V(e,r,t),z(r,n),z(n,i),z(r,o),z(r,s),z(s,a),z(s,l),z(s,h)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&K(i,u),16&t&&K(a,e[4]),64&t&&K(h,e[6])},d(e){e&&j(r)}}}function zn(e){let r,n,i,o,s,a,l,h,u=e[9]("remainingBonus")+"";return{c(){r=t("div"),n=t("p"),i=W(u),o=G(),s=t("p"),a=W(e[5]),l=G(),h=W(e[6]),q(n,"class","BonusCardRowTitle"),q(s,"class","BonusCardRowText"),q(r,"class","BonusCardRow")},m(e,t){V(e,r,t),z(r,n),z(n,i),z(r,o),z(r,s),z(s,a),z(s,l),z(s,h)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&K(i,u),32&t&&K(a,e[5]),64&t&&K(h,e[6])},d(e){e&&j(r)}}}function Vn(r){let n,i,o,s,a=r[9]("forfeitBonus")+"";return{c(){n=t("button"),i=W(a),q(n,"class","DeleteBonus "+(r[10]?"DeleteBonusMobile":""))},m(e,t){V(e,n,t),z(n,i),o||(s=Y(n,"click",r[11]),o=!0)},p(e,t){512&t&&a!==(a=e[9]("forfeitBonus")+"")&&K(i,a)},d(e){e&&j(n),o=!1,s()}}}function jn(r){let n,i,o,s,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,R,E,x,A,F,C,T,Y,S,P,$,D=r[9]("date")+"",k=Rn(r[0]).format("DD/MM/YYYY h:mm A")+"",O=r[9](""+r[1])+"",M=r[9]("bonusName")+"",N=r[9]("bonusType")+"",B=r[3]&&$n(r),I=r[4]&&Un(r),L=r[5]&&zn(r),H="active"===r[1]&&Vn(r);return{c(){n=t("div"),i=t("div"),o=t("div"),s=t("p"),a=W(D),l=G(),h=t("span"),u=W(k),d=G(),c=t("p"),p=W(O),f=G(),_=t("div"),y=t("p"),g=W(M),v=G(),b=t("p"),w=W(r[2]),R=G(),E=t("div"),x=t("p"),A=W(N),F=G(),C=t("p"),T=W(r[8]),Y=G(),B&&B.c(),S=G(),I&&I.c(),P=G(),L&&L.c(),$=G(),H&&H.c(),this.c=U,q(s,"class","BonusCardRowTitle"),q(c,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===r[1]||"released"===r[1]?"StatusActive":"")+" "+("expired"===r[1]?"StatusExpired":"")+" "+("forfeited"===r[1]?"StatusForfeited":"")),q(o,"class","BonusCardRow"),q(y,"class","BonusCardRowTitle"),q(b,"class","BonusCardRowText"),q(_,"class","BonusCardRow"),q(x,"class","BonusCardRowTitle"),q(C,"class","BonusCardRowText TextCapitalize"),q(E,"class","BonusCardRow"),q(i,"class","BonusCardInfo"),q(n,"class","BonusCard")},m(e,t){V(e,n,t),z(n,i),z(i,o),z(o,s),z(s,a),z(s,l),z(s,h),z(h,u),z(o,d),z(o,c),z(c,p),z(i,f),z(i,_),z(_,y),z(y,g),z(_,v),z(_,b),z(b,w),z(i,R),z(i,E),z(E,x),z(x,A),z(E,F),z(E,C),z(C,T),z(i,Y),B&&B.m(i,null),z(i,S),I&&I.m(i,null),z(i,P),L&&L.m(i,null),z(n,$),H&&H.m(n,null),r[18](n)},p(e,[t]){512&t&&D!==(D=e[9]("date")+"")&&K(a,D),1&t&&k!==(k=Rn(e[0]).format("DD/MM/YYYY h:mm A")+"")&&K(u,k),514&t&&O!==(O=e[9](""+e[1])+"")&&K(p,O),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&q(c,"class",m),512&t&&M!==(M=e[9]("bonusName")+"")&&K(g,M),4&t&&K(w,e[2]),512&t&&N!==(N=e[9]("bonusType")+"")&&K(A,N),256&t&&K(T,e[8]),e[3]?B?B.p(e,t):((B=$n(e)).c(),B.m(i,S)):B&&(B.d(1),B=null),e[4]?I?I.p(e,t):((I=Un(e)).c(),I.m(i,P)):I&&(I.d(1),I=null),e[5]?L?L.p(e,t):((L=zn(e)).c(),L.m(i,null)):L&&(L.d(1),L=null),"active"===e[1]?H?H.p(e,t):((H=Vn(e)).c(),H.m(n,null)):H&&(H.d(1),H=null)},i:U,o:U,d(e){e&&j(n),B&&B.d(),I&&I.d(),L&&L.d(),H&&H.d(),r[18](null)}}}function Wn(t,e,r){let n;N(t,Bn,e=>r(9,n=e));let i,{bonuswalletid:o=""}=e,{bonusdate:s=""}=e,{bonusstatus:a=""}=e,{bonusname:l=""}=e,{bonustype:h=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:c=""}=e,{bonuscurrency:p=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:y=""}=e,g=window.navigator.userAgent,v="PC"!==In(g),b="";Object.keys(Yn).forEach(e=>{Fn(e,Yn[e])});return t.$$set=e=>{"bonuswalletid"in e&&r(12,o=e.bonuswalletid),"bonusdate"in e&&r(0,s=e.bonusdate),"bonusstatus"in e&&r(1,a=e.bonusstatus),"bonusname"in e&&r(2,l=e.bonusname),"bonustype"in e&&r(13,h=e.bonustype),"bonusamount"in e&&r(3,u=e.bonusamount),"bonuswageringamount"in e&&r(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&r(5,c=e.bonusremainingamount),"bonuscurrency"in e&&r(6,p=e.bonuscurrency),"lang"in e&&r(14,m=e.lang),"clientstyling"in e&&r(15,f=e.clientstyling),"clientstylingurl"in e&&r(16,_=e.clientstylingurl),"translationurl"in e&&r(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,bn.set(e)),8192&t.$$.dirty&&h&&(r(8,b=h),"freeRound"===b?r(8,b="Free Spins"):"freeBet"===b&&r(8,b="Free Bet")),65664&t.$$.dirty&&_&&i){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fn(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,l,u,d,c,p,i,b,n,v,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:o},window.location.href)},o,h,m,f,_,y,function(e){Z[e?"unshift":"push"](()=>{i=e,r(7,i)})}]}function Gn(e){var t,r=customElements.get(e.is);r?(t=r.version)&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${r.version} is already in use. Something will probably break.`):customElements.define(e.is,e)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}",this.shadowRoot.appendChild(t),se(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Wn,jn,O,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&V(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),c()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),c()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),c()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),c()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),c()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),c()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),c()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),c()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),c()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),c()}});class qn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}Gn(qn);const Kn=window,Xn=Kn.ShadowRoot&&(void 0===Kn.ShadyCSS||Kn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zn=Symbol(),Jn=new WeakMap;class Qn{constructor(e,t,r){if(this._$cssResult$=!0,r!==Zn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,r=this.t;return Xn&&void 0===e&&(t=void 0!==r&&1===r.length,void 0===(e=t?Jn.get(r):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Jn.set(r,e),e}toString(){return this.cssText}}const m=(n,...e)=>{e=1===n.length?n[0]:e.reduce((e,t,r)=>e+(()=>{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[r+1],n[0]);return new Qn(e,n,Zn)},ei=Xn?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const r of t.cssRules)e+=r.cssText;return t=e,new Qn("string"==typeof t?t:t+"",void 0,Zn)}},ti=window,ri=ti.trustedTypes,ni=ri?ri.emptyScript:"",ii=ti.reactiveElementPolyfillSupport,oi={toAttribute(e,t){switch(t){case Boolean:e=e?ni:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},si=(e,t)=>t!==e&&(t==t||e==e),ai={attribute:!0,type:String,converter:oi,reflect:!1,hasChanged:si},li="finalized";class hi extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const r=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),r.push(e))}),r}static createProperty(e,t=ai){var r;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(r="symbol"==typeof e?Symbol():"__"+e,void 0!==(r=this.getPropertyDescriptor(e,r,t))&&Object.defineProperty(this.prototype,e,r))}static getPropertyDescriptor(r,n,i){return{get(){return this[n]},set(e){var t=this[r];this[n]=e,this.requestUpdate(r,t,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ai}static finalize(){if(this.hasOwnProperty(li))return!1;this[li]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(ei(e))}else void 0!==e&&t.push(ei(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var n,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return n=t,e=this.constructor.elementStyles,Xn?n.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),r=Kn.litNonce;void 0!==r&&t.setAttribute("nonce",r),t.textContent=e.cssText,n.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=ai){var n,i=this.constructor._$Ep(e,r);void 0!==i&&!0===r.reflect&&(n=(void 0!==(null==(n=r.converter)?void 0:n.toAttribute)?r.converter:oi).toAttribute(t,r.type),this._$El=e,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$El=null)}_$AK(e,t){var r=this.constructor,n=r._$Ev.get(e);if(void 0!==n&&this._$El!==n){const e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(r=e.converter)?void 0:r.fromAttribute)?e.converter:oi;this._$El=n,this[n]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let n=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||si)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var r=this._$AL;try{(e=this.shouldUpdate(r))?(this.willUpdate(r),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}hi[li]=!0,hi.elementProperties=new Map,hi.elementStyles=[],hi.shadowRootOptions={mode:"open"},null!=ii&&ii({ReactiveElement:hi}),(null!=(a=ti.reactiveElementVersions)?a:ti.reactiveElementVersions=[]).push("1.6.3");const ui=window,di=ui.trustedTypes,ci=di?di.createPolicy("lit-html",{createHTML:e=>e}):void 0,pi="$lit$",mi=`lit$${(Math.random()+"").slice(9)}$`,fi="?"+mi,_i=`<${fi}>`,yi=document,gi=()=>yi.createComment(""),vi=e=>null===e||"object"!=typeof e&&"function"!=typeof e,bi=Array.isArray,wi="[ \t\n\f\r]",Ei=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xi=/-->/g,Ai=/>/g,Ci=RegExp(`>|${wi}(?:([^\\s"'>=/]+)(${wi}*=${wi}*(?:[^
|
2
|
+
\r"'\`<>=]|("|')|))|$)`,"g"),Ti=/'/g,Si=/"/g,Pi=/^(?:script|style|textarea|title)$/i,Di=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),ki=new WeakMap,Oi=yi.createTreeWalker(yi,129,null,!1);function Mi(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==ci?ci.createHTML(t):t;throw Error("invalid template strings array")}class Ni{constructor({strings:t,_$litType$:r},e){var n;this.parts=[];let i=0,o=0;var s=t.length-1,a=this.parts,[t,l]=((o,e)=>{const s=o.length-1,a=[];let l,h=2===e?"<svg>":"",u=Ei;for(let i=0;i<s;i++){const s=o[i];let e,t,r=-1,n=0;for(;n<s.length&&(u.lastIndex=n,null!==(t=u.exec(s)));)n=u.lastIndex,u===Ei?"!--"===t[1]?u=xi:void 0!==t[1]?u=Ai:void 0!==t[2]?(Pi.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=Ci):void 0!==t[3]&&(u=Ci):u===Ci?">"===t[0]?(u=null!=l?l:Ei,r=-1):void 0===t[1]?r=-2:(r=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?Ci:'"'===t[3]?Si:Ti):u===Si||u===Ti?u=Ci:u===xi||u===Ai?u=Ei:(u=Ci,l=void 0);var d=u===Ci&&o[i+1].startsWith("/>")?" ":"";h+=u===Ei?s+_i:0<=r?(a.push(e),s.slice(0,r)+pi+s.slice(r)+mi+d):s+mi+(-2===r?(a.push(void 0),i):d)}return[Mi(o,h+(o[s]||"<?>")+(2===e?"</svg>":"")),a]})(t,r);if(this.el=Ni.createElement(t,e),Oi.currentNode=this.el.content,2===r){const t=this.el.content,r=t.firstChild;r.remove(),t.append(...r.childNodes)}for(;null!==(n=Oi.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const r of n.getAttributeNames())if(r.endsWith(pi)||r.startsWith(mi)){const e=l[o++];if(t.push(r),void 0!==e){const t=n.getAttribute(e.toLowerCase()+pi).split(mi),r=/([.?@])?(.*)/.exec(e);a.push({type:1,index:i,name:r[2],strings:t,ctor:"."===r[1]?Ri:"?"===r[1]?Yi:"@"===r[1]?$i:Hi})}else a.push({type:6,index:i})}for(const r of t)n.removeAttribute(r)}if(Pi.test(n.tagName)){const t=n.textContent.split(mi),r=t.length-1;if(0<r){n.textContent=di?di.emptyScript:"";for(let e=0;e<r;e++)n.append(t[e],gi()),Oi.nextNode(),a.push({type:2,index:++i});n.append(t[r],gi())}}}else if(8===n.nodeType)if(n.data===fi)a.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(mi,e+1));)a.push({type:7,index:i}),e+=mi.length-1}i++}}static createElement(e,t){var r=yi.createElement("template");return r.innerHTML=e,r}}function Bi(t,r,n=t,i){var o;if(r!==Di){let e=void 0!==i?null==(s=n._$Co)?void 0:s[i]:n._$Cl;var s=vi(r)?void 0:r._$litDirective$;(null==e?void 0:e.constructor)!==s&&(null!=(o=null==e?void 0:e._$AO)&&o.call(e,!1),void 0===s?e=void 0:(e=new s(t))._$AT(t,n,i),void 0!==i?(null!=(o=n._$Co)?o:n._$Co=[])[i]=e:n._$Cl=e),void 0!==e&&(r=Bi(t,e._$AS(t,r.values),e,i))}return r}class Ii{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var{el:{content:e},parts:r}=this._$AD,n=(null!=(n=null==t?void 0:t.creationScope)?n:yi).importNode(e,!0);Oi.currentNode=n;let i=Oi.nextNode(),o=0,s=0,a=r[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new Li(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new Ui(i,this,t)),this._$AV.push(e),a=r[++s]}o!==(null==a?void 0:a.index)&&(i=Oi.nextNode(),o++)}return Oi.currentNode=yi,n}v(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Li{constructor(e,t,r,n){this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cp=null==(e=null==n?void 0:n.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Bi(this,e,t),vi(e)?e===b||null==e||""===e?(this._$AH!==b&&this._$AR(),this._$AH=b):e!==this._$AH&&e!==Di&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,bi(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==b&&vi(this._$AH)?this._$AA.nextSibling.data=e:this.$(yi.createTextNode(e)),this._$AH=e}g(e){var t,{values:r,_$litType$:n}=e,n="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Ni.createElement(Mi(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===n)this._$AH.v(r);else{const e=new Ii(n,this),t=e.u(this.options);e.v(r),this.$(t),this._$AH=e}}_$AC(e){let t=ki.get(e.strings);return void 0===t&&ki.set(e.strings,t=new Ni(e)),t}T(e){bi(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let r,n=0;for(const i of e)n===t.length?t.push(r=new Li(this.k(gi()),this.k(gi()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for(null!=(r=this._$AP)&&r.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class Hi{constructor(e,t,r,n,i){this.type=1,this._$AH=b,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,2<r.length||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(r,n=this,i,o){var s=this.strings;let a=!1;if(void 0===s)r=Bi(this,r,n,0),(a=!vi(r)||r!==this._$AH&&r!==Di)&&(this._$AH=r);else{const o=r;let e,t;for(r=s[0],e=0;e<s.length-1;e++)(t=Bi(this,o[i+e],n,e))===Di&&(t=this._$AH[e]),a=a||!vi(t)||t!==this._$AH[e],t===b?r=b:r!==b&&(r+=(null!=t?t:"")+s[e+1]),this._$AH[e]=t}a&&!o&&this.j(r)}j(e){e===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Ri extends Hi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===b?void 0:e}}const Fi=di?di.emptyScript:"";class Yi extends Hi{constructor(){super(...arguments),this.type=4}j(e){e&&e!==b?this.element.setAttribute(this.name,Fi):this.element.removeAttribute(this.name)}}class $i extends Hi{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){var r,n;(e=null!=(t=Bi(this,e,t,0))?t:b)!==Di&&(t=this._$AH,r=e===b&&t!==b||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,n=e!==b&&(t===b||r),r&&this.element.removeEventListener(this.name,this,t),n&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class Ui{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Bi(this,e)}}sr=ui.litHtmlPolyfillSupport;null!=sr&&sr(Ni,Li),(null!=(u=ui.litHtmlVersions)?u:ui.litHtmlVersions=[]).push("2.8.0");class zi extends hi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{var n,i=null!=(i=null==r?void 0:r.renderBefore)?i:t;let o=i._$litPart$;if(void 0===o){const e=null!=(n=null==r?void 0:r.renderBefore)?n:null;i._$litPart$=o=new Li(t.insertBefore(gi(),e),e,void 0,null!=r?r:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return Di}}zi.finalized=!0,zi._$litElement$=!0,null!=(e=globalThis.litElementHydrateSupport)&&e.call(globalThis,{LitElement:zi});o=globalThis.litElementPolyfillSupport;null!=o&&o({LitElement:zi}),(null!=(s=globalThis.litElementVersions)?s:globalThis.litElementVersions=[]).push("3.3.3");const Vi=[];function ji(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function w(e,t,r={}){var n;e&&ji(customElements.get(e))&&console.warn(`The custom element definition for "${e}"
|
3
3
|
was finalized before a style module was registered.
|
4
4
|
Make sure to add component specific style modules before
|
5
5
|
importing the corresponding custom element.`),[n=[]]=[t],t=[n].flat(1/0).filter(e=>e instanceof Qn||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):Vi.push({themeFor:e,styles:t,include:r.include,moduleId:r.moduleId})}function Wi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Vi}function Gi(r){const n=r+"-default-theme",e=Wi().filter(e=>{return e.moduleId!==n&&(e=e.themeFor,t=r,(e||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)));var t}).map(e=>({...e,styles:[...function r(e){const n=[];return e.include&&[].concat(e.include).forEach(t=>{var e=Wi().find(e=>e.moduleId===t);e?n.push(...r(e),...e.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),n}(e),...e.styles],includePriority:function(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}(e.moduleId)})).sort((e,t)=>t.includePriority-e.includePriority);return 0<e.length?e:Wi().filter(e=>e.moduleId===n)}or=e=>{return class extends(e=e,class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),"theme"===e&&this._set_theme(r)}}){static finalize(){var e,t,r;super.finalize(),this.elementStyles||(t=this.prototype._template)&&!ji(this)&&(e=this.getStylesForThis(),t=t,(r=document.createElement("style")).innerHTML=e.map(e=>e.cssText).join("\n"),t.content.appendChild(r))}static finalizeStyles(e){var t=this.getStylesForThis();return e?[...super.finalizeStyles(e),...t]:t}static getStylesForThis(){var e=Object.getPrototypeOf(this.prototype),e=(e?e.constructor.__themes:[])||[];this.__themes=[...e,...Gi(this.is)];const r=this.__themes.flatMap(e=>e.styles);return r.filter((e,t)=>t===r.lastIndexOf(e))}}},a=(e,...t)=>{var r;e="lumo-"+e,t=[t],(r=document.createElement("style")).id=e,r.textContent=t.map(e=>e.toString()).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},a("color-props",m`
|
@@ -519,7 +519,7 @@
|
|
519
519
|
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
520
520
|
}
|
521
521
|
}
|
522
|
-
`,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let qi,E,Ki=/(url\()([^)]*)(\))/g,Xi=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Zi(e,t){if(e&&Xi.test(e))return e;if("//"===e)return e;if(void 0===qi){qi=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",qi="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,qi)try{return new URL(e,t).href}catch(t){return e}return E||((E=document.implementation.createHTMLDocument("temp")).base=E.createElement("base"),E.head.appendChild(E.base),E.anchor=E.createElement("a"),E.body.appendChild(E.anchor)),E.base.href=t,E.anchor.href=e,E.anchor.href||e}function Ji(e,i){return e.replace(Ki,function(e,t,r,n){return t+"'"+Zi(r.replace(/["']/g,""),i)+"'"+n})}function Qi(e){return e.substring(0,e.lastIndexOf("/")+1)}const eo=!window.ShadyDOM||!window.ShadyDOM.inUse,to=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),eo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let ro=window.Polymer&&window.Polymer.rootPath||Qi(document.baseURI||window.location.href),no=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,io=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),oo=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,so=window.Polymer&&window.Polymer.legacyOptimizations||!1,ao=window.Polymer&&window.Polymer.legacyWarnings||!1,lo=window.Polymer&&window.Polymer.syncInitialRender||!1,ho=window.Polymer&&window.Polymer.legacyUndefined||!1,uo=window.Polymer&&window.Polymer.orderedComputed||!1,co=window.Polymer&&window.Polymer.removeNestedTemplates||!1,po=window.Polymer&&window.Polymer.fastDomIf||!1,mo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,fo=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),_o=0;function x(i){let o=i.__mixinApplications,s=(o||(o=new WeakMap,i.__mixinApplications=o),_o++);return function(e){var t=e.__mixinSet;if(t&&t[s])return e;let r=o,n=r.get(e);return n||(n=i(e),r.set(e,n),(e=Object.create(n.__mixinSet||t||null))[s]=!0,n.__mixinSet=e),n}}let yo={},go={};function vo(e,t){yo[e]=go[e.toLowerCase()]=t}function bo(e){return yo[e]||go[e.toLowerCase()]}class wo extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=bo(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,r,n){t!==r&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Zi(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Qi(e)),this.__assetpath}register(e){if(e=e||this.id){if(io&&void 0!==bo(e))throw vo(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);vo(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}wo.prototype.modules=yo,customElements.define("dom-module",wo);const Eo="link[rel=import][type~=css]",xo="include",Ao="shady-unscoped";function Co(e){return wo.import(e)}function To(e){var e=Ji((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function So(e){var t=e.trim().split(/\s+/),r=[];for(let e=0;e<t.length;e++)r.push(...function(e){var t=Co(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Do(t));var r=t.querySelector("template");r&&e.push(...Po(r,t.assetpath)),t._styles=e}return t._styles}(t[e]));return r}function Po(e,t){if(!e._styles){var r=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var i=n[e],o=i.getAttribute(xo);o&&r.push(...So(o).filter(function(e,t,r){return r.indexOf(e)===t})),t&&(i.textContent=Ji(i.textContent,t)),r.push(i)}e._styles=r}return e._styles}function Do(t){const r=[],n=t.querySelectorAll(Eo);for(let e=0;e<n.length;e++){var i=n[e];if(i.import){const t=i.import,n=i.hasAttribute(Ao);if(n&&!t._unscopedStyle){const r=To(t);r.setAttribute(Ao,""),t._unscopedStyle=r}else t._style||(t._style=To(t));r.push(n?t._unscopedStyle:t._style)}}return r}const A=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function ko(e){return 0<=e.indexOf(".")}function Oo(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Mo(e,t){return 0===e.indexOf(t+".")}function No(e,t){return 0===t.indexOf(e+".")}function Io(e,t,r){return t+r.slice(e.length)}function Bo(t){if(Array.isArray(t)){var r=[];for(let e=0;e<t.length;e++){var n=t[e].toString().split(".");for(let e=0;e<n.length;e++)r.push(n[e])}return r.join(".")}return t}function Lo(e){return(Array.isArray(e)?Bo(e):e.toString()).split(".")}function C(e,t,r){let n=e,i=Lo(t);for(let e=0;e<i.length;e++){if(!n)return;n=n[i[e]]}return r&&(r.path=i.join(".")),n}function Ho(e,t,r){let n=e,i=Lo(t),o=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(!(n=n[i[e]]))return;n[o]=r}else n[t]=r;return i.join(".")}const Ro={},Fo=/-[a-z]/g,Yo=/([A-Z])/g;function $o(e){return Ro[e]||(Ro[e]=e.indexOf("-")<0?e:e.replace(Fo,e=>e[1].toUpperCase()))}function Uo(e){return Ro[e]||(Ro[e]=e.replace(Yo,"-$1").toLowerCase())}let zo=0,Vo=0,jo=[],Wo=0,Go=!1,qo=document.createTextNode("");new window.MutationObserver(function(){Go=!1;var t=jo.length;for(let e=0;e<t;e++){var r=jo[e];if(r)try{r()}catch(t){setTimeout(()=>{throw t})}}jo.splice(0,t),Vo+=t}).observe(qo,{characterData:!0});const Ko={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Xo={run:e=>(Go||(Go=!0,qo.textContent=Wo++),jo.push(e),zo++),cancel(e){var t=e-Vo;if(0<=t){if(!jo[t])throw new Error("invalid async handle: "+e);jo[t]=null}}},Zo=Xo,Jo=x(e=>class extends e{static createProperties(e){var t,r=this.prototype;for(t in e)t in r||r._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,r){var n=this.__data[e],i=this._shouldPropertyChange(e,t,n);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=n),this.__data[e]=t,this.__dataPending[e]=t),i}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Zo.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;var e=this.__data,t=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(e,t,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,r)),this.__dataCounter--}_shouldPropertiesChange(e,t,r){return Boolean(t)}_propertiesChanged(e,t,r){}_shouldPropertyChange(e,t,r){return r!==t&&(r==r||t==t)}attributeChangedCallback(e,t,r,n){t!==r&&this._attributeToProperty(e,r),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,r,n)}_attributeToProperty(e,t,r){var n;this.__serializing||(this[n=(n=this.__dataAttributes)&&n[e]||e]=this._deserializeValue(t,r||this.constructor.typeForProperty(n)))}_propertyToAttribute(e,t,r){this.__serializing=!0,r=arguments.length<3?this[e]:r,this._valueToNodeAttribute(this,r,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,r){t=this._serializeValue(t);"class"!==r&&"name"!==r&&"slot"!==r||(e=A(e)),void 0===t?e.removeAttribute(r):e.setAttribute(r,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Qo={};let es=HTMLElement.prototype;for(;es;){var ts=Object.getOwnPropertyNames(es);for(let e=0;e<ts.length;e++)Qo[ts[e]]=!0;es=Object.getPrototypeOf(es)}const rs=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,ns=x(e=>{return class extends Jo(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor($o(t[e]))}static attributeNameForProperty(e){return Uo(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(rs(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let r;switch(t){case Object:try{r=JSON.parse(e)}catch(t){r=e}break;case Array:try{r=JSON.parse(e)}catch(t){r=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:r=(isNaN(e)?String:Number)(e),r=new Date(r);break;default:r=super._deserializeValue(e,t)}return r}_definePropertyAccessor(e,t){var r,n,i;r=this,n=e,Qo[n]||void 0!==(i=r[n])&&(r.__data?r._setPendingProperty(n,i):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[n]=i)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),is={"dom-if":!0,"dom-repeat":!0};let os=!1,ss=!1;const as=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{t=t.getAttribute(r);n&&r.startsWith("on-")?e.setAttribute(r,n.createScript(t,r)):e.setAttribute(r,t)}})();const ls=x(e=>class extends e{static _parseTemplate(e,t){var r;return e._templateInfo||((r=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),r.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,r,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,r){return this._parseTemplateNode(e.content,t,r)}static _parseTemplateNode(e,t,r){let n=!1,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(i,t,r)||n,e=i,os||(os=!0,(o=document.createElement("textarea")).placeholder="a",ss=o.placeholder===o.textContent),ss&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,r),(n=i.hasAttributes&&i.hasAttributes()?this._parseTemplateNodeAttributes(i,t,r)||n:n)||r.noted;var o}static _parseTemplateChildNodes(n,i,o){if("script"!==n.localName&&"style"!==n.localName)for(let t,r=n.firstChild,e=0;r;r=t){if("template"==r.localName&&(r=function(e){let t=e.getAttribute("is");if(t&&is[t]){var r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const t=r.attributes[0]["name"];as(e,r,t),r.removeAttribute(t)}}return e}(r)),t=r.nextSibling,r.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)r.textContent+=e.textContent,t=e.nextSibling,n.removeChild(e),e=t;if(i.stripWhiteSpace&&!r.textContent.trim()){n.removeChild(r);continue}}var s={parentIndex:e,parentInfo:o};this._parseTemplateNode(r,i,s)&&(s.infoIndex=i.nodeInfoList.push(s)-1),r.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,r){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),r.templateInfo=t,!0}static _parseTemplateNodeAttributes(r,n,i){let o=!1,s=Array.from(r.attributes);for(let e,t=s.length-1;e=s[t];t--)o=this._parseTemplateNodeAttribute(r,n,i,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,r,n,i){return"on-"===n.slice(0,3)?(e.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:i}),!0):"id"===n&&(r.id=i,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,n){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var i,o,s=(n=n||this.constructor._parseTemplate(e)).nodeInfoList,e=n.content||e.content,a=document.importNode(e,!0),l=(a.__noInsertionPoint=!n.hasInsertionPoint,a.nodeList=new Array(s.length));a.$={};for(let e,t=0,r=s.length;t<r&&(e=s[t]);t++){var h=l[t]=function e(t,r){var n=r.parentInfo&&e(t,r.parentInfo);if(!n)return t;for(let e=n.firstChild,t=0;e;e=e.nextSibling)if(r.parentIndex===t++)return e}(a,e),u=(i=a.$,o=h,(c=e).id&&(i[c.id]=o),i=h,c=e,o=n,c.templateInfo&&(i._templateInfo=c.templateInfo,i._parentTemplateInfo=o),c=d=u=void 0,this),d=h,c=e;if(c.events&&c.events.length)for(let e,t=0,r=c.events;t<r.length&&(e=r[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return a}_addMethodEventListenerToNode(e,t,r,n){function i(e){o[s]?o[s](e,e.detail):console.warn("listener method `"+s+"` not defined")}var o,s;o=n=n||e,s=r,o=o._methodHost||o;return this._addEventListenerToNode(e,t,i),i}_addEventListenerToNode(e,t,r){e.addEventListener(t,r)}_removeEventListenerFromNode(e,t,r){e.removeEventListener(t,r)}});let hs=0;const us=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ds="__computeInfo",cs=/[A-Z]/;function ps(e,t,r){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),r))for(var i in n){var o=n[i],s=n[i]=Array(o.length);for(let e=0;e<o.length;e++)s[e]=o[e]}}else n=e[t]={};return n}function ms(i,e,o,s,a,l){if(e){let n=!1;var h,u=hs++;for(h in o){var d=e[a?Oo(h):h];if(d)for(let e,t=0,r=d.length;t<r&&(e=d[t]);t++)e.info&&e.info.lastRun===u||a&&!fs(h,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(i,h,o,s,e.info,a,l),n=!0)}return n}}function fs(e,t){var r;return!t||(r=t.name)==e||t.structured&&Mo(r,e)||t.wildcard&&No(r,e)}function _s(e,t,r,n,i){var o="string"==typeof i.method?e[i.method]:i.method,s=i.property;o?o.call(e,e.__data[s],n[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function ys(e,t,r,n){r={value:r,queueProperty:!0};n&&(r.path=n),A(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function gs(e,t,r,n,i,o){let s=(o?Oo(t):t)!=t?t:null,a=s?C(e,s):e.__data[t];s&&void 0===a&&(a=r[t]),ys(e,i.eventName,a,s)}function vs(e,t,r,n,i){let o=e.__data[t];no&&(o=no(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}const bs=(e,t,r)=>{let n=0,i=t.length-1,o=-1;for(;n<=i;){var s=n+i>>1,a=r.get(t[s].methodInfo)-r.get(e.methodInfo);if(a<0)n=1+s;else{if(!(0<a)){o=s;break}i=s-1}}o<0&&(o=i+1),t.splice(o,0,e)},ws=(t,e,r,n,i)=>{var o=e[i?Oo(t):t];if(o)for(let e=0;e<o.length;e++){var s=o[e];s.info.lastRun===hs||i&&!fs(t,s.trigger)||(s.info.lastRun=hs,bs(s.info,r,n))}};function Es(e,t,r,n,i){t=Ss(e,t,r,0,i);return t!==us&&(r=i.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[r]?e._setPendingProperty(r,t,!0):(e[r]=t,!1))}function xs(t,r,e,n,i,o,s){e.bindings=e.bindings||[];var a={kind:n,target:i,parts:o,literal:s,isCompound:1!==o.length},l=(e.bindings.push(a),n=a,Boolean(n.target)&&"attribute"!=n.kind&&"text"!=n.kind&&!n.isCompound&&"{"===n.parts[0].mode&&({event:s,negate:o}=a.parts[0],a.listenerEvent=s||Uo(i)+"-changed",a.listenerNegate=o),r.nodeInfoList.length);for(let e=0;e<a.parts.length;e++){var h=a.parts[e],u=(h.compoundIndex=e,_=f=m=p=c=d=u=void 0,t),d=r,c=a,p=h,m=l;if(!p.literal)if("attribute"===c.kind&&"-"===c.target[0])console.warn("Cannot set attribute "+c.target+' because "-" is not a valid attribute starting character');else{var f=p.dependencies,_={index:m,binding:c,part:p,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Is(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:As,info:_,trigger:e})}}}}function As(e,t,r,n,i,o,s){var a,s=s[i.index],l=i.binding,h=i.part;o&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]?(a=r[t],t=Io(h.source,l.target,t),s._setPendingPropertyOrPath(t,a,!1,!0)&&e._enqueueClient(s)):(a=i.evaluator._evaluateBinding(e,h,t,r,n,o))!==us&&(i=e,t=h,n=r=s,e=o=a,(s=h=l).isCompound&&((l=n.__dataCompoundStorage[s.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==s.kind&&("textContent"===s.target||"value"===s.target&&("input"===n.localName||"textarea"===n.localName))&&null==e?"":e,no&&(o=no(o,h.target,h.kind,r)),"attribute"==h.kind?i._valueToNodeAttribute(r,o,h.target):(t=h.target,r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[t]?r[T.READ_ONLY]&&r[T.READ_ONLY][t]||r._setPendingProperty(t,o)&&i._enqueueClient(r):i._setUnmanagedPropertyToNode(r,t,o)))}function Cs(e,h,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(n){{var i=h,o=u.target,s=l.source,a=l.negate;let e,t=n.detail,r=t&&t.path;e=r?(s=Io(o,s,r),t&&t.value):n.currentTarget[o],e=a?!e:e,i[T.READ_ONLY]&&i[T.READ_ONLY][s]||!i._setPendingPropertyOrPath(s,e,!0,Boolean(r))||t&&t.queueProperty||i._invalidateProperties()}})}}function Ts(r,n,i,o,e,t){t=n.static||t&&("object"!=typeof t||t[n.methodName]);var s={methodName:n.methodName,args:n.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<n.args.length&&(e=n.args[t]);t++)e.literal||r._addPropertyEffect(e.rootProperty,i,{fn:o,info:s,trigger:e});return t&&r._addPropertyEffect(n.methodName,i,{fn:o,info:s}),s}function Ss(e,t,r,n,i){var o=e._methodHost||e,s=o[i.methodName];if(s)return(e=e._marshalArgs(i.args,t,r))===us?us:s.apply(o,e);i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Ps=[],Ds="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ks="(?:("+Ds+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Os=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ds+"\\s*(?:\\(\\s*(?:(?:"+ks+"(?:,\\s*"+ks+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ms(t){let r="";for(let e=0;e<t.length;e++)r+=t[e].literal||"";return r}function Ns(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:Ps},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Is(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,",").split(","),t):t):null}function Is(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},n=t[0];switch(n="0"<=(n="-"===n?t[1]:n)&&n<="9"?"#":n){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0}return r.literal||(r.rootProperty=Oo(t),r.structured=ko(t),r.structured&&(r.wildcard=".*"==t.slice(-2),r.wildcard)&&(r.name=t.slice(0,-2))),r}function Bs(e,t,r){let n=C(e,r);return n=void 0===n?t[r]:n}function Ls(e,t,r,n){n={indexSplices:n};ho&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(r+".splices",n),e.notifyPath(r+".length",t.length),ho&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function Hs(e,t,r,n,i,o){Ls(e,t,r,[{index:n,addedCount:i,removed:o,object:t,type:"splice"}])}const Rs=x(e=>{const h=ls(ns(e));return class extends h{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return T}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){var e;Fs.length&&((e=Fs[Fs.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,r=this[T.READ_ONLY];for(t in e)r&&r[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,r){this._createPropertyAccessor(e,t==T.READ_ONLY);let n=ps(this,t,!0)[e];(n=n||(this[t][e]=[])).push(r)}_removePropertyEffect(e,t,r){t=ps(this,t,!0)[e],e=t.indexOf(r);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,T.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,T.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,T.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,T.COMPUTE)}_setPendingPropertyOrPath(e,t,r,n){if(n||Oo(Array.isArray(e)?e[0]:e)!==e){if(!n){n=C(this,e);if(!(e=Ho(this,e,t))||!super._shouldPropertyChange(e,t,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,r)){{var i=this;var o=e;var s=t;var a=i.__dataLinkedPaths;if(a){let e;for(var l in a){var h=a[l];No(l,o)?(e=Io(l,h,o),i._setPendingPropertyOrPath(e,s,!0,!0)):No(h,o)&&(e=Io(h,l,o),i._setPendingPropertyOrPath(e,s,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,r);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,r){r===e[t]&&"object"!=typeof r||((e="className"===t?A(e):e)[t]=r)}_setPendingProperty(e,t,r){var n=this.__dataHasPaths&&ko(e),i=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[T.NOTIFY]&&this[T.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=r),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var r=t[e];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var r in e)!t&&this[T.READ_ONLY]&&this[T.READ_ONLY][r]||this._setPendingPropertyOrPath(r,e[r],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,i,o){var s,a,l,h,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),r=i,n=o,d=u,c=t[T.COMPUTE];if(c)if(uo){hs++;var p,m,f=function(i){let o=i.constructor.__orderedComputedDeps;if(!o){o=new Map;var s=i[T.COMPUTE];let e,{counts:t,ready:r,total:n}=function(e){const t=e[ds],r={},n=e[T.COMPUTE],i=[];let o=0;for(var s in t){const n=t[s];o+=r[s]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var a in n)t[a]||i.push(a);return{counts:r,ready:i,total:o}}(i);for(;e=r.shift();){o.set(e,o.size);const i=s[e];i&&i.forEach(e=>{e=e.info.methodInfo;--n,0==--t[e]&&r.push(e)})}if(0!==n){const o=i;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}i.constructor.__orderedComputedDeps=o}return o}(t),_=[];for(p in r)ws(p,c,_,f,d);for(;m=_.shift();)Es(t,"",r,0,m)&&ws(m.methodInfo,c,_,f,d);Object.assign(n,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let e=r;for(;ms(t,c,e,n,d);)Object.assign(n,t.__dataOld),Object.assign(r,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,o,u),this._flushClients(),ms(this,this[T.REFLECT],i,o,u),ms(this,this[T.OBSERVE],i,o,u),s){var y=this,g=s,v=i,b=o,w=u,E;let e,t,r=y[T.NOTIFY],n=hs++;for(E in g)g[E]&&(r&&function(n,e,i,o,s,a,l,h){let u=!1,d=e[l?Oo(o):o];if(d)for(let e,t=0,r=d.length;t<r&&(e=d[t]);t++)e.info&&e.info.lastRun===i||l&&!fs(o,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(n,o,s,a,e.info,l,h),u=!0);return u}(y,r,n,E,v,b,w)||w&&(a=y,E=E,l=v,h=void 0,h=Oo(E),h!==E)&&(ys(a,Uo(h)+"-changed",l[E],E),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,r){this[T.PROPAGATE]&&ms(this,this[T.PROPAGATE],e,t,r),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,r)}_runEffectsForTemplate(n,e,i,t){var r=(t,r)=>{ms(this,n.propertyEffects,t,i,r,n.nodeList);for(let e=n.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,i,r)};n.runEffects?n.runEffects(r,e,t):r(e,t)}linkPaths(e,t){e=Bo(e),t=Bo(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Bo(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var r={path:""};Ls(this,C(this,e,r),r.path,t)}get(e,t){return C(t||this,e)}set(e,t,r){r?Ho(r,e,t):this[T.READ_ONLY]&&this[T.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var r={path:""},e=C(this,e,r),n=e.length,i=e.push(...t);return t.length&&Hs(this,e,r.path,n,t.length,[]),i}pop(e){var t={path:""},e=C(this,e,t),r=Boolean(e.length),n=e.pop();return r&&Hs(this,e,t.path,e.length,0,[n]),n}splice(e,t,r,...n){var i={path:""},e=C(this,e,i);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),r=2===arguments.length?e.splice(t):e.splice(t,r,...n),(n.length||r.length)&&Hs(this,e,i.path,t,n.length,r),r}shift(e){var t={path:""},e=C(this,e,t),r=Boolean(e.length),n=e.shift();return r&&Hs(this,e,t.path,0,0,[n]),n}unshift(e,...t){var r={path:""},e=C(this,e,r),n=e.unshift(...t);return t.length&&Hs(this,e,r.path,0,t.length,[]),n}notifyPath(e,t){let r;var n;r=1==arguments.length?(t=C(this,e,n={path:""}),n.path):Array.isArray(e)?Bo(e):e,this._setPendingPropertyOrPath(r,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,T.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,r){var n={property:e,method:t,dynamicFn:Boolean(r)};this._addPropertyEffect(e,T.OBSERVE,{fn:_s,info:n,trigger:{name:e}}),r&&this._addPropertyEffect(t,T.OBSERVE,{fn:_s,info:n,trigger:{name:t}})}_createMethodObserver(e,t){var r=Ns(e);if(!r)throw new Error("Malformed observer expression '"+e+"'");Ts(this,r,T.OBSERVE,Ss,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,T.NOTIFY,{fn:gs,info:{eventName:Uo(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,T.REFLECT,{fn:vs,info:{attrName:t}})}_createComputedProperty(e,t,r){var n=Ns(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");t=Ts(this,n,T.COMPUTE,Es,e,r);ps(this,ds)[e]=t}_marshalArgs(s,a,l){const h=this.__data,u=[];for(let o=0,e=s.length;o<e;o++){let{name:e,structured:t,wildcard:r,value:n,literal:i}=s[o];if(!i)if(r){const s=No(e,a),u=Bs(h,l,s?a:e);n={path:s?a:e,value:u,base:s?C(h,e):u}}else n=t?Bs(h,l,e):h[e];if(ho&&!this._overrideLegacyUndefined&&void 0===n&&1<s.length)return us;u[o]=n}return u}static addPropertyEffect(e,t,r){this.prototype._addPropertyEffect(e,t,r)}static createPropertyObserver(e,t,r){this.prototype._createPropertyObserver(e,t,r)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,r){this.prototype._createComputedProperty(e,t,r)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let r=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==r;if(!n)for(var i in r.propertyEffects)this._createPropertyAccessor(i);if(t)if((r=Object.create(r)).wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;(((r.parent=t).lastChild=r).previousSibling=n)?n.nextSibling=r:t.firstChild=r}else this.__templateInfo=r;else this.__preBoundTemplateInfo=r;return r}static _addTemplatePropertyEffect(e,t,r){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(r)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Fs.push(this);t=super._stampTemplate(t,e);if(Fs.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var r=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)r.push(e)}t.templateInfo=e;var n=this,{nodeList:i,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var s=o[e],a=i[e],l=s.bindings;if(l)for(let e=0;e<l.length;e++){var h=l[e],u=(f=m=p=c=d=u=void 0,a),d=h;if(d.isCompound){var c=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),p=d.parts,m=new Array(p.length);for(let e=0;e<p.length;e++)m[e]=p[e].literal;var f=d.target;c[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?A(u):u)[f]=d.literal)}Cs(a,n,h)}a.__dataHost=n}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:r,parent:n}=e,i=(t?t.nextSibling=r:n&&(n.firstChild=r),r?r.previousSibling=t:n&&(n.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<i.length;e++){var o=i[e];A(A(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,r){let n=h._parseTemplateNode.call(this,e,t,r);var i;return e.nodeType===Node.TEXT_NODE&&(i=this._parseBindings(e.textContent,t))&&(e.textContent=Ms(i)||" ",xs(this,t,r,"text","textContent",i),n=!0),n}static _parseTemplateNodeAttribute(n,i,o,s,e){var a=this._parseBindings(e,i);if(a){let e=s,t="property",r=(cs.test(s)?t="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),t="attribute"),Ms(a));return r&&"attribute"==t&&("class"==s&&n.hasAttribute("class")&&(r+=" "+n.getAttribute(s)),n.setAttribute(s,r)),"attribute"==t&&"disable-upgrade$"==e&&n.setAttribute(s,""),"input"===n.localName&&"value"===e&&n.setAttribute(e,""),n.removeAttribute(e),"property"===t&&(s=$o(s)),xs(this,i,o,t,s,a,r),!0}return h._parseTemplateNodeAttribute.call(this,n,i,o,s,e)}static _parseTemplateNestedTemplate(e,t,r){let n=h._parseTemplateNestedTemplate.call(this,e,t,r);var i=e.parentNode,o=r.templateInfo,s="dom-if"===i.localName,a="dom-repeat"===i.localName,a=(co&&(s||a)&&(i.removeChild(e),(r=r.parentInfo).templateInfo=o,r.noted=!0,n=!1),o.hostProps);if(po&&s)a&&(t.hostProps=Object.assign(t.hostProps||{},a),co||(r.parentInfo.noted=!0));else for(var l in a)xs(this,t,r,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return n}static _parseBindings(s,a){let l,h=[],u=0;for(;null!==(l=Os.exec(s));){l.index>u&&h.push({literal:s.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),r=l[3].trim(),n=!1,i="",o=-1;"{"==e&&0<(o=r.indexOf("::"))&&(i=r.substring(o+2),r=r.substring(0,o),n=!0);var d=Ns(r),c=[];if(d){var{args:p,methodName:m}=d;for(let e=0;e<p.length;e++){var f=p[e];f.literal||c.push(f)}var _=a.dynamicFns;(_&&_[m]||d.static)&&(c.push(m),d.dynamicFn=!0)}else c.push(r);h.push({source:r,mode:e,negate:t,customEvent:n,signature:d,dependencies:c,event:i}),u=Os.lastIndex}var e;return u&&u<s.length&&(e=s.substring(u))&&h.push({literal:e}),h.length?h:null}static _evaluateBinding(e,t,r,n,i,o){let s;return s=t.signature?Ss(e,r,n,0,t.signature):r!=t.source?C(e,t.source):o&&ko(r)?C(e,r):e.__data[r],s=t.negate?!s:s}}}),Fs=[],Ys=x(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof n?e:null}function r(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var r;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(r=t.properties)&&(e=function(e){var t,r={};for(t in e){var n=e[t];r[t]="function"==typeof n?{type:n}:n}return r}(r)),t.__ownProperties=e}return t.__ownProperties}class n extends Jo(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=r(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,r(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n}),$s=window.ShadyCSS&&window.ShadyCSS.cssBuild,Us=x(e=>{const n=Ys(Rs(e));return class extends n{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){n._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):so||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)r=this.prototype,n=t,t=e[t],i=e,t.computed&&(t.readOnly=!0),t.computed&&(r._hasReadOnlyEffect(n)?console.warn(`Cannot redefine computed property '${n}'.`):r._createComputedProperty(n,t.computed,i)),t.readOnly&&!r._hasReadOnlyEffect(n)?r._createReadOnlyProperty(n,!t.computed):!1===t.readOnly&&r._hasReadOnlyEffect(n)&&console.warn(`Cannot make readOnly property '${n}' non-readOnly.`),t.reflectToAttribute&&!r._hasReflectEffect(n)?r._createReflectedProperty(n):!1===t.reflectToAttribute&&r._hasReflectEffect(n)&&console.warn(`Cannot make reflected property '${n}' non-reflected.`),t.notify&&!r._hasNotifyEffect(n)?r._createNotifyingProperty(n):!1===t.notify&&r._hasNotifyEffect(n)&&console.warn(`Cannot make notify property '${n}' non-notify.`),t.observer&&r._createPropertyObserver(n,t.observer,i[t.observer]),r._addPropertyToAttributeMap(n);var r,n,i}static createObservers(t,r){var n=this.prototype;for(let e=0;e<t.length;e++)n._createMethodObserver(t[e],r)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||io&&!oo||(t=wo.import(e,"template"),!io)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Qi(e.url):(e=wo.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ro,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,r=e._properties;for(t in r){var n=r[t];"value"in n&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=n)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var r=e[t];this._canApplyPropertyDefault(t)&&(r="function"==typeof r.value?r.value.call(this):r.value,this._hasAccessor(t)?this._setPendingProperty(t,r,!0):this[t]=r)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Ji(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var r=this.importPath,i=this,o=t,s=e,a=r?Zi(r):"";if(!$s){var l=o.content.querySelectorAll("style"),h=Po(o),u=(e=Co(s))?Do(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var c=u[e];c.textContent=i._processStyleText(c.textContent,a),o.content.insertBefore(c,d)}let n=0;for(let r=0;r<h.length;r++){let e=h[r],t=l[n];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):n++,e.textContent=i._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,s),fo&&$s&&to){const s=o.content.querySelectorAll("style");if(s){let t="";Array.from(s).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),i._styleSheet=new CSSStyleSheet,i._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(e){var t=A(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),lo&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=Zi(this.importPath)),Zi(e,t)}static _parseTemplateContent(e,t,r){return t.dynamicFns=t.dynamicFns||this._properties,n._parseTemplateContent.call(this,e,t,r)}static _addTemplatePropertyEffect(e,t,r){return!ao||t in this._properties||r.info.part.signature&&r.info.part.signature.static||r.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),n._addTemplatePropertyEffect.call(this,e,t,r)}}}),zs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Vs(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function js(n,...e){Ws(n,e);var t=document.createElement("template");let r=e.reduce((e,t,r)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Vs(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+n[r+1],n[0]);return zs&&(r=zs.createHTML(r)),t.innerHTML=r,t}const Ws=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Gs=Us(HTMLElement),qs=[];function Ks(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=r&&e.removeAttribute("dir")}function Xs(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Xs();qs.forEach(e=>{Ks(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Zs=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Ks(this,Xs(),null))}attributeChangedCallback(e,t,r){var n,i;super.attributeChangedCallback(e,t,r),"dir"===e&&(n=r===(e=Xs())&&-1===qs.indexOf(this),i=!r&&t&&-1===qs.indexOf(this),t=r!==e&&t===e,n||i?(this.__subscribe(),Ks(this,e,r)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=qs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){"dir"===r&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){"dir"!==e||t?super._attributeToProperty(e,t,r):this.dir=""}__subscribe(){qs.includes(this)||qs.push(this)}__unsubscribe(){qs.includes(this)&&qs.splice(qs.indexOf(this),1)}};class Js extends or(Zs(Gs)){static get is(){return"vaadin-input-container"}static get template(){return js`
|
522
|
+
`,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let qi,E,Ki=/(url\()([^)]*)(\))/g,Xi=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Zi(e,t){if(e&&Xi.test(e))return e;if("//"===e)return e;if(void 0===qi){qi=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",qi="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,qi)try{return new URL(e,t).href}catch(t){return e}return E||((E=document.implementation.createHTMLDocument("temp")).base=E.createElement("base"),E.head.appendChild(E.base),E.anchor=E.createElement("a"),E.body.appendChild(E.anchor)),E.base.href=t,E.anchor.href=e,E.anchor.href||e}function Ji(e,i){return e.replace(Ki,function(e,t,r,n){return t+"'"+Zi(r.replace(/["']/g,""),i)+"'"+n})}function Qi(e){return e.substring(0,e.lastIndexOf("/")+1)}const eo=!window.ShadyDOM||!window.ShadyDOM.inUse,to=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),eo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let ro=window.Polymer&&window.Polymer.rootPath||Qi(document.baseURI||window.location.href),no=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,io=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),oo=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,so=window.Polymer&&window.Polymer.legacyOptimizations||!1,ao=window.Polymer&&window.Polymer.legacyWarnings||!1,lo=window.Polymer&&window.Polymer.syncInitialRender||!1,ho=window.Polymer&&window.Polymer.legacyUndefined||!1,uo=window.Polymer&&window.Polymer.orderedComputed||!1,co=window.Polymer&&window.Polymer.removeNestedTemplates||!1,po=window.Polymer&&window.Polymer.fastDomIf||!1,mo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,fo=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),_o=0;function x(i){let o=i.__mixinApplications,s=(o||(o=new WeakMap,i.__mixinApplications=o),_o++);return function(e){var t=e.__mixinSet;if(t&&t[s])return e;let r=o,n=r.get(e);return n||(n=i(e),r.set(e,n),(e=Object.create(n.__mixinSet||t||null))[s]=!0,n.__mixinSet=e),n}}let yo={},go={};function vo(e,t){yo[e]=go[e.toLowerCase()]=t}function bo(e){return yo[e]||go[e.toLowerCase()]}class wo extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=bo(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,r,n){t!==r&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Zi(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Qi(e)),this.__assetpath}register(e){if(e=e||this.id){if(io&&void 0!==bo(e))throw vo(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);vo(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}wo.prototype.modules=yo,customElements.define("dom-module",wo);const Eo="link[rel=import][type~=css]",xo="include",Ao="shady-unscoped";function Co(e){return wo.import(e)}function To(e){var e=Ji((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function So(e){var t=e.trim().split(/\s+/),r=[];for(let e=0;e<t.length;e++)r.push(...function(e){var t=Co(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Do(t));var r=t.querySelector("template");r&&e.push(...Po(r,t.assetpath)),t._styles=e}return t._styles}(t[e]));return r}function Po(e,t){if(!e._styles){var r=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var i=n[e],o=i.getAttribute(xo);o&&r.push(...So(o).filter(function(e,t,r){return r.indexOf(e)===t})),t&&(i.textContent=Ji(i.textContent,t)),r.push(i)}e._styles=r}return e._styles}function Do(t){const r=[],n=t.querySelectorAll(Eo);for(let e=0;e<n.length;e++){var i=n[e];if(i.import){const t=i.import,n=i.hasAttribute(Ao);if(n&&!t._unscopedStyle){const r=To(t);r.setAttribute(Ao,""),t._unscopedStyle=r}else t._style||(t._style=To(t));r.push(n?t._unscopedStyle:t._style)}}return r}const A=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function ko(e){return 0<=e.indexOf(".")}function Oo(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Mo(e,t){return 0===e.indexOf(t+".")}function No(e,t){return 0===t.indexOf(e+".")}function Bo(e,t,r){return t+r.slice(e.length)}function Io(t){if(Array.isArray(t)){var r=[];for(let e=0;e<t.length;e++){var n=t[e].toString().split(".");for(let e=0;e<n.length;e++)r.push(n[e])}return r.join(".")}return t}function Lo(e){return(Array.isArray(e)?Io(e):e.toString()).split(".")}function C(e,t,r){let n=e,i=Lo(t);for(let e=0;e<i.length;e++){if(!n)return;n=n[i[e]]}return r&&(r.path=i.join(".")),n}function Ho(e,t,r){let n=e,i=Lo(t),o=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(!(n=n[i[e]]))return;n[o]=r}else n[t]=r;return i.join(".")}const Ro={},Fo=/-[a-z]/g,Yo=/([A-Z])/g;function $o(e){return Ro[e]||(Ro[e]=e.indexOf("-")<0?e:e.replace(Fo,e=>e[1].toUpperCase()))}function Uo(e){return Ro[e]||(Ro[e]=e.replace(Yo,"-$1").toLowerCase())}let zo=0,Vo=0,jo=[],Wo=0,Go=!1,qo=document.createTextNode("");new window.MutationObserver(function(){Go=!1;var t=jo.length;for(let e=0;e<t;e++){var r=jo[e];if(r)try{r()}catch(t){setTimeout(()=>{throw t})}}jo.splice(0,t),Vo+=t}).observe(qo,{characterData:!0});const Ko={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Xo={run:e=>(Go||(Go=!0,qo.textContent=Wo++),jo.push(e),zo++),cancel(e){var t=e-Vo;if(0<=t){if(!jo[t])throw new Error("invalid async handle: "+e);jo[t]=null}}},Zo=Xo,Jo=x(e=>class extends e{static createProperties(e){var t,r=this.prototype;for(t in e)t in r||r._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,r){var n=this.__data[e],i=this._shouldPropertyChange(e,t,n);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=n),this.__data[e]=t,this.__dataPending[e]=t),i}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Zo.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;var e=this.__data,t=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(e,t,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,r)),this.__dataCounter--}_shouldPropertiesChange(e,t,r){return Boolean(t)}_propertiesChanged(e,t,r){}_shouldPropertyChange(e,t,r){return r!==t&&(r==r||t==t)}attributeChangedCallback(e,t,r,n){t!==r&&this._attributeToProperty(e,r),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,r,n)}_attributeToProperty(e,t,r){var n;this.__serializing||(this[n=(n=this.__dataAttributes)&&n[e]||e]=this._deserializeValue(t,r||this.constructor.typeForProperty(n)))}_propertyToAttribute(e,t,r){this.__serializing=!0,r=arguments.length<3?this[e]:r,this._valueToNodeAttribute(this,r,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,r){t=this._serializeValue(t);"class"!==r&&"name"!==r&&"slot"!==r||(e=A(e)),void 0===t?e.removeAttribute(r):e.setAttribute(r,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Qo={};let es=HTMLElement.prototype;for(;es;){var ts=Object.getOwnPropertyNames(es);for(let e=0;e<ts.length;e++)Qo[ts[e]]=!0;es=Object.getPrototypeOf(es)}const rs=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,ns=x(e=>{return class extends Jo(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor($o(t[e]))}static attributeNameForProperty(e){return Uo(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(rs(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let r;switch(t){case Object:try{r=JSON.parse(e)}catch(t){r=e}break;case Array:try{r=JSON.parse(e)}catch(t){r=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:r=(isNaN(e)?String:Number)(e),r=new Date(r);break;default:r=super._deserializeValue(e,t)}return r}_definePropertyAccessor(e,t){var r,n,i;r=this,n=e,Qo[n]||void 0!==(i=r[n])&&(r.__data?r._setPendingProperty(n,i):(r.__dataProto?r.hasOwnProperty(JSCompiler_renameProperty("__dataProto",r))||(r.__dataProto=Object.create(r.__dataProto)):r.__dataProto={},r.__dataProto[n]=i)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),is={"dom-if":!0,"dom-repeat":!0};let os=!1,ss=!1;const as=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{t=t.getAttribute(r);n&&r.startsWith("on-")?e.setAttribute(r,n.createScript(t,r)):e.setAttribute(r,t)}})();const ls=x(e=>class extends e{static _parseTemplate(e,t){var r;return e._templateInfo||((r=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),r.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,r,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,r){return this._parseTemplateNode(e.content,t,r)}static _parseTemplateNode(e,t,r){let n=!1,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(i,t,r)||n,e=i,os||(os=!0,(o=document.createElement("textarea")).placeholder="a",ss=o.placeholder===o.textContent),ss&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,r),(n=i.hasAttributes&&i.hasAttributes()?this._parseTemplateNodeAttributes(i,t,r)||n:n)||r.noted;var o}static _parseTemplateChildNodes(n,i,o){if("script"!==n.localName&&"style"!==n.localName)for(let t,r=n.firstChild,e=0;r;r=t){if("template"==r.localName&&(r=function(e){let t=e.getAttribute("is");if(t&&is[t]){var r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const t=r.attributes[0]["name"];as(e,r,t),r.removeAttribute(t)}}return e}(r)),t=r.nextSibling,r.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)r.textContent+=e.textContent,t=e.nextSibling,n.removeChild(e),e=t;if(i.stripWhiteSpace&&!r.textContent.trim()){n.removeChild(r);continue}}var s={parentIndex:e,parentInfo:o};this._parseTemplateNode(r,i,s)&&(s.infoIndex=i.nodeInfoList.push(s)-1),r.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,r){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),r.templateInfo=t,!0}static _parseTemplateNodeAttributes(r,n,i){let o=!1,s=Array.from(r.attributes);for(let e,t=s.length-1;e=s[t];t--)o=this._parseTemplateNodeAttribute(r,n,i,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,r,n,i){return"on-"===n.slice(0,3)?(e.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:i}),!0):"id"===n&&(r.id=i,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,n){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var i,o,s=(n=n||this.constructor._parseTemplate(e)).nodeInfoList,e=n.content||e.content,a=document.importNode(e,!0),l=(a.__noInsertionPoint=!n.hasInsertionPoint,a.nodeList=new Array(s.length));a.$={};for(let e,t=0,r=s.length;t<r&&(e=s[t]);t++){var h=l[t]=function e(t,r){var n=r.parentInfo&&e(t,r.parentInfo);if(!n)return t;for(let e=n.firstChild,t=0;e;e=e.nextSibling)if(r.parentIndex===t++)return e}(a,e),u=(i=a.$,o=h,(c=e).id&&(i[c.id]=o),i=h,c=e,o=n,c.templateInfo&&(i._templateInfo=c.templateInfo,i._parentTemplateInfo=o),c=d=u=void 0,this),d=h,c=e;if(c.events&&c.events.length)for(let e,t=0,r=c.events;t<r.length&&(e=r[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return a}_addMethodEventListenerToNode(e,t,r,n){function i(e){o[s]?o[s](e,e.detail):console.warn("listener method `"+s+"` not defined")}var o,s;o=n=n||e,s=r,o=o._methodHost||o;return this._addEventListenerToNode(e,t,i),i}_addEventListenerToNode(e,t,r){e.addEventListener(t,r)}_removeEventListenerFromNode(e,t,r){e.removeEventListener(t,r)}});let hs=0;const us=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ds="__computeInfo",cs=/[A-Z]/;function ps(e,t,r){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),r))for(var i in n){var o=n[i],s=n[i]=Array(o.length);for(let e=0;e<o.length;e++)s[e]=o[e]}}else n=e[t]={};return n}function ms(i,e,o,s,a,l){if(e){let n=!1;var h,u=hs++;for(h in o){var d=e[a?Oo(h):h];if(d)for(let e,t=0,r=d.length;t<r&&(e=d[t]);t++)e.info&&e.info.lastRun===u||a&&!fs(h,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(i,h,o,s,e.info,a,l),n=!0)}return n}}function fs(e,t){var r;return!t||(r=t.name)==e||t.structured&&Mo(r,e)||t.wildcard&&No(r,e)}function _s(e,t,r,n,i){var o="string"==typeof i.method?e[i.method]:i.method,s=i.property;o?o.call(e,e.__data[s],n[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function ys(e,t,r,n){r={value:r,queueProperty:!0};n&&(r.path=n),A(e).dispatchEvent(new CustomEvent(t,{detail:r}))}function gs(e,t,r,n,i,o){let s=(o?Oo(t):t)!=t?t:null,a=s?C(e,s):e.__data[t];s&&void 0===a&&(a=r[t]),ys(e,i.eventName,a,s)}function vs(e,t,r,n,i){let o=e.__data[t];no&&(o=no(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}const bs=(e,t,r)=>{let n=0,i=t.length-1,o=-1;for(;n<=i;){var s=n+i>>1,a=r.get(t[s].methodInfo)-r.get(e.methodInfo);if(a<0)n=1+s;else{if(!(0<a)){o=s;break}i=s-1}}o<0&&(o=i+1),t.splice(o,0,e)},ws=(t,e,r,n,i)=>{var o=e[i?Oo(t):t];if(o)for(let e=0;e<o.length;e++){var s=o[e];s.info.lastRun===hs||i&&!fs(t,s.trigger)||(s.info.lastRun=hs,bs(s.info,r,n))}};function Es(e,t,r,n,i){t=Ss(e,t,r,0,i);return t!==us&&(r=i.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[r]?e._setPendingProperty(r,t,!0):(e[r]=t,!1))}function xs(t,r,e,n,i,o,s){e.bindings=e.bindings||[];var a={kind:n,target:i,parts:o,literal:s,isCompound:1!==o.length},l=(e.bindings.push(a),n=a,Boolean(n.target)&&"attribute"!=n.kind&&"text"!=n.kind&&!n.isCompound&&"{"===n.parts[0].mode&&({event:s,negate:o}=a.parts[0],a.listenerEvent=s||Uo(i)+"-changed",a.listenerNegate=o),r.nodeInfoList.length);for(let e=0;e<a.parts.length;e++){var h=a.parts[e],u=(h.compoundIndex=e,_=f=m=p=c=d=u=void 0,t),d=r,c=a,p=h,m=l;if(!p.literal)if("attribute"===c.kind&&"-"===c.target[0])console.warn("Cannot set attribute "+c.target+' because "-" is not a valid attribute starting character');else{var f=p.dependencies,_={index:m,binding:c,part:p,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=Bs(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:As,info:_,trigger:e})}}}}function As(e,t,r,n,i,o,s){var a,s=s[i.index],l=i.binding,h=i.part;o&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]?(a=r[t],t=Bo(h.source,l.target,t),s._setPendingPropertyOrPath(t,a,!1,!0)&&e._enqueueClient(s)):(a=i.evaluator._evaluateBinding(e,h,t,r,n,o))!==us&&(i=e,t=h,n=r=s,e=o=a,(s=h=l).isCompound&&((l=n.__dataCompoundStorage[s.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==s.kind&&("textContent"===s.target||"value"===s.target&&("input"===n.localName||"textarea"===n.localName))&&null==e?"":e,no&&(o=no(o,h.target,h.kind,r)),"attribute"==h.kind?i._valueToNodeAttribute(r,o,h.target):(t=h.target,r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[t]?r[T.READ_ONLY]&&r[T.READ_ONLY][t]||r._setPendingProperty(t,o)&&i._enqueueClient(r):i._setUnmanagedPropertyToNode(r,t,o)))}function Cs(e,h,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(n){{var i=h,o=u.target,s=l.source,a=l.negate;let e,t=n.detail,r=t&&t.path;e=r?(s=Bo(o,s,r),t&&t.value):n.currentTarget[o],e=a?!e:e,i[T.READ_ONLY]&&i[T.READ_ONLY][s]||!i._setPendingPropertyOrPath(s,e,!0,Boolean(r))||t&&t.queueProperty||i._invalidateProperties()}})}}function Ts(r,n,i,o,e,t){t=n.static||t&&("object"!=typeof t||t[n.methodName]);var s={methodName:n.methodName,args:n.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<n.args.length&&(e=n.args[t]);t++)e.literal||r._addPropertyEffect(e.rootProperty,i,{fn:o,info:s,trigger:e});return t&&r._addPropertyEffect(n.methodName,i,{fn:o,info:s}),s}function Ss(e,t,r,n,i){var o=e._methodHost||e,s=o[i.methodName];if(s)return(e=e._marshalArgs(i.args,t,r))===us?us:s.apply(o,e);i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Ps=[],Ds="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ks="(?:("+Ds+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Os=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ds+"\\s*(?:\\(\\s*(?:(?:"+ks+"(?:,\\s*"+ks+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ms(t){let r="";for(let e=0;e<t.length;e++)r+=t[e].literal||"";return r}function Ns(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:Ps},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Bs(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,",").split(","),t):t):null}function Bs(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},n=t[0];switch(n="0"<=(n="-"===n?t[1]:n)&&n<="9"?"#":n){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0}return r.literal||(r.rootProperty=Oo(t),r.structured=ko(t),r.structured&&(r.wildcard=".*"==t.slice(-2),r.wildcard)&&(r.name=t.slice(0,-2))),r}function Is(e,t,r){let n=C(e,r);return n=void 0===n?t[r]:n}function Ls(e,t,r,n){n={indexSplices:n};ho&&!e._overrideLegacyUndefined&&(t.splices=n),e.notifyPath(r+".splices",n),e.notifyPath(r+".length",t.length),ho&&!e._overrideLegacyUndefined&&(n.indexSplices=[])}function Hs(e,t,r,n,i,o){Ls(e,t,r,[{index:n,addedCount:i,removed:o,object:t,type:"splice"}])}const Rs=x(e=>{const h=ls(ns(e));return class extends h{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return T}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){var e;Fs.length&&((e=Fs[Fs.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,r=this[T.READ_ONLY];for(t in e)r&&r[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,r){this._createPropertyAccessor(e,t==T.READ_ONLY);let n=ps(this,t,!0)[e];(n=n||(this[t][e]=[])).push(r)}_removePropertyEffect(e,t,r){t=ps(this,t,!0)[e],e=t.indexOf(r);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,T.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,T.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,T.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,T.COMPUTE)}_setPendingPropertyOrPath(e,t,r,n){if(n||Oo(Array.isArray(e)?e[0]:e)!==e){if(!n){n=C(this,e);if(!(e=Ho(this,e,t))||!super._shouldPropertyChange(e,t,n))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,r)){{var i=this;var o=e;var s=t;var a=i.__dataLinkedPaths;if(a){let e;for(var l in a){var h=a[l];No(l,o)?(e=Bo(l,h,o),i._setPendingPropertyOrPath(e,s,!0,!0)):No(h,o)&&(e=Bo(h,l,o),i._setPendingPropertyOrPath(e,s,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,r);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,r){r===e[t]&&"object"!=typeof r||((e="className"===t?A(e):e)[t]=r)}_setPendingProperty(e,t,r){var n=this.__dataHasPaths&&ko(e),i=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[T.NOTIFY]&&this[T.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=r),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var r=t[e];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var r in e)!t&&this[T.READ_ONLY]&&this[T.READ_ONLY][r]||this._setPendingPropertyOrPath(r,e[r],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,i,o){var s,a,l,h,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),r=i,n=o,d=u,c=t[T.COMPUTE];if(c)if(uo){hs++;var p,m,f=function(i){let o=i.constructor.__orderedComputedDeps;if(!o){o=new Map;var s=i[T.COMPUTE];let e,{counts:t,ready:r,total:n}=function(e){const t=e[ds],r={},n=e[T.COMPUTE],i=[];let o=0;for(var s in t){const n=t[s];o+=r[s]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var a in n)t[a]||i.push(a);return{counts:r,ready:i,total:o}}(i);for(;e=r.shift();){o.set(e,o.size);const i=s[e];i&&i.forEach(e=>{e=e.info.methodInfo;--n,0==--t[e]&&r.push(e)})}if(0!==n){const o=i;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}i.constructor.__orderedComputedDeps=o}return o}(t),_=[];for(p in r)ws(p,c,_,f,d);for(;m=_.shift();)Es(t,"",r,0,m)&&ws(m.methodInfo,c,_,f,d);Object.assign(n,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let e=r;for(;ms(t,c,e,n,d);)Object.assign(n,t.__dataOld),Object.assign(r,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,o,u),this._flushClients(),ms(this,this[T.REFLECT],i,o,u),ms(this,this[T.OBSERVE],i,o,u),s){var y=this,g=s,v=i,b=o,w=u,E;let e,t,r=y[T.NOTIFY],n=hs++;for(E in g)g[E]&&(r&&function(n,e,i,o,s,a,l,h){let u=!1,d=e[l?Oo(o):o];if(d)for(let e,t=0,r=d.length;t<r&&(e=d[t]);t++)e.info&&e.info.lastRun===i||l&&!fs(o,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(n,o,s,a,e.info,l,h),u=!0);return u}(y,r,n,E,v,b,w)||w&&(a=y,E=E,l=v,h=void 0,h=Oo(E),h!==E)&&(ys(a,Uo(h)+"-changed",l[E],E),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,r){this[T.PROPAGATE]&&ms(this,this[T.PROPAGATE],e,t,r),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,r)}_runEffectsForTemplate(n,e,i,t){var r=(t,r)=>{ms(this,n.propertyEffects,t,i,r,n.nodeList);for(let e=n.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,i,r)};n.runEffects?n.runEffects(r,e,t):r(e,t)}linkPaths(e,t){e=Io(e),t=Io(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Io(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var r={path:""};Ls(this,C(this,e,r),r.path,t)}get(e,t){return C(t||this,e)}set(e,t,r){r?Ho(r,e,t):this[T.READ_ONLY]&&this[T.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var r={path:""},e=C(this,e,r),n=e.length,i=e.push(...t);return t.length&&Hs(this,e,r.path,n,t.length,[]),i}pop(e){var t={path:""},e=C(this,e,t),r=Boolean(e.length),n=e.pop();return r&&Hs(this,e,t.path,e.length,0,[n]),n}splice(e,t,r,...n){var i={path:""},e=C(this,e,i);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),r=2===arguments.length?e.splice(t):e.splice(t,r,...n),(n.length||r.length)&&Hs(this,e,i.path,t,n.length,r),r}shift(e){var t={path:""},e=C(this,e,t),r=Boolean(e.length),n=e.shift();return r&&Hs(this,e,t.path,0,0,[n]),n}unshift(e,...t){var r={path:""},e=C(this,e,r),n=e.unshift(...t);return t.length&&Hs(this,e,r.path,0,t.length,[]),n}notifyPath(e,t){let r;var n;r=1==arguments.length?(t=C(this,e,n={path:""}),n.path):Array.isArray(e)?Io(e):e,this._setPendingPropertyOrPath(r,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,T.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,r){var n={property:e,method:t,dynamicFn:Boolean(r)};this._addPropertyEffect(e,T.OBSERVE,{fn:_s,info:n,trigger:{name:e}}),r&&this._addPropertyEffect(t,T.OBSERVE,{fn:_s,info:n,trigger:{name:t}})}_createMethodObserver(e,t){var r=Ns(e);if(!r)throw new Error("Malformed observer expression '"+e+"'");Ts(this,r,T.OBSERVE,Ss,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,T.NOTIFY,{fn:gs,info:{eventName:Uo(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,T.REFLECT,{fn:vs,info:{attrName:t}})}_createComputedProperty(e,t,r){var n=Ns(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");t=Ts(this,n,T.COMPUTE,Es,e,r);ps(this,ds)[e]=t}_marshalArgs(s,a,l){const h=this.__data,u=[];for(let o=0,e=s.length;o<e;o++){let{name:e,structured:t,wildcard:r,value:n,literal:i}=s[o];if(!i)if(r){const s=No(e,a),u=Is(h,l,s?a:e);n={path:s?a:e,value:u,base:s?C(h,e):u}}else n=t?Is(h,l,e):h[e];if(ho&&!this._overrideLegacyUndefined&&void 0===n&&1<s.length)return us;u[o]=n}return u}static addPropertyEffect(e,t,r){this.prototype._addPropertyEffect(e,t,r)}static createPropertyObserver(e,t,r){this.prototype._createPropertyObserver(e,t,r)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,r){this.prototype._createComputedProperty(e,t,r)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let r=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==r;if(!n)for(var i in r.propertyEffects)this._createPropertyAccessor(i);if(t)if((r=Object.create(r)).wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;(((r.parent=t).lastChild=r).previousSibling=n)?n.nextSibling=r:t.firstChild=r}else this.__templateInfo=r;else this.__preBoundTemplateInfo=r;return r}static _addTemplatePropertyEffect(e,t,r){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(r)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Fs.push(this);t=super._stampTemplate(t,e);if(Fs.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var r=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)r.push(e)}t.templateInfo=e;var n=this,{nodeList:i,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var s=o[e],a=i[e],l=s.bindings;if(l)for(let e=0;e<l.length;e++){var h=l[e],u=(f=m=p=c=d=u=void 0,a),d=h;if(d.isCompound){var c=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),p=d.parts,m=new Array(p.length);for(let e=0;e<p.length;e++)m[e]=p[e].literal;var f=d.target;c[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?A(u):u)[f]=d.literal)}Cs(a,n,h)}a.__dataHost=n}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:r,parent:n}=e,i=(t?t.nextSibling=r:n&&(n.firstChild=r),r?r.previousSibling=t:n&&(n.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<i.length;e++){var o=i[e];A(A(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,r){let n=h._parseTemplateNode.call(this,e,t,r);var i;return e.nodeType===Node.TEXT_NODE&&(i=this._parseBindings(e.textContent,t))&&(e.textContent=Ms(i)||" ",xs(this,t,r,"text","textContent",i),n=!0),n}static _parseTemplateNodeAttribute(n,i,o,s,e){var a=this._parseBindings(e,i);if(a){let e=s,t="property",r=(cs.test(s)?t="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),t="attribute"),Ms(a));return r&&"attribute"==t&&("class"==s&&n.hasAttribute("class")&&(r+=" "+n.getAttribute(s)),n.setAttribute(s,r)),"attribute"==t&&"disable-upgrade$"==e&&n.setAttribute(s,""),"input"===n.localName&&"value"===e&&n.setAttribute(e,""),n.removeAttribute(e),"property"===t&&(s=$o(s)),xs(this,i,o,t,s,a,r),!0}return h._parseTemplateNodeAttribute.call(this,n,i,o,s,e)}static _parseTemplateNestedTemplate(e,t,r){let n=h._parseTemplateNestedTemplate.call(this,e,t,r);var i=e.parentNode,o=r.templateInfo,s="dom-if"===i.localName,a="dom-repeat"===i.localName,a=(co&&(s||a)&&(i.removeChild(e),(r=r.parentInfo).templateInfo=o,r.noted=!0,n=!1),o.hostProps);if(po&&s)a&&(t.hostProps=Object.assign(t.hostProps||{},a),co||(r.parentInfo.noted=!0));else for(var l in a)xs(this,t,r,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return n}static _parseBindings(s,a){let l,h=[],u=0;for(;null!==(l=Os.exec(s));){l.index>u&&h.push({literal:s.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),r=l[3].trim(),n=!1,i="",o=-1;"{"==e&&0<(o=r.indexOf("::"))&&(i=r.substring(o+2),r=r.substring(0,o),n=!0);var d=Ns(r),c=[];if(d){var{args:p,methodName:m}=d;for(let e=0;e<p.length;e++){var f=p[e];f.literal||c.push(f)}var _=a.dynamicFns;(_&&_[m]||d.static)&&(c.push(m),d.dynamicFn=!0)}else c.push(r);h.push({source:r,mode:e,negate:t,customEvent:n,signature:d,dependencies:c,event:i}),u=Os.lastIndex}var e;return u&&u<s.length&&(e=s.substring(u))&&h.push({literal:e}),h.length?h:null}static _evaluateBinding(e,t,r,n,i,o){let s;return s=t.signature?Ss(e,r,n,0,t.signature):r!=t.source?C(e,t.source):o&&ko(r)?C(e,r):e.__data[r],s=t.negate?!s:s}}}),Fs=[],Ys=x(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof n?e:null}function r(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var r;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(r=t.properties)&&(e=function(e){var t,r={};for(t in e){var n=e[t];r[t]="function"==typeof n?{type:n}:n}return r}(r)),t.__ownProperties=e}return t.__ownProperties}class n extends Jo(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=r(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,r(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n}),$s=window.ShadyCSS&&window.ShadyCSS.cssBuild,Us=x(e=>{const n=Ys(Rs(e));return class extends n{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){n._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):so||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)r=this.prototype,n=t,t=e[t],i=e,t.computed&&(t.readOnly=!0),t.computed&&(r._hasReadOnlyEffect(n)?console.warn(`Cannot redefine computed property '${n}'.`):r._createComputedProperty(n,t.computed,i)),t.readOnly&&!r._hasReadOnlyEffect(n)?r._createReadOnlyProperty(n,!t.computed):!1===t.readOnly&&r._hasReadOnlyEffect(n)&&console.warn(`Cannot make readOnly property '${n}' non-readOnly.`),t.reflectToAttribute&&!r._hasReflectEffect(n)?r._createReflectedProperty(n):!1===t.reflectToAttribute&&r._hasReflectEffect(n)&&console.warn(`Cannot make reflected property '${n}' non-reflected.`),t.notify&&!r._hasNotifyEffect(n)?r._createNotifyingProperty(n):!1===t.notify&&r._hasNotifyEffect(n)&&console.warn(`Cannot make notify property '${n}' non-notify.`),t.observer&&r._createPropertyObserver(n,t.observer,i[t.observer]),r._addPropertyToAttributeMap(n);var r,n,i}static createObservers(t,r){var n=this.prototype;for(let e=0;e<t.length;e++)n._createMethodObserver(t[e],r)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||io&&!oo||(t=wo.import(e,"template"),!io)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Qi(e.url):(e=wo.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ro,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,r=e._properties;for(t in r){var n=r[t];"value"in n&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=n)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var r=e[t];this._canApplyPropertyDefault(t)&&(r="function"==typeof r.value?r.value.call(this):r.value,this._hasAccessor(t)?this._setPendingProperty(t,r,!0):this[t]=r)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Ji(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var r=this.importPath,i=this,o=t,s=e,a=r?Zi(r):"";if(!$s){var l=o.content.querySelectorAll("style"),h=Po(o),u=(e=Co(s))?Do(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var c=u[e];c.textContent=i._processStyleText(c.textContent,a),o.content.insertBefore(c,d)}let n=0;for(let r=0;r<h.length;r++){let e=h[r],t=l[n];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):n++,e.textContent=i._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,s),fo&&$s&&to){const s=o.content.querySelectorAll("style");if(s){let t="";Array.from(s).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),i._styleSheet=new CSSStyleSheet,i._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(e){var t=A(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),lo&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=Zi(this.importPath)),Zi(e,t)}static _parseTemplateContent(e,t,r){return t.dynamicFns=t.dynamicFns||this._properties,n._parseTemplateContent.call(this,e,t,r)}static _addTemplatePropertyEffect(e,t,r){return!ao||t in this._properties||r.info.part.signature&&r.info.part.signature.static||r.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),n._addTemplatePropertyEffect.call(this,e,t,r)}}}),zs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Vs(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function js(n,...e){Ws(n,e);var t=document.createElement("template");let r=e.reduce((e,t,r)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Vs(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+n[r+1],n[0]);return zs&&(r=zs.createHTML(r)),t.innerHTML=r,t}const Ws=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Gs=Us(HTMLElement),qs=[];function Ks(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=r&&e.removeAttribute("dir")}function Xs(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Xs();qs.forEach(e=>{Ks(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Zs=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Ks(this,Xs(),null))}attributeChangedCallback(e,t,r){var n,i;super.attributeChangedCallback(e,t,r),"dir"===e&&(n=r===(e=Xs())&&-1===qs.indexOf(this),i=!r&&t&&-1===qs.indexOf(this),t=r!==e&&t===e,n||i?(this.__subscribe(),Ks(this,e,r)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=qs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){"dir"===r&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){"dir"!==e||t?super._attributeToProperty(e,t,r):this.dir=""}__subscribe(){qs.includes(this)||qs.push(this)}__unsubscribe(){qs.includes(this)&&qs.splice(qs.indexOf(this),1)}};class Js extends or(Zs(Gs)){static get is(){return"vaadin-input-container"}static get template(){return js`
|
523
523
|
<style>
|
524
524
|
:host {
|
525
525
|
display: flex;
|
@@ -1124,7 +1124,7 @@
|
|
1124
1124
|
outline-color: GrayText;
|
1125
1125
|
}
|
1126
1126
|
}
|
1127
|
-
`,Aa=!1,Ca=e=>e,Ta="string"==typeof document.head.style.touchAction,Sa="__polymerGestures",Pa="__polymerGesturesHandled",Da="__polymerGesturesTouchAction",ka=["mousedown","mousemove","mouseup","click"],Oa=[0,1,4,2],Ma=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Na(e){return-1<ka.indexOf(e)}let
|
1127
|
+
`,Aa=!1,Ca=e=>e,Ta="string"==typeof document.head.style.touchAction,Sa="__polymerGestures",Pa="__polymerGesturesHandled",Da="__polymerGesturesTouchAction",ka=["mousedown","mousemove","mouseup","click"],Oa=[0,1,4,2],Ma=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Na(e){return-1<ka.indexOf(e)}let Ba=!1;try{var Ia=Object.defineProperty({},"passive",{get(){Ba=!0}});window.addEventListener("test",null,Ia),window.removeEventListener("test",null,Ia)}catch(e){}const La=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ha={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ra(t){var e=t.type;if(Na(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ma&&(e=Oa[t.which]||0),Boolean(1&e)}}}const Fa={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ya(e,t,r){e.movefn=t,e.upfn=r,document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}function $a(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const Ua=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],za={},Va=[];function ja(e){var t=Ua(e);return 0<t.length?t[0]:e.target}function Wa(r){const n=r.type,e=r.currentTarget[Sa];if(e){var i=e[n];if(i){if(!r[Pa]&&(r[Pa]={},n.startsWith("touch"))){const e=r.changedTouches[0];if("touchstart"===n&&1===r.touches.length&&(Fa.touch.id=e.identifier),Fa.touch.id!==e.identifier)return;if(!(Ta||"touchstart"!==n&&"touchmove"!==n)){var t=r;const l=t.changedTouches[0],h=t.type;if("touchstart"===h)Fa.touch.x=l.clientX,Fa.touch.y=l.clientY,Fa.touch.scrollDecided=!1;else if("touchmove"===h&&!Fa.touch.scrollDecided){Fa.touch.scrollDecided=!0;const h=function(e){let r="auto";var n=Ua(e);for(let e,t=0;t<n.length;t++)if((e=n[t])[Da]){r=e[Da];break}return r}(t);let e=!1;var o=Math.abs(Fa.touch.x-l.clientX),s=Math.abs(Fa.touch.y-l.clientY);t.cancelable&&("none"===h?e=!0:"pan-x"===h?e=o<s:"pan-y"===h&&(e=s<o)),e?t.preventDefault():Za("track")}}}var a=r[Pa];if(!a.skip){for(let e,t=0;t<Va.length;t++)i[(e=Va[t]).name]&&!a[e.name]&&e.flow&&-1<e.flow.start.indexOf(r.type)&&e.reset&&e.reset();for(let e,t=0;t<Va.length;t++)i[(e=Va[t]).name]&&!a[e.name]&&(a[e.name]=!0,e[n](r))}}}}function Ga(e,t,r){if(za[t]){var i,o=e,e=t,t=r,r=za[e],s=r.deps,a=r.name;let n=o[Sa];n||(o[Sa]=n={});for(let e,t,r=0;r<s.length;r++)e=s[r],La&&Na(e)&&"click"!==e||((t=n[e])||(n[e]=t={_count:0}),0===t._count&&o.addEventListener(e,Wa,!Na(i=e)&&"touchend"!==i&&Ta&&Ba&&Aa?{passive:!0}:void 0),t[a]=(t[a]||0)+1,t._count=(t._count||0)+1);o.addEventListener(e,t),r.touchAction&&Ka(o,r.touchAction)}}function qa(t){Va.push(t),t.emits.forEach(e=>{za[e]=t})}function Ka(e,t){Ta&&e instanceof HTMLElement&&ua.run(()=>{e.style.touchAction=t}),e[Da]=t}function Xa(e,t,r){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(t.detail=r,Ca(e).dispatchEvent(t),t.defaultPrevented){const e=r.preventer||r.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Za(e){e=function(r){for(let t,e=0;e<Va.length;e++){t=Va[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===r)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Ja(e,t,r,n){t&&Xa(t,e,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:n,prevent:e=>Za(e)})}function Qa(e,t,r){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-r),5<=t)||5<=e)}function el(r,n,i){if(n){var o=r.moves[r.moves.length-2],s=r.moves[r.moves.length-1],a=s.x-r.x,l=s.y-r.y;let e,t=0;o&&(e=s.x-o.x,t=s.y-o.y),Xa(n,"track",{state:r.state,x:i.clientX,y:i.clientY,dx:a,dy:l,ddx:e,ddy:t,sourceEvent:i,hover:()=>{{var r=i.clientX,n=i.clientY;let e=document.elementFromPoint(r,n),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(r,n)))break;t&&(e=t)}return e}}})}}function tl(e,t,r){var n,i=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),s=ja(r||t);!s||Ha[s.localName]&&s.hasAttribute("disabled")||!(isNaN(i)||isNaN(o)||i<=25&&o<=25)&&("click"!==(i=t).type||0!==i.detail&&(o=ja(i)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),n=i.pageX,i=i.pageY,n>=o.left)&&n<=o.right&&i>=o.top&&i<=o.bottom)||e.prevent||Xa(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r})}qa({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){$a(this.info)},mousedown(e){if(Ra(e)){const t=ja(e),r=this;Ya(this.info,e=>{Ra(e)||(Ja("up",t,e),$a(r.info))},e=>{Ra(e)&&Ja("up",t,e),$a(r.info)}),Ja("down",t,e)}},touchstart(e){Ja("down",ja(e),e.changedTouches[0],e)},touchend(e){Ja("up",ja(e),e.changedTouches[0],e)}}),qa({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,$a(this.info)},mousedown(e){if(Ra(e)){const n=ja(e),i=this,t=e=>{var t=e.clientX,r=e.clientY;Qa(i.info,t,r)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Za("tap"),i.info.addMove({x:t,y:r}),Ra(e)||(i.info.state="end",$a(i.info)),n&&el(i.info,n,e),i.info.started=!0)};Ya(this.info,t,e=>{i.info.started&&t(e),$a(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(e){var t=ja(e),e=e.changedTouches[0],r=e.clientX,n=e.clientY;Qa(this.info,r,n)&&("start"===this.info.state&&Za("tap"),this.info.addMove({x:r,y:n}),el(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(e){var t=ja(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),el(this.info,t,e))}}),qa({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){Ra(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Ra(e)&&tl(this.info,e)},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(e){tl(this.info,e.changedTouches[0],e)}});const rl=x(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),nl=x(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});let il=!1;function ol(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function sl(e){var t=e.length;if(t<2)return e;for(var r,n,t=Math.ceil(t/2),i=sl(e.slice(0,t)),o=sl(e.slice(t)),s=[];0<i.length&&0<o.length;)r=i[0],n=o[0],r=Math.max(r.tabIndex,0),n=Math.max(n.tabIndex,0),s.push(((0===r||0===n?r<n:n<r)?o:i).shift());return s.concat(i,o)}function al(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{il=!0},{capture:!0}),window.addEventListener("mousedown",()=>{il=!1},{capture:!0});const ll=x(e=>class extends e{get _keyboardActive(){return il}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),hl=e=>class extends rl(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}},ul=e=>{return class extends(e=hl(ll(e)),class extends rl(nl(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Ga(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ga(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}};w("vaadin-button",xa,{moduleId:"vaadin-button-styles"});class dl extends ul(fa(or(Qs(Gs)))){static get is(){return"vaadin-button"}static get template(){return js`
|
1128
1128
|
<div class="vaadin-button-container">
|
1129
1129
|
<span part="prefix" aria-hidden="true">
|
1130
1130
|
<slot name="prefix"></slot>
|
@@ -1838,7 +1838,7 @@
|
|
1838
1838
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
1839
1839
|
--_lumo-text-field-overflow-mask-image: none;
|
1840
1840
|
}
|
1841
|
-
`],{moduleId:"lumo-date-picker"});let cl=!1,pl=[],ml=[];function fl(){cl=!0,requestAnimationFrame(function(){cl=!1;for(var e=pl;e.length;)_l(e.shift());setTimeout(function(){var r=ml;for(let e=0,t=r.length;e<t;e++)_l(r.shift())})})}function _l(e){var t=e[0],r=e[1],n=e[2];try{r.apply(t,n)}catch(e){setTimeout(()=>{throw e})}}function yl(e,t,r){cl||fl(),ml.push([e,t,r])}Ba=e=>e.test(navigator.userAgent),s=e=>e.test(navigator.platform);Ba(/Android/u),Ba(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const gl=Ba(/Firefox/u),vl=s(/^iPad/u)||s(/^Mac/u)&&1<navigator.maxTouchPoints,bl=s(/^iPhone/u)||vl,wl=(Ba(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})());let El=new WeakMap,xl=new WeakMap,Al={},Cl=0;const Tl=e=>e&&e.nodeType===Node.ELEMENT_NODE,Sl=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Pl=(e,t=document.body,r="data-aria-hidden")=>{e=Array.from(Array.isArray(e)?e:[e]);t&&e.push(...Array.from(t.querySelectorAll("[aria-live]")));{var i=r,o="aria-hidden";n=t,e=Array.isArray(e)?e:[e];var n,e=Tl(n)?e.map(t=>{if(Tl(t)){let e=t;for(;e&&e!==n;){if(n.contains(e))return t;e=e.getRootNode().host}Sl(t,"is not contained inside",n)}else Sl(t,"is not a valid element");return null}).filter(e=>Boolean(e)):(Sl(n,"is not a valid element"),[]);Al[i]||(Al[i]=new WeakMap);const s=Al[i],a=[],l=new Set,h=new Set(e),u=e=>{var t;e&&!l.has(e)&&(l.add(e),(t=e.assignedSlot)&&u(t),u(e.parentNode||e.host))},d=(e.forEach(u),e=>{var t;e&&!h.has(e)&&((t=e.shadowRoot)?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))d(e);else{const t=e.getAttribute(o),r=null!==t&&"false"!==t,l=(El.get(e)||0)+1,n=(s.get(e)||0)+1;El.set(e,l),s.set(e,n),a.push(e),1===l&&r&&xl.set(e,!0),1===n&&e.setAttribute(i,"true"),r||e.setAttribute(o,"true")}})});return d(t),l.clear(),Cl+=1,()=>{a.forEach(e=>{var t=El.get(e)-1,r=s.get(e)-1;El.set(e,t),s.set(e,r),t||(xl.has(e)?xl.delete(e):e.removeAttribute(o)),r||e.removeAttribute(i)}),--Cl||(El=new WeakMap,El=new WeakMap,xl=new WeakMap,Al={})}}};class Dl{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){var e=this.callback();this.__showOthers=Pl(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}class kl{saveFocus(e){this.focusNode=e||ol()}restoreFocus(){const e=this.focusNode;e&&(ol()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}const Ol=[];class Ml{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function t(e,r){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(i=e.style).visibility||"none"===i.display||"hidden"===(i=window.getComputedStyle(e)).visibility||"none"===i.display)return!1;var n,i=e,e=!(n=e=i).matches('[tabindex="-1"]')&&(n.matches("input, select, textarea, button, object")?n.matches(":not([disabled])"):n.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(n=e.getAttribute("tabindex")||0,Number(n)):-1;let o=0<e;0<=e&&r.push(i);return[..."slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children].forEach(e=>{o=t(e,r)||o}),o}(this.__trapNode,e=[])?sl(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(al).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ol.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ol.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(Ol).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,r=this.__focusedElementIndex,r=t[(t.length+r+(e?-1:1))%t.length];r.focus(),"input"===r.localName&&r.select()}}const Nl=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),Il=e=>{return class extends(e=e,e=class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return this===Nl().pop()}bringToFront(){let e="";var t=Nl().filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Nl().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=Nl();(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}},class extends Qs(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Dl(this),this.__focusTrapController=new Ml(this),this.__focusRestorationController=new kl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){var e=ol();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var r=e.ownerDocument;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}}){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),bl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){var e,t,r;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight,t&&e<r?this.style.setProperty("--vaadin-overlay-viewport-bottom",r-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,r,n){var i=this._oldOwner!==t||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=t,this._oldRenderer!==e),t=(this._oldRenderer=e,this._oldOpened!==n);this._oldOpened=n,r&&(this.innerHTML="",delete this._$litPart$),n&&e&&(r||t||i)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),yl(this,()=>{this._trapFocus();var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const r=`__${e}Handler`,n=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",n),delete this[r])};this[r]=n,this.addEventListener("animationend",n)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._shouldCloseOnOutsideClick(e)&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}}},Bl={start:"top",end:"bottom"},Ll={start:"left",end:"right"},Hl=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})});w("vaadin-date-picker-overlay",[m`
|
1841
|
+
`],{moduleId:"lumo-date-picker"});let cl=!1,pl=[],ml=[];function fl(){cl=!0,requestAnimationFrame(function(){cl=!1;for(var e=pl;e.length;)_l(e.shift());setTimeout(function(){var r=ml;for(let e=0,t=r.length;e<t;e++)_l(r.shift())})})}function _l(e){var t=e[0],r=e[1],n=e[2];try{r.apply(t,n)}catch(e){setTimeout(()=>{throw e})}}function yl(e,t,r){cl||fl(),ml.push([e,t,r])}Ia=e=>e.test(navigator.userAgent),s=e=>e.test(navigator.platform);Ia(/Android/u),Ia(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const gl=Ia(/Firefox/u),vl=s(/^iPad/u)||s(/^Mac/u)&&1<navigator.maxTouchPoints,bl=s(/^iPhone/u)||vl,wl=(Ia(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})());let El=new WeakMap,xl=new WeakMap,Al={},Cl=0;const Tl=e=>e&&e.nodeType===Node.ELEMENT_NODE,Sl=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Pl=(e,t=document.body,r="data-aria-hidden")=>{e=Array.from(Array.isArray(e)?e:[e]);t&&e.push(...Array.from(t.querySelectorAll("[aria-live]")));{var i=r,o="aria-hidden";n=t,e=Array.isArray(e)?e:[e];var n,e=Tl(n)?e.map(t=>{if(Tl(t)){let e=t;for(;e&&e!==n;){if(n.contains(e))return t;e=e.getRootNode().host}Sl(t,"is not contained inside",n)}else Sl(t,"is not a valid element");return null}).filter(e=>Boolean(e)):(Sl(n,"is not a valid element"),[]);Al[i]||(Al[i]=new WeakMap);const s=Al[i],a=[],l=new Set,h=new Set(e),u=e=>{var t;e&&!l.has(e)&&(l.add(e),(t=e.assignedSlot)&&u(t),u(e.parentNode||e.host))},d=(e.forEach(u),e=>{var t;e&&!h.has(e)&&((t=e.shadowRoot)?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))d(e);else{const t=e.getAttribute(o),r=null!==t&&"false"!==t,l=(El.get(e)||0)+1,n=(s.get(e)||0)+1;El.set(e,l),s.set(e,n),a.push(e),1===l&&r&&xl.set(e,!0),1===n&&e.setAttribute(i,"true"),r||e.setAttribute(o,"true")}})});return d(t),l.clear(),Cl+=1,()=>{a.forEach(e=>{var t=El.get(e)-1,r=s.get(e)-1;El.set(e,t),s.set(e,r),t||(xl.has(e)?xl.delete(e):e.removeAttribute(o)),r||e.removeAttribute(i)}),--Cl||(El=new WeakMap,El=new WeakMap,xl=new WeakMap,Al={})}}};class Dl{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){var e=this.callback();this.__showOthers=Pl(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}class kl{saveFocus(e){this.focusNode=e||ol()}restoreFocus(){const e=this.focusNode;e&&(ol()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}const Ol=[];class Ml{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function t(e,r){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(i=e.style).visibility||"none"===i.display||"hidden"===(i=window.getComputedStyle(e)).visibility||"none"===i.display)return!1;var n,i=e,e=!(n=e=i).matches('[tabindex="-1"]')&&(n.matches("input, select, textarea, button, object")?n.matches(":not([disabled])"):n.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(n=e.getAttribute("tabindex")||0,Number(n)):-1;let o=0<e;0<=e&&r.push(i);return[..."slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children].forEach(e=>{o=t(e,r)||o}),o}(this.__trapNode,e=[])?sl(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(al).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ol.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ol.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(Ol).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,r=this.__focusedElementIndex,r=t[(t.length+r+(e?-1:1))%t.length];r.focus(),"input"===r.localName&&r.select()}}const Nl=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),Bl=e=>{return class extends(e=e,e=class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return this===Nl().pop()}bringToFront(){let e="";var t=Nl().filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Nl().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=Nl();(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}},class extends Qs(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Dl(this),this.__focusTrapController=new Ml(this),this.__focusRestorationController=new kl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){var e=ol();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var r=e.ownerDocument;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}}){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),bl&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){var e,t,r;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight,t&&e<r?this.style.setProperty("--vaadin-overlay-viewport-bottom",r-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,r,n){var i=this._oldOwner!==t||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=t,this._oldRenderer!==e),t=(this._oldRenderer=e,this._oldOpened!==n);this._oldOpened=n,r&&(this.innerHTML="",delete this._$litPart$),n&&e&&(r||t||i)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),yl(this,()=>{this._trapFocus();var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const r=`__${e}Handler`,n=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",n),delete this[r])};this[r]=n,this.addEventListener("animationend",n)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._shouldCloseOnOutsideClick(e)&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}}},Il={start:"top",end:"bottom"},Ll={start:"left",end:"right"},Hl=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})});w("vaadin-date-picker-overlay",[m`
|
1842
1842
|
:host {
|
1843
1843
|
z-index: 200;
|
1844
1844
|
position: fixed;
|
@@ -1911,7 +1911,7 @@
|
|
1911
1911
|
outline: 3px solid;
|
1912
1912
|
}
|
1913
1913
|
}
|
1914
|
-
`],{moduleId:"vaadin-date-picker-overlay-styles"});class Rl extends(a=
|
1914
|
+
`],{moduleId:"vaadin-date-picker-overlay-styles"});class Rl extends(a=Bl(Zs(or(Gs))),class extends a{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e=e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e.assignedSlot||e.parentNode:(t.push(e),e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Hl.unobserve(e),t)&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Hl.observe(e)),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){var e,t,r,n,i,o;this.positionTarget&&this.opened&&(o=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(o),this.style.justifyContent=e?"flex-start":"flex-end",r=this.__isRTL,t=this.__shouldAlignStartHorizontally(o,r),this.style.alignItems=(r=!r&&t||r&&!t)?"flex-start":"flex-end",n=this.getBoundingClientRect(),i=this.__calculatePositionInOneDimension(o,n,this.noVerticalOverlap,Il,this,e),o=this.__calculatePositionInOneDimension(o,n,this.noHorizontalOverlap,Ll,this,t),Object.assign(this.style,i,o),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r))}__shouldAlignStartHorizontally(e,t){var r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth),n=(this.__oldContentWidth=this.$.overlay.offsetWidth,Math.min(window.innerWidth,document.documentElement.clientWidth)),t=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,r,n,this.__margins,t,this.noHorizontalOverlap,Ll)}__shouldAlignStartVertically(e){var t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight),r=(this.__oldContentHeight=this.$.overlay.offsetHeight,Math.min(window.innerHeight,document.documentElement.clientHeight)),n="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,r,this.__margins,n,this.noVerticalOverlap,Il)}__shouldAlignStart(e,t,r,n,i,o,s){r=r-e[o?s.end:s.start]-n[s.end],e=e[o?s.start:s.end]-n[s.start],o=i?r:e;return i===((i?e:r)<o||t<o)}__adjustBottomProperty(e,t,r){let n;if(e===t.end){if(t.end===Il.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);r>e&&this.__oldViewportHeight&&(n=r-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===Ll.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);r>e&&this.__oldViewportWidth&&(n=r-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return n}__calculatePositionInOneDimension(e,t,r,n,i,o){var s=o?n.start:n.end,a=o?n.end:n.start,i=parseFloat(i.style[s]||getComputedStyle(i)[s]),l=this.__adjustBottomProperty(s,n,i),t=t[o?n.start:n.end]-e[r===o?n.end:n.start];return{[s]:l?l+"px":i+t*(o?-1:1)+"px",[a]:""}}}){static get is(){return"vaadin-date-picker-overlay"}static get template(){return js`
|
1915
1915
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
1916
1916
|
<div part="overlay" id="overlay">
|
1917
1917
|
<div part="content" id="content">
|
@@ -1927,7 +1927,7 @@
|
|
1927
1927
|
</style>
|
1928
1928
|
<div part="year-number">[[year]]</div>
|
1929
1929
|
<div part="year-separator" aria-hidden="true"></div>
|
1930
|
-
`}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}function Xl(e,t,r,n,i){let o;i=(n=i&&(o="object"==typeof r&&null!==r)?e.__dataTemp[t]:n)!==r&&(n==n||r==r);return o&&i&&(e.__dataTemp[t]=r),i}Gn(Kl);e=x(e=>class extends e{_shouldPropertyChange(e,t,r){return Xl(this,e,t,r,!0)}}),sr=x(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,r){return Xl(this,e,t,r,this.mutableData)}});e._mutablePropertyChange=Xl;let Zl=null;function Jl(){return Zl}Jl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Jl,writable:!0}});const Ql=Rs(Jl),eh=e(Ql);class th extends Rs(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){var n;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,r(e)}):(n=this.__dataHost.__dataHost)&&n._addEventListenerToNode(e,t,r)}_showHideChildren(e){var t=e,r=this.children;for(let e=0;e<r.length;e++){var n=r[e];if(Boolean(t)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)t?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(t)n.__polymerReplaced__=document.createComment("hidden-slot"),A(A(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const t=n.__polymerReplaced__;t&&A(A(t).parentNode).replaceChild(n,t)}else n.style&&(t?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=t,n._showHideChildren&&n._showHideChildren(t)}}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}th.prototype.__dataHost,th.prototype.__templatizeOptions,th.prototype._methodHost,th.prototype.__templatizeOwner,th.prototype.__hostProps;const rh=e(th);function nh(e){e=e.__dataHost;return e&&e._methodHost||e}function ih(e,t,r){let n=r.mutableData?rh:th;var i,o=class extends(n=sh.mixin?sh.mixin(n):n){},s=(o.prototype.__templatizeOptions=r,o.prototype._bindTemplate(e),o),a=t,l=r,h=a.hostProps||{};for(i in l.instanceProps){delete h[i];var u=l.notifyInstanceProp;u&&s.prototype._addPropertyEffect(i,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(n){return function(e,t,r){n.call(e.__templatizeOwner,e,t,r[t])}}((i,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in h)a.hasHostProps||(a.hasHostProps=!0),s.prototype._addPropertyEffect(d,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}});return o}function oh(t,r,n,i){var o=n.forwardHostProp;if(o&&r.hasHostProps){var s,a="template"==t.localName;let e=r.templatizeTemplateClass;if(!e){if(a){class i extends(n.mutableData?eh:Ql){}e=r.templatizeTemplateClass=i}else{const n=t.constructor;class i extends n{}e=r.templatizeTemplateClass=i}for(s in r.hostProps)e.prototype._addPropertyEffect("_host_"+s,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(n){return function(e,t,r){n.call(e.__templatizeOwner,t.substring(6),r[t])}}((s,o))}),e.prototype._createNotifyingProperty("_host_"+s);if(ao&&i){var l=n;const d=i.constructor._properties,c=r["propertyEffects"],p=l["instanceProps"];for(var h in c)if(!(d[h]||p&&p[h])){const l=c[h];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),a)n=t,i=e,Zl=n,Object.setPrototypeOf(n,i.prototype),new i,Zl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const n=r.hostProps;for(var u in n)if(u="_host_"+u,u in t){const n=t[u];delete t[u],t.__data[u]=n}}}}function sh(e,t,r){if(io&&!nh(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let n=((e.__templatizeOwner=t)?t.constructor:th)._parseTemplate(e),i=n.templatizeInstanceClass;i||(i=ih(e,n,r),n.templatizeInstanceClass=i);var o=nh(e),r=(oh(e,n,r,o),class extends i{});return r.prototype._methodHost=o,r.prototype.__dataHost=e,r.prototype.__templatizeOwner=t,r.prototype.__hostProps=n.hostProps,r}class ah{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,lh.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),lh.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,r){return e instanceof ah?e._cancelAsync():e=new ah,e.setConfig(t,r),e}}let lh=new Set;function hh(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(lh.size),lh.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}let uh=!1;class dh extends sr(Gs){static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!mo,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),so&&!eo?uh||(uh=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=A(A(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=sh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(r,n){var i=this.__instances;for(let e,t=0;t<i.length&&(e=i[t]);t++)e.forwardHostProp(r,n)},notifyInstanceProp:function(e,t,r){var n,i;((n=this.as)===(i=t)||Mo(n,i)||No(n,i))&&(n=e[this.itemsIndexAs],t==this.as&&(this.items[n]=r),i=Io(this.as,JSCompiler_renameProperty("items",this)+"."+n,t),this.notifyPath(i,r))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if("string"!=typeof r)return r;{let e=r,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var r=this.__observePaths;for(let e=0;e<r.length;e++)0===t.indexOf(r[e])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=ah.debounce(this.__renderDebouncer,0<t?Ko.after(t):Xo,e.bind(this)),t=this.__renderDebouncer,lh.add(t)}render(){this.__debounceRender(this.__render),hh()}__render(){var e,t,r;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length),this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),mo&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(n){let t=new Array(n.length);for(let e=0;e<n.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,r)=>this.__filterFn(n[e],t,r))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(n[e],n[t])),t}__calculateLimit(t){let r=t;var n=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),e=Math.max(r-n,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-n,0),this.__chunkCount),r=Math.min(n+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){var n=this.__itemsIdxToInstIdx={};let i;for(i=0;i<t;i++){var o=this.__instances[i],s=r[i],a=e[s];n[s]=i,o?(o._setPendingProperty(this.as,a),o._setPendingProperty(this.indexAs,i),o._setPendingProperty(this.itemsIndexAs,s),o._flushProperties()):this.__insertInstance(a,i,s)}for(let e=this.__instances.length-1;e>=i;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],r=A(t.root);for(let e=0;e<t.children.length;e++){var n=t.children[e];r.appendChild(n)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){var n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=r,new this.__ctor(n)}__insertInstance(e,t,r){e=this.__stampInstance(e,t,r),r=this.__instances[t+1],r=r?r.children[0]:this;return A(A(this).parentNode).insertBefore(e.root,r),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),r=e.indexOf("."),n=r<0?e:e.substring(0,r);if(n==parseInt(n,10))return e=r<0?"":e.substring(r+1),this.__handleObservedPaths(e),r=this.__itemsIdxToInstIdx[n],(n=this.__instances[r])&&(r=this.as+(e?"."+e:""),n._setPendingPropertyOrPath(r,t,!1,!0),n._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,r=this.template,n=e;n;)if(t=n.__dataHost?n:n.__templatizeInstance){if(t.__dataHost==r)return t;n=t.__dataHost}else n=A(n).parentNode;return null}}customElements.define(dh.is,dh);u=e=>class extends ll(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Fl(e.date,this.focusedDate))}ready(){super.ready(),Ga(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){var n=new Date(0,0),i=(n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1),new Date(0,0));return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()+1),i.setDate(0),!(t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&0<=r.getDate()-t.getDate()||Yl(n,t,r)||Yl(i,t,r))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:r,weekdaysShort:n,firstDayOfWeek:i}=e,o=this._applyFirstDayOfWeek(n,i);return this._applyFirstDayOfWeek(r,i).map((e,t)=>({weekDay:e,weekDayShort:o[t]}))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some(e=>Fl(e,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Fl(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];var r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);for(var n=[],i=r.getMonth(),o=e.getMonth();r.getMonth()===o||r.getMonth()===i;)n.push(r.getMonth()===o?new Date(r.getTime()):null),this._dateAdd(r,1);return n}_getWeeks(e){return e.reduce((e,t,r)=>(r%7==0&&e.push([]),e[e.length-1].push(t),e),[])}_handleTap(e){this.ignoreTaps||this._notTapping||!e.target.date||e.target.hasAttribute("disabled")||(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(t){t=t.reduce((e,t)=>!e&&t?t:e);{let e=t.getDay();var r=4-(e=0===e?7:e),t=new Date(t.getTime()+24*r*3600*1e3),r,t=((r=new Date(0,0)).setFullYear(t.getFullYear()),t.getTime()-r.getTime()),r=Math.round(t/864e5);return Math.floor(r/7+1)}}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, `+this.i18n.weekdays[e.getDay()];return this._isToday(e)&&(t+=", "+this.i18n.today),t}};w("vaadin-month-calendar",m`
|
1930
|
+
`}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}function Xl(e,t,r,n,i){let o;i=(n=i&&(o="object"==typeof r&&null!==r)?e.__dataTemp[t]:n)!==r&&(n==n||r==r);return o&&i&&(e.__dataTemp[t]=r),i}Gn(Kl);e=x(e=>class extends e{_shouldPropertyChange(e,t,r){return Xl(this,e,t,r,!0)}}),sr=x(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,r){return Xl(this,e,t,r,this.mutableData)}});e._mutablePropertyChange=Xl;let Zl=null;function Jl(){return Zl}Jl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Jl,writable:!0}});const Ql=Rs(Jl),eh=e(Ql);class th extends Rs(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){var n;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,r(e)}):(n=this.__dataHost.__dataHost)&&n._addEventListenerToNode(e,t,r)}_showHideChildren(e){var t=e,r=this.children;for(let e=0;e<r.length;e++){var n=r[e];if(Boolean(t)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)t?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(t)n.__polymerReplaced__=document.createComment("hidden-slot"),A(A(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const t=n.__polymerReplaced__;t&&A(A(t).parentNode).replaceChild(n,t)}else n.style&&(t?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=t,n._showHideChildren&&n._showHideChildren(t)}}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}th.prototype.__dataHost,th.prototype.__templatizeOptions,th.prototype._methodHost,th.prototype.__templatizeOwner,th.prototype.__hostProps;const rh=e(th);function nh(e){e=e.__dataHost;return e&&e._methodHost||e}function ih(e,t,r){let n=r.mutableData?rh:th;var i,o=class extends(n=sh.mixin?sh.mixin(n):n){},s=(o.prototype.__templatizeOptions=r,o.prototype._bindTemplate(e),o),a=t,l=r,h=a.hostProps||{};for(i in l.instanceProps){delete h[i];var u=l.notifyInstanceProp;u&&s.prototype._addPropertyEffect(i,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(n){return function(e,t,r){n.call(e.__templatizeOwner,e,t,r[t])}}((i,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in h)a.hasHostProps||(a.hasHostProps=!0),s.prototype._addPropertyEffect(d,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}});return o}function oh(t,r,n,i){var o=n.forwardHostProp;if(o&&r.hasHostProps){var s,a="template"==t.localName;let e=r.templatizeTemplateClass;if(!e){if(a){class i extends(n.mutableData?eh:Ql){}e=r.templatizeTemplateClass=i}else{const n=t.constructor;class i extends n{}e=r.templatizeTemplateClass=i}for(s in r.hostProps)e.prototype._addPropertyEffect("_host_"+s,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(n){return function(e,t,r){n.call(e.__templatizeOwner,t.substring(6),r[t])}}((s,o))}),e.prototype._createNotifyingProperty("_host_"+s);if(ao&&i){var l=n;const d=i.constructor._properties,c=r["propertyEffects"],p=l["instanceProps"];for(var h in c)if(!(d[h]||p&&p[h])){const l=c[h];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),a)n=t,i=e,Zl=n,Object.setPrototypeOf(n,i.prototype),new i,Zl=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const n=r.hostProps;for(var u in n)if(u="_host_"+u,u in t){const n=t[u];delete t[u],t.__data[u]=n}}}}function sh(e,t,r){if(io&&!nh(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let n=((e.__templatizeOwner=t)?t.constructor:th)._parseTemplate(e),i=n.templatizeInstanceClass;i||(i=ih(e,n,r),n.templatizeInstanceClass=i);var o=nh(e),r=(oh(e,n,r,o),class extends i{});return r.prototype._methodHost=o,r.prototype.__dataHost=e,r.prototype.__templatizeOwner=t,r.prototype.__hostProps=n.hostProps,r}class ah{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,lh.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),lh.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,r){return e instanceof ah?e._cancelAsync():e=new ah,e.setConfig(t,r),e}}let lh=new Set;function hh(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(lh.size),lh.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}let uh=!1;class dh extends sr(Gs){static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!mo,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),so&&!eo?uh||(uh=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=A(A(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=sh(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(r,n){var i=this.__instances;for(let e,t=0;t<i.length&&(e=i[t]);t++)e.forwardHostProp(r,n)},notifyInstanceProp:function(e,t,r){var n,i;((n=this.as)===(i=t)||Mo(n,i)||No(n,i))&&(n=e[this.itemsIndexAs],t==this.as&&(this.items[n]=r),i=Bo(this.as,JSCompiler_renameProperty("items",this)+"."+n,t),this.notifyPath(i,r))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if("string"!=typeof r)return r;{let e=r,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var r=this.__observePaths;for(let e=0;e<r.length;e++)0===t.indexOf(r[e])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=ah.debounce(this.__renderDebouncer,0<t?Ko.after(t):Xo,e.bind(this)),t=this.__renderDebouncer,lh.add(t)}render(){this.__debounceRender(this.__render),hh()}__render(){var e,t,r;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length),this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),mo&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(n){let t=new Array(n.length);for(let e=0;e<n.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,r)=>this.__filterFn(n[e],t,r))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(n[e],n[t])),t}__calculateLimit(t){let r=t;var n=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),e=Math.max(r-n,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-n,0),this.__chunkCount),r=Math.min(n+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){var n=this.__itemsIdxToInstIdx={};let i;for(i=0;i<t;i++){var o=this.__instances[i],s=r[i],a=e[s];n[s]=i,o?(o._setPendingProperty(this.as,a),o._setPendingProperty(this.indexAs,i),o._setPendingProperty(this.itemsIndexAs,s),o._flushProperties()):this.__insertInstance(a,i,s)}for(let e=this.__instances.length-1;e>=i;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],r=A(t.root);for(let e=0;e<t.children.length;e++){var n=t.children[e];r.appendChild(n)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){var n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=r,new this.__ctor(n)}__insertInstance(e,t,r){e=this.__stampInstance(e,t,r),r=this.__instances[t+1],r=r?r.children[0]:this;return A(A(this).parentNode).insertBefore(e.root,r),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),r=e.indexOf("."),n=r<0?e:e.substring(0,r);if(n==parseInt(n,10))return e=r<0?"":e.substring(r+1),this.__handleObservedPaths(e),r=this.__itemsIdxToInstIdx[n],(n=this.__instances[r])&&(r=this.as+(e?"."+e:""),n._setPendingPropertyOrPath(r,t,!1,!0),n._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,r=this.template,n=e;n;)if(t=n.__dataHost?n:n.__templatizeInstance){if(t.__dataHost==r)return t;n=t.__dataHost}else n=A(n).parentNode;return null}}customElements.define(dh.is,dh);u=e=>class extends ll(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Fl(e.date,this.focusedDate))}ready(){super.ready(),Ga(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){var n=new Date(0,0),i=(n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1),new Date(0,0));return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()+1),i.setDate(0),!(t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&0<=r.getDate()-t.getDate()||Yl(n,t,r)||Yl(i,t,r))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:r,weekdaysShort:n,firstDayOfWeek:i}=e,o=this._applyFirstDayOfWeek(n,i);return this._applyFirstDayOfWeek(r,i).map((e,t)=>({weekDay:e,weekDayShort:o[t]}))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some(e=>Fl(e,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Fl(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];var r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);for(var n=[],i=r.getMonth(),o=e.getMonth();r.getMonth()===o||r.getMonth()===i;)n.push(r.getMonth()===o?new Date(r.getTime()):null),this._dateAdd(r,1);return n}_getWeeks(e){return e.reduce((e,t,r)=>(r%7==0&&e.push([]),e[e.length-1].push(t),e),[])}_handleTap(e){this.ignoreTaps||this._notTapping||!e.target.date||e.target.hasAttribute("disabled")||(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(t){t=t.reduce((e,t)=>!e&&t?t:e);{let e=t.getDay();var r=4-(e=0===e?7:e),t=new Date(t.getTime()+24*r*3600*1e3),r,t=((r=new Date(0,0)).setFullYear(t.getFullYear()),t.getTime()-r.getTime()),r=Math.round(t/864e5);return Math.floor(r/7+1)}}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, `+this.i18n.weekdays[e.getDay()];return this._isToday(e)&&(t+=", "+this.i18n.today),t}};w("vaadin-month-calendar",m`
|
1931
1931
|
:host {
|
1932
1932
|
display: block;
|
1933
1933
|
}
|
@@ -2105,7 +2105,7 @@
|
|
2105
2105
|
<slot name="today-button"></slot>
|
2106
2106
|
<slot name="cancel-button"></slot>
|
2107
2107
|
</div>
|
2108
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Gn(mh);const fh=x(e=>class extends ll(hl(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}}),_h=new WeakMap,yh=x(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const i=this.getRootNode(),o=(e=i,_h.has(e)||_h.set(e,new Set),_h.get(e));var e;this.slotStyles.forEach(e=>{var t,r,n;o.has(e)||(t=e,r=i,(n=document.createElement("style")).textContent=t,r===document?document.head.appendChild(n):r.insertBefore(n,r.firstChild),o.add(e))})}}),gh=x(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){var t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){e=e.composedPath()[0];this._hasInputValue=0<e.value.length}}),vh=new Map;function bh(e){return vh.has(e)||vh.set(e,new WeakMap),vh.get(e)}function wh(e,t){e&&e.removeAttribute(t)}function Eh(e,t){var r;e&&t&&((r=bh(t)).has(e)||(t=_a(e.getAttribute(t)),r.set(e,new Set(t))))}function xh(e,t,r={newId:null,oldId:null,fromUser:!1}){if(e&&t){var n,{newId:r,oldId:i,fromUser:o}=r,s=bh(t),a=s.get(e);if(!o&&a)return i&&a.delete(i),r&&a.add(r);o&&(a?r||s.delete(e):Eh(e,t),wh(e,t)),o=t,s=i,(n=_a((i=e).getAttribute(o))).delete(s),0!==n.size?i.setAttribute(o,ya(n)):i.removeAttribute(o);s=r||ya(a);s&&ga(e,t,s)}}class Ah{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){var r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){var t,r,n;this.__target&&(e?(Eh(r=this.__target,n="aria-labelledby"),wh(r,n),this.__target.setAttribute("aria-label",e)):this.__label&&(r=this.__target,n="aria-labelledby",r&&((t=(e=bh(n)).get(r))&&0!==t.size?ga(r,n,ya(t)):r.removeAttribute(n),e.delete(r)),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){xh(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){xh(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){xh(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){!this.__target||["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}}class Ch extends wa{constructor(e,t,r,n={}){super(e,t,r,{...n,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){var t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){var e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,r=t===this.node;"attributes"===e.type?r&&this.__updateNodeId(t):!r&&t.parentElement!==this.node||this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||0<e.children.length)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){var t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}class Th extends Ch{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){var{errorMessage:t,invalid:r}=this,r=Boolean(r&&t&&""!==t.trim());e&&(e.textContent=r?t:"",e.hidden=!r,r?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}class Sh extends Ch{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["helperText"];if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}class Ph extends Ch{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["label"];if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}const Dh=x(e=>class extends Qs(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ph(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){var e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}}),kh=x(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){var e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}}),Oh=x(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...r){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,r[t])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,r[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),Mh=x(e=>class extends Oh(kh(gh(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){e&&(e=this._hasValidConstraints(t),t=this.__previousHasConstraints&&!e,(this._hasValue||this.invalid)&&e?this.validate():t&&this._setInvalid(!1),this.__previousHasConstraints=e)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),Nh=e=>{return class extends yh(fh(Mh((e=nl(e),e=class extends gh(nl(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),wl||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}},class extends kh(Dh(Qs(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Ah(this),this._helperController=new Sh(this),this._errorController=new Th(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,t)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)})}})))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ca.debounce(this._preventInputDebouncer,la.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){var t;this.allowedCharPattern&&(t=e.clipboardData.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onDrop(e){var t;this.allowedCharPattern&&(t=e.dataTransfer.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(e){console.error(e)}}}};class Ih extends wa{constructor(e,r){super(e,"input","input",{initializer:(e,t)=>{t.value&&(e.value=t.value),t.type&&e.setAttribute("type",t.type),e.id=this.defaultId,"function"==typeof r&&r(e)},useUniqueId:!0})}}class Bh{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}const Lh=[m`
|
2108
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Gn(mh);const fh=x(e=>class extends ll(hl(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}}),_h=new WeakMap,yh=x(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const i=this.getRootNode(),o=(e=i,_h.has(e)||_h.set(e,new Set),_h.get(e));var e;this.slotStyles.forEach(e=>{var t,r,n;o.has(e)||(t=e,r=i,(n=document.createElement("style")).textContent=t,r===document?document.head.appendChild(n):r.insertBefore(n,r.firstChild),o.add(e))})}}),gh=x(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){var t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){e=e.composedPath()[0];this._hasInputValue=0<e.value.length}}),vh=new Map;function bh(e){return vh.has(e)||vh.set(e,new WeakMap),vh.get(e)}function wh(e,t){e&&e.removeAttribute(t)}function Eh(e,t){var r;e&&t&&((r=bh(t)).has(e)||(t=_a(e.getAttribute(t)),r.set(e,new Set(t))))}function xh(e,t,r={newId:null,oldId:null,fromUser:!1}){if(e&&t){var n,{newId:r,oldId:i,fromUser:o}=r,s=bh(t),a=s.get(e);if(!o&&a)return i&&a.delete(i),r&&a.add(r);o&&(a?r||s.delete(e):Eh(e,t),wh(e,t)),o=t,s=i,(n=_a((i=e).getAttribute(o))).delete(s),0!==n.size?i.setAttribute(o,ya(n)):i.removeAttribute(o);s=r||ya(a);s&&ga(e,t,s)}}class Ah{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){var r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){var t,r,n;this.__target&&(e?(Eh(r=this.__target,n="aria-labelledby"),wh(r,n),this.__target.setAttribute("aria-label",e)):this.__label&&(r=this.__target,n="aria-labelledby",r&&((t=(e=bh(n)).get(r))&&0!==t.size?ga(r,n,ya(t)):r.removeAttribute(n),e.delete(r)),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){xh(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){xh(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){xh(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){!this.__target||["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}}class Ch extends wa{constructor(e,t,r,n={}){super(e,t,r,{...n,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){var t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){var e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(e=>{var t=e.target,r=t===this.node;"attributes"===e.type?r&&this.__updateNodeId(t):!r&&t.parentElement!==this.node||this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return!!e&&(e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||0<e.children.length)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){var t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}class Th extends Ch{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){var{errorMessage:t,invalid:r}=this,r=Boolean(r&&t&&""!==t.trim());e&&(e.textContent=r?t:"",e.hidden=!r,r?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}class Sh extends Ch{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["helperText"];if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}class Ph extends Ch{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const e=this["label"];if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}const Dh=x(e=>class extends Qs(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ph(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){var e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}}),kh=x(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){var e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}}),Oh=x(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...r){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,r[t])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,r[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),Mh=x(e=>class extends Oh(kh(gh(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){e&&(e=this._hasValidConstraints(t),t=this.__previousHasConstraints&&!e,(this._hasValue||this.invalid)&&e?this.validate():t&&this._setInvalid(!1),this.__previousHasConstraints=e)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),Nh=e=>{return class extends yh(fh(Mh((e=nl(e),e=class extends gh(nl(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),wl||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}},class extends kh(Dh(Qs(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Ah(this),this._helperController=new Sh(this),this._errorController=new Th(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,t)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)})}})))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ca.debounce(this._preventInputDebouncer,la.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){var t;this.allowedCharPattern&&(t=e.clipboardData.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onDrop(e){var t;this.allowedCharPattern&&(t=e.dataTransfer.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(e){console.error(e)}}}};class Bh extends wa{constructor(e,r){super(e,"input","input",{initializer:(e,t)=>{t.value&&(e.value=t.value),t.type&&e.setAttribute("type",t.type),e.id=this.defaultId,"function"==typeof r&&r(e)},useUniqueId:!0})}}class Ih{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}const Lh=[m`
|
2109
2109
|
:host {
|
2110
2110
|
display: inline-flex;
|
2111
2111
|
outline: none;
|
@@ -2215,5 +2215,5 @@
|
|
2215
2215
|
></vaadin-date-picker-overlay>
|
2216
2216
|
|
2217
2217
|
<slot name="tooltip"></slot>
|
2218
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ih(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Bh(this.inputElement,this._labelController)),this._tooltipController=new Ea(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Yh(e,t){Qr(e,t)}Gn(Fh);const $h={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{title:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{title:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{title:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"}};function Uh(e,t,r){e=e.slice();return e[42]=t[r],e[44]=r,e}function zh(e,t,r){e=e.slice();return e[45]=t[r],e}function Vh(t){let i,o=t[13],s=[];for(let e=0;e<o.length;e+=1)s[e]=qh(zh(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=B()},m(t,r){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,r);V(t,i,r)},p(t,r){if(8199&r[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var n=zh(t,o,e);s[e]?s[e].p(n,r):(s[e]=qh(n),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){I(s,e),e&&j(i)}}}function jh(e){let r,n,i=e[14]("noBonusHistory")+"";return{c(){r=t("p"),n=W(i)},m(e,t){V(e,r,t),z(r,n)},p(e,t){16384&t[0]&&i!==(i=e[14]("noBonusHistory")+"")&&K(n,i)},d(e){e&&j(r)}}}function Wh(e){let r,n,i,o,s,a,l,h,u,d;return{c(){R(r=t("player-bonus-card"),"bonuswalletid",n=e[45].walletId),R(r,"bonusdate",i=e[45].granted),R(r,"bonusstatus",o=e[45].status),R(r,"bonusname",s=e[45].name),R(r,"bonustype",a=e[45].type),R(r,"bonusamount",l=e[45].extension.grantedPlayerCurrencyAmount),R(r,"bonuswageringamount",h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),R(r,"bonusremainingamount",u=e[45].currentAmount),R(r,"bonuscurrency",d=e[45].currency),R(r,"lang",e[0]),R(r,"clientstyling",e[1]),R(r,"clientstylingurl",e[2])},m(e,t){V(e,r,t)},p(e,t){8192&t[0]&&n!==(n=e[45].walletId)&&R(r,"bonuswalletid",n),8192&t[0]&&i!==(i=e[45].granted)&&R(r,"bonusdate",i),8192&t[0]&&o!==(o=e[45].status)&&R(r,"bonusstatus",o),8192&t[0]&&s!==(s=e[45].name)&&R(r,"bonusname",s),8192&t[0]&&a!==(a=e[45].type)&&R(r,"bonustype",a),8192&t[0]&&l!==(l=e[45].extension.grantedPlayerCurrencyAmount)&&R(r,"bonusamount",l),8192&t[0]&&h!==(h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&R(r,"bonuswageringamount",h),8192&t[0]&&u!==(u=e[45].currentAmount)&&R(r,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&R(r,"bonuscurrency",d),1&t[0]&&R(r,"lang",e[0]),2&t[0]&&R(r,"clientstyling",e[1]),4&t[0]&&R(r,"clientstylingurl",e[2])},d(e){e&&j(r)}}}function Gh(e){let r,n,i,o,s,a,l;return{c(){R(r=t("player-bonus-card"),"bonuswalletid",n=e[45].walletId),R(r,"bonusdate",i=e[45].granted),R(r,"bonusstatus",o=e[45].status),R(r,"bonusname",s=e[45].name),R(r,"bonustype",a=e[45].type),R(r,"bonuscurrency",l=e[45].currency),R(r,"lang",e[0]),R(r,"clientstyling",e[1]),R(r,"clientstylingurl",e[2])},m(e,t){V(e,r,t)},p(e,t){8192&t[0]&&n!==(n=e[45].walletId)&&R(r,"bonuswalletid",n),8192&t[0]&&i!==(i=e[45].granted)&&R(r,"bonusdate",i),8192&t[0]&&o!==(o=e[45].status)&&R(r,"bonusstatus",o),8192&t[0]&&s!==(s=e[45].name)&&R(r,"bonusname",s),8192&t[0]&&a!==(a=e[45].type)&&R(r,"bonustype",a),8192&t[0]&&l!==(l=e[45].currency)&&R(r,"bonuscurrency",l),1&t[0]&&R(r,"lang",e[0]),2&t[0]&&R(r,"clientstyling",e[1]),4&t[0]&&R(r,"clientstylingurl",e[2])},d(e){e&&j(r)}}}function qh(e){let r;function n(e){return"freeRound"===e[45].type?Gh:Wh}let i=n(e),o=i(e);return{c(){o.c(),r=B()},m(e,t){o.m(e,t),V(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),(o=i(e))&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&j(r)}}}function Kh(r){let i,o,n,e,s,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w=Array(r[11]),E=[];for(let e=0;e<w.length;e+=1)E[e]=Xh(Uh(r,w,e));return{c(){i=t("div"),o=t("span"),n=W("|<"),s=G(),a=t("span"),l=W("<"),u=G();for(let e=0;e<E.length;e+=1)E[e].c();d=G(),c=t("span"),p=W(">"),f=G(),_=t("span"),y=W(">|"),q(o,"class",e="BonusesFirst "+(0===r[12]?"Inactive":"")),q(a,"class",h="BonusesPrev "+(0===r[12]?"Inactive":"")),q(c,"class",m="BonusesNext "+(r[12]===r[11]-1?"Inactive":"")),q(_,"class",g="BonusesLast "+(r[12]===r[11]-1?"Inactive":"")),q(i,"class","BonusesPaginationWrapper "+(r[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){V(e,i,t),z(i,o),z(o,n),z(i,s),z(i,a),z(a,l),z(i,u);for(let e=0;e<E.length;e+=1)E[e]&&E[e].m(i,null);z(i,d),z(i,c),z(c,p),z(i,f),z(i,_),z(_,y),v||(b=[Y(o,"click",r[26]),Y(a,"click",r[27]),Y(c,"click",r[29]),Y(_,"click",r[30])],v=!0)},p(t,r){if(4096&r[0]&&e!==(e="BonusesFirst "+(0===t[12]?"Inactive":""))&&q(o,"class",e),4096&r[0]&&h!==(h="BonusesPrev "+(0===t[12]?"Inactive":""))&&q(a,"class",h),137216&r[0]){let e;for(w=Array(t[11]),e=0;e<w.length;e+=1){var n=Uh(t,w,e);E[e]?E[e].p(n,r):(E[e]=Xh(n),E[e].c(),E[e].m(i,d))}for(;e<E.length;e+=1)E[e].d(1);E.length=w.length}6144&r[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&q(c,"class",m),6144&r[0]&&g!==(g="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&q(_,"class",g)},d(e){e&&j(i),I(E,e),v=!1,D(b)}}}function Xh(r){let n,i,o,s,a,e=r[44]+1+"";function l(){return r[28](r[44])}return{c(){n=t("span"),i=W(e),q(n,"class",o="BonusesPage "+(r[44]===r[12]?"BonusPageActive":""))},m(e,t){V(e,n,t),z(n,i),s||(a=Y(n,"click",l),s=!0)},p(e,t){r=e,4096&t[0]&&o!==(o="BonusesPage "+(r[44]===r[12]?"BonusPageActive":""))&&q(n,"class",o)},d(e){e&&j(n),s=!1,a()}}}function Zh(r){let n,i=function(r){let n,i,o,s,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,E,x,A,C,T,S,P,D=r[14]("title")+"",k=r[14]("dateFrom")+"",O=r[14]("dateTo")+"",M=r[14]("dateFilter")+"",N=r[15]&&function(r){let n,i,o,s,a,l,h,u,d,c,p,m,f,_=r[14]("title")+"";return{c(){n=t("div"),i=F("svg"),o=F("defs"),s=F("style"),a=W(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=F("g"),h=F("g"),u=F("path"),d=G(),c=t("h2"),p=W(_),q(u,"class","aaa"),q(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),q(u,"transform","translate(15 15) rotate(180)"),q(h,"transform","translate(20 158)"),q(l,"transform","translate(-20 -158)"),q(i,"xmlns","http://www.w3.org/2000/svg"),q(i,"width","15"),q(i,"height","15"),q(i,"viewBox","0 0 15 15"),q(c,"class","BonusesTitleMobile"),q(n,"class","MenuReturnButton")},m(e,t){V(e,n,t),z(n,i),z(i,o),z(o,s),z(s,a),z(i,l),z(l,h),z(h,u),z(n,d),z(n,c),z(c,p),m||(f=Y(n,"click",r[22]),m=!0)},p(e,t){16384&t[0]&&_!==(_=e[14]("title")+"")&&K(p,_)},d(e){e&&j(n),m=!1,f()}}}(r);function I(e){return 0===e[13].length?jh:Vh}let B=I(r),L=B(r),H=0!==r[13].length&&Kh(r);return{c(){n=t("div"),N&&N.c(),i=G(),o=t("h2"),s=W(D),a=G(),l=t("div"),h=t("div"),u=t("div"),d=t("label"),c=W(k),p=G(),m=t("vaadin-date-picker"),f=G(),_=t("div"),y=t("label"),g=W(O),v=G(),b=t("vaadin-date-picker"),w=G(),E=t("button"),x=W(M),A=G(),C=t("div"),L.c(),T=G(),H&&H.c(),q(o,"class","BonusesTitle "+(r[15]?"BonusesTitleNone":"")),q(o,"part","BonusesTitle "+(r[15]?"BonusesTitleNone":"")),q(d,"for","BonusCalendarStartDate"),R(m,"max",r[6]),R(m,"value",r[7]),R(m,"placeholder","From"),R(m,"class","VaadinDatePicker"),q(u,"class","BonusesCalendarStartDate "+(r[15]?"BonusesCalendarMobile":"")),q(y,"for","BonusesCalendarEndDate"),R(b,"max",r[6]),R(b,"value",r[6]),R(b,"placeholder","To"),R(b,"class","VaadinDatePicker"),q(_,"class","BonusesCalendarEndDate "+(r[15]?"BonusesCalendarMobile":"")),q(h,"class","BonusesCalendarContainer "+(r[15]?"BonusesCalendarContainerMobile":"")),q(E,"class","BonusesCalendarFilter "+(r[15]?"BonusesCalendarFilterMobile":"")),q(l,"class","BonusCalendarWrapper "+(r[15]?"BonusCalendarWrapperMobile":"")),q(C,"class","BonusesGrid "+(r[15]?"BonusesGridMobile":"")),q(n,"class","BonusesWrapper "+(r[15]?"BonusesWrapperMobile":""))},m(e,t){V(e,n,t),N&&N.m(n,null),z(n,i),z(n,o),z(o,s),z(n,a),z(n,l),z(l,h),z(h,u),z(u,d),z(d,c),z(u,p),z(u,m),r[23](m),z(h,f),z(h,_),z(_,y),z(y,g),z(_,v),z(_,b),r[24](b),z(l,w),z(l,E),z(E,x),z(n,A),z(n,C),L.m(C,null),z(n,T),H&&H.m(n,null),S||(P=Y(E,"click",r[25]),S=!0)},p(e,t){e[15]&&N.p(e,t),16384&t[0]&&D!==(D=e[14]("title")+"")&&K(s,D),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&K(c,k),64&t[0]&&R(m,"max",e[6]),128&t[0]&&R(m,"value",e[7]),16384&t[0]&&O!==(O=e[14]("dateTo")+"")&&K(g,O),64&t[0]&&R(b,"max",e[6]),64&t[0]&&R(b,"value",e[6]),16384&t[0]&&M!==(M=e[14]("dateFilter")+"")&&K(x,M),B===(B=I(e))&&L?L.p(e,t):(L.d(1),(L=B(e))&&(L.c(),L.m(C,null))),0!==e[13].length?H?H.p(e,t):((H=Kh(e)).c(),H.m(n,null)):H&&(H.d(1),H=null)},d(e){e&&j(n),N&&N.d(),r[23](null),r[24](null),L.d(),H&&H.d(),S=!1,P()}}}(r);return{c(){n=t("div"),i.c(),this.c=U},m(e,t){V(e,n,t),i.m(n,null),r[31](n)},p(e,t){i.p(e,t)},i:U,o:U,d(e){e&&j(n),i.d(),r[31](null)}}}function Jh(t,e,n){let r;N(t,In,e=>n(14,r=e));let i,o,s,a,l,{endpoint:h=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:c="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,_=window.navigator.userAgent,y="PC"!==Bn(_),g=(a=Rn(new Date).format("YYYY-MM-DD"),l=Rn(new Date).subtract(3,"months").format("YYYY-MM-DD")),v=a,b=0,w=0,E=0,x=0,A=0,C=[];Object.keys($h).forEach(e=>{Yh(e,$h[e])});const T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},S=t=>{var e=new URL(`${h}/v1/player/${d}/bonusWallet`),r=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(g).toISOString()}~${new Date(v).toISOString()}]`,r=(e.searchParams.append("filter",r),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,r).then(e=>e.json()).then(e=>{n(11,x=Math.ceil(e.total/6)),0<=t-6&&n(8,b=t-6),t+6<e.total&&n(9,w=t+6),n(10,E=6*(x-1)),n(12,A=t/6),n(13,C=e.items)},e=>{console.error(e)}),window.postMessage({type:"ScrollToTop"},window.location.href)},P=e=>{g=e.target.value},D=e=>{v=e.target.value};e=()=>()=>{o.removeEventListener("change",P),s.removeEventListener("change",D)},function(){if(H)return H;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&n(18,h=e.endpoint),"session"in e&&n(19,u=e.session),"playerid"in e&&n(20,d=e.playerid),"lang"in e&&n(0,c=e.lang),"clientstyling"in e&&n(1,p=e.clientstyling),"clientstylingurl"in e&&n(2,m=e.clientstylingurl),"translationurl"in e&&n(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&c&&(e=c,bn.set(e)),48&t.$$.dirty[0]&&o&&s&&(o.addEventListener("change",P,!1),s.addEventListener("change",D,!1)),1835008&t.$$.dirty[0]&&u&&d&&h&&S(0),12&t.$$.dirty[0]&&m&&i){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&p&&i&&((e=document.createElement("style")).innerHTML=p,i.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Yh(e,t[e])})}).catch(e=>{console.log(e)})},[c,p,m,i,o,s,a,l,b,w,E,x,A,C,r,y,T,S,h,u,d,f,()=>T(),function(e){Z[e?"unshift":"push"](()=>{o=e,n(4,o)})},function(e){Z[e?"unshift":"push"](()=>{s=e,n(5,s)})},()=>S(0),()=>S(0),()=>S(b),e=>S(6*e),()=>S(w),()=>S(E),function(e){Z[e?"unshift":"push"](()=>{i=e,n(3,i)})}]}class Qh extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),se(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Jh,Zh,O,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&V(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),c()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),c()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),c()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),c()}}return customElements.define=(Rh=customElements.define,function(...e){try{return Rh.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-bonus-history")||customElements.define("player-bonus-history",Qh),Qh});
|
2218
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Bh(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ih(this.inputElement,this._labelController)),this._tooltipController=new Ea(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Yh(e,t){Qr(e,t)}Gn(Fh);const $h={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{title:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{title:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{title:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{title:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."}};function Uh(e,t,r){e=e.slice();return e[42]=t[r],e[44]=r,e}function zh(e,t,r){e=e.slice();return e[45]=t[r],e}function Vh(t){let i,o=t[13],s=[];for(let e=0;e<o.length;e+=1)s[e]=qh(zh(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=I()},m(t,r){for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,r);V(t,i,r)},p(t,r){if(8199&r[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var n=zh(t,o,e);s[e]?s[e].p(n,r):(s[e]=qh(n),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){B(s,e),e&&j(i)}}}function jh(e){let r,n,i=e[14]("noBonusHistory")+"";return{c(){r=t("p"),n=W(i)},m(e,t){V(e,r,t),z(r,n)},p(e,t){16384&t[0]&&i!==(i=e[14]("noBonusHistory")+"")&&K(n,i)},d(e){e&&j(r)}}}function Wh(e){let r,n,i,o,s,a,l,h,u,d;return{c(){R(r=t("player-bonus-card"),"bonuswalletid",n=e[45].walletId),R(r,"bonusdate",i=e[45].granted),R(r,"bonusstatus",o=e[45].status),R(r,"bonusname",s=e[45].name),R(r,"bonustype",a=e[45].type),R(r,"bonusamount",l=e[45].extension.grantedPlayerCurrencyAmount),R(r,"bonuswageringamount",h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),R(r,"bonusremainingamount",u=e[45].currentAmount),R(r,"bonuscurrency",d=e[45].currency),R(r,"lang",e[0]),R(r,"clientstyling",e[1]),R(r,"clientstylingurl",e[2])},m(e,t){V(e,r,t)},p(e,t){8192&t[0]&&n!==(n=e[45].walletId)&&R(r,"bonuswalletid",n),8192&t[0]&&i!==(i=e[45].granted)&&R(r,"bonusdate",i),8192&t[0]&&o!==(o=e[45].status)&&R(r,"bonusstatus",o),8192&t[0]&&s!==(s=e[45].name)&&R(r,"bonusname",s),8192&t[0]&&a!==(a=e[45].type)&&R(r,"bonustype",a),8192&t[0]&&l!==(l=e[45].extension.grantedPlayerCurrencyAmount)&&R(r,"bonusamount",l),8192&t[0]&&h!==(h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&R(r,"bonuswageringamount",h),8192&t[0]&&u!==(u=e[45].currentAmount)&&R(r,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&R(r,"bonuscurrency",d),1&t[0]&&R(r,"lang",e[0]),2&t[0]&&R(r,"clientstyling",e[1]),4&t[0]&&R(r,"clientstylingurl",e[2])},d(e){e&&j(r)}}}function Gh(e){let r,n,i,o,s,a,l;return{c(){R(r=t("player-bonus-card"),"bonuswalletid",n=e[45].walletId),R(r,"bonusdate",i=e[45].granted),R(r,"bonusstatus",o=e[45].status),R(r,"bonusname",s=e[45].name),R(r,"bonustype",a=e[45].type),R(r,"bonuscurrency",l=e[45].currency),R(r,"lang",e[0]),R(r,"clientstyling",e[1]),R(r,"clientstylingurl",e[2])},m(e,t){V(e,r,t)},p(e,t){8192&t[0]&&n!==(n=e[45].walletId)&&R(r,"bonuswalletid",n),8192&t[0]&&i!==(i=e[45].granted)&&R(r,"bonusdate",i),8192&t[0]&&o!==(o=e[45].status)&&R(r,"bonusstatus",o),8192&t[0]&&s!==(s=e[45].name)&&R(r,"bonusname",s),8192&t[0]&&a!==(a=e[45].type)&&R(r,"bonustype",a),8192&t[0]&&l!==(l=e[45].currency)&&R(r,"bonuscurrency",l),1&t[0]&&R(r,"lang",e[0]),2&t[0]&&R(r,"clientstyling",e[1]),4&t[0]&&R(r,"clientstylingurl",e[2])},d(e){e&&j(r)}}}function qh(e){let r;function n(e){return"freeRound"===e[45].type?Gh:Wh}let i=n(e),o=i(e);return{c(){o.c(),r=I()},m(e,t){o.m(e,t),V(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),(o=i(e))&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&j(r)}}}function Kh(r){let i,o,n,e,s,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w=Array(r[11]),E=[];for(let e=0;e<w.length;e+=1)E[e]=Xh(Uh(r,w,e));return{c(){i=t("div"),o=t("span"),n=W("|<"),s=G(),a=t("span"),l=W("<"),u=G();for(let e=0;e<E.length;e+=1)E[e].c();d=G(),c=t("span"),p=W(">"),f=G(),_=t("span"),y=W(">|"),q(o,"class",e="BonusesFirst "+(0===r[12]?"Inactive":"")),q(a,"class",h="BonusesPrev "+(0===r[12]?"Inactive":"")),q(c,"class",m="BonusesNext "+(r[12]===r[11]-1?"Inactive":"")),q(_,"class",g="BonusesLast "+(r[12]===r[11]-1?"Inactive":"")),q(i,"class","BonusesPaginationWrapper "+(r[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){V(e,i,t),z(i,o),z(o,n),z(i,s),z(i,a),z(a,l),z(i,u);for(let e=0;e<E.length;e+=1)E[e]&&E[e].m(i,null);z(i,d),z(i,c),z(c,p),z(i,f),z(i,_),z(_,y),v||(b=[Y(o,"click",r[26]),Y(a,"click",r[27]),Y(c,"click",r[29]),Y(_,"click",r[30])],v=!0)},p(t,r){if(4096&r[0]&&e!==(e="BonusesFirst "+(0===t[12]?"Inactive":""))&&q(o,"class",e),4096&r[0]&&h!==(h="BonusesPrev "+(0===t[12]?"Inactive":""))&&q(a,"class",h),137216&r[0]){let e;for(w=Array(t[11]),e=0;e<w.length;e+=1){var n=Uh(t,w,e);E[e]?E[e].p(n,r):(E[e]=Xh(n),E[e].c(),E[e].m(i,d))}for(;e<E.length;e+=1)E[e].d(1);E.length=w.length}6144&r[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&q(c,"class",m),6144&r[0]&&g!==(g="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&q(_,"class",g)},d(e){e&&j(i),B(E,e),v=!1,D(b)}}}function Xh(r){let n,i,o,s,a,e=r[44]+1+"";function l(){return r[28](r[44])}return{c(){n=t("span"),i=W(e),q(n,"class",o="BonusesPage "+(r[44]===r[12]?"BonusPageActive":""))},m(e,t){V(e,n,t),z(n,i),s||(a=Y(n,"click",l),s=!0)},p(e,t){r=e,4096&t[0]&&o!==(o="BonusesPage "+(r[44]===r[12]?"BonusPageActive":""))&&q(n,"class",o)},d(e){e&&j(n),s=!1,a()}}}function Zh(r){let n,i=function(r){let n,i,o,s,a,l,h,u,d,c,p,m,f,_,y,g,v,b,w,E,x,A,C,T,S,P,D=r[14]("title")+"",k=r[14]("dateFrom")+"",O=r[14]("dateTo")+"",M=r[14]("dateFilter")+"",N=r[15]&&function(r){let n,i,o,s,a,l,h,u,d,c,p,m,f,_=r[14]("title")+"";return{c(){n=t("div"),i=F("svg"),o=F("defs"),s=F("style"),a=W(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=F("g"),h=F("g"),u=F("path"),d=G(),c=t("h2"),p=W(_),q(u,"class","aaa"),q(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),q(u,"transform","translate(15 15) rotate(180)"),q(h,"transform","translate(20 158)"),q(l,"transform","translate(-20 -158)"),q(i,"xmlns","http://www.w3.org/2000/svg"),q(i,"width","15"),q(i,"height","15"),q(i,"viewBox","0 0 15 15"),q(c,"class","BonusesTitleMobile"),q(n,"class","MenuReturnButton")},m(e,t){V(e,n,t),z(n,i),z(i,o),z(o,s),z(s,a),z(i,l),z(l,h),z(h,u),z(n,d),z(n,c),z(c,p),m||(f=Y(n,"click",r[22]),m=!0)},p(e,t){16384&t[0]&&_!==(_=e[14]("title")+"")&&K(p,_)},d(e){e&&j(n),m=!1,f()}}}(r);function B(e){return 0===e[13].length?jh:Vh}let I=B(r),L=I(r),H=0!==r[13].length&&Kh(r);return{c(){n=t("div"),N&&N.c(),i=G(),o=t("h2"),s=W(D),a=G(),l=t("div"),h=t("div"),u=t("div"),d=t("label"),c=W(k),p=G(),m=t("vaadin-date-picker"),f=G(),_=t("div"),y=t("label"),g=W(O),v=G(),b=t("vaadin-date-picker"),w=G(),E=t("button"),x=W(M),A=G(),C=t("div"),L.c(),T=G(),H&&H.c(),q(o,"class","BonusesTitle "+(r[15]?"BonusesTitleNone":"")),q(o,"part","BonusesTitle "+(r[15]?"BonusesTitleNone":"")),q(d,"for","BonusCalendarStartDate"),R(m,"max",r[6]),R(m,"value",r[7]),R(m,"placeholder","From"),R(m,"class","VaadinDatePicker"),q(u,"class","BonusesCalendarStartDate "+(r[15]?"BonusesCalendarMobile":"")),q(y,"for","BonusesCalendarEndDate"),R(b,"max",r[6]),R(b,"value",r[6]),R(b,"placeholder","To"),R(b,"class","VaadinDatePicker"),q(_,"class","BonusesCalendarEndDate "+(r[15]?"BonusesCalendarMobile":"")),q(h,"class","BonusesCalendarContainer "+(r[15]?"BonusesCalendarContainerMobile":"")),q(E,"class","BonusesCalendarFilter "+(r[15]?"BonusesCalendarFilterMobile":"")),q(l,"class","BonusCalendarWrapper "+(r[15]?"BonusCalendarWrapperMobile":"")),q(C,"class","BonusesGrid "+(r[15]?"BonusesGridMobile":"")),q(n,"class","BonusesWrapper "+(r[15]?"BonusesWrapperMobile":""))},m(e,t){V(e,n,t),N&&N.m(n,null),z(n,i),z(n,o),z(o,s),z(n,a),z(n,l),z(l,h),z(h,u),z(u,d),z(d,c),z(u,p),z(u,m),r[23](m),z(h,f),z(h,_),z(_,y),z(y,g),z(_,v),z(_,b),r[24](b),z(l,w),z(l,E),z(E,x),z(n,A),z(n,C),L.m(C,null),z(n,T),H&&H.m(n,null),S||(P=Y(E,"click",r[25]),S=!0)},p(e,t){e[15]&&N.p(e,t),16384&t[0]&&D!==(D=e[14]("title")+"")&&K(s,D),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&K(c,k),64&t[0]&&R(m,"max",e[6]),128&t[0]&&R(m,"value",e[7]),16384&t[0]&&O!==(O=e[14]("dateTo")+"")&&K(g,O),64&t[0]&&R(b,"max",e[6]),64&t[0]&&R(b,"value",e[6]),16384&t[0]&&M!==(M=e[14]("dateFilter")+"")&&K(x,M),I===(I=B(e))&&L?L.p(e,t):(L.d(1),(L=I(e))&&(L.c(),L.m(C,null))),0!==e[13].length?H?H.p(e,t):((H=Kh(e)).c(),H.m(n,null)):H&&(H.d(1),H=null)},d(e){e&&j(n),N&&N.d(),r[23](null),r[24](null),L.d(),H&&H.d(),S=!1,P()}}}(r);return{c(){n=t("div"),i.c(),this.c=U},m(e,t){V(e,n,t),i.m(n,null),r[31](n)},p(e,t){i.p(e,t)},i:U,o:U,d(e){e&&j(n),i.d(),r[31](null)}}}function Jh(t,e,n){let r;N(t,Bn,e=>n(14,r=e));let i,o,s,a,l,{endpoint:h=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:c="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,_=window.navigator.userAgent,y="PC"!==In(_),g=(a=Rn(new Date).format("YYYY-MM-DD"),l=Rn(new Date).subtract(3,"months").format("YYYY-MM-DD")),v=a,b=0,w=0,E=0,x=0,A=0,C=[];Object.keys($h).forEach(e=>{Yh(e,$h[e])});const T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},S=t=>{var e=new URL(`${h}/v1/player/${d}/bonusWallet`),r=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(g).toISOString()}~${new Date(v).toISOString()}]`,r=(e.searchParams.append("filter",r),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,r).then(e=>e.json()).then(e=>{n(11,x=Math.ceil(e.total/6)),0<=t-6&&n(8,b=t-6),t+6<e.total&&n(9,w=t+6),n(10,E=6*(x-1)),n(12,A=t/6),n(13,C=e.items)},e=>{console.error(e)}),window.postMessage({type:"ScrollToTop"},window.location.href)},P=e=>{g=e.target.value},D=e=>{v=e.target.value};e=()=>()=>{o.removeEventListener("change",P),s.removeEventListener("change",D)},function(){if(H)return H;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&n(18,h=e.endpoint),"session"in e&&n(19,u=e.session),"playerid"in e&&n(20,d=e.playerid),"lang"in e&&n(0,c=e.lang),"clientstyling"in e&&n(1,p=e.clientstyling),"clientstylingurl"in e&&n(2,m=e.clientstylingurl),"translationurl"in e&&n(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&c&&(e=c,bn.set(e)),48&t.$$.dirty[0]&&o&&s&&(o.addEventListener("change",P,!1),s.addEventListener("change",D,!1)),1835008&t.$$.dirty[0]&&u&&d&&h&&S(0),12&t.$$.dirty[0]&&m&&i){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&p&&i&&((e=document.createElement("style")).innerHTML=p,i.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Yh(e,t[e])})}).catch(e=>{console.log(e)})},[c,p,m,i,o,s,a,l,b,w,E,x,A,C,r,y,T,S,h,u,d,f,()=>T(),function(e){Z[e?"unshift":"push"](()=>{o=e,n(4,o)})},function(e){Z[e?"unshift":"push"](()=>{s=e,n(5,s)})},()=>S(0),()=>S(0),()=>S(b),e=>S(6*e),()=>S(w),()=>S(E),function(e){Z[e?"unshift":"push"](()=>{i=e,n(3,i)})}]}class Qh extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),se(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Jh,Zh,O,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&V(e.target,this,e.anchor),e.props)&&(this.$set(e.props),c())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),c()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),c()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),c()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),c()}}return customElements.define=(Rh=customElements.define,function(...e){try{return Rh.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-bonus-history")||customElements.define("player-bonus-history",Qh),Qh});
|
2219
2219
|
//# sourceMappingURL=player-bonus-history.js.map
|