@everymatrix/player-account-self-exclusion 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
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 ie(){}function O(e){return e()}function M(){return Object.create(null)}function he(e){e.forEach(O)}function I(e){return"function"==typeof e}function N(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function L(e,...t){if(null==e)return ie;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function oe(e,t){e.appendChild(t)}function ce(e,t,n){e.insertBefore(t,n||null)}function ue(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function de(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function se(e){return document.createTextNode(e)}function e(){return se(" ")}function pe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ae(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function me(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:ae(e,t,n)}function le(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let R;function H(e){R=e}const B=[],F=[],z=[],Y=[],U=Promise.resolve();let j=!1;function W(e){z.push(e)}const G=new Set;let V=0;function $(){const e=R;do{for(;V<B.length;){const e=B[V];V++,H(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),he(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(W))}for(H(null),B.length=0,V=0;F.length;)F.pop()();for(let e=0;e<z.length;e+=1){const r=z[e];G.has(r)||(G.add(r),r())}}while(z.length=0,B.length);for(;Y.length;)Y.pop()();j=!1,G.clear(),H(e)}const q=new Set;function X(r,e,t,n,i,o,s,a=[-1]){var l=R;H(r);const h=r.$$={fragment:null,ctx:null,props:o,update:ie,not_equal:i,bound:M(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:M(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let c=!1;if(h.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return h.ctx&&i(h.ctx[e],h.ctx[e]=n)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(B.push(e),j||(j=!0,U.then($)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],h.update(),c=!0,he(h.before_update),h.fragment=!!n&&n(h.ctx),e.target){if(e.hydrate){o=e.target;const ie=Array.from(o.childNodes);h.fragment&&h.fragment.l(ie),ie.forEach(ue)}else h.fragment&&h.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(q.delete(a),a.i(void 0));{var u=r;s=e.target;t=e.anchor;n=e.customElement;const{fragment:d,on_mount:p,on_destroy:m,after_update:f}=u.$$;d&&d.m(s,t),n||W(()=>{var e=p.map(O).filter(I);m?m.push(...e):he(e),u.$$.on_mount=[]}),f.forEach(W)}$()}H(l)}let Z;"function"==typeof HTMLElement&&(Z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(O).filter(I);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){he(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(he(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=ie}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var J,K,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,Q="URLSearchParams"in a,ee="Symbol"in a&&"iterator"in Symbol,te="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),ne="FormData"in a,re="ArrayBuffer"in a;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 ee&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){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.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ve(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function be(e){var t=new FileReader,n=ve(t);return t.readAsArrayBuffer(e),n}function we(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function xe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:te&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:ne&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Q&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():re&&te&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):re&&(ArrayBuffer.prototype.isPrototypeOf(e)||K(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):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):Q&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},te&&(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(){return this._bodyArrayBuffer?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)):this.blob().then(be)}),this.text=function(){var e,t,n=ge(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=ve(e),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ne&&(this.formData=function(){return this.text().then(Ce)}),this.json=function(){return this.text().then(JSON.parse)},this}re&&(J=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(e){return e&&-1<J.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=fe(e),t=_e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[fe(e)]},l.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},l.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),ye(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),ye(n)},ee&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Se=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ee(e,t){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Ee){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=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 l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Se.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ce(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function h(e,t){if(!(this instanceof h))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})},xe.call(Ee.prototype),xe.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var Te=[301,302,303,307,308],Ae=(h.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},a.DOMException);try{new Ae}catch(ie){(Ae=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Ae.prototype.constructor=Ae}function Pe(r,s){return new Promise(function(i,e){var t=new Ee(r,s);if(t.signal&&t.signal.aborted)return e(new Ae("Aborted","AbortError"));var o=new XMLHttpRequest;function n(){o.abort()}o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",n=new l,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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},r=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new h(r,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Ae("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(te?o.responseType="blob":re&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,_e(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",n)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Pe.polyfill=!0,a.fetch||(a.fetch=Pe,a.Headers=l,a.Request=Ee,a.Response=h),self.fetch.bind(self);var De=function(e,t){return(De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Oe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Me(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ie(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function u(e){return"function"==typeof e}function Ne(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 Le=Ne(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)}n.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Oe(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(u(o))try{o()}catch(e){i=e instanceof Le?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Oe(o),h=l.next();!h.done;h=l.next()){var c=h.value;try{ze(c)}catch(e){i=null!=i?i:[],e instanceof Le?i=Ie(Ie([],Me(i)),Me(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Le(i)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ze(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((i=new n).closed=!0,i);var He=n,Be=He.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Fe(e){return e instanceof He||e&&"closed"in e&&u(e.remove)&&u(e.add)&&u(e.unsubscribe)}function ze(e){u(e)?e():e.unsubscribe()}var Ye=void 0,Ue=!1,je=!1,We={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=We.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ie([e,t],Me(n))):setTimeout.apply(void 0,Ie([e,t],Me(n)))},clearTimeout:function(e){var t=We.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ge(){}var Ve=null;function $e(e){if(Ue){var t=!Ve;if(t&&(Ve={errorThrown:!1,error:null}),e(),t){var t=Ve,n=t.errorThrown,t=t.error;if(Ve=null,n)throw t}}else e()}ke(r,qe=He),r.create=function(e,t,n){return new et(e,t,n)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,qe.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var qe,Xe=r,Ze=Function.prototype.bind;function r(e){var t=qe.call(this)||this;return t.isStopped=!1,e?Fe(t.destination=e)&&e.add(t):t.destination=it,t}function Je(e,t){return Ze.call(e,t)}nt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){rt(e)}},nt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){rt(e)}else rt(e)},nt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){rt(e)}};var Ke,Qe=nt,et=(ke(tt,Ke=Xe),tt);function tt(e,t,n){var r=Ke.call(this)||this,n=u(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&je?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&Je(e.next,t),error:e.error&&Je(e.error,t),complete:e.complete&&Je(e.complete,t)}):e;return r.destination=new Qe(n),r}function nt(e){this.partialObserver=e}function rt(e){var t=e;We.setTimeout(function(){throw t})}var it={closed:!0,next:Ge,error:function(e){throw e},complete:Ge},i="function"==typeof Symbol&&Symbol.observable||"@@observable";function ot(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Xe||r&&u(r.next)&&u(r.error)&&u(r.complete)&&Fe(r)?e:new et(e,t,n);return $e(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var i=this;return new(e=at(e))(function(e,t){var n=new et({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[i]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?ot:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=at(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var st=o;function o(e){e&&(this._subscribe=e)}function at(e){return null!=(e=null!=e?e:Ye)?e:Promise}var lt,ht,ct,ut=Ne(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=(ke(s,ct=st),s.prototype.lift=function(e){var t=new dt(this,this);return t.operator=e,t},s.prototype._throwIfClosed=function(){if(this.closed)throw new ut},s.prototype.next=function(i){var o=this;$e(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Oe(o.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},s.prototype.error=function(t){var n=this;$e(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},s.prototype.complete=function(){var t=this;$e(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},s.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(s.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),s.prototype._trySubscribe=function(e){return this._throwIfClosed(),ct.prototype._trySubscribe.call(this,e)},s.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},s.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?Be:(this.currentObservers=null,i.push(e),new He(function(){t.currentObservers=null,Re(i,e)}))},s.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},s.prototype.asObservable=function(){var e=new st;return e.source=this,e},s.create=function(e,t){return new dt(e,t)},s),dt=(ke(_t,ht=i),_t.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},_t.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},_t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},_t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Be},_t),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},mt=(ke(ft,lt=i),ft.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(r.push(e),i||r.push(o.now()+t)),this._trimBuffer(),lt.prototype.next.call(this,e)},ft.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},ft.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},ft);function ft(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=pt);var r=lt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function _t(e,t){var n=ht.call(this)||this;return n.destination=e,n.source=t,n}function s(){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 yt=[],gt={};const vt=[];function bt(r,i=ie){let o;const s=new Set;function a(e){if(N(r,e)&&(r=e,o)){const e=!vt.length;for(const e of s)e[1](),vt.push(e,r);if(e){for(let e=0;e<vt.length;e+=2)vt[e][0](vt[e+1]);vt.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=ie){const n=[e,t];return s.add(n),1===s.size&&(o=i(a)||ie),e(r),()=>{s.delete(n),0===s.size&&(o(),o=null)}}}}function wt(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,c=a.length<2;return{subscribe:bt(t,t=>{let n=!1;const r=[];let i=0,o=ie;const s=()=>{var e;i||(o(),e=a(l?r[0]:r,t),c?t(e):o=I(e)?e:ie)},e=h.map((e,t)=>L(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){he(e),o()}}).subscribe}}function xt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===St));var t}var St="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Et(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Dt(Array.isArray(e)?[]:{},e,t):e}function Ct(e,t,n){return e.concat(t).map(function(e){return Et(e,n)})}function Tt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function At(e,t){try{return t in e}catch(e){return!1}}function Pt(r,i,o){var s={};return o.isMergeableObject(r)&&Tt(r).forEach(function(e){s[e]=Et(r[e],o)}),Tt(i).forEach(function(t){var e,n;(!At(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(At(r,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return Dt;e=e.customMerge(t);return"function"==typeof e?e:Dt}(o)(r[t],i[t],o):s[t]=Et(i[t],o))}),s}function Dt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ct,n.isMergeableObject=n.isMergeableObject||xt,n.cloneUnlessOtherwiseSpecified=Et;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Pt(e,t,n):Et(t,n)}Dt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Dt(e,t,n)},{});throw new Error("first argument should be an array")};var kt=Dt,Ot=function(e,t){return(Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,It,_=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Nt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Lt(e){return e.type===y.literal}function Rt(e){return e.type===y.number}function Ht(e){return e.type===y.date}function Bt(e){return e.type===y.time}function Ft(e){return e.type===y.select}function zt(e){return e.type===y.plural}function Yt(e){return e.type===y.tag}function Ut(e){return e&&"object"==typeof e&&e.type===It.number}function jt(e){return e&&"object"==typeof e&&e.type===It.dateTime}(i=f=f||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=y=y||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=It=It||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \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,Vt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$t=/^(@+)?(\+|#+)?[rs]?$/g,qt=/(\*)(0+)|(#+)(0+)|(0+)/g,Xt=/^(0+)$/;function Zt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace($t,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function Jt(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 Kt(e){return Jt(e)||{}}function Qt(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[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),Kt(t))},{}));continue;case"engineering":s=_(_(_({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),Kt(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(qt,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&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(Xt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Vt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Vt,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.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),Zt(o)))}else $t.test(i.stem)?s=_(_({},s),Zt(i.stem)):((o=Jt(i.stem))&&(s=_(_({},s),o)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=_(_({},s),r)))}return s}var en={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 tn=new RegExp("^".concat(i.source,"*")),nn=new RegExp("".concat(i.source,"*$"));function g(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,rn=!!String.fromCodePoint,on=!!Object.fromEntries,sn=!!String.prototype.codePointAt,an=!!String.prototype.trimStart,ln=!!String.prototype.trimEnd,hn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cn=!0;try{cn="a"===(null==(Mn=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Mn[0])}catch(ie){cn=!1}var un,dn,pn=i?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},mn=rn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},fn=on?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},_n=sn?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},yn=an?function(e){return e.trimStart()}:function(e){return e.replace(tn,"")},gn=ln?function(e){return e.trimEnd()}:function(e){return e.replace(nn,"")};function vn(e,t){return new RegExp(e,t)}dn=cn?(un=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return un.lastIndex=t,null!=(t=un.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=_n(e,t);if(void 0===i||xn(i)||(33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(i),t+=65536<=i?2:1}return mn.apply(void 0,r)};c.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},c.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.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(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&wn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{o=this.clonePosition();this.bump(),r.push({type:y.pound,location:g(o,this.clonePosition())})}}}return{val:r,err:null}},c.prototype.parseTag=function(e,t){var n=this.clonePosition(),r=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(r,"/>"),location:g(n,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wn(this.char()))return this.error(f.INVALID_TAG,g(e,this.clonePosition()));var i=this.clonePosition();return r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:g(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,g(n,this.clonePosition()))}return this.error(f.INVALID_TAG,g(n,this.clonePosition()))},c.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())},c.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=g(n,this.clonePosition());return{val:{type:y.literal,value:r,location:n},err:null}},c.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},c.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return mn.apply(void 0,t)},c.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),mn(n))},c.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,g(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:g(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()))}},c.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=dn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:g(e,this.clonePosition())}},c.prototype.parseArgumentOptions=function(e,t,n,r){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((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(p=gn(m.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:g(h,this.clonePosition())}}if((h=this.tryParseArgumentClose(r)).err)return h;var c=g(r,this.clonePosition());if(l&&pn(null==l?void 0:l.style,"::",0)){var u=yn(l.style.slice(2));if("number"===s)return(m=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?m:{val:{type:y.number,value:n,location:c,style:m.val},err:null};if(0===u.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var d=u,p=(this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(en[t||""]||en[n||""]||en["".concat(n,"-001")]||en["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<s--;)n=l+n}else n+="J"===i?"H":i}return n}(u,this.locale)),{type:It.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},d.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):{}});return{val:{type:"date"===s?y.date:y.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:n,location:c,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(d,_({},d)));this.bumpSpace();var m,p=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),p=this.parseIdentifierIfPossible(),c=m.val}l=this.tryParsePluralOrSelectOptions(e,s,t,p);if(l.err)return l;if((h=this.tryParseArgumentClose(r)).err)return h;u=g(r,this.clonePosition());return"select"===s?{val:{type:y.select,value:n,options:fn(l.val),location:u},err:null}:{val:{type:y.plural,value:n,options:fn(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,g(o,a))}},c.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})},c.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(n,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}},c.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Gt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].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:n,location:t,parsedOptions:this.shouldParseSkeletons?Qt(n):{}},err:null}},c.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;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();c=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,n);if(h.err)return h;var u=this.tryParseArgumentClose(c);if(u.err)return u;o.push([a,{value:h.val,location:g(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(u=this.parseIdentifierIfPossible()).value,l=u.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}},c.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-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()}r=g(r,this.clonePosition());return i?hn(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},c.prototype.offset=function(){return this.position.offset},c.prototype.isEOF=function(){return this.offset()===this.message.length},c.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},c.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=_n(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},c.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},c.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))},c.prototype.bumpIf=function(e){if(pn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},c.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)},c.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}},c.prototype.bumpSpace=function(){for(;!this.isEOF()&&xn(this.char());)this.bump()},c.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var bn=c;function c(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 wn(e){return 97<=e&&e<=122||65<=e&&e<=90}function xn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Sn(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new bn(e,t).parse();if(e.err)throw(n=SyntaxError(f[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ft(e)||zt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Rt(e)&&Ut(e.style)||(Ht(e)||Bt(e))&&jt(e.style)?delete e.style.location:Yt(e)&&n(e.children)})}(e.val),e.val}function En(e,t){var n=t&&t.cache?t.cache:In,r=t&&t.serializer?t.serializer:Pn;return(t&&t.strategy?t.strategy:function(e,t){return An(e,this,1===e.length?Cn:Tn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Cn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function Tn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function An(e,t,n,r,i){return n.bind(t,e,r,i)}var Pn=function(){return JSON.stringify(arguments)};function Dn(){this.cache=Object.create(null)}Dn.prototype.get=function(e){return this.cache[e]},Dn.prototype.set=function(e,t){this.cache[e]=t};var kn,Mn,In={create:function(){return new Dn}},Nn={variadic:function(e,t){return An(e,this,Tn,t.cache.create(),t.serializer)},monadic:function(e,t){return An(e,this,Cn,t.cache.create(),t.serializer)}};(Mn=kn=kn||{}).MISSING_VALUE="MISSING_VALUE",Mn.INVALID_VALUE="INVALID_VALUE",Mn.MISSING_INTL_API="MISSING_INTL_API";Mt(Vn,Bn=Error),Vn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,Ln,Rn,Hn,Bn,Fn=Vn,zn=(Mt(Gn,Hn=Fn),Gn),Yn=(Mt(Wn,Rn=Fn),Wn),Un=(Mt(jn,Ln=Fn),jn);function jn(e,t){return Ln.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),kn.MISSING_VALUE,t)||this}function Wn(e,t,n){return Rn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),kn.INVALID_VALUE,n)||this}function Gn(e,t,n,r){return Hn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),kn.INVALID_VALUE,r)||this}function Vn(e,t,n){e=Bn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function $n(e,t,n,r,i,o,s){if(1===e.length&&Lt(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var c=h[l];if(Lt(c))a.push({type:v.literal,value:c.value});else if(c.type===y.pound)"number"==typeof o&&a.push({type:v.literal,value:n.getNumberFormat(t).format(o)});else{var u=c.value;if(!(i&&u in i))throw new Un(u,s);u=i[u];if(c.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?v.literal:v.object,value:u});else if(Ht(c)){var d="string"==typeof c.style?r.date[c.style]:jt(c.style)?c.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(u)})}else if(Bt(c))d="string"==typeof c.style?r.time[c.style]:jt(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(u)});else if(Rt(c))(d="string"==typeof c.style?r.number[c.style]:Ut(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(u*=d.scale||1),a.push({type:v.literal,value:n.getNumberFormat(t,d).format(u)});else{if(Yt(c)){var p=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Yn(m,"function",s);m=f($n(p,t,n,r,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(Ft(c)){if(!(_=c.options[u]||c.options.other))throw new zn(c.value,u,Object.keys(c.options),s);a.push.apply(a,$n(_.value,t,n,r,i))}else if(zt(c)){if(!(_=c.options["=".concat(u)])){if(!Intl.PluralRules)throw new Fn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kn.MISSING_INTL_API,s);var f=n.getPluralRules(t,{type:c.pluralType}).select(u-(c.offset||0)),_=c.options[f]||c.options.other}if(!_)throw new zn(c.value,u,Object.keys(c.options),s);a.push.apply(a,$n(_.value,t,n,r,i,u-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===v.literal&&t.type===v.literal?n.value+=t.value:e.push(t),e},[])}function qn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(i=v=v||{})[i.literal=0]="literal",i[i.object=1]="object",Object.defineProperty(d,"defaultLocale",{get:function(){return d.memoizedDefaultLocale||(d.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),d.memoizedDefaultLocale},enumerable:!1,configurable:!0}),d.memoizedDefaultLocale=null,d.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])},d.__parse=Sn,d.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 Xn=d;function d(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=d.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return 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},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return $n(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=d.resolveLocale(t),"string"==typeof e){if(this.message=e,!d.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=d.__parse(e,{ignoreTag:null==r?void 0:r.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=d.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?_(_(_({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=_(_({},n[t]),r[t]||{}),e},{})):n),e},_({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:qn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Nn.variadic}),getDateTimeFormat:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:qn(t.dateTime),strategy:Nn.variadic}),getPluralRules:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Nt([void 0],t,!1)))},{cache:qn(t.pluralRules),strategy:Nn.variadic})}}const Zn={},Jn=(e,t,n)=>n&&(t in Zn||(Zn[t]={}),e in Zn[t]||(Zn[t][e]=n),n),Kn=(t,n)=>{if(null!=n){if(n in Zn&&t in Zn[n])return Zn[n][t];var r=mr(n);for(let e=0;e<r.length;e++){var i=function(e,n){if(!tr(e))return null;e=function(e){return Qn[e]||null}(e);{var r=n;if(null==r)return;if(r in e)return e[r];const i=r.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const r=i.slice(e,i.length).join(".");if(r in t){t=t[r];break}}t=t[i[e]]}else t=void 0;return t}}(r[e],t);if(i)return Jn(t,n,i)}}};let Qn;const er=bt({});function tr(e){return e in Qn}function nr(t,...n){delete Zn[t],er.update(e=>(e[t]=kt.all([e[t]||{},...n]),e))}wt([er],([e])=>Object.keys(e)),er.subscribe(e=>Qn=e);const rr={};function ir(e){return rr[e]}function or(e){return null!=e&&mr(e).some(e=>{return null==(e=ir(e))?void 0:e.size})}const sr={};function ar(e){if(!or(e))return e in sr?sr[e]:Promise.resolve();const t=mr(e).map(e=>{var t=ir(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return sr[e]=Promise.all(t.map(([e,t])=>{{var r=e;e=t;const n=Promise.all(e.map(e=>{var t=r,n=e;return rr[t].delete(n),0===rr[t].size&&delete rr[t],e().then(e=>e.default||e)}));return n.then(e=>nr(r,...e))}})).then(()=>{if(or(e))return ar(e);delete sr[e]}),sr[e]}function lr(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const hr={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};const cr=bt(!1);let ur;const dr=bt(null);function pr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function mr(e,t=hr.fallbackLocale){e=pr(e);return t?[...new Set([...e,...pr(t)])]:e}function fr(){return null!=ur?ur:void 0}dr.subscribe(e=>{ur=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const _r=Object.assign(Object.assign({},dr),{set:t=>{if(t&&function(e){if(null!=e){var t=mr(e);for(let e=0;e<t.length;e++){var n=t[e];if(tr(n))return n}}}(t)&&or(t)){var n=hr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=fr()&&n?e=window.setTimeout(()=>cr.set(!0),n):cr.set(!0),ar(t).then(()=>{dr.set(t)}).finally(()=>{clearTimeout(e),cr.set(!1)})}return dr.set(t)}}),yr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},gr=(e,t)=>{var n=hr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},vr=yr(e=>{var{locale:t,format:n}=e,e=lr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=gr("number",n)),new Intl.NumberFormat(t,e)}),br=yr(e=>{var{locale:t,format:n}=e,e=lr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=gr("date",n):0===Object.keys(e).length&&(e=gr("date","short")),new Intl.DateTimeFormat(t,e)}),wr=yr(e=>{var{locale:t,format:n}=e,e=lr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=gr("time",n):0===Object.keys(e).length&&(e=gr("time","short")),new Intl.DateTimeFormat(t,e)}),xr=yr((e,t=fr())=>new Xn(e,t,hr.formats,{ignoreTag:hr.ignoreTag})),Sr=wt([_r,er],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=fr(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kn(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!=(r=null!=(n=null==(n=(r=hr).handleMissingMessage)?void 0:n.call(r,{locale:s,id:e,defaultValue:a}))?n:a)?r:e;if(!o)return l;let h=l;try{h=xr(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h});wt([_r],()=>(e,t)=>((e={})=>{var{locale:t=fr()}=e,e=lr(e,["locale"]);return wr(Object.assign({locale:t},e))})(t).format(e)),wt([_r],()=>(e,t)=>((e={})=>{var{locale:t=fr()}=e,e=lr(e,["locale"]);return br(Object.assign({locale:t},e))})(t).format(e)),wt([_r],()=>(e,t)=>((e={})=>{var{locale:t=fr()}=e,e=lr(e,["locale"]);return vr(Object.assign({locale:t},e))})(t).format(e)),wt([_r,er],()=>(e,t=fr())=>Kn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==yt.indexOf(e)&&(t=new mt(t),gt[e]=t,yt.push(e)),gt[e]}};Cr=Er={path:void 0,exports:{},require:function(e,t){return On(null==t&&Er.path)}},Er.exports,Cr.exports=function(){var R;function m(){return R.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 B(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 z(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function U(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Ot(e,t,n,r,!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 j(e){if(null==e._isValid){var t=_(e),n=G.call(t.parsedDateParts,function(e){return null!=e}),n=!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&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function W(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var G=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=m.momentProperties=[],$=!1;function q(e,t){var n,r,i,o=V.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(n=0;n<o;n++)a(i=t[r=V[n]])||(e[r]=i);return e}function X(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===$&&($=!0,m.updateOffset(this),$=!1)}function l(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function Z(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,n=[],r=arguments.length,i=0;i<r;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];n.push(e)}Z(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=U({},e);for(n in t)f(t,n)&&(H(e[n])&&H(t[n])?(r[n]={},U(r[n],e[n]),U(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&H(e[n])&&(r[n]=U({},r[n]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function o(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([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,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},oe={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=i),t&&(oe[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=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(r){for(var e,i=r.match(ne),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="",n=0;n<o;n++)t+=c(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function u(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,n,r={};for(n in e)f(e,n)&&(t=u(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function ue(e){return e%4==0&&e%100!=0||e%400==0}function d(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)?d(e):t}function de(t,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=p(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}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}/,xe=/[+-]?\d{1,6}/,Se=/\d+/,Ee=/[+-]?\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,n,r){Pe[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Ae(e,t){return f(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function x(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),F(n)&&(i=function(e,t){t[n]=p(e)}),r=e.length,t=0;t<r;t++)De[e[t]]=i}function ke(e,i){x(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var S,E=0,C=1,T=2,A=3,P=4,D=5,Oe=6,Me=7,Ie=8;function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?ue(e)?29:28:31-n%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("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)}),x(["M","MM"],function(e,t){t[C]=p(e)-1}),x(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[C]=r:_(n).invalidMonth=e});var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=v,Fe=v;function ze(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ye(e){return null!=e?(ze(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],o=0;o<12;o++)t=h([2e3,o]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),o=0;o<12;o++)n[o]=w(n[o]),r[o]=w(r[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("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function je(e){return ue(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),b("Y",Ee),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",xe,ye),b("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],E),x("YYYY",function(e,t){t[E]=2===e.length?m.parseTwoDigitYear(e):p(e)}),x("YY",function(e,t){t[E]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[E]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var We=de("FullYear",!0);function Ge(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function Ve(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 $e(e,t,n){n=7+t-n;return-(7+Ve(e,0,n).getUTCDay()-t)%7+n-1}function qe(e,t,n,r,i){var o,t=1+7*(t-1)+(7+n-r)%7+$e(e,r,i),n=t<=0?je(o=e-1)+t:t>je(e)?(o=e+1,t-je(e)):(o=e,t);return{year:o,dayOfYear:n}}function Xe(e,t,n){var r,i,o=$e(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+k(i=e.year()-1,t,n):o>k(e.year(),t,n)?(r=o-k(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function k(e,t,n){var r=$e(e,t,n),t=$e(e+1,t,n);return(je(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),b("w",g),b("ww",g,y),b("W",g),b("WW",g,y),ke(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=p(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("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,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:_(n).invalidWeekday=e}),ke(["d","e","E"],function(e,t,n,r){t[r]=p(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],o=[],s=[],a=[],l=0;l<7;l++)r=h([2e3,1]).day(l),t=w(this.weekdaysMin(r,"")),n=w(this.weekdaysShort(r,"")),r=w(this.weekdays(r,"")),i.push(t),o.push(n),s.push(r),a.push(t),a.push(n),a.push(r);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){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),n("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),x(["H","HH"],A),x(["k","kk"],function(e,t,n){e=p(e);t[A]=24===e?0:e}),x(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),x(["h","hh"],function(e,t,n){t[A]=p(e),_(n).bigHour=!0}),x("hmm",function(e,t,n){var r=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r)),_(n).bigHour=!0}),x("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i)),_(n).bigHour=!0}),x("Hmm",function(e,t,n){var r=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r))}),x("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i))});v=de("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:Le,monthsShort:Re,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ut(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ct(e[o]).split("-")).length,n=(n=ct(e[o+1]))?n.split("-"):null;0<t;){if(r=dt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}o++}return at}function dt(t){var e;if(void 0===O[t]&&Cr&&Cr.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,On(),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 n,r=lt;if(t.abbr=e,null!=O[e])K("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."),r=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])r=O[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;r=n._config}return O[e]=new ee(Q(r,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=dt(e))return t;e=[e]}return ut(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]>Ne(t[E],t[C])?T:t[A]<0||24<t[A]||24===t[A]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?A: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<E||T<t)&&(t=T),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ie),_(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,xt=/^(?:(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}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,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,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=h;t<n;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&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,n,r,i,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Re.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&e.push(parseInt(o,10)),e}function Tt(e){var t,n,r,i,o=xt.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]),n=o[1],r=t,i=e,n&&Ke.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=o[8],r=o[9],i=o[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function At(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,o,s,a,l,h,c,u,d=[];if(!e._d){for(c=e,u=new Date(m.now()),n=c._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[T]&&null==e._a[C]&&(null!=(u=(c=e)._w).GG||null!=u.W||null!=u.E?(s=1,a=4,r=At(u.GG,c._a[E],Xe(I(),1,4).year),i=At(u.W,1),((o=At(u.E,1))<1||7<o)&&(l=!0)):(s=c._locale._week.dow,a=c._locale._week.doy,h=Xe(I(),s,a),r=At(u.gg,c._a[E],h.year),i=At(u.w,h.week),null!=u.d?((o=u.d)<0||6<o)&&(l=!0):null!=u.e?(o=u.e+s,(u.e<0||6<u.e)&&(l=!0)):o=s),i<1||i>k(r,s,a)?_(c)._overflowWeeks=!0:null!=l?_(c)._overflowWeekday=!0:(h=qe(r,i,o,s,a),c._a[E]=h.year,c._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(u=At(e._a[E],n[E]),(e._dayOfYear>je(u)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=Ve(u,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]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[A]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[A]=0),e._d=(e._useUTC?Ve:Ge).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[A]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(_(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,n,r,i=""+e._i,o=i.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Ae(r,e))||[])[0])&&(0<(u=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(u),i=i.slice(i.indexOf(t)+t.length),s+=t.length),oe[r]?(t?_(e).empty=!1:_(e).unusedTokens.push(r),u=r,p=e,null!=(d=t)&&f(De,u)&&De[u](d,p._a,p,u)):e._strict&&!t&&_(e).unusedTokens.push(r);_(e).charsLeftOver=o-s,0<i.length&&_(e).unusedInput.push(i),e._a[A]<=12&&!0===_(e).bigHour&&0<e._a[A]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[A]=(o=e._locale,h=e._a[A],null==(c=e._meridiem)?h:null!=o.meridiemHour?o.meridiemHour(h,c):null!=o.isPM?((o=o.isPM(c))&&h<12&&(h+=12),h=o||12!==h?h:0):h),null!==(c=_(e).era)&&(e._a[E]=e._locale.erasConvertYear(c,e._a[E])),Pt(e),ft(e)}else Tt(e);else Et(e);var h,c,u,d,p}function kt(e){var t,n=e._i,r=e._f;{var i,o;if(e._locale=e._locale||M(e._l),null===n||void 0===r&&""===n)return W({nullInput:!0});else return"string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(z(n)?e._d=n:s(r)?function(e){var t,n,r,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),j(t)&&(s=!0),o=(o+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));U(e,n||t)}(e):r?Dt(e):a(r=(n=e)._i)?n._d=new Date(m.now()):z(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(o=wt.exec(i._i))?(Et(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(r)?(n._a=Y(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):H(r)?(i=n)._d||(t=void 0===(o=he(i._i)).day?o.date:o.day,i._a=Y([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(r)?n._d=new Date(r):m.createFromInputFallback(n),j(e)||(e._d=null),e)}}function Ot(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(H(e)&&B(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,(i=new X(ft(kt(i=o))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function I(e,t,n,r){return Ot(e,t,n,r,!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=I.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function Mt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return I();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=he(e),t=e.year||0,n=e.quarter||0,r=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,n,r=!1,i=It.length;for(t in e)if(f(e,t)&&(-1===S.call(It,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[It[n]]){if(r)return!1;parseFloat(e[It[n]])!==p(e[It[n]])&&(r=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=M(),this._bubble()}function Lt(e){return e instanceof Nt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+n+o(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),b("Z",Te),b("ZZ",Te),x(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(Te,e)});var Bt=/([\+\-]|\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(Bt)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||z(e)?e:I(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):I(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var n,r,i=e,o=null;return Lt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=jt.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:p(o[T])*n,h:p(o[A])*n,m:p(o[P])*n,s:p(o[D])*n,ms:p(Rt(1e3*o[Oe]))*n}):(o=Wt.exec(e))?(n="-"===o[1]?-1:1,i={y:Gt(o[2],n),M:Gt(o[3],n),w:Gt(o[4],n),d:Gt(o[5],n),h:Gt(o[6],n),m:Gt(o[7],n),s:Gt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=I(i.from),o=I(i.to),n=t.isValid()&&o.isValid()?(o=zt(o,t),t.isBefore(o)?r=Vt(t,o):((r=Vt(o,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=n.milliseconds,i.M=n.months),o=new Nt(i),Lt(e)&&f(e,"_locale")&&(o._locale=e._locale),Lt(e)&&f(e,"_isValid")&&(o._isValid=e._isValid),o}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $t(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(K(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."),n=e,e=t,t=n),qt(this,N(e,t),r),this}}function qt(e,t,n,r){var i=t._milliseconds,o=Rt(t._days),t=Rt(t._months);e.isValid()&&(r=null==r||r,t&&ze(e,pe(e,"Month")+t*n),o&&me(e,"Date",pe(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,o||t))}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Le=$t(1,"add"),Je=$t(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||z(e)||Xt(e)||F(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!F(e)&&Xt(t)}).length),n&&r)||function(e){var t,n,r=H(e)&&!B(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)n=o[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Kt(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 en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],r=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(w(i[o].name)),e.push(w(i[o].abbr)),n.push(w(i[o].narrow)),r.push(w(i[o].name)),r.push(w(i[o].abbr)),r.push(w(i[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var o;return null==e?Xe(this,r,i).year:(t>(o=k(e,r,i))&&(t=o),function(e,t,n,r,i){e=qe(e,t,n,r,i),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),b("N",on),b("NN",on),b("NNN",on),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?_(n).era=r:_(n).invalidEra=e}),b("y",Se),b("yy",Se),b("yyy",Se),b("yyyy",Se),b("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),x(["y","yy","yyy","yyyy"],E),x(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[E]=n._locale.eraYearOrdinalParse(e,i):t[E]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),b("G",Ee),b("g",Ee),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",xe,ye),b("ggggg",xe,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=p(e)}),ke(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),b("Q",i),x("Q",function(e,t){t[C]=3*(p(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),b("D",g),b("DD",g,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],T),x("Do",function(e,t){t[T]=p(e.match(g)[0])});we=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),b("DDD",be),b("DDDD",fe),x(["DDD","DDDD"],function(e,t,n){n._dayOfYear=p(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),b("m",g),b("mm",g,y),x(["m","mm"],P);_e=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),b("s",g),b("ss",g,y),x(["s","ss"],D);var hn,xe=de("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),b("S",be,i),b("SS",be,y),b("SSS",be,fe),hn="SSSS";hn.length<=9;hn+="S")b(hn,Se);function cn(e,t){t[Oe]=p(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")x(hn,cn);ye=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=X.prototype;function un(e){return e}i.add=Le,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!B(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||f(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||I(),n=zt(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,I(e)))},i.clone=function(){return new X(this)},i.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=u(t)){case"year":o=Jt(this,r)/12;break;case"month":o=Jt(this,r);break;case"quarter":o=Jt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:d(o)},i.endOf=function(e){var t,n;if(void 0===(e=u(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),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()||I(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(I(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||I(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(I(),e)},i.get=function(e){return c(this[e=u(e)])?this[e]():this},i.invalidAt=function(){return _(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:I(e),t=l(t)?t:I(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},i.isSame=function(e,t){var e=l(e)?e:I(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(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 j(this)},i.lang=Qe,i.locale=Kt,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 n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=he(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(c(this[e=u(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0===(e=u(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},i.subtract=Je,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){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.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"):c(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")},i.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"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(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-m(n[r].since).year())*e+n[r].offset;return this.year()},i.year=We,i.isLeapYear=function(){return ue(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.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=Ye,i.daysInMonth=function(){return Ne(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=Xe(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){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},i.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},i.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},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=xe,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=Ft(Te,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,N(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(Yt(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?I(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",Ye),i.years=e("years accessor is deprecated. Use year instead",We),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(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return q(t,this),(t=kt(t))._a?(e=(t._isUTC?h:I)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&p(e[s])!==p(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function dn(e,t,n,r){var i=M(),r=h().set(r,t);return i[n](r,e)}function pn(e,t,n){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),F(t)&&(n=t,t=void 0),t||"");var i,o=M(),s=e?o._week.dow:0,a=[];if(null!=n)return dn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+s)%7,r,"day");return a}y.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).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=un,y.postformat=un,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return c(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)f(e,n)&&(c(t=e[n])?this[n]=t:this["_"+n]=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 n,r=this._eras||M("en")._eras,i=0,o=r.length;i<o;++i)switch("string"==typeof r[i].since&&(n=m(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=m(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},y.erasParse=function(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[o,s,a].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||sn.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,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},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=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(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?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.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")||rt.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")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"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 fn=Math.abs;function _n(e,t,n,r){t=N(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function gn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}be=bn("ms"),fe=bn("s"),Le=bn("m"),ve=bn("h"),ge=bn("d"),Je=bn("w"),v=bn("M"),_e=bn("Q"),xe=bn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wn("milliseconds"),we=wn("seconds"),We=wn("minutes"),y=wn("hours"),xn=wn("days"),Sn=wn("months"),En=wn("years");var Cn=Math.round,Tn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function An(e,t,n,r){var i=N(e).abs(),o=Cn(i.as("s")),s=Cn(i.as("m")),a=Cn(i.as("h")),l=Cn(i.as("d")),h=Cn(i.as("M")),c=Cn(i.as("w")),i=Cn(i.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return(o=(o=null!=n.w?o||c<=1&&["w"]||c<n.w&&["ww",c]:o)||h<=1&&["M"]||h<n.M&&["MM",h]||i<=1&&["y"]||["yy",i])[2]=t,o[3]=0<+e,o[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,o)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a=Pn(this._milliseconds)/1e3,l=Pn(this._days),h=Pn(this._months),c=this.asSeconds();return c?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(h/12),h%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(c)?"-":"",o=Dn(this._days)!==Dn(c)?"-":"",s=Dn(this._milliseconds)!==Dn(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(h?i+h+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"}var L=Nt.prototype;return L.isValid=function(){return this._isValid},L.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},L.add=function(e,t){return _n(this,e,t,1)},L.subtract=function(e,t){return _n(this,e,t,-1)},L.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=u(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+gn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},L.asMilliseconds=be,L.asSeconds=fe,L.asMinutes=Le,L.asHours=ve,L.asDays=ge,L.asWeeks=Je,L.asMonths=v,L.asQuarters=_e,L.asYears=xe,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},L._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(gn(t)),t-=yn(vn(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},L.clone=function(){return N(this)},L.get=function(e){return e=u(e),this.isValid()?this[e+"s"]():NaN},L.milliseconds=ye,L.seconds=we,L.minutes=We,L.hours=y,L.days=xn,L.weeks=function(){return d(this.days()/7)},L.months=Sn,L.years=En,L.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Tn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Tn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),t=An(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},L.toISOString=kn,L.toString=kn,L.toJSON=kn,L.locale=Kt,L.localeData=Qt,L.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),L.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Ee),b("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,n){n._d=new Date(p(e))}),m.version="2.29.3",R=I,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 I(1e3*e)},m.months=function(e,t){return pn(e,t,"months")},m.isDate=z,m.locale=pt,m.invalid=W,m.duration=N,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return I.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=Lt,m.monthsShort=function(e,t){return pn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=O[e],O[e]=r),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,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=u,m.relativeTimeRounding=function(e){return void 0===e?Cn:"function"==typeof e&&(Cn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Tn[e]&&(void 0===t?Tn[e]:(Tn[e]=t,"s"===e&&(Tn.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 Er,Cr,Tr=Er.exports;function Ar(e,t){nr(e,t)}const Pr={en:{selfExclusion:{title:"Self-Exclusion",selfExclusionText1:"We recognizes that gambling can lead to addiction and in our effort to prevent these problems, we offer our users the ability to exclude all forms of betting on our site for a certain of indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for the period you choose. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion you will not be able to access your Everymatrix account. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months post its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows: E-mail:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."}},zh:{selfExclusion:{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 Everymatrix 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"}},fr:{selfExclusion:{title:"Auto exclusion",selfExclusionText1:"Everymatrix reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "confirmer".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte everymatrix.dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."}},ro:{selfExclusion:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Confirmă".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."}},es:{selfExclusion:{title:"Autoexclusión",selfExclusionText1:"Everymatrix reconoce que los juegos de azar pueden conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas, ofrecemos a nuestros usuarios la posibilidad de optar por no participar en todas las formas de juegos de azar en nuestro sitio por un período de tiempo indefinido.",selfExclusionText2:'La autoexclusión surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y haga clic en "Confirmar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de Everymatrix. En el caso de autoexclusión permanente, solo es posible revocar la Autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Tenga en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de atención al cliente de la siguiente manera:",selfExclusionText4:"E-mail:",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente."}},pt:{selfExclusion:{title:"Auto-exclusão",selfExclusionText1:"Everymatrix reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Confirmar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta Everymatrix. No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."}}};class Dr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Dr);let kr,Or=null,Mr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Ir(e){requestAnimationFrame(function(){Mr?Mr(e):(Or||(Or=new Promise(e=>{kr=e}),"complete"===document.readyState?kr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&kr()})),Or.then(function(){e&&e()}))})}const Nr="__seenByShadyCSS",Lr="__shadyCSSCachedStyle";let Rr=null,Hr=null;class Br{constructor(){this.customStyles=[],this.enqueued=!1,Ir(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Hr&&(this.enqueued=!0,Ir(Hr))}addCustomStyle(e){e[Nr]||(e[Nr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Lr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){const r=t[e];if(!r[Lr]){var n=this.getStyleForCustomStyle(r);if(n){const t=n.__appliedElement||n;Rr&&Rr(t),r[Lr]=t}}}return t}}Object.defineProperties(Br.prototype,{transformCallback:{get:()=>Rr,set(e){Rr=e}},validateCallback:{get:()=>Hr,set(e){let t=!1;Hr||(t=!0),Hr=e,t&&this.enqueueDocumentValidation()}}});const Fr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,zr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Yr=/@media\s(.*)/;function Ur(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function jr(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return n?n.trim():""}const Wr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Gr,Vr;function $r(e){Gr=(!e||!e.shimcssproperties)&&(Wr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Vr=window.ShadyCSS.cssBuild);rn=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Gr=window.ShadyCSS.nativeCss:window.ShadyCSS?($r(window.ShadyCSS),window.ShadyCSS=void 0):$r(window.WebComponents&&window.WebComponents.flags);const qr=Gr,Xr=new Br;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){Xr.processStyles(),Ur(e,t)},styleElement(e){Xr.processStyles()},styleDocument(e){Xr.processStyles(),Ur(document.body,e)},getComputedStyleValue:(e,t)=>jr(e,t),flushCustomStyles(){},nativeCss:qr,nativeShadow:Wr,cssBuild:Vr,disableRuntime:rn}),window.ShadyCSS.CustomStyleInterface=Xr,window.JSCompiler_renameProperty=function(e,t){return e};let Zr,p,Jr=/(url\()([^)]*)(\))/g,Kr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Qr(e,t){if(e&&Kr.test(e))return e;if("//"===e)return e;if(void 0===Zr){Zr=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Zr="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Zr)try{return new URL(e,t).href}catch(t){return e}return p||((p=document.implementation.createHTMLDocument("temp")).base=p.createElement("base"),p.head.appendChild(p.base),p.anchor=p.createElement("a"),p.body.appendChild(p.anchor)),p.base.href=t,p.anchor.href=e,p.anchor.href||e}function ei(e,i){return e.replace(Jr,function(e,t,n,r){return t+"'"+Qr(n.replace(/["']/g,""),i)+"'"+r})}function ti(e){return e.substring(0,e.lastIndexOf("/")+1)}const ni=!window.ShadyDOM||!window.ShadyDOM.inUse,ri=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),ni&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const 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 ii=window.Polymer&&window.Polymer.rootPath||ti(document.baseURI||window.location.href),oi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,si=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,ai=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,li=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,hi=window.Polymer&&window.Polymer.legacyOptimizations||!1,ci=window.Polymer&&window.Polymer.legacyWarnings||!1,ui=window.Polymer&&window.Polymer.syncInitialRender||!1,di=window.Polymer&&window.Polymer.legacyUndefined||!1,pi=window.Polymer&&window.Polymer.orderedComputed||!1,mi=window.Polymer&&window.Polymer.removeNestedTemplates||!1,fi=window.Polymer&&window.Polymer.fastDomIf||!1,_i=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,yi=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,gi=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,vi={},bi={};function wi(e,t){vi[e]=bi[e.toLowerCase()]=t}function xi(e){return vi[e]||bi[e.toLowerCase()]}class Si extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,n){if(t){let e=xi(t);return e&&n?e.querySelector(n):e}return null}attributeChangedCallback(e,t,n,r){t!==n&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Qr(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=ti(e)),this.__assetpath}register(e){if(e=e||this.id){if(ai&&void 0!==xi(e))throw wi(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);wi(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Si.prototype.modules=vi,customElements.define("dom-module",Si);const Ei="shady-unscoped";function Ci(e){return Si.import(e)}function Ti(e){const t=ei((e.body||e).textContent,e.baseURI),n=document.createElement("style");return n.textContent=t,n}function Ai(e){const t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){const t=Ci(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Di(t));var n=t.querySelector("template");n&&e.push(...Pi(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function Pi(e,r){if(!e._styles){const i=[],o=e.content.querySelectorAll("style");for(let n=0;n<o.length;n++){let e=o[n],t=e.getAttribute("include");t&&i.push(...Ai(t).filter(function(e,t,n){return n.indexOf(e)===t})),r&&(e.textContent=ei(e.textContent,r)),i.push(e)}e._styles=i}return e._styles}function Di(n){const r=[],i=n.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<i.length;t++){let e=i[t];if(e.import){const n=e.import,i=e.hasAttribute(Ei);if(i&&!n._unscopedStyle){const r=Ti(n);r.setAttribute(Ei,""),n._unscopedStyle=r}else n._style||(n._style=Ti(n));r.push(i?n._unscopedStyle:n._style)}}return r}const ki="include",Oi=window.ShadyCSS.CustomStyleInterface;class Mi extends HTMLElement{constructor(){super(),this._style=null,Oi.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;var r=(this._style=e).getAttribute(ki);return r&&(e.removeAttribute(ki),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){let i=Ci(e);if(i&&void 0===i._cssText){let e=function(){let t="",n=Di(i);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),t=i.querySelector("template");t&&(e+=function(){let n="";var r=Pi(t,i.assetpath);for(let t=0;t<r.length;t++){let e=r[t];e.parentNode&&e.parentNode.removeChild(e),n+=e.textContent}return n}()),i._cssText=e||null}return i||console.warn("Could not find style data in module named",e),i&&i._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",Mi);const Ii=document.createElement("template"),Ni=(Ii.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Ii.content),document.createElement("template")),Li=(Ni.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(Ni.content),document.createElement("template")),Ri=(Li.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(Li.content),document.createElement("template")),Hi=(Ri.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Ri.content),document.createElement("template")),Bi=(Hi.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Hi.content),document.createElement("template")),Fi=(Bi.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Bi.content),document.createElement("template")),zi=(Fi.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Fi.content),window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e}));class Yi{constructor(r,e){ji(r,e);const t=e.reduce((e,t,n)=>e+Ui(t)+r[n+1],r[0]);this.value=t.toString()}toString(){return this.value}}function Ui(e){if(e instanceof class{constructor(r,e){ji(r,e);const t=e.reduce((e,t,n)=>e+Ui(t)+r[n+1],r[0]);this.value=t.toString()}toString(){return this.value}})return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function m(r,...e){ji(r,e);const t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Yi)return Ui(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[n+1],r[0]);return zi&&(n=zi.createHTML(n)),t.innerHTML=n,t}const ji=(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")},Wi=m`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
|
|
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 ie(){}function O(e){return e()}function M(){return Object.create(null)}function he(e){e.forEach(O)}function I(e){return"function"==typeof e}function N(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function L(e,...t){if(null==e)return ie;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function oe(e,t){e.appendChild(t)}function ue(e,t,n){e.insertBefore(t,n||null)}function ce(e){e.parentNode.removeChild(e)}function t(e){return document.createElement(e)}function de(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function se(e){return document.createTextNode(e)}function e(){return se(" ")}function pe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ae(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function me(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:ae(e,t,n)}function le(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let R;function H(e){R=e}const B=[],F=[],z=[],Y=[],U=Promise.resolve();let j=!1;function W(e){z.push(e)}const G=new Set;let V=0;function $(){const e=R;do{for(;V<B.length;){const e=B[V];V++,H(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),he(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(W))}for(H(null),B.length=0,V=0;F.length;)F.pop()();for(let e=0;e<z.length;e+=1){const r=z[e];G.has(r)||(G.add(r),r())}}while(z.length=0,B.length);for(;Y.length;)Y.pop()();j=!1,G.clear(),H(e)}const q=new Set;function X(r,e,t,n,i,o,s,a=[-1]){var l=R;H(r);const h=r.$$={fragment:null,ctx:null,props:o,update:ie,not_equal:i,bound:M(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:M(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(h.root);let u=!1;if(h.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return h.ctx&&i(h.ctx[e],h.ctx[e]=n)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](n),u&&(n=e,-1===(e=r).$$.dirty[0]&&(B.push(e),j||(j=!0,U.then($)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],h.update(),u=!0,he(h.before_update),h.fragment=!!n&&n(h.ctx),e.target){if(e.hydrate){o=e.target;const ie=Array.from(o.childNodes);h.fragment&&h.fragment.l(ie),ie.forEach(ce)}else h.fragment&&h.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(q.delete(a),a.i(void 0));{var c=r;s=e.target;t=e.anchor;n=e.customElement;const{fragment:d,on_mount:p,on_destroy:m,after_update:f}=c.$$;d&&d.m(s,t),n||W(()=>{var e=p.map(O).filter(I);m?m.push(...e):he(e),c.$$.on_mount=[]}),f.forEach(W)}$()}H(l)}let Z;"function"==typeof HTMLElement&&(Z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(O).filter(I);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){he(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(he(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=ie}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var J,K,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,Q="URLSearchParams"in a,ee="Symbol"in a&&"iterator"in Symbol,te="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),ne="FormData"in a,re="ArrayBuffer"in a;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 ee&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){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.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ve(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function be(e){var t=new FileReader,n=ve(t);return t.readAsArrayBuffer(e),n}function we(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function xe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:te&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:ne&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Q&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():re&&te&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):re&&(ArrayBuffer.prototype.isPrototypeOf(e)||K(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):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):Q&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},te&&(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(){return this._bodyArrayBuffer?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)):this.blob().then(be)}),this.text=function(){var e,t,n=ge(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=new FileReader,t=ve(e),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ne&&(this.formData=function(){return this.text().then(Ce)}),this.json=function(){return this.text().then(JSON.parse)},this}re&&(J=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(e){return e&&-1<J.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=fe(e),t=_e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[fe(e)]},l.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},l.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),ye(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),ye(n)},ee&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Se=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ee(e,t){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Ee){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=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 l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Se.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ce(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function h(e,t){if(!(this instanceof h))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})},xe.call(Ee.prototype),xe.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var Te=[301,302,303,307,308],Ae=(h.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},a.DOMException);try{new Ae}catch(ie){(Ae=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Ae.prototype.constructor=Ae}function Pe(r,s){return new Promise(function(i,e){var t=new Ee(r,s);if(t.signal&&t.signal.aborted)return e(new Ae("Aborted","AbortError"));var o=new XMLHttpRequest;function n(){o.abort()}o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",n=new l,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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},r=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new h(r,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Ae("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(te?o.responseType="blob":re&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,_e(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",n)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Pe.polyfill=!0,a.fetch||(a.fetch=Pe,a.Headers=l,a.Request=Ee,a.Response=h),self.fetch.bind(self);var De=function(e,t){return(De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Oe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Me(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ie(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function c(e){return"function"==typeof e}function Ne(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 Le=Ne(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)}n.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Oe(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(c(o))try{o()}catch(e){i=e instanceof Le?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Oe(o),h=l.next();!h.done;h=l.next()){var u=h.value;try{ze(u)}catch(e){i=null!=i?i:[],e instanceof Le?i=Ie(Ie([],Me(i)),Me(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Le(i)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ze(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Re(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Re(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((i=new n).closed=!0,i);var He=n,Be=He.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Fe(e){return e instanceof He||e&&"closed"in e&&c(e.remove)&&c(e.add)&&c(e.unsubscribe)}function ze(e){c(e)?e():e.unsubscribe()}var Ye=void 0,Ue=!1,je=!1,We={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=We.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ie([e,t],Me(n))):setTimeout.apply(void 0,Ie([e,t],Me(n)))},clearTimeout:function(e){var t=We.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ge(){}var Ve=null;function $e(e){if(Ue){var t=!Ve;if(t&&(Ve={errorThrown:!1,error:null}),e(),t){var t=Ve,n=t.errorThrown,t=t.error;if(Ve=null,n)throw t}}else e()}ke(r,qe=He),r.create=function(e,t,n){return new et(e,t,n)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,qe.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var qe,Xe=r,Ze=Function.prototype.bind;function r(e){var t=qe.call(this)||this;return t.isStopped=!1,e?Fe(t.destination=e)&&e.add(t):t.destination=it,t}function Je(e,t){return Ze.call(e,t)}nt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){rt(e)}},nt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){rt(e)}else rt(e)},nt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){rt(e)}};var Ke,Qe=nt,et=(ke(tt,Ke=Xe),tt);function tt(e,t,n){var r=Ke.call(this)||this,n=c(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&je?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&Je(e.next,t),error:e.error&&Je(e.error,t),complete:e.complete&&Je(e.complete,t)}):e;return r.destination=new Qe(n),r}function nt(e){this.partialObserver=e}function rt(e){var t=e;We.setTimeout(function(){throw t})}var it={closed:!0,next:Ge,error:function(e){throw e},complete:Ge},i="function"==typeof Symbol&&Symbol.observable||"@@observable";function ot(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Xe||r&&c(r.next)&&c(r.error)&&c(r.complete)&&Fe(r)?e:new et(e,t,n);return $e(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var i=this;return new(e=at(e))(function(e,t){var n=new et({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[i]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?ot:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=at(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var st=o;function o(e){e&&(this._subscribe=e)}function at(e){return null!=(e=null!=e?e:Ye)?e:Promise}var lt,ht,ut,ct=Ne(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=(ke(s,ut=st),s.prototype.lift=function(e){var t=new dt(this,this);return t.operator=e,t},s.prototype._throwIfClosed=function(){if(this.closed)throw new ct},s.prototype.next=function(i){var o=this;$e(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Oe(o.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},s.prototype.error=function(t){var n=this;$e(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},s.prototype.complete=function(){var t=this;$e(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},s.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(s.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),s.prototype._trySubscribe=function(e){return this._throwIfClosed(),ut.prototype._trySubscribe.call(this,e)},s.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},s.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?Be:(this.currentObservers=null,i.push(e),new He(function(){t.currentObservers=null,Re(i,e)}))},s.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},s.prototype.asObservable=function(){var e=new st;return e.source=this,e},s.create=function(e,t){return new dt(e,t)},s),dt=(ke(_t,ht=i),_t.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},_t.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},_t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},_t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Be},_t),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},mt=(ke(ft,lt=i),ft.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(r.push(e),i||r.push(o.now()+t)),this._trimBuffer(),lt.prototype.next.call(this,e)},ft.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},ft.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},ft);function ft(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=pt);var r=lt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function _t(e,t){var n=ht.call(this)||this;return n.destination=e,n.source=t,n}function s(){var e=ut.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let yt=[],gt={};const vt=[];function bt(r,i=ie){let o;const s=new Set;function a(e){if(N(r,e)&&(r=e,o)){const e=!vt.length;for(const e of s)e[1](),vt.push(e,r);if(e){for(let e=0;e<vt.length;e+=2)vt[e][0](vt[e+1]);vt.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=ie){const n=[e,t];return s.add(n),1===s.size&&(o=i(a)||ie),e(r),()=>{s.delete(n),0===s.size&&(o(),o=null)}}}}function wt(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:bt(t,t=>{let n=!1;const r=[];let i=0,o=ie;const s=()=>{var e;i||(o(),e=a(l?r[0]:r,t),u?t(e):o=I(e)?e:ie)},e=h.map((e,t)=>L(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){he(e),o()}}).subscribe}}function xt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===St));var t}var St="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Et(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Dt(Array.isArray(e)?[]:{},e,t):e}function Ct(e,t,n){return e.concat(t).map(function(e){return Et(e,n)})}function Tt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function At(e,t){try{return t in e}catch(e){return!1}}function Pt(r,i,o){var s={};return o.isMergeableObject(r)&&Tt(r).forEach(function(e){s[e]=Et(r[e],o)}),Tt(i).forEach(function(t){var e,n;(!At(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(At(r,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return Dt;e=e.customMerge(t);return"function"==typeof e?e:Dt}(o)(r[t],i[t],o):s[t]=Et(i[t],o))}),s}function Dt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ct,n.isMergeableObject=n.isMergeableObject||xt,n.cloneUnlessOtherwiseSpecified=Et;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Pt(e,t,n):Et(t,n)}Dt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Dt(e,t,n)},{});throw new Error("first argument should be an array")};var kt=Dt,Ot=function(e,t){return(Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,It,_=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Nt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Lt(e){return e.type===y.literal}function Rt(e){return e.type===y.number}function Ht(e){return e.type===y.date}function Bt(e){return e.type===y.time}function Ft(e){return e.type===y.select}function zt(e){return e.type===y.plural}function Yt(e){return e.type===y.tag}function Ut(e){return e&&"object"==typeof e&&e.type===It.number}function jt(e){return e&&"object"==typeof e&&e.type===It.dateTime}(i=f=f||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=y=y||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=It=It||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \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,Vt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$t=/^(@+)?(\+|#+)?[rs]?$/g,qt=/(\*)(0+)|(#+)(0+)|(0+)/g,Xt=/^(0+)$/;function Zt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace($t,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function Jt(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 Kt(e){return Jt(e)||{}}function Qt(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[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),Kt(t))},{}));continue;case"engineering":s=_(_(_({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),Kt(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(qt,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&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(Xt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Vt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Vt,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.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),Zt(o)))}else $t.test(i.stem)?s=_(_({},s),Zt(i.stem)):((o=Jt(i.stem))&&(s=_(_({},s),o)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=_(_({},s),r)))}return s}var en={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 tn=new RegExp("^".concat(i.source,"*")),nn=new RegExp("".concat(i.source,"*$"));function g(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,rn=!!String.fromCodePoint,on=!!Object.fromEntries,sn=!!String.prototype.codePointAt,an=!!String.prototype.trimStart,ln=!!String.prototype.trimEnd,hn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},un=!0;try{un="a"===(null==(Mn=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Mn[0])}catch(ie){un=!1}var cn,dn,pn=i?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},mn=rn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},fn=on?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},_n=sn?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},yn=an?function(e){return e.trimStart()}:function(e){return e.replace(tn,"")},gn=ln?function(e){return e.trimEnd()}:function(e){return e.replace(nn,"")};function vn(e,t){return new RegExp(e,t)}dn=un?(cn=vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return cn.lastIndex=t,null!=(t=cn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=_n(e,t);if(void 0===i||xn(i)||(33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(i),t+=65536<=i?2:1}return mn.apply(void 0,r)};u.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},u.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.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(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&wn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{o=this.clonePosition();this.bump(),r.push({type:y.pound,location:g(o,this.clonePosition())})}}}return{val:r,err:null}},u.prototype.parseTag=function(e,t){var n=this.clonePosition(),r=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(r,"/>"),location:g(n,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wn(this.char()))return this.error(f.INVALID_TAG,g(e,this.clonePosition()));var i=this.clonePosition();return r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:g(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,g(n,this.clonePosition()))}return this.error(f.INVALID_TAG,g(n,this.clonePosition()))},u.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())},u.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=g(n,this.clonePosition());return{val:{type:y.literal,value:r,location:n},err:null}},u.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(wn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},u.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return mn.apply(void 0,t)},u.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),mn(n))},u.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,g(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:g(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(f.MALFORMED_ARGUMENT,g(n,this.clonePosition()))}},u.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=dn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:g(e,this.clonePosition())}},u.prototype.parseArgumentOptions=function(e,t,n,r){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((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(p=gn(m.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:g(h,this.clonePosition())}}if((h=this.tryParseArgumentClose(r)).err)return h;var u=g(r,this.clonePosition());if(l&&pn(null==l?void 0:l.style,"::",0)){var c=yn(l.style.slice(2));if("number"===s)return(m=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?m:{val:{type:y.number,value:n,location:u,style:m.val},err:null};if(0===c.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,u);var d=c,p=(this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(en[t||""]||en[n||""]||en["".concat(n,"-001")]||en["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<s--;)n=l+n}else n+="J"===i?"H":i}return n}(c,this.locale)),{type:It.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},d.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):{}});return{val:{type:"date"===s?y.date:y.time,value:n,location:u,style:p},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:n,location:u,style:null!=(c=null==l?void 0:l.style)?c:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(d,_({},d)));this.bumpSpace();var m,p=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),p=this.parseIdentifierIfPossible(),u=m.val}l=this.tryParsePluralOrSelectOptions(e,s,t,p);if(l.err)return l;if((h=this.tryParseArgumentClose(r)).err)return h;c=g(r,this.clonePosition());return"select"===s?{val:{type:y.select,value:n,options:fn(l.val),location:c},err:null}:{val:{type:y.plural,value:n,options:fn(l.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:c},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,g(o,a))}},u.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})},u.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(n,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}},u.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Gt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].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:n,location:t,parsedOptions:this.shouldParseSkeletons?Qt(n):{}},err:null}},u.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,l=r.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,n);if(h.err)return h;var c=this.tryParseArgumentClose(u);if(c.err)return c;o.push([a,{value:h.val,location:g(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.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}},u.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-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()}r=g(r,this.clonePosition());return i?hn(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},u.prototype.offset=function(){return this.position.offset},u.prototype.isEOF=function(){return this.offset()===this.message.length},u.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},u.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=_n(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},u.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},u.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))},u.prototype.bumpIf=function(e){if(pn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},u.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)},u.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}},u.prototype.bumpSpace=function(){for(;!this.isEOF()&&xn(this.char());)this.bump()},u.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var bn=u;function u(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 wn(e){return 97<=e&&e<=122||65<=e&&e<=90}function xn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Sn(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new bn(e,t).parse();if(e.err)throw(n=SyntaxError(f[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ft(e)||zt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Rt(e)&&Ut(e.style)||(Ht(e)||Bt(e))&&jt(e.style)?delete e.style.location:Yt(e)&&n(e.children)})}(e.val),e.val}function En(e,t){var n=t&&t.cache?t.cache:In,r=t&&t.serializer?t.serializer:Pn;return(t&&t.strategy?t.strategy:function(e,t){return An(e,this,1===e.length?Cn:Tn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Cn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function Tn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function An(e,t,n,r,i){return n.bind(t,e,r,i)}var Pn=function(){return JSON.stringify(arguments)};function Dn(){this.cache=Object.create(null)}Dn.prototype.get=function(e){return this.cache[e]},Dn.prototype.set=function(e,t){this.cache[e]=t};var kn,Mn,In={create:function(){return new Dn}},Nn={variadic:function(e,t){return An(e,this,Tn,t.cache.create(),t.serializer)},monadic:function(e,t){return An(e,this,Cn,t.cache.create(),t.serializer)}};(Mn=kn=kn||{}).MISSING_VALUE="MISSING_VALUE",Mn.INVALID_VALUE="INVALID_VALUE",Mn.MISSING_INTL_API="MISSING_INTL_API";Mt(Vn,Bn=Error),Vn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,Ln,Rn,Hn,Bn,Fn=Vn,zn=(Mt(Gn,Hn=Fn),Gn),Yn=(Mt(Wn,Rn=Fn),Wn),Un=(Mt(jn,Ln=Fn),jn);function jn(e,t){return Ln.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),kn.MISSING_VALUE,t)||this}function Wn(e,t,n){return Rn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),kn.INVALID_VALUE,n)||this}function Gn(e,t,n,r){return Hn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),kn.INVALID_VALUE,r)||this}function Vn(e,t,n){e=Bn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function $n(e,t,n,r,i,o,s){if(1===e.length&&Lt(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(Lt(u))a.push({type:v.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&a.push({type:v.literal,value:n.getNumberFormat(t).format(o)});else{var c=u.value;if(!(i&&c in i))throw new Un(c,s);c=i[c];if(u.type===y.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),a.push({type:"string"==typeof c?v.literal:v.object,value:c});else if(Ht(u)){var d="string"==typeof u.style?r.date[u.style]:jt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(c)})}else if(Bt(u))d="string"==typeof u.style?r.time[u.style]:jt(u.style)?u.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(c)});else if(Rt(u))(d="string"==typeof u.style?r.number[u.style]:Ut(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(c*=d.scale||1),a.push({type:v.literal,value:n.getNumberFormat(t,d).format(c)});else{if(Yt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Yn(m,"function",s);m=f($n(p,t,n,r,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(Ft(u)){if(!(_=u.options[c]||u.options.other))throw new zn(u.value,c,Object.keys(u.options),s);a.push.apply(a,$n(_.value,t,n,r,i))}else if(zt(u)){if(!(_=u.options["=".concat(c)])){if(!Intl.PluralRules)throw new Fn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kn.MISSING_INTL_API,s);var f=n.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new zn(u.value,c,Object.keys(u.options),s);a.push.apply(a,$n(_.value,t,n,r,i,c-(u.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===v.literal&&t.type===v.literal?n.value+=t.value:e.push(t),e},[])}function qn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(i=v=v||{})[i.literal=0]="literal",i[i.object=1]="object",Object.defineProperty(d,"defaultLocale",{get:function(){return d.memoizedDefaultLocale||(d.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),d.memoizedDefaultLocale},enumerable:!1,configurable:!0}),d.memoizedDefaultLocale=null,d.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])},d.__parse=Sn,d.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 Xn=d;function d(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=d.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return 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},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return $n(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=d.resolveLocale(t),"string"==typeof e){if(this.message=e,!d.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=d.__parse(e,{ignoreTag:null==r?void 0:r.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=d.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?_(_(_({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=_(_({},n[t]),r[t]||{}),e},{})):n),e},_({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:qn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Nn.variadic}),getDateTimeFormat:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:qn(t.dateTime),strategy:Nn.variadic}),getPluralRules:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Nt([void 0],t,!1)))},{cache:qn(t.pluralRules),strategy:Nn.variadic})}}const Zn={},Jn=(e,t,n)=>n&&(t in Zn||(Zn[t]={}),e in Zn[t]||(Zn[t][e]=n),n),Kn=(t,n)=>{if(null!=n){if(n in Zn&&t in Zn[n])return Zn[n][t];var r=mr(n);for(let e=0;e<r.length;e++){var i=function(e,n){if(!tr(e))return null;e=function(e){return Qn[e]||null}(e);{var r=n;if(null==r)return;if(r in e)return e[r];const i=r.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const r=i.slice(e,i.length).join(".");if(r in t){t=t[r];break}}t=t[i[e]]}else t=void 0;return t}}(r[e],t);if(i)return Jn(t,n,i)}}};let Qn;const er=bt({});function tr(e){return e in Qn}function nr(t,...n){delete Zn[t],er.update(e=>(e[t]=kt.all([e[t]||{},...n]),e))}wt([er],([e])=>Object.keys(e)),er.subscribe(e=>Qn=e);const rr={};function ir(e){return rr[e]}function or(e){return null!=e&&mr(e).some(e=>{return null==(e=ir(e))?void 0:e.size})}const sr={};function ar(e){if(!or(e))return e in sr?sr[e]:Promise.resolve();const t=mr(e).map(e=>{var t=ir(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return sr[e]=Promise.all(t.map(([e,t])=>{{var r=e;e=t;const n=Promise.all(e.map(e=>{var t=r,n=e;return rr[t].delete(n),0===rr[t].size&&delete rr[t],e().then(e=>e.default||e)}));return n.then(e=>nr(r,...e))}})).then(()=>{if(or(e))return ar(e);delete sr[e]}),sr[e]}function lr(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const hr={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};const ur=bt(!1);let cr;const dr=bt(null);function pr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function mr(e,t=hr.fallbackLocale){e=pr(e);return t?[...new Set([...e,...pr(t)])]:e}function fr(){return null!=cr?cr:void 0}dr.subscribe(e=>{cr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const _r=Object.assign(Object.assign({},dr),{set:t=>{if(t&&function(e){if(null!=e){var t=mr(e);for(let e=0;e<t.length;e++){var n=t[e];if(tr(n))return n}}}(t)&&or(t)){var n=hr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=fr()&&n?e=window.setTimeout(()=>ur.set(!0),n):ur.set(!0),ar(t).then(()=>{dr.set(t)}).finally(()=>{clearTimeout(e),ur.set(!1)})}return dr.set(t)}}),yr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},gr=(e,t)=>{var n=hr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},vr=yr(e=>{var{locale:t,format:n}=e,e=lr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=gr("number",n)),new Intl.NumberFormat(t,e)}),br=yr(e=>{var{locale:t,format:n}=e,e=lr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=gr("date",n):0===Object.keys(e).length&&(e=gr("date","short")),new Intl.DateTimeFormat(t,e)}),wr=yr(e=>{var{locale:t,format:n}=e,e=lr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=gr("time",n):0===Object.keys(e).length&&(e=gr("time","short")),new Intl.DateTimeFormat(t,e)}),xr=yr((e,t=fr())=>new Xn(e,t,hr.formats,{ignoreTag:hr.ignoreTag})),Sr=wt([_r,er],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=fr(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kn(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!=(r=null!=(n=null==(n=(r=hr).handleMissingMessage)?void 0:n.call(r,{locale:s,id:e,defaultValue:a}))?n:a)?r:e;if(!o)return l;let h=l;try{h=xr(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h});wt([_r],()=>(e,t)=>((e={})=>{var{locale:t=fr()}=e,e=lr(e,["locale"]);return wr(Object.assign({locale:t},e))})(t).format(e)),wt([_r],()=>(e,t)=>((e={})=>{var{locale:t=fr()}=e,e=lr(e,["locale"]);return br(Object.assign({locale:t},e))})(t).format(e)),wt([_r],()=>(e,t)=>((e={})=>{var{locale:t=fr()}=e,e=lr(e,["locale"]);return vr(Object.assign({locale:t},e))})(t).format(e)),wt([_r,er],()=>(e,t=fr())=>Kn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==yt.indexOf(e)&&(t=new mt(t),gt[e]=t,yt.push(e)),gt[e]}};Cr=Er={path:void 0,exports:{},require:function(e,t){return On(null==t&&Er.path)}},Er.exports,Cr.exports=function(){var R;function m(){return R.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 B(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 z(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function U(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Ot(e,t,n,r,!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 j(e){if(null==e._isValid){var t=_(e),n=G.call(t.parsedDateParts,function(e){return null!=e}),n=!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&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function W(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var G=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=m.momentProperties=[],$=!1;function q(e,t){var n,r,i,o=V.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(n=0;n<o;n++)a(i=t[r=V[n]])||(e[r]=i);return e}function X(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===$&&($=!0,m.updateOffset(this),$=!1)}function l(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function Z(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,n=[],r=arguments.length,i=0;i<r;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];n.push(e)}Z(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=U({},e);for(n in t)f(t,n)&&(H(e[n])&&H(t[n])?(r[n]={},U(r[n],e[n]),U(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&H(e[n])&&(r[n]=U({},r[n]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function o(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([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,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},oe={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=i),t&&(oe[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=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(r){for(var e,i=r.match(ne),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="",n=0;n<o;n++)t+=u(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function c(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function he(e){var t,n,r={};for(n in e)f(e,n)&&(t=c(n))&&(r[t]=e[n]);return r}var ue={};function n(e,t){ue[e]=t}function ce(e){return e%4==0&&e%100!=0||e%400==0}function d(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)?d(e):t}function de(t,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):pe(this,t)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=p(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}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}/,xe=/[+-]?\d{1,6}/,Se=/\d+/,Ee=/[+-]?\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,n,r){Pe[e]=u(n)?n:function(e,t){return e&&r?r:n}}function Ae(e,t){return f(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Pe={},De={};function x(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),F(n)&&(i=function(e,t){t[n]=p(e)}),r=e.length,t=0;t<r;t++)De[e[t]]=i}function ke(e,i){x(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var S,E=0,C=1,T=2,A=3,P=4,D=5,Oe=6,Me=7,Ie=8;function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?ce(e)?29:28:31-n%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("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)}),x(["M","MM"],function(e,t){t[C]=p(e)-1}),x(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[C]=r:_(n).invalidMonth=e});var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=v,Fe=v;function ze(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if(!F(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ye(e){return null!=e?(ze(this,e),m.updateOffset(this,!0),this):pe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],o=0;o<12;o++)t=h([2e3,o]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),o=0;o<12;o++)n[o]=w(n[o]),r[o]=w(r[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("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function je(e){return ce(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),b("Y",Ee),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",xe,ye),b("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],E),x("YYYY",function(e,t){t[E]=2===e.length?m.parseTwoDigitYear(e):p(e)}),x("YY",function(e,t){t[E]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[E]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var We=de("FullYear",!0);function Ge(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function Ve(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 $e(e,t,n){n=7+t-n;return-(7+Ve(e,0,n).getUTCDay()-t)%7+n-1}function qe(e,t,n,r,i){var o,t=1+7*(t-1)+(7+n-r)%7+$e(e,r,i),n=t<=0?je(o=e-1)+t:t>je(e)?(o=e+1,t-je(e)):(o=e,t);return{year:o,dayOfYear:n}}function Xe(e,t,n){var r,i,o=$e(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+k(i=e.year()-1,t,n):o>k(e.year(),t,n)?(r=o-k(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function k(e,t,n){var r=$e(e,t,n),t=$e(e+1,t,n);return(je(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),b("w",g),b("ww",g,y),b("W",g),b("WW",g,y),ke(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=p(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("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,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:_(n).invalidWeekday=e}),ke(["d","e","E"],function(e,t,n,r){t[r]=p(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],o=[],s=[],a=[],l=0;l<7;l++)r=h([2e3,1]).day(l),t=w(this.weekdaysMin(r,"")),n=w(this.weekdaysShort(r,"")),r=w(this.weekdays(r,"")),i.push(t),o.push(n),s.push(r),a.push(t),a.push(n),a.push(r);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){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),n("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),x(["H","HH"],A),x(["k","kk"],function(e,t,n){e=p(e);t[A]=24===e?0:e}),x(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),x(["h","hh"],function(e,t,n){t[A]=p(e),_(n).bigHour=!0}),x("hmm",function(e,t,n){var r=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r)),_(n).bigHour=!0}),x("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i)),_(n).bigHour=!0}),x("Hmm",function(e,t,n){var r=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r))}),x("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[A]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i))});v=de("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:Le,monthsShort:Re,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},O={},ht={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function ct(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ut(e[o]).split("-")).length,n=(n=ut(e[o+1]))?n.split("-"):null;0<t;){if(r=dt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}o++}return at}function dt(t){var e;if(void 0===O[t]&&Cr&&Cr.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,On(),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 n,r=lt;if(t.abbr=e,null!=O[e])K("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."),r=O[e]._config;else if(null!=t.parentLocale)if(null!=O[t.parentLocale])r=O[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;r=n._config}return O[e]=new ee(Q(r,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=dt(e))return t;e=[e]}return ct(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]>Ne(t[E],t[C])?T:t[A]<0||24<t[A]||24===t[A]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?A: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<E||T<t)&&(t=T),_(e)._overflowWeeks&&-1===t&&(t=Me),_(e)._overflowWeekday&&-1===t&&(t=Ie),_(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,xt=/^(?:(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}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,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,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=h;t<n;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&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,n,r,i,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Re.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&e.push(parseInt(o,10)),e}function Tt(e){var t,n,r,i,o=xt.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]),n=o[1],r=t,i=e,n&&Ke.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(_(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=o[8],r=o[9],i=o[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0)):e._isValid=!1}function At(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,o,s,a,l,h,u,c,d=[];if(!e._d){for(u=e,c=new Date(m.now()),n=u._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[T]&&null==e._a[C]&&(null!=(c=(u=e)._w).GG||null!=c.W||null!=c.E?(s=1,a=4,r=At(c.GG,u._a[E],Xe(I(),1,4).year),i=At(c.W,1),((o=At(c.E,1))<1||7<o)&&(l=!0)):(s=u._locale._week.dow,a=u._locale._week.doy,h=Xe(I(),s,a),r=At(c.gg,u._a[E],h.year),i=At(c.w,h.week),null!=c.d?((o=c.d)<0||6<o)&&(l=!0):null!=c.e?(o=c.e+s,(c.e<0||6<c.e)&&(l=!0)):o=s),i<1||i>k(r,s,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(r,i,o,s,a),u._a[E]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(c=At(e._a[E],n[E]),(e._dayOfYear>je(c)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=Ve(c,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]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[A]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[A]=0),e._d=(e._useUTC?Ve:Ge).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[A]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(_(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,n,r,i=""+e._i,o=i.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Ae(r,e))||[])[0])&&(0<(c=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(c),i=i.slice(i.indexOf(t)+t.length),s+=t.length),oe[r]?(t?_(e).empty=!1:_(e).unusedTokens.push(r),c=r,p=e,null!=(d=t)&&f(De,c)&&De[c](d,p._a,p,c)):e._strict&&!t&&_(e).unusedTokens.push(r);_(e).charsLeftOver=o-s,0<i.length&&_(e).unusedInput.push(i),e._a[A]<=12&&!0===_(e).bigHour&&0<e._a[A]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[A]=(o=e._locale,h=e._a[A],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[E]=e._locale.erasConvertYear(u,e._a[E])),Pt(e),ft(e)}else Tt(e);else Et(e);var h,u,c,d,p}function kt(e){var t,n=e._i,r=e._f;{var i,o;if(e._locale=e._locale||M(e._l),null===n||void 0===r&&""===n)return W({nullInput:!0});else return"string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(z(n)?e._d=n:s(r)?function(e){var t,n,r,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),j(t)&&(s=!0),o=(o+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));U(e,n||t)}(e):r?Dt(e):a(r=(n=e)._i)?n._d=new Date(m.now()):z(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(o=wt.exec(i._i))?(Et(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(r)?(n._a=Y(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):H(r)?(i=n)._d||(t=void 0===(o=he(i._i)).day?o.date:o.day,i._a=Y([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(r)?n._d=new Date(r):m.createFromInputFallback(n),j(e)||(e._d=null),e)}}function Ot(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(H(e)&&B(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,(i=new X(ft(kt(i=o))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function I(e,t,n,r){return Ot(e,t,n,r,!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=I.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function Mt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return I();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=he(e),t=e.year||0,n=e.quarter||0,r=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,n,r=!1,i=It.length;for(t in e)if(f(e,t)&&(-1===S.call(It,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[It[n]]){if(r)return!1;parseFloat(e[It[n]])!==p(e[It[n]])&&(r=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=M(),this._bubble()}function Lt(e){return e instanceof Nt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+n+o(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),b("Z",Te),b("ZZ",Te),x(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(Te,e)});var Bt=/([\+\-]|\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(Bt)||["-",0,0])[1]+p(e[2]))?0:"+"===e[0]?t:-t}function zt(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||z(e)?e:I(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):I(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var n,r,i=e,o=null;return Lt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=jt.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:p(o[T])*n,h:p(o[A])*n,m:p(o[P])*n,s:p(o[D])*n,ms:p(Rt(1e3*o[Oe]))*n}):(o=Wt.exec(e))?(n="-"===o[1]?-1:1,i={y:Gt(o[2],n),M:Gt(o[3],n),w:Gt(o[4],n),d:Gt(o[5],n),h:Gt(o[6],n),m:Gt(o[7],n),s:Gt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=I(i.from),o=I(i.to),n=t.isValid()&&o.isValid()?(o=zt(o,t),t.isBefore(o)?r=Vt(t,o):((r=Vt(o,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=n.milliseconds,i.M=n.months),o=new Nt(i),Lt(e)&&f(e,"_locale")&&(o._locale=e._locale),Lt(e)&&f(e,"_isValid")&&(o._isValid=e._isValid),o}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $t(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(K(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."),n=e,e=t,t=n),qt(this,N(e,t),r),this}}function qt(e,t,n,r){var i=t._milliseconds,o=Rt(t._days),t=Rt(t._months);e.isValid()&&(r=null==r||r,t&&ze(e,pe(e,"Month")+t*n),o&&me(e,"Date",pe(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,o||t))}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Le=$t(1,"add"),Je=$t(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||z(e)||Xt(e)||F(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!F(e)&&Xt(t)}).length),n&&r)||function(e){var t,n,r=H(e)&&!B(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)n=o[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Kt(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 en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],r=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(w(i[o].name)),e.push(w(i[o].abbr)),n.push(w(i[o].narrow)),r.push(w(i[o].name)),r.push(w(i[o].abbr)),r.push(w(i[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var o;return null==e?Xe(this,r,i).year:(t>(o=k(e,r,i))&&(t=o),function(e,t,n,r,i){e=qe(e,t,n,r,i),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),b("N",on),b("NN",on),b("NNN",on),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?_(n).era=r:_(n).invalidEra=e}),b("y",Se),b("yy",Se),b("yyy",Se),b("yyyy",Se),b("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),x(["y","yy","yyy","yyyy"],E),x(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[E]=n._locale.eraYearOrdinalParse(e,i):t[E]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),b("G",Ee),b("g",Ee),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",xe,ye),b("ggggg",xe,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=p(e)}),ke(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),b("Q",i),x("Q",function(e,t){t[C]=3*(p(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),b("D",g),b("DD",g,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],T),x("Do",function(e,t){t[T]=p(e.match(g)[0])});we=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),b("DDD",be),b("DDDD",fe),x(["DDD","DDDD"],function(e,t,n){n._dayOfYear=p(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),b("m",g),b("mm",g,y),x(["m","mm"],P);_e=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),b("s",g),b("ss",g,y),x(["s","ss"],D);var hn,xe=de("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),b("S",be,i),b("SS",be,y),b("SSS",be,fe),hn="SSSS";hn.length<=9;hn+="S")b(hn,Se);function un(e,t){t[Oe]=p(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")x(hn,un);ye=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=X.prototype;function cn(e){return e}i.add=Le,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!B(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||f(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||I(),n=zt(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(u(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,I(e)))},i.clone=function(){return new X(this)},i.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=zt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=c(t)){case"year":o=Jt(this,r)/12;break;case"month":o=Jt(this,r);break;case"quarter":o=Jt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:d(o)},i.endOf=function(e){var t,n;if(void 0===(e=c(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),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()||I(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(I(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||I(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(I(),e)},i.get=function(e){return u(this[e=c(e)])?this[e]():this},i.invalidAt=function(){return _(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:I(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:I(e),t=l(t)?t:I(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},i.isSame=function(e,t){var e=l(e)?e:I(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(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 j(this)},i.lang=Qe,i.locale=Kt,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 n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:ue[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=he(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(u(this[e=c(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0===(e=c(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},i.subtract=Je,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){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.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")},i.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"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(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-m(n[r].since).year())*e+n[r].offset;return this.year()},i.year=We,i.isLeapYear=function(){return ce(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.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=Ye,i.daysInMonth=function(){return Ne(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=Xe(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){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},i.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},i.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},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=xe,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=Ft(Te,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?qt(this,N(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(Yt(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?I(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",Ye),i.years=e("years accessor is deprecated. Use year instead",We),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(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return q(t,this),(t=kt(t))._a?(e=(t._isUTC?h:I)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&p(e[s])!==p(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function dn(e,t,n,r){var i=M(),r=h().set(r,t);return i[n](r,e)}function pn(e,t,n){if(F(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),F(t)&&(n=t,t=void 0),t||"");var i,o=M(),s=e?o._week.dow:0,a=[];if(null!=n)return dn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+s)%7,r,"day");return a}y.calendar=function(e,t,n){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).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=cn,y.postformat=cn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return u(i)?i(e,t,n,r):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,n;for(n in e)f(e,n)&&(u(t=e[n])?this[n]=t:this["_"+n]=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 n,r=this._eras||M("en")._eras,i=0,o=r.length;i<o;++i)switch("string"==typeof r[i].since&&(n=m(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=m(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},y.erasParse=function(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[o,s,a].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||sn.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,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},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=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(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?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.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")||rt.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")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"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 fn=Math.abs;function _n(e,t,n,r){t=N(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function gn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}be=bn("ms"),fe=bn("s"),Le=bn("m"),ve=bn("h"),ge=bn("d"),Je=bn("w"),v=bn("M"),_e=bn("Q"),xe=bn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wn("milliseconds"),we=wn("seconds"),We=wn("minutes"),y=wn("hours"),xn=wn("days"),Sn=wn("months"),En=wn("years");var Cn=Math.round,Tn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function An(e,t,n,r){var i=N(e).abs(),o=Cn(i.as("s")),s=Cn(i.as("m")),a=Cn(i.as("h")),l=Cn(i.as("d")),h=Cn(i.as("M")),u=Cn(i.as("w")),i=Cn(i.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return(o=(o=null!=n.w?o||u<=1&&["w"]||u<n.w&&["ww",u]:o)||h<=1&&["M"]||h<n.M&&["MM",h]||i<=1&&["y"]||["yy",i])[2]=t,o[3]=0<+e,o[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,o)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a=Pn(this._milliseconds)/1e3,l=Pn(this._days),h=Pn(this._months),u=this.asSeconds();return u?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(h/12),h%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dn(this._months)!==Dn(u)?"-":"",o=Dn(this._days)!==Dn(u)?"-":"",s=Dn(this._milliseconds)!==Dn(u)?"-":"",(u<0?"-":"")+"P"+(n?i+n+"Y":"")+(h?i+h+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"}var L=Nt.prototype;return L.isValid=function(){return this._isValid},L.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},L.add=function(e,t){return _n(this,e,t,1)},L.subtract=function(e,t){return _n(this,e,t,-1)},L.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=c(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+gn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},L.asMilliseconds=be,L.asSeconds=fe,L.asMinutes=Le,L.asHours=ve,L.asDays=ge,L.asWeeks=Je,L.asMonths=v,L.asQuarters=_e,L.asYears=xe,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},L._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(gn(t)),t-=yn(vn(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},L.clone=function(){return N(this)},L.get=function(e){return e=c(e),this.isValid()?this[e+"s"]():NaN},L.milliseconds=ye,L.seconds=we,L.minutes=We,L.hours=y,L.days=xn,L.weeks=function(){return d(this.days()/7)},L.months=Sn,L.years=En,L.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Tn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Tn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),t=An(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},L.toISOString=kn,L.toString=kn,L.toJSON=kn,L.locale=Kt,L.localeData=Qt,L.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),L.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Ee),b("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,n){n._d=new Date(p(e))}),m.version="2.29.3",R=I,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 I(1e3*e)},m.months=function(e,t){return pn(e,t,"months")},m.isDate=z,m.locale=pt,m.invalid=W,m.duration=N,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return I.apply(null,arguments).parseZone()},m.localeData=M,m.isDuration=Lt,m.monthsShort=function(e,t){return pn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=O[e]&&null!=O[e].parentLocale?O[e].set(Q(O[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=O[e],O[e]=r),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,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=c,m.relativeTimeRounding=function(e){return void 0===e?Cn:"function"==typeof e&&(Cn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Tn[e]&&(void 0===t?Tn[e]:(Tn[e]=t,"s"===e&&(Tn.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 Er,Cr,Tr=Er.exports;function Ar(e,t){nr(e,t)}const Pr={en:{selfExclusion:{title:"Self-Exclusion",selfExclusionText1:"We recognizes that gambling can lead to addiction and in our effort to prevent these problems, we offer our users the ability to exclude all forms of betting on our site for a certain of indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for the period you choose. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion you will not be able to access your Everymatrix account. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months post its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows: E-mail:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."}},zh:{selfExclusion:{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 Everymatrix 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"}},fr:{selfExclusion:{title:"Auto exclusion",selfExclusionText1:"Everymatrix reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "confirmer".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte everymatrix.dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."}},ro:{selfExclusion:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Confirmă".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."}},es:{selfExclusion:{title:"Autoexclusión",selfExclusionText1:"Everymatrix reconoce que los juegos de azar pueden conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas, ofrecemos a nuestros usuarios la posibilidad de optar por no participar en todas las formas de juegos de azar en nuestro sitio por un período de tiempo indefinido.",selfExclusionText2:'La autoexclusión surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y haga clic en "Confirmar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de Everymatrix. En el caso de autoexclusión permanente, solo es posible revocar la Autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Tenga en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de atención al cliente de la siguiente manera:",selfExclusionText4:"E-mail:",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente."}},pt:{selfExclusion:{title:"Auto-exclusão",selfExclusionText1:"Everymatrix reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Confirmar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta Everymatrix. No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."}}};class Dr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Dr);let kr,Or=null,Mr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Ir(e){requestAnimationFrame(function(){Mr?Mr(e):(Or||(Or=new Promise(e=>{kr=e}),"complete"===document.readyState?kr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&kr()})),Or.then(function(){e&&e()}))})}const Nr="__seenByShadyCSS",Lr="__shadyCSSCachedStyle";let Rr=null,Hr=null;class Br{constructor(){this.customStyles=[],this.enqueued=!1,Ir(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Hr&&(this.enqueued=!0,Ir(Hr))}addCustomStyle(e){e[Nr]||(e[Nr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Lr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){const r=t[e];if(!r[Lr]){var n=this.getStyleForCustomStyle(r);if(n){const t=n.__appliedElement||n;Rr&&Rr(t),r[Lr]=t}}}return t}}Object.defineProperties(Br.prototype,{transformCallback:{get:()=>Rr,set(e){Rr=e}},validateCallback:{get:()=>Hr,set(e){let t=!1;Hr||(t=!0),Hr=e,t&&this.enqueueDocumentValidation()}}});const Fr=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,zr=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Yr=/@media\s(.*)/;function Ur(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function jr(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return n?n.trim():""}const Wr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Gr,Vr;function $r(e){Gr=(!e||!e.shimcssproperties)&&(Wr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Vr=window.ShadyCSS.cssBuild);rn=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Gr=window.ShadyCSS.nativeCss:window.ShadyCSS?($r(window.ShadyCSS),window.ShadyCSS=void 0):$r(window.WebComponents&&window.WebComponents.flags);const qr=Gr,Xr=new Br;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){Xr.processStyles(),Ur(e,t)},styleElement(e){Xr.processStyles()},styleDocument(e){Xr.processStyles(),Ur(document.body,e)},getComputedStyleValue:(e,t)=>jr(e,t),flushCustomStyles(){},nativeCss:qr,nativeShadow:Wr,cssBuild:Vr,disableRuntime:rn}),window.ShadyCSS.CustomStyleInterface=Xr,window.JSCompiler_renameProperty=function(e,t){return e};let Zr,p,Jr=/(url\()([^)]*)(\))/g,Kr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Qr(e,t){if(e&&Kr.test(e))return e;if("//"===e)return e;if(void 0===Zr){Zr=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Zr="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Zr)try{return new URL(e,t).href}catch(t){return e}return p||((p=document.implementation.createHTMLDocument("temp")).base=p.createElement("base"),p.head.appendChild(p.base),p.anchor=p.createElement("a"),p.body.appendChild(p.anchor)),p.base.href=t,p.anchor.href=e,p.anchor.href||e}function ei(e,i){return e.replace(Jr,function(e,t,n,r){return t+"'"+Qr(n.replace(/["']/g,""),i)+"'"+r})}function ti(e){return e.substring(0,e.lastIndexOf("/")+1)}const ni=!window.ShadyDOM||!window.ShadyDOM.inUse,ri=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),ni&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const 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 ii=window.Polymer&&window.Polymer.rootPath||ti(document.baseURI||window.location.href),oi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,si=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,ai=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,li=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,hi=window.Polymer&&window.Polymer.legacyOptimizations||!1,ui=window.Polymer&&window.Polymer.legacyWarnings||!1,ci=window.Polymer&&window.Polymer.syncInitialRender||!1,di=window.Polymer&&window.Polymer.legacyUndefined||!1,pi=window.Polymer&&window.Polymer.orderedComputed||!1,mi=window.Polymer&&window.Polymer.removeNestedTemplates||!1,fi=window.Polymer&&window.Polymer.fastDomIf||!1,_i=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,yi=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,gi=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,vi={},bi={};function wi(e,t){vi[e]=bi[e.toLowerCase()]=t}function xi(e){return vi[e]||bi[e.toLowerCase()]}class Si extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,n){if(t){let e=xi(t);return e&&n?e.querySelector(n):e}return null}attributeChangedCallback(e,t,n,r){t!==n&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Qr(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=ti(e)),this.__assetpath}register(e){if(e=e||this.id){if(ai&&void 0!==xi(e))throw wi(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);wi(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Si.prototype.modules=vi,customElements.define("dom-module",Si);const Ei="shady-unscoped";function Ci(e){return Si.import(e)}function Ti(e){const t=ei((e.body||e).textContent,e.baseURI),n=document.createElement("style");return n.textContent=t,n}function Ai(e){const t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){const t=Ci(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Di(t));var n=t.querySelector("template");n&&e.push(...Pi(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function Pi(e,r){if(!e._styles){const i=[],o=e.content.querySelectorAll("style");for(let n=0;n<o.length;n++){let e=o[n],t=e.getAttribute("include");t&&i.push(...Ai(t).filter(function(e,t,n){return n.indexOf(e)===t})),r&&(e.textContent=ei(e.textContent,r)),i.push(e)}e._styles=i}return e._styles}function Di(n){const r=[],i=n.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<i.length;t++){let e=i[t];if(e.import){const n=e.import,i=e.hasAttribute(Ei);if(i&&!n._unscopedStyle){const r=Ti(n);r.setAttribute(Ei,""),n._unscopedStyle=r}else n._style||(n._style=Ti(n));r.push(i?n._unscopedStyle:n._style)}}return r}const ki="include",Oi=window.ShadyCSS.CustomStyleInterface;class Mi extends HTMLElement{constructor(){super(),this._style=null,Oi.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;var r=(this._style=e).getAttribute(ki);return r&&(e.removeAttribute(ki),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){let i=Ci(e);if(i&&void 0===i._cssText){let e=function(){let t="",n=Di(i);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),t=i.querySelector("template");t&&(e+=function(){let n="";var r=Pi(t,i.assetpath);for(let t=0;t<r.length;t++){let e=r[t];e.parentNode&&e.parentNode.removeChild(e),n+=e.textContent}return n}()),i._cssText=e||null}return i||console.warn("Could not find style data in module named",e),i&&i._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",Mi);const Ii=document.createElement("template"),Ni=(Ii.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Ii.content),document.createElement("template")),Li=(Ni.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(Ni.content),document.createElement("template")),Ri=(Li.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(Li.content),document.createElement("template")),Hi=(Ri.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Ri.content),document.createElement("template")),Bi=(Hi.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Hi.content),document.createElement("template")),Fi=(Bi.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Bi.content),document.createElement("template")),zi=(Fi.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Fi.content),window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e}));class Yi{constructor(r,e){ji(r,e);const t=e.reduce((e,t,n)=>e+Ui(t)+r[n+1],r[0]);this.value=t.toString()}toString(){return this.value}}function Ui(e){if(e instanceof class{constructor(r,e){ji(r,e);const t=e.reduce((e,t,n)=>e+Ui(t)+r[n+1],r[0]);this.value=t.toString()}toString(){return this.value}})return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function m(r,...e){ji(r,e);const t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Yi)return Ui(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[n+1],r[0]);return zi&&(n=zi.createHTML(n)),t.innerHTML=n,t}const ji=(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")},Wi=m`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
|
|
2
2
|
<template>
|
|
3
3
|
<style include="lumo-menu-overlay">
|
|
4
4
|
[part="overlay"] {
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
}
|
|
321
321
|
</style>
|
|
322
322
|
</template>
|
|
323
|
-
</dom-module>`;document.head.appendChild(on.content);let Gi=0;function b(o){let e=o.__mixinApplications,s=(e||(e=new WeakMap,o.__mixinApplications=e),Gi++);return function(t){var n=t.__mixinSet;if(n&&n[s])return t;let r=e,i=r.get(t);if(!i){i=o(t),r.set(t,i);let e=Object.create(i.__mixinSet||n||null);e[s]=!0,i.__mixinSet=e}return i}}const w=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Vi(e){return 0<=e.indexOf(".")}function S(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function $i(e,t){return 0===e.indexOf(t+".")}function qi(e,t){return 0===t.indexOf(e+".")}function Xi(e,t,n){return t+n.slice(e.length)}function Zi(n){if(Array.isArray(n)){let t=[];for(let e=0;e<n.length;e++){var r=n[e].toString().split(".");for(let e=0;e<r.length;e++)t.push(r[e])}return t.join(".")}return n}function Ji(e){return(Array.isArray(e)?Zi(e):e.toString()).split(".")}function x(e,t,n){let r=e,i=Ji(t);for(let e=0;e<i.length;e++){if(!r)return;r=r[i[e]]}return n&&(n.path=i.join(".")),r}function Ki(e,t,n){let r=e,i=Ji(t),o=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(!(r=r[i[e]]))return;r[o]=n}else r[t]=n;return i.join(".")}const Qi={},eo=/-[a-z]/g,to=/([A-Z])/g;function no(e){return Qi[e]||(Qi[e]=e.indexOf("-")<0?e:e.replace(eo,e=>e[1].toUpperCase()))}function ro(e){return Qi[e]||(Qi[e]=e.replace(to,"-$1").toLowerCase())}let io=0,oo=0,so=[],ao=0,lo=!1,ho=document.createTextNode("");new window.MutationObserver(function(){lo=!1;var n=so.length;for(let t=0;t<n;t++){let e=so[t];if(e)try{e()}catch(n){setTimeout(()=>{throw n})}}so.splice(0,n),oo+=n}).observe(ho,{characterData:!0});const E={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)}},co={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},uo={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},po={run:e=>(lo||(lo=!0,ho.textContent=ao++),so.push(e),io++),cancel(e){var t=e-oo;if(0<=t){if(!so[t])throw new Error("invalid async handle: "+e);so[t]=null}}},mo=po,fo=b(e=>class extends e{static createProperties(e){const t=this.prototype;for(var n in e)n in t||t._createPropertyAccessor(n)}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,n){var r=this.__data[e],i=this._shouldPropertyChange(e,t,r);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),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,mo.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,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n)),this.__dataCounter--}_shouldPropertiesChange(e,t,n){return Boolean(t)}_propertiesChanged(e,t,n){}_shouldPropertyChange(e,t,n){return n!==t&&(n==n||t==t)}attributeChangedCallback(e,t,n,r){t!==n&&this._attributeToProperty(e,n),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n,r)}_attributeToProperty(e,t,n){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,n){t=this._serializeValue(t);"class"!==n&&"name"!==n&&"slot"!==n||(e=w(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,""===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}}}),_o={};let yo=HTMLElement.prototype;for(;yo;){var go=Object.getOwnPropertyNames(yo);for(let e=0;e<go.length;e++)_o[go[e]]=!0;yo=Object.getPrototypeOf(yo)}const vo=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,bo=b(e=>{return class extends fo(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(no(t[e]))}static attributeNameForProperty(e){return ro(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(vo(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let n;switch(t){case Object:try{n=JSON.parse(e)}catch(t){n=e}break;case Array:try{n=JSON.parse(e)}catch(t){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:n=(isNaN(e)?String:Number)(e),n=new Date(n);break;default:n=super._deserializeValue(e,t)}return n}_definePropertyAccessor(e,t){var n,r,i;n=this,r=e,_o[r]||void 0!==(i=n[r])&&(n.__data?n._setPendingProperty(r,i):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[r]=i)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),wo={"dom-if":!0,"dom-repeat":!0};let xo=!1,So=!1;const Eo=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,n)=>{t=t.getAttribute(n);r&&n.startsWith("on-")?e.setAttribute(n,r.createScript(t,n)):e.setAttribute(n,t)}})();const Co=b(e=>class extends e{static _parseTemplate(t,n){if(!t._templateInfo){let e=t._templateInfo={nodeInfoList:[]};e.nestedTemplate=Boolean(n),e.stripWhiteSpace=n&&n.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,e,{parent:null})}return t._templateInfo}static _parseTemplateContent(e,t,n){return this._parseTemplateNode(e.content,t,n)}static _parseTemplateNode(e,t,n){let r=!1,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,t,n)||r,e=i,function(){if(!xo){xo=!0;const e=document.createElement("textarea");e.placeholder="a",So=e.placeholder===e.textContent}return So}()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,n),(r=i.hasAttributes&&i.hasAttributes()?this._parseTemplateNodeAttributes(i,t,n)||r:r)||n.noted}static _parseTemplateChildNodes(i,o,s){if("script"!==i.localName&&"style"!==i.localName)for(let t,n=i.firstChild,r=0;n;n=t){if("template"==n.localName&&(n=function(t){let n=t.getAttribute("is");if(n&&wo[n]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(n),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const n=e.attributes[0]["name"];Eo(t,e,n),e.removeAttribute(n)}}return t}(n)),t=n.nextSibling,n.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)n.textContent+=e.textContent,t=e.nextSibling,i.removeChild(e),e=t;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let e={parentIndex:r,parentInfo:s};this._parseTemplateNode(n,o,e)&&(e.infoIndex=o.nodeInfoList.push(e)-1),n.parentNode&&r++}}static _parseTemplateNestedTemplate(e,t,n){let r=e,i=this._parseTemplate(r,t);return(i.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),n.templateInfo=i,!0}static _parseTemplateNodeAttributes(n,r,i){let o=!1,s=Array.from(n.attributes);for(let e,t=s.length-1;e=s[t];t--)o=this._parseTemplateNodeAttribute(n,r,i,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,n,r,i){return"on-"===r.slice(0,3)?(e.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);let i=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,t=r.content||e.content,o=document.importNode(t,!0),s=(o.__noInsertionPoint=!r.hasInsertionPoint,o.nodeList=new Array(i.length));o.$={};for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++){var a=s[t]=function e(t,n){var r=n.parentInfo&&e(t,n.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(n.parentIndex===t++)return e}(o,e),l=(u=o.$,d=a,(c=e).id&&(u[c.id]=d),u=a,c=e,d=r,c.templateInfo&&(u._templateInfo=c.templateInfo,u._parentTemplateInfo=d),c=h=l=void 0,this),h=a,c=e;if(c.events&&c.events.length)for(let e,t=0,n=c.events;t<n.length&&(e=n[t]);t++)l._addMethodEventListenerToNode(h,e.name,e.value,l)}var u,d,c;return o}_addMethodEventListenerToNode(e,t,n,r){function i(e){o[s]?o[s](e,e.detail):console.warn("listener method `"+s+"` not defined")}var o,s;o=r=r||e,s=n,o=o._methodHost||o;return this._addEventListenerToNode(e,t,i),i}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let To=0;const Ao=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Po=/[A-Z]/;function Do(e,t,n){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),n))for(var i in r){let t=r[i],n=r[i]=Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e]}}else r=e[t]={};return r}function ko(i,e,o,s,a,l){if(e){let r=!1;var h,c=To++;for(h in o){var u=e[a?S(h):h];if(u)for(let e,t=0,n=u.length;t<n&&(e=u[t]);t++)e.info&&e.info.lastRun===c||a&&!Oo(h,e.trigger)||(e.info&&(e.info.lastRun=c),e.fn(i,h,o,s,e.info,a,l),r=!0)}return r}}function Oo(e,t){var n;return!t||((n=t.name)==e||t.structured&&$i(n,e)||t.wildcard&&qi(n,e))}function Mo(e,t,n,r,i){let o="string"==typeof i.method?e[i.method]:i.method,s=i.property;o?o.call(e,e.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Io(e,t,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),w(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function No(e,t,n,r,i,o){let s=(o?S(t):t)!=t?t:null,a=s?x(e,s):e.__data[t];s&&void 0===a&&(a=n[t]),Io(e,i.eventName,a,s)}function Lo(e,t,n,r,i){let o=e.__data[t];oi&&(o=oi(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}const Ro=(e,t,n)=>{let r=0,i=t.length-1,o=-1;for(;r<=i;){var s=r+i>>1,a=n.get(t[s].methodInfo)-n.get(e.methodInfo);if(a<0)r=1+s;else{if(!(0<a)){o=s;break}i=s-1}}o<0&&(o=i+1),t.splice(o,0,e)},Ho=(t,e,n,r,i)=>{var o=e[i?S(t):t];if(o)for(let e=0;e<o.length;e++){const s=o[e];s.info.lastRun===To||i&&!Oo(t,s.trigger)||(s.info.lastRun=To,Ro(s.info,n,r))}};function Bo(e,t,n,r,i){t=jo(e,t,n,0,i);if(t===Ao)return!1;n=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[n]?e._setPendingProperty(n,t,!0):(e[n]=t,!1)}function Fo(n,r,e,t,i,o,s){e.bindings=e.bindings||[];let a={kind:t,target:i,parts:o,literal:s,isCompound:1!==o.length};e.bindings.push(a),t=a,Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode&&({event:s,negate:o}=a.parts[0],a.listenerEvent=s||ro(i)+"-changed",a.listenerNegate=o);var l=r.nodeInfoList.length;for(let t=0;t<a.parts.length;t++){let e=a.parts[t];e.compoundIndex=t,f=m=p=d=u=c=h=void 0;var h=n,c=r,u=a,d=e,p=l;if(!d.literal)if("attribute"===u.kind&&"-"===u.target[0])console.warn("Cannot set attribute "+u.target+' because "-" is not a valid attribute starting character');else{var m=d.dependencies,f={index:p,binding:u,part:d,evaluator:h};for(let t=0;t<m.length;t++){let e=m[t];"string"==typeof e&&((e=qo(e)).wildcard=!0),h._addTemplatePropertyEffect(c,e.rootProperty,{fn:zo,info:f,trigger:e})}}}}function zo(e,t,n,r,i,o,s){let a=s[i.index],l=i.binding,h=i.part;var c;o&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=n[t],t=Xi(h.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=i.evaluator._evaluateBinding(e,h,t,n,r,o))!==Ao&&(i=e,t=a,c=h,n=function(t,n,r){if(r.isCompound){let e=t.__dataCompoundStorage[r.target];e[c.compoundIndex]=n,n=e.join("")}return n="attribute"===r.kind||"textContent"!==r.target&&("value"!==r.target||"input"!==t.localName&&"textarea"!==t.localName)?n:null==n?"":n}(t,n=s,r=l),oi&&(n=oi(n,r.target,r.kind,t)),"attribute"==r.kind?i._valueToNodeAttribute(t,n,r.target):(r=r.target,t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?t[C.READ_ONLY]&&t[C.READ_ONLY][r]||t._setPendingProperty(r,n)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,r,n)))}function Yo(e,h,c){if(c.listenerEvent){let l=c.parts[0];e.addEventListener(c.listenerEvent,function(r){{var i=h,o=c.target,s=l.source,a=l.negate;let e,t=r.detail,n=t&&t.path;return e=n?(s=Xi(o,s,n),t&&t.value):r.currentTarget[o],e=a?!e:e,void(i[C.READ_ONLY]&&i[C.READ_ONLY][s]||!i._setPendingPropertyOrPath(s,e,!0,Boolean(n))||t&&t.queueProperty||i._invalidateProperties())}})}}function Uo(n,r,i,o,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var s={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||n._addPropertyEffect(e.rootProperty,i,{fn:o,info:s,trigger:e});return t&&n._addPropertyEffect(r.methodName,i,{fn:o,info:s}),s}function jo(e,t,n,r,i){let o=e._methodHost||e,s=o[i.methodName];if(s)return(e=e._marshalArgs(i.args,t,n))===Ao?Ao:s.apply(o,e);i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Wo=[],Go=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function Vo(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function $o(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);return t?(e={methodName:t[1],static:!0,args:Wo},t[2].trim()?function(e,t){return t.args=e.map(function(e){e=qo(e);return e.literal||(t.static=!1),e},this),t}(t[2].replace(/\\,/g,",").split(","),e):e):null}function qo(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=S(t),n.structured=Vi(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function Xo(e,t,n){let r=x(e,n);return r=void 0===r?t[n]:r}function Zo(e,t,n,r){const i={indexSplices:r};di&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),di&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function Jo(e,t,n,r,i,o){Zo(e,t,n,[{index:r,addedCount:i,removed:o,object:t,type:"splice"}])}const Ko=b(e=>{const h=Co(bo(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 C}_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(){if(Qo.length){let e=Qo[Qo.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,n=this[C.READ_ONLY];for(t in e)n&&n[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,n){this._createPropertyAccessor(e,t==C.READ_ONLY);let r=Do(this,t,!0)[e];(r=r||(this[t][e]=[])).push(n)}_removePropertyEffect(e,t,n){let r=Do(this,t,!0)[e],i=r.indexOf(n);0<=i&&r.splice(i,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,C.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,C.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,C.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,C.COMPUTE)}_setPendingPropertyOrPath(e,t,n,r){if(r||S(Array.isArray(e)?e[0]:e)!==e){if(!r){r=x(this,e);if(!(e=Ki(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n)){{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];qi(l,o)?(e=Xi(l,h,o),i._setPendingPropertyOrPath(e,s,!0,!0)):qi(h,o)&&(e=Xi(h,l,o),i._setPendingPropertyOrPath(e,s,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,n){n===e[t]&&"object"!=typeof n||((e="className"===t?w(e):e)[t]=n)}_setPendingProperty(e,t,n){var r=this.__dataHasPaths&&Vi(e),i=r?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]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!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 n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let t=0;t<n.length;t++){let e=n[t];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,i,o){var s,a,l,h,t,c=this.__dataHasPaths,n=(this.__dataHasPaths=!1,this),r=i,u=o,d=c,p=n[C.COMPUTE];if(p)if(pi){To++;const w=function(a){let i=a.constructor.__orderedComputedDeps;if(!i){i=new Map;var o=a[C.COMPUTE];let e,{counts:t,ready:n,total:r}=function(){const e=a.__computeInfo,t={},n=a[C.COMPUTE],r=[];let i=0;for(var o in e){const n=e[o];i+=t[o]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var s in n)e[s]||r.push(s);return{counts:t,ready:r,total:i}}();for(;e=n.shift();){i.set(e,i.size);const a=o[e];a&&a.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&n.push(e)})}if(0!==r){const i=a;console.warn(`Computed graph for ${i.localName} incomplete; circular?`)}a.constructor.__orderedComputedDeps=i}return i}(n),x=[];for(var m in r)Ho(m,p,x,w,d);for(;t=x.shift();)Bo(n,"",r,0,t)&&Ho(t.methodInfo,p,x,w,d);Object.assign(u,n.__dataOld),Object.assign(r,n.__dataPending),n.__dataPending=null}else{let e=r;for(;ko(n,p,e,u,d);)Object.assign(u,n.__dataOld),Object.assign(r,n.__dataPending),e=n.__dataPending,n.__dataPending=null}if(s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,o,c),this._flushClients(),ko(this,this[C.REFLECT],i,o,c),ko(this,this[C.OBSERVE],i,o,c),s){var f=this,_=s,y=i,g=o,v=c,b;let e,t,n=f[C.NOTIFY],r=To++;for(b in _)_[b]&&(n&&function(r,e,i,o,s,a,l,h){let c=!1,u=e[l?S(o):o];if(u)for(let e,t=0,n=u.length;t<n&&(e=u[t]);t++)e.info&&e.info.lastRun===i||l&&!Oo(o,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(r,o,s,a,e.info,l,h),c=!0);return c}(f,n,r,b,y,g,v)||v&&(a=f,b=b,l=y,h=void 0,h=S(b),h!==b&&(Io(a,ro(h)+"-changed",l[b],b),1)))&&(e=!0);e&&(t=f.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[C.PROPAGATE]&&ko(this,this[C.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(r,e,i,t){var n=(t,n)=>{ko(this,r.propertyEffects,t,i,n,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,i,n)};r.runEffects?r.runEffects(n,e,t):n(e,t)}linkPaths(e,t){e=Zi(e),t=Zi(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Zi(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};Zo(this,x(this,e,n),n.path,t)}get(e,t){return x(t||this,e)}set(e,t,n){n?Ki(n,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let n={path:""},r=x(this,e,n),i=r.length,o=r.push(...t);return t.length&&Jo(this,r,n.path,i,t.length,[]),o}pop(e){let t={path:""},n=x(this,e,t),r=Boolean(n.length),i=n.pop();return r&&Jo(this,n,t.path,n.length,0,[i]),i}splice(e,t,n,...r){let i,o={path:""},s=x(this,e,o);return t=t<0?s.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?s.splice(t):s.splice(t,n,...r),(r.length||i.length)&&Jo(this,s,o.path,t,r.length,i),i}shift(e){let t={path:""},n=x(this,e,t),r=Boolean(n.length),i=n.shift();return r&&Jo(this,n,t.path,0,0,[i]),i}unshift(e,...t){let n={path:""},r=x(this,e,n),i=r.unshift(...t);return t.length&&Jo(this,r,n.path,0,t.length,[]),i}notifyPath(e,t){let n;var r;n=1==arguments.length?(t=x(this,e,r={path:""}),r.path):Array.isArray(e)?Zi(e):e,this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,C.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,n){var r={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,C.OBSERVE,{fn:Mo,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,C.OBSERVE,{fn:Mo,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var n=$o(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Uo(this,n,C.OBSERVE,jo,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:No,info:{eventName:ro(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,C.REFLECT,{fn:Lo,info:{attrName:t}})}_createComputedProperty(e,t,n){var r=$o(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Uo(this,r,C.COMPUTE,Bo,e,n);Do(this,"__computeInfo")[e]=t}_marshalArgs(s,a,l){const h=this.__data,c=[];for(let o=0,e=s.length;o<e;o++){let{name:e,structured:t,wildcard:n,value:r,literal:i}=s[o];if(!i)if(n){const s=qi(e,a),c=Xo(h,l,s?a:e);r={path:s?a:e,value:c,base:s?x(h,e):c}}else r=t?Xo(h,l,e):h[e];if(di&&!this._overrideLegacyUndefined&&void 0===r&&1<s.length)return Ao;c[o]=r}return c}static addPropertyEffect(e,t,n){this.prototype._addPropertyEffect(e,t,n)}static createPropertyObserver(e,t,n){this.prototype._createPropertyObserver(e,t,n)}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,n){this.prototype._createComputedProperty(e,t,n)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let n=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==n;if(!r)for(var i in n.propertyEffects)this._createPropertyAccessor(i);if(t)if((n=Object.create(n)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((n.parent=t).lastChild=n).previousSibling=r)?r.nextSibling=n:t.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;let r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}_stampTemplate(e,n){n=n||this._bindTemplate(e,!0),Qo.push(this);let r=super._stampTemplate(e,n);if(Qo.pop(),n.nodeList=r.nodeList,!n.wasPreBound){let t=n.childNodes=[];for(let e=r.firstChild;e;e=e.nextSibling)t.push(e)}r.templateInfo=n;var i=this,{nodeList:o,nodeInfoList:s}=n;if(s.length)for(let r=0;r<s.length;r++){let e=s[r],t=o[r],n=e.bindings;if(n)for(let e=0;e<n.length;e++){var a=n[e],l=(c=h=l=void 0,t),h=a;if(h.isCompound){let e=l.__dataCompoundStorage||(l.__dataCompoundStorage={}),t=h.parts,n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e].literal;var c=h.target;e[c]=n,h.literal&&"property"==h.kind&&((l="className"===c?w(l):l)[c]=h.literal)}Yo(t,i,a)}t.__dataHost=i}return this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),r}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:n,nextSibling:r,parent:i}=t;n?n.nextSibling=r:i&&(i.firstChild=r),r?r.previousSibling=n:i&&(i.lastChild=n),t.nextSibling=t.previousSibling=null;var o=t.childNodes;for(let e=0;e<o.length;e++){var s=o[e];w(w(s).parentNode).removeChild(s)}}static _parseTemplateNode(e,t,n){let r=h._parseTemplateNode.call(this,e,t,n);var i;return e.nodeType===Node.TEXT_NODE&&(i=this._parseBindings(e.textContent,t))&&(e.textContent=Vo(i)||" ",Fo(this,t,n,"text","textContent",i),r=!0),r}static _parseTemplateNodeAttribute(r,i,o,s,e){var a=this._parseBindings(e,i);if(a){let e=s,t="property",n=(Po.test(s)?t="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),t="attribute"),Vo(a));return n&&"attribute"==t&&("class"==s&&r.hasAttribute("class")&&(n+=" "+r.getAttribute(s)),r.setAttribute(s,n)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(s,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(s=no(s)),Fo(this,i,o,t,s,a,n),!0}return h._parseTemplateNodeAttribute.call(this,r,i,o,s,e)}static _parseTemplateNestedTemplate(e,t,n){let r=h._parseTemplateNestedTemplate.call(this,e,t,n);const i=e.parentNode,o=n.templateInfo,s="dom-if"===i.localName,a="dom-repeat"===i.localName;mi&&(s||a)&&(i.removeChild(e),(n=n.parentInfo).templateInfo=o,n.noted=!0,r=!1);e=o.hostProps;if(fi&&s)e&&(t.hostProps=Object.assign(t.hostProps||{},e),mi||(n.parentInfo.noted=!0));else for(var l in e)Fo(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(l,h){let c,u=[],d=0;for(;null!==(c=Go.exec(l));){c.index>d&&u.push({literal:l.slice(d,c.index)});let e=c[1][0],t=Boolean(c[2]),n=c[3].trim(),r=!1,i="",o=-1,s=("{"==e&&0<(o=n.indexOf("::"))&&(i=n.substring(o+2),n=n.substring(0,o),r=!0),$o(n)),a=[];if(s){var{args:p,methodName:m}=s;for(let e=0;e<p.length;e++){var f=p[e];f.literal||a.push(f)}var _=h.dynamicFns;(_&&_[m]||s.static)&&(a.push(m),s.dynamicFn=!0)}else a.push(n);u.push({source:n,mode:e,negate:t,customEvent:r,signature:s,dependencies:a,event:i}),d=Go.lastIndex}var e;return d&&d<l.length&&((e=l.substring(d))&&u.push({literal:e})),u.length?u:null}static _evaluateBinding(e,t,n,r,i,o){let s;return s=t.signature?jo(e,n,r,0,t.signature):n!=t.source?x(e,t.source):o&&Vi(n)?x(e,n):e.__data[n],s=t.negate?!s:s}}}),Qo=[],es=b(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var n;!t.hasOwnProperty(JSCompiler_renameProperty("properties",t))||(n=t.properties)&&(e=function(e){const t={};for(var n in e){var r=e[n];t[n]="function"==typeof r?{type:r}:r}return t}(n)),t.__ownProperties=e}return t.__ownProperties}class r extends fo(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(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=t(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){var e=n(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,n(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 r}),ts=window.ShadyCSS&&window.ShadyCSS.cssBuild,ns=b(e=>{const r=es(Ko(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._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):hi||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,r=t,t=e[t],i=e,t.computed&&(t.readOnly=!0),t.computed&&(n._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):n._createComputedProperty(r,t.computed,i)),t.readOnly&&!n._hasReadOnlyEffect(r)?n._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&n._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!n._hasReflectEffect(r)?n._createReflectedProperty(r):!1===t.reflectToAttribute&&n._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!n._hasNotifyEffect(r)?n._createNotifyingProperty(r):!1===t.notify&&n._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&n._createPropertyObserver(r,t.observer,i[t.observer]),n._addPropertyToAttributeMap(r);var n,r,i}static createObservers(t,n){const r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],n)}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||ai&&!li||(t=Si.import(e,"template"),!ai||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=ti(e.url):(e=Si.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=ii,this.importPath=this.constructor.importPath;var t,n=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,n=e._properties;for(t in n){var r=n[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(n)for(var r in n){let e=n[r];this._canApplyPropertyDefault(r)&&(t="function"==typeof e.value?e.value.call(this):e.value,this._hasAccessor(r)?this._setPendingProperty(r,t,!0):this[r]=t)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return ei(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath,i=this,o=t,s=e,a=n?Qr(n):"";if(!ts){var l=o.content.querySelectorAll("style"),h=Pi(o),c=(e=Ci(s))?Di(e):[],u=o.content.firstElementChild;for(let t=0;t<c.length;t++){let e=c[t];e.textContent=i._processStyleText(e.textContent,a),o.content.insertBefore(e,u)}let r=0;for(let n=0;n<h.length;n++){let e=h[n],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=i._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,s),gi&&ts&&ri){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){const t=w(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])),ui&&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=Qr(this.importPath)),Qr(e,t)}static _parseTemplateContent(e,t,n){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,n)}static _addTemplatePropertyEffect(e,t,n){return!ci||t in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,n)}}}),T=ns(HTMLElement);class A{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,rs.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rs.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,n){return e instanceof A?e._cancelAsync():e=new A,e.setConfig(t,n),e}}let rs=new Set;function is(e){rs.add(e)}let os="string"==typeof document.head.style.touchAction,ss="__polymerGestures",as="__polymerGesturesHandled",ls="__polymerGesturesTouchAction",hs=["mousedown","mousemove","mouseup","click"],cs=[0,1,4,2],us=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function ds(e){return-1<hs.indexOf(e)}let ps=!1;function ms(e){if(!ds(e)&&"touchend"!==e)return os&&ps&&si?{passive:!0}:void 0}try{var fs=Object.defineProperty({},"passive",{get(){ps=!0}});window.addEventListener("test",null,fs),window.removeEventListener("test",null,fs)}catch(e){}let _s=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const ys=[],gs={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},vs={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function bs(e){var r,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[as]={skip:!0},"click"===e.type)){let t=!1,n=Cs(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)ys.push(n[e]);else if(r=n[e],gs[r.localName]){var i=function(t){let n=Array.prototype.slice.call(t.labels||[]);if(!n.length){n=[];try{let e=t.getRootNode();if(t.id){var r=e.querySelectorAll(`label[for = '${t.id}']`);for(let e=0;e<r.length;e++)n.push(r[e])}}catch(t){}}return n}(n[e]);for(let e=0;e<i.length;e++)t=t||-1<ys.indexOf(i[e])}if(n[e]===P.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function ws(n){var r=_s?["click"]:hs;for(let e,t=0;t<r.length;t++)e=r[t],n?(ys.length=0,document.addEventListener(e,bs,!0)):document.removeEventListener(e,bs,!0)}function xs(t){var e=t.type;if(ds(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&&!us&&(e=cs[t.which]||0),Boolean(1&e)}}}let P={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ss(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function Es(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){P.mouse.mouseIgnoreJob||ws(!0),P.mouse.target=Cs(e)[0],P.mouse.mouseIgnoreJob=A.debounce(P.mouse.mouseIgnoreJob,E.after(2500),function(){ws(),P.mouse.target=null,P.mouse.mouseIgnoreJob=null})},!!ps&&{passive:!0});const Cs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Ts={},As=[];function Ps(e){var t=Cs(e);return 0<t.length?t[0]:e.target}function Ds(n){let r,i=n.type,e=n.currentTarget[ss];if(e){var o=e[i];if(o){if(!n[as]&&(n[as]={},"touch"===i.slice(0,5))){var s=n.changedTouches[0];if("touchstart"===i&&1===n.touches.length&&(P.touch.id=s.identifier),P.touch.id!==s.identifier)return;if(!(os||"touchstart"!==i&&"touchmove"!==i)){s=n;var a=s.changedTouches[0],t=s.type;if("touchstart"===t)P.touch.x=a.clientX,P.touch.y=a.clientY,P.touch.scrollDecided=!1;else if("touchmove"===t&&!P.touch.scrollDecided){P.touch.scrollDecided=!0;let e=function(e){let n="auto",r=Cs(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[ls]){n=e[ls];break}return n}(s),t=!1,n=Math.abs(P.touch.x-a.clientX),r=Math.abs(P.touch.y-a.clientY);s.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<r:"pan-y"===e&&(t=r<n)),t?s.preventDefault():Ns("track")}}}if(!(r=n[as]).skip){for(let e,t=0;t<As.length;t++)o[(e=As[t]).name]&&!r[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<As.length;t++)o[(e=As[t]).name]&&!r[e.name]&&(r[e.name]=!0,e[i](n))}}}}function ks(e,t,n){return Ts[t]&&(function(r,e,t){let n=Ts[e],i=n.deps,o=n.name,s=r[ss];s||(r[ss]=s={});for(let e,t,n=0;n<i.length;n++)e=i[n],_s&&ds(e)&&"click"!==e||((t=s[e])||(s[e]=t={_count:0}),0===t._count&&r.addEventListener(e,Ds,ms(e)),t[o]=(t[o]||0)+1,t._count=(t._count||0)+1);r.addEventListener(e,t),n.touchAction&&Ms(r,n.touchAction)}(e,t,n),1)}function Os(t){As.push(t);for(let e=0;e<t.emits.length;e++)Ts[t.emits[e]]=t}function Ms(e,t){os&&e instanceof HTMLElement&&po.run(()=>{e.style.touchAction=t}),e[ls]=t}function Is(e,t,n){let r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,w(e).dispatchEvent(r),r.defaultPrevented){let e=n.preventer||n.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Ns(e){let t=function(n){for(let t,e=0;e<As.length;e++){t=As[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===n)return t}return null}(e);t.info&&(t.info.prevent=!0)}function Ls(e,t,n,r){t&&Is(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:Ns})}function Rs(e,t,n){if(!e.prevent){if(e.started)return 1;t=Math.abs(e.x-t),e=Math.abs(e.y-n);return 5<=t||5<=e}}function Hs(s,a,l){if(a){let e,t=s.moves[s.moves.length-2],n=s.moves[s.moves.length-1],r=n.x-s.x,i=n.y-s.y,o=0;t&&(e=n.x-t.x,o=n.y-t.y),Is(a,"track",{state:s.state,x:l.clientX,y:l.clientY,dx:r,dy:i,ddx:e,ddy:o,sourceEvent:l,hover:function(){{var n=l.clientX,r=l.clientY;let e=document.elementFromPoint(n,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(n,r)))break;t&&(e=t)}return e}}})}}function Bs(e,t,n){let r=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=Ps(n||t);!o||vs[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return 1;let e=Ps(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return 1;var n=e.getBoundingClientRect(),r=t.pageX,t=t.pageY;return!(r>=n.left&&r<=n.right&&t>=n.top&&t<=n.bottom)}}(t))&&!e.prevent&&Is(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n})}Os({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Es(this.info)},mousedown:function(e){if(xs(e)){let t=Ps(e),n=this;Ss(this.info,function(e){xs(e)||(Ls("up",t,e),Es(n.info))},function(e){xs(e)&&Ls("up",t,e),Es(n.info)}),Ls("down",t,e)}},touchstart:function(e){Ls("down",Ps(e),e.changedTouches[0],e)},touchend:function(e){Ls("up",Ps(e),e.changedTouches[0],e)}}),Os({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Es(this.info)},mousedown:function(e){if(xs(e)){let r=Ps(e),i=this,t=function(e){var t=e.clientX,n=e.clientY;Rs(i.info,t,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Ns("tap"),i.info.addMove({x:t,y:n}),xs(e)||(i.info.state="end",Es(i.info)),r&&Hs(i.info,r,e),i.info.started=!0)};Ss(this.info,t,function(e){i.info.started&&t(e),Es(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=Ps(e),e=e.changedTouches[0],n=e.clientX,r=e.clientY;Rs(this.info,n,r)&&("start"===this.info.state&&Ns("tap"),this.info.addMove({x:n,y:r}),Hs(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=Ps(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Hs(this.info,t,e))}}),Os({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){xs(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){xs(e)&&Bs(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Bs(this.info,e.changedTouches[0],e)}});const Fs=b(e=>class extends e{_addEventListenerToNode(e,t,n){ks(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){if(l=e,h=t,i=n,Ts[h]){var r=l;l=h,h=i;var i,o=(i=Ts[l]).deps,s=i.name,a=r[ss];if(a)for(let e,t,n=0;n<o.length;n++)e=o[n],(t=a[e])&&t[s]&&(t[s]=(t[s]||1)-1,t._count=(t._count||1)-1,0===t._count&&r.removeEventListener(e,Ds,ms(e)));r.removeEventListener(l,h)}else super._removeEventListenerFromNode(e,t,n);var l,h,i}}),zs=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"theme"===e&&this._setTheme(n)}},Ys=e=>class extends zs(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(n){const e=Si.prototype.modules;let r=!1;const i=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{const e=0===t.indexOf("vaadin-"),r=0===n.indexOf("vaadin-"),i=["lumo-","material-"],o=0<i.filter(e=>0===t.indexOf(e)).length,s=0<i.filter(e=>0===n.indexOf(e)).length;return e!=r?e?-1:1:o!=s?o?-1:1:0}).forEach(t=>{if(t!==i){const i=e[t].getAttribute("theme-for");i&&i.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(r=!0,this._includeStyle(t,n))})}}),!r&&e[i]&&this._includeStyle(i,n)}static _includeStyle(e,t){if(t&&!t.content.querySelector(`style[include="${e}"]`)){const n=document.createElement("style");n.setAttribute("include",e),t.content.appendChild(n)}}};let Us=!1;window.addEventListener("keydown",()=>{Us=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Us=!1},{capture:!0});function js(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(rs.size),rs.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const Ws=e=>class extends(()=>class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}})(){static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return Us}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&Us?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class Gs{static detectScrollType(){const e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){var r=n["scrollLeft"];if("rtl"!==t||!e)return r;switch(e){case"negative":return n.scrollWidth-n.clientWidth+r;case"reverse":return n.scrollWidth-n.clientWidth-r}return r}static setNormalizedScrollLeft(e,t,n,r){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+r;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-r;break;default:n.scrollLeft=r}else n.scrollLeft=r}}const Vs=[];let $s;const qs=new MutationObserver(function(){const t=Zs();Vs.forEach(e=>{Xs(e,t)})}),Xs=(qs.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")}),Zs=function(){return document.documentElement.getAttribute("dir")},Js=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),$s=$s||Gs.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Xs(this,Zs()))}attributeChangedCallback(e,t,n){var r;super.attributeChangedCallback(e,t,n),"dir"===e&&(e=n===Zs()&&-1===Vs.indexOf(this),r=!n&&t&&-1===Vs.indexOf(this),n=n!==Zs()&&t===Zs(),e||r?(this.__subscribe(),Xs(this,Zs())):n&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Vs.indexOf(this)&&Vs.push(this):-1<Vs.indexOf(this)&&Vs.splice(Vs.indexOf(this),1)}__getNormalizedScrollLeft(e){return Gs.getNormalizedScrollLeft($s,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Gs.setNormalizedScrollLeft($s,this.getAttribute("dir")||"ltr",e,t)}},Ks=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Qs=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ea(e,t){if("function"==typeof e){var n=Ks.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function ta(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(Qs?!(Qs&&0<Object.keys(Qs).map(e=>Qs[e]).filter(e=>e.productionMode).length):!ea(function(){return!0}))}catch(e){return!1}}());function na(){var e=ta,t=void 0;if(window.Vaadin.developmentMode)return ea(e,t)}let ra;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){na,na()};const ia=new Set,oa=e=>class extends Js(e){static finalize(){super.finalize();var e=this["is"];e&&!ia.has(e)&&(window.Vaadin.registrations.push(this),ia.add(e),window.Vaadin.developmentModeCallback&&(ra=A.debounce(ra,uo,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),is(ra)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class sa extends oa(Ws(Ys(Fs(T)))){static get template(){return m`
|
|
323
|
+
</dom-module>`;document.head.appendChild(on.content);let Gi=0;function b(o){let e=o.__mixinApplications,s=(e||(e=new WeakMap,o.__mixinApplications=e),Gi++);return function(t){var n=t.__mixinSet;if(n&&n[s])return t;let r=e,i=r.get(t);if(!i){i=o(t),r.set(t,i);let e=Object.create(i.__mixinSet||n||null);e[s]=!0,i.__mixinSet=e}return i}}const w=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Vi(e){return 0<=e.indexOf(".")}function S(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function $i(e,t){return 0===e.indexOf(t+".")}function qi(e,t){return 0===t.indexOf(e+".")}function Xi(e,t,n){return t+n.slice(e.length)}function Zi(n){if(Array.isArray(n)){let t=[];for(let e=0;e<n.length;e++){var r=n[e].toString().split(".");for(let e=0;e<r.length;e++)t.push(r[e])}return t.join(".")}return n}function Ji(e){return(Array.isArray(e)?Zi(e):e.toString()).split(".")}function x(e,t,n){let r=e,i=Ji(t);for(let e=0;e<i.length;e++){if(!r)return;r=r[i[e]]}return n&&(n.path=i.join(".")),r}function Ki(e,t,n){let r=e,i=Ji(t),o=i[i.length-1];if(1<i.length){for(let e=0;e<i.length-1;e++)if(!(r=r[i[e]]))return;r[o]=n}else r[t]=n;return i.join(".")}const Qi={},eo=/-[a-z]/g,to=/([A-Z])/g;function no(e){return Qi[e]||(Qi[e]=e.indexOf("-")<0?e:e.replace(eo,e=>e[1].toUpperCase()))}function ro(e){return Qi[e]||(Qi[e]=e.replace(to,"-$1").toLowerCase())}let io=0,oo=0,so=[],ao=0,lo=!1,ho=document.createTextNode("");new window.MutationObserver(function(){lo=!1;var n=so.length;for(let t=0;t<n;t++){let e=so[t];if(e)try{e()}catch(n){setTimeout(()=>{throw n})}}so.splice(0,n),oo+=n}).observe(ho,{characterData:!0});const E={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)}},uo={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},co={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},po={run:e=>(lo||(lo=!0,ho.textContent=ao++),so.push(e),io++),cancel(e){var t=e-oo;if(0<=t){if(!so[t])throw new Error("invalid async handle: "+e);so[t]=null}}},mo=po,fo=b(e=>class extends e{static createProperties(e){const t=this.prototype;for(var n in e)n in t||t._createPropertyAccessor(n)}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,n){var r=this.__data[e],i=this._shouldPropertyChange(e,t,r);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),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,mo.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,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n)),this.__dataCounter--}_shouldPropertiesChange(e,t,n){return Boolean(t)}_propertiesChanged(e,t,n){}_shouldPropertyChange(e,t,n){return n!==t&&(n==n||t==t)}attributeChangedCallback(e,t,n,r){t!==n&&this._attributeToProperty(e,n),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n,r)}_attributeToProperty(e,t,n){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,n){t=this._serializeValue(t);"class"!==n&&"name"!==n&&"slot"!==n||(e=w(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,""===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}}}),_o={};let yo=HTMLElement.prototype;for(;yo;){var go=Object.getOwnPropertyNames(yo);for(let e=0;e<go.length;e++)_o[go[e]]=!0;yo=Object.getPrototypeOf(yo)}const vo=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,bo=b(e=>{return class extends fo(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(no(t[e]))}static attributeNameForProperty(e){return ro(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(vo(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let n;switch(t){case Object:try{n=JSON.parse(e)}catch(t){n=e}break;case Array:try{n=JSON.parse(e)}catch(t){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:n=(isNaN(e)?String:Number)(e),n=new Date(n);break;default:n=super._deserializeValue(e,t)}return n}_definePropertyAccessor(e,t){var n,r,i;n=this,r=e,_o[r]||void 0!==(i=n[r])&&(n.__data?n._setPendingProperty(r,i):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[r]=i)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),wo={"dom-if":!0,"dom-repeat":!0};let xo=!1,So=!1;const Eo=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,n)=>{t=t.getAttribute(n);r&&n.startsWith("on-")?e.setAttribute(n,r.createScript(t,n)):e.setAttribute(n,t)}})();const Co=b(e=>class extends e{static _parseTemplate(t,n){if(!t._templateInfo){let e=t._templateInfo={nodeInfoList:[]};e.nestedTemplate=Boolean(n),e.stripWhiteSpace=n&&n.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,e,{parent:null})}return t._templateInfo}static _parseTemplateContent(e,t,n){return this._parseTemplateNode(e.content,t,n)}static _parseTemplateNode(e,t,n){let r=!1,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,t,n)||r,e=i,function(){if(!xo){xo=!0;const e=document.createElement("textarea");e.placeholder="a",So=e.placeholder===e.textContent}return So}()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),i.firstChild&&this._parseTemplateChildNodes(i,t,n),(r=i.hasAttributes&&i.hasAttributes()?this._parseTemplateNodeAttributes(i,t,n)||r:r)||n.noted}static _parseTemplateChildNodes(i,o,s){if("script"!==i.localName&&"style"!==i.localName)for(let t,n=i.firstChild,r=0;n;n=t){if("template"==n.localName&&(n=function(t){let n=t.getAttribute("is");if(n&&wo[n]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(n),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const n=e.attributes[0]["name"];Eo(t,e,n),e.removeAttribute(n)}}return t}(n)),t=n.nextSibling,n.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)n.textContent+=e.textContent,t=e.nextSibling,i.removeChild(e),e=t;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let e={parentIndex:r,parentInfo:s};this._parseTemplateNode(n,o,e)&&(e.infoIndex=o.nodeInfoList.push(e)-1),n.parentNode&&r++}}static _parseTemplateNestedTemplate(e,t,n){let r=e,i=this._parseTemplate(r,t);return(i.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),n.templateInfo=i,!0}static _parseTemplateNodeAttributes(n,r,i){let o=!1,s=Array.from(n.attributes);for(let e,t=s.length-1;e=s[t];t--)o=this._parseTemplateNodeAttribute(n,r,i,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,n,r,i){return"on-"===r.slice(0,3)?(e.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);let i=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,t=r.content||e.content,o=document.importNode(t,!0),s=(o.__noInsertionPoint=!r.hasInsertionPoint,o.nodeList=new Array(i.length));o.$={};for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++){var a=s[t]=function e(t,n){var r=n.parentInfo&&e(t,n.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(n.parentIndex===t++)return e}(o,e),l=(c=o.$,d=a,(u=e).id&&(c[u.id]=d),c=a,u=e,d=r,u.templateInfo&&(c._templateInfo=u.templateInfo,c._parentTemplateInfo=d),u=h=l=void 0,this),h=a,u=e;if(u.events&&u.events.length)for(let e,t=0,n=u.events;t<n.length&&(e=n[t]);t++)l._addMethodEventListenerToNode(h,e.name,e.value,l)}var c,d,u;return o}_addMethodEventListenerToNode(e,t,n,r){function i(e){o[s]?o[s](e,e.detail):console.warn("listener method `"+s+"` not defined")}var o,s;o=r=r||e,s=n,o=o._methodHost||o;return this._addEventListenerToNode(e,t,i),i}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let To=0;const Ao=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Po=/[A-Z]/;function Do(e,t,n){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),n))for(var i in r){let t=r[i],n=r[i]=Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e]}}else r=e[t]={};return r}function ko(i,e,o,s,a,l){if(e){let r=!1;var h,u=To++;for(h in o){var c=e[a?S(h):h];if(c)for(let e,t=0,n=c.length;t<n&&(e=c[t]);t++)e.info&&e.info.lastRun===u||a&&!Oo(h,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(i,h,o,s,e.info,a,l),r=!0)}return r}}function Oo(e,t){var n;return!t||((n=t.name)==e||t.structured&&$i(n,e)||t.wildcard&&qi(n,e))}function Mo(e,t,n,r,i){let o="string"==typeof i.method?e[i.method]:i.method,s=i.property;o?o.call(e,e.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Io(e,t,n,r){let i={value:n,queueProperty:!0};r&&(i.path=r),w(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function No(e,t,n,r,i,o){let s=(o?S(t):t)!=t?t:null,a=s?x(e,s):e.__data[t];s&&void 0===a&&(a=n[t]),Io(e,i.eventName,a,s)}function Lo(e,t,n,r,i){let o=e.__data[t];oi&&(o=oi(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}const Ro=(e,t,n)=>{let r=0,i=t.length-1,o=-1;for(;r<=i;){var s=r+i>>1,a=n.get(t[s].methodInfo)-n.get(e.methodInfo);if(a<0)r=1+s;else{if(!(0<a)){o=s;break}i=s-1}}o<0&&(o=i+1),t.splice(o,0,e)},Ho=(t,e,n,r,i)=>{var o=e[i?S(t):t];if(o)for(let e=0;e<o.length;e++){const s=o[e];s.info.lastRun===To||i&&!Oo(t,s.trigger)||(s.info.lastRun=To,Ro(s.info,n,r))}};function Bo(e,t,n,r,i){t=jo(e,t,n,0,i);if(t===Ao)return!1;n=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[n]?e._setPendingProperty(n,t,!0):(e[n]=t,!1)}function Fo(n,r,e,t,i,o,s){e.bindings=e.bindings||[];let a={kind:t,target:i,parts:o,literal:s,isCompound:1!==o.length};e.bindings.push(a),t=a,Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode&&({event:s,negate:o}=a.parts[0],a.listenerEvent=s||ro(i)+"-changed",a.listenerNegate=o);var l=r.nodeInfoList.length;for(let t=0;t<a.parts.length;t++){let e=a.parts[t];e.compoundIndex=t,f=m=p=d=c=u=h=void 0;var h=n,u=r,c=a,d=e,p=l;if(!d.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 m=d.dependencies,f={index:p,binding:c,part:d,evaluator:h};for(let t=0;t<m.length;t++){let e=m[t];"string"==typeof e&&((e=qo(e)).wildcard=!0),h._addTemplatePropertyEffect(u,e.rootProperty,{fn:zo,info:f,trigger:e})}}}}function zo(e,t,n,r,i,o,s){let a=s[i.index],l=i.binding,h=i.part;var u;o&&h.source&&t.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=n[t],t=Xi(h.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=i.evaluator._evaluateBinding(e,h,t,n,r,o))!==Ao&&(i=e,t=a,u=h,n=function(t,n,r){if(r.isCompound){let e=t.__dataCompoundStorage[r.target];e[u.compoundIndex]=n,n=e.join("")}return n="attribute"===r.kind||"textContent"!==r.target&&("value"!==r.target||"input"!==t.localName&&"textarea"!==t.localName)?n:null==n?"":n}(t,n=s,r=l),oi&&(n=oi(n,r.target,r.kind,t)),"attribute"==r.kind?i._valueToNodeAttribute(t,n,r.target):(r=r.target,t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?t[C.READ_ONLY]&&t[C.READ_ONLY][r]||t._setPendingProperty(r,n)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,r,n)))}function Yo(e,h,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(r){{var i=h,o=u.target,s=l.source,a=l.negate;let e,t=r.detail,n=t&&t.path;return e=n?(s=Xi(o,s,n),t&&t.value):r.currentTarget[o],e=a?!e:e,void(i[C.READ_ONLY]&&i[C.READ_ONLY][s]||!i._setPendingPropertyOrPath(s,e,!0,Boolean(n))||t&&t.queueProperty||i._invalidateProperties())}})}}function Uo(n,r,i,o,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var s={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||n._addPropertyEffect(e.rootProperty,i,{fn:o,info:s,trigger:e});return t&&n._addPropertyEffect(r.methodName,i,{fn:o,info:s}),s}function jo(e,t,n,r,i){let o=e._methodHost||e,s=o[i.methodName];if(s)return(e=e._marshalArgs(i.args,t,n))===Ao?Ao:s.apply(o,e);i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Wo=[],Go=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function Vo(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function $o(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);return t?(e={methodName:t[1],static:!0,args:Wo},t[2].trim()?function(e,t){return t.args=e.map(function(e){e=qo(e);return e.literal||(t.static=!1),e},this),t}(t[2].replace(/\\,/g,",").split(","),e):e):null}function qo(e){let t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=S(t),n.structured=Vi(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function Xo(e,t,n){let r=x(e,n);return r=void 0===r?t[n]:r}function Zo(e,t,n,r){const i={indexSplices:r};di&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),di&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function Jo(e,t,n,r,i,o){Zo(e,t,n,[{index:r,addedCount:i,removed:o,object:t,type:"splice"}])}const Ko=b(e=>{const h=Co(bo(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 C}_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(){if(Qo.length){let e=Qo[Qo.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,n=this[C.READ_ONLY];for(t in e)n&&n[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,n){this._createPropertyAccessor(e,t==C.READ_ONLY);let r=Do(this,t,!0)[e];(r=r||(this[t][e]=[])).push(n)}_removePropertyEffect(e,t,n){let r=Do(this,t,!0)[e],i=r.indexOf(n);0<=i&&r.splice(i,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,C.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,C.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,C.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,C.COMPUTE)}_setPendingPropertyOrPath(e,t,n,r){if(r||S(Array.isArray(e)?e[0]:e)!==e){if(!r){r=x(this,e);if(!(e=Ki(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n)){{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];qi(l,o)?(e=Xi(l,h,o),i._setPendingPropertyOrPath(e,s,!0,!0)):qi(h,o)&&(e=Xi(h,l,o),i._setPendingPropertyOrPath(e,s,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,n){n===e[t]&&"object"!=typeof n||((e="className"===t?w(e):e)[t]=n)}_setPendingProperty(e,t,n){var r=this.__dataHasPaths&&Vi(e),i=r?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]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!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 n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let t=0;t<n.length;t++){let e=n[t];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,i,o){var s,a,l,h,t,u=this.__dataHasPaths,n=(this.__dataHasPaths=!1,this),r=i,c=o,d=u,p=n[C.COMPUTE];if(p)if(pi){To++;const w=function(a){let i=a.constructor.__orderedComputedDeps;if(!i){i=new Map;var o=a[C.COMPUTE];let e,{counts:t,ready:n,total:r}=function(){const e=a.__computeInfo,t={},n=a[C.COMPUTE],r=[];let i=0;for(var o in e){const n=e[o];i+=t[o]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(var s in n)e[s]||r.push(s);return{counts:t,ready:r,total:i}}();for(;e=n.shift();){i.set(e,i.size);const a=o[e];a&&a.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&n.push(e)})}if(0!==r){const i=a;console.warn(`Computed graph for ${i.localName} incomplete; circular?`)}a.constructor.__orderedComputedDeps=i}return i}(n),x=[];for(var m in r)Ho(m,p,x,w,d);for(;t=x.shift();)Bo(n,"",r,0,t)&&Ho(t.methodInfo,p,x,w,d);Object.assign(c,n.__dataOld),Object.assign(r,n.__dataPending),n.__dataPending=null}else{let e=r;for(;ko(n,p,e,c,d);)Object.assign(c,n.__dataOld),Object.assign(r,n.__dataPending),e=n.__dataPending,n.__dataPending=null}if(s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(i,o,u),this._flushClients(),ko(this,this[C.REFLECT],i,o,u),ko(this,this[C.OBSERVE],i,o,u),s){var f=this,_=s,y=i,g=o,v=u,b;let e,t,n=f[C.NOTIFY],r=To++;for(b in _)_[b]&&(n&&function(r,e,i,o,s,a,l,h){let u=!1,c=e[l?S(o):o];if(c)for(let e,t=0,n=c.length;t<n&&(e=c[t]);t++)e.info&&e.info.lastRun===i||l&&!Oo(o,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(r,o,s,a,e.info,l,h),u=!0);return u}(f,n,r,b,y,g,v)||v&&(a=f,b=b,l=y,h=void 0,h=S(b),h!==b&&(Io(a,ro(h)+"-changed",l[b],b),1)))&&(e=!0);e&&(t=f.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[C.PROPAGATE]&&ko(this,this[C.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(r,e,i,t){var n=(t,n)=>{ko(this,r.propertyEffects,t,i,n,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,i,n)};r.runEffects?r.runEffects(n,e,t):n(e,t)}linkPaths(e,t){e=Zi(e),t=Zi(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=Zi(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};Zo(this,x(this,e,n),n.path,t)}get(e,t){return x(t||this,e)}set(e,t,n){n?Ki(n,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let n={path:""},r=x(this,e,n),i=r.length,o=r.push(...t);return t.length&&Jo(this,r,n.path,i,t.length,[]),o}pop(e){let t={path:""},n=x(this,e,t),r=Boolean(n.length),i=n.pop();return r&&Jo(this,n,t.path,n.length,0,[i]),i}splice(e,t,n,...r){let i,o={path:""},s=x(this,e,o);return t=t<0?s.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?s.splice(t):s.splice(t,n,...r),(r.length||i.length)&&Jo(this,s,o.path,t,r.length,i),i}shift(e){let t={path:""},n=x(this,e,t),r=Boolean(n.length),i=n.shift();return r&&Jo(this,n,t.path,0,0,[i]),i}unshift(e,...t){let n={path:""},r=x(this,e,n),i=r.unshift(...t);return t.length&&Jo(this,r,n.path,0,t.length,[]),i}notifyPath(e,t){let n;var r;n=1==arguments.length?(t=x(this,e,r={path:""}),r.path):Array.isArray(e)?Zi(e):e,this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,C.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,n){var r={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,C.OBSERVE,{fn:Mo,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,C.OBSERVE,{fn:Mo,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var n=$o(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Uo(this,n,C.OBSERVE,jo,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:No,info:{eventName:ro(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,C.REFLECT,{fn:Lo,info:{attrName:t}})}_createComputedProperty(e,t,n){var r=$o(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Uo(this,r,C.COMPUTE,Bo,e,n);Do(this,"__computeInfo")[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:n,value:r,literal:i}=s[o];if(!i)if(n){const s=qi(e,a),u=Xo(h,l,s?a:e);r={path:s?a:e,value:u,base:s?x(h,e):u}}else r=t?Xo(h,l,e):h[e];if(di&&!this._overrideLegacyUndefined&&void 0===r&&1<s.length)return Ao;u[o]=r}return u}static addPropertyEffect(e,t,n){this.prototype._addPropertyEffect(e,t,n)}static createPropertyObserver(e,t,n){this.prototype._createPropertyObserver(e,t,n)}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,n){this.prototype._createComputedProperty(e,t,n)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let n=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==n;if(!r)for(var i in n.propertyEffects)this._createPropertyAccessor(i);if(t)if((n=Object.create(n)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((n.parent=t).lastChild=n).previousSibling=r)?r.nextSibling=n:t.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;let r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}_stampTemplate(e,n){n=n||this._bindTemplate(e,!0),Qo.push(this);let r=super._stampTemplate(e,n);if(Qo.pop(),n.nodeList=r.nodeList,!n.wasPreBound){let t=n.childNodes=[];for(let e=r.firstChild;e;e=e.nextSibling)t.push(e)}r.templateInfo=n;var i=this,{nodeList:o,nodeInfoList:s}=n;if(s.length)for(let r=0;r<s.length;r++){let e=s[r],t=o[r],n=e.bindings;if(n)for(let e=0;e<n.length;e++){var a=n[e],l=(u=h=l=void 0,t),h=a;if(h.isCompound){let e=l.__dataCompoundStorage||(l.__dataCompoundStorage={}),t=h.parts,n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e].literal;var u=h.target;e[u]=n,h.literal&&"property"==h.kind&&((l="className"===u?w(l):l)[u]=h.literal)}Yo(t,i,a)}t.__dataHost=i}return this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),r}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:n,nextSibling:r,parent:i}=t;n?n.nextSibling=r:i&&(i.firstChild=r),r?r.previousSibling=n:i&&(i.lastChild=n),t.nextSibling=t.previousSibling=null;var o=t.childNodes;for(let e=0;e<o.length;e++){var s=o[e];w(w(s).parentNode).removeChild(s)}}static _parseTemplateNode(e,t,n){let r=h._parseTemplateNode.call(this,e,t,n);var i;return e.nodeType===Node.TEXT_NODE&&(i=this._parseBindings(e.textContent,t))&&(e.textContent=Vo(i)||" ",Fo(this,t,n,"text","textContent",i),r=!0),r}static _parseTemplateNodeAttribute(r,i,o,s,e){var a=this._parseBindings(e,i);if(a){let e=s,t="property",n=(Po.test(s)?t="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),t="attribute"),Vo(a));return n&&"attribute"==t&&("class"==s&&r.hasAttribute("class")&&(n+=" "+r.getAttribute(s)),r.setAttribute(s,n)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(s,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(s=no(s)),Fo(this,i,o,t,s,a,n),!0}return h._parseTemplateNodeAttribute.call(this,r,i,o,s,e)}static _parseTemplateNestedTemplate(e,t,n){let r=h._parseTemplateNestedTemplate.call(this,e,t,n);const i=e.parentNode,o=n.templateInfo,s="dom-if"===i.localName,a="dom-repeat"===i.localName;mi&&(s||a)&&(i.removeChild(e),(n=n.parentInfo).templateInfo=o,n.noted=!0,r=!1);e=o.hostProps;if(fi&&s)e&&(t.hostProps=Object.assign(t.hostProps||{},e),mi||(n.parentInfo.noted=!0));else for(var l in e)Fo(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(l,h){let u,c=[],d=0;for(;null!==(u=Go.exec(l));){u.index>d&&c.push({literal:l.slice(d,u.index)});let e=u[1][0],t=Boolean(u[2]),n=u[3].trim(),r=!1,i="",o=-1,s=("{"==e&&0<(o=n.indexOf("::"))&&(i=n.substring(o+2),n=n.substring(0,o),r=!0),$o(n)),a=[];if(s){var{args:p,methodName:m}=s;for(let e=0;e<p.length;e++){var f=p[e];f.literal||a.push(f)}var _=h.dynamicFns;(_&&_[m]||s.static)&&(a.push(m),s.dynamicFn=!0)}else a.push(n);c.push({source:n,mode:e,negate:t,customEvent:r,signature:s,dependencies:a,event:i}),d=Go.lastIndex}var e;return d&&d<l.length&&((e=l.substring(d))&&c.push({literal:e})),c.length?c:null}static _evaluateBinding(e,t,n,r,i,o){let s;return s=t.signature?jo(e,n,r,0,t.signature):n!=t.source?x(e,t.source):o&&Vi(n)?x(e,n):e.__data[n],s=t.negate?!s:s}}}),Qo=[],es=b(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var n;!t.hasOwnProperty(JSCompiler_renameProperty("properties",t))||(n=t.properties)&&(e=function(e){const t={};for(var n in e){var r=e[n];t[n]="function"==typeof r?{type:r}:r}return t}(n)),t.__ownProperties=e}return t.__ownProperties}class r extends fo(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(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=t(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){var e=n(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,n(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 r}),ts=window.ShadyCSS&&window.ShadyCSS.cssBuild,ns=b(e=>{const r=es(Ko(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._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):hi||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,r=t,t=e[t],i=e,t.computed&&(t.readOnly=!0),t.computed&&(n._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):n._createComputedProperty(r,t.computed,i)),t.readOnly&&!n._hasReadOnlyEffect(r)?n._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&n._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!n._hasReflectEffect(r)?n._createReflectedProperty(r):!1===t.reflectToAttribute&&n._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!n._hasNotifyEffect(r)?n._createNotifyingProperty(r):!1===t.notify&&n._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&n._createPropertyObserver(r,t.observer,i[t.observer]),n._addPropertyToAttributeMap(r);var n,r,i}static createObservers(t,n){const r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],n)}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||ai&&!li||(t=Si.import(e,"template"),!ai||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=ti(e.url):(e=Si.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=ii,this.importPath=this.constructor.importPath;var t,n=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,n=e._properties;for(t in n){var r=n[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(n)for(var r in n){let e=n[r];this._canApplyPropertyDefault(r)&&(t="function"==typeof e.value?e.value.call(this):e.value,this._hasAccessor(r)?this._setPendingProperty(r,t,!0):this[r]=t)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return ei(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath,i=this,o=t,s=e,a=n?Qr(n):"";if(!ts){var l=o.content.querySelectorAll("style"),h=Pi(o),u=(e=Ci(s))?Di(e):[],c=o.content.firstElementChild;for(let t=0;t<u.length;t++){let e=u[t];e.textContent=i._processStyleText(e.textContent,a),o.content.insertBefore(e,c)}let r=0;for(let n=0;n<h.length;n++){let e=h[n],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=i._processStyleText(e.textContent,a)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,s),gi&&ts&&ri){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){const t=w(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])),ci&&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=Qr(this.importPath)),Qr(e,t)}static _parseTemplateContent(e,t,n){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,n)}static _addTemplatePropertyEffect(e,t,n){return!ui||t in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,n)}}}),T=ns(HTMLElement);class A{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,rs.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rs.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,n){return e instanceof A?e._cancelAsync():e=new A,e.setConfig(t,n),e}}let rs=new Set;function is(e){rs.add(e)}let os="string"==typeof document.head.style.touchAction,ss="__polymerGestures",as="__polymerGesturesHandled",ls="__polymerGesturesTouchAction",hs=["mousedown","mousemove","mouseup","click"],us=[0,1,4,2],cs=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function ds(e){return-1<hs.indexOf(e)}let ps=!1;function ms(e){if(!ds(e)&&"touchend"!==e)return os&&ps&&si?{passive:!0}:void 0}try{var fs=Object.defineProperty({},"passive",{get(){ps=!0}});window.addEventListener("test",null,fs),window.removeEventListener("test",null,fs)}catch(e){}let _s=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const ys=[],gs={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},vs={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function bs(e){var r,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[as]={skip:!0},"click"===e.type)){let t=!1,n=Cs(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)ys.push(n[e]);else if(r=n[e],gs[r.localName]){var i=function(t){let n=Array.prototype.slice.call(t.labels||[]);if(!n.length){n=[];try{let e=t.getRootNode();if(t.id){var r=e.querySelectorAll(`label[for = '${t.id}']`);for(let e=0;e<r.length;e++)n.push(r[e])}}catch(t){}}return n}(n[e]);for(let e=0;e<i.length;e++)t=t||-1<ys.indexOf(i[e])}if(n[e]===P.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function ws(n){var r=_s?["click"]:hs;for(let e,t=0;t<r.length;t++)e=r[t],n?(ys.length=0,document.addEventListener(e,bs,!0)):document.removeEventListener(e,bs,!0)}function xs(t){var e=t.type;if(ds(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&&!cs&&(e=us[t.which]||0),Boolean(1&e)}}}let P={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ss(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function Es(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){P.mouse.mouseIgnoreJob||ws(!0),P.mouse.target=Cs(e)[0],P.mouse.mouseIgnoreJob=A.debounce(P.mouse.mouseIgnoreJob,E.after(2500),function(){ws(),P.mouse.target=null,P.mouse.mouseIgnoreJob=null})},!!ps&&{passive:!0});const Cs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Ts={},As=[];function Ps(e){var t=Cs(e);return 0<t.length?t[0]:e.target}function Ds(n){let r,i=n.type,e=n.currentTarget[ss];if(e){var o=e[i];if(o){if(!n[as]&&(n[as]={},"touch"===i.slice(0,5))){var s=n.changedTouches[0];if("touchstart"===i&&1===n.touches.length&&(P.touch.id=s.identifier),P.touch.id!==s.identifier)return;if(!(os||"touchstart"!==i&&"touchmove"!==i)){s=n;var a=s.changedTouches[0],t=s.type;if("touchstart"===t)P.touch.x=a.clientX,P.touch.y=a.clientY,P.touch.scrollDecided=!1;else if("touchmove"===t&&!P.touch.scrollDecided){P.touch.scrollDecided=!0;let e=function(e){let n="auto",r=Cs(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[ls]){n=e[ls];break}return n}(s),t=!1,n=Math.abs(P.touch.x-a.clientX),r=Math.abs(P.touch.y-a.clientY);s.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<r:"pan-y"===e&&(t=r<n)),t?s.preventDefault():Ns("track")}}}if(!(r=n[as]).skip){for(let e,t=0;t<As.length;t++)o[(e=As[t]).name]&&!r[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<As.length;t++)o[(e=As[t]).name]&&!r[e.name]&&(r[e.name]=!0,e[i](n))}}}}function ks(e,t,n){return Ts[t]&&(function(r,e,t){let n=Ts[e],i=n.deps,o=n.name,s=r[ss];s||(r[ss]=s={});for(let e,t,n=0;n<i.length;n++)e=i[n],_s&&ds(e)&&"click"!==e||((t=s[e])||(s[e]=t={_count:0}),0===t._count&&r.addEventListener(e,Ds,ms(e)),t[o]=(t[o]||0)+1,t._count=(t._count||0)+1);r.addEventListener(e,t),n.touchAction&&Ms(r,n.touchAction)}(e,t,n),1)}function Os(t){As.push(t);for(let e=0;e<t.emits.length;e++)Ts[t.emits[e]]=t}function Ms(e,t){os&&e instanceof HTMLElement&&po.run(()=>{e.style.touchAction=t}),e[ls]=t}function Is(e,t,n){let r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,w(e).dispatchEvent(r),r.defaultPrevented){let e=n.preventer||n.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Ns(e){let t=function(n){for(let t,e=0;e<As.length;e++){t=As[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===n)return t}return null}(e);t.info&&(t.info.prevent=!0)}function Ls(e,t,n,r){t&&Is(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:Ns})}function Rs(e,t,n){if(!e.prevent){if(e.started)return 1;t=Math.abs(e.x-t),e=Math.abs(e.y-n);return 5<=t||5<=e}}function Hs(s,a,l){if(a){let e,t=s.moves[s.moves.length-2],n=s.moves[s.moves.length-1],r=n.x-s.x,i=n.y-s.y,o=0;t&&(e=n.x-t.x,o=n.y-t.y),Is(a,"track",{state:s.state,x:l.clientX,y:l.clientY,dx:r,dy:i,ddx:e,ddy:o,sourceEvent:l,hover:function(){{var n=l.clientX,r=l.clientY;let e=document.elementFromPoint(n,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(n,r)))break;t&&(e=t)}return e}}})}}function Bs(e,t,n){let r=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=Ps(n||t);!o||vs[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return 1;let e=Ps(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return 1;var n=e.getBoundingClientRect(),r=t.pageX,t=t.pageY;return!(r>=n.left&&r<=n.right&&t>=n.top&&t<=n.bottom)}}(t))&&!e.prevent&&Is(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n})}Os({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Es(this.info)},mousedown:function(e){if(xs(e)){let t=Ps(e),n=this;Ss(this.info,function(e){xs(e)||(Ls("up",t,e),Es(n.info))},function(e){xs(e)&&Ls("up",t,e),Es(n.info)}),Ls("down",t,e)}},touchstart:function(e){Ls("down",Ps(e),e.changedTouches[0],e)},touchend:function(e){Ls("up",Ps(e),e.changedTouches[0],e)}}),Os({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Es(this.info)},mousedown:function(e){if(xs(e)){let r=Ps(e),i=this,t=function(e){var t=e.clientX,n=e.clientY;Rs(i.info,t,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Ns("tap"),i.info.addMove({x:t,y:n}),xs(e)||(i.info.state="end",Es(i.info)),r&&Hs(i.info,r,e),i.info.started=!0)};Ss(this.info,t,function(e){i.info.started&&t(e),Es(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=Ps(e),e=e.changedTouches[0],n=e.clientX,r=e.clientY;Rs(this.info,n,r)&&("start"===this.info.state&&Ns("tap"),this.info.addMove({x:n,y:r}),Hs(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=Ps(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Hs(this.info,t,e))}}),Os({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){xs(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){xs(e)&&Bs(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Bs(this.info,e.changedTouches[0],e)}});const Fs=b(e=>class extends e{_addEventListenerToNode(e,t,n){ks(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){if(l=e,h=t,i=n,Ts[h]){var r=l;l=h,h=i;var i,o=(i=Ts[l]).deps,s=i.name,a=r[ss];if(a)for(let e,t,n=0;n<o.length;n++)e=o[n],(t=a[e])&&t[s]&&(t[s]=(t[s]||1)-1,t._count=(t._count||1)-1,0===t._count&&r.removeEventListener(e,Ds,ms(e)));r.removeEventListener(l,h)}else super._removeEventListenerFromNode(e,t,n);var l,h,i}}),zs=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"theme"===e&&this._setTheme(n)}},Ys=e=>class extends zs(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(n){const e=Si.prototype.modules;let r=!1;const i=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{const e=0===t.indexOf("vaadin-"),r=0===n.indexOf("vaadin-"),i=["lumo-","material-"],o=0<i.filter(e=>0===t.indexOf(e)).length,s=0<i.filter(e=>0===n.indexOf(e)).length;return e!=r?e?-1:1:o!=s?o?-1:1:0}).forEach(t=>{if(t!==i){const i=e[t].getAttribute("theme-for");i&&i.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(r=!0,this._includeStyle(t,n))})}}),!r&&e[i]&&this._includeStyle(i,n)}static _includeStyle(e,t){if(t&&!t.content.querySelector(`style[include="${e}"]`)){const n=document.createElement("style");n.setAttribute("include",e),t.content.appendChild(n)}}};let Us=!1;window.addEventListener("keydown",()=>{Us=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Us=!1},{capture:!0});function js(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(rs.size),rs.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const Ws=e=>class extends(()=>class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}})(){static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return Us}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&Us?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class Gs{static detectScrollType(){const e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){var r=n["scrollLeft"];if("rtl"!==t||!e)return r;switch(e){case"negative":return n.scrollWidth-n.clientWidth+r;case"reverse":return n.scrollWidth-n.clientWidth-r}return r}static setNormalizedScrollLeft(e,t,n,r){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+r;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-r;break;default:n.scrollLeft=r}else n.scrollLeft=r}}const Vs=[];let $s;const qs=new MutationObserver(function(){const t=Zs();Vs.forEach(e=>{Xs(e,t)})}),Xs=(qs.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")}),Zs=function(){return document.documentElement.getAttribute("dir")},Js=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),$s=$s||Gs.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Xs(this,Zs()))}attributeChangedCallback(e,t,n){var r;super.attributeChangedCallback(e,t,n),"dir"===e&&(e=n===Zs()&&-1===Vs.indexOf(this),r=!n&&t&&-1===Vs.indexOf(this),n=n!==Zs()&&t===Zs(),e||r?(this.__subscribe(),Xs(this,Zs())):n&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Vs.indexOf(this)&&Vs.push(this):-1<Vs.indexOf(this)&&Vs.splice(Vs.indexOf(this),1)}__getNormalizedScrollLeft(e){return Gs.getNormalizedScrollLeft($s,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Gs.setNormalizedScrollLeft($s,this.getAttribute("dir")||"ltr",e,t)}},Ks=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Qs=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ea(e,t){if("function"==typeof e){var n=Ks.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function ta(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(Qs?!(Qs&&0<Object.keys(Qs).map(e=>Qs[e]).filter(e=>e.productionMode).length):!ea(function(){return!0}))}catch(e){return!1}}());function na(){var e=ta,t=void 0;if(window.Vaadin.developmentMode)return ea(e,t)}let ra;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){na,na()};const ia=new Set,oa=e=>class extends Js(e){static finalize(){super.finalize();var e=this["is"];e&&!ia.has(e)&&(window.Vaadin.registrations.push(this),ia.add(e),window.Vaadin.developmentModeCallback&&(ra=A.debounce(ra,co,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),is(ra)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class sa extends oa(Ws(Ys(Fs(T)))){static get template(){return m`
|
|
324
324
|
<style>
|
|
325
325
|
:host {
|
|
326
326
|
display: inline-block;
|
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
}
|
|
1131
1131
|
</style>
|
|
1132
1132
|
</template>
|
|
1133
|
-
</dom-module>`,document.head.appendChild(ln.content),
|
|
1133
|
+
</dom-module>`,document.head.appendChild(ln.content),un=m`<dom-module id="vaadin-text-field-shared-styles">
|
|
1134
1134
|
<template>
|
|
1135
1135
|
<style>
|
|
1136
1136
|
:host {
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
}
|
|
1229
1229
|
</style>
|
|
1230
1230
|
</template>
|
|
1231
|
-
</dom-module>`;document.head.appendChild(cn.content);const ca={default:["list","autofocus","pattern","autocapitalize","autocorrect","maxlength","minlength","name","placeholder","autocomplete","title","disabled","readonly","required"],accessible:["invalid"]},ua={DEFAULT:"default",ACCESSIBLE:"accessible"},da=e=>class extends e{static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,value:!1},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},i18n:{type:Object,value:()=>({clear:"Clear"})},label:{type:String,value:"",observer:"_labelChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},maxlength:{type:Number},minlength:{type:Number},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,reflectToAttribute:!0},required:{type:Boolean,reflectToAttribute:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},hasValue:{type:Boolean,reflectToAttribute:!0},preventInvalidInput:{type:Boolean},_enabledCharPattern:String,_labelId:String,_helperTextId:String,_errorId:String,_inputId:String,_hasSlottedHelper:Boolean}}static get observers(){return["_stateChanged(disabled, readonly, clearButtonVisible, hasValue)","_hostPropsChanged("+ca.default.join(", ")+")","_hostAccessiblePropsChanged("+ca.accessible.join(", ")+")","_getActiveErrorId(invalid, errorMessage, _errorId, helperText, _helperTextId, _hasSlottedHelper)","_getActiveLabelId(label, _labelId, _inputId)","__observeOffsetHeight(errorMessage, invalid, label, helperText)","__enabledCharPatternChanged(_enabledCharPattern)"]}get focusElement(){if(this.shadowRoot)return this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`)||this.shadowRoot.querySelector('[part="value"]')}get inputElement(){return this.focusElement}get _slottedTagName(){return"input"}_createConstraintsObserver(){this._createMethodObserver("_constraintsChanged(required, minlength, maxlength, pattern)")}_onInput(e){if(this.__preventInput)return e.stopImmediatePropagation(),void(this.__preventInput=!1);if(this.preventInvalidInput){const e=this.inputElement;if(0<e.value.length&&!this.checkValidity())return e.value=this.value||"",this.setAttribute("input-prevented",""),void(this._inputDebouncer=A.debounce(this._inputDebouncer,E.after(200),()=>{this.removeAttribute("input-prevented")}))}e.__fromClearButton||(this.__userInput=!0),this.value=e.target.value,this.__userInput=!1}_stateChanged(e,t,n,r){!e&&!t&&n&&r?this.$.clearButton.removeAttribute("hidden"):this.$.clearButton.setAttribute("hidden",!0)}_onChange(e){this._valueClearing||(e=new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}),this.dispatchEvent(e))}_valueChanged(e,t){""===e&&void 0===t||(this.hasValue=""!==e&&null!=e,this.__userInput||(void 0!==e?this.inputElement.value=e:this.value=this.inputElement.value="",this.invalid&&this.validate()))}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e,this)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e,this)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e,this)}_onHelperSlotChange(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes({flatten:!0});this._hasSlottedHelper=e.filter(e=>3!==e.nodeType).length,this._hasSlottedHelper?this.setAttribute("has-helper","slotted"):""!==this.helperText&&null!==this.helperText||this.removeAttribute("has-helper")}_onSlotChange(){var e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);this.value&&(this.inputElement.value=this.value,this.validate()),e&&!this._slottedInput?(this._validateSlottedValue(e),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput=e):!e&&this._slottedInput&&(this._removeInputListeners(this._slottedInput),this._removeIEListeners(this._slottedInput),this._slottedInput=void 0),Object.keys(ua).map(e=>ua[e]).forEach(e=>this._propagateHostAttributes(ca[e].map(e=>this[e]),e))}_hostPropsChanged(...e){this._propagateHostAttributes(e,ua.DEFAULT)}_hostAccessiblePropsChanged(...e){this._propagateHostAttributes(e,ua.ACCESSIBLE)}_validateSlottedValue(e){e.value!==this.value&&(console.warn("Please define value on the vaadin-text-field component!"),e.value="")}_propagateHostAttributes(n,e){const r=this.inputElement,t=ca[e];e===ua.ACCESSIBLE?t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r),this._setOrToggleAttribute("aria-"+e,!!n[t]&&"true",r)}):t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r)})}_setOrToggleAttribute(e,t,n){e&&n&&(t?n.setAttribute(e,"boolean"==typeof t?"":t):n.removeAttribute(e))}_constraintsChanged(e,t,n,r){this.invalid&&(e||t||n||r?this.validate():this.invalid=!1)}checkValidity(){return this.required||this.pattern||this.maxlength||this.minlength||this.__forceCheckValidity?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange),e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange),e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}ready(){super.ready(),this._createConstraintsObserver(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);var e=this.shadowRoot.querySelector('[part="value"]'),e=(this._slottedInput=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput&&(this._addIEListeners(this._slottedInput),this._addInputListeners(this._slottedInput)),this.shadowRoot.querySelector('[name="input"], [name="textarea"]').addEventListener("slotchange",this._onSlotChange.bind(this)),this._onHelperSlotChange(),this.shadowRoot.querySelector('[name="helper"]').addEventListener("slotchange",this._onHelperSlotChange.bind(this)),window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),this.$.clearButton.addEventListener("mousedown",()=>this._valueClearing=!0),this.$.clearButton.addEventListener("mouseleave",()=>this._valueClearing=!1),this.$.clearButton.addEventListener("click",this._onClearButtonClick.bind(this)),this.addEventListener("keydown",this._onKeyDown.bind(this)),da._uniqueId=1+da._uniqueId||0);this._errorId=this.constructor.is+"-error-"+e,this._labelId=this.constructor.is+"-label-"+e,this._helperTextId=this.constructor.is+"-helper-"+e,this._inputId=this.constructor.is+"-input-"+e,this.shadowRoot.querySelector('[part="error-message"]').addEventListener("transitionend",()=>{this.__observeOffsetHeight()})}validate(){return!(this.invalid=!this.checkValidity())}clear(){this.value=""}_onBlur(){this.validate()}_onFocus(){this.autoselect&&(this.inputElement.select(),setTimeout(()=>{try{this.inputElement.setSelectionRange(0,9999)}catch(e){}}))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.clear(),this._valueClearing=!1,navigator.userAgent.match(/Trident/)&&(this.__preventInput=!1);const t=new Event("input",{bubbles:!0,composed:!0}),n=(t.__fromClearButton=!0,new Event("change",{bubbles:!this._slottedInput}));n.__fromClearButton=!0,this.inputElement.dispatchEvent(t),this.inputElement.dispatchEvent(n)}_onKeyDown(e){if(27===e.keyCode&&this.clearButtonVisible){const e=!!this.value;this.clear(),e&&this.inputElement.dispatchEvent(new Event("change",{bubbles:!this._slottedInput}))}this._enabledCharPattern&&!this.__shouldAcceptKey(e)&&e.preventDefault()}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__enabledCharRegExp.test(e.key)}_onPaste(e){var t;this._enabledCharPattern&&(t=(e.clipboardData||window.clipboardData).getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onDrop(e){var t;this._enabledCharPattern&&(t=e.dataTransfer.getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onBeforeInput(e){this._enabledCharPattern&&e.data&&!this.__enabledTextRegExp.test(e.data)&&e.preventDefault()}__enabledCharPatternChanged(e){this.__enabledCharRegExp=e&&new RegExp("^"+e+"$"),this.__enabledTextRegExp=e&&new RegExp("^"+e+"*$")}_addIEListeners(e){navigator.userAgent.match(/Trident/)&&(this._shouldPreventInput=()=>{this.__preventInput=!0,requestAnimationFrame(()=>{this.__preventInput=!1})},e.addEventListener("focusin",this._shouldPreventInput),e.addEventListener("focusout",this._shouldPreventInput),this._createPropertyObserver("placeholder",this._shouldPreventInput))}_removeIEListeners(e){navigator.userAgent.match(/Trident/)&&(e.removeEventListener("focusin",this._shouldPreventInput),e.removeEventListener("focusout",this._shouldPreventInput))}_getActiveErrorId(e,t,n,r,i,o){const s=[];(r||o)&&s.push(i),t&&e&&s.push(n),this._setOrToggleAttribute("aria-describedby",s.join(" "),this.focusElement)}_getActiveLabelId(e,t,n){let r=e?t+" "+n:n;this.focusElement.setAttribute("aria-labelledby",r)}_getErrorMessageAriaHidden(e,t,n){return(!(t&&e&&n)).toString()}_dispatchIronResizeEventIfNeeded(e,t){e="__previous"+e;void 0!==this[e]&&this[e]!==t&&this.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0})),this[e]=t}__observeOffsetHeight(){this.__observeOffsetHeightDebouncer=A.debounce(this.__observeOffsetHeightDebouncer,co,()=>{this._dispatchIronResizeEventIfNeeded("Height",this.offsetHeight)})}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),window.ShadyCSS&&window.ShadyCSS.nativeCss||!/^(focused|focus-ring|invalid|disabled|placeholder|has-value)$/.test(t)||this.updateStyles(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.root){const t="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach(e=>{e.style[t]="visible",e.style[t]=""})}}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}};class pa extends oa(da(Ws(Ys(T)))){static get template(){return m`
|
|
1231
|
+
</dom-module>`;document.head.appendChild(un.content);const ua={default:["list","autofocus","pattern","autocapitalize","autocorrect","maxlength","minlength","name","placeholder","autocomplete","title","disabled","readonly","required"],accessible:["invalid"]},ca={DEFAULT:"default",ACCESSIBLE:"accessible"},da=e=>class extends e{static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,value:!1},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},i18n:{type:Object,value:()=>({clear:"Clear"})},label:{type:String,value:"",observer:"_labelChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},maxlength:{type:Number},minlength:{type:Number},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,reflectToAttribute:!0},required:{type:Boolean,reflectToAttribute:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},hasValue:{type:Boolean,reflectToAttribute:!0},preventInvalidInput:{type:Boolean},_enabledCharPattern:String,_labelId:String,_helperTextId:String,_errorId:String,_inputId:String,_hasSlottedHelper:Boolean}}static get observers(){return["_stateChanged(disabled, readonly, clearButtonVisible, hasValue)","_hostPropsChanged("+ua.default.join(", ")+")","_hostAccessiblePropsChanged("+ua.accessible.join(", ")+")","_getActiveErrorId(invalid, errorMessage, _errorId, helperText, _helperTextId, _hasSlottedHelper)","_getActiveLabelId(label, _labelId, _inputId)","__observeOffsetHeight(errorMessage, invalid, label, helperText)","__enabledCharPatternChanged(_enabledCharPattern)"]}get focusElement(){if(this.shadowRoot)return this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`)||this.shadowRoot.querySelector('[part="value"]')}get inputElement(){return this.focusElement}get _slottedTagName(){return"input"}_createConstraintsObserver(){this._createMethodObserver("_constraintsChanged(required, minlength, maxlength, pattern)")}_onInput(e){if(this.__preventInput)return e.stopImmediatePropagation(),void(this.__preventInput=!1);if(this.preventInvalidInput){const e=this.inputElement;if(0<e.value.length&&!this.checkValidity())return e.value=this.value||"",this.setAttribute("input-prevented",""),void(this._inputDebouncer=A.debounce(this._inputDebouncer,E.after(200),()=>{this.removeAttribute("input-prevented")}))}e.__fromClearButton||(this.__userInput=!0),this.value=e.target.value,this.__userInput=!1}_stateChanged(e,t,n,r){!e&&!t&&n&&r?this.$.clearButton.removeAttribute("hidden"):this.$.clearButton.setAttribute("hidden",!0)}_onChange(e){this._valueClearing||(e=new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}),this.dispatchEvent(e))}_valueChanged(e,t){""===e&&void 0===t||(this.hasValue=""!==e&&null!=e,this.__userInput||(void 0!==e?this.inputElement.value=e:this.value=this.inputElement.value="",this.invalid&&this.validate()))}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e,this)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e,this)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e,this)}_onHelperSlotChange(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes({flatten:!0});this._hasSlottedHelper=e.filter(e=>3!==e.nodeType).length,this._hasSlottedHelper?this.setAttribute("has-helper","slotted"):""!==this.helperText&&null!==this.helperText||this.removeAttribute("has-helper")}_onSlotChange(){var e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);this.value&&(this.inputElement.value=this.value,this.validate()),e&&!this._slottedInput?(this._validateSlottedValue(e),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput=e):!e&&this._slottedInput&&(this._removeInputListeners(this._slottedInput),this._removeIEListeners(this._slottedInput),this._slottedInput=void 0),Object.keys(ca).map(e=>ca[e]).forEach(e=>this._propagateHostAttributes(ua[e].map(e=>this[e]),e))}_hostPropsChanged(...e){this._propagateHostAttributes(e,ca.DEFAULT)}_hostAccessiblePropsChanged(...e){this._propagateHostAttributes(e,ca.ACCESSIBLE)}_validateSlottedValue(e){e.value!==this.value&&(console.warn("Please define value on the vaadin-text-field component!"),e.value="")}_propagateHostAttributes(n,e){const r=this.inputElement,t=ua[e];e===ca.ACCESSIBLE?t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r),this._setOrToggleAttribute("aria-"+e,!!n[t]&&"true",r)}):t.forEach((e,t)=>{this._setOrToggleAttribute(e,n[t],r)})}_setOrToggleAttribute(e,t,n){e&&n&&(t?n.setAttribute(e,"boolean"==typeof t?"":t):n.removeAttribute(e))}_constraintsChanged(e,t,n,r){this.invalid&&(e||t||n||r?this.validate():this.invalid=!1)}checkValidity(){return this.required||this.pattern||this.maxlength||this.minlength||this.__forceCheckValidity?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange),e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange),e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}ready(){super.ready(),this._createConstraintsObserver(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);var e=this.shadowRoot.querySelector('[part="value"]'),e=(this._slottedInput=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput&&(this._addIEListeners(this._slottedInput),this._addInputListeners(this._slottedInput)),this.shadowRoot.querySelector('[name="input"], [name="textarea"]').addEventListener("slotchange",this._onSlotChange.bind(this)),this._onHelperSlotChange(),this.shadowRoot.querySelector('[name="helper"]').addEventListener("slotchange",this._onHelperSlotChange.bind(this)),window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),this.$.clearButton.addEventListener("mousedown",()=>this._valueClearing=!0),this.$.clearButton.addEventListener("mouseleave",()=>this._valueClearing=!1),this.$.clearButton.addEventListener("click",this._onClearButtonClick.bind(this)),this.addEventListener("keydown",this._onKeyDown.bind(this)),da._uniqueId=1+da._uniqueId||0);this._errorId=this.constructor.is+"-error-"+e,this._labelId=this.constructor.is+"-label-"+e,this._helperTextId=this.constructor.is+"-helper-"+e,this._inputId=this.constructor.is+"-input-"+e,this.shadowRoot.querySelector('[part="error-message"]').addEventListener("transitionend",()=>{this.__observeOffsetHeight()})}validate(){return!(this.invalid=!this.checkValidity())}clear(){this.value=""}_onBlur(){this.validate()}_onFocus(){this.autoselect&&(this.inputElement.select(),setTimeout(()=>{try{this.inputElement.setSelectionRange(0,9999)}catch(e){}}))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.clear(),this._valueClearing=!1,navigator.userAgent.match(/Trident/)&&(this.__preventInput=!1);const t=new Event("input",{bubbles:!0,composed:!0}),n=(t.__fromClearButton=!0,new Event("change",{bubbles:!this._slottedInput}));n.__fromClearButton=!0,this.inputElement.dispatchEvent(t),this.inputElement.dispatchEvent(n)}_onKeyDown(e){if(27===e.keyCode&&this.clearButtonVisible){const e=!!this.value;this.clear(),e&&this.inputElement.dispatchEvent(new Event("change",{bubbles:!this._slottedInput}))}this._enabledCharPattern&&!this.__shouldAcceptKey(e)&&e.preventDefault()}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__enabledCharRegExp.test(e.key)}_onPaste(e){var t;this._enabledCharPattern&&(t=(e.clipboardData||window.clipboardData).getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onDrop(e){var t;this._enabledCharPattern&&(t=e.dataTransfer.getData("text"),this.__enabledTextRegExp.test(t)||e.preventDefault())}_onBeforeInput(e){this._enabledCharPattern&&e.data&&!this.__enabledTextRegExp.test(e.data)&&e.preventDefault()}__enabledCharPatternChanged(e){this.__enabledCharRegExp=e&&new RegExp("^"+e+"$"),this.__enabledTextRegExp=e&&new RegExp("^"+e+"*$")}_addIEListeners(e){navigator.userAgent.match(/Trident/)&&(this._shouldPreventInput=()=>{this.__preventInput=!0,requestAnimationFrame(()=>{this.__preventInput=!1})},e.addEventListener("focusin",this._shouldPreventInput),e.addEventListener("focusout",this._shouldPreventInput),this._createPropertyObserver("placeholder",this._shouldPreventInput))}_removeIEListeners(e){navigator.userAgent.match(/Trident/)&&(e.removeEventListener("focusin",this._shouldPreventInput),e.removeEventListener("focusout",this._shouldPreventInput))}_getActiveErrorId(e,t,n,r,i,o){const s=[];(r||o)&&s.push(i),t&&e&&s.push(n),this._setOrToggleAttribute("aria-describedby",s.join(" "),this.focusElement)}_getActiveLabelId(e,t,n){let r=e?t+" "+n:n;this.focusElement.setAttribute("aria-labelledby",r)}_getErrorMessageAriaHidden(e,t,n){return(!(t&&e&&n)).toString()}_dispatchIronResizeEventIfNeeded(e,t){e="__previous"+e;void 0!==this[e]&&this[e]!==t&&this.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0})),this[e]=t}__observeOffsetHeight(){this.__observeOffsetHeightDebouncer=A.debounce(this.__observeOffsetHeightDebouncer,uo,()=>{this._dispatchIronResizeEventIfNeeded("Height",this.offsetHeight)})}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),window.ShadyCSS&&window.ShadyCSS.nativeCss||!/^(focused|focus-ring|invalid|disabled|placeholder|has-value)$/.test(t)||this.updateStyles(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.root){const t="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach(e=>{e.style[t]="visible",e.style[t]=""})}}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}};class pa extends oa(da(Ws(Ys(T)))){static get template(){return m`
|
|
1232
1232
|
<style include="vaadin-text-field-shared-styles">
|
|
1233
1233
|
/* polymer-cli linter breaks with empty line */
|
|
1234
1234
|
</style>
|
|
@@ -1273,7 +1273,7 @@
|
|
|
1273
1273
|
}
|
|
1274
1274
|
</style>
|
|
1275
1275
|
</template>
|
|
1276
|
-
</dom-module>`;document.head.appendChild(i.content);class ma{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function fa(e){return function r(n,i){let o=i.substring(n.start,n.end-1);if(n.parsedCssText=n.cssText=o.trim(),n.parent){let e=n.previous?n.previous.end:n.parent.start,t=(o=(o=(o=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(o=i.substring(e,n.start-1))).replace(va.multipleSpaces," ")).substring(o.lastIndexOf(";")+1),n.parsedSelector=n.selector=o.trim());n.atRule=0===t.indexOf(xa),n.atRule?0===t.indexOf(wa)?n.type=_a.MEDIA_RULE:t.match(va.keyframesRule)&&(n.type=_a.KEYFRAMES_RULE,n.keyframesName=n.selector.split(va.multipleSpaces).pop()):0===t.indexOf(ba)?n.type=_a.MIXIN_RULE:n.type=_a.STYLE_RULE}let s=n.rules;if(s)for(let e,t=0,n=s.length;t<n&&(e=s[t]);t++)r(e,i);return n}(function(t){let r=new ma,i=(r.start=0,r.end=t.length,r);for(let n=0,e=t.length;n<e;n++)if(t[n]===ya){i.rules||(i.rules=[]);let e=i,t=e.rules[e.rules.length-1]||null;(i=new ma).start=n+1,i.parent=e,i.previous=t,e.rules.push(i)}else t[n]===ga&&(i.end=n+1,i=i.parent||r);return r}(e=e.replace(va.comments,"").replace(va.port,"")),e)}const _a={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},ya="{",ga="}",va={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},ba="--",wa="@media",xa="@",Sa=new Set;function Ea(e,t){return e?("string"==typeof e&&(e=fa(e)),t&&Ta(e,t),function r(e,i,t=""){let o="";if(e.cssText||e.rules){var s=e.rules;if(s&&!function(){let e=s[0];return Boolean(e)&&Boolean(e.selector)&&0===e.selector.indexOf(ba)}())for(let e,t=0,n=s.length;t<n&&(e=s[t]);t++)o=r(e,i,o);else o=(o=(o=i?e.cssText:e.cssText.replace(va.customProp,"").replace(va.mixinProp,"").replace(va.mixinApply,"").replace(va.varApply,"")).trim())&&" "+o+"\n"}return o&&(e.selector&&(t+=e.selector+" "+ya+"\n"),t+=o,e.selector&&(t+=ga+"\n\n")),t}(e,qr)):""}function Ca(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=fa(e.textContent)),e.__cssRules||null}function Ta(n,r,i,o){if(n){let e=!1,t=n.type;o&&t===_a.MEDIA_RULE&&(s=n.selector.match(Yr))&&!window.matchMedia(s[1]).matches&&(e=!0),t===_a.STYLE_RULE?r(n):i&&t===_a.KEYFRAMES_RULE?i(n):t===_a.MIXIN_RULE&&(e=!0);var s,a=n.rules;if(a&&!e)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)Ta(e,r,i,o)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Aa="css-build";function Pa(e){return""!==function(e){if(void 0!==Vr)return Vr;if(void 0===e.__cssBuild){var t=e.getAttribute(Aa);if(t)e.__cssBuild=t;else{t=function(e){const t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Aa)return e[1]}return""}(e);if(""!==t){const n=("template"===e.localName?e.content:e).firstChild;n.parentNode.removeChild(n)}e.__cssBuild=t}}return e.__cssBuild||""}(e)}const Da=/;\s*/m,ka=/^\s*(initial)|(inherit)\s*$/,Oa=/\s*!important/;class Ma{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let Ia=null;class Na{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Ma}detectMixin(e){return e=zr.test(e)||Fr.test(e),zr.lastIndex=0,Fr.lastIndex=0,e}gatherStyles(e){var t=function(){const t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){const o=n[e];if(o.hasAttribute("shady-unscoped")){if(!Wr){{r=void 0;i=void 0;var r=o;var i=r.textContent;if(!Sa.has(i)){Sa.add(i);const r=document.createElement("style");r.setAttribute("shady-unscoped",""),r.textContent=i,document.head.appendChild(r)}}o.parentNode.removeChild(o)}}else t.push(o.textContent),o.parentNode.removeChild(o)}return t.join("").trim()}();if(t){const n=document.createElement("style");return n.textContent=t,e.content.insertBefore(n,e.content.firstChild),n}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var n=Ca(e);return this.transformRules(n,t),e.textContent=Ea(n),n}transformCustomStyle(e){var t=Ca(e);return Ta(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=Ea(t),t}transformRules(e,t){this._currentElement=t,Ta(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,i){return e=e.replace(Fr,(e,t,n,r)=>this._produceCssProperties(e,t,n,r,i)),this._consumeCssProperties(e,i)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const n={};let r=!1;return Ta(e,e=>{(r=r||e===t)||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(l,h){for(;c=zr.exec(l);){let e=c[0],t=c[1],n=c.index,r=n+e.indexOf("@apply"),i=n+e.length,o=l.slice(0,r),s=l.slice(i),a=h?this._fallbacksFromPreviousRules(h):{};Object.assign(a,this._cssTextToMap(o));var c=this._atApplyToCssProperties(t,a);l=""+o+c+s,zr.lastIndex=n+c.length}return l}_atApplyToCssProperties(r,i){r=r.replace(Da,"");let o=[],s=this._map.get(r);if(s||(this._map.set(r,{}),s=this._map.get(r)),s){let e,t,n;this._currentElement&&(s.dependants[this._currentElement]=!0);var a=s.properties;for(e in a)n=i&&i[e],t=[e,": var(",r,"_-_",e],n&&t.push(",",n.replace(Oa,"")),t.push(")"),Oa.test(a[e])&&t.push(" !important"),o.push(t.join(""))}return o.join("; ")}_replaceInitialOrInherit(e,t){var n=ka.exec(t);return t=n?n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,r=!1){let i,o,s=e.split(";"),a={};for(let e,t,n=0;n<s.length;n++)(e=s[n])&&(1<(t=e.split(":")).length&&(i=t[0].trim(),o=t.slice(1).join(":"),r&&(o=this._replaceInitialOrInherit(i,o)),a[i]=o));return a}_invalidateMixinEntry(e){if(Ia)for(var t in e.dependants)t!==this._currentElement&&Ia(t)}_produceCssProperties(e,t,n,r,i){if(n&&function e(t,n){var i=t.indexOf("var(");if(-1===i)return n(t,"","","");let r=function(n){let r=0;for(let e=i+3,t=n.length;e<t;e++)if("("===n[e])r++;else if(")"===n[e]&&0==--r)return e;return-1}(t),o=t.substring(i+4,r),s=t.substring(0,i),a=e(t.substring(r+1),n),l=o.indexOf(",");return-1===l?n(s,o.trim(),"",a):n(s,o.substring(0,l).trim(),o.substring(l+1).trim(),a)}(n,(e,t)=>{t&&this._map.get(t)&&(r=`@apply ${t};`)}),!r)return e;let o=this._consumeCssProperties(""+r,i),s=e.slice(0,e.indexOf("--")),a=this._cssTextToMap(o,!0),l=a,h=this._map.get(t),c=h&&h.properties;c?l=Object.assign(Object.create(c),a):this._map.set(t,l);let u,d,p=[],m=!1;for(u in l)d=a[u],void 0===d&&(d="initial"),!c||u in c||(m=!0),p.push(`${t}_-_${u}: `+d);return m&&this._invalidateMixinEntry(h),h&&(h.properties=l),""+(s=n?e+";"+s:s)+p.join("; ")+";"}}Na.prototype._separator="_-_",Object.defineProperty(Na.prototype,"invalidCallback",{get:()=>Ia,set(e){Ia=e}});const La={},Ra="_applyShimCurrentVersion",Ha="_applyShimNextVersion",Ba="_applyShimValidatingVersion",Fa=Promise.resolve();function za(e){var e=La[e];e&&((e=e)[Ra]=e[Ra]||0,e[Ba]=e[Ba]||0,e[Ha]=(e[Ha]||0)+1)}function Ya(e){return e[Ra]===e[Ha]}const Ua=new Na;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const ie=new class{constructor(){this.customStyleInterface=null,Ua.invalidCallback=za}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Ua.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),Pa(e)||(La[t]=e,t=Ua.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var n=t[e],n=this.customStyleInterface.getStyleForCustomStyle(n);n&&Ua.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Ur(e,t),e.shadowRoot){this.styleElement(e);var n=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}else{var r=e.children||e.childNodes;for(let e=0;e<r.length;e++)this.styleSubtree(r[e])}}styleElement(e){this.ensure();var n,r,i=function(e){let t=e.localName,n="",r="";return t?n=-1<t.indexOf("-")?t:(r=t,e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}(e)["is"],o=La[i];if((!o||!Pa(o))&&o&&!Ya(o)){!Ya(r=o)&&r[Ba]===r[Ha]||(this.prepareTemplate(o,i),(n=o)[Ba]=n[Ha],n._validating||(n._validating=!0,Fa.then(function(){n[Ra]=n[Ha],n._validating=!1})));let t=e.shadowRoot;if(t){let e=t.querySelector("style");e&&(e.__cssRules=o._styleAst,e.textContent=Ea(o._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};on=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,n){ie.flushCustomStyles(),ie.prepareTemplate(e,t)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(e,t){ie.flushCustomStyles(),ie.styleSubtree(e,t)},styleElement(e){ie.flushCustomStyles(),ie.styleElement(e)},styleDocument(e){ie.flushCustomStyles(),ie.styleDocument(e)},getComputedStyleValue:(e,t)=>jr(e,t),flushCustomStyles(){ie.flushCustomStyles()},nativeCss:qr,nativeShadow:Wr,cssBuild:Vr,disableRuntime:rn},on&&(window.ShadyCSS.CustomStyleInterface=on)}window.ShadyCSS.ApplyShim=Ua;const ja=/:host\(:dir\((ltr|rtl)\)\)/g,Wa=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Ga=/:dir\((?:ltr|rtl)\)/,Va=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),$a=[];let qa=null,Xa="";function Za(){Xa=document.documentElement.getAttribute("dir")}function Ja(e){e.__autoDirOptOut||e.setAttribute("dir",Xa)}function Ka(){Za(),Xa=document.documentElement.getAttribute("dir");for(let e=0;e<$a.length;e++)Ja($a[e])}const Qa=b(e=>{Va||qa||(Za(),(qa=new MutationObserver(Ka)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=bo(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!Va&&Ga.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(ja,':host([dir="$1"])')).replace(Wa,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(qa&&qa.takeRecords().length&&Ka(),$a.push(this),Ja(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=$a.indexOf(this))&&$a.splice(e,1)}}return t.__activateDir=!1,t});let el=!1,tl=[],nl=[];function rl(){el=!0,requestAnimationFrame(function(){el=!1;for(var e=tl;e.length;)il(e.shift());setTimeout(function(){var n=nl;for(let e=0,t=n.length;e<t;e++)il(n.shift())})})}function il(e){const t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function ol(e,t,n){el||rl(),nl.push([e,t,n])}function sl(){document.body.removeAttribute("unresolved")}function al(e,t,n){return{index:e,removed:t,addedCount:n}}function ll(a,l){{var h=a,c=0,u=a.length,d=l,p=0,m=l.length;let t,e=0,n=0,r=Math.min(u-c,m-p);if(0==c&&0==p&&(e=function(t,n,r){for(let e=0;e<r;e++)if(t[e]!==n[e])return e;return r}(h,d,r)),u==h.length&&m==d.length&&(n=function(e,t,n){let r=e.length,i=t.length,o=0;for(;o<n&&e[--r]===t[--i];)o++;return o}(h,d,r-e)),p+=e,m-=n,(u-=n)-(c+=e)==0&&m-p==0)return[];if(c==u){for(t=al(c,[],0);p<m;)t.removed.push(d[p++]);return[t]}if(p==m)return[al(c,[],u-c)];var f=function(e){let t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];for(;0<t||0<n;){var o,s,a,l;0==t?(i.push(2),n--):0==n?(i.push(3),t--):(o=e[t-1][n-1],(l=(s=e[t-1][n])<(a=e[t][n-1])?s<o?s:o:a<o?a:o)==o?(o==r?i.push(0):(i.push(1),r=o),t--,n--):r=l==s?(i.push(3),t--,s):(i.push(2),n--,a))}return i.reverse(),i}(function(n,r,i,o){let s=m-o+1,a=u-r+1,l=new Array(s);for(let e=0;e<s;e++)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;e++)l[0][e]=e;for(let t=1;t<s;t++)for(let e=1;e<a;e++){var h,c;n[r+e-1]===i[o+t-1]?l[t][e]=l[t-1][e-1]:(h=l[t-1][e]+1,c=l[t][e-1]+1,l[t][e]=h<c?h:c)}return l}(h,c,d,p));t=void 0;let i=[],o=c,s=p;for(let e=0;e<f.length;e++)switch(f[e]){case 0:t&&(i.push(t),t=void 0),o++,s++;break;case 1:(t=t||al(o,[],0)).addedCount++,o++,t.removed.push(d[s]),s++;break;case 2:(t=t||al(o,[],0)).addedCount++,o++;break;case 3:(t=t||al(o,[],0)).removed.push(d[s]),s++}return t&&i.push(t),i}}function hl(e){return"slot"===e.localName}"interactive"===document.readyState||"complete"===document.readyState?sl():window.addEventListener("DOMContentLoaded",sl);let cl=class{static getFlattenedNodes(e){const t=w(e);return hl(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>hl(e)?w(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){hl(this._target)?this._listenSlots([this._target]):w(this._target).children&&(this._listenSlots(w(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){hl(this._target)?this._unlistenSlots([this._target]):w(this._target).children&&(this._unlistenSlots(w(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,po.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var n=t[e];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=ll(n,this._effectiveNodes);for(let n,e=0;e<i.length&&(n=i[e]);e++)for(let e,t=0;t<n.removed.length&&(e=n.removed[t]);t++)r.removedNodes.push(e);for(let t,e=0;e<i.length&&(t=i[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)r.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(r.addedNodes.length||r.removedNodes.length)&&(e=!0,this.callback.call(this._target,r)),e}_listenSlots(n){for(let t=0;t<n.length;t++){let e=n[t];hl(e)&&e.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(n){for(let t=0;t<n.length;t++){let e=n[t];hl(e)&&e.removeEventListener("slotchange",this._boundSchedule)}}};function ul(e,t){return pl.call(e,t)}const dl=Element.prototype,pl=dl.matches||dl.matchesSelector||dl.mozMatchesSelector||dl.msMatchesSelector||dl.oMatchesSelector||dl.webkitMatchesSelector;class D{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new cl(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(w(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=w(t).parentNode||w(t).host;return t===this.node}getOwnerRoot(){return w(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?w(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=w(this.node).assignedSlot;for(;t;)e.push(t),t=w(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return w(n).importNode(e,t)}getEffectiveChildNodes(){return cl.getFlattenedNodes(this.node)}queryDistributedElements(r){let i=this.getEffectiveChildNodes(),o=[];for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++)e.nodeType===Node.ELEMENT_NODE&&ul(e,r)&&o.push(e);return o}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function ml(n,r){for(let t=0;t<r.length;t++){let e=r[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class fl{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D;let _l=D;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class ie extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(D.prototype).forEach(e=>{"activeElement"!=e&&(ie.prototype[e]=D.prototype[e])}),ml(ie.prototype,["classList"]),_l=ie,Object.defineProperties(fl.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&wl(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var r=n[e];if(wl(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var yl=D.prototype;var gl=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<gl.length;t++){let e=gl[t];yl[e]=function(){return this.node[e].apply(this.node,arguments)}}}ml(D.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var vl=D.prototype;var bl=["textContent","innerHTML","className"];for(let e=0;e<bl.length;e++){let t=bl[e];Object.defineProperty(vl,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const wl=function(e){if((e=e||document)instanceof _l)return e;if(e instanceof fl)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?fl:_l)(e),e.__domApi=t),t},xl=window.ShadyDOM,Sl=window.ShadyCSS;function El(e,t){return w(e).getRootNode()===t}const Cl="disable-upgrade",Tl=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Al=b(e=>{e=ns(e);let t=Tl(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Cl)}_initializeProperties(){this.hasAttribute(Cl)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,n,r){e==Cl?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,w(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,n,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),Pl="disable-upgrade";let Dl=window.ShadyCSS;const kl=b(e=>{const t=Fs(ns(e)),n=ts?t:Qa(t),r=Tl(n),i={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class o extends n{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,n){(this.__dataAttributes&&this.__dataAttributes[e]||e===Pl)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;yi&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;yi&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return yi&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):r.call(this).concat(Pl)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,n,r){t!==n&&(e==Pl?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,w(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,n,r),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){if(hi&&this.hasAttribute(Pl))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),yi&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){var n=this.attributes;for(let e=0,t=n.length;e<t;e++){var r=n[e];this.__attributeReaction(r.name,null,r.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,n){this._propertyToAttribute(e,t,n)}serializeValueToAttribute(e,t,n){this._valueToNodeAttribute(n||this,e,t)}extend(n,r){if(!n||!r)return n||r;var i=Object.getOwnPropertyNames(r);for(let e,t=0;t<i.length&&(e=i[t]);t++){var o=Object.getOwnPropertyDescriptor(r,e);o&&Object.defineProperty(n,e,o)}return n}mixin(e,t){for(var n in t)e[n]=t[n];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,n){n=n||{},t=null==t?{}:t;let r=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});r.detail=t;e=n.node||this;return w(e).dispatchEvent(r),r}listen(e,t,n){e=e||this;let r=this.__boundListeners||(this.__boundListeners=new WeakMap),i=r.get(e);i||(i={},r.set(e,i));var o=t+n;i[o]||(i[o]=this._addMethodEventListenerToNode(e,t,n,this))}unlisten(e,t,n){e=e||this;let r=this.__boundListeners&&this.__boundListeners.get(e),i=t+n,o=r&&r[i];o&&(this._removeEventListenerFromNode(e,t,o),r[i]=null)}setScrollDirection(e,t){Ms(t||this,i[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=w(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=wl(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return wl(this).getEffectiveChildNodes()}queryDistributedElements(e){return wl(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){let n=this.getEffectiveChildNodes(),r=[];for(let e,t=0;e=n[t];t++)e.nodeType!==Node.COMMENT_NODE&&r.push(e.textContent);return r.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?wl(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&w(this).contains(e)&&w(this).getRootNode()===w(e).getRootNode()}isLocalDescendant(e){return this.root===w(e).getRootNode()}scopeSubtree(e,t=!1){{var[e,n=!1]=[e,t];if(!xl||!Sl)return null;if(!xl.handlesDynamicScoping)return null;const i=Sl.ScopingShim;if(!i)return null;const o=i.scopeForNode(e),s=w(e).getRootNode(),a=e=>{if(El(e,s)){const r=Array.from(xl.nativeMethods.querySelectorAll.call(e,"*"));r.push(e);for(let e=0;e<r.length;e++){var t,n=r[e];El(n,s)&&((t=i.currentScopeForNode(n))!==o&&(""!==t&&i.unscopeNode(n,t),i.scopeNode(n,o)))}}};if(a(e),n){const n=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var n=t[e];for(let e=0;e<n.addedNodes.length;e++){var r=n.addedNodes[e];r.nodeType===Node.ELEMENT_NODE&&a(r)}}});return n.observe(e,{childList:!0,subtree:!0}),n}return null}}getComputedStyleValue(e){return Dl.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=A.debounce(this._debouncers[e],0<n?E.after(n):po,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return 0<t?E.run(e.bind(this),t):~po.run(e.bind(this))}cancelAsync(e){e<0?po.cancel(~e):E.cancel(e)}create(e,t){let n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var r in t)n[r]=t[r];return n}elementMatches(e,t){return ul(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(w(n).setAttribute(e,""),!0):(w(n).removeAttribute(e),!1)}toggleClass(e,t,n){n=n||this,(t=1==arguments.length?!n.classList.contains(e):t)?n.classList.add(e):n.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,n,r){this.transform("translate3d("+e+","+t+","+n+")",r=r||this)}arrayDelete(e,t){let n;if(Array.isArray(e)){if(0<=(n=e.indexOf(t)))return e.splice(n,1)}else if(0<=(n=x(this,e).indexOf(t)))return this.splice(e,n,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return o.prototype.is="",o}),Ol={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Ml={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Il=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Ml);function Nl(e,t,n,r){var i,o=t,s=e,a=r,l=o._noAccessors,h=Object.getOwnPropertyNames(o);for(let e=0;e<h.length;e++){var c=h[e];if(!(c in a))if(l)s[c]=o[c];else{let e=Object.getOwnPropertyDescriptor(o,c);e&&(e.configurable=!0,Object.defineProperty(s,c,e))}}for(i in Ol)t[i]&&(n[i]=n[i]||[],n[i].push(t[i]))}function Ll(e,t){for(const i in t){var n=e[i],r=t[i];e[i]=!("value"in r)&&n&&"value"in n?Object.assign({value:n.value},r):r}}const Rl=kl(HTMLElement);function Hl(i,t,n){let o;const s={};class r extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);i.properties&&this.createProperties(i.properties),i.observers&&this.createObservers(i.observers,i.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){var t={};if(o)for(let e=0;e<o.length;e++)Ll(t,o[e].properties);return Ll(t,i.properties),t}static get observers(){let n=[];if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).observers&&(n=n.concat(e.observers));return n=i.observers?n.concat(i.observers):n}created(){super.created();const t=s.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){const e=r.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),hi&&a(e);var n=Object.getPrototypeOf(this);let t=s.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=s.registered)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=s.listeners;if(t)for(let e=0;e<t.length;e++){var n=t[e];if(n)for(var r in n)this._addMethodEventListenerToNode(this,r,n[r])}}_ensureAttributes(){var t=s.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var n,r=t[e];for(n in r)this._ensureAttribute(n,r[n])}super._ensureAttributes()}ready(){super.ready();let t=s.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();let t=s.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();let t=s.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,r){super.attributeChanged();let i=s.attributeChanged;if(i)for(let e=0;e<i.length;e++)i[e].call(this,t,n,r)}}if(n){Array.isArray(n)||(n=[n]);let e=t.prototype.behaviors;o=function t(n,r,i){r=r||[];for(let e=n.length-1;0<=e;e--){var o=n[e];o?Array.isArray(o)?t(o,r):r.indexOf(o)<0&&(!i||i.indexOf(o)<0)&&r.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return r}(n,null,e),r.prototype.behaviors=e?e.concat(n):o}const a=e=>{if(o){var t=e,n=o,r=s;for(let e=0;e<n.length;e++)Nl(t,n[e],r,Il)}Nl(e,i,s,Ml)};return hi||a(r.prototype),r.generatedFrom=i,r}function Bl(e){let t;return t="function"==typeof e?e:Bl.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function Fl(e,t,n,r,i){let o;!i||(o="object"==typeof n&&null!==n)&&(r=e.__dataTemp[t]);i=r!==n&&(r==r||n==n);return o&&i&&(e.__dataTemp[t]=n),i}Bl.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let n=t?t(Rl):Rl;return(n=Hl(e,n,e.behaviors)).is=n.prototype.is=e.is,n};const zl=b(e=>class extends e{_shouldPropertyChange(e,t,n){return Fl(this,e,t,n,!0)}}),Yl=b(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Fl(this,e,t,n,this.mutableData)}});zl._mutablePropertyChange=Fl;let Ul=null;function jl(){return Ul}jl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:jl,writable:!0}});const Wl=Ko(jl),Gl=zl(Wl);function Vl(n,r){for(let t=0;t<r.length;t++){let e=r[t];if(Boolean(n)!=Boolean(e.__hideTemplateChildren__))if(e.nodeType===Node.TEXT_NODE)n?(e.__polymerTextContent__=e.textContent,e.textContent=""):e.textContent=e.__polymerTextContent__;else if("slot"===e.localName)if(n)e.__polymerReplaced__=document.createComment("hidden-slot"),w(w(e).parentNode).replaceChild(e.__polymerReplaced__,e);else{const n=e.__polymerReplaced__;n&&w(w(n).parentNode).replaceChild(e,n)}else e.style&&(n?(e.__polymerDisplay__=e.style.display,e.style.display="none"):e.style.display=e.__polymerDisplay__);e.__hideTemplateChildren__=n,e._showHideChildren&&e._showHideChildren(n)}}class $l extends Ko(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let 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 n=this.__templatizeOptions;(e&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,n,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,n,e=>{e.model=this,r(e)});else{let e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(t,n,r)}}_showHideChildren(e){Vl(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}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}}$l.prototype.__dataHost,$l.prototype.__templatizeOptions,$l.prototype._methodHost,$l.prototype.__templatizeOwner,$l.prototype.__hostProps;const ql=zl($l);function Xl(e){e=e.__dataHost;return e&&e._methodHost||e}function Zl(t,n,r){let e=r.mutableData?ql:$l;var i=class extends(e=Kl.mixin?Kl.mixin(e):e){};i.prototype.__templatizeOptions=r,i.prototype._bindTemplate(t);{var o=i,s=n,a=r,l;let e=s.hostProps||{};for(l in a.instanceProps){delete e[l];var h=a.notifyInstanceProp;h&&o.prototype._addPropertyEffect(l,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,e,t,n[t])}}((l,h))})}if(a.forwardHostProp&&t.__dataHost)for(var c in e)s.hasHostProps||(s.hasHostProps=!0),o.prototype._addPropertyEffect(c,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}})}return i}function Jl(t,n,r,i){var o=r.forwardHostProp;if(o&&n.hasHostProps){var s,a="template"==t.localName;let e=n.templatizeTemplateClass;if(!e){if(a){class i extends(r.mutableData?Gl:Wl){}e=n.templatizeTemplateClass=i}else{const r=t.constructor;class i extends r{}e=n.templatizeTemplateClass=i}for(s in n.hostProps)e.prototype._addPropertyEffect("_host_"+s,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,t.substring("_host_".length),n[t])}}((s,o))}),e.prototype._createNotifyingProperty("_host_"+s);if(ci&&i){var l=r;const u=i.constructor._properties,d=n["propertyEffects"],p=l["instanceProps"];for(var h in d)if(!(u[h]||p&&p[h])){const l=d[h];for(let e=0;e<l.length;e++){const u=l[e].info["part"];if(!u.signature||!u.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)r=e,Ul=t,Object.setPrototypeOf(t,r.prototype),new r,Ul=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=n.hostProps;for(var c in r)if(c="_host_"+c,c in t){const r=t[c];delete t[c],t.__data[c]=r}}}}function Kl(e,t,n){if(ai&&!Xl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:$l)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=Zl(e,r,n),r.templatizeInstanceClass=i);var o=Xl(e),n=(Jl(e,r,n,o),class extends i{});return n.prototype._methodHost=o,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=r.hostProps,n}let Ql=!1;function eh(){if(hi&&!ni){if(!Ql){Ql=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return 1}}fs=Fs(Yl(Ko(HTMLElement))),customElements.define("dom-bind",class extends fs{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),ai)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,r){this.mutableData=!0}connectedCallback(){eh()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){w(w(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),sn=Yl(T);class th extends sn{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:!_i,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(),eh()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=w(w(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){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}let e={};e[this.as]=!0,e[this.indexAs]=!0,e[this.itemsIndexAs]=!0,this.__ctor=Kl(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:e,forwardHostProp:function(n,r){var i=this.__instances;for(let e,t=0;t<i.length&&(e=i[t]);t++)e.forwardHostProp(n,r)},notifyInstanceProp:function(e,t,n){var r,i;((r=this.as)===(i=t)||$i(r,i)||qi(r,i))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=n),i=Xi(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(i,n))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(n){if("string"!=typeof n)return n;{let e=n,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 n=this.__observePaths;for(let e=0;e<n.length;e++)0===t.indexOf(n[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=A.debounce(this.__renderDebouncer,0<t?E.after(t):po,e.bind(this)),is(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),js()}__render(){var e,t,n;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length),this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),_i&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,n)=>this.__filterFn(r[e],t,n))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let n=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),e=Math.max(n-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),n=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__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(r,e,i){const o=this.__itemsIdxToInstIdx={};let s;for(s=0;s<e;s++){let e=this.__instances[s],t=i[s],n=r[t];o[t]=s,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,s),e._setPendingProperty(this.itemsIndexAs,t),e._flushProperties()):this.__insertInstance(n,s,t)}for(let e=this.__instances.length-1;e>=s;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e];const n=w(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];n.appendChild(r)}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,n){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=n,new this.__ctor(r)}__insertInstance(e,t,n){e=this.__stampInstance(e,t,n),n=this.__instances[t+1],n=n?n.children[0]:this;return w(w(this).parentNode).insertBefore(e.root,n),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(n,r){let i=n.slice(6),o=i.indexOf("."),s=o<0?i:i.substring(0,o);if(s==parseInt(s,10)){var n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let e=this.__itemsIdxToInstIdx[s],t=this.__instances[e];return t&&(n=this.as+(n?"."+n:""),t._setPendingPropertyOrPath(n,r,!1,!0),t._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,n=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==n)return t;r=t.__dataHost}else r=w(r).parentNode;return null}}customElements.define(th.is,th);class nh extends T{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=A.debounce(this.__renderDebouncer,po,()=>this.__render()),is(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=w(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||w(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),eh()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:w(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!w(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var n=w(this).parentNode;if(this.__hasInstance()){var r=this.__getInstanceNodes();if(r&&r.length&&w(this).previousSibling!==r[r.length-1])for(let e,t=0;t<r.length&&(e=r[t]);t++)w(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){js()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),_i&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}an=fi?class extends nh{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(ai&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let r=this.__syncInfo;if(this.if)r&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(r.changedProps,t)),e(t,n);else if(this.__instance)if(r=r||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const e in t){const t=S(e);r.changedProps[t]=this.__dataHost[t]}else Object.assign(r.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),w(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&Vl(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends nh{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Kl(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[S(e)]=!0))}})),this.__instance=new this.__ctor,w(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var r=this.__instance.children;if(r&&r.length){let n=w(r[0]).parentNode;if(n){n=w(n);for(let e,t=0;t<r.length&&(e=r[t]);t++)n.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(an.is,an);let rh=b(e=>{return class extends ns(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let n=t.path;if(n==JSCompiler_renameProperty("items",this)){var r=t.base||[],i=this.__lastItems;e!==this.__lastMulti&&this.clearSelection(),i&&(i=ll(r,i),this.__applySplices(i)),this.__lastItems=r,this.__lastMulti=e}else if(t.path==JSCompiler_renameProperty("items",this)+".splices")this.__applySplices(t.value.indexSplices);else{let e=n.slice((JSCompiler_renameProperty("items",this)+".").length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(t){let r=this.__selectedMap;for(let e=0;e<t.length;e++){let n=t[e];r.forEach((e,t)=>{e<n.index||(e>=n.index+n.removed.length?r.set(t,e+n.addedCount-n.removed.length):r.set(t,-1))});for(let e=0;e<n.addedCount;e++){var i=n.index+e;r.has(this.items[i])&&r.set(this.items[i],i)}}this.__updateLinks();let n=0;r.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,r.delete(t)):n++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let r=this.__selectedIndexForItemIndex(e);if(0<=r){let n=0;this.__selectedMap.forEach((e,t)=>{r==n++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(t)return parseInt(t.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var n=this.__selectedMap.get(t);if(0<=n){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}}),ih=rh(T);class oh extends ih{static get is(){return"array-selector"}static get template(){return null}}customElements.define(oh.is,oh),kl(HTMLElement).prototype,Bl({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const sh=Element.prototype,ah=sh.matches||sh.matchesSelector||sh.mozMatchesSelector||sh.msMatchesSelector||sh.oMatchesSelector||sh.webkitMatchesSelector;let lh=0;const hh={};class ch extends Ys(Js(T)){static get template(){return m`
|
|
1276
|
+
</dom-module>`;document.head.appendChild(i.content);class ma{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function fa(e){return function r(n,i){let o=i.substring(n.start,n.end-1);if(n.parsedCssText=n.cssText=o.trim(),n.parent){let e=n.previous?n.previous.end:n.parent.start,t=(o=(o=(o=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(o=i.substring(e,n.start-1))).replace(va.multipleSpaces," ")).substring(o.lastIndexOf(";")+1),n.parsedSelector=n.selector=o.trim());n.atRule=0===t.indexOf(xa),n.atRule?0===t.indexOf(wa)?n.type=_a.MEDIA_RULE:t.match(va.keyframesRule)&&(n.type=_a.KEYFRAMES_RULE,n.keyframesName=n.selector.split(va.multipleSpaces).pop()):0===t.indexOf(ba)?n.type=_a.MIXIN_RULE:n.type=_a.STYLE_RULE}let s=n.rules;if(s)for(let e,t=0,n=s.length;t<n&&(e=s[t]);t++)r(e,i);return n}(function(t){let r=new ma,i=(r.start=0,r.end=t.length,r);for(let n=0,e=t.length;n<e;n++)if(t[n]===ya){i.rules||(i.rules=[]);let e=i,t=e.rules[e.rules.length-1]||null;(i=new ma).start=n+1,i.parent=e,i.previous=t,e.rules.push(i)}else t[n]===ga&&(i.end=n+1,i=i.parent||r);return r}(e=e.replace(va.comments,"").replace(va.port,"")),e)}const _a={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},ya="{",ga="}",va={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},ba="--",wa="@media",xa="@",Sa=new Set;function Ea(e,t){return e?("string"==typeof e&&(e=fa(e)),t&&Ta(e,t),function r(e,i,t=""){let o="";if(e.cssText||e.rules){var s=e.rules;if(s&&!function(){let e=s[0];return Boolean(e)&&Boolean(e.selector)&&0===e.selector.indexOf(ba)}())for(let e,t=0,n=s.length;t<n&&(e=s[t]);t++)o=r(e,i,o);else o=(o=(o=i?e.cssText:e.cssText.replace(va.customProp,"").replace(va.mixinProp,"").replace(va.mixinApply,"").replace(va.varApply,"")).trim())&&" "+o+"\n"}return o&&(e.selector&&(t+=e.selector+" "+ya+"\n"),t+=o,e.selector&&(t+=ga+"\n\n")),t}(e,qr)):""}function Ca(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=fa(e.textContent)),e.__cssRules||null}function Ta(n,r,i,o){if(n){let e=!1,t=n.type;o&&t===_a.MEDIA_RULE&&(s=n.selector.match(Yr))&&!window.matchMedia(s[1]).matches&&(e=!0),t===_a.STYLE_RULE?r(n):i&&t===_a.KEYFRAMES_RULE?i(n):t===_a.MIXIN_RULE&&(e=!0);var s,a=n.rules;if(a&&!e)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)Ta(e,r,i,o)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Aa="css-build";function Pa(e){return""!==function(e){if(void 0!==Vr)return Vr;if(void 0===e.__cssBuild){var t=e.getAttribute(Aa);if(t)e.__cssBuild=t;else{t=function(e){const t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Aa)return e[1]}return""}(e);if(""!==t){const n=("template"===e.localName?e.content:e).firstChild;n.parentNode.removeChild(n)}e.__cssBuild=t}}return e.__cssBuild||""}(e)}const Da=/;\s*/m,ka=/^\s*(initial)|(inherit)\s*$/,Oa=/\s*!important/;class Ma{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let Ia=null;class Na{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Ma}detectMixin(e){return e=zr.test(e)||Fr.test(e),zr.lastIndex=0,Fr.lastIndex=0,e}gatherStyles(e){var t=function(){const t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){const o=n[e];if(o.hasAttribute("shady-unscoped")){if(!Wr){{r=void 0;i=void 0;var r=o;var i=r.textContent;if(!Sa.has(i)){Sa.add(i);const r=document.createElement("style");r.setAttribute("shady-unscoped",""),r.textContent=i,document.head.appendChild(r)}}o.parentNode.removeChild(o)}}else t.push(o.textContent),o.parentNode.removeChild(o)}return t.join("").trim()}();if(t){const n=document.createElement("style");return n.textContent=t,e.content.insertBefore(n,e.content.firstChild),n}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var n=Ca(e);return this.transformRules(n,t),e.textContent=Ea(n),n}transformCustomStyle(e){var t=Ca(e);return Ta(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=Ea(t),t}transformRules(e,t){this._currentElement=t,Ta(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,i){return e=e.replace(Fr,(e,t,n,r)=>this._produceCssProperties(e,t,n,r,i)),this._consumeCssProperties(e,i)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const n={};let r=!1;return Ta(e,e=>{(r=r||e===t)||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(l,h){for(;u=zr.exec(l);){let e=u[0],t=u[1],n=u.index,r=n+e.indexOf("@apply"),i=n+e.length,o=l.slice(0,r),s=l.slice(i),a=h?this._fallbacksFromPreviousRules(h):{};Object.assign(a,this._cssTextToMap(o));var u=this._atApplyToCssProperties(t,a);l=""+o+u+s,zr.lastIndex=n+u.length}return l}_atApplyToCssProperties(r,i){r=r.replace(Da,"");let o=[],s=this._map.get(r);if(s||(this._map.set(r,{}),s=this._map.get(r)),s){let e,t,n;this._currentElement&&(s.dependants[this._currentElement]=!0);var a=s.properties;for(e in a)n=i&&i[e],t=[e,": var(",r,"_-_",e],n&&t.push(",",n.replace(Oa,"")),t.push(")"),Oa.test(a[e])&&t.push(" !important"),o.push(t.join(""))}return o.join("; ")}_replaceInitialOrInherit(e,t){var n=ka.exec(t);return t=n?n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,r=!1){let i,o,s=e.split(";"),a={};for(let e,t,n=0;n<s.length;n++)(e=s[n])&&(1<(t=e.split(":")).length&&(i=t[0].trim(),o=t.slice(1).join(":"),r&&(o=this._replaceInitialOrInherit(i,o)),a[i]=o));return a}_invalidateMixinEntry(e){if(Ia)for(var t in e.dependants)t!==this._currentElement&&Ia(t)}_produceCssProperties(e,t,n,r,i){if(n&&function e(t,n){var i=t.indexOf("var(");if(-1===i)return n(t,"","","");let r=function(n){let r=0;for(let e=i+3,t=n.length;e<t;e++)if("("===n[e])r++;else if(")"===n[e]&&0==--r)return e;return-1}(t),o=t.substring(i+4,r),s=t.substring(0,i),a=e(t.substring(r+1),n),l=o.indexOf(",");return-1===l?n(s,o.trim(),"",a):n(s,o.substring(0,l).trim(),o.substring(l+1).trim(),a)}(n,(e,t)=>{t&&this._map.get(t)&&(r=`@apply ${t};`)}),!r)return e;let o=this._consumeCssProperties(""+r,i),s=e.slice(0,e.indexOf("--")),a=this._cssTextToMap(o,!0),l=a,h=this._map.get(t),u=h&&h.properties;u?l=Object.assign(Object.create(u),a):this._map.set(t,l);let c,d,p=[],m=!1;for(c in l)d=a[c],void 0===d&&(d="initial"),!u||c in u||(m=!0),p.push(`${t}_-_${c}: `+d);return m&&this._invalidateMixinEntry(h),h&&(h.properties=l),""+(s=n?e+";"+s:s)+p.join("; ")+";"}}Na.prototype._separator="_-_",Object.defineProperty(Na.prototype,"invalidCallback",{get:()=>Ia,set(e){Ia=e}});const La={},Ra="_applyShimCurrentVersion",Ha="_applyShimNextVersion",Ba="_applyShimValidatingVersion",Fa=Promise.resolve();function za(e){var e=La[e];e&&((e=e)[Ra]=e[Ra]||0,e[Ba]=e[Ba]||0,e[Ha]=(e[Ha]||0)+1)}function Ya(e){return e[Ra]===e[Ha]}const Ua=new Na;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const ie=new class{constructor(){this.customStyleInterface=null,Ua.invalidCallback=za}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Ua.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),Pa(e)||(La[t]=e,t=Ua.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var n=t[e],n=this.customStyleInterface.getStyleForCustomStyle(n);n&&Ua.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Ur(e,t),e.shadowRoot){this.styleElement(e);var n=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}else{var r=e.children||e.childNodes;for(let e=0;e<r.length;e++)this.styleSubtree(r[e])}}styleElement(e){this.ensure();var n,r,i=function(e){let t=e.localName,n="",r="";return t?n=-1<t.indexOf("-")?t:(r=t,e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}(e)["is"],o=La[i];if((!o||!Pa(o))&&o&&!Ya(o)){!Ya(r=o)&&r[Ba]===r[Ha]||(this.prepareTemplate(o,i),(n=o)[Ba]=n[Ha],n._validating||(n._validating=!0,Fa.then(function(){n[Ra]=n[Ha],n._validating=!1})));let t=e.shadowRoot;if(t){let e=t.querySelector("style");e&&(e.__cssRules=o._styleAst,e.textContent=Ea(o._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};on=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,n){ie.flushCustomStyles(),ie.prepareTemplate(e,t)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(e,t){ie.flushCustomStyles(),ie.styleSubtree(e,t)},styleElement(e){ie.flushCustomStyles(),ie.styleElement(e)},styleDocument(e){ie.flushCustomStyles(),ie.styleDocument(e)},getComputedStyleValue:(e,t)=>jr(e,t),flushCustomStyles(){ie.flushCustomStyles()},nativeCss:qr,nativeShadow:Wr,cssBuild:Vr,disableRuntime:rn},on&&(window.ShadyCSS.CustomStyleInterface=on)}window.ShadyCSS.ApplyShim=Ua;const ja=/:host\(:dir\((ltr|rtl)\)\)/g,Wa=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Ga=/:dir\((?:ltr|rtl)\)/,Va=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),$a=[];let qa=null,Xa="";function Za(){Xa=document.documentElement.getAttribute("dir")}function Ja(e){e.__autoDirOptOut||e.setAttribute("dir",Xa)}function Ka(){Za(),Xa=document.documentElement.getAttribute("dir");for(let e=0;e<$a.length;e++)Ja($a[e])}const Qa=b(e=>{Va||qa||(Za(),(qa=new MutationObserver(Ka)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=bo(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!Va&&Ga.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(ja,':host([dir="$1"])')).replace(Wa,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(qa&&qa.takeRecords().length&&Ka(),$a.push(this),Ja(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=$a.indexOf(this))&&$a.splice(e,1)}}return t.__activateDir=!1,t});let el=!1,tl=[],nl=[];function rl(){el=!0,requestAnimationFrame(function(){el=!1;for(var e=tl;e.length;)il(e.shift());setTimeout(function(){var n=nl;for(let e=0,t=n.length;e<t;e++)il(n.shift())})})}function il(e){const t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function ol(e,t,n){el||rl(),nl.push([e,t,n])}function sl(){document.body.removeAttribute("unresolved")}function al(e,t,n){return{index:e,removed:t,addedCount:n}}function ll(a,l){{var h=a,u=0,c=a.length,d=l,p=0,m=l.length;let t,e=0,n=0,r=Math.min(c-u,m-p);if(0==u&&0==p&&(e=function(t,n,r){for(let e=0;e<r;e++)if(t[e]!==n[e])return e;return r}(h,d,r)),c==h.length&&m==d.length&&(n=function(e,t,n){let r=e.length,i=t.length,o=0;for(;o<n&&e[--r]===t[--i];)o++;return o}(h,d,r-e)),p+=e,m-=n,(c-=n)-(u+=e)==0&&m-p==0)return[];if(u==c){for(t=al(u,[],0);p<m;)t.removed.push(d[p++]);return[t]}if(p==m)return[al(u,[],c-u)];var f=function(e){let t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];for(;0<t||0<n;){var o,s,a,l;0==t?(i.push(2),n--):0==n?(i.push(3),t--):(o=e[t-1][n-1],(l=(s=e[t-1][n])<(a=e[t][n-1])?s<o?s:o:a<o?a:o)==o?(o==r?i.push(0):(i.push(1),r=o),t--,n--):r=l==s?(i.push(3),t--,s):(i.push(2),n--,a))}return i.reverse(),i}(function(n,r,i,o){let s=m-o+1,a=c-r+1,l=new Array(s);for(let e=0;e<s;e++)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;e++)l[0][e]=e;for(let t=1;t<s;t++)for(let e=1;e<a;e++){var h,u;n[r+e-1]===i[o+t-1]?l[t][e]=l[t-1][e-1]:(h=l[t-1][e]+1,u=l[t][e-1]+1,l[t][e]=h<u?h:u)}return l}(h,u,d,p));t=void 0;let i=[],o=u,s=p;for(let e=0;e<f.length;e++)switch(f[e]){case 0:t&&(i.push(t),t=void 0),o++,s++;break;case 1:(t=t||al(o,[],0)).addedCount++,o++,t.removed.push(d[s]),s++;break;case 2:(t=t||al(o,[],0)).addedCount++,o++;break;case 3:(t=t||al(o,[],0)).removed.push(d[s]),s++}return t&&i.push(t),i}}function hl(e){return"slot"===e.localName}"interactive"===document.readyState||"complete"===document.readyState?sl():window.addEventListener("DOMContentLoaded",sl);let ul=class{static getFlattenedNodes(e){const t=w(e);return hl(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>hl(e)?w(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){hl(this._target)?this._listenSlots([this._target]):w(this._target).children&&(this._listenSlots(w(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){hl(this._target)?this._unlistenSlots([this._target]):w(this._target).children&&(this._unlistenSlots(w(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,po.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var n=t[e];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=ll(n,this._effectiveNodes);for(let n,e=0;e<i.length&&(n=i[e]);e++)for(let e,t=0;t<n.removed.length&&(e=n.removed[t]);t++)r.removedNodes.push(e);for(let t,e=0;e<i.length&&(t=i[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)r.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(r.addedNodes.length||r.removedNodes.length)&&(e=!0,this.callback.call(this._target,r)),e}_listenSlots(n){for(let t=0;t<n.length;t++){let e=n[t];hl(e)&&e.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(n){for(let t=0;t<n.length;t++){let e=n[t];hl(e)&&e.removeEventListener("slotchange",this._boundSchedule)}}};function cl(e,t){return pl.call(e,t)}const dl=Element.prototype,pl=dl.matches||dl.matchesSelector||dl.mozMatchesSelector||dl.msMatchesSelector||dl.oMatchesSelector||dl.webkitMatchesSelector;class D{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new ul(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(w(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=w(t).parentNode||w(t).host;return t===this.node}getOwnerRoot(){return w(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?w(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=w(this.node).assignedSlot;for(;t;)e.push(t),t=w(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return w(n).importNode(e,t)}getEffectiveChildNodes(){return ul.getFlattenedNodes(this.node)}queryDistributedElements(r){let i=this.getEffectiveChildNodes(),o=[];for(let e,t=0,n=i.length;t<n&&(e=i[t]);t++)e.nodeType===Node.ELEMENT_NODE&&cl(e,r)&&o.push(e);return o}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function ml(n,r){for(let t=0;t<r.length;t++){let e=r[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class fl{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D;let _l=D;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class ie extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(D.prototype).forEach(e=>{"activeElement"!=e&&(ie.prototype[e]=D.prototype[e])}),ml(ie.prototype,["classList"]),_l=ie,Object.defineProperties(fl.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&wl(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var r=n[e];if(wl(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var yl=D.prototype;var gl=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<gl.length;t++){let e=gl[t];yl[e]=function(){return this.node[e].apply(this.node,arguments)}}}ml(D.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var vl=D.prototype;var bl=["textContent","innerHTML","className"];for(let e=0;e<bl.length;e++){let t=bl[e];Object.defineProperty(vl,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const wl=function(e){if((e=e||document)instanceof _l)return e;if(e instanceof fl)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?fl:_l)(e),e.__domApi=t),t},xl=window.ShadyDOM,Sl=window.ShadyCSS;function El(e,t){return w(e).getRootNode()===t}const Cl="disable-upgrade",Tl=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Al=b(e=>{e=ns(e);let t=Tl(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Cl)}_initializeProperties(){this.hasAttribute(Cl)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,n,r){e==Cl?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,w(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,n,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),Pl="disable-upgrade";let Dl=window.ShadyCSS;const kl=b(e=>{const t=Fs(ns(e)),n=ts?t:Qa(t),r=Tl(n),i={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class o extends n{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,n){(this.__dataAttributes&&this.__dataAttributes[e]||e===Pl)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;yi&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;yi&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return yi&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):r.call(this).concat(Pl)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,n,r){t!==n&&(e==Pl?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,w(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,n,r),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){if(hi&&this.hasAttribute(Pl))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),yi&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){var n=this.attributes;for(let e=0,t=n.length;e<t;e++){var r=n[e];this.__attributeReaction(r.name,null,r.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,n){this._propertyToAttribute(e,t,n)}serializeValueToAttribute(e,t,n){this._valueToNodeAttribute(n||this,e,t)}extend(n,r){if(!n||!r)return n||r;var i=Object.getOwnPropertyNames(r);for(let e,t=0;t<i.length&&(e=i[t]);t++){var o=Object.getOwnPropertyDescriptor(r,e);o&&Object.defineProperty(n,e,o)}return n}mixin(e,t){for(var n in t)e[n]=t[n];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,n){n=n||{},t=null==t?{}:t;let r=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});r.detail=t;e=n.node||this;return w(e).dispatchEvent(r),r}listen(e,t,n){e=e||this;let r=this.__boundListeners||(this.__boundListeners=new WeakMap),i=r.get(e);i||(i={},r.set(e,i));var o=t+n;i[o]||(i[o]=this._addMethodEventListenerToNode(e,t,n,this))}unlisten(e,t,n){e=e||this;let r=this.__boundListeners&&this.__boundListeners.get(e),i=t+n,o=r&&r[i];o&&(this._removeEventListenerFromNode(e,t,o),r[i]=null)}setScrollDirection(e,t){Ms(t||this,i[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=w(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=wl(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return wl(this).getEffectiveChildNodes()}queryDistributedElements(e){return wl(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){let n=this.getEffectiveChildNodes(),r=[];for(let e,t=0;e=n[t];t++)e.nodeType!==Node.COMMENT_NODE&&r.push(e.textContent);return r.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?wl(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&w(this).contains(e)&&w(this).getRootNode()===w(e).getRootNode()}isLocalDescendant(e){return this.root===w(e).getRootNode()}scopeSubtree(e,t=!1){{var[e,n=!1]=[e,t];if(!xl||!Sl)return null;if(!xl.handlesDynamicScoping)return null;const i=Sl.ScopingShim;if(!i)return null;const o=i.scopeForNode(e),s=w(e).getRootNode(),a=e=>{if(El(e,s)){const r=Array.from(xl.nativeMethods.querySelectorAll.call(e,"*"));r.push(e);for(let e=0;e<r.length;e++){var t,n=r[e];El(n,s)&&((t=i.currentScopeForNode(n))!==o&&(""!==t&&i.unscopeNode(n,t),i.scopeNode(n,o)))}}};if(a(e),n){const n=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var n=t[e];for(let e=0;e<n.addedNodes.length;e++){var r=n.addedNodes[e];r.nodeType===Node.ELEMENT_NODE&&a(r)}}});return n.observe(e,{childList:!0,subtree:!0}),n}return null}}getComputedStyleValue(e){return Dl.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=A.debounce(this._debouncers[e],0<n?E.after(n):po,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return 0<t?E.run(e.bind(this),t):~po.run(e.bind(this))}cancelAsync(e){e<0?po.cancel(~e):E.cancel(e)}create(e,t){let n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var r in t)n[r]=t[r];return n}elementMatches(e,t){return cl(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(w(n).setAttribute(e,""),!0):(w(n).removeAttribute(e),!1)}toggleClass(e,t,n){n=n||this,(t=1==arguments.length?!n.classList.contains(e):t)?n.classList.add(e):n.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,n,r){this.transform("translate3d("+e+","+t+","+n+")",r=r||this)}arrayDelete(e,t){let n;if(Array.isArray(e)){if(0<=(n=e.indexOf(t)))return e.splice(n,1)}else if(0<=(n=x(this,e).indexOf(t)))return this.splice(e,n,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return o.prototype.is="",o}),Ol={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Ml={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Il=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Ml);function Nl(e,t,n,r){var i,o=t,s=e,a=r,l=o._noAccessors,h=Object.getOwnPropertyNames(o);for(let e=0;e<h.length;e++){var u=h[e];if(!(u in a))if(l)s[u]=o[u];else{let e=Object.getOwnPropertyDescriptor(o,u);e&&(e.configurable=!0,Object.defineProperty(s,u,e))}}for(i in Ol)t[i]&&(n[i]=n[i]||[],n[i].push(t[i]))}function Ll(e,t){for(const i in t){var n=e[i],r=t[i];e[i]=!("value"in r)&&n&&"value"in n?Object.assign({value:n.value},r):r}}const Rl=kl(HTMLElement);function Hl(i,t,n){let o;const s={};class r extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);i.properties&&this.createProperties(i.properties),i.observers&&this.createObservers(i.observers,i.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){var t={};if(o)for(let e=0;e<o.length;e++)Ll(t,o[e].properties);return Ll(t,i.properties),t}static get observers(){let n=[];if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).observers&&(n=n.concat(e.observers));return n=i.observers?n.concat(i.observers):n}created(){super.created();const t=s.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){const e=r.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),hi&&a(e);var n=Object.getPrototypeOf(this);let t=s.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=s.registered)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=s.listeners;if(t)for(let e=0;e<t.length;e++){var n=t[e];if(n)for(var r in n)this._addMethodEventListenerToNode(this,r,n[r])}}_ensureAttributes(){var t=s.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var n,r=t[e];for(n in r)this._ensureAttribute(n,r[n])}super._ensureAttributes()}ready(){super.ready();let t=s.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();let t=s.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();let t=s.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,r){super.attributeChanged();let i=s.attributeChanged;if(i)for(let e=0;e<i.length;e++)i[e].call(this,t,n,r)}}if(n){Array.isArray(n)||(n=[n]);let e=t.prototype.behaviors;o=function t(n,r,i){r=r||[];for(let e=n.length-1;0<=e;e--){var o=n[e];o?Array.isArray(o)?t(o,r):r.indexOf(o)<0&&(!i||i.indexOf(o)<0)&&r.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return r}(n,null,e),r.prototype.behaviors=e?e.concat(n):o}const a=e=>{if(o){var t=e,n=o,r=s;for(let e=0;e<n.length;e++)Nl(t,n[e],r,Il)}Nl(e,i,s,Ml)};return hi||a(r.prototype),r.generatedFrom=i,r}function Bl(e){let t;return t="function"==typeof e?e:Bl.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function Fl(e,t,n,r,i){let o;!i||(o="object"==typeof n&&null!==n)&&(r=e.__dataTemp[t]);i=r!==n&&(r==r||n==n);return o&&i&&(e.__dataTemp[t]=n),i}Bl.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let n=t?t(Rl):Rl;return(n=Hl(e,n,e.behaviors)).is=n.prototype.is=e.is,n};const zl=b(e=>class extends e{_shouldPropertyChange(e,t,n){return Fl(this,e,t,n,!0)}}),Yl=b(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Fl(this,e,t,n,this.mutableData)}});zl._mutablePropertyChange=Fl;let Ul=null;function jl(){return Ul}jl.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:jl,writable:!0}});const Wl=Ko(jl),Gl=zl(Wl);function Vl(n,r){for(let t=0;t<r.length;t++){let e=r[t];if(Boolean(n)!=Boolean(e.__hideTemplateChildren__))if(e.nodeType===Node.TEXT_NODE)n?(e.__polymerTextContent__=e.textContent,e.textContent=""):e.textContent=e.__polymerTextContent__;else if("slot"===e.localName)if(n)e.__polymerReplaced__=document.createComment("hidden-slot"),w(w(e).parentNode).replaceChild(e.__polymerReplaced__,e);else{const n=e.__polymerReplaced__;n&&w(w(n).parentNode).replaceChild(e,n)}else e.style&&(n?(e.__polymerDisplay__=e.style.display,e.style.display="none"):e.style.display=e.__polymerDisplay__);e.__hideTemplateChildren__=n,e._showHideChildren&&e._showHideChildren(n)}}class $l extends Ko(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let 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 n=this.__templatizeOptions;(e&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,n,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,n,e=>{e.model=this,r(e)});else{let e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(t,n,r)}}_showHideChildren(e){Vl(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}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}}$l.prototype.__dataHost,$l.prototype.__templatizeOptions,$l.prototype._methodHost,$l.prototype.__templatizeOwner,$l.prototype.__hostProps;const ql=zl($l);function Xl(e){e=e.__dataHost;return e&&e._methodHost||e}function Zl(t,n,r){let e=r.mutableData?ql:$l;var i=class extends(e=Kl.mixin?Kl.mixin(e):e){};i.prototype.__templatizeOptions=r,i.prototype._bindTemplate(t);{var o=i,s=n,a=r,l;let e=s.hostProps||{};for(l in a.instanceProps){delete e[l];var h=a.notifyInstanceProp;h&&o.prototype._addPropertyEffect(l,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,e,t,n[t])}}((l,h))})}if(a.forwardHostProp&&t.__dataHost)for(var u in e)s.hasHostProps||(s.hasHostProps=!0),o.prototype._addPropertyEffect(u,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}})}return i}function Jl(t,n,r,i){var o=r.forwardHostProp;if(o&&n.hasHostProps){var s,a="template"==t.localName;let e=n.templatizeTemplateClass;if(!e){if(a){class i extends(r.mutableData?Gl:Wl){}e=n.templatizeTemplateClass=i}else{const r=t.constructor;class i extends r{}e=n.templatizeTemplateClass=i}for(s in n.hostProps)e.prototype._addPropertyEffect("_host_"+s,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,n){r.call(e.__templatizeOwner,t.substring("_host_".length),n[t])}}((s,o))}),e.prototype._createNotifyingProperty("_host_"+s);if(ui&&i){var l=r;const c=i.constructor._properties,d=n["propertyEffects"],p=l["instanceProps"];for(var h in d)if(!(c[h]||p&&p[h])){const l=d[h];for(let e=0;e<l.length;e++){const c=l[e].info["part"];if(!c.signature||!c.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)r=e,Ul=t,Object.setPrototypeOf(t,r.prototype),new r,Ul=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=n.hostProps;for(var u in r)if(u="_host_"+u,u in t){const r=t[u];delete t[u],t.__data[u]=r}}}}function Kl(e,t,n){if(ai&&!Xl(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:$l)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=Zl(e,r,n),r.templatizeInstanceClass=i);var o=Xl(e),n=(Jl(e,r,n,o),class extends i{});return n.prototype._methodHost=o,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=r.hostProps,n}let Ql=!1;function eh(){if(hi&&!ni){if(!Ql){Ql=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return 1}}fs=Fs(Yl(Ko(HTMLElement))),customElements.define("dom-bind",class extends fs{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),ai)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,r){this.mutableData=!0}connectedCallback(){eh()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){w(w(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),sn=Yl(T);class th extends sn{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:!_i,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(),eh()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=w(w(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){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}let e={};e[this.as]=!0,e[this.indexAs]=!0,e[this.itemsIndexAs]=!0,this.__ctor=Kl(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:e,forwardHostProp:function(n,r){var i=this.__instances;for(let e,t=0;t<i.length&&(e=i[t]);t++)e.forwardHostProp(n,r)},notifyInstanceProp:function(e,t,n){var r,i;((r=this.as)===(i=t)||$i(r,i)||qi(r,i))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=n),i=Xi(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(i,n))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(n){if("string"!=typeof n)return n;{let e=n,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 n=this.__observePaths;for(let e=0;e<n.length;e++)0===t.indexOf(n[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=A.debounce(this.__renderDebouncer,0<t?E.after(t):po,e.bind(this)),is(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),js()}__render(){var e,t,n;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length),this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),_i&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,n)=>this.__filterFn(r[e],t,n))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let n=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),e=Math.max(n-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),n=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__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(r,e,i){const o=this.__itemsIdxToInstIdx={};let s;for(s=0;s<e;s++){let e=this.__instances[s],t=i[s],n=r[t];o[t]=s,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,s),e._setPendingProperty(this.itemsIndexAs,t),e._flushProperties()):this.__insertInstance(n,s,t)}for(let e=this.__instances.length-1;e>=s;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e];const n=w(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];n.appendChild(r)}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,n){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=n,new this.__ctor(r)}__insertInstance(e,t,n){e=this.__stampInstance(e,t,n),n=this.__instances[t+1],n=n?n.children[0]:this;return w(w(this).parentNode).insertBefore(e.root,n),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(n,r){let i=n.slice(6),o=i.indexOf("."),s=o<0?i:i.substring(0,o);if(s==parseInt(s,10)){var n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let e=this.__itemsIdxToInstIdx[s],t=this.__instances[e];return t&&(n=this.as+(n?"."+n:""),t._setPendingPropertyOrPath(n,r,!1,!0),t._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,n=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==n)return t;r=t.__dataHost}else r=w(r).parentNode;return null}}customElements.define(th.is,th);class nh extends T{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=A.debounce(this.__renderDebouncer,po,()=>this.__render()),is(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=w(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||w(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),eh()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:w(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!w(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var n=w(this).parentNode;if(this.__hasInstance()){var r=this.__getInstanceNodes();if(r&&r.length&&w(this).previousSibling!==r[r.length-1])for(let e,t=0;t<r.length&&(e=r[t]);t++)w(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){js()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),_i&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}an=fi?class extends nh{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(ai&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let r=this.__syncInfo;if(this.if)r&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(r.changedProps,t)),e(t,n);else if(this.__instance)if(r=r||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const e in t){const t=S(e);r.changedProps[t]=this.__dataHost[t]}else Object.assign(r.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),w(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&Vl(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends nh{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Kl(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[S(e)]=!0))}})),this.__instance=new this.__ctor,w(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var r=this.__instance.children;if(r&&r.length){let n=w(r[0]).parentNode;if(n){n=w(n);for(let e,t=0;t<r.length&&(e=r[t]);t++)n.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(an.is,an);let rh=b(e=>{return class extends ns(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let n=t.path;if(n==JSCompiler_renameProperty("items",this)){var r=t.base||[],i=this.__lastItems;e!==this.__lastMulti&&this.clearSelection(),i&&(i=ll(r,i),this.__applySplices(i)),this.__lastItems=r,this.__lastMulti=e}else if(t.path==JSCompiler_renameProperty("items",this)+".splices")this.__applySplices(t.value.indexSplices);else{let e=n.slice((JSCompiler_renameProperty("items",this)+".").length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(t){let r=this.__selectedMap;for(let e=0;e<t.length;e++){let n=t[e];r.forEach((e,t)=>{e<n.index||(e>=n.index+n.removed.length?r.set(t,e+n.addedCount-n.removed.length):r.set(t,-1))});for(let e=0;e<n.addedCount;e++){var i=n.index+e;r.has(this.items[i])&&r.set(this.items[i],i)}}this.__updateLinks();let n=0;r.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,r.delete(t)):n++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let r=this.__selectedIndexForItemIndex(e);if(0<=r){let n=0;this.__selectedMap.forEach((e,t)=>{r==n++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(t)return parseInt(t.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var n=this.__selectedMap.get(t);if(0<=n){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}}),ih=rh(T);class oh extends ih{static get is(){return"array-selector"}static get template(){return null}}customElements.define(oh.is,oh),kl(HTMLElement).prototype,Bl({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const sh=Element.prototype,ah=sh.matches||sh.matchesSelector||sh.mozMatchesSelector||sh.msMatchesSelector||sh.oMatchesSelector||sh.webkitMatchesSelector;let lh=0;const hh={};class uh extends Ys(Js(T)){static get template(){return m`
|
|
1277
1277
|
<style>
|
|
1278
1278
|
:host {
|
|
1279
1279
|
z-index: 200;
|
|
@@ -1349,7 +1349,7 @@
|
|
|
1349
1349
|
<slot></slot>
|
|
1350
1350
|
</div>
|
|
1351
1351
|
</div>
|
|
1352
|
-
`}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},instanceProps:{type:Object},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldInstanceProps:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, renderer, owner, model, instanceProps, 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),this._observer=new cl(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}_detectIosNavbar(){var e,t,n;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,n=document.documentElement.clientHeight,t&&e<n?this.style.setProperty("--vaadin-overlay-viewport-bottom",n-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_setTemplateFromNodes(e){this.template=e.filter(e=>e.localName&&"template"===e.localName)[0]||this.template}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}_ironOverlayCanceled(e){e.preventDefault()}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_outsideClickListener(e){if(-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);var t;this._last&&(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&&("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented?(this._cycleTab(e.shiftKey?-1:1),e.preventDefault()):"Escape"!==e.key&&"Esc"!==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)))}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(e,t){this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),ol(this,()=>{this.focusTrap&&!this.contains(document._activeElement||document.activeElement)&&this._cycleTab(0,0);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!=e}_enqueueAnimation(e,t){const n=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[n])};this[n]=r,this.addEventListener("animationend",r)}_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","");var e=()=>{document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",e):e()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_animatedClosing(){var e;this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||this.__restoreFocusNode.focus(),this.__restoreFocusNode=null),this.setAttribute("closing",""),e=()=>{document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),this.removeAttribute("closing")},this._shouldAnimate()?this._enqueueAnimation("closing",e):e())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}static get __attachedInstances(){return Array.from(document.body.children).filter(e=>e instanceof ch&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===ch.__attachedInstances.pop()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0),document.addEventListener("keydown",this._boundKeydownListener)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ch.__attachedInstances.forEach(e=>{e!==this&&(e.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")})}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0),document.removeEventListener("keydown",this._boundKeydownListener)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=ch.__attachedInstances;let t;for(;(t=e.pop())&&(t===this||(t.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),t.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach(e=>{e.parentNode===this.content&&this.content.removeChild(e)}),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(t,e){this._removeOldContent(),t._Templatizer||(t._Templatizer=Kl(t,this,{instanceProps:e,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const n=t._templateRoot||(t._templateRoot=t.getRootNode());if(n!==document){const t=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(n.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(t){const t=window.ShadyCSS.ScopingShim._styleInfoForNode(n.host);t&&(e=e+t._getStyleRules().parsedCssText+"}")}if(e=e.replace(/:host/g,":host-nomatch"))if(t){const t=(e=>{e=hh[e]||(e=>{const t="vaadin-overlay-content-"+ ++lh,n=document.createElement("template"),r=document.createElement("style");r.textContent=":host { display: block; }"+e,n.content.appendChild(r),window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,t);var i=class extends HTMLElement{static get is(){return t}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(n.content,!0)))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this)}};return customElements.define(i.is,i),hh[e]=t})(e);return document.createElement(e)})(e);t.id="content",t.setAttribute("part","content"),this.$.content.parentNode.replaceChild(t,this.$.content),t.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=t}else{const t=document.createElement("style");t.textContent=e,this.$.content.shadowRoot.appendChild(t),this._contentNodes.unshift(t)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(e,t,n,r){e!==t?this.template=void 0:n!==r&&(this.renderer=void 0)}render(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}_templateOrRendererChanged(e,t,n,r,i,o){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var s=this._oldOwner!==n||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=n,this._oldInstanceProps!==i||this._oldTemplate!==e),n=(this._oldInstanceProps=i,this._oldTemplate=e,this._oldRenderer!==t),a=(this._oldRenderer=t,this._oldOpened!==o);if(this._oldOpened=o,e&&r)this._stampOverlayTemplate(e,i);else if(t&&(n||a||s)){if(this.content=this,n)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);o&&this.render()}}_isFocused(e){return e&&e.getRootNode().activeElement===e}_focusedIndex(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}_cycleTab(e,t){const n=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(n)),(t+=e)>=n.length?t=0:t<0&&(t=n.length-1),n[t].focus()}_getFocusableElements(){return class{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return ah.call(e,"input, select, textarea, button, object")?ah.call(e,":not([disabled])"):ah.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&ah.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;const n=e,r=this._normalizedTabIndex(n);let i,o=0<r;if(0<=r&&t.push(n),i="slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children)for(let e=0;e<i.length;e++)o=this._collectTabbableNodes(i[e],t)||o;return o}static _isVisible(e){let t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&("hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display)}static _sortByTabIndex(e){var t=e.length;if(t<2)return e;var t=Math.ceil(t/2),n=this._sortByTabIndex(e.slice(0,t)),e=this._sortByTabIndex(e.slice(t));return this._mergeSortByTabIndex(n,e)}static _mergeSortByTabIndex(e,t){const n=[];for(;0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}.getTabbableNodes(this.$.overlay)}_getActiveElement(){let e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=0||(e=document.body);e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var n=e.ownerDocument;t&&t!==n&&t!==this;)t=t.parentNode||t.host;return t===this}bringToFront(){let e="";var t=ch.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(ch.is,ch);class uh extends Al(ch){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(uh.is,uh);var dh={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},ph={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},mh={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},fh=/[a-z0-9*]/,_h=/U\+/,yh=/^arrow/,gh=/^space(bar)?/,vh=/^escape$/;function bh(e,t){var n="";return e&&(" "===(e=e.toLowerCase())||gh.test(e)?n="space":vh.test(e)?n="esc":1==e.length?t&&!fh.test(e)||(n=e):n=yh.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),n}function wh(e,t){return n=t,r=e.hasModifiers,(n.key?bh(n.key,r):n.detail&&n.detail.key?bh(n.detail.key,r):(r="",(r=(i=n.keyIdentifier)?i in dh?dh[i]:_h.test(i)?(i=parseInt(i.replace("U+","0x"),16),String.fromCharCode(i).toLowerCase()):i.toLowerCase():r)||(i=n.keyCode,r="",r=Number(i)?65<=i&&i<=90?String.fromCharCode(32+i):112<=i&&i<=123?"f"+(i-112+1):48<=i&&i<=57?String(i-48):96<=i&&i<=105?String(i-96):ph[i]:r)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var n,r,i}Boolean;function xh(e,t){for(var n=t.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var t=t.split(":"),n=t[0],t=t[1];return n in mh?(e[mh[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=t||"keydown"),e},{combo:e.split(":").shift()})}),r=0;r<n.length;++r)if(wh(n[r],e))return 1}const Sh=Bl({_template:m`
|
|
1352
|
+
`}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},instanceProps:{type:Object},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldInstanceProps:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, renderer, owner, model, instanceProps, 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),this._observer=new ul(this,e=>{this._setTemplateFromNodes(e.addedNodes)}),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}_detectIosNavbar(){var e,t,n;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,n=document.documentElement.clientHeight,t&&e<n?this.style.setProperty("--vaadin-overlay-viewport-bottom",n-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_setTemplateFromNodes(e){this.template=e.filter(e=>e.localName&&"template"===e.localName)[0]||this.template}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}_ironOverlayCanceled(e){e.preventDefault()}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_outsideClickListener(e){if(-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);var t;this._last&&(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&&("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented?(this._cycleTab(e.shiftKey?-1:1),e.preventDefault()):"Escape"!==e.key&&"Esc"!==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)))}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(e,t){this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),ol(this,()=>{this.focusTrap&&!this.contains(document._activeElement||document.activeElement)&&this._cycleTab(0,0);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!=e}_enqueueAnimation(e,t){const n=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[n])};this[n]=r,this.addEventListener("animationend",r)}_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","");var e=()=>{document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",e):e()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_animatedClosing(){var e;this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode&&((e=this._getActiveElement())!==document.body&&!this._deepContains(e)||this.__restoreFocusNode.focus(),this.__restoreFocusNode=null),this.setAttribute("closing",""),e=()=>{document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),this.removeAttribute("closing")},this._shouldAnimate()?this._enqueueAnimation("closing",e):e())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}static get __attachedInstances(){return Array.from(document.body.children).filter(e=>e instanceof uh&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0)}get _last(){return this===uh.__attachedInstances.pop()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0),document.addEventListener("keydown",this._boundKeydownListener)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),uh.__attachedInstances.forEach(e=>{e!==this&&(e.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")})}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0),document.removeEventListener("keydown",this._boundKeydownListener)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=uh.__attachedInstances;let t;for(;(t=e.pop())&&(t===this||(t.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),t.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach(e=>{e.parentNode===this.content&&this.content.removeChild(e)}),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(t,e){this._removeOldContent(),t._Templatizer||(t._Templatizer=Kl(t,this,{instanceProps:e,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const n=t._templateRoot||(t._templateRoot=t.getRootNode());if(n!==document){const t=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let e=Array.from(n.querySelectorAll("style")).reduce((e,t)=>e+t.textContent,"");if(t){const t=window.ShadyCSS.ScopingShim._styleInfoForNode(n.host);t&&(e=e+t._getStyleRules().parsedCssText+"}")}if(e=e.replace(/:host/g,":host-nomatch"))if(t){const t=(e=>{e=hh[e]||(e=>{const t="vaadin-overlay-content-"+ ++lh,n=document.createElement("template"),r=document.createElement("style");r.textContent=":host { display: block; }"+e,n.content.appendChild(r),window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,t);var i=class extends HTMLElement{static get is(){return t}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(n.content,!0)))}connectedCallback(){window.ShadyCSS&&window.ShadyCSS.styleElement(this)}};return customElements.define(i.is,i),hh[e]=t})(e);return document.createElement(e)})(e);t.id="content",t.setAttribute("part","content"),this.$.content.parentNode.replaceChild(t,this.$.content),t.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=t}else{const t=document.createElement("style");t.textContent=e,this.$.content.shadowRoot.appendChild(t),this._contentNodes.unshift(t)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(e,t,n,r){e!==t?this.template=void 0:n!==r&&(this.renderer=void 0)}render(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}_templateOrRendererChanged(e,t,n,r,i,o){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var s=this._oldOwner!==n||this._oldModel!==r,r=(this._oldModel=r,this._oldOwner=n,this._oldInstanceProps!==i||this._oldTemplate!==e),n=(this._oldInstanceProps=i,this._oldTemplate=e,this._oldRenderer!==t),a=(this._oldRenderer=t,this._oldOpened!==o);if(this._oldOpened=o,e&&r)this._stampOverlayTemplate(e,i);else if(t&&(n||a||s)){if(this.content=this,n)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);o&&this.render()}}_isFocused(e){return e&&e.getRootNode().activeElement===e}_focusedIndex(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}_cycleTab(e,t){const n=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(n)),(t+=e)>=n.length?t=0:t<0&&(t=n.length-1),n[t].focus()}_getFocusableElements(){return class{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return ah.call(e,"input, select, textarea, button, object")?ah.call(e,":not([disabled])"):ah.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&ah.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;const n=e,r=this._normalizedTabIndex(n);let i,o=0<r;if(0<=r&&t.push(n),i="slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children)for(let e=0;e<i.length;e++)o=this._collectTabbableNodes(i[e],t)||o;return o}static _isVisible(e){let t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&("hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display)}static _sortByTabIndex(e){var t=e.length;if(t<2)return e;var t=Math.ceil(t/2),n=this._sortByTabIndex(e.slice(0,t)),e=this._sortByTabIndex(e.slice(t));return this._mergeSortByTabIndex(n,e)}static _mergeSortByTabIndex(e,t){const n=[];for(;0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}.getTabbableNodes(this.$.overlay)}_getActiveElement(){let e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=0||(e=document.body);e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var n=e.ownerDocument;t&&t!==n&&t!==this;)t=t.parentNode||t.host;return t===this}bringToFront(){let e="";var t=uh.__attachedInstances.filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(uh.is,uh);class ch extends Al(uh){static get is(){return"vaadin-date-picker-overlay"}}customElements.define(ch.is,ch);var dh={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},ph={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},mh={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},fh=/[a-z0-9*]/,_h=/U\+/,yh=/^arrow/,gh=/^space(bar)?/,vh=/^escape$/;function bh(e,t){var n="";return e&&(" "===(e=e.toLowerCase())||gh.test(e)?n="space":vh.test(e)?n="esc":1==e.length?t&&!fh.test(e)||(n=e):n=yh.test(e)?e.replace("arrow",""):"multiply"==e?"*":e),n}function wh(e,t){return n=t,r=e.hasModifiers,(n.key?bh(n.key,r):n.detail&&n.detail.key?bh(n.detail.key,r):(r="",(r=(i=n.keyIdentifier)?i in dh?dh[i]:_h.test(i)?(i=parseInt(i.replace("U+","0x"),16),String.fromCharCode(i).toLowerCase()):i.toLowerCase():r)||(i=n.keyCode,r="",r=Number(i)?65<=i&&i<=90?String.fromCharCode(32+i):112<=i&&i<=123?"f"+(i-112+1):48<=i&&i<=57?String(i-48):96<=i&&i<=105?String(i-96):ph[i]:r)||""))===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey);var n,r,i}Boolean;function xh(e,t){for(var n=t.trim().split(" ").map(function(e){return 1===(e=e).length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var t=t.split(":"),n=t[0],t=t[1];return n in mh?(e[mh[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=t||"keydown"),e},{combo:e.split(":").shift()})}),r=0;r<n.length;++r)if(wh(n[r],e))return 1}const Sh=Bl({_template:m`
|
|
1353
1353
|
<style>
|
|
1354
1354
|
:host {
|
|
1355
1355
|
display: inline-block;
|
|
@@ -1685,5 +1685,5 @@
|
|
|
1685
1685
|
|
|
1686
1686
|
<iron-media-query query="[[_fullscreenMediaQuery]]" query-matches="{{_fullscreen}}">
|
|
1687
1687
|
</iron-media-query>
|
|
1688
|
-
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),ol(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Oh(e){let n,r,i,o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ce(e,n,t),oe(n,r),oe(r,i)},p(e,t){144&t&&o!==(o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"")&&le(i,o)},d(e){e&&ue(n)}}}function Mh(e){let n,r,i,o=e[7]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ce(e,n,t),oe(n,r),oe(r,i)},p(e,t){128&t&&o!==(o=e[7]("selfExclusion.permanentSelfExclusion")+"")&&le(i,o)},d(e){e&&ue(n)}}}function Ih(n){let r,i,B,o,s,F,a,l,h,z,c,u,Y,d,p,U,j,m,f,W,_,G,y,g,V,$,v,q,b,w,X,Z,x,J,S,K,E,Q,C,T,ee,te,ne,A=n[7]("selfExclusion.title")+"",P=n[7]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[7]("selfExclusion.selfExclusionText2")+"",k=n[7]("selfExclusion.selfExclusionText3")+"",O=n[7]("selfExclusion.selfExclusionText4")+"",M=n[7]("selfExclusion.duration")+"",I=n[7]("selfExclusion.forever")+"",N=n[7]("selfExclusion.save")+"",L=n[8]&&function(n){let r,i,o,s,a,l,h,c,u,d,p,m,f,_=n[7]("selfExclusion.title")+"";return{c(){r=t("div"),i=de("svg"),o=de("defs"),s=de("style"),a=se(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=de("g"),h=de("g"),c=de("path"),u=e(),d=t("h2"),p=se(_),ae(c,"class","aaa"),ae(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ae(c,"transform","translate(15 15) rotate(180)"),ae(h,"transform","translate(20 158)"),ae(l,"transform","translate(-20 -158)"),ae(i,"xmlns","http://www.w3.org/2000/svg"),ae(i,"width","15"),ae(i,"height","15"),ae(i,"viewBox","0 0 15 15"),ae(d,"class","PlayerSelfExclusionTitleMobile"),ae(d,"part","PlayerSelfExclusionTitleMobile"),ae(r,"class","MenuReturnButton"),ae(r,"part","MenuReturnButton")},m(e,t){ce(e,r,t),oe(r,i),oe(i,o),oe(o,s),oe(s,a),oe(i,l),oe(l,h),oe(h,c),oe(r,u),oe(r,d),oe(d,p),m||(f=pe(r,"click",n[16]),m=!0)},p(e,t){128&t&&_!==(_=e[7]("selfExclusion.title")+"")&&le(p,_)},d(e){e&&ue(r),m=!1,f()}}}(n);function re(e){return e[3]?Mh:Oh}let R=re(n),H=R(n);return{c(){r=t("div"),i=t("form"),L&&L.c(),B=e(),o=t("h2"),s=se(A),F=e(),a=t("div"),l=t("p"),h=se(P),z=e(),c=t("p"),u=se(D),Y=e(),d=t("p"),p=se(k),U=se(" support@everymatrix.com"),j=e(),m=t("p"),f=se(O),W=e(),(_=t("a")).textContent="support@everymatrix.com",G=e(),y=t("div"),g=t("label"),V=se(M),$=e(),v=t("vaadin-date-picker"),q=e(),b=t("div"),w=t("label"),X=se(I),Z=e(),x=t("input"),J=e(),S=t("span"),K=e(),E=t("div"),H.c(),Q=e(),C=t("div"),T=t("button"),ee=se(N),this.c=ie,ae(o,"class","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(o,"part","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(l,"class","SelfExclusionDescriptionText"),ae(l,"part","SelfExclusionDescriptionText"),ae(c,"class","SelfExclusionDescriptionText"),ae(c,"part","SelfExclusionDescriptionText"),ae(d,"class","SelfExclusionDescriptionText"),ae(d,"part","SelfExclusionDescriptionText"),ae(_,"href","mailto:support@everymatrix.com"),ae(m,"class","SelfExclusionDescriptionText"),ae(m,"part","SelfExclusionDescriptionText"),ae(a,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(a,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(g,"for","SelfExclusionDate"),me(v,"min",n[5]),me(v,"max",n[6]),me(v,"value",n[5]),ae(y,"class","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(y,"part","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(x,"type","Checkbox"),ae(S,"class","Checkmark"),ae(S,"part","Checkmark"),ae(w,"class","SelfExclusionRadio"),ae(w,"part","SelfExclusionRadio"),ae(b,"class","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(b,"part","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(E,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(E,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(T,"class","SelfExclusionSave"),ae(T,"part","SelfExclusionSave"),ae(C,"class","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(C,"part","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(i,"class","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":"")),ae(i,"part","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":""))},m(e,t){ce(e,r,t),oe(r,i),L&&L.m(i,null),oe(i,B),oe(i,o),oe(o,s),oe(i,F),oe(i,a),oe(a,l),oe(l,h),oe(a,z),oe(a,c),oe(c,u),oe(a,Y),oe(a,d),oe(d,p),oe(d,U),oe(a,j),oe(a,m),oe(m,f),oe(m,W),oe(m,_),oe(i,G),oe(i,y),oe(y,g),oe(g,V),oe(y,$),oe(y,v),n[17](v),oe(i,q),oe(i,b),oe(b,w),oe(w,X),oe(w,Z),oe(w,x),oe(w,J),oe(w,S),oe(i,K),oe(i,E),H.m(E,null),oe(i,Q),oe(i,C),oe(C,T),oe(T,ee),n[20](r),te||(ne=[pe(x,"click",n[18]),pe(T,"click",n[19])],te=!0)},p(e,[t]){e[8]&&L.p(e,t),128&t&&A!==(A=e[7]("selfExclusion.title")+"")&&le(s,A),129&t&&P!==(P=e[7]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&le(h,P),128&t&&D!==(D=e[7]("selfExclusion.selfExclusionText2")+"")&&le(u,D),128&t&&k!==(k=e[7]("selfExclusion.selfExclusionText3")+"")&&le(p,k),128&t&&O!==(O=e[7]("selfExclusion.selfExclusionText4")+"")&&le(f,O),128&t&&M!==(M=e[7]("selfExclusion.duration")+"")&&le(V,M),32&t&&me(v,"min",e[5]),64&t&&me(v,"max",e[6]),32&t&&me(v,"value",e[5]),128&t&&I!==(I=e[7]("selfExclusion.forever")+"")&&le(X,I),R===(R=re(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),128&t&&N!==(N=e[7]("selfExclusion.save")+"")&&le(ee,N)},i:ie,o:ie,d(e){e&&ue(r),L&&L.d(),n[17](null),H.d(),n[20](null),te=!1,he(ne)}}}function Nh(t,e,n){let r;var i=Sr;t.$$.on_destroy.push(L(i,e=>n(7,r=e)));let o,s,a,l,{lang:h="en"}=e,{operator:c="Everymatrix"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationUrl:p=""}=e,m="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),f=!1,_="",y="",g=new Date;Object.keys(Pr).forEach(e=>{Ar(e,Pr[e])}),a=Tr(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Tr(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),y=a;const v=()=>{n(3,f=0==f)},b=e=>{1==f?_="SelfExclusionPermanent":(_="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(4,y=e))},w=e=>{e.preventDefault(),b(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:_,selfExclusionExpiryDate:y},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},S=e=>{b(e.target.value)};e=()=>()=>{s.removeEventListener("change",S)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&n(12,h=e.lang),"operator"in e&&n(0,c=e.operator),"clientstyling"in e&&n(13,u=e.clientstyling),"clientstylingurl"in e&&n(14,d=e.clientstylingurl),"translationUrl"in e&&n(15,p=e.translationUrl)},t.$$.update=()=>{if(4&t.$$.dirty&&s&&s.addEventListener("change",S,!1),4096&t.$$.dirty&&h&&(e=h,_r.set(e)),16386&t.$$.dirty&&d&&o){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(8194&t.$$.dirty&&u&&o){let e=document.createElement("style");e.innerHTML=u,o.appendChild(e)}var e;32768&t.$$.dirty&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[c,o,s,f,y,a,l,r,m,v,w,x,h,u,d,p,()=>x(),function(e){F[e?"unshift":"push"](()=>{s=e,n(2,s)})},()=>v(),e=>w(e),function(e){F[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.define(kh.is,kh);class Lh extends Z{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionRadioWrapper .Checkmark:after{content:\"\";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}</style>",X(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Nh,Ih,N,{lang:12,operator:0,clientstyling:13,clientstylingurl:14,translationUrl:15},null),e&&(e.target&&ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),$()))}static get observedAttributes(){return["lang","operator","clientstyling","clientstylingurl","translationUrl"]}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),$()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),$()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),$()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),$()}get translationUrl(){return this.$$.ctx[15]}set translationUrl(e){this.$$set({translationUrl:e}),$()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Lh),Lh});
|
|
1688
|
+
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),ol(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Oh(e){let n,r,i,o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ue(e,n,t),oe(n,r),oe(r,i)},p(e,t){144&t&&o!==(o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"")&&le(i,o)},d(e){e&&ce(n)}}}function Mh(e){let n,r,i,o=e[7]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ue(e,n,t),oe(n,r),oe(r,i)},p(e,t){128&t&&o!==(o=e[7]("selfExclusion.permanentSelfExclusion")+"")&&le(i,o)},d(e){e&&ce(n)}}}function Ih(n){let r,i,B,o,s,F,a,l,h,z,u,c,Y,d,p,U,j,m,f,W,_,G,y,g,V,$,v,q,b,w,X,Z,x,J,S,K,E,Q,C,T,ee,te,ne,A=n[7]("selfExclusion.title")+"",P=n[7]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[7]("selfExclusion.selfExclusionText2")+"",k=n[7]("selfExclusion.selfExclusionText3")+"",O=n[7]("selfExclusion.selfExclusionText4")+"",M=n[7]("selfExclusion.duration")+"",I=n[7]("selfExclusion.forever")+"",N=n[7]("selfExclusion.save")+"",L=n[8]&&function(n){let r,i,o,s,a,l,h,u,c,d,p,m,f,_=n[7]("selfExclusion.title")+"";return{c(){r=t("div"),i=de("svg"),o=de("defs"),s=de("style"),a=se(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=de("g"),h=de("g"),u=de("path"),c=e(),d=t("h2"),p=se(_),ae(u,"class","aaa"),ae(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ae(u,"transform","translate(15 15) rotate(180)"),ae(h,"transform","translate(20 158)"),ae(l,"transform","translate(-20 -158)"),ae(i,"xmlns","http://www.w3.org/2000/svg"),ae(i,"width","15"),ae(i,"height","15"),ae(i,"viewBox","0 0 15 15"),ae(d,"class","PlayerSelfExclusionTitleMobile"),ae(d,"part","PlayerSelfExclusionTitleMobile"),ae(r,"class","MenuReturnButton"),ae(r,"part","MenuReturnButton")},m(e,t){ue(e,r,t),oe(r,i),oe(i,o),oe(o,s),oe(s,a),oe(i,l),oe(l,h),oe(h,u),oe(r,c),oe(r,d),oe(d,p),m||(f=pe(r,"click",n[16]),m=!0)},p(e,t){128&t&&_!==(_=e[7]("selfExclusion.title")+"")&&le(p,_)},d(e){e&&ce(r),m=!1,f()}}}(n);function re(e){return e[3]?Mh:Oh}let R=re(n),H=R(n);return{c(){r=t("div"),i=t("form"),L&&L.c(),B=e(),o=t("h2"),s=se(A),F=e(),a=t("div"),l=t("p"),h=se(P),z=e(),u=t("p"),c=se(D),Y=e(),d=t("p"),p=se(k),U=se(" support@everymatrix.com"),j=e(),m=t("p"),f=se(O),W=e(),(_=t("a")).textContent="support@everymatrix.com",G=e(),y=t("div"),g=t("label"),V=se(M),$=e(),v=t("vaadin-date-picker"),q=e(),b=t("div"),w=t("label"),X=se(I),Z=e(),x=t("input"),J=e(),S=t("span"),K=e(),E=t("div"),H.c(),Q=e(),C=t("div"),T=t("button"),ee=se(N),this.c=ie,ae(o,"class","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(o,"part","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(l,"class","SelfExclusionDescriptionText"),ae(l,"part","SelfExclusionDescriptionText"),ae(u,"class","SelfExclusionDescriptionText"),ae(u,"part","SelfExclusionDescriptionText"),ae(d,"class","SelfExclusionDescriptionText"),ae(d,"part","SelfExclusionDescriptionText"),ae(_,"href","mailto:support@everymatrix.com"),ae(m,"class","SelfExclusionDescriptionText"),ae(m,"part","SelfExclusionDescriptionText"),ae(a,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(a,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(g,"for","SelfExclusionDate"),me(v,"min",n[5]),me(v,"max",n[6]),me(v,"value",n[5]),ae(y,"class","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(y,"part","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(x,"type","Checkbox"),ae(S,"class","Checkmark"),ae(S,"part","Checkmark"),ae(w,"class","SelfExclusionRadio"),ae(w,"part","SelfExclusionRadio"),ae(b,"class","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(b,"part","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(E,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(E,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(T,"class","SelfExclusionSave"),ae(T,"part","SelfExclusionSave"),ae(C,"class","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(C,"part","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(i,"class","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":"")),ae(i,"part","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":""))},m(e,t){ue(e,r,t),oe(r,i),L&&L.m(i,null),oe(i,B),oe(i,o),oe(o,s),oe(i,F),oe(i,a),oe(a,l),oe(l,h),oe(a,z),oe(a,u),oe(u,c),oe(a,Y),oe(a,d),oe(d,p),oe(d,U),oe(a,j),oe(a,m),oe(m,f),oe(m,W),oe(m,_),oe(i,G),oe(i,y),oe(y,g),oe(g,V),oe(y,$),oe(y,v),n[17](v),oe(i,q),oe(i,b),oe(b,w),oe(w,X),oe(w,Z),oe(w,x),oe(w,J),oe(w,S),oe(i,K),oe(i,E),H.m(E,null),oe(i,Q),oe(i,C),oe(C,T),oe(T,ee),n[20](r),te||(ne=[pe(x,"click",n[18]),pe(T,"click",n[19])],te=!0)},p(e,[t]){e[8]&&L.p(e,t),128&t&&A!==(A=e[7]("selfExclusion.title")+"")&&le(s,A),129&t&&P!==(P=e[7]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&le(h,P),128&t&&D!==(D=e[7]("selfExclusion.selfExclusionText2")+"")&&le(c,D),128&t&&k!==(k=e[7]("selfExclusion.selfExclusionText3")+"")&&le(p,k),128&t&&O!==(O=e[7]("selfExclusion.selfExclusionText4")+"")&&le(f,O),128&t&&M!==(M=e[7]("selfExclusion.duration")+"")&&le(V,M),32&t&&me(v,"min",e[5]),64&t&&me(v,"max",e[6]),32&t&&me(v,"value",e[5]),128&t&&I!==(I=e[7]("selfExclusion.forever")+"")&&le(X,I),R===(R=re(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),128&t&&N!==(N=e[7]("selfExclusion.save")+"")&&le(ee,N)},i:ie,o:ie,d(e){e&&ce(r),L&&L.d(),n[17](null),H.d(),n[20](null),te=!1,he(ne)}}}function Nh(t,e,n){let r;var i=Sr;t.$$.on_destroy.push(L(i,e=>n(7,r=e)));let o,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{clientstyling:c=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,m="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),f=!1,_="",y="",g=new Date;Object.keys(Pr).forEach(e=>{Ar(e,Pr[e])}),a=Tr(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Tr(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),y=a;const v=()=>{n(3,f=0==f)},b=e=>{1==f?_="SelfExclusionPermanent":(_="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(4,y=e))},w=e=>{e.preventDefault(),b(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:_,selfExclusionExpiryDate:y},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},S=e=>{b(e.target.value)};e=()=>()=>{s.removeEventListener("change",S)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&n(12,h=e.lang),"operator"in e&&n(0,u=e.operator),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,d=e.clientstylingurl),"translationurl"in e&&n(15,p=e.translationurl)},t.$$.update=()=>{if(4&t.$$.dirty&&s&&s.addEventListener("change",S,!1),4096&t.$$.dirty&&h&&(e=h,_r.set(e)),16386&t.$$.dirty&&d&&o){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(8194&t.$$.dirty&&c&&o){let e=document.createElement("style");e.innerHTML=c,o.appendChild(e)}var e;32768&t.$$.dirty&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[u,o,s,f,y,a,l,r,m,v,w,x,h,c,d,p,()=>x(),function(e){F[e?"unshift":"push"](()=>{s=e,n(2,s)})},()=>v(),e=>w(e),function(e){F[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.define(kh.is,kh);class Lh extends Z{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionRadioWrapper .Checkmark:after{content:\"\";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}</style>",X(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Nh,Ih,N,{lang:12,operator:0,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),$()))}static get observedAttributes(){return["lang","operator","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),$()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),$()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),$()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),$()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),$()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Lh),Lh});
|
|
1689
1689
|
//# sourceMappingURL=player-account-self-exclusion.js.map
|