@everymatrix/transaction-history-calendar 1.85.17 → 1.85.18
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.
- package/components/{TransactionHistoryCalendar-C-66P1Hl.cjs → TransactionHistoryCalendar-DDSsRmQn.cjs} +1 -1
- package/components/{TransactionHistoryCalendar-B19vHNQS.js → TransactionHistoryCalendar-pncOC1G9.js} +2 -0
- package/components/{TransactionHistoryCalendar-YzqtMjA-.js → TransactionHistoryCalendar-xbjoMtG8.js} +2 -0
- package/es2015/transaction-history-calendar.cjs +1 -1
- package/es2015/transaction-history-calendar.js +1 -1
- package/esnext/transaction-history-calendar.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Sa=Object.defineProperty,Ea=Object.defineProperties;var _a=Object.getOwnPropertyDescriptors;var gr=Object.getOwnPropertySymbols;var Ta=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable;var mn=(t,n,e)=>n in t?Sa(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,gn=(t,n)=>{for(var e in n||(n={}))Ta.call(n,e)&&mn(t,e,n[e]);if(gr)for(var e of gr(n))Ca.call(n,e)&&mn(t,e,n[e]);return t},br=(t,n)=>Ea(t,_a(n));var Se=(t,n,e)=>(mn(t,typeof n!="symbol"?n+"":n,e),e);var bn=(t,n,e)=>new Promise((r,i)=>{var s=p=>{try{d(e.next(p))}catch(f){i(f)}},u=p=>{try{d(e.throw(p))}catch(f){i(f)}},d=p=>p.done?r(p.value):Promise.resolve(p.value).then(s,u);d((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _e(){}function Br(t){return t()}function vr(){return Object.create(null)}function St(t){t.forEach(Br)}function Un(t){return typeof t=="function"}function Fr(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function Aa(t){return Object.keys(t).length===0}function jr(t,...n){if(t==null){for(const r of n)r(void 0);return _e}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Oa(t,n,e){t.$$.on_destroy.push(jr(n,e))}function Le(t,n){t.appendChild(n)}function Ha(t,n,e){const r=Pa(t);if(!r.getElementById(n)){const i=Ue("style");i.id=n,i.textContent=e,Ia(r,i)}}function Pa(t){if(!t)return document;const n=t.getRootNode?t.getRootNode():t.ownerDocument;return n&&n.host?n:t.ownerDocument}function Ia(t,n){return Le(t.head||t,n),n.sheet}function Ur(t,n,e){t.insertBefore(n,e||null)}function Gn(t){t.parentNode&&t.parentNode.removeChild(t)}function Ue(t){return document.createElement(t)}function Gr(t){return document.createTextNode(t)}function yr(){return Gr(" ")}function Na(t,n,e,r){return t.addEventListener(n,e,r),()=>t.removeEventListener(n,e,r)}function Pe(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function La(t){return Array.from(t.childNodes)}function $a(t,n){n=""+n,t.data!==n&&(t.data=n)}function Ra(t){const n={};return t.childNodes.forEach(e=>{n[e.slot||"default"]=!0}),n}let kt;function yt(t){kt=t}function Ba(){if(!kt)throw new Error("Function called outside component initialization");return kt}function Fa(t){Ba().$$.on_mount.push(t)}const qe=[],tn=[];let Qe=[];const wr=[],Wr=Promise.resolve();let An=!1;function Jr(){An||(An=!0,Wr.then(Ce))}function ja(){return Jr(),Wr}function On(t){Qe.push(t)}const vn=new Set;let Ze=0;function Ce(){if(Ze!==0)return;const t=kt;do{try{for(;Ze<qe.length;){const n=qe[Ze];Ze++,yt(n),Ua(n.$$)}}catch(n){throw qe.length=0,Ze=0,n}for(yt(null),qe.length=0,Ze=0;tn.length;)tn.pop()();for(let n=0;n<Qe.length;n+=1){const e=Qe[n];vn.has(e)||(vn.add(e),e())}Qe.length=0}while(qe.length);for(;wr.length;)wr.pop()();An=!1,vn.clear(),yt(t)}function Ua(t){if(t.fragment!==null){t.update(),St(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(On)}}function Ga(t){const n=[],e=[];Qe.forEach(r=>t.indexOf(r)===-1?n.push(r):e.push(r)),e.forEach(r=>r()),Qe=n}const Wa=new Set;function Ja(t,n){t&&t.i&&(Wa.delete(t),t.i(n))}function Ya(t,n,e){const{fragment:r,after_update:i}=t.$$;r&&r.m(n,e),On(()=>{const s=t.$$.on_mount.map(Br).filter(Un);t.$$.on_destroy?t.$$.on_destroy.push(...s):St(s),t.$$.on_mount=[]}),i.forEach(On)}function za(t,n){const e=t.$$;e.fragment!==null&&(Ga(e.after_update),St(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Va(t,n){t.$$.dirty[0]===-1&&(qe.push(t),Jr(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function Xa(t,n,e,r,i,s,u=null,d=[-1]){const p=kt;yt(t);const f=t.$$={fragment:null,ctx:[],props:s,update:_e,not_equal:i,bound:vr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:vr(),dirty:d,skip_bound:!1,root:n.target||p.$$.root};u&&u(f.root);let h=!1;if(f.ctx=e?e(t,n.props||{},(y,x,...T)=>{const I=T.length?T[0]:x;return f.ctx&&i(f.ctx[y],f.ctx[y]=I)&&(!f.skip_bound&&f.bound[y]&&f.bound[y](I),h&&Va(t,y)),x}):[],f.update(),h=!0,St(f.before_update),f.fragment=r?r(f.ctx):!1,n.target){if(n.hydrate){const y=La(n.target);f.fragment&&f.fragment.l(y),y.forEach(Gn)}else f.fragment&&f.fragment.c();n.intro&&Ja(t.$$.fragment),Ya(t,n.target,n.anchor),Ce()}yt(p)}let Yr;typeof HTMLElement=="function"&&(Yr=class extends HTMLElement{constructor(n,e,r){super();Se(this,"$$ctor");Se(this,"$$s");Se(this,"$$c");Se(this,"$$cn",!1);Se(this,"$$d",{});Se(this,"$$r",!1);Se(this,"$$p_d",{});Se(this,"$$l",{});Se(this,"$$l_u",new Map);this.$$ctor=n,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(n,e,r){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(e),this.$$c){const i=this.$$c.$on(n,e);this.$$l_u.set(e,i)}super.addEventListener(n,e,r)}removeEventListener(n,e,r){if(super.removeEventListener(n,e,r),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}connectedCallback(){return bn(this,null,function*(){if(this.$$cn=!0,!this.$$c){let n=function(s){return()=>{let u;return{c:function(){u=Ue("slot"),s!=="default"&&Pe(u,"name",s)},m:function(f,h){Ur(f,u,h)},d:function(f){f&&Gn(u)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ra(this);for(const s of this.$$s)s in r&&(e[s]=[n(s)]);for(const s of this.attributes){const u=this.$$g_p(s.name);u in this.$$d||(this.$$d[u]=qt(u,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:br(gn({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const u=qt(s,this.$$d[s],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,u)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const u of this.$$l[s]){const d=this.$$c.$on(s,u);this.$$l_u.set(u,d)}this.$$l={}}})}attributeChangedCallback(n,e,r){var i;this.$$r||(n=this.$$g_p(n),this.$$d[n]=qt(n,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(n){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===n||!this.$$p_d[e].attribute&&e.toLowerCase()===n)||n}});function qt(t,n,e,r){var s;const i=(s=e[t])==null?void 0:s.type;if(n=i==="Boolean"&&typeof n!="boolean"?n!=null:n,!r||!e[t])return n;if(r==="toAttribute")switch(i){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n==null?null:n;default:return n}else switch(i){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function Za(t,n,e,r,i,s){let u=class extends Yr{constructor(){super(t,e,i),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map(d=>(n[d].attribute||d).toLowerCase())}};return Object.keys(n).forEach(d=>{Object.defineProperty(u.prototype,d,{get(){return this.$$c&&d in this.$$c?this.$$c[d]:this.$$d[d]},set(p){var f;p=qt(d,p,n),this.$$d[d]=p,(f=this.$$c)==null||f.$set({[d]:p})}})}),r.forEach(d=>{Object.defineProperty(u.prototype,d,{get(){var p;return(p=this.$$c)==null?void 0:p[d]}})}),t.element=u,u}class Ka{constructor(){Se(this,"$$");Se(this,"$$set")}$destroy(){za(this,1),this.$destroy=_e}$on(n,e){if(!Un(e))return _e;const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(e),()=>{const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}$set(n){this.$$set&&!Aa(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const qa="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qa);function Qa(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function ei(t,n){const e=new URL(n);fetch(e.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,t&&t.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function ti(t,n,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(n,i=>{r.innerHTML=i,t&&t.appendChild(r)})}}const Ke=[];function ni(t,n){return{subscribe:ln(t,n).subscribe}}function ln(t,n=_e){let e;const r=new Set;function i(d){if(Fr(t,d)&&(t=d,e)){const p=!Ke.length;for(const f of r)f[1](),Ke.push(f,t);if(p){for(let f=0;f<Ke.length;f+=2)Ke[f][0](Ke[f+1]);Ke.length=0}}}function s(d){i(d(t))}function u(d,p=_e){const f=[d,p];return r.add(f),r.size===1&&(e=n(i,s)||_e),d(t),()=>{r.delete(f),r.size===0&&e&&(e(),e=null)}}return{set:i,update:s,subscribe:u}}function ot(t,n,e){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=n.length<2;return ni(e,(u,d)=>{let p=!1;const f=[];let h=0,y=_e;const x=()=>{if(h)return;y();const I=n(r?f[0]:f,u,d);s?u(I):y=Un(I)?I:_e},T=i.map((I,m)=>jr(I,C=>{f[m]=C,h&=~(1<<m),p&&x()},()=>{h|=1<<m}));return p=!0,x(),function(){St(T),y(),p=!1}})}var Wn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function un(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ri=function(n){return ai(n)&&!ii(n)};function ai(t){return!!t&&typeof t=="object"}function ii(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||li(t)}var oi=typeof Symbol=="function"&&Symbol.for,si=oi?Symbol.for("react.element"):60103;function li(t){return t.$$typeof===si}function ui(t){return Array.isArray(t)?[]:{}}function xt(t,n){return n.clone!==!1&&n.isMergeableObject(t)?nt(ui(t),t,n):t}function fi(t,n,e){return t.concat(n).map(function(r){return xt(r,e)})}function di(t,n){if(!n.customMerge)return nt;var e=n.customMerge(t);return typeof e=="function"?e:nt}function ci(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}function kr(t){return Object.keys(t).concat(ci(t))}function zr(t,n){try{return n in t}catch(e){return!1}}function hi(t,n){return zr(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))}function pi(t,n,e){var r={};return e.isMergeableObject(t)&&kr(t).forEach(function(i){r[i]=xt(t[i],e)}),kr(n).forEach(function(i){hi(t,i)||(zr(t,i)&&e.isMergeableObject(n[i])?r[i]=di(i,e)(t[i],n[i],e):r[i]=xt(n[i],e))}),r}function nt(t,n,e){e=e||{},e.arrayMerge=e.arrayMerge||fi,e.isMergeableObject=e.isMergeableObject||ri,e.cloneUnlessOtherwiseSpecified=xt;var r=Array.isArray(n),i=Array.isArray(t),s=r===i;return s?r?e.arrayMerge(t,n,e):pi(t,n,e):xt(n,e)}nt.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(r,i){return nt(r,i,e)},{})};var mi=nt,gi=mi;const bi=un(gi);var Hn=function(t,n){return Hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},Hn(t,n)};function fn(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Hn(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var Ae=function(){return Ae=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},Ae.apply(this,arguments)};function vi(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e}function yn(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,s;r<i;r++)(s||!(r in n))&&(s||(s=Array.prototype.slice.call(n,0,r)),s[r]=n[r]);return t.concat(s||Array.prototype.slice.call(n))}function wn(t,n){var e=n&&n.cache?n.cache:Si,r=n&&n.serializer?n.serializer:Mi,i=n&&n.strategy?n.strategy:ki;return i(t,{cache:e,serializer:r})}function yi(t){return t==null||typeof t=="number"||typeof t=="boolean"}function wi(t,n,e,r){var i=yi(r)?r:e(r),s=n.get(i);return typeof s=="undefined"&&(s=t.call(this,r),n.set(i,s)),s}function Vr(t,n,e){var r=Array.prototype.slice.call(arguments,3),i=e(r),s=n.get(i);return typeof s=="undefined"&&(s=t.apply(this,r),n.set(i,s)),s}function Xr(t,n,e,r,i){return e.bind(n,t,r,i)}function ki(t,n){var e=t.length===1?wi:Vr;return Xr(t,this,e,n.cache.create(),n.serializer)}function xi(t,n){return Xr(t,this,Vr,n.cache.create(),n.serializer)}var Mi=function(){return JSON.stringify(arguments)},Di=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(n){return this.cache[n]},t.prototype.set=function(n,e){this.cache[n]=e},t}(),Si={create:function(){return new Di}},kn={variadic:xi},nn=function(){return nn=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},nn.apply(this,arguments)};var j;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(j||(j={}));var te;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(te||(te={}));var rt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(rt||(rt={}));function xr(t){return t.type===te.literal}function Ei(t){return t.type===te.argument}function Zr(t){return t.type===te.number}function Kr(t){return t.type===te.date}function qr(t){return t.type===te.time}function Qr(t){return t.type===te.select}function ea(t){return t.type===te.plural}function _i(t){return t.type===te.pound}function ta(t){return t.type===te.tag}function na(t){return!!(t&&typeof t=="object"&&t.type===rt.number)}function Pn(t){return!!(t&&typeof t=="object"&&t.type===rt.dateTime)}var ra=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ti=/(?:[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 Ci(t){var n={};return t.replace(Ti,function(e){var r=e.length;switch(e[0]){case"G":n.era=r===4?"long":r===5?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][r-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][r-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][r-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][r-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][r-1];break;case"s":n.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":n.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""}),n}var oe=function(){return oe=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},oe.apply(this,arguments)};var Ai=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Oi(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var n=t.split(Ai).filter(function(x){return x.length>0}),e=[],r=0,i=n;r<i.length;r++){var s=i[r],u=s.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var d=u[0],p=u.slice(1),f=0,h=p;f<h.length;f++){var y=h[f];if(y.length===0)throw new Error("Invalid number skeleton")}e.push({stem:d,options:p})}return e}function Hi(t){return t.replace(/^(.*?)-/,"")}var Mr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,aa=/^(@+)?(\+|#+)?[rs]?$/g,Pi=/(\*)(0+)|(#+)(0+)|(0+)/g,ia=/^(0+)$/;function Dr(t){var n={};return t[t.length-1]==="r"?n.roundingPriority="morePrecision":t[t.length-1]==="s"&&(n.roundingPriority="lessPrecision"),t.replace(aa,function(e,r,i){return typeof i!="string"?(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length):i==="+"?n.minimumSignificantDigits=r.length:r[0]==="#"?n.maximumSignificantDigits=r.length:(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),n}function oa(t){switch(t){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 Ii(t){var n;if(t[0]==="E"&&t[1]==="E"?(n={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(n={notation:"scientific"},t=t.slice(1)),n){var e=t.slice(0,2);if(e==="+!"?(n.signDisplay="always",t=t.slice(2)):e==="+?"&&(n.signDisplay="exceptZero",t=t.slice(2)),!ia.test(t))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=t.length}return n}function Sr(t){var n={},e=oa(t);return e||n}function Ni(t){for(var n={},e=0,r=t;e<r.length;e++){var i=r[e];switch(i.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=i.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=Hi(i.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=oe(oe(oe({},n),{notation:"scientific"}),i.options.reduce(function(p,f){return oe(oe({},p),Sr(f))},{}));continue;case"engineering":n=oe(oe(oe({},n),{notation:"engineering"}),i.options.reduce(function(p,f){return oe(oe({},p),Sr(f))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.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(Pi,function(p,f,h,y,x,T){if(f)n.minimumIntegerDigits=h.length;else{if(y&&x)throw new Error("We currently do not support maximum integer digits");if(T)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ia.test(i.stem)){n.minimumIntegerDigits=i.stem.length;continue}if(Mr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Mr,function(p,f,h,y,x,T){return h==="*"?n.minimumFractionDigits=f.length:y&&y[0]==="#"?n.maximumFractionDigits=y.length:x&&T?(n.minimumFractionDigits=x.length,n.maximumFractionDigits=x.length+T.length):(n.minimumFractionDigits=f.length,n.maximumFractionDigits=f.length),""});var s=i.options[0];s==="w"?n=oe(oe({},n),{trailingZeroDisplay:"stripIfInteger"}):s&&(n=oe(oe({},n),Dr(s)));continue}if(aa.test(i.stem)){n=oe(oe({},n),Dr(i.stem));continue}var u=oa(i.stem);u&&(n=oe(oe({},n),u));var d=Ii(i.stem);d&&(n=oe(oe({},n),d))}return n}var Xt={"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 Li(t,n){for(var e="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var s=0;r+1<t.length&&t.charAt(r+1)===i;)s++,r++;var u=1+(s&1),d=s<2?1:3+(s>>1),p="a",f=$i(n);for((f=="H"||f=="k")&&(d=0);d-- >0;)e+=p;for(;u-- >0;)e=f+e}else i==="J"?e+="H":e+=i}return e}function $i(t){var n=t.hourCycle;if(n===void 0&&t.hourCycles&&t.hourCycles.length&&(n=t.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,r;e!=="root"&&(r=t.maximize().region);var i=Xt[r||""]||Xt[e||""]||Xt["".concat(e,"-001")]||Xt["001"];return i[0]}var xn,Ri=new RegExp("^".concat(ra.source,"*")),Bi=new RegExp("".concat(ra.source,"*$"));function U(t,n){return{start:t,end:n}}var Fi=!!String.prototype.startsWith&&"_a".startsWith("a",1),ji=!!String.fromCodePoint,Ui=!!Object.fromEntries,Gi=!!String.prototype.codePointAt,Wi=!!String.prototype.trimStart,Ji=!!String.prototype.trimEnd,Yi=!!Number.isSafeInteger,zi=Yi?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},In=!0;try{var Vi=la("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");In=((xn=Vi.exec("a"))===null||xn===void 0?void 0:xn[0])==="a"}catch(t){In=!1}var Er=Fi?function(n,e,r){return n.startsWith(e,r)}:function(n,e,r){return n.slice(r,r+e.length)===e},Nn=ji?String.fromCodePoint:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var r="",i=n.length,s=0,u;i>s;){if(u=n[s++],u>1114111)throw RangeError(u+" is not a valid code point");r+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return r},_r=Ui?Object.fromEntries:function(n){for(var e={},r=0,i=n;r<i.length;r++){var s=i[r],u=s[0],d=s[1];e[u]=d}return e},sa=Gi?function(n,e){return n.codePointAt(e)}:function(n,e){var r=n.length;if(!(e<0||e>=r)){var i=n.charCodeAt(e),s;return i<55296||i>56319||e+1===r||(s=n.charCodeAt(e+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Xi=Wi?function(n){return n.trimStart()}:function(n){return n.replace(Ri,"")},Zi=Ji?function(n){return n.trimEnd()}:function(n){return n.replace(Bi,"")};function la(t,n){return new RegExp(t,n)}var Ln;if(In){var Tr=la("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ln=function(n,e){var r;Tr.lastIndex=e;var i=Tr.exec(n);return(r=i[1])!==null&&r!==void 0?r:""}}else Ln=function(n,e){for(var r=[];;){var i=sa(n,e);if(i===void 0||ua(i)||eo(i))break;r.push(i),e+=i>=65536?2:1}return Nn.apply(void 0,r)};var Ki=function(){function t(n,e){e===void 0&&(e={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(n,e,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var u=this.parseArgument(n,r);if(u.err)return u;i.push(u.val)}else{if(s===125&&n>0)break;if(s===35&&(e==="plural"||e==="selectordinal")){var d=this.clonePosition();this.bump(),i.push({type:te.pound,location:U(d,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(j.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&$n(this.peek()||0)){var u=this.parseTag(n,e);if(u.err)return u;i.push(u.val)}else{var u=this.parseLiteral(n,e);if(u.err)return u;i.push(u.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(n,e){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:te.literal,value:"<".concat(i,"/>"),location:U(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(n+1,e,!0);if(s.err)return s;var u=s.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$n(this.char()))return this.error(j.INVALID_TAG,U(d,this.clonePosition()));var p=this.clonePosition(),f=this.parseTagName();return i!==f?this.error(j.UNMATCHED_CLOSING_TAG,U(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:te.tag,value:i,children:u,location:U(r,this.clonePosition())},err:null}:this.error(j.INVALID_TAG,U(d,this.clonePosition())))}else return this.error(j.UNCLOSED_TAG,U(r,this.clonePosition()))}else return this.error(j.INVALID_TAG,U(r,this.clonePosition()))},t.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&Qi(this.char());)this.bump();return this.message.slice(n,this.offset())},t.prototype.parseLiteral=function(n,e){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(e);if(s){i+=s;continue}var u=this.tryParseUnquoted(n,e);if(u){i+=u;continue}var d=this.tryParseLeftAngleBracket();if(d){i+=d;continue}break}var p=U(r,this.clonePosition());return{val:{type:te.literal,value:i,location:p},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!qi(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(n){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(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return Nn.apply(void 0,e)},t.prototype.tryParseUnquoted=function(n,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&n>0?null:(this.bump(),Nn(r))},t.prototype.parseArgument=function(n,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(j.EMPTY_ARGUMENT,U(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(j.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:te.argument,value:i,location:U(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition())):this.parseArgumentOptions(n,e,i,r);default:return this.error(j.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),e=this.offset(),r=Ln(this.message,e),i=e+r.length;this.bumpTo(i);var s=this.clonePosition(),u=U(n,s);return{value:r,location:u}},t.prototype.parseArgumentOptions=function(n,e,r,i){var s,u=this.clonePosition(),d=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(d){case"":return this.error(j.EXPECT_ARGUMENT_TYPE,U(u,p));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),y=this.parseSimpleArgStyleIfPossible();if(y.err)return y;var x=Zi(y.val);if(x.length===0)return this.error(j.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var T=U(h,this.clonePosition());f={style:x,styleLocation:T}}var I=this.tryParseArgumentClose(i);if(I.err)return I;var m=U(i,this.clonePosition());if(f&&Er(f==null?void 0:f.style,"::",0)){var C=Xi(f.style.slice(2));if(d==="number"){var y=this.parseNumberSkeletonFromString(C,f.styleLocation);return y.err?y:{val:{type:te.number,value:r,location:m,style:y.val},err:null}}else{if(C.length===0)return this.error(j.EXPECT_DATE_TIME_SKELETON,m);var R=C;this.locale&&(R=Li(C,this.locale));var x={type:rt.dateTime,pattern:R,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Ci(R):{}},H=d==="date"?te.date:te.time;return{val:{type:H,value:r,location:m,style:x},err:null}}}return{val:{type:d==="number"?te.number:d==="date"?te.date:te.time,value:r,location:m,style:(s=f==null?void 0:f.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var B=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(j.EXPECT_SELECT_ARGUMENT_OPTIONS,U(B,nn({},B)));this.bumpSpace();var Y=this.parseIdentifierIfPossible(),z=0;if(d!=="select"&&Y.value==="offset"){if(!this.bumpIf(":"))return this.error(j.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var y=this.tryParseDecimalInteger(j.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(y.err)return y;this.bumpSpace(),Y=this.parseIdentifierIfPossible(),z=y.val}var G=this.tryParsePluralOrSelectOptions(n,d,e,Y);if(G.err)return G;var I=this.tryParseArgumentClose(i);if(I.err)return I;var Z=U(i,this.clonePosition());return d==="select"?{val:{type:te.select,value:r,options:_r(G.val),location:Z},err:null}:{val:{type:te.plural,value:r,options:_r(G.val),offset:z,pluralType:d==="plural"?"cardinal":"ordinal",location:Z},err:null}}default:return this.error(j.INVALID_ARGUMENT_TYPE,U(u,p))}},t.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(j.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(i,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(n,e){var r=[];try{r=Oi(n)}catch(i){return this.error(j.INVALID_NUMBER_SKELETON,e)}return{val:{type:rt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ni(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(n,e,r,i){for(var s,u=!1,d=[],p=new Set,f=i.value,h=i.location;;){if(f.length===0){var y=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(j.EXPECT_PLURAL_ARGUMENT_SELECTOR,j.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;h=U(y,this.clonePosition()),f=this.message.slice(y.offset,this.offset())}else break}if(p.has(f))return this.error(e==="select"?j.DUPLICATE_SELECT_ARGUMENT_SELECTOR:j.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);f==="other"&&(u=!0),this.bumpSpace();var T=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?j.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:j.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(n+1,e,r);if(I.err)return I;var m=this.tryParseArgumentClose(T);if(m.err)return m;d.push([f,{value:I.val,location:U(T,this.clonePosition())}]),p.add(f),this.bumpSpace(),s=this.parseIdentifierIfPossible(),f=s.value,h=s.location}return d.length===0?this.error(e==="select"?j.EXPECT_SELECT_ARGUMENT_SELECTOR:j.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(j.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:d,err:null}},t.prototype.tryParseDecimalInteger=function(n,e){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,u=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)s=!0,u=u*10+(d-48),this.bump();else break}var p=U(i,this.clonePosition());return s?(u*=r,zi(u)?{val:u,err:null}:this.error(e,p)):this.error(n,p)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var e=sa(this.message,n);if(e===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(n,e){return{val:null,err:{kind:n,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},t.prototype.bumpIf=function(n){if(Er(this.message,n,this.offset())){for(var e=0;e<n.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(n){var e=this.offset(),r=this.message.indexOf(n,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var e=this.offset();if(e===n)break;if(e>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ua(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(n>=65536?2:1));return r!=null?r:null},t}();function $n(t){return t>=97&&t<=122||t>=65&&t<=90}function qi(t){return $n(t)||t===47}function Qi(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ua(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function eo(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Rn(t){t.forEach(function(n){if(delete n.location,Qr(n)||ea(n))for(var e in n.options)delete n.options[e].location,Rn(n.options[e].value);else Zr(n)&&na(n.style)||(Kr(n)||qr(n))&&Pn(n.style)?delete n.style.location:ta(n)&&Rn(n.children)})}function to(t,n){n===void 0&&(n={}),n=nn({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var e=new Ki(t,n).parse();if(e.err){var r=SyntaxError(j[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return n!=null&&n.captureLocation||Rn(e.val),e.val}var at;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(at||(at={}));var dn=function(t){fn(n,t);function n(e,r,i){var s=t.call(this,e)||this;return s.code=r,s.originalMessage=i,s}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),Cr=function(t){fn(n,t);function n(e,r,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),at.INVALID_VALUE,s)||this}return n}(dn),no=function(t){fn(n,t);function n(e,r,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),at.INVALID_VALUE,i)||this}return n}(dn),ro=function(t){fn(n,t);function n(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),at.MISSING_VALUE,r)||this}return n}(dn),ve;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ve||(ve={}));function ao(t){return t.length<2?t:t.reduce(function(n,e){var r=n[n.length-1];return!r||r.type!==ve.literal||e.type!==ve.literal?n.push(e):r.value+=e.value,n},[])}function io(t){return typeof t=="function"}function Qt(t,n,e,r,i,s,u){if(t.length===1&&xr(t[0]))return[{type:ve.literal,value:t[0].value}];for(var d=[],p=0,f=t;p<f.length;p++){var h=f[p];if(xr(h)){d.push({type:ve.literal,value:h.value});continue}if(_i(h)){typeof s=="number"&&d.push({type:ve.literal,value:e.getNumberFormat(n).format(s)});continue}var y=h.value;if(!(i&&y in i))throw new ro(y,u);var x=i[y];if(Ei(h)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),d.push({type:typeof x=="string"?ve.literal:ve.object,value:x});continue}if(Kr(h)){var T=typeof h.style=="string"?r.date[h.style]:Pn(h.style)?h.style.parsedOptions:void 0;d.push({type:ve.literal,value:e.getDateTimeFormat(n,T).format(x)});continue}if(qr(h)){var T=typeof h.style=="string"?r.time[h.style]:Pn(h.style)?h.style.parsedOptions:r.time.medium;d.push({type:ve.literal,value:e.getDateTimeFormat(n,T).format(x)});continue}if(Zr(h)){var T=typeof h.style=="string"?r.number[h.style]:na(h.style)?h.style.parsedOptions:void 0;T&&T.scale&&(x=x*(T.scale||1)),d.push({type:ve.literal,value:e.getNumberFormat(n,T).format(x)});continue}if(ta(h)){var I=h.children,m=h.value,C=i[m];if(!io(C))throw new no(m,"function",u);var R=Qt(I,n,e,r,i,s),H=C(R.map(function(z){return z.value}));Array.isArray(H)||(H=[H]),d.push.apply(d,H.map(function(z){return{type:typeof z=="string"?ve.literal:ve.object,value:z}}))}if(Qr(h)){var B=h.options[x]||h.options.other;if(!B)throw new Cr(h.value,x,Object.keys(h.options),u);d.push.apply(d,Qt(B.value,n,e,r,i));continue}if(ea(h)){var B=h.options["=".concat(x)];if(!B){if(!Intl.PluralRules)throw new dn(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var Sa=Object.defineProperty,Ea=Object.defineProperties;var _a=Object.getOwnPropertyDescriptors;var gr=Object.getOwnPropertySymbols;var Ta=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable;var mn=(t,n,e)=>n in t?Sa(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,gn=(t,n)=>{for(var e in n||(n={}))Ta.call(n,e)&&mn(t,e,n[e]);if(gr)for(var e of gr(n))Ca.call(n,e)&&mn(t,e,n[e]);return t},br=(t,n)=>Ea(t,_a(n));var Se=(t,n,e)=>(mn(t,typeof n!="symbol"?n+"":n,e),e);var bn=(t,n,e)=>new Promise((r,i)=>{var s=p=>{try{d(e.next(p))}catch(f){i(f)}},u=p=>{try{d(e.throw(p))}catch(f){i(f)}},d=p=>p.done?r(p.value):Promise.resolve(p.value).then(s,u);d((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _e(){}function Br(t){return t()}function vr(){return Object.create(null)}function St(t){t.forEach(Br)}function Un(t){return typeof t=="function"}function Fr(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function Aa(t){return Object.keys(t).length===0}function jr(t,...n){if(t==null){for(const r of n)r(void 0);return _e}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Oa(t,n,e){t.$$.on_destroy.push(jr(n,e))}function Le(t,n){t.appendChild(n)}function Ha(t,n,e){const r=Pa(t);if(!r.getElementById(n)){const i=Ue("style");i.id=n,i.textContent=e,Ia(r,i)}}function Pa(t){if(!t)return document;const n=t.getRootNode?t.getRootNode():t.ownerDocument;return n&&n.host?n:t.ownerDocument}function Ia(t,n){return Le(t.head||t,n),n.sheet}function Ur(t,n,e){t.insertBefore(n,e||null)}function Gn(t){t.parentNode&&t.parentNode.removeChild(t)}function Ue(t){return document.createElement(t)}function Gr(t){return document.createTextNode(t)}function yr(){return Gr(" ")}function Na(t,n,e,r){return t.addEventListener(n,e,r),()=>t.removeEventListener(n,e,r)}function Pe(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function La(t){return Array.from(t.childNodes)}function $a(t,n){n=""+n,t.data!==n&&(t.data=n)}function Ra(t){const n={};return t.childNodes.forEach(e=>{n[e.slot||"default"]=!0}),n}let kt;function yt(t){kt=t}function Ba(){if(!kt)throw new Error("Function called outside component initialization");return kt}function Fa(t){Ba().$$.on_mount.push(t)}const qe=[],tn=[];let Qe=[];const wr=[],Wr=Promise.resolve();let An=!1;function Jr(){An||(An=!0,Wr.then(Ce))}function ja(){return Jr(),Wr}function On(t){Qe.push(t)}const vn=new Set;let Ze=0;function Ce(){if(Ze!==0)return;const t=kt;do{try{for(;Ze<qe.length;){const n=qe[Ze];Ze++,yt(n),Ua(n.$$)}}catch(n){throw qe.length=0,Ze=0,n}for(yt(null),qe.length=0,Ze=0;tn.length;)tn.pop()();for(let n=0;n<Qe.length;n+=1){const e=Qe[n];vn.has(e)||(vn.add(e),e())}Qe.length=0}while(qe.length);for(;wr.length;)wr.pop()();An=!1,vn.clear(),yt(t)}function Ua(t){if(t.fragment!==null){t.update(),St(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(On)}}function Ga(t){const n=[],e=[];Qe.forEach(r=>t.indexOf(r)===-1?n.push(r):e.push(r)),e.forEach(r=>r()),Qe=n}const Wa=new Set;function Ja(t,n){t&&t.i&&(Wa.delete(t),t.i(n))}function Ya(t,n,e){const{fragment:r,after_update:i}=t.$$;r&&r.m(n,e),On(()=>{const s=t.$$.on_mount.map(Br).filter(Un);t.$$.on_destroy?t.$$.on_destroy.push(...s):St(s),t.$$.on_mount=[]}),i.forEach(On)}function za(t,n){const e=t.$$;e.fragment!==null&&(Ga(e.after_update),St(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Va(t,n){t.$$.dirty[0]===-1&&(qe.push(t),Jr(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function Xa(t,n,e,r,i,s,u=null,d=[-1]){const p=kt;yt(t);const f=t.$$={fragment:null,ctx:[],props:s,update:_e,not_equal:i,bound:vr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:vr(),dirty:d,skip_bound:!1,root:n.target||p.$$.root};u&&u(f.root);let h=!1;if(f.ctx=e?e(t,n.props||{},(y,x,...T)=>{const I=T.length?T[0]:x;return f.ctx&&i(f.ctx[y],f.ctx[y]=I)&&(!f.skip_bound&&f.bound[y]&&f.bound[y](I),h&&Va(t,y)),x}):[],f.update(),h=!0,St(f.before_update),f.fragment=r?r(f.ctx):!1,n.target){if(n.hydrate){const y=La(n.target);f.fragment&&f.fragment.l(y),y.forEach(Gn)}else f.fragment&&f.fragment.c();n.intro&&Ja(t.$$.fragment),Ya(t,n.target,n.anchor),Ce()}yt(p)}let Yr;typeof HTMLElement=="function"&&(Yr=class extends HTMLElement{constructor(n,e,r){super();Se(this,"$$ctor");Se(this,"$$s");Se(this,"$$c");Se(this,"$$cn",!1);Se(this,"$$d",{});Se(this,"$$r",!1);Se(this,"$$p_d",{});Se(this,"$$l",{});Se(this,"$$l_u",new Map);this.$$ctor=n,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(n,e,r){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(e),this.$$c){const i=this.$$c.$on(n,e);this.$$l_u.set(e,i)}super.addEventListener(n,e,r)}removeEventListener(n,e,r){if(super.removeEventListener(n,e,r),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}connectedCallback(){return bn(this,null,function*(){if(this.$$cn=!0,!this.$$c){let n=function(s){return()=>{let u;return{c:function(){u=Ue("slot"),s!=="default"&&Pe(u,"name",s)},m:function(f,h){Ur(f,u,h)},d:function(f){f&&Gn(u)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ra(this);for(const s of this.$$s)s in r&&(e[s]=[n(s)]);for(const s of this.attributes){const u=this.$$g_p(s.name);u in this.$$d||(this.$$d[u]=qt(u,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:br(gn({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const u=qt(s,this.$$d[s],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,u)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const u of this.$$l[s]){const d=this.$$c.$on(s,u);this.$$l_u.set(u,d)}this.$$l={}}})}attributeChangedCallback(n,e,r){var i;this.$$r||(n=this.$$g_p(n),this.$$d[n]=qt(n,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(n){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===n||!this.$$p_d[e].attribute&&e.toLowerCase()===n)||n}});function qt(t,n,e,r){var s;const i=(s=e[t])==null?void 0:s.type;if(n=i==="Boolean"&&typeof n!="boolean"?n!=null:n,!r||!e[t])return n;if(r==="toAttribute")switch(i){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n==null?null:n;default:return n}else switch(i){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function Za(t,n,e,r,i,s){let u=class extends Yr{constructor(){super(t,e,i),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map(d=>(n[d].attribute||d).toLowerCase())}};return Object.keys(n).forEach(d=>{Object.defineProperty(u.prototype,d,{get(){return this.$$c&&d in this.$$c?this.$$c[d]:this.$$d[d]},set(p){var f;p=qt(d,p,n),this.$$d[d]=p,(f=this.$$c)==null||f.$set({[d]:p})}})}),r.forEach(d=>{Object.defineProperty(u.prototype,d,{get(){var p;return(p=this.$$c)==null?void 0:p[d]}})}),t.element=u,u}class Ka{constructor(){Se(this,"$$");Se(this,"$$set")}$destroy(){za(this,1),this.$destroy=_e}$on(n,e){if(!Un(e))return _e;const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(e),()=>{const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}$set(n){this.$$set&&!Aa(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const qa="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qa);function Qa(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function ei(t,n){if(!t||!n)return;const e=new URL(n);fetch(e.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,t&&t.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function ti(t,n,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(n,i=>{r.innerHTML=i,t&&t.appendChild(r)})}}const Ke=[];function ni(t,n){return{subscribe:ln(t,n).subscribe}}function ln(t,n=_e){let e;const r=new Set;function i(d){if(Fr(t,d)&&(t=d,e)){const p=!Ke.length;for(const f of r)f[1](),Ke.push(f,t);if(p){for(let f=0;f<Ke.length;f+=2)Ke[f][0](Ke[f+1]);Ke.length=0}}}function s(d){i(d(t))}function u(d,p=_e){const f=[d,p];return r.add(f),r.size===1&&(e=n(i,s)||_e),d(t),()=>{r.delete(f),r.size===0&&e&&(e(),e=null)}}return{set:i,update:s,subscribe:u}}function ot(t,n,e){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=n.length<2;return ni(e,(u,d)=>{let p=!1;const f=[];let h=0,y=_e;const x=()=>{if(h)return;y();const I=n(r?f[0]:f,u,d);s?u(I):y=Un(I)?I:_e},T=i.map((I,m)=>jr(I,C=>{f[m]=C,h&=~(1<<m),p&&x()},()=>{h|=1<<m}));return p=!0,x(),function(){St(T),y(),p=!1}})}var Wn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function un(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ri=function(n){return ai(n)&&!ii(n)};function ai(t){return!!t&&typeof t=="object"}function ii(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||li(t)}var oi=typeof Symbol=="function"&&Symbol.for,si=oi?Symbol.for("react.element"):60103;function li(t){return t.$$typeof===si}function ui(t){return Array.isArray(t)?[]:{}}function xt(t,n){return n.clone!==!1&&n.isMergeableObject(t)?nt(ui(t),t,n):t}function fi(t,n,e){return t.concat(n).map(function(r){return xt(r,e)})}function di(t,n){if(!n.customMerge)return nt;var e=n.customMerge(t);return typeof e=="function"?e:nt}function ci(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}function kr(t){return Object.keys(t).concat(ci(t))}function zr(t,n){try{return n in t}catch(e){return!1}}function hi(t,n){return zr(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))}function pi(t,n,e){var r={};return e.isMergeableObject(t)&&kr(t).forEach(function(i){r[i]=xt(t[i],e)}),kr(n).forEach(function(i){hi(t,i)||(zr(t,i)&&e.isMergeableObject(n[i])?r[i]=di(i,e)(t[i],n[i],e):r[i]=xt(n[i],e))}),r}function nt(t,n,e){e=e||{},e.arrayMerge=e.arrayMerge||fi,e.isMergeableObject=e.isMergeableObject||ri,e.cloneUnlessOtherwiseSpecified=xt;var r=Array.isArray(n),i=Array.isArray(t),s=r===i;return s?r?e.arrayMerge(t,n,e):pi(t,n,e):xt(n,e)}nt.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(r,i){return nt(r,i,e)},{})};var mi=nt,gi=mi;const bi=un(gi);var Hn=function(t,n){return Hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},Hn(t,n)};function fn(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Hn(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var Ae=function(){return Ae=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},Ae.apply(this,arguments)};function vi(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e}function yn(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,s;r<i;r++)(s||!(r in n))&&(s||(s=Array.prototype.slice.call(n,0,r)),s[r]=n[r]);return t.concat(s||Array.prototype.slice.call(n))}function wn(t,n){var e=n&&n.cache?n.cache:Si,r=n&&n.serializer?n.serializer:Mi,i=n&&n.strategy?n.strategy:ki;return i(t,{cache:e,serializer:r})}function yi(t){return t==null||typeof t=="number"||typeof t=="boolean"}function wi(t,n,e,r){var i=yi(r)?r:e(r),s=n.get(i);return typeof s=="undefined"&&(s=t.call(this,r),n.set(i,s)),s}function Vr(t,n,e){var r=Array.prototype.slice.call(arguments,3),i=e(r),s=n.get(i);return typeof s=="undefined"&&(s=t.apply(this,r),n.set(i,s)),s}function Xr(t,n,e,r,i){return e.bind(n,t,r,i)}function ki(t,n){var e=t.length===1?wi:Vr;return Xr(t,this,e,n.cache.create(),n.serializer)}function xi(t,n){return Xr(t,this,Vr,n.cache.create(),n.serializer)}var Mi=function(){return JSON.stringify(arguments)},Di=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(n){return this.cache[n]},t.prototype.set=function(n,e){this.cache[n]=e},t}(),Si={create:function(){return new Di}},kn={variadic:xi},nn=function(){return nn=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},nn.apply(this,arguments)};var j;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(j||(j={}));var te;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(te||(te={}));var rt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(rt||(rt={}));function xr(t){return t.type===te.literal}function Ei(t){return t.type===te.argument}function Zr(t){return t.type===te.number}function Kr(t){return t.type===te.date}function qr(t){return t.type===te.time}function Qr(t){return t.type===te.select}function ea(t){return t.type===te.plural}function _i(t){return t.type===te.pound}function ta(t){return t.type===te.tag}function na(t){return!!(t&&typeof t=="object"&&t.type===rt.number)}function Pn(t){return!!(t&&typeof t=="object"&&t.type===rt.dateTime)}var ra=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ti=/(?:[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 Ci(t){var n={};return t.replace(Ti,function(e){var r=e.length;switch(e[0]){case"G":n.era=r===4?"long":r===5?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][r-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][r-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][r-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][r-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][r-1];break;case"s":n.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":n.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""}),n}var oe=function(){return oe=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},oe.apply(this,arguments)};var Ai=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Oi(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var n=t.split(Ai).filter(function(x){return x.length>0}),e=[],r=0,i=n;r<i.length;r++){var s=i[r],u=s.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var d=u[0],p=u.slice(1),f=0,h=p;f<h.length;f++){var y=h[f];if(y.length===0)throw new Error("Invalid number skeleton")}e.push({stem:d,options:p})}return e}function Hi(t){return t.replace(/^(.*?)-/,"")}var Mr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,aa=/^(@+)?(\+|#+)?[rs]?$/g,Pi=/(\*)(0+)|(#+)(0+)|(0+)/g,ia=/^(0+)$/;function Dr(t){var n={};return t[t.length-1]==="r"?n.roundingPriority="morePrecision":t[t.length-1]==="s"&&(n.roundingPriority="lessPrecision"),t.replace(aa,function(e,r,i){return typeof i!="string"?(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length):i==="+"?n.minimumSignificantDigits=r.length:r[0]==="#"?n.maximumSignificantDigits=r.length:(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),n}function oa(t){switch(t){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 Ii(t){var n;if(t[0]==="E"&&t[1]==="E"?(n={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(n={notation:"scientific"},t=t.slice(1)),n){var e=t.slice(0,2);if(e==="+!"?(n.signDisplay="always",t=t.slice(2)):e==="+?"&&(n.signDisplay="exceptZero",t=t.slice(2)),!ia.test(t))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=t.length}return n}function Sr(t){var n={},e=oa(t);return e||n}function Ni(t){for(var n={},e=0,r=t;e<r.length;e++){var i=r[e];switch(i.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=i.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=Hi(i.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=oe(oe(oe({},n),{notation:"scientific"}),i.options.reduce(function(p,f){return oe(oe({},p),Sr(f))},{}));continue;case"engineering":n=oe(oe(oe({},n),{notation:"engineering"}),i.options.reduce(function(p,f){return oe(oe({},p),Sr(f))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.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(Pi,function(p,f,h,y,x,T){if(f)n.minimumIntegerDigits=h.length;else{if(y&&x)throw new Error("We currently do not support maximum integer digits");if(T)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ia.test(i.stem)){n.minimumIntegerDigits=i.stem.length;continue}if(Mr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Mr,function(p,f,h,y,x,T){return h==="*"?n.minimumFractionDigits=f.length:y&&y[0]==="#"?n.maximumFractionDigits=y.length:x&&T?(n.minimumFractionDigits=x.length,n.maximumFractionDigits=x.length+T.length):(n.minimumFractionDigits=f.length,n.maximumFractionDigits=f.length),""});var s=i.options[0];s==="w"?n=oe(oe({},n),{trailingZeroDisplay:"stripIfInteger"}):s&&(n=oe(oe({},n),Dr(s)));continue}if(aa.test(i.stem)){n=oe(oe({},n),Dr(i.stem));continue}var u=oa(i.stem);u&&(n=oe(oe({},n),u));var d=Ii(i.stem);d&&(n=oe(oe({},n),d))}return n}var Xt={"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 Li(t,n){for(var e="",r=0;r<t.length;r++){var i=t.charAt(r);if(i==="j"){for(var s=0;r+1<t.length&&t.charAt(r+1)===i;)s++,r++;var u=1+(s&1),d=s<2?1:3+(s>>1),p="a",f=$i(n);for((f=="H"||f=="k")&&(d=0);d-- >0;)e+=p;for(;u-- >0;)e=f+e}else i==="J"?e+="H":e+=i}return e}function $i(t){var n=t.hourCycle;if(n===void 0&&t.hourCycles&&t.hourCycles.length&&(n=t.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,r;e!=="root"&&(r=t.maximize().region);var i=Xt[r||""]||Xt[e||""]||Xt["".concat(e,"-001")]||Xt["001"];return i[0]}var xn,Ri=new RegExp("^".concat(ra.source,"*")),Bi=new RegExp("".concat(ra.source,"*$"));function U(t,n){return{start:t,end:n}}var Fi=!!String.prototype.startsWith&&"_a".startsWith("a",1),ji=!!String.fromCodePoint,Ui=!!Object.fromEntries,Gi=!!String.prototype.codePointAt,Wi=!!String.prototype.trimStart,Ji=!!String.prototype.trimEnd,Yi=!!Number.isSafeInteger,zi=Yi?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},In=!0;try{var Vi=la("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");In=((xn=Vi.exec("a"))===null||xn===void 0?void 0:xn[0])==="a"}catch(t){In=!1}var Er=Fi?function(n,e,r){return n.startsWith(e,r)}:function(n,e,r){return n.slice(r,r+e.length)===e},Nn=ji?String.fromCodePoint:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var r="",i=n.length,s=0,u;i>s;){if(u=n[s++],u>1114111)throw RangeError(u+" is not a valid code point");r+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return r},_r=Ui?Object.fromEntries:function(n){for(var e={},r=0,i=n;r<i.length;r++){var s=i[r],u=s[0],d=s[1];e[u]=d}return e},sa=Gi?function(n,e){return n.codePointAt(e)}:function(n,e){var r=n.length;if(!(e<0||e>=r)){var i=n.charCodeAt(e),s;return i<55296||i>56319||e+1===r||(s=n.charCodeAt(e+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Xi=Wi?function(n){return n.trimStart()}:function(n){return n.replace(Ri,"")},Zi=Ji?function(n){return n.trimEnd()}:function(n){return n.replace(Bi,"")};function la(t,n){return new RegExp(t,n)}var Ln;if(In){var Tr=la("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ln=function(n,e){var r;Tr.lastIndex=e;var i=Tr.exec(n);return(r=i[1])!==null&&r!==void 0?r:""}}else Ln=function(n,e){for(var r=[];;){var i=sa(n,e);if(i===void 0||ua(i)||eo(i))break;r.push(i),e+=i>=65536?2:1}return Nn.apply(void 0,r)};var Ki=function(){function t(n,e){e===void 0&&(e={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(n,e,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var u=this.parseArgument(n,r);if(u.err)return u;i.push(u.val)}else{if(s===125&&n>0)break;if(s===35&&(e==="plural"||e==="selectordinal")){var d=this.clonePosition();this.bump(),i.push({type:te.pound,location:U(d,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(j.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&$n(this.peek()||0)){var u=this.parseTag(n,e);if(u.err)return u;i.push(u.val)}else{var u=this.parseLiteral(n,e);if(u.err)return u;i.push(u.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(n,e){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:te.literal,value:"<".concat(i,"/>"),location:U(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(n+1,e,!0);if(s.err)return s;var u=s.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$n(this.char()))return this.error(j.INVALID_TAG,U(d,this.clonePosition()));var p=this.clonePosition(),f=this.parseTagName();return i!==f?this.error(j.UNMATCHED_CLOSING_TAG,U(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:te.tag,value:i,children:u,location:U(r,this.clonePosition())},err:null}:this.error(j.INVALID_TAG,U(d,this.clonePosition())))}else return this.error(j.UNCLOSED_TAG,U(r,this.clonePosition()))}else return this.error(j.INVALID_TAG,U(r,this.clonePosition()))},t.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&Qi(this.char());)this.bump();return this.message.slice(n,this.offset())},t.prototype.parseLiteral=function(n,e){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(e);if(s){i+=s;continue}var u=this.tryParseUnquoted(n,e);if(u){i+=u;continue}var d=this.tryParseLeftAngleBracket();if(d){i+=d;continue}break}var p=U(r,this.clonePosition());return{val:{type:te.literal,value:i,location:p},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!qi(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(n){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(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return Nn.apply(void 0,e)},t.prototype.tryParseUnquoted=function(n,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&n>0?null:(this.bump(),Nn(r))},t.prototype.parseArgument=function(n,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(j.EMPTY_ARGUMENT,U(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(j.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:te.argument,value:i,location:U(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition())):this.parseArgumentOptions(n,e,i,r);default:return this.error(j.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),e=this.offset(),r=Ln(this.message,e),i=e+r.length;this.bumpTo(i);var s=this.clonePosition(),u=U(n,s);return{value:r,location:u}},t.prototype.parseArgumentOptions=function(n,e,r,i){var s,u=this.clonePosition(),d=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(d){case"":return this.error(j.EXPECT_ARGUMENT_TYPE,U(u,p));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),y=this.parseSimpleArgStyleIfPossible();if(y.err)return y;var x=Zi(y.val);if(x.length===0)return this.error(j.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var T=U(h,this.clonePosition());f={style:x,styleLocation:T}}var I=this.tryParseArgumentClose(i);if(I.err)return I;var m=U(i,this.clonePosition());if(f&&Er(f==null?void 0:f.style,"::",0)){var C=Xi(f.style.slice(2));if(d==="number"){var y=this.parseNumberSkeletonFromString(C,f.styleLocation);return y.err?y:{val:{type:te.number,value:r,location:m,style:y.val},err:null}}else{if(C.length===0)return this.error(j.EXPECT_DATE_TIME_SKELETON,m);var R=C;this.locale&&(R=Li(C,this.locale));var x={type:rt.dateTime,pattern:R,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Ci(R):{}},H=d==="date"?te.date:te.time;return{val:{type:H,value:r,location:m,style:x},err:null}}}return{val:{type:d==="number"?te.number:d==="date"?te.date:te.time,value:r,location:m,style:(s=f==null?void 0:f.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var B=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(j.EXPECT_SELECT_ARGUMENT_OPTIONS,U(B,nn({},B)));this.bumpSpace();var Y=this.parseIdentifierIfPossible(),z=0;if(d!=="select"&&Y.value==="offset"){if(!this.bumpIf(":"))return this.error(j.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var y=this.tryParseDecimalInteger(j.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(y.err)return y;this.bumpSpace(),Y=this.parseIdentifierIfPossible(),z=y.val}var G=this.tryParsePluralOrSelectOptions(n,d,e,Y);if(G.err)return G;var I=this.tryParseArgumentClose(i);if(I.err)return I;var Z=U(i,this.clonePosition());return d==="select"?{val:{type:te.select,value:r,options:_r(G.val),location:Z},err:null}:{val:{type:te.plural,value:r,options:_r(G.val),offset:z,pluralType:d==="plural"?"cardinal":"ordinal",location:Z},err:null}}default:return this.error(j.INVALID_ARGUMENT_TYPE,U(u,p))}},t.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(j.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(j.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(i,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(n,e){var r=[];try{r=Oi(n)}catch(i){return this.error(j.INVALID_NUMBER_SKELETON,e)}return{val:{type:rt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Ni(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(n,e,r,i){for(var s,u=!1,d=[],p=new Set,f=i.value,h=i.location;;){if(f.length===0){var y=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(j.EXPECT_PLURAL_ARGUMENT_SELECTOR,j.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;h=U(y,this.clonePosition()),f=this.message.slice(y.offset,this.offset())}else break}if(p.has(f))return this.error(e==="select"?j.DUPLICATE_SELECT_ARGUMENT_SELECTOR:j.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);f==="other"&&(u=!0),this.bumpSpace();var T=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?j.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:j.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(n+1,e,r);if(I.err)return I;var m=this.tryParseArgumentClose(T);if(m.err)return m;d.push([f,{value:I.val,location:U(T,this.clonePosition())}]),p.add(f),this.bumpSpace(),s=this.parseIdentifierIfPossible(),f=s.value,h=s.location}return d.length===0?this.error(e==="select"?j.EXPECT_SELECT_ARGUMENT_SELECTOR:j.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(j.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:d,err:null}},t.prototype.tryParseDecimalInteger=function(n,e){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,u=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)s=!0,u=u*10+(d-48),this.bump();else break}var p=U(i,this.clonePosition());return s?(u*=r,zi(u)?{val:u,err:null}:this.error(e,p)):this.error(n,p)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var e=sa(this.message,n);if(e===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(n,e){return{val:null,err:{kind:n,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},t.prototype.bumpIf=function(n){if(Er(this.message,n,this.offset())){for(var e=0;e<n.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(n){var e=this.offset(),r=this.message.indexOf(n,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var e=this.offset();if(e===n)break;if(e>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ua(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(n>=65536?2:1));return r!=null?r:null},t}();function $n(t){return t>=97&&t<=122||t>=65&&t<=90}function qi(t){return $n(t)||t===47}function Qi(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ua(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function eo(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Rn(t){t.forEach(function(n){if(delete n.location,Qr(n)||ea(n))for(var e in n.options)delete n.options[e].location,Rn(n.options[e].value);else Zr(n)&&na(n.style)||(Kr(n)||qr(n))&&Pn(n.style)?delete n.style.location:ta(n)&&Rn(n.children)})}function to(t,n){n===void 0&&(n={}),n=nn({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var e=new Ki(t,n).parse();if(e.err){var r=SyntaxError(j[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return n!=null&&n.captureLocation||Rn(e.val),e.val}var at;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(at||(at={}));var dn=function(t){fn(n,t);function n(e,r,i){var s=t.call(this,e)||this;return s.code=r,s.originalMessage=i,s}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),Cr=function(t){fn(n,t);function n(e,r,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),at.INVALID_VALUE,s)||this}return n}(dn),no=function(t){fn(n,t);function n(e,r,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),at.INVALID_VALUE,i)||this}return n}(dn),ro=function(t){fn(n,t);function n(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),at.MISSING_VALUE,r)||this}return n}(dn),ve;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ve||(ve={}));function ao(t){return t.length<2?t:t.reduce(function(n,e){var r=n[n.length-1];return!r||r.type!==ve.literal||e.type!==ve.literal?n.push(e):r.value+=e.value,n},[])}function io(t){return typeof t=="function"}function Qt(t,n,e,r,i,s,u){if(t.length===1&&xr(t[0]))return[{type:ve.literal,value:t[0].value}];for(var d=[],p=0,f=t;p<f.length;p++){var h=f[p];if(xr(h)){d.push({type:ve.literal,value:h.value});continue}if(_i(h)){typeof s=="number"&&d.push({type:ve.literal,value:e.getNumberFormat(n).format(s)});continue}var y=h.value;if(!(i&&y in i))throw new ro(y,u);var x=i[y];if(Ei(h)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),d.push({type:typeof x=="string"?ve.literal:ve.object,value:x});continue}if(Kr(h)){var T=typeof h.style=="string"?r.date[h.style]:Pn(h.style)?h.style.parsedOptions:void 0;d.push({type:ve.literal,value:e.getDateTimeFormat(n,T).format(x)});continue}if(qr(h)){var T=typeof h.style=="string"?r.time[h.style]:Pn(h.style)?h.style.parsedOptions:r.time.medium;d.push({type:ve.literal,value:e.getDateTimeFormat(n,T).format(x)});continue}if(Zr(h)){var T=typeof h.style=="string"?r.number[h.style]:na(h.style)?h.style.parsedOptions:void 0;T&&T.scale&&(x=x*(T.scale||1)),d.push({type:ve.literal,value:e.getNumberFormat(n,T).format(x)});continue}if(ta(h)){var I=h.children,m=h.value,C=i[m];if(!io(C))throw new no(m,"function",u);var R=Qt(I,n,e,r,i,s),H=C(R.map(function(z){return z.value}));Array.isArray(H)||(H=[H]),d.push.apply(d,H.map(function(z){return{type:typeof z=="string"?ve.literal:ve.object,value:z}}))}if(Qr(h)){var B=h.options[x]||h.options.other;if(!B)throw new Cr(h.value,x,Object.keys(h.options),u);d.push.apply(d,Qt(B.value,n,e,r,i));continue}if(ea(h)){var B=h.options["=".concat(x)];if(!B){if(!Intl.PluralRules)throw new dn(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,at.MISSING_INTL_API,u);var Y=e.getPluralRules(n,{type:h.pluralType}).select(x-(h.offset||0));B=h.options[Y]||h.options.other}if(!B)throw new Cr(h.value,x,Object.keys(h.options),u);d.push.apply(d,Qt(B.value,n,e,r,i,x-(h.offset||0)));continue}}return ao(d)}function oo(t,n){return n?Ae(Ae(Ae({},t||{}),n||{}),Object.keys(t).reduce(function(e,r){return e[r]=Ae(Ae({},t[r]),n[r]||{}),e},{})):t}function so(t,n){return n?Object.keys(t).reduce(function(e,r){return e[r]=oo(t[r],n[r]),e},Ae({},t)):t}function Mn(t){return{create:function(){return{get:function(n){return t[n]},set:function(n,e){t[n]=e}}}}}function lo(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:wn(function(){for(var n,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((n=Intl.NumberFormat).bind.apply(n,yn([void 0],e,!1)))},{cache:Mn(t.number),strategy:kn.variadic}),getDateTimeFormat:wn(function(){for(var n,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((n=Intl.DateTimeFormat).bind.apply(n,yn([void 0],e,!1)))},{cache:Mn(t.dateTime),strategy:kn.variadic}),getPluralRules:wn(function(){for(var n,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((n=Intl.PluralRules).bind.apply(n,yn([void 0],e,!1)))},{cache:Mn(t.pluralRules),strategy:kn.variadic})}}var fa=function(){function t(n,e,r,i){e===void 0&&(e=t.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var f=s.formatToParts(p);if(f.length===1)return f[0].value;var h=f.reduce(function(y,x){return!y.length||x.type!==ve.literal||typeof y[y.length-1]!="string"?y.push(x.value):y[y.length-1]+=x.value,y},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(p){return Qt(s.ast,s.locales,s.formatters,s.formats,p,void 0,s.message)},this.resolvedOptions=function(){var p;return{locale:((p=s.resolvedLocale)===null||p===void 0?void 0:p.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof n=="string"){if(this.message=n,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=i||{};u.formatters;var d=vi(u,["formatters"]);this.ast=t.__parse(n,Ae(Ae({},d),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=so(t.formats,r),this.formatters=i&&i.formatters||lo(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(n){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(n);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},t.__parse=to,t.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"}}},t}();function uo(t,n){if(n==null)return;if(n in t)return t[n];const e=n.split(".");let r=t;for(let i=0;i<e.length;i++)if(typeof r=="object"){if(i>0){const s=e.slice(i,e.length).join(".");if(s in r){r=r[s];break}}r=r[e[i]]}else r=void 0;return r}const $e={},fo=(t,n,e)=>e&&(n in $e||($e[n]={}),t in $e[n]||($e[n][t]=e),e),da=(t,n)=>{if(n==null)return;if(n in $e&&t in $e[n])return $e[n][t];const e=_t(n);for(let r=0;r<e.length;r++){const i=e[r],s=ho(i,t);if(s)return fo(t,n,s)}};let Jn;const Et=ln({});function co(t){return Jn[t]||null}function ca(t){return t in Jn}function ho(t,n){if(!ca(t))return null;const e=co(t);return uo(e,n)}function po(t){if(t==null)return;const n=_t(t);for(let e=0;e<n.length;e++){const r=n[e];if(ca(r))return r}}function ha(t,...n){delete $e[t],Et.update(e=>(e[t]=bi.all([e[t]||{},...n]),e))}ot([Et],([t])=>Object.keys(t));Et.subscribe(t=>Jn=t);const en={};function mo(t,n){en[t].delete(n),en[t].size===0&&delete en[t]}function pa(t){return en[t]}function go(t){return _t(t).map(n=>{const e=pa(n);return[n,e?[...e]:[]]}).filter(([,n])=>n.length>0)}function rn(t){return t==null?!1:_t(t).some(n=>{var e;return(e=pa(n))==null?void 0:e.size})}function bo(t,n){return Promise.all(n.map(r=>(mo(t,r),r().then(i=>i.default||i)))).then(r=>ha(t,...r))}const gt={};function ma(t){if(!rn(t))return t in gt?gt[t]:Promise.resolve();const n=go(t);return gt[t]=Promise.all(n.map(([e,r])=>bo(e,r))).then(()=>{if(rn(t))return ma(t);delete gt[t]}),gt[t]}var Ar=Object.getOwnPropertySymbols,vo=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,wo=(t,n)=>{var e={};for(var r in t)vo.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Ar)for(var r of Ar(t))n.indexOf(r)<0&&yo.call(t,r)&&(e[r]=t[r]);return e};const ko={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 xo({locale:t,id:n}){console.warn(`[svelte-i18n] The message "${n}" was not found in "${_t(t).join('", "')}".${rn(Re())?`
|
|
4
4
|
|
|
@@ -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/TransactionHistoryCalendar-
|
|
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/TransactionHistoryCalendar-DDSsRmQn.cjs")).then(({default:t})=>{!customElements.get("transaction-history-calendar")&&customElements.define("transaction-history-calendar",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/TransactionHistoryCalendar-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/TransactionHistoryCalendar-pncOC1G9.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("transaction-history-calendar") && customElements.define("transaction-history-calendar", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|