@everymatrix/cashier-error 1.99.56 → 1.99.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var wn=Object.defineProperty,In=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var Sn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable;var Pe=(e,t,n)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,at=(e,t)=>{for(var n in t||(t={}))Sn.call(t,n)&&Pe(e,n,t[n]);if(it)for(var n of it(t))Cn.call(t,n)&&Pe(e,n,t[n]);return e},st=(e,t)=>In(e,An(t));var A=(e,t,n)=>(Pe(e,typeof t!="symbol"?t+"":t,n),n);var ot=(e,t,n)=>new Promise((r,i)=>{var a=u=>{try{o(n.next(u))}catch(l){i(l)}},s=u=>{try{o(n.throw(u))}catch(l){i(l)}},o=u=>u.done?r(u.value):Promise.resolve(u.value).then(a,s);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function P(){}function Bn(e,t){for(const n in t)e[n]=t[n];return e}function Dt(e){return e()}function lt(){return Object.create(null)}function re(e){e.forEach(Dt)}function Qe(e){return typeof e=="function"}function et(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ge;function ut(e,t){return e===t?!0:(ge||(ge=document.createElement("a")),ge.href=t,e===ge.href)}function Ln(e){return Object.keys(e).length===0}function Nt(e,...t){if(e==null){for(const r of t)r(void 0);return P}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Hn(e,t,n){e.$$.on_destroy.push(Nt(t,n))}function pe(e,t,n,r){if(e){const i=zt(e,t,n,r);return e[0](i)}}function zt(e,t,n,r){return e[1]&&r?Bn(n.ctx.slice(),e[1](r(t))):n.ctx}function be(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const a=[],s=Math.max(t.dirty.length,i.length);for(let o=0;o<s;o+=1)a[o]=t.dirty[o]|i[o];return a}return t.dirty|i}return t.dirty}function ye(e,t,n,r,i,a){if(i){const s=zt(t,n,r,a);e.p(s,i)}}function ve(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}function M(e,t){e.appendChild(t)}function Rt(e,t,n){const r=Mn(e);if(!r.getElementById(t)){const i=L("style");i.id=t,i.textContent=n,Pn(r,i)}}function Mn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pn(e,t){return M(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null)}function w(e){e.parentNode&&e.parentNode.removeChild(e)}function L(e){return document.createElement(e)}function On(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function R(e){return document.createTextNode(e)}function $(){return R(" ")}function Ce(){return R("")}function Ut(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function T(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Dn(e){return Array.from(e.childNodes)}function Y(e,t){t=""+t,e.data!==t&&(e.data=t)}class Nn{constructor(t=!1){A(this,"is_svg",!1);A(this,"e");A(this,"n");A(this,"t");A(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,r=null){this.e||(this.is_svg?this.e=On(n.nodeName):this.e=L(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)I(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(w)}}function zn(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let ce;function ue(e){ce=e}function Rn(){if(!ce)throw new Error("Function called outside component initialization");return ce}function Un(e){Rn().$$.on_mount.push(e)}const Z=[],Ge=[];let K=[];const ct=[],Fn=Promise.resolve();let $e=!1;function Gn(){$e||($e=!0,Fn.then(B))}function je(e){K.push(e)}const Oe=new Set;let q=0;function B(){if(q!==0)return;const e=ce;do{try{for(;q<Z.length;){const t=Z[q];q++,ue(t),$n(t.$$)}}catch(t){throw Z.length=0,q=0,t}for(ue(null),Z.length=0,q=0;Ge.length;)Ge.pop()();for(let t=0;t<K.length;t+=1){const n=K[t];Oe.has(n)||(Oe.add(n),n())}K.length=0}while(Z.length);for(;ct.length;)ct.pop()();$e=!1,Oe.clear(),ue(e)}function $n(e){if(e.fragment!==null){e.update(),re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(je)}}function jn(e){const t=[],n=[];K.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),K=t}const _e=new Set;let G;function Ft(){G={r:0,c:[],p:G}}function Gt(){G.r||re(G.c),G=G.p}function H(e,t){e&&e.i&&(_e.delete(e),e.i(t))}function N(e,t,n,r){if(e&&e.o){if(_e.has(e))return;_e.add(e),G.c.push(()=>{_e.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Vn(e){e&&e.c()}function $t(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),je(()=>{const a=e.$$.on_mount.map(Dt).filter(Qe);e.$$.on_destroy?e.$$.on_destroy.push(...a):re(a),e.$$.on_mount=[]}),i.forEach(je)}function jt(e,t){const n=e.$$;n.fragment!==null&&(jn(n.after_update),re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Wn(e,t){e.$$.dirty[0]===-1&&(Z.push(e),Gn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Vt(e,t,n,r,i,a,s=null,o=[-1]){const u=ce;ue(e);const l=e.$$={fragment:null,ctx:[],props:a,update:P,not_equal:i,bound:lt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:lt(),dirty:o,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(h,d,...f)=>{const g=f.length?f[0]:d;return l.ctx&&i(l.ctx[h],l.ctx[h]=g)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](g),c&&Wn(e,h)),d}):[],l.update(),c=!0,re(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const h=Dn(t.target);l.fragment&&l.fragment.l(h),h.forEach(w)}else l.fragment&&l.fragment.c();t.intro&&H(e.$$.fragment),$t(e,t.target,t.anchor),B()}ue(u)}let Wt;typeof HTMLElement=="function"&&(Wt=class extends HTMLElement{constructor(t,n,r){super();A(this,"$$ctor");A(this,"$$s");A(this,"$$c");A(this,"$$cn",!1);A(this,"$$d",{});A(this,"$$r",!1);A(this,"$$p_d",{});A(this,"$$l",{});A(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return ot(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return()=>{let s;return{c:function(){s=L("slot"),a!=="default"&&T(s,"name",a)},m:function(l,c){I(l,s,c)},d:function(l){l&&w(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=zn(this);for(const a of this.$$s)a in r&&(n[a]=[t(a)]);for(const a of this.attributes){const s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=xe(s,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(at({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const s=xe(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const s of this.$$l[a]){const o=this.$$c.$on(a,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xe(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function xe(e,t,n,r){var a;const i=(a=n[e])==null?void 0:a.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function qt(e,t,n,r,i,a){let s=class extends Wt{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var l;u=xe(o,u,t),this.$$d[o]=u,(l=this.$$c)==null||l.$set({[o]:u})}})}),r.forEach(o=>{Object.defineProperty(s.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=s,s}class Xt{constructor(){A(this,"$$");A(this,"$$set")}$destroy(){jt(this,1),this.$destroy=P}$on(t,n){if(!Qe(n))return P;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Ln(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const qn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qn);const J="__WIDGET_GLOBAL_STYLE_CACHE__";function Xn(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Zn(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Jn(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=Kn(e,t),n;window[J]||(window[J]={}),n=Yn(e,t);const a=n.unsubscribe.bind(n),s=()=>{if(window[J][t]){const o=window[J][t];o.refCount>1?o.refCount=o.refCount-1:delete window[J][t]}a()};return n.unsubscribe=s,n}function Kn(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function Yn(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[J];let a=i[t]&&i[t].sheet;a?i[t].refCount=i[t].refCount+1:(a=new CSSStyleSheet,a.replaceSync(n),i[t]={sheet:a,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(a)||(r.adoptedStyleSheets=[...s,a])})}function Qn(e){Rt(e,"svelte-1nr7vqj",".HostContainer.svelte-1nr7vqj{display:block}.UiContainer.svelte-1nr7vqj{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.Hidden.svelte-1nr7vqj{opacity:0;transition:opacity 0.5s ease-in-out}.Visible.svelte-1nr7vqj{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}.Skeleton.svelte-1nr7vqj{animation:svelte-1nr7vqj-skeleton-loading 1s linear infinite alternate}.SkeletonImage.svelte-1nr7vqj{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}@keyframes svelte-1nr7vqj-skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}")}function ht(e){let t;return{c(){t=L("div"),t.innerHTML='<div class="SkeletonImage Skeleton svelte-1nr7vqj"></div>',T(t,"class","UiContainer svelte-1nr7vqj")},m(n,r){I(n,t,r)},d(n){n&&w(t)}}}function er(e){let t,n,r,i,a,s,o,u=!e[4]&&ht();return{c(){t=L("div"),u&&u.c(),n=$(),r=L("img"),ut(r.src,i=e[0])||T(r,"src",i),T(r,"alt",e[1]),T(r,"width",e[2]),T(r,"height",e[3]),T(r,"class",a="UiContainer "+(e[4]?"Visible":"Hidden")+" svelte-1nr7vqj"),T(r,"loading","lazy"),T(t,"class","HostContainer hydrated svelte-1nr7vqj")},m(l,c){I(l,t,c),u&&u.m(t,null),M(t,n),M(t,r),s||(o=Ut(r,"load",e[5]),s=!0)},p(l,[c]){l[4]?u&&(u.d(1),u=null):u||(u=ht(),u.c(),u.m(t,n)),c&1&&!ut(r.src,i=l[0])&&T(r,"src",i),c&2&&T(r,"alt",l[1]),c&4&&T(r,"width",l[2]),c&8&&T(r,"height",l[3]),c&16&&a!==(a="UiContainer "+(l[4]?"Visible":"Hidden")+" svelte-1nr7vqj")&&T(r,"class",a)},i:P,o:P,d(l){l&&w(t),u&&u.d(),s=!1,o()}}}function tr(e,t,n){let{src:r}=t,{alt:i=void 0}=t,{width:a=void 0}=t,{height:s=void 0}=t,o=!1;const u=()=>n(4,o=!0);return e.$$set=l=>{"src"in l&&n(0,r=l.src),"alt"in l&&n(1,i=l.alt),"width"in l&&n(2,a=l.width),"height"in l&&n(3,s=l.height)},[r,i,a,s,o,u]}class Zt extends Xt{constructor(t){super(),Vt(this,t,tr,er,et,{src:0,alt:1,width:2,height:3},Qn)}get src(){return this.$$.ctx[0]}set src(t){this.$$set({src:t}),B()}get alt(){return this.$$.ctx[1]}set alt(t){this.$$set({alt:t}),B()}get width(){return this.$$.ctx[2]}set width(t){this.$$set({width:t}),B()}get height(){return this.$$.ctx[3]}set height(t){this.$$set({height:t}),B()}}qt(Zt,{src:{},alt:{},width:{},height:{}},[],[],!0);const X=[];function nr(e,t){return{subscribe:Be(e,t).subscribe}}function Be(e,t=P){let n;const r=new Set;function i(o){if(et(e,o)&&(e=o,n)){const u=!X.length;for(const l of r)l[1](),X.push(l,e);if(u){for(let l=0;l<X.length;l+=2)X[l][0](X[l+1]);X.length=0}}}function a(o){i(o(e))}function s(o,u=P){const l=[o,u];return r.add(l),r.size===1&&(n=t(i,a)||P),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:s}}function ie(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return nr(n,(s,o)=>{let u=!1;const l=[];let c=0,h=P;const d=()=>{if(c)return;h();const g=t(r?l[0]:l,s,o);a?s(g):h=Qe(g)?g:P},f=i.map((g,k)=>Nt(g,E=>{l[k]=E,c&=~(1<<k),u&&d()},()=>{c|=1<<k}));return u=!0,d(),function(){re(f),h(),u=!1}})}function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ir=function(t){return ar(t)&&!sr(t)};function ar(e){return!!e&&typeof e=="object"}function sr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ur(e)}var or=typeof Symbol=="function"&&Symbol.for,lr=or?Symbol.for("react.element"):60103;function ur(e){return e.$$typeof===lr}function cr(e){return Array.isArray(e)?[]:{}}function he(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Q(cr(e),e,t):e}function hr(e,t,n){return e.concat(t).map(function(r){return he(r,n)})}function dr(e,t){if(!t.customMerge)return Q;var n=t.customMerge(e);return typeof n=="function"?n:Q}function mr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dt(e){return Object.keys(e).concat(mr(e))}function Jt(e,t){try{return t in e}catch(n){return!1}}function fr(e,t){return Jt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function gr(e,t,n){var r={};return n.isMergeableObject(e)&&dt(e).forEach(function(i){r[i]=he(e[i],n)}),dt(t).forEach(function(i){fr(e,i)||(Jt(e,i)&&n.isMergeableObject(t[i])?r[i]=dr(i,n)(e[i],t[i],n):r[i]=he(t[i],n))}),r}function Q(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||hr,n.isMergeableObject=n.isMergeableObject||ir,n.cloneUnlessOtherwiseSpecified=he;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):gr(e,t,n):he(t,n)}Q.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Q(r,i,n)},{})};var pr=Q,br=pr;const yr=rr(br);var Ve=function(e,t){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ve(e,t)};function Le(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ve(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var O=function(){return O=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},O.apply(this,arguments)};function vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function De(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Ne(e,t){var n=t&&t.cache?t.cache:Ir,r=t&&t.serializer?t.serializer:Tr,i=t&&t.strategy?t.strategy:xr;return i(e,{cache:n,serializer:r})}function Er(e){return e==null||typeof e=="number"||typeof e=="boolean"}function _r(e,t,n,r){var i=Er(r)?r:n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.call(this,r),t.set(i,a)),a}function Kt(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.apply(this,r),t.set(i,a)),a}function Yt(e,t,n,r,i){return n.bind(t,e,r,i)}function xr(e,t){var n=e.length===1?_r:Kt;return Yt(e,this,n,t.cache.create(),t.serializer)}function kr(e,t){return Yt(e,this,Kt,t.cache.create(),t.serializer)}var Tr=function(){return JSON.stringify(arguments)},wr=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Ir={create:function(){return new wr}},ze={variadic:kr},we=function(){return we=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},we.apply(this,arguments)};var p;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(p||(p={}));var _;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(_||(_={}));var ee;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ee||(ee={}));function mt(e){return e.type===_.literal}function Ar(e){return e.type===_.argument}function Qt(e){return e.type===_.number}function en(e){return e.type===_.date}function tn(e){return e.type===_.time}function nn(e){return e.type===_.select}function rn(e){return e.type===_.plural}function Sr(e){return e.type===_.pound}function an(e){return e.type===_.tag}function sn(e){return!!(e&&typeof e=="object"&&e.type===ee.number)}function We(e){return!!(e&&typeof e=="object"&&e.type===ee.dateTime)}var on=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Cr=/(?:[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;function Br(e){var t={};return e.replace(Cr,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""}),t}var x=function(){return x=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},x.apply(this,arguments)};var Lr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Hr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Lr).filter(function(d){return d.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],u=s.slice(1),l=0,c=u;l<c.length;l++){var h=c[l];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:u})}return n}function Mr(e){return e.replace(/^(.*?)-/,"")}var ft=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ln=/^(@+)?(\+|#+)?[rs]?$/g,Pr=/(\*)(0+)|(#+)(0+)|(0+)/g,un=/^(0+)$/;function gt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ln,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function cn(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 Or(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!un.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function pt(e){var t={},n=cn(e);return n||t}function Dr(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Mr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return x(x({},u),pt(l))},{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return x(x({},u),pt(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Pr,function(u,l,c,h,d,f){if(l)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(un.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ft.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ft,function(u,l,c,h,d,f){return c==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&f?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+f.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var a=i.options[0];a==="w"?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=x(x({},t),gt(a)));continue}if(ln.test(i.stem)){t=x(x({},t),gt(i.stem));continue}var s=cn(i.stem);s&&(t=x(x({},t),s));var o=Or(i.stem);o&&(t=x(x({},t),o))}return t}var Ee={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Nr(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var s=1+(a&1),o=a<2?1:3+(a>>1),u="a",l=zr(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function zr(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Ee[r||""]||Ee[n||""]||Ee["".concat(n,"-001")]||Ee["001"];return i[0]}var Re,Rr=new RegExp("^".concat(on.source,"*")),Ur=new RegExp("".concat(on.source,"*$"));function y(e,t){return{start:e,end:t}}var Fr=!!String.prototype.startsWith&&"_a".startsWith("a",1),Gr=!!String.fromCodePoint,$r=!!Object.fromEntries,jr=!!String.prototype.codePointAt,Vr=!!String.prototype.trimStart,Wr=!!String.prototype.trimEnd,qr=!!Number.isSafeInteger,Xr=qr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},qe=!0;try{var Zr=dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=((Re=Zr.exec("a"))===null||Re===void 0?void 0:Re[0])==="a"}catch(e){qe=!1}var bt=Fr?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Xe=Gr?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},yt=$r?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],s=a[0],o=a[1];n[s]=o}return n},hn=jr?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},Jr=Vr?function(t){return t.trimStart()}:function(t){return t.replace(Rr,"")},Kr=Wr?function(t){return t.trimEnd()}:function(t){return t.replace(Ur,"")};function dn(e,t){return new RegExp(e,t)}var Ze;if(qe){var vt=dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ze=function(t,n){var r;vt.lastIndex=n;var i=vt.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Ze=function(t,n){for(var r=[];;){var i=hn(t,n);if(i===void 0||mn(i)||ti(i))break;r.push(i),n+=i>=65536?2:1}return Xe.apply(void 0,r)};var Yr=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:_.pound,location:y(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(p.UNMATCHED_CLOSING_TAG,y(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Je(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_.literal,value:"<".concat(i,"/>"),location:y(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Je(this.char()))return this.error(p.INVALID_TAG,y(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(p.UNMATCHED_CLOSING_TAG,y(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_.tag,value:i,children:s,location:y(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,y(o,this.clonePosition())))}else return this.error(p.UNCLOSED_TAG,y(r,this.clonePosition()))}else return this.error(p.INVALID_TAG,y(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ei(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=y(r,this.clonePosition());return{val:{type:_.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Qr(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Xe.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Xe(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(p.EMPTY_ARGUMENT,y(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(p.MALFORMED_ARGUMENT,y(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_.argument,value:i,location:y(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(p.MALFORMED_ARGUMENT,y(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Ze(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),s=y(t,a);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,y(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Kr(h.val);if(d.length===0)return this.error(p.EXPECT_ARGUMENT_STYLE,y(this.clonePosition(),this.clonePosition()));var f=y(c,this.clonePosition());l={style:d,styleLocation:f}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var k=y(i,this.clonePosition());if(l&&bt(l==null?void 0:l.style,"::",0)){var E=Jr(l.style.slice(2));if(o==="number"){var h=this.parseNumberSkeletonFromString(E,l.styleLocation);return h.err?h:{val:{type:_.number,value:r,location:k,style:h.val},err:null}}else{if(E.length===0)return this.error(p.EXPECT_DATE_TIME_SKELETON,k);var m=E;this.locale&&(m=Nr(E,this.locale));var d={type:ee.dateTime,pattern:m,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Br(m):{}},v=o==="date"?_.date:_.time;return{val:{type:v,value:r,location:k,style:d},err:null}}}return{val:{type:o==="number"?_.number:o==="date"?_.date:_.time,value:r,location:k,style:(a=l==null?void 0:l.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,y(S,we({},S)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),D=0;if(o!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),F=this.parseIdentifierIfPossible(),D=h.val}var V=this.tryParsePluralOrSelectOptions(t,o,n,F);if(V.err)return V;var g=this.tryParseArgumentClose(i);if(g.err)return g;var se=y(i,this.clonePosition());return o==="select"?{val:{type:_.select,value:r,options:yt(V.val),location:se},err:null}:{val:{type:_.plural,value:r,options:yt(V.val),offset:D,pluralType:o==="plural"?"cardinal":"ordinal",location:se},err:null}}default:return this.error(p.INVALID_ARGUMENT_TYPE,y(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,y(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Hr(t)}catch(i){return this.error(p.INVALID_NUMBER_SKELETON,n)}return{val:{type:ee.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Dr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,s=!1,o=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=y(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,y(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var k=this.tryParseArgumentClose(f);if(k.err)return k;o.push([l,{value:g.val,location:y(f,this.clonePosition())}]),u.add(l),this.bumpSpace(),a=this.parseIdentifierIfPossible(),l=a.value,c=a.location}return o.length===0?this.error(n==="select"?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(p.MISSING_OTHER_CLAUSE,y(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var u=y(i,this.clonePosition());return a?(s*=r,Xr(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=hn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(bt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&mn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Je(e){return e>=97&&e<=122||e>=65&&e<=90}function Qr(e){return Je(e)||e===47}function ei(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function mn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ti(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ke(e){e.forEach(function(t){if(delete t.location,nn(t)||rn(t))for(var n in t.options)delete t.options[n].location,Ke(t.options[n].value);else Qt(t)&&sn(t.style)||(en(t)||tn(t))&&We(t.style)?delete t.style.location:an(t)&&Ke(t.children)})}function ni(e,t){t===void 0&&(t={}),t=we({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Yr(e,t).parse();if(n.err){var r=SyntaxError(p[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Ke(n.val),n.val}var te;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(te||(te={}));var He=function(e){Le(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Et=function(e){Le(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),te.INVALID_VALUE,a)||this}return t}(He),ri=function(e){Le(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),te.INVALID_VALUE,i)||this}return t}(He),ii=function(e){Le(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),te.MISSING_VALUE,r)||this}return t}(He),C;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(C||(C={}));function ai(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==C.literal||n.type!==C.literal?t.push(n):r.value+=n.value,t},[])}function si(e){return typeof e=="function"}function ke(e,t,n,r,i,a,s){if(e.length===1&&mt(e[0]))return[{type:C.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var c=l[u];if(mt(c)){o.push({type:C.literal,value:c.value});continue}if(Sr(c)){typeof a=="number"&&o.push({type:C.literal,value:n.getNumberFormat(t).format(a)});continue}var h=c.value;if(!(i&&h in i))throw new ii(h,s);var d=i[h];if(Ar(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),o.push({type:typeof d=="string"?C.literal:C.object,value:d});continue}if(en(c)){var f=typeof c.style=="string"?r.date[c.style]:We(c.style)?c.style.parsedOptions:void 0;o.push({type:C.literal,value:n.getDateTimeFormat(t,f).format(d)});continue}if(tn(c)){var f=typeof c.style=="string"?r.time[c.style]:We(c.style)?c.style.parsedOptions:r.time.medium;o.push({type:C.literal,value:n.getDateTimeFormat(t,f).format(d)});continue}if(Qt(c)){var f=typeof c.style=="string"?r.number[c.style]:sn(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),o.push({type:C.literal,value:n.getNumberFormat(t,f).format(d)});continue}if(an(c)){var g=c.children,k=c.value,E=i[k];if(!si(E))throw new ri(k,"function",s);var m=ke(g,t,n,r,i,a),v=E(m.map(function(D){return D.value}));Array.isArray(v)||(v=[v]),o.push.apply(o,v.map(function(D){return{type:typeof D=="string"?C.literal:C.object,value:D}}))}if(nn(c)){var S=c.options[d]||c.options.other;if(!S)throw new Et(c.value,d,Object.keys(c.options),s);o.push.apply(o,ke(S.value,t,n,r,i));continue}if(rn(c)){var S=c.options["=".concat(d)];if(!S){if(!Intl.PluralRules)throw new He(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var wn=Object.defineProperty,In=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var Sn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable;var Pe=(e,t,n)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,at=(e,t)=>{for(var n in t||(t={}))Sn.call(t,n)&&Pe(e,n,t[n]);if(it)for(var n of it(t))Cn.call(t,n)&&Pe(e,n,t[n]);return e},st=(e,t)=>In(e,An(t));var A=(e,t,n)=>Pe(e,typeof t!="symbol"?t+"":t,n);var ot=(e,t,n)=>new Promise((r,i)=>{var a=u=>{try{o(n.next(u))}catch(l){i(l)}},s=u=>{try{o(n.throw(u))}catch(l){i(l)}},o=u=>u.done?r(u.value):Promise.resolve(u.value).then(a,s);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function P(){}function Bn(e,t){for(const n in t)e[n]=t[n];return e}function Dt(e){return e()}function lt(){return Object.create(null)}function re(e){e.forEach(Dt)}function Qe(e){return typeof e=="function"}function et(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ge;function ut(e,t){return e===t?!0:(ge||(ge=document.createElement("a")),ge.href=t,e===ge.href)}function Ln(e){return Object.keys(e).length===0}function Nt(e,...t){if(e==null){for(const r of t)r(void 0);return P}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Hn(e,t,n){e.$$.on_destroy.push(Nt(t,n))}function pe(e,t,n,r){if(e){const i=zt(e,t,n,r);return e[0](i)}}function zt(e,t,n,r){return e[1]&&r?Bn(n.ctx.slice(),e[1](r(t))):n.ctx}function be(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const a=[],s=Math.max(t.dirty.length,i.length);for(let o=0;o<s;o+=1)a[o]=t.dirty[o]|i[o];return a}return t.dirty|i}return t.dirty}function ye(e,t,n,r,i,a){if(i){const s=zt(t,n,r,a);e.p(s,i)}}function ve(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}function M(e,t){e.appendChild(t)}function Rt(e,t,n){const r=Mn(e);if(!r.getElementById(t)){const i=L("style");i.id=t,i.textContent=n,Pn(r,i)}}function Mn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pn(e,t){return M(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null)}function w(e){e.parentNode&&e.parentNode.removeChild(e)}function L(e){return document.createElement(e)}function On(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function R(e){return document.createTextNode(e)}function $(){return R(" ")}function Ce(){return R("")}function Ut(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function T(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Dn(e){return Array.from(e.childNodes)}function Y(e,t){t=""+t,e.data!==t&&(e.data=t)}class Nn{constructor(t=!1){A(this,"is_svg",!1);A(this,"e");A(this,"n");A(this,"t");A(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,r=null){this.e||(this.is_svg?this.e=On(n.nodeName):this.e=L(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)I(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(w)}}function zn(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let ce;function ue(e){ce=e}function Rn(){if(!ce)throw new Error("Function called outside component initialization");return ce}function Un(e){Rn().$$.on_mount.push(e)}const Z=[],Ge=[];let K=[];const ct=[],Fn=Promise.resolve();let $e=!1;function Gn(){$e||($e=!0,Fn.then(B))}function je(e){K.push(e)}const Oe=new Set;let q=0;function B(){if(q!==0)return;const e=ce;do{try{for(;q<Z.length;){const t=Z[q];q++,ue(t),$n(t.$$)}}catch(t){throw Z.length=0,q=0,t}for(ue(null),Z.length=0,q=0;Ge.length;)Ge.pop()();for(let t=0;t<K.length;t+=1){const n=K[t];Oe.has(n)||(Oe.add(n),n())}K.length=0}while(Z.length);for(;ct.length;)ct.pop()();$e=!1,Oe.clear(),ue(e)}function $n(e){if(e.fragment!==null){e.update(),re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(je)}}function jn(e){const t=[],n=[];K.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),K=t}const _e=new Set;let G;function Ft(){G={r:0,c:[],p:G}}function Gt(){G.r||re(G.c),G=G.p}function H(e,t){e&&e.i&&(_e.delete(e),e.i(t))}function N(e,t,n,r){if(e&&e.o){if(_e.has(e))return;_e.add(e),G.c.push(()=>{_e.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function Vn(e){e&&e.c()}function $t(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),je(()=>{const a=e.$$.on_mount.map(Dt).filter(Qe);e.$$.on_destroy?e.$$.on_destroy.push(...a):re(a),e.$$.on_mount=[]}),i.forEach(je)}function jt(e,t){const n=e.$$;n.fragment!==null&&(jn(n.after_update),re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Wn(e,t){e.$$.dirty[0]===-1&&(Z.push(e),Gn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Vt(e,t,n,r,i,a,s=null,o=[-1]){const u=ce;ue(e);const l=e.$$={fragment:null,ctx:[],props:a,update:P,not_equal:i,bound:lt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:lt(),dirty:o,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(h,d,...f)=>{const g=f.length?f[0]:d;return l.ctx&&i(l.ctx[h],l.ctx[h]=g)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](g),c&&Wn(e,h)),d}):[],l.update(),c=!0,re(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const h=Dn(t.target);l.fragment&&l.fragment.l(h),h.forEach(w)}else l.fragment&&l.fragment.c();t.intro&&H(e.$$.fragment),$t(e,t.target,t.anchor),B()}ue(u)}let Wt;typeof HTMLElement=="function"&&(Wt=class extends HTMLElement{constructor(t,n,r){super();A(this,"$$ctor");A(this,"$$s");A(this,"$$c");A(this,"$$cn",!1);A(this,"$$d",{});A(this,"$$r",!1);A(this,"$$p_d",{});A(this,"$$l",{});A(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return ot(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return()=>{let s;return{c:function(){s=L("slot"),a!=="default"&&T(s,"name",a)},m:function(l,c){I(l,s,c)},d:function(l){l&&w(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=zn(this);for(const a of this.$$s)a in r&&(n[a]=[t(a)]);for(const a of this.attributes){const s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=xe(s,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(at({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const s=xe(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const s of this.$$l[a]){const o=this.$$c.$on(a,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xe(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function xe(e,t,n,r){var a;const i=(a=n[e])==null?void 0:a.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function qt(e,t,n,r,i,a){let s=class extends Wt{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var l;u=xe(o,u,t),this.$$d[o]=u,(l=this.$$c)==null||l.$set({[o]:u})}})}),r.forEach(o=>{Object.defineProperty(s.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=s,s}class Xt{constructor(){A(this,"$$");A(this,"$$set")}$destroy(){jt(this,1),this.$destroy=P}$on(t,n){if(!Qe(n))return P;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Ln(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const qn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qn);const J="__WIDGET_GLOBAL_STYLE_CACHE__";function Xn(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Zn(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Jn(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=Kn(e,t),n;window[J]||(window[J]={}),n=Yn(e,t);const a=n.unsubscribe.bind(n),s=()=>{if(window[J][t]){const o=window[J][t];o.refCount>1?o.refCount=o.refCount-1:delete window[J][t]}a()};return n.unsubscribe=s,n}function Kn(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function Yn(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[J];let a=i[t]&&i[t].sheet;a?i[t].refCount=i[t].refCount+1:(a=new CSSStyleSheet,a.replaceSync(n),i[t]={sheet:a,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(a)||(r.adoptedStyleSheets=[...s,a])})}function Qn(e){Rt(e,"svelte-1nr7vqj",".HostContainer.svelte-1nr7vqj{display:block}.UiContainer.svelte-1nr7vqj{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.Hidden.svelte-1nr7vqj{opacity:0;transition:opacity 0.5s ease-in-out}.Visible.svelte-1nr7vqj{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}.Skeleton.svelte-1nr7vqj{animation:svelte-1nr7vqj-skeleton-loading 1s linear infinite alternate}.SkeletonImage.svelte-1nr7vqj{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}@keyframes svelte-1nr7vqj-skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}")}function ht(e){let t;return{c(){t=L("div"),t.innerHTML='<div class="SkeletonImage Skeleton svelte-1nr7vqj"></div>',T(t,"class","UiContainer svelte-1nr7vqj")},m(n,r){I(n,t,r)},d(n){n&&w(t)}}}function er(e){let t,n,r,i,a,s,o,u=!e[4]&&ht();return{c(){t=L("div"),u&&u.c(),n=$(),r=L("img"),ut(r.src,i=e[0])||T(r,"src",i),T(r,"alt",e[1]),T(r,"width",e[2]),T(r,"height",e[3]),T(r,"class",a="UiContainer "+(e[4]?"Visible":"Hidden")+" svelte-1nr7vqj"),T(r,"loading","lazy"),T(t,"class","HostContainer hydrated svelte-1nr7vqj")},m(l,c){I(l,t,c),u&&u.m(t,null),M(t,n),M(t,r),s||(o=Ut(r,"load",e[5]),s=!0)},p(l,[c]){l[4]?u&&(u.d(1),u=null):u||(u=ht(),u.c(),u.m(t,n)),c&1&&!ut(r.src,i=l[0])&&T(r,"src",i),c&2&&T(r,"alt",l[1]),c&4&&T(r,"width",l[2]),c&8&&T(r,"height",l[3]),c&16&&a!==(a="UiContainer "+(l[4]?"Visible":"Hidden")+" svelte-1nr7vqj")&&T(r,"class",a)},i:P,o:P,d(l){l&&w(t),u&&u.d(),s=!1,o()}}}function tr(e,t,n){let{src:r}=t,{alt:i=void 0}=t,{width:a=void 0}=t,{height:s=void 0}=t,o=!1;const u=()=>n(4,o=!0);return e.$$set=l=>{"src"in l&&n(0,r=l.src),"alt"in l&&n(1,i=l.alt),"width"in l&&n(2,a=l.width),"height"in l&&n(3,s=l.height)},[r,i,a,s,o,u]}class Zt extends Xt{constructor(t){super(),Vt(this,t,tr,er,et,{src:0,alt:1,width:2,height:3},Qn)}get src(){return this.$$.ctx[0]}set src(t){this.$$set({src:t}),B()}get alt(){return this.$$.ctx[1]}set alt(t){this.$$set({alt:t}),B()}get width(){return this.$$.ctx[2]}set width(t){this.$$set({width:t}),B()}get height(){return this.$$.ctx[3]}set height(t){this.$$set({height:t}),B()}}qt(Zt,{src:{},alt:{},width:{},height:{}},[],[],!0);const X=[];function nr(e,t){return{subscribe:Be(e,t).subscribe}}function Be(e,t=P){let n;const r=new Set;function i(o){if(et(e,o)&&(e=o,n)){const u=!X.length;for(const l of r)l[1](),X.push(l,e);if(u){for(let l=0;l<X.length;l+=2)X[l][0](X[l+1]);X.length=0}}}function a(o){i(o(e))}function s(o,u=P){const l=[o,u];return r.add(l),r.size===1&&(n=t(i,a)||P),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:s}}function ie(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=t.length<2;return nr(n,(s,o)=>{let u=!1;const l=[];let c=0,h=P;const d=()=>{if(c)return;h();const g=t(r?l[0]:l,s,o);a?s(g):h=Qe(g)?g:P},f=i.map((g,k)=>Nt(g,E=>{l[k]=E,c&=~(1<<k),u&&d()},()=>{c|=1<<k}));return u=!0,d(),function(){re(f),h(),u=!1}})}function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ir=function(t){return ar(t)&&!sr(t)};function ar(e){return!!e&&typeof e=="object"}function sr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ur(e)}var or=typeof Symbol=="function"&&Symbol.for,lr=or?Symbol.for("react.element"):60103;function ur(e){return e.$$typeof===lr}function cr(e){return Array.isArray(e)?[]:{}}function he(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Q(cr(e),e,t):e}function hr(e,t,n){return e.concat(t).map(function(r){return he(r,n)})}function dr(e,t){if(!t.customMerge)return Q;var n=t.customMerge(e);return typeof n=="function"?n:Q}function mr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dt(e){return Object.keys(e).concat(mr(e))}function Jt(e,t){try{return t in e}catch(n){return!1}}function fr(e,t){return Jt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function gr(e,t,n){var r={};return n.isMergeableObject(e)&&dt(e).forEach(function(i){r[i]=he(e[i],n)}),dt(t).forEach(function(i){fr(e,i)||(Jt(e,i)&&n.isMergeableObject(t[i])?r[i]=dr(i,n)(e[i],t[i],n):r[i]=he(t[i],n))}),r}function Q(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||hr,n.isMergeableObject=n.isMergeableObject||ir,n.cloneUnlessOtherwiseSpecified=he;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):gr(e,t,n):he(t,n)}Q.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Q(r,i,n)},{})};var pr=Q,br=pr;const yr=rr(br);var Ve=function(e,t){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ve(e,t)};function Le(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ve(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var O=function(){return O=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},O.apply(this,arguments)};function vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function De(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Ne(e,t){var n=t&&t.cache?t.cache:Ir,r=t&&t.serializer?t.serializer:Tr,i=t&&t.strategy?t.strategy:xr;return i(e,{cache:n,serializer:r})}function Er(e){return e==null||typeof e=="number"||typeof e=="boolean"}function _r(e,t,n,r){var i=Er(r)?r:n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.call(this,r),t.set(i,a)),a}function Kt(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.apply(this,r),t.set(i,a)),a}function Yt(e,t,n,r,i){return n.bind(t,e,r,i)}function xr(e,t){var n=e.length===1?_r:Kt;return Yt(e,this,n,t.cache.create(),t.serializer)}function kr(e,t){return Yt(e,this,Kt,t.cache.create(),t.serializer)}var Tr=function(){return JSON.stringify(arguments)},wr=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Ir={create:function(){return new wr}},ze={variadic:kr},we=function(){return we=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},we.apply(this,arguments)};var p;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(p||(p={}));var _;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(_||(_={}));var ee;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ee||(ee={}));function mt(e){return e.type===_.literal}function Ar(e){return e.type===_.argument}function Qt(e){return e.type===_.number}function en(e){return e.type===_.date}function tn(e){return e.type===_.time}function nn(e){return e.type===_.select}function rn(e){return e.type===_.plural}function Sr(e){return e.type===_.pound}function an(e){return e.type===_.tag}function sn(e){return!!(e&&typeof e=="object"&&e.type===ee.number)}function We(e){return!!(e&&typeof e=="object"&&e.type===ee.dateTime)}var on=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Cr=/(?:[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;function Br(e){var t={};return e.replace(Cr,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""}),t}var x=function(){return x=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},x.apply(this,arguments)};var Lr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Hr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Lr).filter(function(d){return d.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],u=s.slice(1),l=0,c=u;l<c.length;l++){var h=c[l];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:u})}return n}function Mr(e){return e.replace(/^(.*?)-/,"")}var ft=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ln=/^(@+)?(\+|#+)?[rs]?$/g,Pr=/(\*)(0+)|(#+)(0+)|(0+)/g,un=/^(0+)$/;function gt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ln,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function cn(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 Or(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!un.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function pt(e){var t={},n=cn(e);return n||t}function Dr(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Mr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return x(x({},u),pt(l))},{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return x(x({},u),pt(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Pr,function(u,l,c,h,d,f){if(l)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(un.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ft.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ft,function(u,l,c,h,d,f){return c==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&f?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+f.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var a=i.options[0];a==="w"?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=x(x({},t),gt(a)));continue}if(ln.test(i.stem)){t=x(x({},t),gt(i.stem));continue}var s=cn(i.stem);s&&(t=x(x({},t),s));var o=Or(i.stem);o&&(t=x(x({},t),o))}return t}var Ee={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Nr(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var s=1+(a&1),o=a<2?1:3+(a>>1),u="a",l=zr(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function zr(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Ee[r||""]||Ee[n||""]||Ee["".concat(n,"-001")]||Ee["001"];return i[0]}var Re,Rr=new RegExp("^".concat(on.source,"*")),Ur=new RegExp("".concat(on.source,"*$"));function y(e,t){return{start:e,end:t}}var Fr=!!String.prototype.startsWith&&"_a".startsWith("a",1),Gr=!!String.fromCodePoint,$r=!!Object.fromEntries,jr=!!String.prototype.codePointAt,Vr=!!String.prototype.trimStart,Wr=!!String.prototype.trimEnd,qr=!!Number.isSafeInteger,Xr=qr?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},qe=!0;try{var Zr=dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=((Re=Zr.exec("a"))===null||Re===void 0?void 0:Re[0])==="a"}catch(e){qe=!1}var bt=Fr?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Xe=Gr?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},yt=$r?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],s=a[0],o=a[1];n[s]=o}return n},hn=jr?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},Jr=Vr?function(t){return t.trimStart()}:function(t){return t.replace(Rr,"")},Kr=Wr?function(t){return t.trimEnd()}:function(t){return t.replace(Ur,"")};function dn(e,t){return new RegExp(e,t)}var Ze;if(qe){var vt=dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ze=function(t,n){var r;vt.lastIndex=n;var i=vt.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Ze=function(t,n){for(var r=[];;){var i=hn(t,n);if(i===void 0||mn(i)||ti(i))break;r.push(i),n+=i>=65536?2:1}return Xe.apply(void 0,r)};var Yr=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:_.pound,location:y(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(p.UNMATCHED_CLOSING_TAG,y(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Je(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_.literal,value:"<".concat(i,"/>"),location:y(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Je(this.char()))return this.error(p.INVALID_TAG,y(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(p.UNMATCHED_CLOSING_TAG,y(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_.tag,value:i,children:s,location:y(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,y(o,this.clonePosition())))}else return this.error(p.UNCLOSED_TAG,y(r,this.clonePosition()))}else return this.error(p.INVALID_TAG,y(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ei(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=y(r,this.clonePosition());return{val:{type:_.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Qr(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Xe.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Xe(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(p.EMPTY_ARGUMENT,y(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(p.MALFORMED_ARGUMENT,y(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_.argument,value:i,location:y(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(p.MALFORMED_ARGUMENT,y(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Ze(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),s=y(t,a);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,y(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Kr(h.val);if(d.length===0)return this.error(p.EXPECT_ARGUMENT_STYLE,y(this.clonePosition(),this.clonePosition()));var f=y(c,this.clonePosition());l={style:d,styleLocation:f}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var k=y(i,this.clonePosition());if(l&&bt(l==null?void 0:l.style,"::",0)){var E=Jr(l.style.slice(2));if(o==="number"){var h=this.parseNumberSkeletonFromString(E,l.styleLocation);return h.err?h:{val:{type:_.number,value:r,location:k,style:h.val},err:null}}else{if(E.length===0)return this.error(p.EXPECT_DATE_TIME_SKELETON,k);var m=E;this.locale&&(m=Nr(E,this.locale));var d={type:ee.dateTime,pattern:m,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Br(m):{}},v=o==="date"?_.date:_.time;return{val:{type:v,value:r,location:k,style:d},err:null}}}return{val:{type:o==="number"?_.number:o==="date"?_.date:_.time,value:r,location:k,style:(a=l==null?void 0:l.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,y(S,we({},S)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),D=0;if(o!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),F=this.parseIdentifierIfPossible(),D=h.val}var V=this.tryParsePluralOrSelectOptions(t,o,n,F);if(V.err)return V;var g=this.tryParseArgumentClose(i);if(g.err)return g;var se=y(i,this.clonePosition());return o==="select"?{val:{type:_.select,value:r,options:yt(V.val),location:se},err:null}:{val:{type:_.plural,value:r,options:yt(V.val),offset:D,pluralType:o==="plural"?"cardinal":"ordinal",location:se},err:null}}default:return this.error(p.INVALID_ARGUMENT_TYPE,y(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,y(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,y(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Hr(t)}catch(i){return this.error(p.INVALID_NUMBER_SKELETON,n)}return{val:{type:ee.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Dr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,s=!1,o=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=y(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,y(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var k=this.tryParseArgumentClose(f);if(k.err)return k;o.push([l,{value:g.val,location:y(f,this.clonePosition())}]),u.add(l),this.bumpSpace(),a=this.parseIdentifierIfPossible(),l=a.value,c=a.location}return o.length===0?this.error(n==="select"?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(p.MISSING_OTHER_CLAUSE,y(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var u=y(i,this.clonePosition());return a?(s*=r,Xr(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=hn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(bt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&mn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Je(e){return e>=97&&e<=122||e>=65&&e<=90}function Qr(e){return Je(e)||e===47}function ei(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function mn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ti(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ke(e){e.forEach(function(t){if(delete t.location,nn(t)||rn(t))for(var n in t.options)delete t.options[n].location,Ke(t.options[n].value);else Qt(t)&&sn(t.style)||(en(t)||tn(t))&&We(t.style)?delete t.style.location:an(t)&&Ke(t.children)})}function ni(e,t){t===void 0&&(t={}),t=we({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Yr(e,t).parse();if(n.err){var r=SyntaxError(p[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Ke(n.val),n.val}var te;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(te||(te={}));var He=function(e){Le(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Et=function(e){Le(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),te.INVALID_VALUE,a)||this}return t}(He),ri=function(e){Le(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),te.INVALID_VALUE,i)||this}return t}(He),ii=function(e){Le(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),te.MISSING_VALUE,r)||this}return t}(He),C;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(C||(C={}));function ai(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==C.literal||n.type!==C.literal?t.push(n):r.value+=n.value,t},[])}function si(e){return typeof e=="function"}function ke(e,t,n,r,i,a,s){if(e.length===1&&mt(e[0]))return[{type:C.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var c=l[u];if(mt(c)){o.push({type:C.literal,value:c.value});continue}if(Sr(c)){typeof a=="number"&&o.push({type:C.literal,value:n.getNumberFormat(t).format(a)});continue}var h=c.value;if(!(i&&h in i))throw new ii(h,s);var d=i[h];if(Ar(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),o.push({type:typeof d=="string"?C.literal:C.object,value:d});continue}if(en(c)){var f=typeof c.style=="string"?r.date[c.style]:We(c.style)?c.style.parsedOptions:void 0;o.push({type:C.literal,value:n.getDateTimeFormat(t,f).format(d)});continue}if(tn(c)){var f=typeof c.style=="string"?r.time[c.style]:We(c.style)?c.style.parsedOptions:r.time.medium;o.push({type:C.literal,value:n.getDateTimeFormat(t,f).format(d)});continue}if(Qt(c)){var f=typeof c.style=="string"?r.number[c.style]:sn(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),o.push({type:C.literal,value:n.getNumberFormat(t,f).format(d)});continue}if(an(c)){var g=c.children,k=c.value,E=i[k];if(!si(E))throw new ri(k,"function",s);var m=ke(g,t,n,r,i,a),v=E(m.map(function(D){return D.value}));Array.isArray(v)||(v=[v]),o.push.apply(o,v.map(function(D){return{type:typeof D=="string"?C.literal:C.object,value:D}}))}if(nn(c)){var S=c.options[d]||c.options.other;if(!S)throw new Et(c.value,d,Object.keys(c.options),s);o.push.apply(o,ke(S.value,t,n,r,i));continue}if(rn(c)){var S=c.options["=".concat(d)];if(!S){if(!Intl.PluralRules)throw new He(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,te.MISSING_INTL_API,s);var F=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));S=c.options[F]||c.options.other}if(!S)throw new Et(c.value,d,Object.keys(c.options),s);o.push.apply(o,ke(S.value,t,n,r,i,d-(c.offset||0)));continue}}return ai(o)}function oi(e,t){return t?O(O(O({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=O(O({},e[r]),t[r]||{}),n},{})):e}function li(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=oi(e[r],t[r]),n},O({},e)):e}function Ue(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ui(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ne(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,De([void 0],n,!1)))},{cache:Ue(e.number),strategy:ze.variadic}),getDateTimeFormat:Ne(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,De([void 0],n,!1)))},{cache:Ue(e.dateTime),strategy:ze.variadic}),getPluralRules:Ne(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,De([void 0],n,!1)))},{cache:Ue(e.pluralRules),strategy:ze.variadic})}}var fn=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=a.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(h,d){return!h.length||d.type!==C.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return ke(a.ast,a.locales,a.formatters,a.formats,u,void 0,a.message)},this.resolvedOptions=function(){var u;return{locale:((u=a.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var o=vr(s,["formatters"]);this.ast=e.__parse(t,O(O({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=li(e.formats,r),this.formatters=i&&i.formatters||ui(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ni,e.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"}}},e}();function ci(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const a=n.slice(i,n.length).join(".");if(a in r){r=r[a];break}}r=r[n[i]]}else r=void 0;return r}const z={},hi=(e,t,n)=>n&&(t in z||(z[t]={}),e in z[t]||(z[t][e]=n),n),gn=(e,t)=>{if(t==null)return;if(t in z&&e in z[t])return z[t][e];const n=fe(t);for(let r=0;r<n.length;r++){const i=n[r],a=mi(i,e);if(a)return hi(e,t,a)}};let tt;const me=Be({});function di(e){return tt[e]||null}function pn(e){return e in tt}function mi(e,t){if(!pn(e))return null;const n=di(e);return ci(n,t)}function fi(e){if(e==null)return;const t=fe(e);for(let n=0;n<t.length;n++){const r=t[n];if(pn(r))return r}}function bn(e,...t){delete z[e],me.update(n=>(n[e]=yr.all([n[e]||{},...t]),n))}ie([me],([e])=>Object.keys(e));me.subscribe(e=>tt=e);const Te={};function gi(e,t){Te[e].delete(t),Te[e].size===0&&delete Te[e]}function yn(e){return Te[e]}function pi(e){return fe(e).map(t=>{const n=yn(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ie(e){return e==null?!1:fe(e).some(t=>{var n;return(n=yn(t))==null?void 0:n.size})}function bi(e,t){return Promise.all(t.map(r=>(gi(e,r),r().then(i=>i.default||i)))).then(r=>bn(e,...r))}const oe={};function vn(e){if(!Ie(e))return e in oe?oe[e]:Promise.resolve();const t=pi(e);return oe[e]=Promise.all(t.map(([n,r])=>bi(n,r))).then(()=>{if(Ie(e))return vn(e);delete oe[e]}),oe[e]}var _t=Object.getOwnPropertySymbols,yi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,Ei=(e,t)=>{var n={};for(var r in e)yi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_t)for(var r of _t(e))t.indexOf(r)<0&&vi.call(e,r)&&(n[r]=e[r]);return n};const _i={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"}}};function xi({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${fe(e).join('", "')}".${Ie(U())?`
4
4
 
@@ -1,8 +1,7 @@
1
1
  function M() {
2
2
  }
3
3
  function yn(e, t) {
4
- for (const n in t)
5
- e[n] = t[n];
4
+ for (const n in t) e[n] = t[n];
6
5
  return (
7
6
  /** @type {T & S} */
8
7
  e
@@ -92,8 +91,7 @@ function Mt(e, t, n) {
92
91
  }
93
92
  }
94
93
  function _n(e) {
95
- if (!e)
96
- return document;
94
+ if (!e) return document;
97
95
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
98
96
  return t && /** @type {ShadowRoot} */
99
97
  t.host ? (
@@ -226,8 +224,7 @@ function le(e) {
226
224
  ue = e;
227
225
  }
228
226
  function An() {
229
- if (!ue)
230
- throw new Error("Function called outside component initialization");
227
+ if (!ue) throw new Error("Function called outside component initialization");
231
228
  return ue;
232
229
  }
233
230
  function Sn(e) {
@@ -258,8 +255,7 @@ function C() {
258
255
  } catch (t) {
259
256
  throw X.length = 0, W = 0, t;
260
257
  }
261
- for (le(null), X.length = 0, W = 0; Ue.length; )
262
- Ue.pop()();
258
+ for (le(null), X.length = 0, W = 0; Ue.length; ) Ue.pop()();
263
259
  for (let t = 0; t < J.length; t += 1) {
264
260
  const n = J[t];
265
261
  Me.has(n) || (Me.add(n), n());
@@ -299,13 +295,11 @@ function L(e, t) {
299
295
  }
300
296
  function D(e, t, n, r) {
301
297
  if (e && e.o) {
302
- if (Ee.has(e))
303
- return;
298
+ if (Ee.has(e)) return;
304
299
  Ee.add(e), F.c.push(() => {
305
300
  Ee.delete(e), r && (n && e.d(1), r());
306
301
  }), e.o(t);
307
- } else
308
- r && r();
302
+ } else r && r();
309
303
  }
310
304
  function Mn(e) {
311
305
  e && e.c();
@@ -593,8 +587,7 @@ function Dn(e, t) {
593
587
  }
594
588
  }
595
589
  function Nn(e, t) {
596
- if (!e || !t)
597
- return;
590
+ if (!e || !t) return;
598
591
  const n = new URL(t);
599
592
  fetch(n.href).then((r) => r.text()).then((r) => {
600
593
  const i = document.createElement("style");
@@ -604,8 +597,7 @@ function Nn(e, t) {
604
597
  });
605
598
  }
606
599
  function zn(e, t, n, r = !1) {
607
- if (!window.emMessageBus)
608
- return;
600
+ if (!window.emMessageBus) return;
609
601
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
610
602
  return n = Rn(e, t), n;
611
603
  window[Z] || (window[Z] = {}), n = Un(e, t);
@@ -626,8 +618,7 @@ function Rn(e, t) {
626
618
  }
627
619
  function Un(e, t) {
628
620
  return window.emMessageBus.subscribe(t, (n) => {
629
- if (!e)
630
- return;
621
+ if (!e) return;
631
622
  const r = e.getRootNode(), i = window[Z];
632
623
  let a = i[t] && i[t].sheet;
633
624
  a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(n), i[t] = {
@@ -898,8 +889,7 @@ var $e = function(e, t) {
898
889
  return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
899
890
  n.__proto__ = r;
900
891
  } || function(n, r) {
901
- for (var i in r)
902
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
892
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
903
893
  }, $e(e, t);
904
894
  };
905
895
  function Be(e, t) {
@@ -915,25 +905,22 @@ var P = function() {
915
905
  return P = Object.assign || function(t) {
916
906
  for (var n, r = 1, i = arguments.length; r < i; r++) {
917
907
  n = arguments[r];
918
- for (var a in n)
919
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
908
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
920
909
  }
921
910
  return t;
922
911
  }, P.apply(this, arguments);
923
912
  };
924
913
  function or(e, t) {
925
914
  var n = {};
926
- for (var r in e)
927
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
915
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
928
916
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
929
917
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
930
918
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
931
919
  return n;
932
920
  }
933
921
  function Pe(e, t, n) {
934
- if (n || arguments.length === 2)
935
- for (var r = 0, i = t.length, a; r < i; r++)
936
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
922
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
923
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
937
924
  return e.concat(a || Array.prototype.slice.call(t));
938
925
  }
939
926
  function Oe(e, t) {
@@ -988,8 +975,7 @@ var dr = function() {
988
975
  return Te = Object.assign || function(t) {
989
976
  for (var n, r = 1, i = arguments.length; r < i; r++) {
990
977
  n = arguments[r];
991
- for (var a in n)
992
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
978
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
993
979
  }
994
980
  return t;
995
981
  }, Te.apply(this, arguments);
@@ -1135,8 +1121,7 @@ var x = function() {
1135
1121
  return x = Object.assign || function(t) {
1136
1122
  for (var n, r = 1, i = arguments.length; r < i; r++) {
1137
1123
  n = arguments[r];
1138
- for (var a in n)
1139
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
1124
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
1140
1125
  }
1141
1126
  return t;
1142
1127
  }, x.apply(this, arguments);
@@ -2778,8 +2763,7 @@ function wr(e, t) {
2778
2763
  n += u;
2779
2764
  for (; o-- > 0; )
2780
2765
  n = l + n;
2781
- } else
2782
- i === "J" ? n += "H" : n += i;
2766
+ } else i === "J" ? n += "H" : n += i;
2783
2767
  }
2784
2768
  return n;
2785
2769
  }
@@ -3382,8 +3366,7 @@ function Ze(e) {
3382
3366
  if (delete t.location, Jt(t) || Kt(t))
3383
3367
  for (var n in t.options)
3384
3368
  delete t.options[n].location, Ze(t.options[n].value);
3385
- else
3386
- qt(t) && Qt(t.style) || (Xt(t) || Zt(t)) && je(t.style) ? delete t.style.location : Yt(t) && Ze(t.children);
3369
+ else qt(t) && Qt(t.style) || (Xt(t) || Zt(t)) && je(t.style) ? delete t.style.location : Yt(t) && Ze(t.children);
3387
3370
  });
3388
3371
  }
3389
3372
  function jr(e, t) {
@@ -10,7 +10,7 @@ var Pe = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writ
10
10
  Sn.call(t, n) && Pe(e, n, t[n]);
11
11
  return e;
12
12
  }, st = (e, t) => wn(e, In(t));
13
- var A = (e, t, n) => (Pe(e, typeof t != "symbol" ? t + "" : t, n), n);
13
+ var A = (e, t, n) => Pe(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var ot = (e, t, n) => new Promise((r, i) => {
15
15
  var a = (u) => {
16
16
  try {
@@ -30,8 +30,7 @@ var ot = (e, t, n) => new Promise((r, i) => {
30
30
  function P() {
31
31
  }
32
32
  function Cn(e, t) {
33
- for (const n in t)
34
- e[n] = t[n];
33
+ for (const n in t) e[n] = t[n];
35
34
  return (
36
35
  /** @type {T & S} */
37
36
  e
@@ -121,8 +120,7 @@ function Rt(e, t, n) {
121
120
  }
122
121
  }
123
122
  function Hn(e) {
124
- if (!e)
125
- return document;
123
+ if (!e) return document;
126
124
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
127
125
  return t && /** @type {ShadowRoot} */
128
126
  t.host ? (
@@ -255,8 +253,7 @@ function ue(e) {
255
253
  ce = e;
256
254
  }
257
255
  function zn() {
258
- if (!ce)
259
- throw new Error("Function called outside component initialization");
256
+ if (!ce) throw new Error("Function called outside component initialization");
260
257
  return ce;
261
258
  }
262
259
  function Rn(e) {
@@ -287,8 +284,7 @@ function B() {
287
284
  } catch (t) {
288
285
  throw Z.length = 0, q = 0, t;
289
286
  }
290
- for (ue(null), Z.length = 0, q = 0; Ge.length; )
291
- Ge.pop()();
287
+ for (ue(null), Z.length = 0, q = 0; Ge.length; ) Ge.pop()();
292
288
  for (let t = 0; t < K.length; t += 1) {
293
289
  const n = K[t];
294
290
  Oe.has(n) || (Oe.add(n), n());
@@ -328,13 +324,11 @@ function H(e, t) {
328
324
  }
329
325
  function N(e, t, n, r) {
330
326
  if (e && e.o) {
331
- if (_e.has(e))
332
- return;
327
+ if (_e.has(e)) return;
333
328
  _e.add(e), G.c.push(() => {
334
329
  _e.delete(e), r && (n && e.d(1), r());
335
330
  }), e.o(t);
336
- } else
337
- r && r();
331
+ } else r && r();
338
332
  }
339
333
  function jn(e) {
340
334
  e && e.c();
@@ -630,8 +624,7 @@ function qn(e, t) {
630
624
  }
631
625
  }
632
626
  function Xn(e, t) {
633
- if (!e || !t)
634
- return;
627
+ if (!e || !t) return;
635
628
  const n = new URL(t);
636
629
  fetch(n.href).then((r) => r.text()).then((r) => {
637
630
  const i = document.createElement("style");
@@ -641,8 +634,7 @@ function Xn(e, t) {
641
634
  });
642
635
  }
643
636
  function Zn(e, t, n, r = !1) {
644
- if (!window.emMessageBus)
645
- return;
637
+ if (!window.emMessageBus) return;
646
638
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
647
639
  return n = Jn(e, t), n;
648
640
  window[J] || (window[J] = {}), n = Kn(e, t);
@@ -663,8 +655,7 @@ function Jn(e, t) {
663
655
  }
664
656
  function Kn(e, t) {
665
657
  return window.emMessageBus.subscribe(t, (n) => {
666
- if (!e)
667
- return;
658
+ if (!e) return;
668
659
  const r = e.getRootNode(), i = window[J];
669
660
  let a = i[t] && i[t].sheet;
670
661
  a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(n), i[t] = {
@@ -935,8 +926,7 @@ var Ve = function(e, t) {
935
926
  return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
936
927
  n.__proto__ = r;
937
928
  } || function(n, r) {
938
- for (var i in r)
939
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
929
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
940
930
  }, Ve(e, t);
941
931
  };
942
932
  function Le(e, t) {
@@ -952,25 +942,22 @@ var O = function() {
952
942
  return O = Object.assign || function(t) {
953
943
  for (var n, r = 1, i = arguments.length; r < i; r++) {
954
944
  n = arguments[r];
955
- for (var a in n)
956
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
945
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
957
946
  }
958
947
  return t;
959
948
  }, O.apply(this, arguments);
960
949
  };
961
950
  function yr(e, t) {
962
951
  var n = {};
963
- for (var r in e)
964
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
952
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
965
953
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
966
954
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
967
955
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
968
956
  return n;
969
957
  }
970
958
  function De(e, t, n) {
971
- if (n || arguments.length === 2)
972
- for (var r = 0, i = t.length, a; r < i; r++)
973
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
959
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
960
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
974
961
  return e.concat(a || Array.prototype.slice.call(t));
975
962
  }
976
963
  function Ne(e, t) {
@@ -1025,8 +1012,7 @@ var kr = function() {
1025
1012
  return we = Object.assign || function(t) {
1026
1013
  for (var n, r = 1, i = arguments.length; r < i; r++) {
1027
1014
  n = arguments[r];
1028
- for (var a in n)
1029
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
1015
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
1030
1016
  }
1031
1017
  return t;
1032
1018
  }, we.apply(this, arguments);
@@ -1172,8 +1158,7 @@ var x = function() {
1172
1158
  return x = Object.assign || function(t) {
1173
1159
  for (var n, r = 1, i = arguments.length; r < i; r++) {
1174
1160
  n = arguments[r];
1175
- for (var a in n)
1176
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
1161
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
1177
1162
  }
1178
1163
  return t;
1179
1164
  }, x.apply(this, arguments);
@@ -2815,8 +2800,7 @@ function Dr(e, t) {
2815
2800
  n += u;
2816
2801
  for (; s-- > 0; )
2817
2802
  n = l + n;
2818
- } else
2819
- i === "J" ? n += "H" : n += i;
2803
+ } else i === "J" ? n += "H" : n += i;
2820
2804
  }
2821
2805
  return n;
2822
2806
  }
@@ -3419,8 +3403,7 @@ function Ke(e) {
3419
3403
  if (delete t.location, nn(t) || rn(t))
3420
3404
  for (var n in t.options)
3421
3405
  delete t.options[n].location, Ke(t.options[n].value);
3422
- else
3423
- Qt(t) && sn(t.style) || (en(t) || tn(t)) && We(t.style) ? delete t.style.location : an(t) && Ke(t.children);
3406
+ else Qt(t) && sn(t.style) || (en(t) || tn(t)) && We(t.style) ? delete t.style.location : an(t) && Ke(t.children);
3424
3407
  });
3425
3408
  }
3426
3409
  function ti(e, t) {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierError-BXXPec8d.cjs")).then(({default:t})=>{!customElements.get("cashier-error")&&customElements.define("cashier-error",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierError-BgcNA04o.cjs")).then(({default:t})=>{!customElements.get("cashier-error")&&customElements.define("cashier-error",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierError-xBg6KcNS.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierError-CbM5sbKw.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-error") && customElements.define("cashier-error", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CashierError-C-bvd1zf.js";
1
+ import { C as s } from "../components/CashierError-Bz6amhe6.js";
2
2
  function n(t) {
3
3
  return function(...r) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-error",
3
- "version": "1.99.56",
3
+ "version": "1.99.59",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-error.cjs",
6
6
  "module": "esnext/cashier-error.js",