@everymatrix/player-bonus-history 1.17.0 → 1.17.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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 U(){}function T(e){return e()}function P(){return Object.create(null)}function D(e){e.forEach(T)}function k(e){return"function"==typeof e}function O(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return U;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function I(e,t,n){e.$$.on_destroy.push(M(t,n))}function $(e,t){e.appendChild(t)}function j(e,t,n){e.insertBefore(t,n||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function N(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function t(e){return document.createElement(e)}function F(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function V(e){return document.createTextNode(e)}function G(){return V(" ")}function B(){return V("")}function z(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function q(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function H(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:q(e,t,n)}function X(e,t){e.data!==(t=""+t)&&(e.data=t)}function L(e){var t={};for(const n of e)t[n.name]=n.value;return t}let R;function Y(e){R=e}const Z=[],J=[];let K=[];const Q=[],ee=Promise.resolve();let te=!1;function ne(e){K.push(e)}const re=new Set;let ie=0;function d(){if(0===ie){const r=R;do{try{for(;ie<Z.length;){const r=Z[ie];ie++,Y(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),D(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ne))}}catch(r){throw Z.length=0,ie=0,r}for(Y(null),Z.length=0,ie=0;J.length;)J.pop()();for(let e=0;e<K.length;e+=1){var n=K[e];re.has(n)||(re.add(n),n())}}while(K.length=0,Z.length);for(;Q.length;)Q.pop()();te=!1,re.clear(),Y(r)}}const se=new Set;function oe(r,e,t,n,i,s,o,a=[-1]){var l=R;Y(r);const h=r.$$={fragment:null,ctx:[],props:s,update:U,not_equal:i,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(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]&&(Z.push(e),te||(te=!0,ee.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],h.update(),u=!0,D(h.before_update),h.fragment=!!n&&n(h.ctx),e.target){if(e.hydrate){s=e.target;const U=Array.from(s.childNodes);h.fragment&&h.fragment.l(U),U.forEach(W)}else h.fragment&&h.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));var c=r,o=e.target,t=e.anchor,n=e.customElement,{fragment:s,after_update:a}=c.$$;s&&s.m(o,t),n||ne(()=>{var e=c.$$.on_mount.map(T).filter(k);c.$$.on_destroy?c.$$.on_destroy.push(...e):D(e),c.$$.on_mount=[]}),a.forEach(ne),d()}Y(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(T).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];K.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),K=r}D(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=U}$on(e,t){if(!k(t))return U;const 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 le,he,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ue="URLSearchParams"in l,ce="Symbol"in l&&"iterator"in Symbol,de="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in l,me="ArrayBuffer"in l;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ce&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ge(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ve(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){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:de&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&de&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},de&&(this.blob=function(){var e=ge(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ge(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(de)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=ge(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=ve(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,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)},pe&&(this.formData=function(){return this.text().then(Ee)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=fe(e),t=_e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[fe(e)]},h.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},h.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),ye(n)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),ye(n)},ce&&(h.prototype[Symbol.iterator]=h.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ce(e,t){if(!(this instanceof Ce))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 Ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,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 h(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&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 Ee(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 Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ce.prototype.clone=function(){return new Ce(this,{body:this._bodyInit})},Se.call(Ce.prototype),Se.call(Ae.prototype),Ae.prototype.clone=function(){return new Ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Ae.error=function(){var e=new Ae(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Te=[301,302,303,307,308],Pe=(Ae.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new Ae(null,{status:t,headers:{location:e}})},l.DOMException);try{new Pe}catch(U){(Pe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Pe.prototype.constructor=Pe}function De(r,a){return new Promise(function(i,e){var s=new Ce(r,a);if(s.signal&&s.signal.aborted)return e(new Pe("Aborted","AbortError"));var n,o=new XMLHttpRequest;function t(){o.abort()}o.onload=function(){var e,r,t={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(s.url.startsWith("file://")&&(o.status<200||599<o.status)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new Ae(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){e(new Pe("Aborted","AbortError"))},0)},o.open(s.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(de?o.responseType="blob":me&&(o.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(fe(e)),o.setRequestHeader(e,_e(a.headers[e]))}),s.headers.forEach(function(e,t){-1===n.indexOf(t)&&o.setRequestHeader(t,e)})):s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",t),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",t)}),o.send(void 0===s._bodyInit?null:s._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ce,l.Response=Ae),self.fetch.bind(self);var ke=function(e,t){return(ke=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Me(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 Ie(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function Ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;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 Be(e){return"function"==typeof e}function Le(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Re=Le(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function He(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ye.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Me(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(Be(s))try{s()}catch(e){i=e instanceof Re?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Me(s),h=l.next();!h.done;h=l.next()){var u=h.value;try{$e(u)}catch(e){i=null!=i?i:[],e instanceof Re?i=Ne(Ne([],Ie(i)),Ie(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 Re(i)}},Ye.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)$e(e);else{if(e instanceof Ye){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ye.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ye.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ye.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&He(t,e)},Ye.prototype.remove=function(e){var t=this._finalizers;t&&He(t,e),e instanceof Ye&&e._removeParent(this)},Ye.EMPTY=((e=new Ye).closed=!0,e);var Fe=Ye,ze=Fe.EMPTY;function Ye(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ue(e){return e instanceof Fe||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function $e(e){Be(e)?e():e.unsubscribe()}var je=void 0,We=!1,Ve=!1,Ge={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ge.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Ie(n))):setTimeout.apply(void 0,Ne([e,t],Ie(n)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function qe(){}var Xe=null;function Ze(e){if(We){var t=!Xe;if(t&&(Xe={errorThrown:!1,error:null}),e(),t){var t=Xe,n=t.errorThrown,t=t.error;if(Xe=null,n)throw t}}else e()}Oe(et,Je=Fe),et.create=function(e,t,n){return new it(e,t,n)},et.prototype.next=function(e){this.isStopped||this._next(e)},et.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},et.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Je.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(e){this.destination.next(e)},et.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Je,Ke=et,Qe=Function.prototype.bind;function et(e){var t=Je.call(this)||this;return t.isStopped=!1,e?Ue(t.destination=e)&&e.add(t):t.destination=lt,t}function tt(e,t){return Qe.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){at(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){at(e)}else at(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){at(e)}};var nt,rt=ot,it=(Oe(st,nt=Ke),st);function st(e,t,n){var r=nt.call(this)||this,n=Be(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&Ve?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&tt(e.next,t),error:e.error&&tt(e.error,t),complete:e.complete&&tt(e.complete,t)}):e;return r.destination=new rt(n),r}function ot(e){this.partialObserver=e}function at(e){var t=e;Ge.setTimeout(function(){throw t})}var lt={closed:!0,next:qe,error:function(e){throw e},complete:qe},e="function"==typeof Symbol&&Symbol.observable||"@@observable";n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof Ke||r&&Be(r.next)&&Be(r.error)&&Be(r.complete)&&Ue(r)?e:new it(e,t,n);return Ze(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(r,e){var i=this;return new(e=ut(e))(function(e,t){var n=new it({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[e]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var r=this;return new(e=ut(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},n.create=function(e){return new n(e)};var ht=n;function n(e){e&&(this._subscribe=e)}function ut(e){return null!=(e=null!=e?e:je)?e:Promise}var ct,dt,pt,mt=Le(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Oe(r,pt=ht),r.prototype.lift=function(e){var t=new ft(this,this);return t.operator=e,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new mt},r.prototype.next=function(i){var s=this;Ze(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=Me(s.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}}}})},r.prototype.error=function(t){var n=this;Ze(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)}})},r.prototype.complete=function(){var t=this;Ze(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),pt.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?ze:(this.currentObservers=null,i.push(e),new Fe(function(){t.currentObservers=null,He(i,e)}))},r.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},r.prototype.asObservable=function(){var e=new ht;return e.source=this,e},r.create=function(e,t){return new ft(e,t)},r),ft=(Oe(vt,dt=e),vt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},vt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},vt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},vt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ze},vt),_t={now:function(){return(_t.delegate||Date).now()},delegate:void 0},yt=(Oe(gt,ct=e),gt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;n||(r.push(e),i)||r.push(s.now()+t),this._trimBuffer(),ct.prototype.next.call(this,e)},gt.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},gt.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 s=t.now(),o=0,a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}},gt);function gt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=_t);var r=ct.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 vt(e,t){var n=dt.call(this)||this;return n.destination=e,n.source=t,n}function r(){var e=pt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],wt={};const St=[];function xt(r,i=U){let s;const o=new Set;function a(e){if(O(r,e)&&(r=e,s)){const e=!St.length;for(const e of o)e[1](),St.push(e,r);if(e){for(let e=0;e<St.length;e+=2)St[e][0](St[e+1]);St.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=U){const n=[e,t];return o.add(n),1===o.size&&(s=i(a)||U),e(r),()=>{o.delete(n),0===o.size&&s&&(s(),s=null)}}}}function Ct(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:xt(t,t=>{let n=!1;const r=[];let i=0,s=U;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),u?t(e):s=k(e)?e:U)},e=h.map((e,t)=>M(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){D(e),s(),n=!1}}).subscribe}}function Et(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===At);var t}var At="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mt(Array.isArray(e)?[]:{},e,t):e}function Pt(e,t,n){return e.concat(t).map(function(e){return Tt(e,n)})}function Dt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function kt(e,t){try{return t in e}catch(e){return!1}}function Ot(r,i,s){var o={};return s.isMergeableObject(r)&&Dt(r).forEach(function(e){o[e]=Tt(r[e],s)}),Dt(i).forEach(function(e){var t,n;(!kt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(kt(r,e)&&s.isMergeableObject(i[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Mt)(r[e],i[e],s):o[e]=Tt(i[e],s))}),o}function Mt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Pt,n.isMergeableObject=n.isMergeableObject||Et,n.cloneUnlessOtherwiseSpecified=Tt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Ot(e,t,n):Tt(t,n)}Mt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Mt(e,t,n)},{});throw new Error("first argument should be an array")};var It=Mt,Nt=function(e,t){return(Nt=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 Bt(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}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,Lt,_=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 Rt(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;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 Ht(e){return e.type===y.literal}function Ft(e){return e.type===y.number}function zt(e){return e.type===y.date}function Yt(e){return e.type===y.time}function Ut(e){return e.type===y.select}function $t(e){return e.type===y.plural}function jt(e){return e.type===y.tag}function Wt(e){return e&&"object"==typeof e&&e.type===Lt.number}function Vt(e){return e&&"object"==typeof e&&e.type===Lt.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Lt=Lt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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 qt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Jt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Qt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Zt,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 en(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 tn(e){return en(e)||{}}function nn(e){for(var o={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=_(_(_({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"engineering":o=_(_(_({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.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(Jt,function(e,t,n,r,i,s){if(t)o.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Xt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xt,function(e,t,n,r,i,s){return"*"===n?o.minimumFractionDigits=t.length:r&&"#"===r[0]?o.maximumFractionDigits=r.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=i.options[0];"w"===s?o=_(_({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=_(_({},o),Qt(s)))}else Zt.test(i.stem)?o=_(_({},o),Qt(i.stem)):((s=en(i.stem))&&(o=_(_({},o),s)),(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)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_(_({},o),r)))}return o}var rn={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 sn=new RegExp("^".concat(e.source,"*")),on=new RegExp("".concat(e.source,"*$"));function g(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,i=!!String.fromCodePoint,s=!!Object.fromEntries,o=!!String.prototype.codePointAt,an=!!String.prototype.trimStart,a=!!String.prototype.trimEnd,ln=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},u=!0;try{u="a"===(null==(Dn=yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Dn[0])}catch(U){u=!1}var hn,un,cn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},dn=i?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,s=0;s<i;){if(1114111<(n=e[s++]))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},pn=s?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],s=i[0],i=i[1];t[s]=i}return t},mn=o?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},fn=an?function(e){return e.trimStart()}:function(e){return e.replace(sn,"")},_n=a?function(e){return e.trimEnd()}:function(e){return e.replace(on,"")};function yn(e,t){return new RegExp(e,t)}un=u?(hn=yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return hn.lastIndex=t,null!=(t=hn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=mn(e,t);if(void 0===i||bn(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 dn.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,s=this.char();if(123===s){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&vn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{s=this.clonePosition();this.bump(),r.push({type:y.pound,location:g(s,this.clonePosition())})}}}return{val:r,err:null}},c.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(i,"/>"),location:g(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!vn(this.char())?this.error(f.INVALID_TAG,g(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:t,location:g(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,g(r,this.clonePosition()))):this.error(f.INVALID_TAG,g(r,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&&(vn(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 dn.apply(void 0,t)},c.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),dn(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=un(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,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,g(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(d=_n(c.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:g(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(r)).err?h:(p=g(r,this.clonePosition()),l&&cn(null==l?void 0:l.style,"::",0)?(m=fn(l.style.slice(2)),"number"===o?(c=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?c:{val:{type:y.number,value:n,location:p,style:c.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(1&s),a=s<2?1:3+(s>>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),(rn[t||""]||rn[n||""]||rn["".concat(n,"-001")]||rn["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<o--;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale)),d={type:Lt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}},{val:{type:"date"===o?y.date:y.time,value:n,location:p,style:d},err:null})):{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:n,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(u,_({},u)));this.bumpSpace();var c,d=this.parseIdentifierIfPossible(),p=0;if("select"!==o&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=c.val}var m,l=this.tryParsePluralOrSelectOptions(e,o,t,d);return l.err?l:(h=this.tryParseArgumentClose(r)).err?h:(m=g(r,this.clonePosition()),"select"===o?{val:{type:y.select,value:n,options:pn(l.val),location:m},err:null}:{val:{type:y.plural,value:n,options:pn(l.val),offset:p,pluralType:"plural"===o?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,g(s,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(qt).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 s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Lt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?nn(n):{}},err:null}},c.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,s=[],o=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(o.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;s.push([a,{value:h.val,location:g(u,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===s.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:s,err:null}},c.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}r=g(r,this.clonePosition());return i?ln(s*=n)?{val:s,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=mn(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(cn(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()&&bn(this.char());)this.bump()},c.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var gn=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 vn(e){return 97<=e&&e<=122||65<=e&&e<=90}function bn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function wn(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new gn(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,Ut(e)||$t(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ft(e)&&Wt(e.style)||(zt(e)||Yt(e))&&Vt(e.style)?delete e.style.location:jt(e)&&n(e.children)})}(e.val),e.val}function Sn(e,t){var n=t&&t.cache?t.cache:kn,r=t&&t.serializer?t.serializer:An;return(t&&t.strategy?t.strategy:function(e,t){return En(e,this,1===e.length?xn:Cn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function xn(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 Cn(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 En(e,t,n,r,i){return n.bind(t,e,r,i)}var An=function(){return JSON.stringify(arguments)};function Tn(){this.cache=Object.create(null)}Tn.prototype.get=function(e){return this.cache[e]},Tn.prototype.set=function(e,t){this.cache[e]=t};var Pn,Dn,kn={create:function(){return new Tn}},Mn={variadic:function(e,t){return En(e,this,Cn,t.cache.create(),t.serializer)},monadic:function(e,t){return En(e,this,xn,t.cache.create(),t.serializer)}};(Dn=Pn=Pn||{}).MISSING_VALUE="MISSING_VALUE",Dn.INVALID_VALUE="INVALID_VALUE",Dn.MISSING_INTL_API="MISSING_INTL_API";Bt(jn,Ln=Error),jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,In,Nn,Bn,Ln,Rn=jn,Hn=(Bt($n,Bn=Rn),$n),Fn=(Bt(Un,Nn=Rn),Un),zn=(Bt(Yn,In=Rn),Yn);function Yn(e,t){return In.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Pn.MISSING_VALUE,t)||this}function Un(e,t,n){return Nn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Pn.INVALID_VALUE,n)||this}function $n(e,t,n,r){return Bn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Pn.INVALID_VALUE,r)||this}function jn(e,t,n){e=Ln.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Wn(e,t,n,r,i,s,o){if(1===e.length&&Ht(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Ht(u))a.push({type:v.literal,value:u.value});else if(u.type===y.pound)"number"==typeof s&&a.push({type:v.literal,value:n.getNumberFormat(t).format(s)});else{var c=u.value;if(!(i&&c in i))throw new zn(c,o);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(zt(u)){var d="string"==typeof u.style?r.date[u.style]:Vt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(c)})}else if(Yt(u))d="string"==typeof u.style?r.time[u.style]:Vt(u.style)?u.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(c)});else if(Ft(u))(d="string"==typeof u.style?r.number[u.style]:Wt(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(jt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Fn(m,"function",o);m=f(Wn(p,t,n,r,i,s).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(Ut(u)){if(!(_=u.options[c]||u.options.other))throw new Hn(u.value,c,Object.keys(u.options),o);a.push.apply(a,Wn(_.value,t,n,r,i))}else if($t(u)){if(!(_=u.options["=".concat(c)])){if(!Intl.PluralRules)throw new Rn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Pn.MISSING_INTL_API,o);var f=n.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new Hn(u.value,c,Object.keys(u.options),o);a.push.apply(a,Wn(_.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 Vn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=v=v||{})[e.literal=0]="literal",e[e.object=1]="object";Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},p.__parse=wn,p.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Gn=p;function p(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Wn(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==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=p.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[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:Sn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Rt([void 0],t,!1)))},{cache:Vn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Mn.variadic}),getDateTimeFormat:Sn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Rt([void 0],t,!1)))},{cache:Vn(t.dateTime),strategy:Mn.variadic}),getPluralRules:Sn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Rt([void 0],t,!1)))},{cache:Vn(t.pluralRules),strategy:Mn.variadic})}}const qn={},Xn=(e,t,n)=>n&&(t in qn||(qn[t]={}),e in qn[t]||(qn[t][e]=n),n),Zn=(t,n)=>{if(null!=n){if(n in qn&&t in qn[n])return qn[n][t];var r=_r(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!Qn(e))return null;e=function(e){return Jn[e]||null}(e),e=function(e,n){if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}(e,t);return e}(r[e],t);if(i)return Xn(t,n,i)}}};let Jn;const Kn=xt({});function Qn(e){return e in Jn}function er(t,...n){delete qn[t],Kn.update(e=>(e[t]=It.all([e[t]||{},...n]),e))}Ct([Kn],([e])=>Object.keys(e)),Kn.subscribe(e=>Jn=e);const tr={};function nr(e){return tr[e]}function rr(e){return null!=e&&_r(e).some(e=>{return null==(e=nr(e))?void 0:e.size})}function ir(r,e){return Promise.all(e.map(e=>{return t=r,n=e,tr[t].delete(n),0===tr[t].size&&delete tr[t],e().then(e=>e.default||e);var t,n})).then(e=>er(r,...e))}const sr={};const or={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 ar=xt(!1);var lr=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,dr=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let pr;const mr=xt(null);function fr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function _r(e,t=or.fallbackLocale){e=fr(e);return t?[...new Set([...e,...fr(t)])]:e}function yr(){return null!=pr?pr:void 0}mr.subscribe(e=>{pr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const gr=i(((e,t)=>{for(var n in t=t||{})ur.call(t,n)&&dr(e,n,t[n]);if(hr)for(var n of hr(t))cr.call(t,n)&&dr(e,n,t[n]);return e})({},mr),s({set:t=>{if(t&&function(e){if(null!=e){var t=_r(e);for(let e=0;e<t.length;e++){var n=t[e];if(Qn(n))return n}}}(t)&&rr(t)){var n=or["loadingDelay"];let e;return"undefined"!=typeof window&&null!=yr()&&n?e=window.setTimeout(()=>ar.set(!0),n):ar.set(!0),function e(t){var n;return rr(t)?(n=_r(t).map(e=>{var t=nr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),sr[t]=Promise.all(n.map(([e,t])=>ir(e,t))).then(()=>{if(rr(t))return e(t);delete sr[t]}),sr[t]):t in sr?sr[t]:Promise.resolve()}(t).then(()=>{mr.set(t)}).finally(()=>{clearTimeout(e),ar.set(!1)})}return mr.set(t)}}));var o=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},vr=Object.defineProperty,br=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,xr=(e,t,n)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cr=(e,t)=>{for(var n in t=t||{})wr.call(t,n)&&xr(e,n,t[n]);if(br)for(var n of br(t))Sr.call(t,n)&&xr(e,n,t[n]);return e},Er=(e,t)=>{var n={};for(r in e)wr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&br)for(var r of br(e))t.indexOf(r)<0&&Sr.call(e,r)&&(n[r]=e[r]);return n};const Ar=(e,t)=>{var n=or["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Tr=o(e=>{var{locale:t,format:n}=e,e=Er(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Ar("number",n)),new Intl.NumberFormat(t,e)}),Pr=o(e=>{var{locale:t,format:n}=e,e=Er(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Ar("date",n):0===Object.keys(e).length&&(e=Ar("date","short")),new Intl.DateTimeFormat(t,e)}),Dr=o(e=>{var{locale:t,format:n}=e,e=Er(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Ar("time",n):0===Object.keys(e).length&&(e=Ar("time","short")),new Intl.DateTimeFormat(t,e)}),kr=o((e,t=yr())=>new Gn(e,t,or.formats,{ignoreTag:or.ignoreTag})),Or=Ct([gr,Kn],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=yr(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Zn(e,o);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=or).handleMissingMessage)?void 0:n.call(r,{locale:o,id:e,defaultValue:a}))?n:a)?r:e;if(!s)return l;let h=l;try{h=kr(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),Mr=(Ct([gr],()=>(e,t)=>((e={})=>{var{locale:t=yr()}=e,e=Er(e,["locale"]);return Dr(Cr({locale:t},e))})(t).format(e)),Ct([gr],()=>(e,t)=>((e={})=>{var{locale:t=yr()}=e,e=Er(e,["locale"]);return Pr(Cr({locale:t},e))})(t).format(e)),Ct([gr],()=>(e,t)=>((e={})=>{var{locale:t=yr()}=e,e=Er(e,["locale"]);return Tr(Cr({locale:t},e))})(t).format(e)),Ct([gr,Kn],()=>(e,t=yr())=>Zn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new yt(t),wt[e]=t,bt.push(e)),wt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Nr=Ir={path:void 0,exports:{},require:function(e,t){return On(null==t&&Ir.path)}},Ir.exports,Nr.exports=function(){var L;function m(){return L.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(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 $(e){if(null==e._isValid){var t=_(e),n=W.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 j(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var W=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=[],G=!1;function q(e,t){var n,r,i,s=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<s)for(n=0;n<s;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===G&&(G=!0,m.updateOffset(this),G=!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(s,o){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),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(s+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}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)&&(R(e[n])&&R(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)&&R(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 s(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={},se={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),n&&(se[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(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,s=i.length;t<s;t++)se[i[t]]?i[t]=se[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<s;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}/,Se=/[+-]?\d{1,6}/,xe=/\d+/,Ce=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/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 Te(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 S(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){S(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var x,C=0,E=1,A=2,T=3,P=4,D=5,Oe=6,Me=7,Ie=8;function Ne(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?ce(e)?29:28:31-n%7%2)}x=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)}),S(["M","MM"],function(e,t){t[E]=p(e)-1}),S(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:_(n).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He=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=[],s=0;s<12;s++)t=h([2e3,s]),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),s=0;s<12;s++)n[s]=w(n[s]),r[s]=w(r[s]);for(s=0;s<24;s++)i[s]=w(i[s]);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 $e(e){return ce(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?s(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",Ce),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",Se,ye),b("YYYYYY",Se,ye),S(["YYYYY","YYYYYY"],C),S("YYYY",function(e,t){t[C]=2===e.length?m.parseTwoDigitYear(e):p(e)}),S("YY",function(e,t){t[C]=m.parseTwoDigitYear(e)}),S("Y",function(e,t){t[C]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var je=de("FullYear",!0);function We(e,t,n,r,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),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 Ge(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 s,t=1+7*(t-1)+(7+n-r)%7+Ge(e,r,i),n=t<=0?$e(s=e-1)+t:t>$e(e)?(s=e+1,t-$e(e)):(s=e,t);return{year:s,dayOfYear:n}}function Xe(e,t,n){var r,i,s=Ge(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+k(i=e.year()-1,t,n):s>k(e.year(),t,n)?(r=s-k(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function k(e,t,n){var r=Ge(e,t,n),t=Ge(e+1,t,n);return($e(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=[],s=[],o=[],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),s.push(n),o.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function st(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(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)+s(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),n("hour",13),b("a",ot),b("A",ot),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),S(["H","HH"],T),S(["k","kk"],function(e,t,n){e=p(e);t[T]=24===e?0:e}),S(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),S(["h","hh"],function(e,t,n){t[T]=p(e),_(n).bigHour=!0}),S("hmm",function(e,t,n){var r=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r)),_(n).bigHour=!0}),S("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i)),_(n).bigHour=!0}),S("Hmm",function(e,t,n){var r=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r))}),S("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[T]=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:Be,monthsShort:Le,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,s=0;s<e.length;){for(t=(i=ut(e[s]).split("-")).length,n=(n=ut(e[s+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--}s++}return at}function dt(t){var e;if(void 0===O[t]&&Nr&&Nr.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(!o(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[E]<0||11<t[E]?E:t[A]<1||t[A]>Ne(t[C],t[E])?A:t[T]<0||24<t[T]||24===t[T]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?T: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<C||A<t)&&(t=A),_(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,St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,r,i,s,o,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])){s=(l[2]||" ")+bt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Dt(e)}else e._isValid=!1}function Et(e,t,n,r,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Le.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function At(e){var t,n,r,i,s=St.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=Et(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[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=s[8],r=s[9],i=s[10],n?xt[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 Tt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,s,o,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[A]&&null==e._a[E]&&(null!=(c=(u=e)._w).GG||null!=c.W||null!=c.E?(o=1,a=4,r=Tt(c.GG,u._a[C],Xe(I(),1,4).year),i=Tt(c.W,1),((s=Tt(c.E,1))<1||7<s)&&(l=!0)):(o=u._locale._week.dow,a=u._locale._week.doy,h=Xe(I(),o,a),r=Tt(c.gg,u._a[C],h.year),i=Tt(c.w,h.week),null!=c.d?((s=c.d)<0||6<s)&&(l=!0):null!=c.e?(s=c.e+o,(c.e<0||6<c.e)&&(l=!0)):s=o),i<1||i>k(r,o,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(r,i,s,o,a),u._a[C]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(c=Tt(e._a[C],n[C]),(e._dayOfYear>$e(c)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=Ve(c,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[A]=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[T]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Ve:We).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[T]=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,s=i.length,o=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Te(r,e))||[])[0])&&(0<(c=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(c),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[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=s-o,0<i.length&&_(e).unusedInput.push(i),e._a[T]<=12&&!0===_(e).bigHour&&0<e._a[T]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[T]=(s=e._locale,h=e._a[T],null==(u=e._meridiem)?h:null!=s.meridiemHour?s.meridiemHour(h,u):null!=s.isPM?((s=s.isPM(u))&&h<12&&(h+=12),h=s||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[C]=e._locale.erasConvertYear(u,e._a[C])),Pt(e),ft(e)}else At(e);else Ct(e);var h,u,c,d,p}function kt(e){var t,n=e._i,r=e._f;{var i,s;return(e._locale=e._locale||M(e._l),null===n||void 0===r&&""===n)?j({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(z(n)?e._d=n:o(r)?function(e){var t,n,r,i,s,o,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),$(t)&&(o=!0),s=(s+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o)&&(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===(s=wt.exec(i._i))?(Ct(i),!1===i._isValid&&(delete i._isValid,At(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+s[1])):o(r)?(n._a=Y(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):R(r)?(i=n)._d||(t=void 0===(s=he(i._i)).day?s.date:s.day,i._a=Y([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(r)?n._d=new Date(r):m.createFromInputFallback(n),$(e)||(e._d=null),e))}}function Ot(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(R(e)&&H(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(i=new X(ft(kt(i=s))))._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:j()}),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:j()});function Mt(e,t){var n,r;if(!(t=1===t.length&&o(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,s=e.day||0,o=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===x.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*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=M(),this._bubble()}function Bt(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+n+s(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),b("Z",Ae),b("ZZ",Ae),S(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(Ae,e)});var Ht=/([\+\-]|\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(Ht)||["-",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 $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?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;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=$t.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:p(t[A])*n,h:p(t[T])*n,m:p(t[P])*n,s:p(t[D])*n,ms:p(Lt(1e3*t[Oe]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,i={y:Wt(t[2],n),M:Wt(t[3],n),w:Wt(t[4],n),d:Wt(t[5],n),h:Wt(t[6],n),m:Wt(t[7],n),s:Wt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=I(i.from),n=I(i.to),t=t.isValid()&&n.isValid()?(n=zt(n,t),t.isBefore(n)?r=Vt(t,n):((r=Vt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Nt(i),Bt(e)&&f(e,"_locale")&&(r._locale=e._locale),Bt(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(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 Gt(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,s=Lt(t._days),t=Lt(t._months);e.isValid()&&(r=null==r||r,t&&ze(e,pe(e,"Month")+t*n),s&&me(e,"Date",pe(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&m.updateOffset(e,s||t)}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Be=Gt(1,"add"),Je=Gt(-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=o(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=R(e)&&!H(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)n=s[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function Jt(e,t){var n,r;return e.date()<t.date()?-Jt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<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 sn(e,t){return t.erasAbbrRegex(e)}function on(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(w(i[s].name)),e.push(w(i[s].abbr)),n.push(w(i[s].narrow)),r.push(w(i[s].name)),r.push(w(i[s].abbr)),r.push(w(i[s].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 s;return null==e?Xe(this,r,i).year:(t>(s=k(e,r,i))&&(t=s),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",sn),b("NN",sn),b("NNN",sn),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),S(["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",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),S(["y","yy","yyy","yyyy"],C),S(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[C]=n._locale.eraYearOrdinalParse(e,i):t[C]=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",Ce),b("g",Ce),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",Se,ye),b("ggggg",Se,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),S("Q",function(e,t){t[E]=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}),S(["D","DD"],A),S("Do",function(e,t){t[A]=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),S(["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),S(["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),S(["s","ss"],D);var hn,Se=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,xe);function un(e,t){t[Oe]=p(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")S(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=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!H(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,s;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":s=Jt(this,r)/12;break;case"month":s=Jt(this,r);break;case"quarter":s=Jt(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:d(s)},i.endOf=function(e){var t,n;if(void 0!==(e=c(e))&&"millisecond"!==e&&this.isValid()){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}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(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 $(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()){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)}this._d.setTime(t),m.updateOffset(this,!0)}return 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){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(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",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",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+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),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=je,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){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;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},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=Se,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(Ae,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(Ee,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",je),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=kt(t))._a?(e=(t._isUTC?h: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),s=0,o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&p(e[o])!==p(t[o]))&&s++;return s+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,s=M(),o=e?s._week.dow:0,a=[];if(null!=n)return dn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+o)%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,s=r.length;i<s;++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,s,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[s,o,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")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:o(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,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,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=He),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=o(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,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,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"),Be=bn("m"),ve=bn("h"),ge=bn("d"),Je=bn("w"),v=bn("M"),_e=bn("Q"),Se=bn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wn("milliseconds"),we=wn("seconds"),je=wn("minutes"),y=wn("hours"),Sn=wn("days"),xn=wn("months"),Cn=wn("years");var En=Math.round,An={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,r){var i=N(e).abs(),s=En(i.as("s")),o=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),h=En(i.as("M")),u=En(i.as("w")),i=En(i.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||(o<=1?["m"]:o<n.m&&["mm",o])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(s=(s=null!=n.w?s||(u<=1?["w"]:u<n.w&&["ww",u]):s)||(h<=1?["M"]:h<n.M&&["MM",h])||(i<=1?["y"]:["yy",i]))[2]=t,s[3]=0<+e,s[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,s)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){var e,t,n,r,i,s,o,a,l,h,u;return this.isValid()?(a=Pn(this._milliseconds)/1e3,l=Pn(this._days),h=Pn(this._months),(u=this.asSeconds())?(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)?"-":"",s=Dn(this._days)!==Dn(u)?"-":"",o=Dn(this._milliseconds)!==Dn(u)?"-":"",(u<0?"-":"")+"P"+(n?i+n+"Y":"")+(h?i+h+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"):this.localeData().invalidDate()}var B=Nt.prototype;return B.isValid=function(){return this._isValid},B.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},B.add=function(e,t){return _n(this,e,t,1)},B.subtract=function(e,t){return _n(this,e,t,-1)},B.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)}},B.asMilliseconds=be,B.asSeconds=fe,B.asMinutes=Be,B.asHours=ve,B.asDays=ge,B.asWeeks=Je,B.asMonths=v,B.asQuarters=_e,B.asYears=Se,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,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},B.clone=function(){return N(this)},B.get=function(e){return e=c(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=we,B.minutes=je,B.hours=y,B.days=Sn,B.weeks=function(){return d(this.days()/7)},B.months=xn,B.years=Cn,B.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=An,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},An,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Tn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=kn,B.toString=kn,B.toJSON=kn,B.locale=Kt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),B.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Ce),b("X",/[+-]?\d+(\.\d{1,3})?/),S("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),S("x",function(e,t,n){n._d=new Date(p(e))}),m.version="2.29.4",L=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=j,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=Bt,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?En:"function"==typeof e&&(En=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==An[e]&&(void 0===t?An[e]:(An[e]=t,"s"===e&&(An.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 Ir,Nr,Br=Ir.exports;function Lr(e,t){er(e,t)}const Rr={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"}};function Hr(e){let n,r,i,s,o,a,l,h,u=e[9]("bonusAmount")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[3]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){j(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&X(i,u),8&t&&X(a,e[3]),64&t&&X(h,e[6])},d(e){e&&W(n)}}}function Fr(e){let n,r,i,s,o,a,l,h,u=e[9]("wageringAmount")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[4]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){j(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&X(i,u),16&t&&X(a,e[4]),64&t&&X(h,e[6])},d(e){e&&W(n)}}}function zr(e){let n,r,i,s,o,a,l,h,u=e[9]("remainingBonus")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[5]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){j(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&X(i,u),32&t&&X(a,e[5]),64&t&&X(h,e[6])},d(e){e&&W(n)}}}function Yr(n){let r,i,s,o,a=n[9]("forfeitBonus")+"";return{c(){r=t("button"),i=V(a),q(r,"class","DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){j(e,r,t),$(r,i),s||(o=z(r,"click",n[11]),s=!0)},p(e,t){512&t&&a!==(a=e[9]("forfeitBonus")+"")&&X(i,a)},d(e){e&&W(r),s=!1,o()}}}function Ur(n){let r,i,s,o,a,l,h,u,c,d,p,m,f,_,y,g,v,b,w,H,S,x,C,F,E,A,z,T,P,Y,D=n[9]("date")+"",k=Br(n[0]).format("DD/MM/YYYY h:mm A")+"",O=n[9](""+n[1])+"",M=n[9]("bonusName")+"",I=n[9]("bonusType")+"",N=n[3]&&Hr(n),B=n[4]&&Fr(n),L=n[5]&&zr(n),R="active"===n[1]&&Yr(n);return{c(){r=t("div"),i=t("div"),s=t("div"),o=t("p"),a=V(D),l=G(),h=t("span"),u=V(k),c=G(),d=t("p"),p=V(O),f=G(),_=t("div"),y=t("p"),g=V(M),v=G(),b=t("p"),w=V(n[2]),H=G(),S=t("div"),x=t("p"),C=V(I),F=G(),E=t("p"),A=V(n[8]),z=G(),N&&N.c(),T=G(),B&&B.c(),P=G(),L&&L.c(),Y=G(),R&&R.c(),this.c=U,q(o,"class","BonusCardRowTitle"),q(d,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),q(s,"class","BonusCardRow"),q(y,"class","BonusCardRowTitle"),q(b,"class","BonusCardRowText"),q(_,"class","BonusCardRow"),q(x,"class","BonusCardRowTitle"),q(E,"class","BonusCardRowText TextCapitalize"),q(S,"class","BonusCardRow"),q(i,"class","BonusCardInfo"),q(r,"class","BonusCard")},m(e,t){j(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(o,l),$(o,h),$(h,u),$(s,c),$(s,d),$(d,p),$(i,f),$(i,_),$(_,y),$(y,g),$(_,v),$(_,b),$(b,w),$(i,H),$(i,S),$(S,x),$(x,C),$(S,F),$(S,E),$(E,A),$(i,z),N&&N.m(i,null),$(i,T),B&&B.m(i,null),$(i,P),L&&L.m(i,null),$(r,Y),R&&R.m(r,null),n[18](r)},p(e,[t]){512&t&&D!==(D=e[9]("date")+"")&&X(a,D),1&t&&k!==(k=Br(e[0]).format("DD/MM/YYYY h:mm A")+"")&&X(u,k),514&t&&O!==(O=e[9](""+e[1])+"")&&X(p,O),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&q(d,"class",m),512&t&&M!==(M=e[9]("bonusName")+"")&&X(g,M),4&t&&X(w,e[2]),512&t&&I!==(I=e[9]("bonusType")+"")&&X(C,I),256&t&&X(A,e[8]),e[3]?N?N.p(e,t):((N=Hr(e)).c(),N.m(i,T)):N&&(N.d(1),N=null),e[4]?B?B.p(e,t):((B=Fr(e)).c(),B.m(i,P)):B&&(B.d(1),B=null),e[5]?L?L.p(e,t):((L=zr(e)).c(),L.m(i,null)):L&&(L.d(1),L=null),"active"===e[1]?R?R.p(e,t):((R=Yr(e)).c(),R.m(r,null)):R&&(R.d(1),R=null)},i:U,o:U,d(e){e&&W(r),N&&N.d(),B&&B.d(),L&&L.d(),R&&R.d(),n[18](null)}}}function $r(t,e,n){let r;I(t,Or,e=>n(9,r=e));let i,{bonuswalletid:s=""}=e,{bonusdate:o=""}=e,{bonusstatus:a=""}=e,{bonusname:l=""}=e,{bonustype:h=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:c=""}=e,{bonusremainingamount:d=""}=e,{bonuscurrency:p=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:y=""}=e,g=window.navigator.userAgent,v="PC"!==Mr(g),b="";Object.keys(Rr).forEach(e=>{Lr(e,Rr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,s=e.bonuswalletid),"bonusdate"in e&&n(0,o=e.bonusdate),"bonusstatus"in e&&n(1,a=e.bonusstatus),"bonusname"in e&&n(2,l=e.bonusname),"bonustype"in e&&n(13,h=e.bonustype),"bonusamount"in e&&n(3,u=e.bonusamount),"bonuswageringamount"in e&&n(4,c=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,d=e.bonusremainingamount),"bonuscurrency"in e&&n(6,p=e.bonuscurrency),"lang"in e&&n(14,m=e.lang),"clientstyling"in e&&n(15,f=e.clientstyling),"clientstylingurl"in e&&n(16,_=e.clientstylingurl),"translationurl"in e&&n(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,gr.set(e)),8192&t.$$.dirty&&h&&(n(8,b=h),"freeRound"===b?n(8,b="Free Spins"):"freeBet"===b&&n(8,b="Free Bet")),65664&t.$$.dirty&&_&&i){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lr(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,l,u,c,d,p,i,b,r,v,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:s},window.location.href)},s,h,m,f,_,y,function(e){J[e?"unshift":"push"](()=>{i=e,n(7,i)})}]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},$r,Ur,O,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&j(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),d()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),d()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),d()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),d()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),d()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),d()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),d()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),d()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),d()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),d()}});class jr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",jr);let Wr,Vr=null,Gr=window.HTMLImports&&window.HTMLImports.whenReady||null;function qr(e){requestAnimationFrame(function(){Gr?Gr(e):(Vr||(Vr=new Promise(e=>{Wr=e}),"complete"===document.readyState?Wr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Wr()})),Vr.then(function(){e&&e()}))})}const Xr="__seenByShadyCSS",Zr="__shadyCSSCachedStyle";let Jr=null,Kr=null;class Qr{constructor(){this.customStyles=[],this.enqueued=!1,qr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Kr&&(this.enqueued=!0,qr(Kr))}addCustomStyle(e){e[Xr]||(e[Xr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Zr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var n=t[e];if(!n[Zr]){var r=this.getStyleForCustomStyle(n);if(r){const t=r.__appliedElement||r;Jr&&Jr(t),n[Zr]=t}}}return t}}Object.defineProperties(Qr.prototype,{transformCallback:{get:()=>Jr,set(e){Jr=e}},validateCallback:{get:()=>Kr,set(e){let t=!1;Kr||(t=!0),Kr=e,t&&this.enqueueDocumentValidation()}}});const ei=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ti=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ni=/@media\s(.*)/;function ri(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function ii(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const si=!(window.ShadyDOM&&window.ShadyDOM.inUse);let oi,ai;function li(e){oi=(!e||!e.shimcssproperties)&&(si||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&&(ai=window.ShadyCSS.cssBuild);an=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?oi=window.ShadyCSS.nativeCss:window.ShadyCSS?(li(window.ShadyCSS),window.ShadyCSS=void 0):li(window.WebComponents&&window.WebComponents.flags);const hi=oi,ui=new Qr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){ui.processStyles(),ri(e,t)},styleElement(e){ui.processStyles()},styleDocument(e){ui.processStyles(),ri(document.body,e)},getComputedStyleValue:(e,t)=>ii(e,t),flushCustomStyles(){},nativeCss:hi,nativeShadow:si,cssBuild:ai,disableRuntime:an}),window.ShadyCSS.CustomStyleInterface=ui,window.JSCompiler_renameProperty=function(e,t){return e};let ci,di,pi=/(url\()([^)]*)(\))/g,mi=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function fi(e,t){if(e&&mi.test(e))return e;if("//"===e)return e;if(void 0===ci){ci=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ci="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,ci)try{return new URL(e,t).href}catch(t){return e}return di||((di=document.implementation.createHTMLDocument("temp")).base=di.createElement("base"),di.head.appendChild(di.base),di.anchor=di.createElement("a"),di.body.appendChild(di.anchor)),di.base.href=t,di.anchor.href=e,di.anchor.href||e}function _i(e,i){return e.replace(pi,function(e,t,n,r){return t+"'"+fi(n.replace(/["']/g,""),i)+"'"+r})}function yi(e){return e.substring(0,e.lastIndexOf("/")+1)}const gi=!window.ShadyDOM||!window.ShadyDOM.inUse,vi=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),gi&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let bi=window.Polymer&&window.Polymer.rootPath||yi(document.baseURI||window.location.href),wi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Si=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,xi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ci=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ei=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ai=window.Polymer&&window.Polymer.legacyWarnings||!1,Ti=window.Polymer&&window.Polymer.syncInitialRender||!1,Pi=window.Polymer&&window.Polymer.legacyUndefined||!1,Di=window.Polymer&&window.Polymer.orderedComputed||!1,ki=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Oi=window.Polymer&&window.Polymer.fastDomIf||!1,Mi=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Ii=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Ni=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Bi={},Li={};function Ri(e,t){Bi[e]=Li[e.toLowerCase()]=t}function Hi(e){return Bi[e]||Li[e.toLowerCase()]}class Fi extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=Hi(e))&&t?e.querySelector(t):e: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=fi(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=yi(e)),this.__assetpath}register(e){if(e=e||this.id){if(xi&&void 0!==Hi(e))throw Ri(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);Ri(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Fi.prototype.modules=Bi,customElements.define("dom-module",Fi);const zi="link[rel=import][type~=css]",Yi="include",Ui="shady-unscoped";function $i(e){return Fi.import(e)}function ji(e){var e=_i((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Wi(e){var t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){var t=$i(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Gi(t));var n=t.querySelector("template");n&&e.push(...Vi(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function Vi(e,t){if(!e._styles){var n=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var i=r[e],s=i.getAttribute(Yi);s&&n.push(...Wi(s).filter(function(e,t,n){return n.indexOf(e)===t})),t&&(i.textContent=_i(i.textContent,t)),n.push(i)}e._styles=n}return e._styles}function Gi(t){const n=[],r=t.querySelectorAll(zi);for(let e=0;e<r.length;e++){var i=r[e];if(i.import){const t=i.import,r=i.hasAttribute(Ui);if(r&&!t._unscopedStyle){const n=ji(t);n.setAttribute(Ui,""),t._unscopedStyle=n}else t._style||(t._style=ji(t));n.push(r?t._unscopedStyle:t._style)}}return n}const qi="include",Xi=window.ShadyCSS.CustomStyleInterface;class Zi extends HTMLElement{constructor(){super(),this._style=null,Xi.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var r=(this._style=e).getAttribute(qi);r&&(e.removeAttribute(qi),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){var s=$i(e);if(s&&void 0===s._cssText){let e=function(){let t="",n=Gi(s);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),i=s.querySelector("template");i&&(e+=function(){let t="";var n=Vi(i,s.assetpath);for(let e=0;e<n.length;e++){var r=n[e];r.parentNode&&r.parentNode.removeChild(r),t+=r.textContent}return t}()),s._cssText=e||null}return s||console.warn("Could not find style data in module named",e),s&&s._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",Zi);a=document.createElement("template"),a.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(a.content),u=document.createElement("template"),u.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(u.content),e=document.createElement("template"),e.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(e.content),i=document.createElement("template"),i.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(i.content),s=document.createElement("template"),s.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(s.content),o=document.createElement("template"),o.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(o.content),a=document.createElement("template");a.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(a.content);const Ji=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ki(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function m(r,...e){Qi(r,e);var t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ki(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[n+1],r[0]);return Ji&&(n=Ji.createHTML(n)),t.innerHTML=n,t}const Qi=(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")},es=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 U(){}function T(e){return e()}function P(){return Object.create(null)}function D(e){e.forEach(T)}function k(e){return"function"==typeof e}function O(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return U;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function I(e,t,n){e.$$.on_destroy.push(M(t,n))}function $(e,t){e.appendChild(t)}function j(e,t,n){e.insertBefore(t,n||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function N(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function t(e){return document.createElement(e)}function F(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function V(e){return document.createTextNode(e)}function G(){return V(" ")}function B(){return V("")}function z(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function q(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function H(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:q(e,t,n)}function X(e,t){e.data!==(t=""+t)&&(e.data=t)}function L(e){var t={};for(const n of e)t[n.name]=n.value;return t}let R;function Y(e){R=e}const Z=[],J=[];let K=[];const Q=[],ee=Promise.resolve();let te=!1;function ne(e){K.push(e)}const re=new Set;let ie=0;function d(){if(0===ie){const r=R;do{try{for(;ie<Z.length;){const r=Z[ie];ie++,Y(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),D(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ne))}}catch(r){throw Z.length=0,ie=0,r}for(Y(null),Z.length=0,ie=0;J.length;)J.pop()();for(let e=0;e<K.length;e+=1){var n=K[e];re.has(n)||(re.add(n),n())}}while(K.length=0,Z.length);for(;Q.length;)Q.pop()();te=!1,re.clear(),Y(r)}}const se=new Set;function oe(r,e,t,n,i,s,o,a=[-1]){var l=R;Y(r);const h=r.$$={fragment:null,ctx:[],props:s,update:U,not_equal:i,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(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]&&(Z.push(e),te||(te=!0,ee.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],h.update(),u=!0,D(h.before_update),h.fragment=!!n&&n(h.ctx),e.target){if(e.hydrate){s=e.target;const U=Array.from(s.childNodes);h.fragment&&h.fragment.l(U),U.forEach(W)}else h.fragment&&h.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));var c=r,o=e.target,t=e.anchor,n=e.customElement,{fragment:s,after_update:a}=c.$$;s&&s.m(o,t),n||ne(()=>{var e=c.$$.on_mount.map(T).filter(k);c.$$.on_destroy?c.$$.on_destroy.push(...e):D(e),c.$$.on_mount=[]}),a.forEach(ne),d()}Y(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(T).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){D(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];K.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),K=r}D(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=U}$on(e,t){if(!k(t))return U;const 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 le,he,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ue="URLSearchParams"in l,ce="Symbol"in l&&"iterator"in Symbol,de="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),pe="FormData"in l,me="ArrayBuffer"in l;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function _e(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ce&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ge(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ve(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){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:de&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&de&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||he(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},de&&(this.blob=function(){var e=ge(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ge(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(de)return this.blob().then(be);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=ge(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=ve(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,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)},pe&&(this.formData=function(){return this.text().then(Ee)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],he=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),h.prototype.append=function(e,t){e=fe(e),t=_e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[fe(e)]},h.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},h.prototype.set=function(e,t){this.map[fe(e)]=_e(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),ye(n)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},h.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),ye(n)},ce&&(h.prototype[Symbol.iterator]=h.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ce(e,t){if(!(this instanceof Ce))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 Ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,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 h(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&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 Ee(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 Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}Ce.prototype.clone=function(){return new Ce(this,{body:this._bodyInit})},Se.call(Ce.prototype),Se.call(Ae.prototype),Ae.prototype.clone=function(){return new Ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Ae.error=function(){var e=new Ae(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Te=[301,302,303,307,308],Pe=(Ae.redirect=function(e,t){if(-1===Te.indexOf(t))throw new RangeError("Invalid status code");return new Ae(null,{status:t,headers:{location:e}})},l.DOMException);try{new Pe}catch(U){(Pe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Pe.prototype.constructor=Pe}function De(r,a){return new Promise(function(i,e){var s=new Ce(r,a);if(s.signal&&s.signal.aborted)return e(new Pe("Aborted","AbortError"));var n,o=new XMLHttpRequest;function t(){o.abort()}o.onload=function(){var e,r,t={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(s.url.startsWith("file://")&&(o.status<200||599<o.status)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new Ae(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){e(new Pe("Aborted","AbortError"))},0)},o.open(s.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(de?o.responseType="blob":me&&(o.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof h||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(fe(e)),o.setRequestHeader(e,_e(a.headers[e]))}),s.headers.forEach(function(e,t){-1===n.indexOf(t)&&o.setRequestHeader(t,e)})):s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",t),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",t)}),o.send(void 0===s._bodyInit?null:s._bodyInit)})}function On(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}De.polyfill=!0,l.fetch||(l.fetch=De,l.Headers=h,l.Request=Ce,l.Response=Ae),self.fetch.bind(self);var ke=function(e,t){return(ke=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Me(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 Ie(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function Ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;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 Be(e){return"function"==typeof e}function Le(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Re=Le(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function He(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ye.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Me(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(Be(s))try{s()}catch(e){i=e instanceof Re?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Me(s),h=l.next();!h.done;h=l.next()){var u=h.value;try{$e(u)}catch(e){i=null!=i?i:[],e instanceof Re?i=Ne(Ne([],Ie(i)),Ie(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 Re(i)}},Ye.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)$e(e);else{if(e instanceof Ye){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ye.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ye.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ye.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&He(t,e)},Ye.prototype.remove=function(e){var t=this._finalizers;t&&He(t,e),e instanceof Ye&&e._removeParent(this)},Ye.EMPTY=((e=new Ye).closed=!0,e);var Fe=Ye,ze=Fe.EMPTY;function Ye(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ue(e){return e instanceof Fe||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function $e(e){Be(e)?e():e.unsubscribe()}var je=void 0,We=!1,Ve=!1,Ge={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ge.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Ie(n))):setTimeout.apply(void 0,Ne([e,t],Ie(n)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function qe(){}var Xe=null;function Ze(e){if(We){var t=!Xe;if(t&&(Xe={errorThrown:!1,error:null}),e(),t){var t=Xe,n=t.errorThrown,t=t.error;if(Xe=null,n)throw t}}else e()}Oe(et,Je=Fe),et.create=function(e,t,n){return new it(e,t,n)},et.prototype.next=function(e){this.isStopped||this._next(e)},et.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},et.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Je.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(e){this.destination.next(e)},et.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Je,Ke=et,Qe=Function.prototype.bind;function et(e){var t=Je.call(this)||this;return t.isStopped=!1,e?Ue(t.destination=e)&&e.add(t):t.destination=lt,t}function tt(e,t){return Qe.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){at(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){at(e)}else at(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){at(e)}};var nt,rt=ot,it=(Oe(st,nt=Ke),st);function st(e,t,n){var r=nt.call(this)||this,n=Be(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&Ve?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&tt(e.next,t),error:e.error&&tt(e.error,t),complete:e.complete&&tt(e.complete,t)}):e;return r.destination=new rt(n),r}function ot(e){this.partialObserver=e}function at(e){var t=e;Ge.setTimeout(function(){throw t})}var lt={closed:!0,next:qe,error:function(e){throw e},complete:qe},e="function"==typeof Symbol&&Symbol.observable||"@@observable";n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof Ke||r&&Be(r.next)&&Be(r.error)&&Be(r.complete)&&Ue(r)?e:new it(e,t,n);return Ze(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(r,e){var i=this;return new(e=ut(e))(function(e,t){var n=new it({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},n.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},n.prototype[e]=function(){return this},n.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},n.prototype.toPromise=function(e){var r=this;return new(e=ut(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},n.create=function(e){return new n(e)};var ht=n;function n(e){e&&(this._subscribe=e)}function ut(e){return null!=(e=null!=e?e:je)?e:Promise}var ct,dt,pt,mt=Le(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Oe(r,pt=ht),r.prototype.lift=function(e){var t=new ft(this,this);return t.operator=e,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new mt},r.prototype.next=function(i){var s=this;Ze(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=Me(s.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}}}})},r.prototype.error=function(t){var n=this;Ze(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)}})},r.prototype.complete=function(){var t=this;Ze(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),pt.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?ze:(this.currentObservers=null,i.push(e),new Fe(function(){t.currentObservers=null,He(i,e)}))},r.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},r.prototype.asObservable=function(){var e=new ht;return e.source=this,e},r.create=function(e,t){return new ft(e,t)},r),ft=(Oe(vt,dt=e),vt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},vt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},vt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},vt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ze},vt),_t={now:function(){return(_t.delegate||Date).now()},delegate:void 0},yt=(Oe(gt,ct=e),gt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;n||(r.push(e),i)||r.push(s.now()+t),this._trimBuffer(),ct.prototype.next.call(this,e)},gt.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},gt.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 s=t.now(),o=0,a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}},gt);function gt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=_t);var r=ct.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 vt(e,t){var n=dt.call(this)||this;return n.destination=e,n.source=t,n}function r(){var e=pt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],wt={};const St=[];function xt(r,i=U){let s;const o=new Set;function a(e){if(O(r,e)&&(r=e,s)){const e=!St.length;for(const e of o)e[1](),St.push(e,r);if(e){for(let e=0;e<St.length;e+=2)St[e][0](St[e+1]);St.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=U){const n=[e,t];return o.add(n),1===o.size&&(s=i(a)||U),e(r),()=>{o.delete(n),0===o.size&&s&&(s(),s=null)}}}}function Ct(e,a,t){const l=!Array.isArray(e),h=l?[e]:e,u=a.length<2;return{subscribe:xt(t,t=>{let n=!1;const r=[];let i=0,s=U;const o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),u?t(e):s=k(e)?e:U)},e=h.map((e,t)=>M(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){D(e),s(),n=!1}}).subscribe}}function Et(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===At);var t}var At="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mt(Array.isArray(e)?[]:{},e,t):e}function Pt(e,t,n){return e.concat(t).map(function(e){return Tt(e,n)})}function Dt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function kt(e,t){try{return t in e}catch(e){return!1}}function Ot(r,i,s){var o={};return s.isMergeableObject(r)&&Dt(r).forEach(function(e){o[e]=Tt(r[e],s)}),Dt(i).forEach(function(e){var t,n;(!kt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(kt(r,e)&&s.isMergeableObject(i[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Mt)(r[e],i[e],s):o[e]=Tt(i[e],s))}),o}function Mt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Pt,n.isMergeableObject=n.isMergeableObject||Et,n.cloneUnlessOtherwiseSpecified=Tt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Ot(e,t,n):Tt(t,n)}Mt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Mt(e,t,n)},{});throw new Error("first argument should be an array")};var It=Mt,Nt=function(e,t){return(Nt=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 Bt(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}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,Lt,_=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 Rt(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;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 Ht(e){return e.type===y.literal}function Ft(e){return e.type===y.number}function zt(e){return e.type===y.date}function Yt(e){return e.type===y.time}function Ut(e){return e.type===y.select}function $t(e){return e.type===y.plural}function jt(e){return e.type===y.tag}function Wt(e){return e&&"object"==typeof e&&e.type===Lt.number}function Vt(e){return e&&"object"==typeof e&&e.type===Lt.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Lt=Lt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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 qt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Jt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function Qt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Zt,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 en(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 tn(e){return en(e)||{}}function nn(e){for(var o={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=_(_(_({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"engineering":o=_(_(_({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),tn(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.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(Jt,function(e,t,n,r,i,s){if(t)o.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Xt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xt,function(e,t,n,r,i,s){return"*"===n?o.minimumFractionDigits=t.length:r&&"#"===r[0]?o.maximumFractionDigits=r.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=i.options[0];"w"===s?o=_(_({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=_(_({},o),Qt(s)))}else Zt.test(i.stem)?o=_(_({},o),Qt(i.stem)):((s=en(i.stem))&&(o=_(_({},o),s)),(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)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_(_({},o),r)))}return o}var rn={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 sn=new RegExp("^".concat(e.source,"*")),on=new RegExp("".concat(e.source,"*$"));function g(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,i=!!String.fromCodePoint,s=!!Object.fromEntries,o=!!String.prototype.codePointAt,an=!!String.prototype.trimStart,a=!!String.prototype.trimEnd,ln=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},u=!0;try{u="a"===(null==(Dn=yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Dn[0])}catch(U){u=!1}var hn,un,cn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},dn=i?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,s=0;s<i;){if(1114111<(n=e[s++]))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},pn=s?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],s=i[0],i=i[1];t[s]=i}return t},mn=o?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},fn=an?function(e){return e.trimStart()}:function(e){return e.replace(sn,"")},_n=a?function(e){return e.trimEnd()}:function(e){return e.replace(on,"")};function yn(e,t){return new RegExp(e,t)}un=u?(hn=yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return hn.lastIndex=t,null!=(t=hn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=mn(e,t);if(void 0===i||bn(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 dn.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,s=this.char();if(123===s){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&vn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{s=this.clonePosition();this.bump(),r.push({type:y.pound,location:g(s,this.clonePosition())})}}}return{val:r,err:null}},c.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(i,"/>"),location:g(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!vn(this.char())?this.error(f.INVALID_TAG,g(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,g(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:t,location:g(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,g(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,g(r,this.clonePosition()))):this.error(f.INVALID_TAG,g(r,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&&(vn(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 dn.apply(void 0,t)},c.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),dn(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=un(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,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,g(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((c=this.parseSimpleArgStyleIfPossible()).err)return c;if(0===(d=_n(c.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:g(h,this.clonePosition())}}return(h=this.tryParseArgumentClose(r)).err?h:(p=g(r,this.clonePosition()),l&&cn(null==l?void 0:l.style,"::",0)?(m=fn(l.style.slice(2)),"number"===o?(c=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?c:{val:{type:y.number,value:n,location:p,style:c.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,p):(u=m,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(1&s),a=s<2?1:3+(s>>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),(rn[t||""]||rn[n||""]||rn["".concat(n,"-001")]||rn["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<o--;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale)),d={type:Lt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}},{val:{type:"date"===o?y.date:y.time,value:n,location:p,style:d},err:null})):{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:n,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,g(u,_({},u)));this.bumpSpace();var c,d=this.parseIdentifierIfPossible(),p=0;if("select"!==o&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return c;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=c.val}var m,l=this.tryParsePluralOrSelectOptions(e,o,t,d);return l.err?l:(h=this.tryParseArgumentClose(r)).err?h:(m=g(r,this.clonePosition()),"select"===o?{val:{type:y.select,value:n,options:pn(l.val),location:m},err:null}:{val:{type:y.plural,value:n,options:pn(l.val),offset:p,pluralType:"plural"===o?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,g(s,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(qt).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 s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Lt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?nn(n):{}},err:null}},c.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,s=[],o=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(o.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;s.push([a,{value:h.val,location:g(u,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===s.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:s,err:null}},c.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}r=g(r,this.clonePosition());return i?ln(s*=n)?{val:s,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=mn(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(cn(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()&&bn(this.char());)this.bump()},c.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var gn=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 vn(e){return 97<=e&&e<=122||65<=e&&e<=90}function bn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function wn(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new gn(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,Ut(e)||$t(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ft(e)&&Wt(e.style)||(zt(e)||Yt(e))&&Vt(e.style)?delete e.style.location:jt(e)&&n(e.children)})}(e.val),e.val}function Sn(e,t){var n=t&&t.cache?t.cache:kn,r=t&&t.serializer?t.serializer:An;return(t&&t.strategy?t.strategy:function(e,t){return En(e,this,1===e.length?xn:Cn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function xn(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 Cn(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 En(e,t,n,r,i){return n.bind(t,e,r,i)}var An=function(){return JSON.stringify(arguments)};function Tn(){this.cache=Object.create(null)}Tn.prototype.get=function(e){return this.cache[e]},Tn.prototype.set=function(e,t){this.cache[e]=t};var Pn,Dn,kn={create:function(){return new Tn}},Mn={variadic:function(e,t){return En(e,this,Cn,t.cache.create(),t.serializer)},monadic:function(e,t){return En(e,this,xn,t.cache.create(),t.serializer)}};(Dn=Pn=Pn||{}).MISSING_VALUE="MISSING_VALUE",Dn.INVALID_VALUE="INVALID_VALUE",Dn.MISSING_INTL_API="MISSING_INTL_API";Bt(jn,Ln=Error),jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var v,In,Nn,Bn,Ln,Rn=jn,Hn=(Bt($n,Bn=Rn),$n),Fn=(Bt(Un,Nn=Rn),Un),zn=(Bt(Yn,In=Rn),Yn);function Yn(e,t){return In.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Pn.MISSING_VALUE,t)||this}function Un(e,t,n){return Nn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Pn.INVALID_VALUE,n)||this}function $n(e,t,n,r){return Bn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Pn.INVALID_VALUE,r)||this}function jn(e,t,n){e=Ln.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Wn(e,t,n,r,i,s,o){if(1===e.length&&Ht(e[0]))return[{type:v.literal,value:e[0].value}];for(var a=[],l=0,h=e;l<h.length;l++){var u=h[l];if(Ht(u))a.push({type:v.literal,value:u.value});else if(u.type===y.pound)"number"==typeof s&&a.push({type:v.literal,value:n.getNumberFormat(t).format(s)});else{var c=u.value;if(!(i&&c in i))throw new zn(c,o);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(zt(u)){var d="string"==typeof u.style?r.date[u.style]:Vt(u.style)?u.style.parsedOptions:void 0;a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(c)})}else if(Yt(u))d="string"==typeof u.style?r.time[u.style]:Vt(u.style)?u.style.parsedOptions:r.time.medium,a.push({type:v.literal,value:n.getDateTimeFormat(t,d).format(c)});else if(Ft(u))(d="string"==typeof u.style?r.number[u.style]:Wt(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(jt(u)){var p=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new Fn(m,"function",o);m=f(Wn(p,t,n,r,i,s).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(Ut(u)){if(!(_=u.options[c]||u.options.other))throw new Hn(u.value,c,Object.keys(u.options),o);a.push.apply(a,Wn(_.value,t,n,r,i))}else if($t(u)){if(!(_=u.options["=".concat(c)])){if(!Intl.PluralRules)throw new Rn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Pn.MISSING_INTL_API,o);var f=n.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0)),_=u.options[f]||u.options.other}if(!_)throw new Hn(u.value,c,Object.keys(u.options),o);a.push.apply(a,Wn(_.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 Vn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=v=v||{})[e.literal=0]="literal",e[e.object=1]="object";Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},p.__parse=wn,p.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Gn=p;function p(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===v.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Wn(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==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=p.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[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:Sn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Rt([void 0],t,!1)))},{cache:Vn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Mn.variadic}),getDateTimeFormat:Sn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Rt([void 0],t,!1)))},{cache:Vn(t.dateTime),strategy:Mn.variadic}),getPluralRules:Sn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Rt([void 0],t,!1)))},{cache:Vn(t.pluralRules),strategy:Mn.variadic})}}const qn={},Xn=(e,t,n)=>n&&(t in qn||(qn[t]={}),e in qn[t]||(qn[t][e]=n),n),Zn=(t,n)=>{if(null!=n){if(n in qn&&t in qn[n])return qn[n][t];var r=_r(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!Qn(e))return null;e=function(e){return Jn[e]||null}(e),e=function(e,n){if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}(e,t);return e}(r[e],t);if(i)return Xn(t,n,i)}}};let Jn;const Kn=xt({});function Qn(e){return e in Jn}function er(t,...n){delete qn[t],Kn.update(e=>(e[t]=It.all([e[t]||{},...n]),e))}Ct([Kn],([e])=>Object.keys(e)),Kn.subscribe(e=>Jn=e);const tr={};function nr(e){return tr[e]}function rr(e){return null!=e&&_r(e).some(e=>{return null==(e=nr(e))?void 0:e.size})}function ir(r,e){return Promise.all(e.map(e=>{return t=r,n=e,tr[t].delete(n),0===tr[t].size&&delete tr[t],e().then(e=>e.default||e);var t,n})).then(e=>er(r,...e))}const sr={};const or={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 ar=xt(!1);var lr=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,dr=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let pr;const mr=xt(null);function fr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function _r(e,t=or.fallbackLocale){e=fr(e);return t?[...new Set([...e,...fr(t)])]:e}function yr(){return null!=pr?pr:void 0}mr.subscribe(e=>{pr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const gr=i(((e,t)=>{for(var n in t=t||{})ur.call(t,n)&&dr(e,n,t[n]);if(hr)for(var n of hr(t))cr.call(t,n)&&dr(e,n,t[n]);return e})({},mr),s({set:t=>{if(t&&function(e){if(null!=e){var t=_r(e);for(let e=0;e<t.length;e++){var n=t[e];if(Qn(n))return n}}}(t)&&rr(t)){var n=or["loadingDelay"];let e;return"undefined"!=typeof window&&null!=yr()&&n?e=window.setTimeout(()=>ar.set(!0),n):ar.set(!0),function e(t){var n;return rr(t)?(n=_r(t).map(e=>{var t=nr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),sr[t]=Promise.all(n.map(([e,t])=>ir(e,t))).then(()=>{if(rr(t))return e(t);delete sr[t]}),sr[t]):t in sr?sr[t]:Promise.resolve()}(t).then(()=>{mr.set(t)}).finally(()=>{clearTimeout(e),ar.set(!1)})}return mr.set(t)}}));var o=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},vr=Object.defineProperty,br=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,xr=(e,t,n)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cr=(e,t)=>{for(var n in t=t||{})wr.call(t,n)&&xr(e,n,t[n]);if(br)for(var n of br(t))Sr.call(t,n)&&xr(e,n,t[n]);return e},Er=(e,t)=>{var n={};for(r in e)wr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&br)for(var r of br(e))t.indexOf(r)<0&&Sr.call(e,r)&&(n[r]=e[r]);return n};const Ar=(e,t)=>{var n=or["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Tr=o(e=>{var{locale:t,format:n}=e,e=Er(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Ar("number",n)),new Intl.NumberFormat(t,e)}),Pr=o(e=>{var{locale:t,format:n}=e,e=Er(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Ar("date",n):0===Object.keys(e).length&&(e=Ar("date","short")),new Intl.DateTimeFormat(t,e)}),Dr=o(e=>{var{locale:t,format:n}=e,e=Er(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Ar("time",n):0===Object.keys(e).length&&(e=Ar("time","short")),new Intl.DateTimeFormat(t,e)}),kr=o((e,t=yr())=>new Gn(e,t,or.formats,{ignoreTag:or.ignoreTag})),Or=Ct([gr,Kn],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=yr(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Zn(e,o);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=or).handleMissingMessage)?void 0:n.call(r,{locale:o,id:e,defaultValue:a}))?n:a)?r:e;if(!s)return l;let h=l;try{h=kr(l,o).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),Mr=(Ct([gr],()=>(e,t)=>((e={})=>{var{locale:t=yr()}=e,e=Er(e,["locale"]);return Dr(Cr({locale:t},e))})(t).format(e)),Ct([gr],()=>(e,t)=>((e={})=>{var{locale:t=yr()}=e,e=Er(e,["locale"]);return Pr(Cr({locale:t},e))})(t).format(e)),Ct([gr],()=>(e,t)=>((e={})=>{var{locale:t=yr()}=e,e=Er(e,["locale"]);return Tr(Cr({locale:t},e))})(t).format(e)),Ct([gr,Kn],()=>(e,t=yr())=>Zn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new yt(t),wt[e]=t,bt.push(e)),wt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");Nr=Ir={path:void 0,exports:{},require:function(e,t){return On(null==t&&Ir.path)}},Ir.exports,Nr.exports=function(){var L;function m(){return L.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(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 $(e){if(null==e._isValid){var t=_(e),n=W.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 j(e){var t=h(NaN);return null!=e?U(_(t),e):_(t).userInvalidated=!0,t}var W=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=[],G=!1;function q(e,t){var n,r,i,s=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<s)for(n=0;n<s;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===G&&(G=!0,m.updateOffset(this),G=!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(s,o){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),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(s+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}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)&&(R(e[n])&&R(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)&&R(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 s(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={},se={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),n&&(se[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(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,s=i.length;t<s;t++)se[i[t]]?i[t]=se[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<s;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}/,Se=/[+-]?\d{1,6}/,xe=/\d+/,Ce=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/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 Te(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 S(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){S(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var x,C=0,E=1,A=2,T=3,P=4,D=5,Oe=6,Me=7,Ie=8;function Ne(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?ce(e)?29:28:31-n%7%2)}x=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)}),S(["M","MM"],function(e,t){t[E]=p(e)-1}),S(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:_(n).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He=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=[],s=0;s<12;s++)t=h([2e3,s]),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),s=0;s<12;s++)n[s]=w(n[s]),r[s]=w(r[s]);for(s=0;s<24;s++)i[s]=w(i[s]);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 $e(e){return ce(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?s(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",Ce),b("YY",g,y),b("YYYY",we,_e),b("YYYYY",Se,ye),b("YYYYYY",Se,ye),S(["YYYYY","YYYYYY"],C),S("YYYY",function(e,t){t[C]=2===e.length?m.parseTwoDigitYear(e):p(e)}),S("YY",function(e,t){t[C]=m.parseTwoDigitYear(e)}),S("Y",function(e,t){t[C]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return p(e)+(68<p(e)?1900:2e3)};var je=de("FullYear",!0);function We(e,t,n,r,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),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 Ge(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 s,t=1+7*(t-1)+(7+n-r)%7+Ge(e,r,i),n=t<=0?$e(s=e-1)+t:t>$e(e)?(s=e+1,t-$e(e)):(s=e,t);return{year:s,dayOfYear:n}}function Xe(e,t,n){var r,i,s=Ge(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+k(i=e.year()-1,t,n):s>k(e.year(),t,n)?(r=s-k(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function k(e,t,n){var r=Ge(e,t,n),t=Ge(e+1,t,n);return($e(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=[],s=[],o=[],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),s.push(n),o.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function st(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(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)+s(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),n("hour",13),b("a",ot),b("A",ot),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),S(["H","HH"],T),S(["k","kk"],function(e,t,n){e=p(e);t[T]=24===e?0:e}),S(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),S(["h","hh"],function(e,t,n){t[T]=p(e),_(n).bigHour=!0}),S("hmm",function(e,t,n){var r=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r)),_(n).bigHour=!0}),S("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r,2)),t[D]=p(e.substr(i)),_(n).bigHour=!0}),S("Hmm",function(e,t,n){var r=e.length-2;t[T]=p(e.substr(0,r)),t[P]=p(e.substr(r))}),S("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[T]=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:Be,monthsShort:Le,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,s=0;s<e.length;){for(t=(i=ut(e[s]).split("-")).length,n=(n=ut(e[s+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--}s++}return at}function dt(t){var e;if(void 0===O[t]&&Nr&&Nr.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(!o(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[E]<0||11<t[E]?E:t[A]<1||t[A]>Ne(t[C],t[E])?A:t[T]<0||24<t[T]||24===t[T]&&(0!==t[P]||0!==t[D]||0!==t[Oe])?T: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<C||A<t)&&(t=A),_(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,St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,r,i,s,o,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])){s=(l[2]||" ")+bt[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!gt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Dt(e)}else e._isValid=!1}function Et(e,t,n,r,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Le.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function At(e){var t,n,r,i,s=St.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=Et(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[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=s[8],r=s[9],i=s[10],n?xt[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 Tt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,r,i,s,o,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[A]&&null==e._a[E]&&(null!=(c=(u=e)._w).GG||null!=c.W||null!=c.E?(o=1,a=4,r=Tt(c.GG,u._a[C],Xe(I(),1,4).year),i=Tt(c.W,1),((s=Tt(c.E,1))<1||7<s)&&(l=!0)):(o=u._locale._week.dow,a=u._locale._week.doy,h=Xe(I(),o,a),r=Tt(c.gg,u._a[C],h.year),i=Tt(c.w,h.week),null!=c.d?((s=c.d)<0||6<s)&&(l=!0):null!=c.e?(s=c.e+o,(c.e<0||6<c.e)&&(l=!0)):s=o),i<1||i>k(r,o,a)?_(u)._overflowWeeks=!0:null!=l?_(u)._overflowWeekday=!0:(h=qe(r,i,s,o,a),u._a[C]=h.year,u._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(c=Tt(e._a[C],n[C]),(e._dayOfYear>$e(c)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),l=Ve(c,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[A]=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[T]&&0===e._a[P]&&0===e._a[D]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Ve:We).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[T]=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,s=i.length,o=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Te(r,e))||[])[0])&&(0<(c=i.substr(0,i.indexOf(t))).length&&_(e).unusedInput.push(c),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[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=s-o,0<i.length&&_(e).unusedInput.push(i),e._a[T]<=12&&!0===_(e).bigHour&&0<e._a[T]&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[T]=(s=e._locale,h=e._a[T],null==(u=e._meridiem)?h:null!=s.meridiemHour?s.meridiemHour(h,u):null!=s.isPM?((s=s.isPM(u))&&h<12&&(h+=12),h=s||12!==h?h:0):h),null!==(u=_(e).era)&&(e._a[C]=e._locale.erasConvertYear(u,e._a[C])),Pt(e),ft(e)}else At(e);else Ct(e);var h,u,c,d,p}function kt(e){var t,n=e._i,r=e._f;{var i,s;return(e._locale=e._locale||M(e._l),null===n||void 0===r&&""===n)?j({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(z(n)?e._d=n:o(r)?function(e){var t,n,r,i,s,o,a=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Dt(t),$(t)&&(o=!0),s=(s+=_(t).charsLeftOver)+10*_(t).unusedTokens.length,_(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o)&&(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===(s=wt.exec(i._i))?(Ct(i),!1===i._isValid&&(delete i._isValid,At(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i))):i._d=new Date(+s[1])):o(r)?(n._a=Y(r.slice(0),function(e){return parseInt(e,10)}),Pt(n)):R(r)?(i=n)._d||(t=void 0===(s=he(i._i)).day?s.date:s.day,i._a=Y([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Pt(i)):F(r)?n._d=new Date(r):m.createFromInputFallback(n),$(e)||(e._d=null),e))}}function Ot(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(R(e)&&H(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(i=new X(ft(kt(i=s))))._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:j()}),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:j()});function Mt(e,t){var n,r;if(!(t=1===t.length&&o(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,s=e.day||0,o=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===x.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*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=M(),this._bubble()}function Bt(e){return e instanceof Nt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+n+s(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),b("Z",Ae),b("ZZ",Ae),S(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(Ae,e)});var Ht=/([\+\-]|\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(Ht)||["-",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 $t=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?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;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:F(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=$t.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:p(t[A])*n,h:p(t[T])*n,m:p(t[P])*n,s:p(t[D])*n,ms:p(Lt(1e3*t[Oe]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,i={y:Wt(t[2],n),M:Wt(t[3],n),w:Wt(t[4],n),d:Wt(t[5],n),h:Wt(t[6],n),m:Wt(t[7],n),s:Wt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=I(i.from),n=I(i.to),t=t.isValid()&&n.isValid()?(n=zt(n,t),t.isBefore(n)?r=Vt(t,n):((r=Vt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Nt(i),Bt(e)&&f(e,"_locale")&&(r._locale=e._locale),Bt(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(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 Gt(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,s=Lt(t._days),t=Lt(t._months);e.isValid()&&(r=null==r||r,t&&ze(e,pe(e,"Month")+t*n),s&&me(e,"Date",pe(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&m.updateOffset(e,s||t)}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};Be=Gt(1,"add"),Je=Gt(-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=o(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=R(e)&&!H(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)n=s[t],i=i||f(e,n);return r&&i}(e)||null==e;var t,n,r}function Jt(e,t){var n,r;return e.date()<t.date()?-Jt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<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 sn(e,t){return t.erasAbbrRegex(e)}function on(){for(var e=[],t=[],n=[],r=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(w(i[s].name)),e.push(w(i[s].abbr)),n.push(w(i[s].narrow)),r.push(w(i[s].name)),r.push(w(i[s].abbr)),r.push(w(i[s].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 s;return null==e?Xe(this,r,i).year:(t>(s=k(e,r,i))&&(t=s),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",sn),b("NN",sn),b("NNN",sn),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),S(["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",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),S(["y","yy","yyy","yyyy"],C),S(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[C]=n._locale.eraYearOrdinalParse(e,i):t[C]=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",Ce),b("g",Ce),b("GG",g,y),b("gg",g,y),b("GGGG",we,_e),b("gggg",we,_e),b("GGGGG",Se,ye),b("ggggg",Se,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),S("Q",function(e,t){t[E]=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}),S(["D","DD"],A),S("Do",function(e,t){t[A]=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),S(["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),S(["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),S(["s","ss"],D);var hn,Se=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,xe);function un(e,t){t[Oe]=p(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")S(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=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!H(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,s;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":s=Jt(this,r)/12;break;case"month":s=Jt(this,r);break;case"quarter":s=Jt(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:d(s)},i.endOf=function(e){var t,n;if(void 0!==(e=c(e))&&"millisecond"!==e&&this.isValid()){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}this._d.setTime(t),m.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(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 $(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()){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)}this._d.setTime(t),m.updateOffset(this,!0)}return 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){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(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",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",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+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),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=je,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){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;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},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=Se,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(Ae,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(Ee,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",je),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(q(t={},this),(t=kt(t))._a?(e=(t._isUTC?h: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),s=0,o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&p(e[o])!==p(t[o]))&&s++;return s+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,s=M(),o=e?s._week.dow:0,a=[];if(null!=n)return dn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+o)%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,s=r.length;i<s;++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,s,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[s,o,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")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:o(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,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,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=He),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=o(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,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,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"),Be=bn("m"),ve=bn("h"),ge=bn("d"),Je=bn("w"),v=bn("M"),_e=bn("Q"),Se=bn("y");function wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=wn("milliseconds"),we=wn("seconds"),je=wn("minutes"),y=wn("hours"),Sn=wn("days"),xn=wn("months"),Cn=wn("years");var En=Math.round,An={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,r){var i=N(e).abs(),s=En(i.as("s")),o=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),h=En(i.as("M")),u=En(i.as("w")),i=En(i.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||(o<=1?["m"]:o<n.m&&["mm",o])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(s=(s=null!=n.w?s||(u<=1?["w"]:u<n.w&&["ww",u]):s)||(h<=1?["M"]:h<n.M&&["MM",h])||(i<=1?["y"]:["yy",i]))[2]=t,s[3]=0<+e,s[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,s)}var Pn=Math.abs;function Dn(e){return(0<e)-(e<0)||+e}function kn(){var e,t,n,r,i,s,o,a,l,h,u;return this.isValid()?(a=Pn(this._milliseconds)/1e3,l=Pn(this._days),h=Pn(this._months),(u=this.asSeconds())?(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)?"-":"",s=Dn(this._days)!==Dn(u)?"-":"",o=Dn(this._milliseconds)!==Dn(u)?"-":"",(u<0?"-":"")+"P"+(n?i+n+"Y":"")+(h?i+h+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"):this.localeData().invalidDate()}var B=Nt.prototype;return B.isValid=function(){return this._isValid},B.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},B.add=function(e,t){return _n(this,e,t,1)},B.subtract=function(e,t){return _n(this,e,t,-1)},B.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)}},B.asMilliseconds=be,B.asSeconds=fe,B.asMinutes=Be,B.asHours=ve,B.asDays=ge,B.asWeeks=Je,B.asMonths=v,B.asQuarters=_e,B.asYears=Se,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,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},B.clone=function(){return N(this)},B.get=function(e){return e=c(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=we,B.minutes=je,B.hours=y,B.days=Sn,B.weeks=function(){return d(this.days()/7)},B.months=xn,B.years=Cn,B.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=An,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},An,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Tn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=kn,B.toString=kn,B.toJSON=kn,B.locale=Kt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),B.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Ce),b("X",/[+-]?\d+(\.\d{1,3})?/),S("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),S("x",function(e,t,n){n._d=new Date(p(e))}),m.version="2.29.4",L=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=j,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=Bt,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?En:"function"==typeof e&&(En=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==An[e]&&(void 0===t?An[e]:(An[e]=t,"s"===e&&(An.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 Ir,Nr,Br=Ir.exports;function Lr(e,t){er(e,t)}const Rr={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"}};function Hr(e){let n,r,i,s,o,a,l,h,u=e[9]("bonusAmount")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[3]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){j(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&X(i,u),8&t&&X(a,e[3]),64&t&&X(h,e[6])},d(e){e&&W(n)}}}function Fr(e){let n,r,i,s,o,a,l,h,u=e[9]("wageringAmount")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[4]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){j(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&X(i,u),16&t&&X(a,e[4]),64&t&&X(h,e[6])},d(e){e&&W(n)}}}function zr(e){let n,r,i,s,o,a,l,h,u=e[9]("remainingBonus")+"";return{c(){n=t("div"),r=t("p"),i=V(u),s=G(),o=t("p"),a=V(e[5]),l=G(),h=V(e[6]),q(r,"class","BonusCardRowTitle"),q(o,"class","BonusCardRowText"),q(n,"class","BonusCardRow")},m(e,t){j(e,n,t),$(n,r),$(r,i),$(n,s),$(n,o),$(o,a),$(o,l),$(o,h)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&X(i,u),32&t&&X(a,e[5]),64&t&&X(h,e[6])},d(e){e&&W(n)}}}function Yr(n){let r,i,s,o,a=n[9]("forfeitBonus")+"";return{c(){r=t("button"),i=V(a),q(r,"class","DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){j(e,r,t),$(r,i),s||(o=z(r,"click",n[11]),s=!0)},p(e,t){512&t&&a!==(a=e[9]("forfeitBonus")+"")&&X(i,a)},d(e){e&&W(r),s=!1,o()}}}function Ur(n){let r,i,s,o,a,l,h,u,c,d,p,m,f,_,y,g,v,b,w,H,S,x,C,F,E,A,z,T,P,Y,D=n[9]("date")+"",k=Br(n[0]).format("DD/MM/YYYY h:mm A")+"",O=n[9](""+n[1])+"",M=n[9]("bonusName")+"",I=n[9]("bonusType")+"",N=n[3]&&Hr(n),B=n[4]&&Fr(n),L=n[5]&&zr(n),R="active"===n[1]&&Yr(n);return{c(){r=t("div"),i=t("div"),s=t("div"),o=t("p"),a=V(D),l=G(),h=t("span"),u=V(k),c=G(),d=t("p"),p=V(O),f=G(),_=t("div"),y=t("p"),g=V(M),v=G(),b=t("p"),w=V(n[2]),H=G(),S=t("div"),x=t("p"),C=V(I),F=G(),E=t("p"),A=V(n[8]),z=G(),N&&N.c(),T=G(),B&&B.c(),P=G(),L&&L.c(),Y=G(),R&&R.c(),this.c=U,q(o,"class","BonusCardRowTitle"),q(d,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),q(s,"class","BonusCardRow"),q(y,"class","BonusCardRowTitle"),q(b,"class","BonusCardRowText"),q(_,"class","BonusCardRow"),q(x,"class","BonusCardRowTitle"),q(E,"class","BonusCardRowText TextCapitalize"),q(S,"class","BonusCardRow"),q(i,"class","BonusCardInfo"),q(r,"class","BonusCard")},m(e,t){j(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(o,l),$(o,h),$(h,u),$(s,c),$(s,d),$(d,p),$(i,f),$(i,_),$(_,y),$(y,g),$(_,v),$(_,b),$(b,w),$(i,H),$(i,S),$(S,x),$(x,C),$(S,F),$(S,E),$(E,A),$(i,z),N&&N.m(i,null),$(i,T),B&&B.m(i,null),$(i,P),L&&L.m(i,null),$(r,Y),R&&R.m(r,null),n[18](r)},p(e,[t]){512&t&&D!==(D=e[9]("date")+"")&&X(a,D),1&t&&k!==(k=Br(e[0]).format("DD/MM/YYYY h:mm A")+"")&&X(u,k),514&t&&O!==(O=e[9](""+e[1])+"")&&X(p,O),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&q(d,"class",m),512&t&&M!==(M=e[9]("bonusName")+"")&&X(g,M),4&t&&X(w,e[2]),512&t&&I!==(I=e[9]("bonusType")+"")&&X(C,I),256&t&&X(A,e[8]),e[3]?N?N.p(e,t):((N=Hr(e)).c(),N.m(i,T)):N&&(N.d(1),N=null),e[4]?B?B.p(e,t):((B=Fr(e)).c(),B.m(i,P)):B&&(B.d(1),B=null),e[5]?L?L.p(e,t):((L=zr(e)).c(),L.m(i,null)):L&&(L.d(1),L=null),"active"===e[1]?R?R.p(e,t):((R=Yr(e)).c(),R.m(r,null)):R&&(R.d(1),R=null)},i:U,o:U,d(e){e&&W(r),N&&N.d(),B&&B.d(),L&&L.d(),R&&R.d(),n[18](null)}}}function $r(t,e,n){let r;I(t,Or,e=>n(9,r=e));let i,{bonuswalletid:s=""}=e,{bonusdate:o=""}=e,{bonusstatus:a=""}=e,{bonusname:l=""}=e,{bonustype:h=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:c=""}=e,{bonusremainingamount:d=""}=e,{bonuscurrency:p=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:_=""}=e,{translationurl:y=""}=e,g=window.navigator.userAgent,v="PC"!==Mr(g),b="";Object.keys(Rr).forEach(e=>{Lr(e,Rr[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,s=e.bonuswalletid),"bonusdate"in e&&n(0,o=e.bonusdate),"bonusstatus"in e&&n(1,a=e.bonusstatus),"bonusname"in e&&n(2,l=e.bonusname),"bonustype"in e&&n(13,h=e.bonustype),"bonusamount"in e&&n(3,u=e.bonusamount),"bonuswageringamount"in e&&n(4,c=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,d=e.bonusremainingamount),"bonuscurrency"in e&&n(6,p=e.bonuscurrency),"lang"in e&&n(14,m=e.lang),"clientstyling"in e&&n(15,f=e.clientstyling),"clientstylingurl"in e&&n(16,_=e.clientstylingurl),"translationurl"in e&&n(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,gr.set(e)),8192&t.$$.dirty&&h&&(n(8,b=h),"freeRound"===b?n(8,b="Free Spins"):"freeBet"===b&&n(8,b="Free Bet")),65664&t.$$.dirty&&_&&i){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&i&&((e=document.createElement("style")).innerHTML=f,i.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lr(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,l,u,c,d,p,i,b,r,v,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:s},window.location.href)},s,h,m,f,_,y,function(e){J[e?"unshift":"push"](()=>{i=e,n(7,i)})}]}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},$r,Ur,O,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&j(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),d()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),d()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),d()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),d()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),d()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),d()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),d()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),d()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),d()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),d()}});class jr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",jr);let Wr,Vr=null,Gr=window.HTMLImports&&window.HTMLImports.whenReady||null;function qr(e){requestAnimationFrame(function(){Gr?Gr(e):(Vr||(Vr=new Promise(e=>{Wr=e}),"complete"===document.readyState?Wr():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Wr()})),Vr.then(function(){e&&e()}))})}const Xr="__seenByShadyCSS",Zr="__shadyCSSCachedStyle";let Jr=null,Kr=null;class Qr{constructor(){this.customStyles=[],this.enqueued=!1,qr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Kr&&(this.enqueued=!0,qr(Kr))}addCustomStyle(e){e[Xr]||(e[Xr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[Zr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var n=t[e];if(!n[Zr]){var r=this.getStyleForCustomStyle(n);if(r){const t=r.__appliedElement||r;Jr&&Jr(t),n[Zr]=t}}}return t}}Object.defineProperties(Qr.prototype,{transformCallback:{get:()=>Jr,set(e){Jr=e}},validateCallback:{get:()=>Kr,set(e){let t=!1;Kr||(t=!0),Kr=e,t&&this.enqueueDocumentValidation()}}});const ei=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ti=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ni=/@media\s(.*)/;function ri(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function ii(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const si=!(window.ShadyDOM&&window.ShadyDOM.inUse);let oi,ai;function li(e){oi=(!e||!e.shimcssproperties)&&(si||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&&(ai=window.ShadyCSS.cssBuild);an=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?oi=window.ShadyCSS.nativeCss:window.ShadyCSS?(li(window.ShadyCSS),window.ShadyCSS=void 0):li(window.WebComponents&&window.WebComponents.flags);const hi=oi,ui=new Qr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){ui.processStyles(),ri(e,t)},styleElement(e){ui.processStyles()},styleDocument(e){ui.processStyles(),ri(document.body,e)},getComputedStyleValue:(e,t)=>ii(e,t),flushCustomStyles(){},nativeCss:hi,nativeShadow:si,cssBuild:ai,disableRuntime:an}),window.ShadyCSS.CustomStyleInterface=ui,window.JSCompiler_renameProperty=function(e,t){return e};let ci,di,pi=/(url\()([^)]*)(\))/g,mi=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function fi(e,t){if(e&&mi.test(e))return e;if("//"===e)return e;if(void 0===ci){ci=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ci="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,ci)try{return new URL(e,t).href}catch(t){return e}return di||((di=document.implementation.createHTMLDocument("temp")).base=di.createElement("base"),di.head.appendChild(di.base),di.anchor=di.createElement("a"),di.body.appendChild(di.anchor)),di.base.href=t,di.anchor.href=e,di.anchor.href||e}function _i(e,i){return e.replace(pi,function(e,t,n,r){return t+"'"+fi(n.replace(/["']/g,""),i)+"'"+r})}function yi(e){return e.substring(0,e.lastIndexOf("/")+1)}const gi=!window.ShadyDOM||!window.ShadyDOM.inUse,vi=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),gi&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let bi=window.Polymer&&window.Polymer.rootPath||yi(document.baseURI||window.location.href),wi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Si=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,xi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ci=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ei=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ai=window.Polymer&&window.Polymer.legacyWarnings||!1,Ti=window.Polymer&&window.Polymer.syncInitialRender||!1,Pi=window.Polymer&&window.Polymer.legacyUndefined||!1,Di=window.Polymer&&window.Polymer.orderedComputed||!1,ki=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Oi=window.Polymer&&window.Polymer.fastDomIf||!1,Mi=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Ii=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Ni=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Bi={},Li={};function Ri(e,t){Bi[e]=Li[e.toLowerCase()]=t}function Hi(e){return Bi[e]||Li[e.toLowerCase()]}class Fi extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=Hi(e))&&t?e.querySelector(t):e: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=fi(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=yi(e)),this.__assetpath}register(e){if(e=e||this.id){if(xi&&void 0!==Hi(e))throw Ri(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);Ri(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}Fi.prototype.modules=Bi,customElements.define("dom-module",Fi);const zi="link[rel=import][type~=css]",Yi="include",Ui="shady-unscoped";function $i(e){return Fi.import(e)}function ji(e){var e=_i((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Wi(e){var t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){var t=$i(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Gi(t));var n=t.querySelector("template");n&&e.push(...Vi(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function Vi(e,t){if(!e._styles){var n=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var i=r[e],s=i.getAttribute(Yi);s&&n.push(...Wi(s).filter(function(e,t,n){return n.indexOf(e)===t})),t&&(i.textContent=_i(i.textContent,t)),n.push(i)}e._styles=n}return e._styles}function Gi(t){const n=[],r=t.querySelectorAll(zi);for(let e=0;e<r.length;e++){var i=r[e];if(i.import){const t=i.import,r=i.hasAttribute(Ui);if(r&&!t._unscopedStyle){const n=ji(t);n.setAttribute(Ui,""),t._unscopedStyle=n}else t._style||(t._style=ji(t));n.push(r?t._unscopedStyle:t._style)}}return n}const qi="include",Xi=window.ShadyCSS.CustomStyleInterface;class Zi extends HTMLElement{constructor(){super(),this._style=null,Xi.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var r=(this._style=e).getAttribute(qi);r&&(e.removeAttribute(qi),e.textContent=function(){let t=r.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){var s=$i(e);if(s&&void 0===s._cssText){let e=function(){let t="",n=Gi(s);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),i=s.querySelector("template");i&&(e+=function(){let t="";var n=Vi(i,s.assetpath);for(let e=0;e<n.length;e++){var r=n[e];r.parentNode&&r.parentNode.removeChild(r),t+=r.textContent}return t}()),s._cssText=e||null}return s||console.warn("Could not find style data in module named",e),s&&s._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",Zi);a=document.createElement("template"),a.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(a.content),u=document.createElement("template"),u.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(u.content),e=document.createElement("template"),e.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(e.content),i=document.createElement("template"),i.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(i.content),s=document.createElement("template"),s.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(s.content),o=document.createElement("template"),o.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(o.content),a=document.createElement("template");a.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(a.content);const Ji=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ki(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function m(r,...e){Qi(r,e);var t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ki(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[n+1],r[0]);return Ji&&(n=Ji.createHTML(n)),t.innerHTML=n,t}const Qi=(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")},es=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"] {
|
@@ -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(),gl(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 jh(e,t){er(e,t)}customElements.define($h.is,$h);const Wh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."}};function Vh(e,t,n){e=e.slice();return e[42]=t[n],e[44]=n,e}function Gh(e,t,n){e=e.slice();return e[45]=t[n],e}function qh(t){let i,s=t[13],o=[];for(let e=0;e<s.length;e+=1)o[e]=Kh(Gh(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);j(t,i,n)},p(t,n){if(8199&n[0]){let e;for(s=t[13],e=0;e<s.length;e+=1){var r=Gh(t,s,e);o[e]?o[e].p(r,n):(o[e]=Kh(r),o[e].c(),o[e].m(i.parentNode,i))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){N(o,e),e&&W(i)}}}function Xh(e){let n,r,i=e[14]("noBonusHistory")+"";return{c(){n=t("p"),r=V(i)},m(e,t){j(e,n,t),$(n,r)},p(e,t){16384&t[0]&&i!==(i=e[14]("noBonusHistory")+"")&&X(r,i)},d(e){e&&W(n)}}}function Zh(e){let n,r,i,s,o,a,l,h,u,c;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonusamount",l=e[45].grantedAmount),H(n,"bonuswageringamount",h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),H(n,"bonusremainingamount",u=e[45].currentAmount),H(n,"bonuscurrency",c=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){j(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].grantedAmount)&&H(n,"bonusamount",l),8192&t[0]&&h!==(h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&H(n,"bonuswageringamount",h),8192&t[0]&&u!==(u=e[45].currentAmount)&&H(n,"bonusremainingamount",u),8192&t[0]&&c!==(c=e[45].currency)&&H(n,"bonuscurrency",c),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&W(n)}}}function Jh(e){let n,r,i,s,o,a,l;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonuscurrency",l=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){j(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].currency)&&H(n,"bonuscurrency",l),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&W(n)}}}function Kh(e){let n;function r(e){return"freeRound"===e[45].type?Jh:Zh}let i=r(e),s=i(e);return{c(){s.c(),n=B()},m(e,t){s.m(e,t),j(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&W(n)}}}function Qh(n){let i,s,r,e,o,a,l,h,u,c,d,p,m,f,_,y,g,v,b,w=Array(n[11]),S=[];for(let e=0;e<w.length;e+=1)S[e]=eu(Vh(n,w,e));return{c(){i=t("div"),s=t("span"),r=V("|<"),o=G(),a=t("span"),l=V("<"),u=G();for(let e=0;e<S.length;e+=1)S[e].c();c=G(),d=t("span"),p=V(">"),f=G(),_=t("span"),y=V(">|"),q(s,"class",e="BonusesFirst "+(0===n[12]?"Inactive":"")),q(a,"class",h="BonusesPrev "+(0===n[12]?"Inactive":"")),q(d,"class",m="BonusesNext "+(n[12]===n[11]-1?"Inactive":"")),q(_,"class",g="BonusesLast "+(n[12]===n[11]-1?"Inactive":"")),q(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){j(e,i,t),$(i,s),$(s,r),$(i,o),$(i,a),$(a,l),$(i,u);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(i,null);$(i,c),$(i,d),$(d,p),$(i,f),$(i,_),$(_,y),v||(b=[z(s,"click",n[26]),z(a,"click",n[27]),z(d,"click",n[29]),z(_,"click",n[30])],v=!0)},p(t,n){if(4096&n[0]&&e!==(e="BonusesFirst "+(0===t[12]?"Inactive":""))&&q(s,"class",e),4096&n[0]&&h!==(h="BonusesPrev "+(0===t[12]?"Inactive":""))&&q(a,"class",h),137216&n[0]){let e;for(w=Array(t[11]),e=0;e<w.length;e+=1){var r=Vh(t,w,e);S[e]?S[e].p(r,n):(S[e]=eu(r),S[e].c(),S[e].m(i,c))}for(;e<S.length;e+=1)S[e].d(1);S.length=w.length}6144&n[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&q(d,"class",m),6144&n[0]&&g!==(g="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&q(_,"class",g)},d(e){e&&W(i),N(S,e),v=!1,D(b)}}}function eu(n){let r,i,s,o,a,e=n[44]+1+"";function l(){return n[28](n[44])}return{c(){r=t("span"),i=V(e),q(r,"class",s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))},m(e,t){j(e,r,t),$(r,i),o||(a=z(r,"click",l),o=!0)},p(e,t){n=e,4096&t[0]&&s!==(s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))&&q(r,"class",s)},d(e){e&&W(r),o=!1,a()}}}function tu(n){let r,i=function(n){let r,i,s,o,a,l,h,u,c,d,p,m,f,_,y,g,v,b,w,S,x,C,E,A,T,P,D=n[14]("title")+"",k=n[14]("dateFrom")+"",O=n[14]("dateTo")+"",M=n[14]("dateFilter")+"",I=n[15]&&function(n){let r,i,s,o,a,l,h,u,c,d,p,m,f,_=n[14]("title")+"";return{c(){r=t("div"),i=F("svg"),s=F("defs"),o=F("style"),a=V(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=F("g"),h=F("g"),u=F("path"),c=G(),d=t("h2"),p=V(_),q(u,"class","aaa"),q(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),q(u,"transform","translate(15 15) rotate(180)"),q(h,"transform","translate(20 158)"),q(l,"transform","translate(-20 -158)"),q(i,"xmlns","http://www.w3.org/2000/svg"),q(i,"width","15"),q(i,"height","15"),q(i,"viewBox","0 0 15 15"),q(d,"class","BonusesTitleMobile"),q(r,"class","MenuReturnButton")},m(e,t){j(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(i,l),$(l,h),$(h,u),$(r,c),$(r,d),$(d,p),m||(f=z(r,"click",n[22]),m=!0)},p(e,t){16384&t[0]&&_!==(_=e[14]("title")+"")&&X(p,_)},d(e){e&&W(r),m=!1,f()}}}(n);function N(e){return 0===e[13].length?Xh:qh}let B=N(n),L=B(n),R=0!==n[13].length&&Qh(n);return{c(){r=t("div"),I&&I.c(),i=G(),s=t("h2"),o=V(D),a=G(),l=t("div"),h=t("div"),u=t("div"),c=t("label"),d=V(k),p=G(),m=t("vaadin-date-picker"),f=G(),_=t("div"),y=t("label"),g=V(O),v=G(),b=t("vaadin-date-picker"),w=G(),S=t("button"),x=V(M),C=G(),E=t("div"),L.c(),A=G(),R&&R.c(),q(s,"class","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(s,"part","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(c,"for","BonusCalendarStartDate"),H(m,"max",n[6]),H(m,"value",n[7]),H(m,"placeholder","From"),H(m,"class","VaadinDatePicker"),q(u,"class","BonusesCalendarStartDate "+(n[15]?"BonusesCalendarMobile":"")),q(y,"for","BonusesCalendarEndDate"),H(b,"max",n[6]),H(b,"value",n[6]),H(b,"placeholder","To"),H(b,"class","VaadinDatePicker"),q(_,"class","BonusesCalendarEndDate "+(n[15]?"BonusesCalendarMobile":"")),q(h,"class","BonusesCalendarContainer "+(n[15]?"BonusesCalendarContainerMobile":"")),q(S,"class","BonusesCalendarFilter "+(n[15]?"BonusesCalendarFilterMobile":"")),q(l,"class","BonusCalendarWrapper "+(n[15]?"BonusCalendarWrapperMobile":"")),q(E,"class","BonusesGrid "+(n[15]?"BonusesGridMobile":"")),q(r,"class","BonusesWrapper "+(n[15]?"BonusesWrapperMobile":""))},m(e,t){j(e,r,t),I&&I.m(r,null),$(r,i),$(r,s),$(s,o),$(r,a),$(r,l),$(l,h),$(h,u),$(u,c),$(c,d),$(u,p),$(u,m),n[23](m),$(h,f),$(h,_),$(_,y),$(y,g),$(_,v),$(_,b),n[24](b),$(l,w),$(l,S),$(S,x),$(r,C),$(r,E),L.m(E,null),$(r,A),R&&R.m(r,null),T||(P=z(S,"click",n[25]),T=!0)},p(e,t){e[15]&&I.p(e,t),16384&t[0]&&D!==(D=e[14]("title")+"")&&X(o,D),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&X(d,k),64&t[0]&&H(m,"max",e[6]),128&t[0]&&H(m,"value",e[7]),16384&t[0]&&O!==(O=e[14]("dateTo")+"")&&X(g,O),64&t[0]&&H(b,"max",e[6]),64&t[0]&&H(b,"value",e[6]),16384&t[0]&&M!==(M=e[14]("dateFilter")+"")&&X(x,M),B===(B=N(e))&&L?L.p(e,t):(L.d(1),(L=B(e))&&(L.c(),L.m(E,null))),0!==e[13].length?R?R.p(e,t):((R=Qh(e)).c(),R.m(r,null)):R&&(R.d(1),R=null)},d(e){e&&W(r),I&&I.d(),n[23](null),n[24](null),L.d(),R&&R.d(),T=!1,P()}}}(n);return{c(){r=t("div"),i.c(),this.c=U},m(e,t){j(e,r,t),i.m(r,null),n[31](r)},p(e,t){i.p(e,t)},i:U,o:U,d(e){e&&W(r),i.d(),n[31](null)}}}function nu(t,e,r){let n;I(t,Or,e=>r(14,n=e));let i,s,o,a,l,{endpoint:h=""}=e,{session:u=""}=e,{playerid:c=""}=e,{lang:d="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,_=window.navigator.userAgent,y="PC"!==Mr(_),g=(a=Br(new Date).format("YYYY-MM-DD"),l=Br(new Date).subtract(3,"months").format("YYYY-MM-DD")),v=a,b=0,w=0,S=0,x=0,C=0,E=[];Object.keys(Wh).forEach(e=>{jh(e,Wh[e])});const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},T=t=>{var e=new URL(`${h}/player/${c}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(g).toISOString()}~${new Date(v).toISOString()}]`,n=(e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,n).then(e=>e.json()).then(e=>{r(11,x=Math.ceil(e.total/6)),0<=t-6&&r(8,b=t-6),t+6<e.total&&r(9,w=t+6),r(10,S=6*(x-1)),r(12,C=t/6),r(13,E=e.items)},e=>{console.error(e)})},P=e=>{g=e.target.value},D=e=>{v=e.target.value};e=()=>()=>{s.removeEventListener("change",P),o.removeEventListener("change",D)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&r(18,h=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,c=e.playerid),"lang"in e&&r(0,d=e.lang),"clientstyling"in e&&r(1,p=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&d&&(e=d,gr.set(e)),48&t.$$.dirty[0]&&s&&o&&(s.addEventListener("change",P,!1),o.addEventListener("change",D,!1)),1835008&t.$$.dirty[0]&&u&&c&&h&&T(0),12&t.$$.dirty[0]&&m&&i){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&p&&i&&((e=document.createElement("style")).innerHTML=p,i.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jh(e,t[e])})}).catch(e=>{console.log(e)})},[d,p,m,i,s,o,a,l,b,w,S,x,C,E,n,y,A,T,h,u,c,f,()=>A(),function(e){J[e?"unshift":"push"](()=>{s=e,r(4,s)})},function(e){J[e?"unshift":"push"](()=>{o=e,r(5,o)})},()=>T(0),()=>T(0),()=>T(b),e=>T(6*e),()=>T(w),()=>T(S),function(e){J[e?"unshift":"push"](()=>{i=e,r(3,i)})}]}class ru extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},nu,tu,O,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),d()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),d()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),d()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),d()}}return customElements.get("player-bonus-history")||customElements.define("player-bonus-history",ru),ru});
|
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(),gl(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 jh(e,t){er(e,t)}customElements.define($h.is,$h);const Wh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."}};function Vh(e,t,n){e=e.slice();return e[42]=t[n],e[44]=n,e}function Gh(e,t,n){e=e.slice();return e[45]=t[n],e}function qh(t){let i,s=t[13],o=[];for(let e=0;e<s.length;e+=1)o[e]=Kh(Gh(t,s,e));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=B()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);j(t,i,n)},p(t,n){if(8199&n[0]){let e;for(s=t[13],e=0;e<s.length;e+=1){var r=Gh(t,s,e);o[e]?o[e].p(r,n):(o[e]=Kh(r),o[e].c(),o[e].m(i.parentNode,i))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){N(o,e),e&&W(i)}}}function Xh(e){let n,r,i=e[14]("noBonusHistory")+"";return{c(){n=t("p"),r=V(i)},m(e,t){j(e,n,t),$(n,r)},p(e,t){16384&t[0]&&i!==(i=e[14]("noBonusHistory")+"")&&X(r,i)},d(e){e&&W(n)}}}function Zh(e){let n,r,i,s,o,a,l,h,u,c;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonusamount",l=e[45].grantedAmount),H(n,"bonuswageringamount",h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),H(n,"bonusremainingamount",u=e[45].currentAmount),H(n,"bonuscurrency",c=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){j(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].grantedAmount)&&H(n,"bonusamount",l),8192&t[0]&&h!==(h=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&H(n,"bonuswageringamount",h),8192&t[0]&&u!==(u=e[45].currentAmount)&&H(n,"bonusremainingamount",u),8192&t[0]&&c!==(c=e[45].currency)&&H(n,"bonuscurrency",c),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&W(n)}}}function Jh(e){let n,r,i,s,o,a,l;return{c(){H(n=t("player-bonus-card"),"bonuswalletid",r=e[45].walletId),H(n,"bonusdate",i=e[45].granted),H(n,"bonusstatus",s=e[45].status),H(n,"bonusname",o=e[45].name),H(n,"bonustype",a=e[45].type),H(n,"bonuscurrency",l=e[45].currency),H(n,"lang",e[0]),H(n,"clientstyling",e[1]),H(n,"clientstylingurl",e[2])},m(e,t){j(e,n,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&H(n,"bonuswalletid",r),8192&t[0]&&i!==(i=e[45].granted)&&H(n,"bonusdate",i),8192&t[0]&&s!==(s=e[45].status)&&H(n,"bonusstatus",s),8192&t[0]&&o!==(o=e[45].name)&&H(n,"bonusname",o),8192&t[0]&&a!==(a=e[45].type)&&H(n,"bonustype",a),8192&t[0]&&l!==(l=e[45].currency)&&H(n,"bonuscurrency",l),1&t[0]&&H(n,"lang",e[0]),2&t[0]&&H(n,"clientstyling",e[1]),4&t[0]&&H(n,"clientstylingurl",e[2])},d(e){e&&W(n)}}}function Kh(e){let n;function r(e){return"freeRound"===e[45].type?Jh:Zh}let i=r(e),s=i(e);return{c(){s.c(),n=B()},m(e,t){s.m(e,t),j(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&W(n)}}}function Qh(n){let i,s,r,e,o,a,l,h,u,c,d,p,m,f,_,y,g,v,b,w=Array(n[11]),S=[];for(let e=0;e<w.length;e+=1)S[e]=eu(Vh(n,w,e));return{c(){i=t("div"),s=t("span"),r=V("|<"),o=G(),a=t("span"),l=V("<"),u=G();for(let e=0;e<S.length;e+=1)S[e].c();c=G(),d=t("span"),p=V(">"),f=G(),_=t("span"),y=V(">|"),q(s,"class",e="BonusesFirst "+(0===n[12]?"Inactive":"")),q(a,"class",h="BonusesPrev "+(0===n[12]?"Inactive":"")),q(d,"class",m="BonusesNext "+(n[12]===n[11]-1?"Inactive":"")),q(_,"class",g="BonusesLast "+(n[12]===n[11]-1?"Inactive":"")),q(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){j(e,i,t),$(i,s),$(s,r),$(i,o),$(i,a),$(a,l),$(i,u);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(i,null);$(i,c),$(i,d),$(d,p),$(i,f),$(i,_),$(_,y),v||(b=[z(s,"click",n[26]),z(a,"click",n[27]),z(d,"click",n[29]),z(_,"click",n[30])],v=!0)},p(t,n){if(4096&n[0]&&e!==(e="BonusesFirst "+(0===t[12]?"Inactive":""))&&q(s,"class",e),4096&n[0]&&h!==(h="BonusesPrev "+(0===t[12]?"Inactive":""))&&q(a,"class",h),137216&n[0]){let e;for(w=Array(t[11]),e=0;e<w.length;e+=1){var r=Vh(t,w,e);S[e]?S[e].p(r,n):(S[e]=eu(r),S[e].c(),S[e].m(i,c))}for(;e<S.length;e+=1)S[e].d(1);S.length=w.length}6144&n[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&q(d,"class",m),6144&n[0]&&g!==(g="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&q(_,"class",g)},d(e){e&&W(i),N(S,e),v=!1,D(b)}}}function eu(n){let r,i,s,o,a,e=n[44]+1+"";function l(){return n[28](n[44])}return{c(){r=t("span"),i=V(e),q(r,"class",s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))},m(e,t){j(e,r,t),$(r,i),o||(a=z(r,"click",l),o=!0)},p(e,t){n=e,4096&t[0]&&s!==(s="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))&&q(r,"class",s)},d(e){e&&W(r),o=!1,a()}}}function tu(n){let r,i=function(n){let r,i,s,o,a,l,h,u,c,d,p,m,f,_,y,g,v,b,w,S,x,C,E,A,T,P,D=n[14]("title")+"",k=n[14]("dateFrom")+"",O=n[14]("dateTo")+"",M=n[14]("dateFilter")+"",I=n[15]&&function(n){let r,i,s,o,a,l,h,u,c,d,p,m,f,_=n[14]("title")+"";return{c(){r=t("div"),i=F("svg"),s=F("defs"),o=F("style"),a=V(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=F("g"),h=F("g"),u=F("path"),c=G(),d=t("h2"),p=V(_),q(u,"class","aaa"),q(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),q(u,"transform","translate(15 15) rotate(180)"),q(h,"transform","translate(20 158)"),q(l,"transform","translate(-20 -158)"),q(i,"xmlns","http://www.w3.org/2000/svg"),q(i,"width","15"),q(i,"height","15"),q(i,"viewBox","0 0 15 15"),q(d,"class","BonusesTitleMobile"),q(r,"class","MenuReturnButton")},m(e,t){j(e,r,t),$(r,i),$(i,s),$(s,o),$(o,a),$(i,l),$(l,h),$(h,u),$(r,c),$(r,d),$(d,p),m||(f=z(r,"click",n[22]),m=!0)},p(e,t){16384&t[0]&&_!==(_=e[14]("title")+"")&&X(p,_)},d(e){e&&W(r),m=!1,f()}}}(n);function N(e){return 0===e[13].length?Xh:qh}let B=N(n),L=B(n),R=0!==n[13].length&&Qh(n);return{c(){r=t("div"),I&&I.c(),i=G(),s=t("h2"),o=V(D),a=G(),l=t("div"),h=t("div"),u=t("div"),c=t("label"),d=V(k),p=G(),m=t("vaadin-date-picker"),f=G(),_=t("div"),y=t("label"),g=V(O),v=G(),b=t("vaadin-date-picker"),w=G(),S=t("button"),x=V(M),C=G(),E=t("div"),L.c(),A=G(),R&&R.c(),q(s,"class","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(s,"part","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),q(c,"for","BonusCalendarStartDate"),H(m,"max",n[6]),H(m,"value",n[7]),H(m,"placeholder","From"),H(m,"class","VaadinDatePicker"),q(u,"class","BonusesCalendarStartDate "+(n[15]?"BonusesCalendarMobile":"")),q(y,"for","BonusesCalendarEndDate"),H(b,"max",n[6]),H(b,"value",n[6]),H(b,"placeholder","To"),H(b,"class","VaadinDatePicker"),q(_,"class","BonusesCalendarEndDate "+(n[15]?"BonusesCalendarMobile":"")),q(h,"class","BonusesCalendarContainer "+(n[15]?"BonusesCalendarContainerMobile":"")),q(S,"class","BonusesCalendarFilter "+(n[15]?"BonusesCalendarFilterMobile":"")),q(l,"class","BonusCalendarWrapper "+(n[15]?"BonusCalendarWrapperMobile":"")),q(E,"class","BonusesGrid "+(n[15]?"BonusesGridMobile":"")),q(r,"class","BonusesWrapper "+(n[15]?"BonusesWrapperMobile":""))},m(e,t){j(e,r,t),I&&I.m(r,null),$(r,i),$(r,s),$(s,o),$(r,a),$(r,l),$(l,h),$(h,u),$(u,c),$(c,d),$(u,p),$(u,m),n[23](m),$(h,f),$(h,_),$(_,y),$(y,g),$(_,v),$(_,b),n[24](b),$(l,w),$(l,S),$(S,x),$(r,C),$(r,E),L.m(E,null),$(r,A),R&&R.m(r,null),T||(P=z(S,"click",n[25]),T=!0)},p(e,t){e[15]&&I.p(e,t),16384&t[0]&&D!==(D=e[14]("title")+"")&&X(o,D),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&X(d,k),64&t[0]&&H(m,"max",e[6]),128&t[0]&&H(m,"value",e[7]),16384&t[0]&&O!==(O=e[14]("dateTo")+"")&&X(g,O),64&t[0]&&H(b,"max",e[6]),64&t[0]&&H(b,"value",e[6]),16384&t[0]&&M!==(M=e[14]("dateFilter")+"")&&X(x,M),B===(B=N(e))&&L?L.p(e,t):(L.d(1),(L=B(e))&&(L.c(),L.m(E,null))),0!==e[13].length?R?R.p(e,t):((R=Qh(e)).c(),R.m(r,null)):R&&(R.d(1),R=null)},d(e){e&&W(r),I&&I.d(),n[23](null),n[24](null),L.d(),R&&R.d(),T=!1,P()}}}(n);return{c(){r=t("div"),i.c(),this.c=U},m(e,t){j(e,r,t),i.m(r,null),n[31](r)},p(e,t){i.p(e,t)},i:U,o:U,d(e){e&&W(r),i.d(),n[31](null)}}}function nu(t,e,r){let n;I(t,Or,e=>r(14,n=e));let i,s,o,a,l,{endpoint:h=""}=e,{session:u=""}=e,{playerid:c=""}=e,{lang:d="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,_=window.navigator.userAgent,y="PC"!==Mr(_),g=(a=Br(new Date).format("YYYY-MM-DD"),l=Br(new Date).subtract(3,"months").format("YYYY-MM-DD")),v=a,b=0,w=0,S=0,x=0,C=0,E=[];Object.keys(Wh).forEach(e=>{jh(e,Wh[e])});const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},T=t=>{var e=new URL(`${h}/player/${c}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(g).toISOString()}~${new Date(v).toISOString()}]`,n=(e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,n).then(e=>e.json()).then(e=>{r(11,x=Math.ceil(e.total/6)),0<=t-6&&r(8,b=t-6),t+6<e.total&&r(9,w=t+6),r(10,S=6*(x-1)),r(12,C=t/6),r(13,E=e.items)},e=>{console.error(e)})},P=e=>{g=e.target.value},D=e=>{v=e.target.value};e=()=>()=>{s.removeEventListener("change",P),o.removeEventListener("change",D)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"endpoint"in e&&r(18,h=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,c=e.playerid),"lang"in e&&r(0,d=e.lang),"clientstyling"in e&&r(1,p=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&d&&(e=d,gr.set(e)),48&t.$$.dirty[0]&&s&&o&&(s.addEventListener("change",P,!1),o.addEventListener("change",D,!1)),1835008&t.$$.dirty[0]&&u&&c&&h&&T(0),12&t.$$.dirty[0]&&m&&i){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&p&&i&&((e=document.createElement("style")).innerHTML=p,i.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jh(e,t[e])})}).catch(e=>{console.log(e)})},[d,p,m,i,s,o,a,l,b,w,S,x,C,E,n,y,A,T,h,u,c,f,()=>A(),function(e){J[e?"unshift":"push"](()=>{s=e,r(4,s)})},function(e){J[e?"unshift":"push"](()=>{o=e,r(5,o)})},()=>T(0),()=>T(0),()=>T(b),e=>T(6*e),()=>T(w),()=>T(S),function(e){J[e?"unshift":"push"](()=>{i=e,r(3,i)})}]}class ru extends ae{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),oe(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},nu,tu,O,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&j(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),d()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),d()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),d()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),d()}}return customElements.get("player-bonus-history")||customElements.define("player-bonus-history",ru),ru});
|
1689
1689
|
//# sourceMappingURL=player-bonus-history.js.map
|