@everymatrix/casino-hamburger-menu 0.0.249 → 0.0.252

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
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 m(){}const g=e=>e;function c(e){return e()}function h(){return Object.create(null)}function U(e){e.forEach(c)}function y(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return m;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}var e="undefined"!=typeof window;let b=e?()=>window.performance.now():()=>Date.now(),v=e?e=>requestAnimationFrame(e):m;const E=new Set;function _(t){E.forEach(e=>{e.c(t)||(E.delete(e),e.f())}),0!==E.size&&v(_)}function D(e,t){e.appendChild(t)}function F(e,t,r){e.insertBefore(t,r||null)}function k(e){e.parentNode.removeChild(e)}function G(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function $(e){return document.createElement(e)}function j(e){return document.createTextNode(e)}function H(){return j(" ")}function B(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function V(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function X(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function W(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}const w=new Set;let L,T=0;function A(e,t,r,n,o,i,s,a=0){var u=16.666/n;let l="{\n";for(let e=0;e<=1;e+=u){const n=t+(r-t)*i(e);l+=100*e+`%{${s(n,1-n)}}\n`}const c=l+`100% {${s(r,1-r)}}\n}`,h=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(c)}_${a}`,f=e.ownerDocument;w.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild($("style")).sheet),d=f.__svelte_rules||(f.__svelte_rules={});d[h]||(d[h]=!0,p.insertRule(`@keyframes ${h} ${c}`,p.cssRules.length));a=e.style.animation||"";return e.style.animation=`${a?`${a}, `:""}${h} ${n}ms linear ${o}ms 1 both`,T+=1,h}function f(e){L=e}const p=[],O=[],n=[],o=[],d=Promise.resolve();let S=!1;function z(e){n.push(e)}let i=!1;const s=new Set;function P(){if(!i){i=!0;do{for(let e=0;e<p.length;e+=1){var t=p[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),U(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(z))}}(t.$$)}for(f(null),p.length=0;O.length;)O.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,p.length);for(;o.length;)o.pop()();S=!1,i=!1,s.clear()}}let C;function I(e,t,r){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}(`${t?"intro":"outro"}${r}`))}const a=new Set;let x;function N(e,t){e&&e.i&&(a.delete(e),e.i(t))}function u(e,t,r,n){e&&e.o&&(a.has(e)||(a.add(e),x.c.push(()=>{a.delete(e),n&&(r&&e.d(1),n())}),e.o(t)))}const R={duration:0};function q(a,e,t,r){let u=e(a,t),l=r?0:1,c=null,h=null,f=null;function p(){f&&function(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),T-=o,T||v(()=>{T||(w.forEach(e=>{const t=e.__svelte_stylesheet;let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.__svelte_rules={}}),w.clear())}))}(a,f)}function d(e,t){var r=e.b-l;return t*=Math.abs(r),{a:l,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:r=300,easing:n=g,tick:o=m,css:i}=u||R,s={start:b()+t,b:e};e||(s.group=x,x.r+=1),c||h?h=s:(i&&(p(),f=A(a,l,e,r,t,n,i)),e&&o(0,1),c=d(s,r),z(()=>I(a,e,"start")),function(t){let r;0===E.size&&v(_),new Promise(e=>{E.add(r={c:t,f:e})})}(e=>{return h&&e>h.start&&(c=d(h,r),h=null,I(a,c.b,"start"),i&&(p(),f=A(a,l,c.b,c.duration,0,n,u.css))),c&&(e>=c.end?(o(l=c.b,1-l),I(a,c.b,"end"),h||(c.b?p():--c.group.r||U(c.group.c)),c=null):e>=c.start&&(e=e-c.start,l=c.a+c.d*n(e/c.duration),o(l,1-l))),!(!c&&!h)}))}return{run(e){y(u)?(C||(C=Promise.resolve(),C.then(()=>{C=null})),C.then(()=>{u=u(),n(e)})):n(e)},end(){p(),c=h=null}}}function t(n,e,t,r,o,i,s=[-1]){var a=L;f(n);const u=n.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&(r=e,-1===(e=n).$$.dirty[0]&&(p.push(e),S||(S=!0,d.then(P)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),l=!0,U(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const m=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&N(n.$$.fragment),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=t.$$;o&&o.m(e,r),n||z(()=>{var e=i.map(c).filter(y);s?s.push(...e):U(e),t.$$.on_mount=[]}),a.forEach(z)}(n,e.target,e.anchor,e.customElement),P()}f(a)}let l;function Y(e,{delay:t=0,duration:r=400,easing:n=g}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*o}}"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(c).filter(y);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){U(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(U(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=m}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var K,Z,Q="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Q&&Q,J="URLSearchParams"in Q,ee="Symbol"in Q&&"iterator"in Symbol,te="FileReader"in Q&&"Blob"in Q&&function(){try{return new Blob,!0}catch(e){return!1}}(),re="FormData"in Q,ne="ArrayBuffer"in Q;function oe(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 ie(e){return e="string"!=typeof e?String(e):e}function se(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ee&&(e[Symbol.iterator]=function(){return e}),e}function ae(t){this.map={},t instanceof ae?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ue(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function le(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function ce(e){var t=new FileReader,r=le(t);return t.readAsArrayBuffer(e),r}function he(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function fe(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:te&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:re&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:J&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ne&&te&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=he(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ne&&(ArrayBuffer.prototype.isPrototypeOf(e)||Z(e))?this._bodyArrayBuffer=he(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):J&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},te&&(this.blob=function(){var e=ue(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ue(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(ce)}),this.text=function(){var e,t,r=ue(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=le(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},re&&(this.formData=function(){return this.text().then(me)}),this.json=function(){return this.text().then(JSON.parse)},this}ne&&(K=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Z=ArrayBuffer.isView||function(e){return e&&-1<K.indexOf(Object.prototype.toString.call(e))}),ae.prototype.append=function(e,t){e=oe(e),t=ie(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},ae.prototype.delete=function(e){delete this.map[oe(e)]},ae.prototype.get=function(e){return e=oe(e),this.has(e)?this.map[e]:null},ae.prototype.has=function(e){return this.map.hasOwnProperty(oe(e))},ae.prototype.set=function(e,t){this.map[oe(e)]=ie(t)},ae.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},ae.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),se(r)},ae.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),se(t)},ae.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),se(r)},ee&&(ae.prototype[Symbol.iterator]=ae.prototype.entries);var pe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function de(e,t){if(!(this instanceof de))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof de){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ae(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ae(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<pe.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function me(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function ge(e,t){if(!(this instanceof ge))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ae(t.headers),this.url=t.url||"",this._initBody(e)}de.prototype.clone=function(){return new de(this,{body:this._bodyInit})},fe.call(de.prototype),fe.call(ge.prototype),ge.prototype.clone=function(){return new ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ae(this.headers),url:this.url})},ge.error=function(){var e=new ge(null,{status:0,statusText:""});return e.type="error",e};var ye=[301,302,303,307,308];ge.redirect=function(e,t){if(-1===ye.indexOf(t))throw new RangeError("Invalid status code");return new ge(null,{status:t,headers:{location:e}})};var be=Q.DOMException;try{new be}catch(m){(be=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),be.prototype.constructor=be}function ve(n,s){return new Promise(function(o,e){var t=new de(n,s);if(t.signal&&t.signal.aborted)return e(new be("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new ae,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(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new ge(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new be("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&Q.location.href?Q.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(te?i.responseType="blob":ne&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof ae?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,ie(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}ve.polyfill=!0,Q.fetch||(Q.fetch=ve,Q.Headers=ae,Q.Request=de,Q.Response=ge),self.fetch.bind(self);var Ee=function(e,t){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function _e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ee(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function we(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Ae(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Se(e){return"function"==typeof e}function Pe(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 Me=Pe(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 Le(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Oe=(Ie.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=we(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(Se(i))try{i()}catch(e){o=e instanceof Me?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var u=we(i),l=u.next();!l.done;l=u.next()){var c=l.value;try{Ne(c)}catch(e){o=null!=o?o:[],e instanceof Me?o=Ae(Ae([],Te(o)),Te(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Me(o)}},Ie.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ne(e);else{if(e instanceof Ie){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},Ie.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ie.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ie.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},Ie.prototype.remove=function(e){var t=this._teardowns;t&&Le(t,e),e instanceof Ie&&e._removeParent(this)},Ie.EMPTY=((er=new Ie).closed=!0,er),Ie),Ce=Oe.EMPTY;function Ie(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function xe(e){return e instanceof Oe||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Ne(e){Se(e)?e():e.unsubscribe()}var Re=void 0,Ue=!1,De=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Ae([],Te(e)))};function Fe(){}function ke(e){e()}var Ge,$e,je=(_e(Ve,$e=Oe),Ve.create=function(e,t,r){return new He(e,t,r)},Ve.prototype.next=function(e){this.isStopped||this._next(e)},Ve.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Ve.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ve.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,$e.prototype.unsubscribe.call(this),this.destination=null)},Ve.prototype._next=function(e){this.destination.next(e)},Ve.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Ve.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ve),He=(_e(Be,Ge=je),Be);function Be(e,t,r){var n,o,i=Ge.call(this)||this;return Se(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&Ue?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Xe(o):Fe,error:Xe(null!=t?t:We),complete:r?Xe(r):Fe},i}function Ve(e){var t=$e.call(this)||this;return t.isStopped=!1,e?xe(t.destination=e)&&e.add(t):t.destination=ze,t}function Xe(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,Ae([],Te(e)))}catch(e){t=e,De(function(){throw t})}}}function We(e){throw e}var ze={closed:!0,next:Fe,error:We,complete:Fe},qe="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ye(e){return e}var Ke=(Ze.prototype.lift=function(e){var t=new Ze;return t.source=this,t.operator=e,t},Ze.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof je||n&&Se(n.next)&&Se(n.error)&&Se(n.complete)&&xe(n)?e:new He(e,t,r);return ke(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},Ze.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ze.prototype.forEach=function(n,e){var o=this;return new(e=Qe(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ze.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ze.prototype[qe]=function(){return this},Ze.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Ye:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ze.prototype.toPromise=function(e){var n=this;return new(e=Qe(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ze.create=function(e){return new Ze(e)},Ze);function Ze(e){e&&(this._subscribe=e)}function Qe(e){return null!==(e=null!=e?e:Re)&&void 0!==e?e:Promise}var Je,et,tt,rt=Pe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nt=(_e(lt,tt=Ke),lt.prototype.lift=function(e){var t=new ot(this,this);return t.operator=e,t},lt.prototype._throwIfClosed=function(){if(this.closed)throw new rt},lt.prototype.next=function(i){var s=this;ke(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=we(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},lt.prototype.error=function(t){var r=this;ke(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},lt.prototype.complete=function(){var t=this;ke(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},lt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(lt.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),lt.prototype._trySubscribe=function(e){return this._throwIfClosed(),tt.prototype._trySubscribe.call(this,e)},lt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},lt.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?Ce:(n.push(e),new Oe(function(){return Le(n,e)}))},lt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},lt.prototype.asObservable=function(){var e=new Ke;return e.source=this,e},lt.create=function(e,t){return new ot(e,t)},lt),ot=(_e(ut,et=nt),ut.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},ut.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},ut.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},ut.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:Ce},ut),it={now:function(){return(it.delegate||Date).now()},delegate:void 0},st=(_e(at,Je=nt),at.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),Je.prototype.next.call(this,e)},at.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},at.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},at);function at(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=it);var n=Je.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function ut(e,t){var r=et.call(this)||this;return r.destination=e,r.source=t,r}function lt(){var e=tt.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let ct=[],ht={};const ft=[];function pt(n,o=m){let i;const s=[];function a(e){if(r(n,e)&&(n=e,i)){const e=!ft.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),ft.push(t,n)}if(e){for(let e=0;e<ft.length;e+=2)ft[e][0](ft[e+1]);ft.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=m){const r=[e,t];return s.push(r),1===s.length&&(i=o(a)||m),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function dt(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return{subscribe:pt(t,t=>{let r=!1;const n=[];let o=0,i=m;const s=()=>{var e;o||(i(),e=a(u?n[0]:n,t),c?t(e):i=y(e)?e:m)},e=l.map((e,t)=>M(e,e=>{n[t]=e,o&=~(1<<t),r&&s()},()=>{o|=1<<t}));return r=!0,s(),function(){U(e),i()}}).subscribe}}var mt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===gt));var t},gt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function yt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?wt(Array.isArray(e)?[]:{},e,t):e}function bt(e,t,r){return e.concat(t).map(function(e){return yt(e,r)})}function vt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Et(e,t){try{return t in e}catch(e){return!1}}function _t(n,o,i){var s={};return i.isMergeableObject(n)&&vt(n).forEach(function(e){s[e]=yt(n[e],i)}),vt(o).forEach(function(t){var e,r;(!Et(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Et(n,t)&&i.isMergeableObject(o[t])?s[t]=function(){if(!i.customMerge)return wt;var e=i.customMerge(t);return"function"==typeof e?e:wt}()(n[t],o[t],i):s[t]=yt(o[t],i))}),s}function wt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||bt,r.isMergeableObject=r.isMergeableObject||mt,r.cloneUnlessOtherwiseSpecified=yt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):_t(e,t,r):yt(t,r)}wt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return wt(e,t,r)},{})};var Tt=wt,At=function(e,t){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function St(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}At(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Pt,Mt,Lt,Ot=function(){return(Ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Ct(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function It(e){return e.type===Mt.literal}function xt(e){return e.type===Mt.number}function Nt(e){return e.type===Mt.date}function Rt(e){return e.type===Mt.time}function Ut(e){return e.type===Mt.select}function Dt(e){return e.type===Mt.plural}function Ft(e){return e.type===Mt.tag}function kt(e){return e&&"object"==typeof e&&e.type===Lt.number}function Gt(e){return e&&"object"==typeof e&&e.type===Lt.dateTime}(tr=Pt=Pt||{})[tr.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",tr[tr.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",tr[tr.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",tr[tr.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",tr[tr.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",tr[tr.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",tr[tr.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",tr[tr.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",tr[tr.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",tr[tr.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",tr[tr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",tr[tr.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",tr[tr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",tr[tr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",tr[tr.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",tr[tr.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",tr[tr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",tr[tr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",tr[tr.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",tr[tr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",tr[tr.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",tr[tr.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",tr[tr.INVALID_TAG=23]="INVALID_TAG",tr[tr.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",tr[tr.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",tr[tr.UNCLOSED_TAG=27]="UNCLOSED_TAG",(rr=Mt=Mt||{})[rr.literal=0]="literal",rr[rr.argument=1]="argument",rr[rr.number=2]="number",rr[rr.date=3]="date",rr[rr.time=4]="time",rr[rr.select=5]="select",rr[rr.plural=6]="plural",rr[rr.pound=7]="pound",rr[rr.tag=8]="tag",(nr=Lt=Lt||{})[nr.number=0]="number",nr[nr.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$t=/(?:[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 jt,Ht=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Bt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vt=/^(@+)?(\+|#+)?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Wt=/^(0+)$/;function zt(e){var n={};return e.replace(Vt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function qt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Yt(e){return qt(e)||{}}function Kt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=Ot(Ot(Ot({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return Ot(Ot({},e),Yt(t))},{}));continue;case"engineering":s=Ot(Ot(Ot({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return Ot(Ot({},e),Yt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Xt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Bt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Bt,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),o.options.length&&(s=Ot(Ot({},s),zt(o.options[0])))}else Vt.test(o.stem)?s=Ot(Ot({},s),zt(o.stem)):((n=qt(o.stem))&&(s=Ot(Ot({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=Ot(Ot({},s),n)))}return s}var Zt=new RegExp("^"+e.source+"*"),Qt=new RegExp(e.source+"*$");function Jt(e,t){return{start:e,end:t}}var er=!!String.prototype.startsWith,qe=!!String.fromCodePoint,nt=!!Object.fromEntries,tr=!!String.prototype.codePointAt,rr=!!String.prototype.trimStart,nr=!!String.prototype.trimEnd,or=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(jt=pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===jt?void 0:jt[0])}catch(m){e=!1}var ir,sr,ar=er?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ur=qe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},lr=nt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},cr=tr?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},hr=rr?function(e){return e.trimStart()}:function(e){return e.replace(Zt,"")},fr=nr?function(e){return e.trimEnd()}:function(e){return e.replace(Qt,"")};function pr(e,t){return new RegExp(e,t)}sr=e?(ir=pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ir.lastIndex=t,null!==(e=ir.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=cr(e,t);if(void 0===o||yr(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return ur.apply(void 0,n)};var dr=(mr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},mr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Pt.UNMATCHED_CLOSING_TAG,Jt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&gr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:Mt.pound,location:Jt(i,this.clonePosition())})}}}return{val:n,err:null}},mr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Mt.literal,value:"<"+n+"/>",location:Jt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!gr(this.char()))return this.error(Pt.INVALID_TAG,Jt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(Pt.UNMATCHED_CLOSING_TAG,Jt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Mt.tag,value:n,children:e,location:Jt(r,this.clonePosition())},err:null}:this.error(Pt.INVALID_TAG,Jt(t,this.clonePosition())))}return this.error(Pt.UNCLOSED_TAG,Jt(r,this.clonePosition()))}return this.error(Pt.INVALID_TAG,Jt(r,this.clonePosition()))},mr.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())},mr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Jt(r,this.clonePosition());return{val:{type:Mt.literal,value:n,location:r},err:null}},mr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(gr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},mr.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return ur.apply(void 0,t)},mr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),ur(r))},mr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Pt.EMPTY_ARGUMENT,Jt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Pt.MALFORMED_ARGUMENT,Jt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Mt.argument,value:n,location:Jt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Pt.MALFORMED_ARGUMENT,Jt(r,this.clonePosition()))}},mr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=sr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Jt(e,this.clonePosition())}},mr.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Pt.EXPECT_ARGUMENT_TYPE,Jt(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(h=fr(f.val)).length)return this.error(Pt.EXPECT_ARGUMENT_STYLE,Jt(this.clonePosition(),this.clonePosition()));u={style:h,styleLocation:Jt(l,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Jt(n,this.clonePosition());if(u&&ar(null==u?void 0:u.style,"::",0)){l=hr(u.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?f:{val:{type:Mt.number,value:r,location:c,style:f.val},err:null};if(0===l.length)return this.error(Pt.EXPECT_DATE_TIME_SKELETON,c);var h={type:Lt.dateTime,pattern:l,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},l.replace($t,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}};return{val:{type:"date"===s?Mt.date:Mt.time,value:r,location:c,style:h},err:null}}return{val:{type:"number"===s?Mt.number:"date"===s?Mt.date:Mt.time,value:r,location:c,style:null!==(c=null==u?void 0:u.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Pt.EXPECT_SELECT_ARGUMENT_OPTIONS,Jt(u,Ot({},u)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Jt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Jt(n,this.clonePosition());return"select"===s?{val:{type:Mt.select,value:r,options:lr(c.val),location:p},err:null}:{val:{type:Mt.plural,value:r,options:lr(c.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(Pt.INVALID_ARGUMENT_TYPE,Jt(i,a))}},mr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},mr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Pt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Jt(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},mr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Ht).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(Pt.INVALID_NUMBER_SKELETON,t)}return{val:{type:Lt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Kt(r):{}},err:null}},mr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Pt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=Jt(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?Pt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Pt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Pt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Jt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;l=this.tryParseArgumentClose(h);if(l.err)return l;i.push([a,{value:c.val,location:Jt(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===i.length?this.error("select"===t?Pt.EXPECT_SELECT_ARGUMENT_SELECTOR:Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Jt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Pt.MISSING_OTHER_CLAUSE,Jt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},mr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Jt(n,this.clonePosition());return o?or(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},mr.prototype.offset=function(){return this.position.offset},mr.prototype.isEOF=function(){return this.offset()===this.message.length},mr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},mr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=cr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},mr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},mr.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))},mr.prototype.bumpIf=function(e){if(ar(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},mr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},mr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},mr.prototype.bumpSpace=function(){for(;!this.isEOF()&&yr(this.char());)this.bump()},mr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},mr);function mr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function gr(e){return 97<=e&&e<=122||65<=e&&e<=90}function yr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function br(e,t){t=Ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new dr(e,t).parse();if(r.err){e=SyntaxError(Pt[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Ut(e)||Dt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else xt(e)&&kt(e.style)||(Nt(e)||Rt(e))&&Gt(e.style)?delete e.style.location:Ft(e)&&r(e.children)})}(r.val),r.val}function vr(e,t){var r=t&&t.cache?t.cache:Pr,n=t&&t.serializer?t.serializer:Tr;return(t&&t.strategy?t.strategy:function(e,t){return wr(e,this,1===e.length?Er:_r,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Er(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function _r(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function wr(e,t,r,n,o){return r.bind(t,e,n,o)}var Tr=function(){return JSON.stringify(arguments)};function Ar(){this.cache=Object.create(null)}Ar.prototype.has=function(e){return e in this.cache},Ar.prototype.get=function(e){return this.cache[e]},Ar.prototype.set=function(e,t){this.cache[e]=t};var Sr,Pr={create:function(){return new Ar}},Mr={variadic:function(e,t){return wr(e,this,_r,t.cache.create(),t.serializer)},monadic:function(e,t){return wr(e,this,Er,t.cache.create(),t.serializer)}};(e=Sr=Sr||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Lr,Or,Cr,Ir,xr,Nr=(St($r,xr=Error),$r.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},$r),Rr=(St(Gr,Ir=Nr),Gr),Ur=(St(kr,Cr=Nr),kr),Dr=(St(Fr,Or=Nr),Fr);function Fr(e,t){return Or.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Sr.MISSING_VALUE,t)||this}function kr(e,t,r){return Cr.call(this,'Value for "'+e+'" must be of type '+t,Sr.INVALID_VALUE,r)||this}function Gr(e,t,r,n){return Ir.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Sr.INVALID_VALUE,n)||this}function $r(e,t,r){e=xr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function jr(e,t,r,n,o,i,s){if(1===e.length&&It(e[0]))return[{type:Lr.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(It(c))a.push({type:Lr.literal,value:c.value});else if(c.type===Mt.pound)"number"==typeof i&&a.push({type:Lr.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Dr(h,s);var f=o[h];if(c.type===Mt.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Lr.literal:Lr.object,value:f});else if(Nt(c)){var p="string"==typeof c.style?n.date[c.style]:Gt(c.style)?c.style.parsedOptions:void 0;a.push({type:Lr.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(Rt(c))p="string"==typeof c.style?n.time[c.style]:Gt(c.style)?c.style.parsedOptions:void 0,a.push({type:Lr.literal,value:r.getDateTimeFormat(t,p).format(f)});else if(xt(c))(p="string"==typeof c.style?n.number[c.style]:kt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Lr.literal,value:r.getNumberFormat(t,p).format(f)});else{if(Ft(c)){var d=c.children,m=c.value,h=o[m];if("function"!=typeof h)throw new Ur(m,"function",s);d=h(jr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?Lr.literal:Lr.object,value:e}}))}if(Ut(c)){if(!(g=c.options[f]||c.options.other))throw new Rr(c.value,f,Object.keys(c.options),s);a.push.apply(a,jr(g.value,t,r,n,o))}else if(Dt(c)){if(!(g=c.options["="+f])){if(!Intl.PluralRules)throw new Nr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),g=c.options[d]||c.options.other}if(!g)throw new Rr(c.value,f,Object.keys(c.options),s);a.push.apply(a,jr(g.value,t,r,n,o,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Lr.literal&&t.type===Lr.literal?r.value+=t.value:e.push(t),e},[])}function Hr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(e=Lr=Lr||{})[e.literal=0]="literal",e[e.object=1]="object";var Br=(Object.defineProperty(Vr,"defaultLocale",{get:function(){return Vr.memoizedDefaultLocale||(Vr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Vr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Vr.memoizedDefaultLocale=null,Vr.__parse=br,Vr.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"}}},Vr);function Vr(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=Vr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Lr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return jr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Vr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Vr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Vr.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?Ot(Ot(Ot({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=Ot(Ot({},r[t]),n[t]||{}),e},{})):r),e},Ot({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Ct([void 0],t)))},{cache:Hr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Mr.variadic}),getDateTimeFormat:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ct([void 0],t)))},{cache:Hr(n.dateTime),strategy:Mr.variadic}),getPluralRules:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Ct([void 0],t)))},{cache:Hr(n.pluralRules),strategy:Mr.variadic})}}const Xr={},Wr=(t,r)=>{if(null!=r){if(r in Xr&&t in Xr[r])return Xr[r][t];var n,o,i=ln(r);for(let e=0;e<i.length;e++){var s=(n=i[e],o=t,Yr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return zr[e]||null}(n),o):null);if(s)return n=t,o=r,(s=s)&&(o in Xr||(Xr[o]={}),n in Xr[o]||(Xr[o][n]=s),s)}}};let zr;const qr=pt({});function Yr(e){return e in zr}function Kr(t,...r){delete Xr[t],qr.update(e=>(e[t]=Tt.all([e[t]||{},...r]),e))}dt([qr],([e])=>Object.keys(e)),qr.subscribe(e=>zr=e);const Zr={};function Qr(e){return Zr[e]}function Jr(e){return ln(e).some(e=>{return null===(e=Qr(e))||void 0===e?void 0:e.size})}const en={};function tn(e){if(!Jr(e))return e in en?en[e]:void 0;const t=ln(e).map(e=>{var t=Qr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return en[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Zr[e].delete(t),0===Zr[e].size&&delete Zr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Kr(t,...e))}(e))).then(()=>Jr(e)?tn(e):void delete en[e]),en[e]}function rn(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const nn={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const on=pt(!1);let sn;const an=pt(null);function un(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function ln(e,t=nn.fallbackLocale){e=un(e);return t?[...new Set([...e,...un(t)])]:e}an.subscribe(e=>{sn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const cn=an.set;an.set=t=>{if(function(e){if(null!=e){var t=ln(e);for(let e=0;e<t.length;e++){var r=t[e];if(Yr(r))return r}}}(t)&&Jr(t)){var{loadingDelay:r}=nn;let e;return"undefined"!=typeof window&&null!=sn&&r?e=window.setTimeout(()=>on.set(!0),r):on.set(!0),tn(t).then(()=>{cn(t)}).finally(()=>{clearTimeout(e),on.set(!1)})}return cn(t)},an.update=e=>cn(e(sn));const hn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},fn=(e,t)=>{var{formats:r}=nn;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pn=hn(e=>{var{locale:t,format:r}=e,e=rn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=fn("number",r)),new Intl.NumberFormat(t,e)}),dn=hn(e=>{var{locale:t,format:r}=e,e=rn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=fn("date",r):0===Object.keys(e).length&&(e=fn("date","short")),new Intl.DateTimeFormat(t,e)}),mn=hn(e=>{var{locale:t,format:r}=e,e=rn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=fn("time",r):0===Object.keys(e).length&&(e=fn("time","short")),new Intl.DateTimeFormat(t,e)}),gn=hn((e,t=sn)=>new Br(e,t,nn.formats,{ignoreTag:nn.ignoreTag})),yn=dt([an,qr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=sn,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Wr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else nn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${ln(n).join('", "')}".${Jr(sn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let s=i;try{s=gn(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});dt([an],()=>(e,t)=>((e={})=>{var{locale:t=sn}=e,e=rn(e,["locale"]);return mn(Object.assign({locale:t},e))})(t).format(e)),dt([an],()=>(e,t)=>((e={})=>{var{locale:t=sn}=e,e=rn(e,["locale"]);return dn(Object.assign({locale:t},e))})(t).format(e)),dt([an],()=>(e,t)=>((e={})=>{var{locale:t=sn}=e,e=rn(e,["locale"]);return pn(Object.assign({locale:t},e))})(t).format(e)),dt([an,qr],()=>(e,t=sn)=>Wr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==ct.indexOf(e)&&(t=new st(t),ht[e]=t,ct.push(e)),ht[e]}};const bn={en:{languageSelector:{language:"Select Language"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}}};function vn(e,t,r){const n=e.slice();return n[0]=t[r],n}function En(e,t,r){const n=e.slice();return n[33]=t[r],n}function _n(e,t,r){const n=e.slice();return n[36]=t[r],n}function wn(r){let n,o,i,s,a,u,l,c,h,f,p,d,m,g,y,b,v,E,_,w,T,A,t,S,P,M,L=r[10]("languageSelector.language")+"",O=r[2],C=[];for(let e=0;e<O.length;e+=1)C[e]=Tn(_n(r,O,e));let I=r[4],x=[];for(let e=0;e<I.length;e+=1)x[e]=An(En(r,I,e));let N=r[8],R=[];for(let e=0;e<N.length;e+=1)R[e]=Sn(vn(r,N,e));return{c(){n=$("div"),o=$("span"),i=$("slot"),i.innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',u=H(),l=$("div"),c=$("ul");for(let e=0;e<C.length;e+=1)C[e].c();p=H(),d=$("ul");for(let e=0;e<x.length;e+=1)x[e].c();y=H(),b=$("div"),v=$("span"),E=j(L),_=H(),w=$("select");for(let e=0;e<R.length;e+=1)R[e].c();V(i,"name","close"),V(o,"class",s=r[5]?"ModalCloseBtn":""),V(o,"part",a=r[5]?"ModalCloseBtn":""),V(o,"role","button"),V(c,"class",h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),V(c,"part",f="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),V(d,"class",m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),V(d,"part",g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),V(w,"class","Item ItemLanguage"),V(w,"part","Item ItemLanguage"),void 0===r[9]&&z(()=>r[19].call(w)),V(b,"class","LanguageSelectorTitle"),V(b,"part","LanguageSelectorTitle"),V(l,"class",T="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),V(l,"part",A="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),V(n,"class","HamburgerModalWindow"),V(n,"part","HamburgerModalWindow")},m(e,t){F(e,n,t),D(n,o),D(o,i),D(n,u),D(n,l),D(l,c);for(let e=0;e<C.length;e+=1)C[e].m(c,null);D(l,p),D(l,d);for(let e=0;e<x.length;e+=1)x[e].m(d,null);D(l,y),D(l,b),D(b,v),D(v,E),D(b,_),D(b,w);for(let e=0;e<R.length;e+=1)R[e].m(w,null);W(w,r[9]),r[21](n),S=!0,P||(M=[B(o,"click",r[11]),B(w,"change",r[19]),B(w,"change",r[20])],P=!0)},p(e,t){if(r=e,(!S||32&t[0]&&s!==(s=r[5]?"ModalCloseBtn":""))&&V(o,"class",s),(!S||32&t[0]&&a!==(a=r[5]?"ModalCloseBtn":""))&&V(o,"part",a),4108&t[0]){let e;for(O=r[2],e=0;e<O.length;e+=1){const o=_n(r,O,e);C[e]?C[e].p(o,t):(C[e]=Tn(o),C[e].c(),C[e].m(c,null))}for(;e<C.length;e+=1)C[e].d(1);C.length=O.length}if((!S||64&t[0]&&h!==(h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&V(c,"class",h),(!S||64&t[0]&&f!==(f="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&V(c,"part",f),16&t[0]){let e;for(I=r[4],e=0;e<I.length;e+=1){const o=En(r,I,e);x[e]?x[e].p(o,t):(x[e]=An(o),x[e].c(),x[e].m(d,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=I.length}if((!S||64&t[0]&&m!==(m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&V(d,"class",m),(!S||64&t[0]&&g!==(g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&V(d,"part",g),(!S||1024&t[0])&&L!==(L=r[10]("languageSelector.language")+"")&&X(E,L),256&t[0]){let e;for(N=r[8],e=0;e<N.length;e+=1){const o=vn(r,N,e);R[e]?R[e].p(o,t):(R[e]=Sn(o),R[e].c(),R[e].m(w,null))}for(;e<R.length;e+=1)R[e].d(1);R.length=N.length}768&t[0]&&W(w,r[9]),(!S||32&t[0]&&T!==(T="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&V(l,"class",T),(!S||32&t[0]&&A!==(A="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&V(l,"part",A)},i(e){S||(z(()=>{t=t||q(n,Y,{transitionDuration:Mn},!0),t.run(1)}),S=!0)},o(e){t=t||q(n,Y,{transitionDuration:Mn},!1),t.run(0),S=!1},d(e){e&&k(n),G(C,e),G(x,e),G(R,e),r[21](null),e&&t&&t.end(),P=!1,U(M)}}}function Tn(r){let n,o,i,s,a,u,l,c,h,f,p,d=r[36].label+"";function m(){return r[18](r[36])}return{c(){n=$("li"),o=$("div"),i=$("img"),a=H(),u=j(d),l=H(),i.src!==(s=r[36].img)&&V(i,"src",s),V(i,"alt","menu icon"),V(o,"class","HamburgerItemContainer"),V(o,"part","HamburgerItemContainer"),V(n,"class",c=r[3]===r[36].id?"ActiveItem":""),V(n,"part",h=r[3]===r[36].id?"ActiveItem":"")},m(e,t){F(e,n,t),D(n,o),D(o,i),D(o,a),D(o,u),D(n,l),f||(p=B(n,"click",m),f=!0)},p(e,t){r=e,4&t[0]&&i.src!==(s=r[36].img)&&V(i,"src",s),4&t[0]&&d!==(d=r[36].label+"")&&X(u,d),12&t[0]&&c!==(c=r[3]===r[36].id?"ActiveItem":"")&&V(n,"class",c),12&t[0]&&h!==(h=r[3]===r[36].id?"ActiveItem":"")&&V(n,"part",h)},d(e){e&&k(n),f=!1,p()}}}function An(e){let r,n,o,i,s,a,u,l,c=e[33].label+"";return{c(){r=$("li"),n=$("a"),o=$("img"),s=H(),a=j(c),l=H(),o.src!==(i=e[33].img)&&V(o,"src",i),V(o,"alt","menu icon"),V(n,"href",u=e[33].path)},m(e,t){F(e,r,t),D(r,n),D(n,o),D(n,s),D(n,a),D(r,l)},p(e,t){16&t[0]&&o.src!==(i=e[33].img)&&V(o,"src",i),16&t[0]&&c!==(c=e[33].label+"")&&X(a,c),16&t[0]&&u!==(u=e[33].path)&&V(n,"href",u)},d(e){e&&k(r)}}}function Sn(e){let r,n,o,i=e[0]+"";return{c(){r=$("option"),n=j(i),r.__value=o=e[0],r.value=r.__value,r.selected=!0},m(e,t){F(e,r,t),D(r,n)},p(e,t){256&t[0]&&i!==(i=e[0]+"")&&X(n,i),256&t[0]&&o!==(o=e[0])&&(r.__value=o,r.value=r.__value)},d(e){e&&k(r)}}}function Pn(e){let r,n,o=!0===e[7]&&wn(e);return{c(){o&&o.c(),r=j(""),this.c=m},m(e,t){o&&o.m(e,t),F(e,r,t),n=!0},p(e,t){!0===e[7]?o?(o.p(e,t),128&t[0]&&N(o,1)):(o=wn(e),o.c(),N(o,1),o.m(r.parentNode,r)):o&&(x={r:0,c:[],p:x},u(o,1,1,()=>{o=null}),x.r||U(x.c),x=x.p)},i(e){n||(N(o),n=!0)},o(e){u(o),n=!1},d(e){o&&o.d(e),e&&k(r)}}}let Mn=350;function Ln(t,e,r){let n;var o=yn;t.$$.on_destroy.push(M(o,e=>r(10,n=e)));let i,s,{menuitemsurl:a=""}=e,{lang:u="en"}=e,{activecategory:l=""}=e,{languageslist:c=""}=e,h=window.navigator.userAgent,f=[],p="",d=[],m=!1,g=!1,y=!1,b=!0,v=[],E=!1,_="";Object.keys(bn).forEach(e=>{Kr(e,bn[e])});const w=e=>{"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),r(7,y=!0),setTimeout(()=>{r(5,m=!0)},500),setTimeout(()=>{r(6,g=!0)},1500),A(a))},T=(e,t)=>{r(3,p=e),r(4,d=t||[])},A=r=>new Promise((e,t)=>{s&&!E?e(s):S(r)}),S=e=>{fetch(e).then(e=>e.json()).then(e=>{r(2,f=e),f.length&&T(f[0].id,f[0].children),r(17,b=!1),s=e,E=!1},e=>{console.error(e)})},P=()=>{E=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:_},window.location.href)};return e=()=>(window.addEventListener("message",w,!1),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(h),()=>{window.removeEventListener("message",w)}),function(){if(!L)throw new Error("Function called outside component initialization");return L}().$$.on_mount.push(e),t.$$set=e=>{"menuitemsurl"in e&&r(14,a=e.menuitemsurl),"lang"in e&&r(0,u=e.lang),"activecategory"in e&&r(15,l=e.activecategory),"languageslist"in e&&r(16,c=e.languageslist)},t.$$.update=()=>{var e;65537&t.$$.dirty[0]&&u&&c&&(e=u,an.set(e),E&&S(a),r(8,v=c.replace(/ /g,"").split(",")),r(8,v=v.map(e=>e.toUpperCase())),r(9,_=u.toUpperCase())),163840&t.$$.dirty[0]&&l&&!b&&(0<(e=f.filter(e=>e.path==l)).length&&T(e[0].id,e[0].children))},[u,void 0,f,p,d,m,g,y,v,_,n,()=>{r(7,y=!1),r(5,m=!1),r(6,g=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},T,P,a,l,c,b,e=>T(e.id,e.children),function(){_=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(9,_),r(8,v)},()=>P(),function(e){O[e?"unshift":"push"](()=>{i=e,r(1,i)})}]}class On extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>.LanguageSelectorTitle{width:94%;position:absolute;bottom:3%}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-color-gray-150, #828282);margin:0 20px;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:12px}.ItemLanguage{height:34px;width:88%;margin:0 20px;text-align:left;line-height:34px;background:transparent;color:var(--emfe-w-color-white, #FFFFFF);border:none}.ItemLanguage option{color:var(--emfe-w-color-contrast, #07072A)}:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:10;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emfe-w-color-black, #000000);width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width .4s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:0;right:0;margin:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:24px;height:24px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emfe-w-color-white, #FFFFFF)}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emfe-w-color-contrast, #07072A);white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C);width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-color-primary, #D0046C)}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emfe-w-color-primary, #D0046C)}</style>",t(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},Ln,Pn,r,{menuitemsurl:14,lang:0,activecategory:15,languageslist:16},[-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),P()))}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist"]}get menuitemsurl(){return this.$$.ctx[14]}set menuitemsurl(e){this.$set({menuitemsurl:e}),P()}get lang(){return this.$$.ctx[0]}set lang(e){this.$set({lang:e}),P()}get activecategory(){return this.$$.ctx[15]}set activecategory(e){this.$set({activecategory:e}),P()}get languageslist(){return this.$$.ctx[16]}set languageslist(e){this.$set({languageslist:e}),P()}}return customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",On),On});
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 m(){}const g=e=>e;function c(e){return e()}function h(){return Object.create(null)}function U(e){e.forEach(c)}function y(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,...t){if(null==e)return m;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}var e="undefined"!=typeof window;let b=e?()=>window.performance.now():()=>Date.now(),v=e?e=>requestAnimationFrame(e):m;const E=new Set;function _(t){E.forEach(e=>{e.c(t)||(E.delete(e),e.f())}),0!==E.size&&v(_)}function D(e,t){e.appendChild(t)}function F(e,t,r){e.insertBefore(t,r||null)}function k(e){e.parentNode.removeChild(e)}function G(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function $(e){return document.createElement(e)}function j(e){return document.createTextNode(e)}function H(){return j(" ")}function B(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function V(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function X(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function W(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}const w=new Set;let L,T=0;function A(e,t,r,n,o,i,s,a=0){var u=16.666/n;let l="{\n";for(let e=0;e<=1;e+=u){const n=t+(r-t)*i(e);l+=100*e+`%{${s(n,1-n)}}\n`}const c=l+`100% {${s(r,1-r)}}\n}`,h=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(c)}_${a}`,f=e.ownerDocument;w.add(f);const p=f.__svelte_stylesheet||(f.__svelte_stylesheet=f.head.appendChild($("style")).sheet),d=f.__svelte_rules||(f.__svelte_rules={});d[h]||(d[h]=!0,p.insertRule(`@keyframes ${h} ${c}`,p.cssRules.length));a=e.style.animation||"";return e.style.animation=`${a?`${a}, `:""}${h} ${n}ms linear ${o}ms 1 both`,T+=1,h}function f(e){L=e}const p=[],O=[],n=[],o=[],d=Promise.resolve();let S=!1;function z(e){n.push(e)}let i=!1;const s=new Set;function P(){if(!i){i=!0;do{for(let e=0;e<p.length;e+=1){var t=p[e];f(t),function(e){{var t;null!==e.fragment&&(e.update(),U(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(z))}}(t.$$)}for(f(null),p.length=0;O.length;)O.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,p.length);for(;o.length;)o.pop()();S=!1,i=!1,s.clear()}}let C;function I(e,t,r){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}(`${t?"intro":"outro"}${r}`))}const a=new Set;let x;function N(e,t){e&&e.i&&(a.delete(e),e.i(t))}function u(e,t,r,n){e&&e.o&&(a.has(e)||(a.add(e),x.c.push(()=>{a.delete(e),n&&(r&&e.d(1),n())}),e.o(t)))}const R={duration:0};function q(a,e,t,r){let u=e(a,t),l=r?0:1,c=null,h=null,f=null;function p(){f&&function(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),T-=o,T||v(()=>{T||(w.forEach(e=>{const t=e.__svelte_stylesheet;let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.__svelte_rules={}}),w.clear())}))}(a,f)}function d(e,t){var r=e.b-l;return t*=Math.abs(r),{a:l,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:r=300,easing:n=g,tick:o=m,css:i}=u||R,s={start:b()+t,b:e};e||(s.group=x,x.r+=1),c||h?h=s:(i&&(p(),f=A(a,l,e,r,t,n,i)),e&&o(0,1),c=d(s,r),z(()=>I(a,e,"start")),function(t){let r;0===E.size&&v(_),new Promise(e=>{E.add(r={c:t,f:e})})}(e=>{return h&&e>h.start&&(c=d(h,r),h=null,I(a,c.b,"start"),i&&(p(),f=A(a,l,c.b,c.duration,0,n,u.css))),c&&(e>=c.end?(o(l=c.b,1-l),I(a,c.b,"end"),h||(c.b?p():--c.group.r||U(c.group.c)),c=null):e>=c.start&&(e=e-c.start,l=c.a+c.d*n(e/c.duration),o(l,1-l))),!(!c&&!h)}))}return{run(e){y(u)?(C||(C=Promise.resolve(),C.then(()=>{C=null})),C.then(()=>{u=u(),n(e)})):n(e)},end(){p(),c=h=null}}}function t(n,e,t,r,o,i,s=[-1]){var a=L;f(n);const u=n.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&(r=e,-1===(e=n).$$.dirty[0]&&(p.push(e),S||(S=!0,d.then(P)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),l=!0,U(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const m=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&N(n.$$.fragment),function(t,e,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=t.$$;o&&o.m(e,r),n||z(()=>{var e=i.map(c).filter(y);s?s.push(...e):U(e),t.$$.on_mount=[]}),a.forEach(z)}(n,e.target,e.anchor,e.customElement),P()}f(a)}let l;function Y(e,{delay:t=0,duration:r=400,easing:n=g}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*o}}"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(c).filter(y);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){U(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(U(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=m}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var K,Z,Q="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Q&&Q,J="URLSearchParams"in Q,ee="Symbol"in Q&&"iterator"in Symbol,te="FileReader"in Q&&"Blob"in Q&&function(){try{return new Blob,!0}catch(e){return!1}}(),re="FormData"in Q,ne="ArrayBuffer"in Q;function oe(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 ie(e){return e="string"!=typeof e?String(e):e}function se(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ee&&(e[Symbol.iterator]=function(){return e}),e}function ae(t){this.map={},t instanceof ae?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ue(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function le(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function ce(e){var t=new FileReader,r=le(t);return t.readAsArrayBuffer(e),r}function he(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function fe(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:te&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:re&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:J&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ne&&te&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=he(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ne&&(ArrayBuffer.prototype.isPrototypeOf(e)||Z(e))?this._bodyArrayBuffer=he(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):J&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},te&&(this.blob=function(){var e=ue(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ue(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(ce)}),this.text=function(){var e,t,r=ue(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=le(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},re&&(this.formData=function(){return this.text().then(me)}),this.json=function(){return this.text().then(JSON.parse)},this}ne&&(K=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Z=ArrayBuffer.isView||function(e){return e&&-1<K.indexOf(Object.prototype.toString.call(e))}),ae.prototype.append=function(e,t){e=oe(e),t=ie(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},ae.prototype.delete=function(e){delete this.map[oe(e)]},ae.prototype.get=function(e){return e=oe(e),this.has(e)?this.map[e]:null},ae.prototype.has=function(e){return this.map.hasOwnProperty(oe(e))},ae.prototype.set=function(e,t){this.map[oe(e)]=ie(t)},ae.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},ae.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),se(r)},ae.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),se(t)},ae.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),se(r)},ee&&(ae.prototype[Symbol.iterator]=ae.prototype.entries);var pe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function de(e,t){if(!(this instanceof de))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof de){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ae(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ae(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<pe.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function me(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function ge(e,t){if(!(this instanceof ge))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ae(t.headers),this.url=t.url||"",this._initBody(e)}de.prototype.clone=function(){return new de(this,{body:this._bodyInit})},fe.call(de.prototype),fe.call(ge.prototype),ge.prototype.clone=function(){return new ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ae(this.headers),url:this.url})},ge.error=function(){var e=new ge(null,{status:0,statusText:""});return e.type="error",e};var ye=[301,302,303,307,308];ge.redirect=function(e,t){if(-1===ye.indexOf(t))throw new RangeError("Invalid status code");return new ge(null,{status:t,headers:{location:e}})};var be=Q.DOMException;try{new be}catch(m){(be=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),be.prototype.constructor=be}function ve(n,s){return new Promise(function(o,e){var t=new de(n,s);if(t.signal&&t.signal.aborted)return e(new be("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new ae,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(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new ge(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new be("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&Q.location.href?Q.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(te?i.responseType="blob":ne&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof ae?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,ie(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}ve.polyfill=!0,Q.fetch||(Q.fetch=ve,Q.Headers=ae,Q.Request=de,Q.Response=ge),self.fetch.bind(self);var Ee=function(e,t){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function _e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ee(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function we(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Ae(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Se(e){return"function"==typeof e}function Pe(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 Me=Pe(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 Le(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Oe=(Ie.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=we(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(Se(i))try{i()}catch(e){o=e instanceof Me?e.errors:[e]}i=this._teardowns;if(i){this._teardowns=null;try{for(var u=we(i),l=u.next();!l.done;l=u.next()){var c=l.value;try{Ne(c)}catch(e){o=null!=o?o:[],e instanceof Me?o=Ae(Ae([],Te(o)),Te(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Me(o)}},Ie.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ne(e);else{if(e instanceof Ie){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},Ie.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ie.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ie.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},Ie.prototype.remove=function(e){var t=this._teardowns;t&&Le(t,e),e instanceof Ie&&e._removeParent(this)},Ie.EMPTY=((er=new Ie).closed=!0,er),Ie),Ce=Oe.EMPTY;function Ie(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function xe(e){return e instanceof Oe||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Ne(e){Se(e)?e():e.unsubscribe()}var Re=void 0,Ue=!1,De=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Ae([],Te(e)))};function Fe(){}function ke(e){e()}var Ge,$e,je=(_e(Ve,$e=Oe),Ve.create=function(e,t,r){return new He(e,t,r)},Ve.prototype.next=function(e){this.isStopped||this._next(e)},Ve.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Ve.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ve.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,$e.prototype.unsubscribe.call(this),this.destination=null)},Ve.prototype._next=function(e){this.destination.next(e)},Ve.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Ve.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ve),He=(_e(Be,Ge=je),Be);function Be(e,t,r){var n,o,i=Ge.call(this)||this;return Se(e)?o=e:e&&(o=e.next,t=e.error,r=e.complete,i&&Ue?(n=Object.create(e)).unsubscribe=function(){return i.unsubscribe()}:n=e,o=null==o?void 0:o.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Xe(o):Fe,error:Xe(null!=t?t:We),complete:r?Xe(r):Fe},i}function Ve(e){var t=$e.call(this)||this;return t.isStopped=!1,e?xe(t.destination=e)&&e.add(t):t.destination=ze,t}function Xe(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,Ae([],Te(e)))}catch(e){t=e,De(function(){throw t})}}}function We(e){throw e}var ze={closed:!0,next:Fe,error:We,complete:Fe},qe="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ye(e){return e}var Ke=(Ze.prototype.lift=function(e){var t=new Ze;return t.source=this,t.operator=e,t},Ze.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof je||n&&Se(n.next)&&Se(n.error)&&Se(n.complete)&&xe(n)?e:new He(e,t,r);return ke(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},Ze.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ze.prototype.forEach=function(n,e){var o=this;return new(e=Qe(e))(function(e,t){var r=o.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ze.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ze.prototype[qe]=function(){return this},Ze.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Ye:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ze.prototype.toPromise=function(e){var n=this;return new(e=Qe(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ze.create=function(e){return new Ze(e)},Ze);function Ze(e){e&&(this._subscribe=e)}function Qe(e){return null!==(e=null!=e?e:Re)&&void 0!==e?e:Promise}var Je,et,tt,rt=Pe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nt=(_e(lt,tt=Ke),lt.prototype.lift=function(e){var t=new ot(this,this);return t.operator=e,t},lt.prototype._throwIfClosed=function(){if(this.closed)throw new rt},lt.prototype.next=function(i){var s=this;ke(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=we(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},lt.prototype.error=function(t){var r=this;ke(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},lt.prototype.complete=function(){var t=this;ke(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},lt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(lt.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),lt.prototype._trySubscribe=function(e){return this._throwIfClosed(),tt.prototype._trySubscribe.call(this,e)},lt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},lt.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?Ce:(n.push(e),new Oe(function(){return Le(n,e)}))},lt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},lt.prototype.asObservable=function(){var e=new Ke;return e.source=this,e},lt.create=function(e,t){return new ot(e,t)},lt),ot=(_e(ut,et=nt),ut.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},ut.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},ut.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},ut.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:Ce},ut),it={now:function(){return(it.delegate||Date).now()},delegate:void 0},st=(_e(at,Je=nt),at.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(i.now()+t)),this._trimBuffer(),Je.prototype.next.call(this,e)},at.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},at.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},at);function at(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=it);var n=Je.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function ut(e,t){var r=et.call(this)||this;return r.destination=e,r.source=t,r}function lt(){var e=tt.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let ct=[],ht={};const ft=[];function pt(n,o=m){let i;const s=[];function a(e){if(r(n,e)&&(n=e,i)){const e=!ft.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),ft.push(t,n)}if(e){for(let e=0;e<ft.length;e+=2)ft[e][0](ft[e+1]);ft.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=m){const r=[e,t];return s.push(r),1===s.length&&(i=o(a)||m),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(i(),i=null)}}}}function dt(e,a,t){const u=!Array.isArray(e),l=u?[e]:e,c=a.length<2;return{subscribe:pt(t,t=>{let r=!1;const n=[];let o=0,i=m;const s=()=>{var e;o||(i(),e=a(u?n[0]:n,t),c?t(e):i=y(e)?e:m)},e=l.map((e,t)=>M(e,e=>{n[t]=e,o&=~(1<<t),r&&s()},()=>{o|=1<<t}));return r=!0,s(),function(){U(e),i()}}).subscribe}}var mt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===gt));var t},gt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function yt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?wt(Array.isArray(e)?[]:{},e,t):e}function bt(e,t,r){return e.concat(t).map(function(e){return yt(e,r)})}function vt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Et(e,t){try{return t in e}catch(e){return!1}}function _t(n,o,i){var s={};return i.isMergeableObject(n)&&vt(n).forEach(function(e){s[e]=yt(n[e],i)}),vt(o).forEach(function(t){var e,r;(!Et(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Et(n,t)&&i.isMergeableObject(o[t])?s[t]=function(){if(!i.customMerge)return wt;var e=i.customMerge(t);return"function"==typeof e?e:wt}()(n[t],o[t],i):s[t]=yt(o[t],i))}),s}function wt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||bt,r.isMergeableObject=r.isMergeableObject||mt,r.cloneUnlessOtherwiseSpecified=yt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):_t(e,t,r):yt(t,r)}wt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return wt(e,t,r)},{})};var Tt=wt,At=function(e,t){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function St(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}At(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Pt,Mt,Lt,Ot=function(){return(Ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Ct(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function It(e){return e.type===Mt.literal}function xt(e){return e.type===Mt.number}function Nt(e){return e.type===Mt.date}function Rt(e){return e.type===Mt.time}function Ut(e){return e.type===Mt.select}function Dt(e){return e.type===Mt.plural}function Ft(e){return e.type===Mt.tag}function kt(e){return e&&"object"==typeof e&&e.type===Lt.number}function Gt(e){return e&&"object"==typeof e&&e.type===Lt.dateTime}(tr=Pt=Pt||{})[tr.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",tr[tr.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",tr[tr.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",tr[tr.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",tr[tr.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",tr[tr.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",tr[tr.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",tr[tr.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",tr[tr.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",tr[tr.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",tr[tr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",tr[tr.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",tr[tr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",tr[tr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",tr[tr.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",tr[tr.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",tr[tr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",tr[tr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",tr[tr.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",tr[tr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",tr[tr.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",tr[tr.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",tr[tr.INVALID_TAG=23]="INVALID_TAG",tr[tr.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",tr[tr.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",tr[tr.UNCLOSED_TAG=27]="UNCLOSED_TAG",(rr=Mt=Mt||{})[rr.literal=0]="literal",rr[rr.argument=1]="argument",rr[rr.number=2]="number",rr[rr.date=3]="date",rr[rr.time=4]="time",rr[rr.select=5]="select",rr[rr.plural=6]="plural",rr[rr.pound=7]="pound",rr[rr.tag=8]="tag",(nr=Lt=Lt||{})[nr.number=0]="number",nr[nr.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$t=/(?:[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 jt,Ht=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Bt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vt=/^(@+)?(\+|#+)?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Wt=/^(0+)$/;function zt(e){var n={};return e.replace(Vt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function qt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Yt(e){return qt(e)||{}}function Kt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=Ot(Ot(Ot({},s),{notation:"scientific"}),o.options.reduce(function(e,t){return Ot(Ot({},e),Yt(t))},{}));continue;case"engineering":s=Ot(Ot(Ot({},s),{notation:"engineering"}),o.options.reduce(function(e,t){return Ot(Ot({},e),Yt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Xt,function(e,t,r,n,o,i){if(t)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wt.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Bt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Bt,function(e,t,r,n,o,i){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),o.options.length&&(s=Ot(Ot({},s),zt(o.options[0])))}else Vt.test(o.stem)?s=Ot(Ot({},s),zt(o.stem)):((n=qt(o.stem))&&(s=Ot(Ot({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Wt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(s=Ot(Ot({},s),n)))}return s}var Zt=new RegExp("^"+e.source+"*"),Qt=new RegExp(e.source+"*$");function Jt(e,t){return{start:e,end:t}}var er=!!String.prototype.startsWith,qe=!!String.fromCodePoint,nt=!!Object.fromEntries,tr=!!String.prototype.codePointAt,rr=!!String.prototype.trimStart,nr=!!String.prototype.trimEnd,or=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(jt=pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===jt?void 0:jt[0])}catch(m){e=!1}var ir,sr,ar=er?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ur=qe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;i<o;){if(1114111<(r=e[i++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},lr=nt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],o=o[1];t[i]=o}return t},cr=tr?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,o=e.charCodeAt(t);return o<55296||56319<o||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},hr=rr?function(e){return e.trimStart()}:function(e){return e.replace(Zt,"")},fr=nr?function(e){return e.trimEnd()}:function(e){return e.replace(Qt,"")};function pr(e,t){return new RegExp(e,t)}sr=e?(ir=pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ir.lastIndex=t,null!==(e=ir.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var o=cr(e,t);if(void 0===o||yr(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return ur.apply(void 0,n)};var dr=(mr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},mr.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Pt.UNMATCHED_CLOSING_TAG,Jt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&gr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:Mt.pound,location:Jt(i,this.clonePosition())})}}}return{val:n,err:null}},mr.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Mt.literal,value:"<"+n+"/>",location:Jt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!gr(this.char()))return this.error(Pt.INVALID_TAG,Jt(t,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(Pt.UNMATCHED_CLOSING_TAG,Jt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Mt.tag,value:n,children:e,location:Jt(r,this.clonePosition())},err:null}:this.error(Pt.INVALID_TAG,Jt(t,this.clonePosition())))}return this.error(Pt.UNCLOSED_TAG,Jt(r,this.clonePosition()))}return this.error(Pt.INVALID_TAG,Jt(r,this.clonePosition()))},mr.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())},mr.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Jt(r,this.clonePosition());return{val:{type:Mt.literal,value:n,location:r},err:null}},mr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(gr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},mr.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return ur.apply(void 0,t)},mr.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),ur(r))},mr.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Pt.EMPTY_ARGUMENT,Jt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Pt.MALFORMED_ARGUMENT,Jt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Mt.argument,value:n,location:Jt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Pt.MALFORMED_ARGUMENT,Jt(r,this.clonePosition()))}},mr.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=sr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Jt(e,this.clonePosition())}},mr.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Pt.EXPECT_ARGUMENT_TYPE,Jt(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(h=fr(f.val)).length)return this.error(Pt.EXPECT_ARGUMENT_STYLE,Jt(this.clonePosition(),this.clonePosition()));u={style:h,styleLocation:Jt(l,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Jt(n,this.clonePosition());if(u&&ar(null==u?void 0:u.style,"::",0)){l=hr(u.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?f:{val:{type:Mt.number,value:r,location:c,style:f.val},err:null};if(0===l.length)return this.error(Pt.EXPECT_DATE_TIME_SKELETON,c);var h={type:Lt.dateTime,pattern:l,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},l.replace($t,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.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":o.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""}),o):{}};return{val:{type:"date"===s?Mt.date:Mt.time,value:r,location:c,style:h},err:null}}return{val:{type:"number"===s?Mt.number:"date"===s?Mt.date:Mt.time,value:r,location:c,style:null!==(c=null==u?void 0:u.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Pt.EXPECT_SELECT_ARGUMENT_OPTIONS,Jt(u,Ot({},u)));this.bumpSpace();var f,c=this.parseIdentifierIfPossible(),u=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Jt(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Pt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Pt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=f.val}c=this.tryParsePluralOrSelectOptions(e,s,t,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Jt(n,this.clonePosition());return"select"===s?{val:{type:Mt.select,value:r,options:lr(c.val),location:p},err:null}:{val:{type:Mt.plural,value:r,options:lr(c.val),offset:u,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(Pt.INVALID_ARGUMENT_TYPE,Jt(i,a))}},mr.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Pt.EXPECT_ARGUMENT_CLOSING_BRACE,Jt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},mr.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Pt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Jt(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},mr.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Ht).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(Pt.INVALID_NUMBER_SKELETON,t)}return{val:{type:Lt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Kt(r):{}},err:null}},mr.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,i=[],s=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Pt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=Jt(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(s.has(a))return this.error("select"===t?Pt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Pt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Pt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Jt(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;l=this.tryParseArgumentClose(h);if(l.err)return l;i.push([a,{value:c.val,location:Jt(h,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,u=h.location}return 0===i.length?this.error("select"===t?Pt.EXPECT_SELECT_ARGUMENT_SELECTOR:Pt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Jt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Pt.MISSING_OTHER_CLAUSE,Jt(this.clonePosition(),this.clonePosition())):{val:i,err:null}},mr.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Jt(n,this.clonePosition());return o?or(i*=r)?{val:i,err:null}:this.error(t,n):this.error(e,n)},mr.prototype.offset=function(){return this.position.offset},mr.prototype.isEOF=function(){return this.offset()===this.message.length},mr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},mr.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=cr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},mr.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},mr.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))},mr.prototype.bumpIf=function(e){if(ar(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},mr.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},mr.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},mr.prototype.bumpSpace=function(){for(;!this.isEOF()&&yr(this.char());)this.bump()},mr.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},mr);function mr(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function gr(e){return 97<=e&&e<=122||65<=e&&e<=90}function yr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function br(e,t){t=Ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new dr(e,t).parse();if(r.err){e=SyntaxError(Pt[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Ut(e)||Dt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else xt(e)&&kt(e.style)||(Nt(e)||Rt(e))&&Gt(e.style)?delete e.style.location:Ft(e)&&r(e.children)})}(r.val),r.val}function vr(e,t){var r=t&&t.cache?t.cache:Pr,n=t&&t.serializer?t.serializer:Tr;return(t&&t.strategy?t.strategy:function(e,t){return wr(e,this,1===e.length?Er:_r,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Er(e,t,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(o);return void 0===r&&(r=e.call(this,n),t.set(o,r)),r}function _r(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=t.get(o);return void 0===r&&(r=e.apply(this,n),t.set(o,r)),r}function wr(e,t,r,n,o){return r.bind(t,e,n,o)}var Tr=function(){return JSON.stringify(arguments)};function Ar(){this.cache=Object.create(null)}Ar.prototype.has=function(e){return e in this.cache},Ar.prototype.get=function(e){return this.cache[e]},Ar.prototype.set=function(e,t){this.cache[e]=t};var Sr,Pr={create:function(){return new Ar}},Mr={variadic:function(e,t){return wr(e,this,_r,t.cache.create(),t.serializer)},monadic:function(e,t){return wr(e,this,Er,t.cache.create(),t.serializer)}};(e=Sr=Sr||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Lr,Or,Cr,Ir,xr,Nr=(St($r,xr=Error),$r.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},$r),Rr=(St(Gr,Ir=Nr),Gr),Ur=(St(kr,Cr=Nr),kr),Dr=(St(Fr,Or=Nr),Fr);function Fr(e,t){return Or.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Sr.MISSING_VALUE,t)||this}function kr(e,t,r){return Cr.call(this,'Value for "'+e+'" must be of type '+t,Sr.INVALID_VALUE,r)||this}function Gr(e,t,r,n){return Ir.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Sr.INVALID_VALUE,n)||this}function $r(e,t,r){e=xr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function jr(e,t,r,n,o,i,s){if(1===e.length&&It(e[0]))return[{type:Lr.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(It(c))a.push({type:Lr.literal,value:c.value});else if(c.type===Mt.pound)"number"==typeof i&&a.push({type:Lr.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!(o&&h in o))throw new Dr(h,s);var f=o[h];if(c.type===Mt.argument)f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Lr.literal:Lr.object,value:f});else if(Nt(c)){var p="string"==typeof c.style?n.date[c.style]:Gt(c.style)?c.style.parsedOptions:void 0;a.push({type:Lr.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(Rt(c))p="string"==typeof c.style?n.time[c.style]:Gt(c.style)?c.style.parsedOptions:void 0,a.push({type:Lr.literal,value:r.getDateTimeFormat(t,p).format(f)});else if(xt(c))(p="string"==typeof c.style?n.number[c.style]:kt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Lr.literal,value:r.getNumberFormat(t,p).format(f)});else{if(Ft(c)){var d=c.children,m=c.value,h=o[m];if("function"!=typeof h)throw new Ur(m,"function",s);d=h(jr(d,t,r,n,o,i).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?Lr.literal:Lr.object,value:e}}))}if(Ut(c)){if(!(g=c.options[f]||c.options.other))throw new Rr(c.value,f,Object.keys(c.options),s);a.push.apply(a,jr(g.value,t,r,n,o))}else if(Dt(c)){if(!(g=c.options["="+f])){if(!Intl.PluralRules)throw new Nr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0)),g=c.options[d]||c.options.other}if(!g)throw new Rr(c.value,f,Object.keys(c.options),s);a.push.apply(a,jr(g.value,t,r,n,o,f-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Lr.literal&&t.type===Lr.literal?r.value+=t.value:e.push(t),e},[])}function Hr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(e=Lr=Lr||{})[e.literal=0]="literal",e[e.object=1]="object";var Br=(Object.defineProperty(Vr,"defaultLocale",{get:function(){return Vr.memoizedDefaultLocale||(Vr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Vr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Vr.memoizedDefaultLocale=null,Vr.__parse=br,Vr.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"}}},Vr);function Vr(e,t,r,n){var o,i,s=this;if(void 0===t&&(t=Vr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Lr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return jr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Vr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Vr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Vr.formats,(i=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=i[t])?Ot(Ot(Ot({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=Ot(Ot({},r[t]),n[t]||{}),e},{})):r),e},Ot({},o)):o),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Ct([void 0],t)))},{cache:Hr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:Mr.variadic}),getDateTimeFormat:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ct([void 0],t)))},{cache:Hr(n.dateTime),strategy:Mr.variadic}),getPluralRules:vr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Ct([void 0],t)))},{cache:Hr(n.pluralRules),strategy:Mr.variadic})}}const Xr={},Wr=(t,r)=>{if(null!=r){if(r in Xr&&t in Xr[r])return Xr[r][t];var n,o,i=ln(r);for(let e=0;e<i.length;e++){var s=(n=i[e],o=t,Yr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return zr[e]||null}(n),o):null);if(s)return n=t,o=r,(s=s)&&(o in Xr||(Xr[o]={}),n in Xr[o]||(Xr[o][n]=s),s)}}};let zr;const qr=pt({});function Yr(e){return e in zr}function Kr(t,...r){delete Xr[t],qr.update(e=>(e[t]=Tt.all([e[t]||{},...r]),e))}dt([qr],([e])=>Object.keys(e)),qr.subscribe(e=>zr=e);const Zr={};function Qr(e){return Zr[e]}function Jr(e){return ln(e).some(e=>{return null===(e=Qr(e))||void 0===e?void 0:e.size})}const en={};function tn(e){if(!Jr(e))return e in en?en[e]:void 0;const t=ln(e).map(e=>{var t=Qr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return en[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Zr[e].delete(t),0===Zr[e].size&&delete Zr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Kr(t,...e))}(e))).then(()=>Jr(e)?tn(e):void delete en[e]),en[e]}function rn(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const nn={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const on=pt(!1);let sn;const an=pt(null);function un(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function ln(e,t=nn.fallbackLocale){e=un(e);return t?[...new Set([...e,...un(t)])]:e}an.subscribe(e=>{sn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const cn=an.set;an.set=t=>{if(function(e){if(null!=e){var t=ln(e);for(let e=0;e<t.length;e++){var r=t[e];if(Yr(r))return r}}}(t)&&Jr(t)){var{loadingDelay:r}=nn;let e;return"undefined"!=typeof window&&null!=sn&&r?e=window.setTimeout(()=>on.set(!0),r):on.set(!0),tn(t).then(()=>{cn(t)}).finally(()=>{clearTimeout(e),on.set(!1)})}return cn(t)},an.update=e=>cn(e(sn));const hn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},fn=(e,t)=>{var{formats:r}=nn;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pn=hn(e=>{var{locale:t,format:r}=e,e=rn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=fn("number",r)),new Intl.NumberFormat(t,e)}),dn=hn(e=>{var{locale:t,format:r}=e,e=rn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=fn("date",r):0===Object.keys(e).length&&(e=fn("date","short")),new Intl.DateTimeFormat(t,e)}),mn=hn(e=>{var{locale:t,format:r}=e,e=rn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=fn("time",r):0===Object.keys(e).length&&(e=fn("time","short")),new Intl.DateTimeFormat(t,e)}),gn=hn((e,t=sn)=>new Br(e,t,nn.formats,{ignoreTag:nn.ignoreTag})),yn=dt([an,qr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=sn,default:o}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Wr(e,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else nn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${ln(n).join('", "')}".${Jr(sn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||e;if(!r)return i;let s=i;try{s=gn(i,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});dt([an],()=>(e,t)=>((e={})=>{var{locale:t=sn}=e,e=rn(e,["locale"]);return mn(Object.assign({locale:t},e))})(t).format(e)),dt([an],()=>(e,t)=>((e={})=>{var{locale:t=sn}=e,e=rn(e,["locale"]);return dn(Object.assign({locale:t},e))})(t).format(e)),dt([an],()=>(e,t)=>((e={})=>{var{locale:t=sn}=e,e=rn(e,["locale"]);return pn(Object.assign({locale:t},e))})(t).format(e)),dt([an,qr],()=>(e,t=sn)=>Wr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==ct.indexOf(e)&&(t=new st(t),ht[e]=t,ct.push(e)),ht[e]}};const bn={en:{languageSelector:{language:"Select Language"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}}};function vn(e,t,r){const n=e.slice();return n[0]=t[r],n}function En(e,t,r){const n=e.slice();return n[33]=t[r],n}function _n(e,t,r){const n=e.slice();return n[36]=t[r],n}function wn(r){let n,o,i,s,a,u,l,c,h,f,p,d,m,g,y,b,v,E,_,w,T,A,t,S,P,M,L=r[10]("languageSelector.language")+"",O=r[2],C=[];for(let e=0;e<O.length;e+=1)C[e]=Tn(_n(r,O,e));let I=r[4],x=[];for(let e=0;e<I.length;e+=1)x[e]=An(En(r,I,e));let N=r[8],R=[];for(let e=0;e<N.length;e+=1)R[e]=Sn(vn(r,N,e));return{c(){n=$("div"),o=$("span"),i=$("slot"),i.innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',u=H(),l=$("div"),c=$("ul");for(let e=0;e<C.length;e+=1)C[e].c();p=H(),d=$("ul");for(let e=0;e<x.length;e+=1)x[e].c();y=H(),b=$("div"),v=$("span"),E=j(L),_=H(),w=$("select");for(let e=0;e<R.length;e+=1)R[e].c();V(i,"name","close"),V(o,"class",s=r[5]?"ModalCloseBtn":""),V(o,"part",a=r[5]?"ModalCloseBtn":""),V(o,"role","button"),V(c,"class",h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),V(c,"part",f="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),V(d,"class",m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),V(d,"part",g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),V(w,"class","Item ItemLanguage"),V(w,"part","Item ItemLanguage"),void 0===r[9]&&z(()=>r[19].call(w)),V(b,"class","LanguageSelectorTitle"),V(b,"part","LanguageSelectorTitle"),V(l,"class",T="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),V(l,"part",A="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),V(n,"class","HamburgerModalWindow"),V(n,"part","HamburgerModalWindow")},m(e,t){F(e,n,t),D(n,o),D(o,i),D(n,u),D(n,l),D(l,c);for(let e=0;e<C.length;e+=1)C[e].m(c,null);D(l,p),D(l,d);for(let e=0;e<x.length;e+=1)x[e].m(d,null);D(l,y),D(l,b),D(b,v),D(v,E),D(b,_),D(b,w);for(let e=0;e<R.length;e+=1)R[e].m(w,null);W(w,r[9]),r[21](n),S=!0,P||(M=[B(o,"click",r[11]),B(w,"change",r[19]),B(w,"change",r[20])],P=!0)},p(e,t){if(r=e,(!S||32&t[0]&&s!==(s=r[5]?"ModalCloseBtn":""))&&V(o,"class",s),(!S||32&t[0]&&a!==(a=r[5]?"ModalCloseBtn":""))&&V(o,"part",a),4108&t[0]){let e;for(O=r[2],e=0;e<O.length;e+=1){const o=_n(r,O,e);C[e]?C[e].p(o,t):(C[e]=Tn(o),C[e].c(),C[e].m(c,null))}for(;e<C.length;e+=1)C[e].d(1);C.length=O.length}if((!S||64&t[0]&&h!==(h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&V(c,"class",h),(!S||64&t[0]&&f!==(f="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&V(c,"part",f),16&t[0]){let e;for(I=r[4],e=0;e<I.length;e+=1){const o=En(r,I,e);x[e]?x[e].p(o,t):(x[e]=An(o),x[e].c(),x[e].m(d,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=I.length}if((!S||64&t[0]&&m!==(m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&V(d,"class",m),(!S||64&t[0]&&g!==(g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&V(d,"part",g),(!S||1024&t[0])&&L!==(L=r[10]("languageSelector.language")+"")&&X(E,L),256&t[0]){let e;for(N=r[8],e=0;e<N.length;e+=1){const o=vn(r,N,e);R[e]?R[e].p(o,t):(R[e]=Sn(o),R[e].c(),R[e].m(w,null))}for(;e<R.length;e+=1)R[e].d(1);R.length=N.length}768&t[0]&&W(w,r[9]),(!S||32&t[0]&&T!==(T="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&V(l,"class",T),(!S||32&t[0]&&A!==(A="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&V(l,"part",A)},i(e){S||(z(()=>{t=t||q(n,Y,{transitionDuration:Mn},!0),t.run(1)}),S=!0)},o(e){t=t||q(n,Y,{transitionDuration:Mn},!1),t.run(0),S=!1},d(e){e&&k(n),G(C,e),G(x,e),G(R,e),r[21](null),e&&t&&t.end(),P=!1,U(M)}}}function Tn(r){let n,o,i,s,a,u,l,c,h,f,p,d=r[36].label+"";function m(){return r[18](r[36])}return{c(){n=$("li"),o=$("div"),i=$("img"),a=H(),u=j(d),l=H(),i.src!==(s=r[36].img)&&V(i,"src",s),V(i,"alt","menu icon"),V(o,"class","HamburgerItemContainer"),V(o,"part","HamburgerItemContainer"),V(n,"class",c=r[3]===r[36].id?"ActiveItem":""),V(n,"part",h=r[3]===r[36].id?"ActiveItem":"")},m(e,t){F(e,n,t),D(n,o),D(o,i),D(o,a),D(o,u),D(n,l),f||(p=B(n,"click",m),f=!0)},p(e,t){r=e,4&t[0]&&i.src!==(s=r[36].img)&&V(i,"src",s),4&t[0]&&d!==(d=r[36].label+"")&&X(u,d),12&t[0]&&c!==(c=r[3]===r[36].id?"ActiveItem":"")&&V(n,"class",c),12&t[0]&&h!==(h=r[3]===r[36].id?"ActiveItem":"")&&V(n,"part",h)},d(e){e&&k(n),f=!1,p()}}}function An(e){let r,n,o,i,s,a,u,l,c=e[33].label+"";return{c(){r=$("li"),n=$("a"),o=$("img"),s=H(),a=j(c),l=H(),o.src!==(i=e[33].img)&&V(o,"src",i),V(o,"alt","menu icon"),V(n,"href",u=e[33].path)},m(e,t){F(e,r,t),D(r,n),D(n,o),D(n,s),D(n,a),D(r,l)},p(e,t){16&t[0]&&o.src!==(i=e[33].img)&&V(o,"src",i),16&t[0]&&c!==(c=e[33].label+"")&&X(a,c),16&t[0]&&u!==(u=e[33].path)&&V(n,"href",u)},d(e){e&&k(r)}}}function Sn(e){let r,n,o,i=e[0]+"";return{c(){r=$("option"),n=j(i),r.__value=o=e[0],r.value=r.__value,r.selected=!0},m(e,t){F(e,r,t),D(r,n)},p(e,t){256&t[0]&&i!==(i=e[0]+"")&&X(n,i),256&t[0]&&o!==(o=e[0])&&(r.__value=o,r.value=r.__value)},d(e){e&&k(r)}}}function Pn(e){let r,n,o=!0===e[7]&&wn(e);return{c(){o&&o.c(),r=j(""),this.c=m},m(e,t){o&&o.m(e,t),F(e,r,t),n=!0},p(e,t){!0===e[7]?o?(o.p(e,t),128&t[0]&&N(o,1)):(o=wn(e),o.c(),N(o,1),o.m(r.parentNode,r)):o&&(x={r:0,c:[],p:x},u(o,1,1,()=>{o=null}),x.r||U(x.c),x=x.p)},i(e){n||(N(o),n=!0)},o(e){u(o),n=!1},d(e){o&&o.d(e),e&&k(r)}}}let Mn=350;function Ln(t,e,r){let n;var o=yn;t.$$.on_destroy.push(M(o,e=>r(10,n=e)));let i,s,{menuitemsurl:a=""}=e,{lang:u="en"}=e,{activecategory:l=""}=e,{languageslist:c=""}=e,h=window.navigator.userAgent,f=[],p="",d=[],m=!1,g=!1,y=!1,b=!0,v=[],E=!1,_="";Object.keys(bn).forEach(e=>{Kr(e,bn[e])});const w=e=>{"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),r(7,y=!0),setTimeout(()=>{r(5,m=!0)},500),setTimeout(()=>{r(6,g=!0)},1500),A(a))},T=(e,t)=>{r(3,p=e),r(4,d=t||[])},A=r=>new Promise((e,t)=>{s&&!E?e(s):S(r)}),S=e=>{fetch(e).then(e=>e.json()).then(e=>{r(2,f=e),f.length&&T(f[0].id,f[0].children),r(17,b=!1),s=e,E=!1},e=>{console.error(e)})},P=()=>{E=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:_},window.location.href)};return e=()=>(window.addEventListener("message",w,!1),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(h),()=>{window.removeEventListener("message",w)}),function(){if(!L)throw new Error("Function called outside component initialization");return L}().$$.on_mount.push(e),t.$$set=e=>{"menuitemsurl"in e&&r(14,a=e.menuitemsurl),"lang"in e&&r(0,u=e.lang),"activecategory"in e&&r(15,l=e.activecategory),"languageslist"in e&&r(16,c=e.languageslist)},t.$$.update=()=>{var e;65537&t.$$.dirty[0]&&u&&c&&(e=u,an.set(e),E&&S(a),r(8,v=c.replace(/ /g,"").split(",")),r(8,v=v.map(e=>e.toUpperCase())),r(9,_=u.toUpperCase())),163840&t.$$.dirty[0]&&l&&!b&&(0<(e=f.filter(e=>e.path==l)).length&&T(e[0].id,e[0].children))},[u,void 0,f,p,d,m,g,y,v,_,n,()=>{r(7,y=!1),r(5,m=!1),r(6,g=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},T,P,a,l,c,b,e=>T(e.id,e.children),function(){_=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(9,_),r(8,v)},()=>P(),function(e){O[e?"unshift":"push"](()=>{i=e,r(1,i)})}]}class On extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>.LanguageSelectorTitle{width:94%;position:absolute;bottom:3%}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-color-gray-150, #828282);margin:0 20px;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:12px}.ItemLanguage{height:34px;width:88%;margin:0 20px;text-align:left;line-height:34px;background:transparent;color:var(--emfe-w-color-white, #FFFFFF);border:none}.ItemLanguage option{color:var(--emfe-w-color-contrast, #07072A)}:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emfe-w-color-black, #000000);width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width .4s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:0;right:0;margin:9px;border-radius:100%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.2);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emfe-w-color-white, #FFFFFF)}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emfe-w-color-contrast, #07072A);white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C);width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-color-primary, #D0046C)}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emfe-w-color-primary, #D0046C)}</style>",t(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},Ln,Pn,r,{menuitemsurl:14,lang:0,activecategory:15,languageslist:16},[-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),P()))}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist"]}get menuitemsurl(){return this.$$.ctx[14]}set menuitemsurl(e){this.$set({menuitemsurl:e}),P()}get lang(){return this.$$.ctx[0]}set lang(e){this.$set({lang:e}),P()}get activecategory(){return this.$$.ctx[15]}set activecategory(e){this.$set({activecategory:e}),P()}get languageslist(){return this.$$.ctx[16]}set languageslist(e){this.$set({languageslist:e}),P()}}return customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",On),On});
2
2
  //# sourceMappingURL=casino-hamburger-menu.js.map