@everymatrix/cashier-iframe-redirect 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function h(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function l(e,t){e.appendChild(t)}function u(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function g(){return m(" ")}function b(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function d(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function E(e){const t={};for(const r of e)t[r.name]=r.value;return t}function y(e){a=e}
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function h(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(t,e){t.appendChild(e)}function u(t,e,r){t.insertBefore(e,r||null)}function f(t){t.parentNode&&t.parentNode.removeChild(t)}function p(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function g(){return m(" ")}function d(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function b(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function y(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:b(t,e,r)}function E(t){const e={};for(const r of t)e[r.name]=r.value;return e}function v(t){a=t}
2
2
  /**
3
3
  * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).
4
4
  * Event dispatchers are functions that can take two arguments: `name` and `detail`.
@@ -11,10 +11,10 @@
11
11
  *
12
12
  * https://svelte.dev/docs#run-time-svelte-createeventdispatcher
13
13
  */
14
- function v(){const e=function(){if(!a)throw new Error("Function called outside component initialization");return a}();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){
14
+ function H(){const t=function(){if(!a)throw new Error("Function called outside component initialization");return a}();return(e,r,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[e];if(i){
15
15
  // TODO are there situations where events could be dispatched
16
16
  // in a server (non-DOM) environment?
17
- const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(t,r,{cancelable:n});return i.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}const H=[],T=[];let _=[];const B=[],A=Promise.resolve();let L=!1;function P(e){_.push(e)}
17
+ const o=function(t,e,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,r,n,e),i}(e,r,{cancelable:n});return i.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}const T=[],B=[];let C=[];const w=[],_=Promise.resolve();let L=!1;function A(t){C.push(t)}
18
18
  // flush() calls callbacks in this order:
19
19
  // 1. All beforeUpdate callbacks, in order: parents before children
20
20
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -33,56 +33,56 @@ const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createE
33
33
  // 3. During afterUpdate, any updated components will NOT have their afterUpdate
34
34
  // callback called a second time; the seen_callbacks set, outside the flush()
35
35
  // function, guarantees this behavior.
36
- const S=new Set;let C=0;// Do *not* move this inside the flush() function
37
- function w(){
36
+ const P=new Set;let S=0;// Do *not* move this inside the flush() function
37
+ function O(){
38
38
  // Do not reenter flush while dirty components are updated, as this can
39
39
  // result in an infinite loop. Instead, let the inner flush handle it.
40
40
  // Reentrancy is ok afterwards for bindings etc.
41
- if(0!==C)return;const e=a;do{
41
+ if(0!==S)return;const t=a;do{
42
42
  // first, call beforeUpdate functions
43
43
  // and update components
44
- try{for(;C<H.length;){const e=H[C];C++,y(e),O(e.$$)}}catch(e){
44
+ try{for(;S<T.length;){const t=T[S];S++,v(t),N(t.$$)}}catch(t){
45
45
  // reset dirty state to not end up in a deadlocked state and then rethrow
46
- throw H.length=0,C=0,e}for(y(null),H.length=0,C=0;T.length;)T.pop()();
46
+ throw T.length=0,S=0,t}for(v(null),T.length=0,S=0;B.length;)B.pop()();
47
47
  // then, once components are updated, call
48
48
  // afterUpdate functions. This may cause
49
49
  // subsequent updates...
50
- for(let e=0;e<_.length;e+=1){const t=_[e];S.has(t)||(
50
+ for(let t=0;t<C.length;t+=1){const e=C[t];P.has(e)||(
51
51
  // ...so guard against infinite loops
52
- S.add(t),t())}_.length=0}while(H.length);for(;B.length;)B.pop()();L=!1,S.clear(),y(e)}function O(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}
52
+ P.add(e),e())}C.length=0}while(T.length);for(;w.length;)w.pop()();L=!1,P.clear(),v(t)}function N(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(A)}}
53
53
  /**
54
54
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
55
- */const N=new Set;function I(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];_.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),_=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
55
+ */const M=new Set;function I(t,e){const r=t.$$;null!==r.fragment&&(!function(t){const e=[],r=[];C.forEach((n=>-1===t.indexOf(n)?e.push(n):r.push(n))),r.forEach((t=>t())),C=e}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(e),
56
56
  // TODO null out other refs, including component.$$ (but need to
57
57
  // preserve final state?)
58
- r.on_destroy=r.fragment=null,r.ctx=[])}function M(e,t){-1===e.$$.dirty[0]&&(H.push(e),L||(L=!0,A.then(w)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function R(o,s,h,c,l,u,p,m=[-1]){const g=a;y(o);const b=o.$$={fragment:null,ctx:[],
58
+ r.on_destroy=r.fragment=null,r.ctx=[])}function R(t,e){-1===t.$$.dirty[0]&&(T.push(t),L||(L=!0,_.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function $(o,s,l,h,c,u,p,m=[-1]){const g=a;v(o);const d=o.$$={fragment:null,ctx:[],
59
59
  // state
60
- props:u,update:e,not_equal:l,bound:r(),
60
+ props:u,update:t,not_equal:c,bound:r(),
61
61
  // lifecycle
62
62
  on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(g?g.$$.context:[])),
63
63
  // everything else
64
- callbacks:r(),dirty:m,skip_bound:!1,root:s.target||g.$$.root};p&&p(b.root);let d=!1;if(b.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return b.ctx&&l(b.ctx[e],b.ctx[e]=n)&&(!b.skip_bound&&b.bound[e]&&b.bound[e](n),d&&M(o,e)),t})):[],b.update(),d=!0,n(b.before_update),
64
+ callbacks:r(),dirty:m,skip_bound:!1,root:s.target||g.$$.root};p&&p(d.root);let b=!1;if(d.ctx=l?l(o,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return d.ctx&&c(d.ctx[t],d.ctx[t]=n)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](n),b&&R(o,t)),e})):[],d.update(),b=!0,n(d.before_update),
65
65
  // `false` as a special case of no DOM component
66
- b.fragment=!!c&&c(b.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
66
+ d.fragment=!!h&&h(d.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
67
67
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
68
- b.fragment&&b.fragment.l(e),e.forEach(f)}else
68
+ d.fragment&&d.fragment.l(t),t.forEach(f)}else
69
69
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
70
- b.fragment&&b.fragment.c();s.intro&&((E=o.$$.fragment)&&E.i&&(N.delete(E),E.i(v))),function(e,r,o,s){const{fragment:a,after_update:h}=e.$$;a&&a.m(r,o),s||
70
+ d.fragment&&d.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(M.delete(y),y.i(E))),function(t,r,o,s){const{fragment:a,after_update:l}=t.$$;a&&a.m(r,o),s||
71
71
  // onMount happens before the initial afterUpdate
72
- P((()=>{const r=e.$$.on_mount.map(t).filter(i);
72
+ A((()=>{const r=t.$$.on_mount.map(e).filter(i);
73
73
  // if the component was destroyed immediately
74
74
  // it will update the `$$.on_destroy` reference to `null`.
75
75
  // the destructured on_destroy may still reference to the old array
76
- e.$$.on_destroy?e.$$.on_destroy.push(...r):
76
+ t.$$.on_destroy?t.$$.on_destroy.push(...r):
77
77
  // Edge case - component was destroyed immediately,
78
78
  // most likely as a result of a binding initialising
79
- n(r),e.$$.on_mount=[]})),h.forEach(P)}(o,s.target,s.anchor,s.customElement),w()}var E,v;y(g)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
79
+ n(r),t.$$.on_mount=[]})),l.forEach(A)}(o,s.target,s.anchor,s.customElement),O()}var y,E;v(g)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);
80
80
  // @ts-ignore todo: improve typings
81
- for(const e in this.$$.slotted)
81
+ for(const t in this.$$.slotted)
82
82
  // @ts-ignore todo: improve typings
83
- this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){I(this,1),this.$destroy=e}$on(t,r){
83
+ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){I(this,1),this.$destroy=t}$on(e,r){
84
84
  // TODO should this delegate to addEventListener?
85
- if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const G=[];
85
+ if(!i(r))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const t=n.indexOf(r);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const k=[];
86
86
  /**
87
87
  * Creates a `Readable` store that allows reading by subscription.
88
88
  * @param value initial value
@@ -93,123 +93,123 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
93
93
  * @param {*=}value initial value
94
94
  * @param {StartStopNotifier=} start
95
95
  */
96
- function D(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
97
- const e=!G.length;for(const e of i)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(h),0===i.size&&n&&(n(),n=null)}}}}function k(t,r,o){const s=!Array.isArray(t),a=s?[t]:t,h=r.length<2;return l=t=>{let o=!1;const l=[];let u=0,f=e;const p=()=>{if(u)return;f();const n=r(s?l[0]:l,t);h?t(n):f=i(n)?n:e},m=a.map(((e,t)=>c(e,(e=>{l[t]=e,u&=~(1<<t),o&&p()}),(()=>{u|=1<<t}))));return o=!0,p(),function(){n(m),f(),
96
+ function G(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){// store is ready
97
+ const t=!k.length;for(const t of i)t[1](),k.push(t,e);if(t){for(let t=0;t<k.length;t+=2)k[t][0](k[t+1]);k.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const l=[o,a];return i.add(l),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(l),0===i.size&&n&&(n(),n=null)}}}}function x(e,r,o){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return c=e=>{let o=!1;const c=[];let u=0,f=t;const p=()=>{if(u)return;f();const n=r(s?c[0]:c,e);l?e(n):f=i(n)?n:t},m=a.map(((t,e)=>h(t,(t=>{c[e]=t,u&=~(1<<e),o&&p()}),(()=>{u|=1<<e}))));return o=!0,p(),function(){n(m),f(),
98
98
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
99
99
  // Callbacks might already be placed in the queue which doesn't know it should no longer
100
100
  // invoke this derived store.
101
- o=!1}},{subscribe:D(o,l).subscribe};var l}var $=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===F}(e)}
101
+ o=!1}},{subscribe:G(o,c).subscribe};var c}var D=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===F}(t)}
102
102
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
103
- (e)};var F="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Y((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function j(e,t,r){return e.concat(t).map((function(e){return x(e,r)}))}function V(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function X(e,t){try{return t in e}catch(e){return!1}}
103
+ (t)};var F="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function j(t,e){return!1!==e.clone&&e.isMergeableObject(t)?z((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function V(t,e,r){return t.concat(e).map((function(t){return j(t,r)}))}function X(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function K(t,e){try{return e in t}catch(t){return!1}}
104
104
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
105
- function K(e,t,r){var n={};return r.isMergeableObject(e)&&V(e).forEach((function(t){n[t]=x(e[t],r)})),V(t).forEach((function(i){(function(e,t){return X(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
106
- })(e,i)||(X(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return Y;var r=t.customMerge(e);return"function"==typeof r?r:Y}(i,r)(e[i],t[i],r):n[i]=x(t[i],r))})),n}function Y(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||j,r.isMergeableObject=r.isMergeableObject||$,
105
+ function Z(t,e,r){var n={};return r.isMergeableObject(t)&&X(t).forEach((function(e){n[e]=j(t[e],r)})),X(e).forEach((function(i){(function(t,e){return K(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
106
+ })(t,i)||(K(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return z;var r=e.customMerge(t);return"function"==typeof r?r:z}(i,r)(t[i],e[i],r):n[i]=j(e[i],r))})),n}function z(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||V,r.isMergeableObject=r.isMergeableObject||D,
107
107
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
108
108
  // implementations can use it. The caller may not replace it.
109
- r.cloneUnlessOtherwiseSpecified=x;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):K(e,t,r):x(t,r)}Y.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Y(e,r,t)}),{})};var Z=Y,z=function(e,t){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},z(e,t)};function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Q,J,q,ee=function(){return ee=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)};function te(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
109
+ r.cloneUnlessOtherwiseSpecified=j;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Z(t,e,r):j(e,r)}z.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return z(t,r,e)}),{})};var Y=z,W=function(t,e){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},W(t,e)};function Q(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}W(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var J,q,tt,et=function(){return et=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},et.apply(this,arguments)};function rt(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}
110
110
  /**
111
111
  * Type Guards
112
112
  */
113
- function re(e){return e.type===J.literal}function ne(e){return e.type===J.argument}function ie(e){return e.type===J.number}function oe(e){return e.type===J.date}function se(e){return e.type===J.time}function ae(e){return e.type===J.select}function he(e){return e.type===J.plural}function ce(e){return e.type===J.pound}function le(e){return e.type===J.tag}function ue(e){return!(!e||"object"!=typeof e||e.type!==q.number)}function fe(e){return!(!e||"object"!=typeof e||e.type!==q.dateTime)}
113
+ function nt(t){return t.type===q.literal}function it(t){return t.type===q.argument}function ot(t){return t.type===q.number}function st(t){return t.type===q.date}function at(t){return t.type===q.time}function lt(t){return t.type===q.select}function ht(t){return t.type===q.plural}function ct(t){return t.type===q.pound}function ut(t){return t.type===q.tag}function ft(t){return!(!t||"object"!=typeof t||t.type!==tt.number)}function pt(t){return!(!t||"object"!=typeof t||t.type!==tt.dateTime)}
114
114
  // @generated from regex-gen.ts
115
- "function"==typeof SuppressedError&&SuppressedError,function(e){
115
+ "function"==typeof SuppressedError&&SuppressedError,function(t){
116
116
  /** Argument is unclosed (e.g. `{0`) */
117
- e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
117
+ t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
118
118
  /** Argument is empty (e.g. `{}`). */
119
- e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
119
+ t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
120
120
  /** Argument is malformed (e.g. `{foo!}``) */
121
- e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
121
+ t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
122
122
  /** Expect an argument type (e.g. `{foo,}`) */
123
- e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
123
+ t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
124
124
  /** Unsupported argument type (e.g. `{foo,foo}`) */
125
- e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
125
+ t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
126
126
  /** Expect an argument style (e.g. `{foo, number, }`) */
127
- e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
127
+ t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
128
128
  /** The number skeleton is invalid. */
129
- e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
129
+ t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
130
130
  /** The date time skeleton is invalid. */
131
- e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
131
+ t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
132
132
  /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */
133
- e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
133
+ t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
134
134
  /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */
135
- e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
135
+ t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
136
136
  /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */
137
- e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
137
+ t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
138
138
  /** Missing select argument options (e.g. `{foo, select}`) */
139
- e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
139
+ t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
140
140
  /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */
141
- e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
141
+ t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
142
142
  /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */
143
- e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
143
+ t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
144
144
  /** Expecting a selector in `select` argument (e.g `{foo, select}`) */
145
- e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
145
+ t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
146
146
  /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */
147
- e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
147
+ t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
148
148
  /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */
149
- e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
149
+ t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
150
150
  /**
151
151
  * Expecting a message fragment after the `plural` or `selectordinal` selector
152
152
  * (e.g. `{foo, plural, one}`)
153
153
  */
154
- e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
154
+ t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
155
155
  /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */
156
- e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
156
+ t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
157
157
  /**
158
158
  * Duplicate selectors in `plural` or `selectordinal` argument.
159
159
  * (e.g. {foo, plural, one {#} one {#}})
160
160
  */
161
- e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
161
+ t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
162
162
  /** Duplicate selectors in `select` argument.
163
163
  * (e.g. {foo, select, apple {apple} apple {apple}})
164
164
  */
165
- e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
165
+ t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
166
166
  /** Plural or select argument option must have `other` clause. */
167
- e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
167
+ t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
168
168
  /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */
169
- e[e.INVALID_TAG=23]="INVALID_TAG",
169
+ t[t.INVALID_TAG=23]="INVALID_TAG",
170
170
  /** The tag name is invalid. (e.g. `<123>foo</123>`) */
171
- e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
171
+ t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
172
172
  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
173
- e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
173
+ t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
174
174
  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
175
- e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Q||(Q={})),function(e){
175
+ t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(J||(J={})),function(t){
176
176
  /**
177
177
  * Raw text
178
178
  */
179
- e[e.literal=0]="literal",
179
+ t[t.literal=0]="literal",
180
180
  /**
181
181
  * Variable w/o any format, e.g `var` in `this is a {var}`
182
182
  */
183
- e[e.argument=1]="argument",
183
+ t[t.argument=1]="argument",
184
184
  /**
185
185
  * Variable w/ number format
186
186
  */
187
- e[e.number=2]="number",
187
+ t[t.number=2]="number",
188
188
  /**
189
189
  * Variable w/ date format
190
190
  */
191
- e[e.date=3]="date",
191
+ t[t.date=3]="date",
192
192
  /**
193
193
  * Variable w/ time format
194
194
  */
195
- e[e.time=4]="time",
195
+ t[t.time=4]="time",
196
196
  /**
197
197
  * Variable w/ select format
198
198
  */
199
- e[e.select=5]="select",
199
+ t[t.select=5]="select",
200
200
  /**
201
201
  * Variable w/ plural format
202
202
  */
203
- e[e.plural=6]="plural",
203
+ t[t.plural=6]="plural",
204
204
  /**
205
205
  * Only possible within plural argument.
206
206
  * This is the `#` symbol that will be substituted with the count.
207
207
  */
208
- e[e.pound=7]="pound",
208
+ t[t.pound=7]="pound",
209
209
  /**
210
210
  * XML-like tag
211
211
  */
212
- e[e.tag=8]="tag"}(J||(J={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(q||(q={}));var pe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,me=/(?:[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;
212
+ t[t.tag=8]="tag"}(q||(q={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(tt||(tt={}));var mt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
213
213
  /**
214
214
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
215
215
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -221,67 +221,67 @@ e[e.tag=8]="tag"}(J||(J={})),function(e){e[e.number=0]="number",e[e.dateTime=1]=
221
221
  * @public
222
222
  * @param skeleton skeleton string
223
223
  */
224
- function ge(e){var t={};return e.replace(me,(function(e){var r=e.length;switch(e[0]){
224
+ function dt(t){var e={};return t.replace(gt,(function(t){var r=t.length;switch(t[0]){
225
225
  // Era
226
- case"G":t.era=4===r?"long":5===r?"narrow":"short";break;
226
+ case"G":e.era=4===r?"long":5===r?"narrow":"short";break;
227
227
  // Year
228
- case"y":t.year=2===r?"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");
228
+ case"y":e.year=2===r?"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");
229
229
  // Quarter
230
230
  case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
231
231
  // Month
232
- case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;
232
+ case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;
233
233
  // Week
234
- case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
234
+ case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.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");
235
235
  // Weekday
236
- case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;
236
+ case"E":e.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;
237
237
  // Period
238
238
  case"a":// AM, PM
239
- t.hour12=!0;break;case"b":// am, pm, noon, midnight
239
+ e.hour12=!0;break;case"b":// am, pm, noon, midnight
240
240
  case"B":// flexible day periods
241
241
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
242
242
  // Hour
243
- case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
243
+ case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.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");
244
244
  // Minute
245
- case"m":t.minute=["numeric","2-digit"][r-1];break;
245
+ case"m":e.minute=["numeric","2-digit"][r-1];break;
246
246
  // Second
247
- case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
247
+ case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
248
248
  // Zone
249
249
  case"z":// 1..3, 4: specific non-location format
250
- t.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
250
+ e.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
251
251
  case"O":// 1, 4: miliseconds in day short, long
252
252
  case"v":// 1, 4: generic non-location format
253
253
  case"V":// 1, 2, 3, 4: time zone ID or city
254
254
  case"X":// 1, 2, 3, 4: The ISO8601 varios formats
255
255
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
256
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
256
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}
257
257
  // @generated from regex-gen.ts
258
- var be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var de=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ee=/^(@+)?(\+|#+)?[rs]?$/g,ye=/(\*)(0+)|(#+)(0+)|(0+)/g,ve=/^(0+)$/;function He(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ee,(function(e,r,n){
258
+ var bt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var yt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Et=/^(@+)?(\+|#+)?[rs]?$/g,vt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ht=/^(0+)$/;function Tt(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Et,(function(t,r,n){
259
259
  // @@@ case
260
- return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Te(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _e(e){
260
+ return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function Bt(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 Ct(t){
261
261
  // Engineering
262
- var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ve.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Be(e){var t=Te(e);return t||{}}
262
+ var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ht.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function wt(t){var e=Bt(t);return e||{}}
263
263
  /**
264
264
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
265
- */function Ae(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ee(ee(ee({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return ee(ee({},e),Be(t))}),{}));continue;case"engineering":t=ee(ee(ee({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ee(ee({},e),Be(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
265
+ */function _t(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=et(et(et({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return et(et({},t),wt(e))}),{}));continue;case"engineering":e=et(et(et({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return et(et({},t),wt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
266
266
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
267
- case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
267
+ case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;
268
268
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
269
- case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ye,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
269
+ case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(vt,(function(t,r,n,i,o,s){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
270
270
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
271
- if(ve.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(de.test(i.stem)){
271
+ if(Ht.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(yt.test(i.stem)){
272
272
  // Precision
273
273
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
274
274
  // precision-integer case
275
- if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(de,(function(e,r,n,i,o,s){
275
+ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(yt,(function(t,r,n,i,o,s){
276
276
  // .000* case (before ICU67 it was .000+)
277
- return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];
277
+ return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];
278
278
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
279
- "w"===o?t=ee(ee({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ee(ee({},t),He(o)))}
279
+ "w"===o?e=et(et({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=et(et({},e),Tt(o)))}
280
280
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
281
- else if(Ee.test(i.stem))t=ee(ee({},t),He(i.stem));else{var s=Te(i.stem);s&&(t=ee(ee({},t),s));var a=_e(i.stem);a&&(t=ee(ee({},t),a))}}return t}
281
+ else if(Et.test(i.stem))e=et(et({},e),Tt(i.stem));else{var s=Bt(i.stem);s&&(e=et(et({},e),s));var a=Ct(i.stem);a&&(e=et(et({},e),a))}}return e}
282
282
  // @generated from time-data-gen.ts
283
283
  // prettier-ignore
284
- var Le,Pe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
284
+ var Lt,At={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
285
285
  /**
286
286
  * Returns the best matching date time pattern if a date time skeleton
287
287
  * pattern is provided with a locale. Follows the Unicode specification:
@@ -294,45 +294,45 @@ var Le,Pe={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
294
294
  * of the given `locale` to the corresponding time pattern.
295
295
  * @param locale
296
296
  */
297
- function Se(e){var t=e.hourCycle;if(void 0===t&&
297
+ function Pt(t){var e=t.hourCycle;if(void 0===e&&
298
298
  // @ts-ignore hourCycle(s) is not identified yet
299
- e.hourCycles&&
299
+ t.hourCycles&&
300
300
  // @ts-ignore
301
- e.hourCycles.length&&(
301
+ t.hourCycles.length&&(
302
302
  // @ts-ignore
303
- t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
303
+ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
304
304
  // TODO: Once hourCycle is fully supported remove the following with data generation
305
- var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Pe[r||""]||Pe[n||""]||Pe["".concat(n,"-001")]||Pe["001"])[0]}var Ce=new RegExp("^".concat(pe.source,"*")),we=new RegExp("".concat(pe.source,"*$"));function Oe(e,t){return{start:e,end:t}}
305
+ var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(At[r||""]||At[n||""]||At["".concat(n,"-001")]||At["001"])[0]}var St=new RegExp("^".concat(mt.source,"*")),Ot=new RegExp("".concat(mt.source,"*$"));function Nt(t,e){return{start:t,end:e}}
306
306
  // #region Ponyfills
307
307
  // Consolidate these variables up top for easier toggling during debugging
308
- var Ne=!!String.prototype.startsWith,Ie=!!String.fromCodePoint,Me=!!Object.fromEntries,Re=!!String.prototype.codePointAt,Ue=!!String.prototype.trimStart,Ge=!!String.prototype.trimEnd,De=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{
308
+ var Mt=!!String.prototype.startsWith,It=!!String.fromCodePoint,Rt=!!Object.fromEntries,$t=!!String.prototype.codePointAt,Ut=!!String.prototype.trimStart,kt=!!String.prototype.trimEnd,Gt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},xt=!0;try{
309
309
  /**
310
310
  * legacy Edge or Xbox One browser
311
311
  * Unicode flag support: supported
312
312
  * Pattern_Syntax support: not supported
313
313
  * See https://github.com/formatjs/formatjs/issues/2822
314
314
  */
315
- ke="a"===(null===(Le=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Le?void 0:Le[0])}catch(e){ke=!1}var $e,Fe=Ne?// Native
316
- function(e,t,r){return e.startsWith(t,r)}:// For IE11
317
- function(e,t,r){return e.slice(r,r+t.length)===t},xe=Ie?String.fromCodePoint:// IE11
318
- function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},je=
315
+ xt="a"===(null===(Lt=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Lt?void 0:Lt[0])}catch(t){xt=!1}var Dt,Ft=Mt?// Native
316
+ function(t,e,r){return t.startsWith(e,r)}:// For IE11
317
+ function(t,e,r){return t.slice(r,r+e.length)===e},jt=It?String.fromCodePoint:// IE11
318
+ function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Vt=
319
319
  // native
320
- Me?Object.fromEntries:// Ponyfill
321
- function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},Ve=Re?// Native
322
- function(e,t){return e.codePointAt(t)}:// IE 11
323
- function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Xe=Ue?// Native
324
- function(e){return e.trimStart()}:// Ponyfill
325
- function(e){return e.replace(Ce,"")},Ke=Ge?// Native
326
- function(e){return e.trimEnd()}:// Ponyfill
327
- function(e){return e.replace(we,"")};
320
+ Rt?Object.fromEntries:// Ponyfill
321
+ function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},Xt=$t?// Native
322
+ function(t,e){return t.codePointAt(e)}:// IE 11
323
+ function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Kt=Ut?// Native
324
+ function(t){return t.trimStart()}:// Ponyfill
325
+ function(t){return t.replace(St,"")},Zt=kt?// Native
326
+ function(t){return t.trimEnd()}:// Ponyfill
327
+ function(t){return t.replace(Ot,"")};
328
328
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
329
- function Ye(e,t){return new RegExp(e,t)}
329
+ function zt(t,e){return new RegExp(t,e)}
330
330
  // #endregion
331
- if(ke){
331
+ if(xt){
332
332
  // Native
333
- var Ze=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(e,t){var r;return Ze.lastIndex=t,null!==(r=Ze.exec(e)[1])&&void 0!==r?r:""}}else
333
+ var Yt=zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Dt=function(t,e){var r;return Yt.lastIndex=e,null!==(r=Yt.exec(t)[1])&&void 0!==r?r:""}}else
334
334
  // IE11
335
- $e=function(e,t){for(var r=[];;){var n=Ve(e,t);if(void 0===n||Qe(n)||Je(n))break;r.push(n),t+=n>=65536?2:1}return xe.apply(void 0,r)};var ze=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Q.UNMATCHED_CLOSING_TAG,Oe(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&We(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:J.pound,location:Oe(s,this.clonePosition())})}}}return{val:n,err:null}},
335
+ Dt=function(t,e){for(var r=[];;){var n=Xt(t,e);if(void 0===n||Jt(n)||qt(n))break;r.push(n),e+=n>=65536?2:1}return jt.apply(void 0,r)};var Wt=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,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(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(J.UNMATCHED_CLOSING_TAG,Nt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Qt(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:q.pound,location:Nt(s,this.clonePosition())})}}}return{val:n,err:null}},
336
336
  /**
337
337
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
338
338
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -351,24 +351,24 @@ $e=function(e,t){for(var r=[];;){var n=Ve(e,t);if(void 0===n||Qe(n)||Je(n))break
351
351
  * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
352
352
  * since other tag-based engines like React allow it
353
353
  */
354
- e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();// `<`
354
+ t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();// `<`
355
355
  var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
356
356
  // Self closing tag
357
- return{val:{type:J.literal,value:"<".concat(n,"/>"),location:Oe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
357
+ return{val:{type:q.literal,value:"<".concat(n,"/>"),location:Nt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
358
358
  // Expecting a close tag
359
- if(this.bumpIf("</")){if(this.isEOF()||!We(this.char()))return this.error(Q.INVALID_TAG,Oe(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(Q.UNMATCHED_CLOSING_TAG,Oe(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:J.tag,value:n,children:o,location:Oe(r,this.clonePosition())},err:null}:this.error(Q.INVALID_TAG,Oe(s,this.clonePosition())))}return this.error(Q.UNCLOSED_TAG,Oe(r,this.clonePosition()))}return this.error(Q.INVALID_TAG,Oe(r,this.clonePosition()))},
359
+ if(this.bumpIf("</")){if(this.isEOF()||!Qt(this.char()))return this.error(J.INVALID_TAG,Nt(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(J.UNMATCHED_CLOSING_TAG,Nt(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:q.tag,value:n,children:o,location:Nt(r,this.clonePosition())},err:null}:this.error(J.INVALID_TAG,Nt(s,this.clonePosition())))}return this.error(J.UNCLOSED_TAG,Nt(r,this.clonePosition()))}return this.error(J.INVALID_TAG,Nt(r,this.clonePosition()))},
360
360
  /**
361
361
  * This method assumes that the caller has peeked ahead for the first tag character.
362
362
  */
363
- e.prototype.parseTagName=function(){var e,t=this.offset();// the first tag name character
364
- for(this.bump();!this.isEOF()&&(45/* '-' */===(e=this.char())||46/* '.' */===e||e>=48&&e<=57/* 0..9 */||95/* '_' */===e||e>=97&&e<=122/** a..z */||e>=65&&e<=90/* A..Z */||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Oe(r,this.clonePosition());return{val:{type:J.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(We(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
363
+ t.prototype.parseTagName=function(){var t,e=this.offset();// the first tag name character
364
+ for(this.bump();!this.isEOF()&&(45/* '-' */===(t=this.char())||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||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);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{var o=this.tryParseUnquoted(t,e);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Nt(r,this.clonePosition());return{val:{type:q.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(Qt(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
365
365
  /** See `parseTag` function docs. */},
366
366
  /**
367
367
  * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
368
368
  * a character that requires quoting (that is, "only where needed"), and works the same in
369
369
  * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
370
370
  */
371
- e.prototype.tryParseQuote=function(e){if(this.isEOF()||39/* `'` */!==this.char())return null;
371
+ t.prototype.tryParseQuote=function(t){if(this.isEOF()||39/* `'` */!==this.char())return null;
372
372
  // Parse escaped char following the apostrophe, or early return if there is no escaped char.
373
373
  // Check if is valid escaped character
374
374
  switch(this.peek()){case 39/* `'` */:
@@ -376,74 +376,74 @@ switch(this.peek()){case 39/* `'` */:
376
376
  return this.bump(),this.bump(),"'";
377
377
  // '{', '<', '>', '}'
378
378
  case 123:case 60:case 62:case 125:break;case 35:// '#'
379
- if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();// apostrophe
380
- var t=[this.char()];// escaped char
379
+ if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();// apostrophe
380
+ var e=[this.char()];// escaped char
381
381
  // read chars until the optional closing apostrophe is found
382
382
  for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'` */!==this.peek()){
383
383
  // Optional closing apostrophe.
384
- this.bump();break}t.push(39),
384
+ this.bump();break}e.push(39),
385
385
  // Bump one more time because we need to skip 2 characters.
386
- this.bump()}else t.push(r);this.bump()}return xe.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),xe(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
387
- this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(Q.EMPTY_ARGUMENT,Oe(r,this.clonePosition()));
386
+ this.bump()}else e.push(r);this.bump()}return jt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===e||"selectordinal"===e)||125/* `}` */===r&&t>0?null:(this.bump(),jt(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),// `{`
387
+ this.bumpSpace(),this.isEOF())return this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(J.EMPTY_ARGUMENT,Nt(r,this.clonePosition()));
388
388
  // argument name
389
- var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Q.MALFORMED_ARGUMENT,Oe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(r,this.clonePosition()));switch(this.char()){
389
+ var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(J.MALFORMED_ARGUMENT,Nt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(r,this.clonePosition()));switch(this.char()){
390
390
  // Simple argument: `{name}`
391
391
  case 125/* `}` */:// `}`
392
- return this.bump(),{val:{type:J.argument,
392
+ return this.bump(),{val:{type:q.argument,
393
393
  // value does not include the opening and closing braces.
394
- value:n,location:Oe(r,this.clonePosition())},err:null};
394
+ value:n,location:Nt(r,this.clonePosition())},err:null};
395
395
  // Argument with options: `{name, format, ...}`
396
396
  case 44/* `,` */:return this.bump(),// `,`
397
- this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Q.MALFORMED_ARGUMENT,Oe(r,this.clonePosition()))}},
397
+ this.bumpSpace(),this.isEOF()?this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(J.MALFORMED_ARGUMENT,Nt(r,this.clonePosition()))}},
398
398
  /**
399
399
  * Advance the parser until the end of the identifier, if it is currently on
400
400
  * an identifier character. Return an empty string otherwise.
401
401
  */
402
- e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$e(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Oe(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
402
+ t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Dt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Nt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
403
403
  // Parse this range:
404
404
  // {name, type, style}
405
405
  // ^---^
406
406
  switch(s){case"":
407
407
  // Expecting a style string number, date, time, plural, selectordinal, or select.
408
- return this.error(Q.EXPECT_ARGUMENT_TYPE,Oe(o,a));case"number":case"date":case"time":
408
+ return this.error(J.EXPECT_ARGUMENT_TYPE,Nt(o,a));case"number":case"date":case"time":
409
409
  // Parse this range:
410
410
  // {name, number, style}
411
411
  // ^-------^
412
- this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=Ke(d.val)).length)return this.error(Q.EXPECT_ARGUMENT_STYLE,Oe(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:Oe(c,this.clonePosition())}}if((E=this.tryParseArgumentClose(n)).err)return E;var l=Oe(n,this.clonePosition());
412
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Zt(b.val)).length)return this.error(J.EXPECT_ARGUMENT_STYLE,Nt(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Nt(h,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var c=Nt(n,this.clonePosition());
413
413
  // Extract style or skeleton
414
- if(h&&Fe(null==h?void 0:h.style,"::",0)){
414
+ if(l&&Ft(null==l?void 0:l.style,"::",0)){
415
415
  // Skeleton starts with `::`.
416
- var u=Xe(h.style.slice(2));if("number"===s)return(d=this.parseNumberSkeletonFromString(u,h.styleLocation)).err?d:{val:{type:J.number,value:r,location:l,style:d.val},err:null};if(0===u.length)return this.error(Q.EXPECT_DATE_TIME_SKELETON,l);var f=u;
416
+ var u=Kt(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?b:{val:{type:q.number,value:r,location:c,style:b.val},err:null};if(0===u.length)return this.error(J.EXPECT_DATE_TIME_SKELETON,c);var f=u;
417
417
  // Get "best match" pattern only if locale is passed, if not, let it
418
418
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
419
419
  // for unsupported patterns.
420
- this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=Se(t);for("H"!=h&&"k"!=h||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(u,this.locale));var p={type:q.dateTime,pattern:f,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?ge(f):{}};return{val:{type:"date"===s?J.date:J.time,value:r,location:l,style:p},err:null}}
420
+ this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=Pt(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(u,this.locale));var p={type:tt.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?dt(f):{}};return{val:{type:"date"===s?q.date:q.time,value:r,location:c,style:p},err:null}}
421
421
  // Regular style or no style.
422
- return{val:{type:"number"===s?J.number:"date"===s?J.date:J.time,value:r,location:l,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
422
+ return{val:{type:"number"===s?q.number:"date"===s?q.date:q.time,value:r,location:c,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
423
423
  // Parse this range:
424
424
  // {name, plural, options}
425
425
  // ^---------^
426
- var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Q.EXPECT_SELECT_ARGUMENT_OPTIONS,Oe(m,ee({},m)));this.bumpSpace();
426
+ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(J.EXPECT_SELECT_ARGUMENT_OPTIONS,Nt(m,et({},m)));this.bumpSpace();
427
427
  // Parse offset:
428
428
  // {name, plural, offset:1, options}
429
429
  // ^-----^
430
430
  // or the first option:
431
431
  // {name, plural, one {...} other {...}}
432
432
  // ^--^
433
- var g=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Oe(this.clonePosition(),this.clonePosition()));var d;if(this.bumpSpace(),(d=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;
433
+ var g=this.parseIdentifierIfPossible(),d=0;if("select"!==s&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Nt(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;
434
434
  // Parse another identifier for option parsing
435
- this.bumpSpace(),g=this.parseIdentifierIfPossible(),b=d.val}var E,y=this.tryParsePluralOrSelectOptions(e,s,t,g);if(y.err)return y;if((E=this.tryParseArgumentClose(n)).err)return E;var v=Oe(n,this.clonePosition());return"select"===s?{val:{type:J.select,value:r,options:je(y.val),location:v},err:null}:{val:{type:J.plural,value:r,options:je(y.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(Q.INVALID_ARGUMENT_TYPE,Oe(o,a))}},e.prototype.tryParseArgumentClose=function(e){
435
+ this.bumpSpace(),g=this.parseIdentifierIfPossible(),d=b.val}var y,E=this.tryParsePluralOrSelectOptions(t,s,e,g);if(E.err)return E;if((y=this.tryParseArgumentClose(n)).err)return y;var v=Nt(n,this.clonePosition());return"select"===s?{val:{type:q.select,value:r,options:Vt(E.val),location:v},err:null}:{val:{type:q.plural,value:r,options:Vt(E.val),offset:d,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(J.INVALID_ARGUMENT_TYPE,Nt(o,a))}},t.prototype.tryParseArgumentClose=function(t){
436
436
  // Parse: {value, number, ::currency/GBP }
437
- return this.isEOF()||125/* `}` */!==this.char()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
437
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
438
438
  /**
439
439
  * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
440
440
  */
441
- e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
441
+ t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
442
442
  // Treat apostrophe as quoting but include it in the style part.
443
443
  // Find the end of the quoted literal text.
444
- this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Oe(r,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
444
+ this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(J.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Nt(r,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
445
445
  // Parse the skeleton
446
- for(var t=[],r=0,n=e.split(be).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,h=s;a<h.length;a++)if(0===h[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(Q.INVALID_NUMBER_SKELETON,t)}return{val:{type:q.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(r):{}},err:null}},
446
+ for(var e=[],r=0,n=t.split(bt).filter((function(t){return t.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch(t){return this.error(J.INVALID_NUMBER_SKELETON,e)}return{val:{type:tt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?_t(r):{}},err:null}},
447
447
  /**
448
448
  * @param nesting_level The current nesting level of messages.
449
449
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -454,136 +454,150 @@ for(var t=[],r=0,n=e.split(be).filter((function(e){return e.length>0}));r<n.leng
454
454
  * between a pair of opening and closing tags. The nested message will not parse beyond
455
455
  * the closing tag boundary.
456
456
  */
457
- e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){
457
+ t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
458
458
  // Parse:
459
459
  // one {one apple}
460
460
  // ^--^
461
- for(var i,o=!1,s=[],a=new Set,h=n.value,c=n.location;;){if(0===h.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
461
+ for(var i,o=!1,s=[],a=new Set,l=n.value,h=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
462
462
  // Try parse `={number}` selector
463
- var u=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;c=Oe(l,this.clonePosition()),h=this.message.slice(l.offset,this.offset())}
463
+ var u=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_SELECTOR,J.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=Nt(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
464
464
  // Duplicate selector clauses
465
- if(a.has(h))return this.error("select"===t?Q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===h&&(o=!0),
465
+ if(a.has(l))return this.error("select"===e?J.DUPLICATE_SELECT_ARGUMENT_SELECTOR:J.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(o=!0),
466
466
  // Parse:
467
467
  // one {one apple}
468
468
  // ^----------^
469
- this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Oe(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([h,{value:p.val,location:Oe(f,this.clonePosition())}]),
469
+ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?J.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:J.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Nt(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([l,{value:p.val,location:Nt(f,this.clonePosition())}]),
470
470
  // Keep track of the existing selectors
471
- a.add(h),
471
+ a.add(l),
472
472
  // Prep next selector clause.
473
- this.bumpSpace(),h=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Oe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Q.MISSING_OTHER_CLAUSE,Oe(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Oe(n,this.clonePosition());return i?De(o*=r)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
473
+ this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,h=i.location}return 0===s.length?this.error("select"===e?J.EXPECT_SELECT_ARGUMENT_SELECTOR:J.EXPECT_PLURAL_ARGUMENT_SELECTOR,Nt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(J.MISSING_OTHER_CLAUSE,Nt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Nt(n,this.clonePosition());return i?Gt(o*=r)?{val:o,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
474
474
  // This is much faster than `Object.assign` or spread.
475
475
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
476
476
  /**
477
477
  * Return the code point at the current position of the parser.
478
478
  * Throws if the index is out of bound.
479
479
  */
480
- e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ve(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
480
+ t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Xt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},
481
481
  /** Bump the parser to the next UTF-16 code unit. */
482
- e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
482
+ t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10/* '\n' */===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
483
483
  // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
484
- this.position.offset+=e<65536?1:2)}},
484
+ this.position.offset+=t<65536?1:2)}},
485
485
  /**
486
486
  * If the substring starting at the current position of the parser has
487
487
  * the given prefix, then bump the parser to the character immediately
488
488
  * following the prefix and return true. Otherwise, don't bump the parser
489
489
  * and return false.
490
490
  */
491
- e.prototype.bumpIf=function(e){if(Fe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
491
+ t.prototype.bumpIf=function(t){if(Ft(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
492
492
  /**
493
493
  * Bump the parser until the pattern character is found and return `true`.
494
494
  * Otherwise bump to the end of the file and return `false`.
495
495
  */
496
- e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
496
+ t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
497
497
  /**
498
498
  * Bump the parser to the target offset.
499
499
  * If target offset is beyond the end of the input, bump the parser to the end of the input.
500
500
  */
501
- e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
501
+ t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
502
502
  /** advance the parser through all whitespace to the next non-whitespace code unit. */
503
- e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Qe(this.char());)this.bump()},
503
+ t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Jt(this.char());)this.bump()},
504
504
  /**
505
505
  * Peek at the *next* Unicode codepoint in the input without advancing the parser.
506
506
  * If the input has been exhausted, then this returns null.
507
507
  */
508
- e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();
508
+ t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();
509
509
  /**
510
510
  * This check if codepoint is alphabet (lower & uppercase)
511
511
  * @param codepoint
512
512
  * @returns
513
- */function We(e){return e>=97&&e<=122||e>=65&&e<=90}
513
+ */function Qt(t){return t>=97&&t<=122||t>=65&&t<=90}
514
514
  /**
515
515
  * Code point equivalent of regex `\p{White_Space}`.
516
516
  * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
517
517
  */
518
- function Qe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}
518
+ function Jt(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
519
519
  /**
520
520
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
521
521
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
522
- */function Je(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function qe(e){e.forEach((function(e){if(delete e.location,ae(e)||he(e))for(var t in e.options)delete e.options[t].location,qe(e.options[t].value);else ie(e)&&ue(e.style)||(oe(e)||se(e))&&fe(e.style)?delete e.style.location:le(e)&&qe(e.children)}))}function et(e,t){void 0===t&&(t={}),t=ee({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ze(e,t).parse();if(r.err){var n=SyntaxError(Q[r.err.kind]);
522
+ */function qt(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||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||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||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||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||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||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||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||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||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||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function te(t){t.forEach((function(t){if(delete t.location,lt(t)||ht(t))for(var e in t.options)delete t.options[e].location,te(t.options[e].value);else ot(t)&&ft(t.style)||(st(t)||at(t))&&pt(t.style)?delete t.style.location:ut(t)&&te(t.children)}))}function ee(t,e){void 0===e&&(e={}),e=et({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new Wt(t,e).parse();if(r.err){var n=SyntaxError(J[r.err.kind]);
523
523
  // @ts-expect-error Assign to error object
524
524
  throw n.location=r.err.location,
525
525
  // @ts-expect-error Assign to error object
526
- n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||qe(r.val),r.val}
526
+ n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||te(r.val),r.val}
527
527
 
528
528
  // Main
529
529
 
530
- function tt(e,t){var r=t&&t.cache?t.cache:ct,n=t&&t.serializer?t.serializer:st;return(t&&t.strategy?t.strategy:ot)(e,{cache:r,serializer:n})}
530
+ function re(t,e){var r=e&&e.cache?e.cache:ce,n=e&&e.serializer?e.serializer:ae;return(e&&e.strategy?e.strategy:se)(t,{cache:r,serializer:n})}
531
531
 
532
532
  // Strategy
533
533
 
534
- function rt(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function nt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function it(e,t,r,n,i){return r.bind(t,e,n,i)}function ot(e,t){return it(e,this,1===e.length?rt:nt,t.cache.create(),t.serializer)}
534
+ function ne(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=e.get(o);return void 0===s&&(s=t.call(this,n),e.set(o,s)),s}function ie(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function oe(t,e,r,n,i){return r.bind(e,t,n,i)}function se(t,e){return oe(t,this,1===t.length?ne:ie,e.cache.create(),e.serializer)}
535
535
  // Serializer
536
- var st=function(){return JSON.stringify(arguments)};
536
+ var ae=function(){return JSON.stringify(arguments)};
537
537
 
538
538
  // Cache
539
539
 
540
- function at(){this.cache=Object.create(null)}at.prototype.get=function(e){return this.cache[e]},at.prototype.set=function(e,t){this.cache[e]=t};var ht,ct={create:function(){
540
+ function le(){this.cache=Object.create(null)}le.prototype.get=function(t){return this.cache[t]},le.prototype.set=function(t,e){this.cache[t]=e};var he,ce={create:function(){
541
541
  // @ts-ignore
542
- return new at}},lt={variadic:function(e,t){return it(e,this,nt,t.cache.create(),t.serializer)},monadic:function(e,t){return it(e,this,rt,t.cache.create(),t.serializer)}};!function(e){
542
+ return new le}},ue={variadic:function(t,e){return oe(t,this,ie,e.cache.create(),e.serializer)},monadic:function(t,e){return oe(t,this,ne,e.cache.create(),e.serializer)}};!function(t){
543
543
  // When we have a placeholder but no value to format
544
- e.MISSING_VALUE="MISSING_VALUE",
544
+ t.MISSING_VALUE="MISSING_VALUE",
545
545
  // When value supplied is invalid
546
- e.INVALID_VALUE="INVALID_VALUE",
546
+ t.INVALID_VALUE="INVALID_VALUE",
547
547
  // When we need specific Intl API but it's not available
548
- e.MISSING_INTL_API="MISSING_INTL_API"}(ht||(ht={}));var ut,ft=/** @class */function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return W(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),pt=/** @class */function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ht.INVALID_VALUE,i)||this}return W(t,e),t}(ft),mt=/** @class */function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return W(t,e),t}(ft),gt=/** @class */function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return W(t,e),t}(ft);function bt(e){return"function"==typeof e}
548
+ t.MISSING_INTL_API="MISSING_INTL_API"}(he||(he={}));var fe,pe=/** @class */function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return Q(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),me=/** @class */function(t){function e(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),he.INVALID_VALUE,i)||this}return Q(e,t),e}(pe),ge=/** @class */function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),he.INVALID_VALUE,n)||this}return Q(e,t),e}(pe),de=/** @class */function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),he.MISSING_VALUE,r)||this}return Q(e,t),e}(pe);function be(t){return"function"==typeof t}
549
549
  // TODO(skeleton): add skeleton support
550
- function dt(e,t,r,n,i,o,
550
+ function ye(t,e,r,n,i,o,
551
551
  // For debugging
552
552
  s){
553
553
  // Hot path for straight simple msg translations
554
- if(1===e.length&&re(e[0]))return[{type:ut.literal,value:e[0].value}];for(var a=[],h=0,c=e;h<c.length;h++){var l=c[h];
554
+ if(1===t.length&&nt(t[0]))return[{type:fe.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var c=h[l];
555
555
  // Exit early for string parts.
556
- if(re(l))a.push({type:ut.literal,value:l.value});else
556
+ if(nt(c))a.push({type:fe.literal,value:c.value});else
557
557
  // TODO: should this part be literal type?
558
558
  // Replace `#` in plural rules with the actual numeric value.
559
- if(ce(l))"number"==typeof o&&a.push({type:ut.literal,value:r.getNumberFormat(t).format(o)});else{var u=l.value;
559
+ if(ct(c))"number"==typeof o&&a.push({type:fe.literal,value:r.getNumberFormat(e).format(o)});else{var u=c.value;
560
560
  // Enforce that all required values are provided by the caller.
561
- if(!i||!(u in i))throw new gt(u,s);var f=i[u];if(ne(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?ut.literal:ut.object,value:f});else
561
+ if(!i||!(u in i))throw new de(u,s);var f=i[u];if(it(c))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?fe.literal:fe.object,value:f});else
562
562
  // Recursively format plural and select parts' option — which can be a
563
563
  // nested pattern structure. The choosing of the option to use is
564
564
  // abstracted-by and delegated-to the part helper object.
565
- if(oe(l)){var p="string"==typeof l.style?n.date[l.style]:fe(l.style)?l.style.parsedOptions:void 0;a.push({type:ut.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(se(l)){p="string"==typeof l.style?n.time[l.style]:fe(l.style)?l.style.parsedOptions:n.time.medium;a.push({type:ut.literal,value:r.getDateTimeFormat(t,p).format(f)})}else if(ie(l)){(p="string"==typeof l.style?n.number[l.style]:ue(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:ut.literal,value:r.getNumberFormat(t,p).format(f)})}else{if(le(l)){var m=l.children,g=l.value,b=i[g];if(!bt(b))throw new mt(g,"function",s);var d=b(dt(m,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map((function(e){return{type:"string"==typeof e?ut.literal:ut.object,value:e}})))}if(ae(l)){if(!(E=l.options[f]||l.options.other))throw new pt(l.value,f,Object.keys(l.options),s);a.push.apply(a,dt(E.value,t,r,n,i))}else if(he(l)){var E;if(!(E=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new ft('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ht.MISSING_INTL_API,s);var y=r.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));E=l.options[y]||l.options.other}if(!E)throw new pt(l.value,f,Object.keys(l.options),s);a.push.apply(a,dt(E.value,t,r,n,i,f-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===ut.literal&&t.type===ut.literal?r.value+=t.value:e.push(t),e}),[])}(a)}
565
+ if(st(c)){var p="string"==typeof c.style?n.date[c.style]:pt(c.style)?c.style.parsedOptions:void 0;a.push({type:fe.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(at(c)){p="string"==typeof c.style?n.time[c.style]:pt(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:fe.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(ot(c)){(p="string"==typeof c.style?n.number[c.style]:ft(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:fe.literal,value:r.getNumberFormat(e,p).format(f)})}else{if(ut(c)){var m=c.children,g=c.value,d=i[g];if(!be(d))throw new ge(g,"function",s);var b=d(ye(m,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(t){return{type:"string"==typeof t?fe.literal:fe.object,value:t}})))}if(lt(c)){if(!(y=c.options[f]||c.options.other))throw new me(c.value,f,Object.keys(c.options),s);a.push.apply(a,ye(y.value,e,r,n,i))}else if(ht(c)){var y;if(!(y=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new pe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',he.MISSING_INTL_API,s);var E=r.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));y=c.options[E]||c.options.other}if(!y)throw new me(c.value,f,Object.keys(c.options),s);a.push.apply(a,ye(y.value,e,r,n,i,f-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===fe.literal&&e.type===fe.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
566
566
  /*
567
567
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
568
568
  Copyrights licensed under the New BSD License.
569
569
  See the accompanying LICENSE file for terms.
570
570
  */
571
571
  // -- MessageFormat --------------------------------------------------------
572
- function Et(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?ee(ee(ee({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=ee(ee({},i[t]),o[t]||{}),e}),{})):i),r}),ee({},e)):e}function yt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ut||(ut={}));var vt=/** @class */function(){function e(t,r,n,i){var o,s=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
572
+ function Ee(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?et(et(et({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=et(et({},i[e]),o[e]||{}),t}),{})):i),r}),et({},t)):t}function ve(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(fe||(fe={}));var He=/** @class */function(){function t(e,r,n,i){var o,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
573
573
  // Hot path for straight simple msg translations
574
- if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===ut.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return dt(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
574
+ if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===fe.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return ye(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
575
575
  // Defined first because it's used to build the format pattern.
576
- this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
576
+ this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
577
577
  // Parse string messages into an AST.
578
- this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
578
+ this.ast=t.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
579
579
  // Creates a new object with the specified `formats` merged with the default
580
580
  // formats.
581
- this.formats=Et(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:yt(o.number),strategy:lt.variadic}),getDateTimeFormat:tt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,te([void 0],t,!1)))}),{cache:yt(o.dateTime),strategy:lt.variadic}),getPluralRules:tt((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,te([void 0],t,!1)))}),{cache:yt(o.pluralRules),strategy:lt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=et,
581
+ this.formats=Ee(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:re((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,rt([void 0],e,!1)))}),{cache:ve(o.number),strategy:ue.variadic}),getDateTimeFormat:re((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,rt([void 0],e,!1)))}),{cache:ve(o.dateTime),strategy:ue.variadic}),getPluralRules:re((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,rt([void 0],e,!1)))}),{cache:ve(o.pluralRules),strategy:ue.variadic})})}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(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=ee,
582
582
  // Default format options used as the prototype of the `formats` provided to the
583
583
  // constructor. These are used when constructing the internal Intl.NumberFormat
584
584
  // and Intl.DateTimeFormat instances.
585
- e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Ht={},Tt=(e,t,r)=>r?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=r),r):r,_t=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=Pt(r[n],e);if(i)return Tt(e,t,i)}};let Bt;const At=D({});function Lt(e){return e in Bt}function Pt(e,t){if(!Lt(e))return null;const r=function(e){return Bt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function St(e,...t){delete Ht[e],At.update((r=>(r[e]=Z.all([r[e]||{},...t]),r)))}k([At],(([e])=>Object.keys(e))),At.subscribe((e=>Bt=e));const Ct={};function wt(e){return Ct[e]}function Ot(e){return null!=e&&Jt(e).some((e=>{var t;return null==(t=wt(e))?void 0:t.size}))}function Nt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ct[e].delete(t),0===Ct[e].size&&delete Ct[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>St(e,...t)))}const It={};function Mt(e){if(!Ot(e))return e in It?It[e]:Promise.resolve();const t=function(e){return Jt(e).map((e=>{const t=wt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return It[e]=Promise.all(t.map((([e,t])=>Nt(e,t)))).then((()=>{if(Ot(e))return Mt(e);delete It[e]})),It[e]}var Rt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;function Dt({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Jt(e).join('", "')}".${Ot(qt())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const kt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $t(){return kt}const Ft=D(!1);var xt=Object.defineProperty,jt=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Zt=(e,t,r)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let zt;const Wt=D(null);function Qt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=$t().fallbackLocale){const r=Qt(e);return t?[...new Set([...r,...Qt(t)])]:r}function qt(){return null!=zt?zt:void 0}Wt.subscribe((e=>{zt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const er=(tr=((e,t)=>{for(var r in t||(t={}))Kt.call(t,r)&&Zt(e,r,t[r]);if(Xt)for(var r of Xt(t))Yt.call(t,r)&&Zt(e,r,t[r]);return e})({},Wt),jt(tr,Vt({set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Lt(r))return r}}(e)&&Ot(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=qt()&&t?r=window.setTimeout((()=>Ft.set(!0)),t):Ft.set(!0),Mt(e).then((()=>{Wt.set(e)})).finally((()=>{clearTimeout(r),Ft.set(!1)}))}return Wt.set(e)}})));var tr;const rr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var nr=Object.defineProperty,ir=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,ar=(e,t,r)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hr=(e,t)=>{for(var r in t||(t={}))or.call(t,r)&&ar(e,r,t[r]);if(ir)for(var r of ir(t))sr.call(t,r)&&ar(e,r,t[r]);return e},cr=(e,t)=>{var r={};for(var n in e)or.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ir)for(var n of ir(e))t.indexOf(n)<0&&sr.call(e,n)&&(r[n]=e[n]);return r};const lr=(e,t)=>{const{formats:r}=$t();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ur=rr((e=>{var t=e,{locale:r,format:n}=t,i=cr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=lr("number",n)),new Intl.NumberFormat(r,i)})),fr=rr((e=>{var t=e,{locale:r,format:n}=t,i=cr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=lr("date",n):0===Object.keys(i).length&&(i=lr("date","short")),new Intl.DateTimeFormat(r,i)})),pr=rr((e=>{var t=e,{locale:r,format:n}=t,i=cr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=lr("time",n):0===Object.keys(i).length&&(i=lr("time","short")),new Intl.DateTimeFormat(r,i)})),mr=rr((
585
+ 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}();const Te={},Be=(t,e,r)=>r?(e in Te||(Te[e]={}),t in Te[e]||(Te[e][t]=r),r):r,Ce=(t,e)=>{if(null==e)return;if(e in Te&&t in Te[e])return Te[e][t];const r=tr(e);for(let n=0;n<r.length;n++){const i=Ae(r[n],t);if(i)return Be(t,e,i)}};let we;const _e=G({});function Le(t){return t in we}function Ae(t,e){if(!Le(t))return null;const r=function(t){return we[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Pe(t,...e){delete Te[t],_e.update((r=>(r[t]=Y.all([r[t]||{},...e]),r)))}x([_e],(([t])=>Object.keys(t))),_e.subscribe((t=>we=t));const Se={};function Oe(t){return Se[t]}function Ne(t){return null!=t&&tr(t).some((t=>{var e;return null==(e=Oe(t))?void 0:e.size}))}function Me(t,e){const r=Promise.all(e.map((e=>(function(t,e){Se[t].delete(e),0===Se[t].size&&delete Se[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Pe(t,...e)))}const Ie={};function Re(t){if(!Ne(t))return t in Ie?Ie[t]:Promise.resolve();const e=function(t){return tr(t).map((t=>{const e=Oe(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Ie[t]=Promise.all(e.map((([t,e])=>Me(t,e)))).then((()=>{if(Ne(t))return Re(t);delete Ie[t]})),Ie[t]}var $e=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;function Ge({locale:t,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${tr(t).join('", "')}".${Ne(er())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const xe={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function De(){return xe}function Fe(t){const e=t,{formats:r}=e,n=((t,e)=>{var r={};for(var n in t)Ue.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&$e)for(var n of $e(t))e.indexOf(n)<0&&ke.call(t,n)&&(r[n]=t[n]);return r})(e,["formats"]);let i=t.fallbackLocale;if(t.initialLocale)try{He.resolveLocale(t.initialLocale)&&(i=t.initialLocale)}catch(e){console.warn(`[svelte-i18n] The initial locale "${t.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Ge:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(xe,n,{initialLocale:i}),r&&("number"in r&&Object.assign(xe.formats.number,r.number),"date"in r&&Object.assign(xe.formats.date,r.date),"time"in r&&Object.assign(xe.formats.time,r.time)),rr.set(i)}const je=G(!1);var Ve=Object.defineProperty,Xe=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,We=(t,e,r)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Qe;const Je=G(null);function qe(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function tr(t,e=De().fallbackLocale){const r=qe(t);return e?[...new Set([...r,...qe(e)])]:r}function er(){return null!=Qe?Qe:void 0}Je.subscribe((t=>{Qe=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const rr=(nr=((t,e)=>{for(var r in e||(e={}))ze.call(e,r)&&We(t,r,e[r]);if(Ze)for(var r of Ze(e))Ye.call(e,r)&&We(t,r,e[r]);return t})({},Je),Xe(nr,Ke({set:t=>{if(t&&function(t){if(null==t)return;const e=tr(t);for(let t=0;t<e.length;t++){const r=e[t];if(Le(r))return r}}(t)&&Ne(t)){const{loadingDelay:e}=De();let r;return"undefined"!=typeof window&&null!=er()&&e?r=window.setTimeout((()=>je.set(!0)),e):je.set(!0),Re(t).then((()=>{Je.set(t)})).finally((()=>{clearTimeout(r),je.set(!1)}))}return Je.set(t)}})));var nr;const ir=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var or=Object.defineProperty,sr=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,hr=(t,e,r)=>e in t?or(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,cr=(t,e)=>{for(var r in e||(e={}))ar.call(e,r)&&hr(t,r,e[r]);if(sr)for(var r of sr(e))lr.call(e,r)&&hr(t,r,e[r]);return t},ur=(t,e)=>{var r={};for(var n in t)ar.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&sr)for(var n of sr(t))e.indexOf(n)<0&&lr.call(t,n)&&(r[n]=t[n]);return r};const fr=(t,e)=>{const{formats:r}=De();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},pr=ir((t=>{var e=t,{locale:r,format:n}=e,i=ur(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=fr("number",n)),new Intl.NumberFormat(r,i)})),mr=ir((t=>{var e=t,{locale:r,format:n}=e,i=ur(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=fr("date",n):0===Object.keys(i).length&&(i=fr("date","short")),new Intl.DateTimeFormat(r,i)})),gr=ir((t=>{var e=t,{locale:r,format:n}=e,i=ur(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=fr("time",n):0===Object.keys(i).length&&(i=fr("time","short")),new Intl.DateTimeFormat(r,i)})),dr=ir((
586
586
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
587
- (e,t=qt())=>new vt(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),gr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=qt(),default:c}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=_t(e,h);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(o=null!=(i=null==(n=(r=$t()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return l;let u=l;try{u=mr(l,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},br=(e,t)=>((e={})=>{var t=e,{locale:r=qt()}=t,n=cr(t,["locale"]);return pr(hr({locale:r},n))})(t).format(e),dr=(e,t)=>((e={})=>{var t=e,{locale:r=qt()}=t,n=cr(t,["locale"]);return fr(hr({locale:r},n))})(t).format(e),Er=(e,t)=>((e={})=>{var t=e,{locale:r=qt()}=t,n=cr(t,["locale"]);return ur(hr({locale:r},n))})(t).format(e),yr=(e,t=qt())=>_t(e,t),vr=k([er,At],(()=>gr));function Hr(e,t){St(e,t)}k([er],(()=>br)),k([er],(()=>dr)),k([er],(()=>Er)),k([er,At],(()=>yr)),function(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)Ut.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Rt)for(var n of Rt(e))t.indexOf(n)<0&&Gt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{vt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Dt:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(kt,n,{initialLocale:i}),r&&("number"in r&&Object.assign(kt.formats.number,r.number),"date"in r&&Object.assign(kt.formats.date,r.date),"time"in r&&Object.assign(kt.formats.time,r.time)),er.set(i)}({fallbackLocale:"en"});const Tr={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"}};
588
- /* src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */function _r(e){let t;return{c(){t=p("div"),d(t,"class","LoadingSpinner")},m(e,r){u(e,t,r)},d(e){e&&f(t)}}}function Br(t){let r,i,o,s,a,c,E,y,v,H,T,_,B=/*$_*/t[2]("redirectHeader")+"",A=/*isLoading*/t[1]&&_r();return{c(){r=p("div"),i=p("div"),o=p("div"),s=m(B),a=g(),c=p("div"),c.innerHTML='<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',E=g(),A&&A.c(),y=g(),v=p("iframe"),this.c=e,d(o,"class","RedirectHeader"),d(c,"class","CloseButton"),d(i,"class","HeaderContainer"),h(v.src,H=/*iframeurl*/t[0])||d(v,"src",H),d(v,"frameborder","0"),d(r,"class","CashierRedirectIframe")},m(e,n){u(e,r,n),l(r,i),l(i,o),l(o,s),l(i,a),l(i,c),l(r,E),A&&A.m(r,null),l(r,y),l(r,v),T||(_=[b(c,"click",/*close*/t[3]),b(v,"load",/*load_handler*/t[7])],T=!0)},p(e,[t]){/*$_*/4&t&&B!==(B=/*$_*/e[2]("redirectHeader")+"")&&function(e,t){t=""+t,e.data!==t&&(e.data=t)}(s,B),/*isLoading*/e[1]?A||(A=_r(),A.c(),A.m(r,y)):A&&(A.d(1),A=null),/*iframeurl*/1&t&&!h(v.src,H=/*iframeurl*/e[0])&&d(v,"src",H)},i:e,o:e,d(e){e&&f(r),A&&A.d(),T=!1,n(_)}}}function Ar(e,t,r){let n;var i,o;i=vr,o=e=>r(2,n=e),e.$$.on_destroy.push(c(i,o));let{lang:s="en"}=t,{iframeurl:a}=t,{translationurl:h=""}=t,l=!0;v();Object.keys(Tr).forEach((e=>{Hr(e,Tr[e])}));const u=()=>{var e;e=s,er.set(e)},f=e=>{e.target.src&&r(1,l=!1)};return e.$$set=e=>{"lang"in e&&r(5,s=e.lang),"iframeurl"in e&&r(0,a=e.iframeurl),"translationurl"in e&&r(6,h=e.translationurl)},e.$$.update=()=>{/*lang*/32&e.$$.dirty&&s&&u(),/*translationurl*/64&e.$$.dirty&&h&&(()=>{if(h)fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Hr(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[a,l,n,()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},f,s,h,e=>f(e)]}class Lr extends U{constructor(e){super();const t=document.createElement("style");t.textContent='.CashierRedirectIframe{height:inherit;width:inherit}iframe{height:100%;width:100%}.HeaderContainer{display:flex;background-color:var(--emw--color-white, #fff);justify-content:space-between;align-items:center;width:100%}.HeaderContainer .RedirectHeader{font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-10, #111);font-weight:bold;line-height:var(--emw--font-size-small, 14px)}.HeaderContainer .CloseButton{display:flex;align-items:center;padding:var(--emw--spacing-small-minus, 10px) var(--emw--spacing-x-small, 8px);box-sizing:border-box;border-radius:var(--mmw--border-radius-1x-small, 2px);background:var(--emw--color-white, #fff);justify-content:end;cursor:pointer}.LoadingSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:var(--emw--spacing-x-small, 8px);border-radius:50%;border:6px solid var(--mmw--color-main-button, #7EC51E);border-color:transparent var(--mmw--color-main-button, #7EC51E) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),R(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Ar,Br,o,{lang:5,iframeurl:0,translationurl:6},null),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),w()))}static get observedAttributes(){return["lang","iframeurl","translationurl"]}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),w()}get iframeurl(){return this.$$.ctx[0]}set iframeurl(e){this.$$set({iframeurl:e}),w()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),w()}}return!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",Lr),Lr}));
587
+ (t,e=er())=>new He(t,e,De().formats,{ignoreTag:De().ignoreTag}))),br=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=er(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ce(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=De()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:h}))?i:h)?o:t;if(!a)return c;let u=c;try{u=dr(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},yr=(t,e)=>((t={})=>{var e=t,{locale:r=er()}=e,n=ur(e,["locale"]);return gr(cr({locale:r},n))})(e).format(t),Er=(t,e)=>((t={})=>{var e=t,{locale:r=er()}=e,n=ur(e,["locale"]);return mr(cr({locale:r},n))})(e).format(t),vr=(t,e)=>((t={})=>{var e=t,{locale:r=er()}=e,n=ur(e,["locale"]);return pr(cr({locale:r},n))})(e).format(t),Hr=(t,e=er())=>Ce(t,e),Tr=x([rr,_e],(()=>br));function Br(t,e){Pe(t,e)}x([rr],(()=>yr)),x([rr],(()=>Er)),x([rr],(()=>vr)),x([rr,_e],(()=>Hr)),Fe({fallbackLocale:"en"});const Cr={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};function wr(t,e){Pe(t,e)}Fe({fallbackLocale:"en"});const _r={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}}};
588
+ /* ../cashier-header/src/CashierHeader.svelte generated by Svelte v3.59.2 */function Lr(e){let r,n,i;return{c(){r=p("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',b(r,"class","CashierHeaderLeftButton")},m(t,o){u(t,r,o),n||(i=d(r,"click",/*back*/e[5]),n=!0)},p:t,d(t){t&&f(r),n=!1,i()}}}function Ar(e){let r,n,i,o,s,a,l,h,y,E,v,H=/*$_*/e[3](/*titleText*/e[2])+"",T=/*backButton*/e[1]&&Lr(e);return{c(){r=p("div"),n=p("slot"),T&&T.c(),i=g(),o=p("slot"),s=p("span"),a=m(H),l=g(),h=p("slot"),y=p("span"),y.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',this.c=t,b(n,"name","leftButton"),b(s,"class","CashierHeaderTitle"),b(o,"name","title"),b(y,"class","CashierHeaderRightButton"),b(h,"name","rightButton"),b(r,"class","CashierHeader")},m(t,f){u(t,r,f),c(r,n),T&&T.m(n,null),c(r,i),c(r,o),c(o,s),c(s,a),c(r,l),c(r,h),c(h,y),
589
+ /*div_binding*/e[12](r),E||(v=d(y,"click",/*close*/e[4]),E=!0)},p(t,[e]){/*backButton*/t[1]?T?T.p(t,e):(T=Lr(t),T.c(),T.m(n,null)):T&&(T.d(1),T=null),/*$_, titleText*/12&e&&H!==(H=/*$_*/t[3](/*titleText*/t[2])+"")&&function(t,e){e=""+e,t.data!==e&&(t.data=e)}(a,H)},i:t,o:t,d(t){t&&f(r),T&&T.d()
590
+ /*div_binding*/,e[12](null),E=!1,v()}}}function Pr(t,e,r){let n;var i,o;i=Tr,o=t=>r(3,n=t),t.$$.on_destroy.push(h(i,o));let s,a,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e,{showbackbutton:f=""}=e,{title:p=""}=e,{lang:m="en"}=e,g=!1;Object.keys(_r).forEach((t=>{wr(t,_r[t])}));const d=()=>{var t;t=m,rr.set(t)};return t.$$set=t=>{"clientstyling"in t&&r(6,l=t.clientstyling),"clientstylingurl"in t&&r(7,c=t.clientstylingurl),"translationurl"in t&&r(8,u=t.translationurl),"showbackbutton"in t&&r(9,f=t.showbackbutton),"title"in t&&r(10,p=t.title),"lang"in t&&r(11,m=t.lang)},t.$$.update=()=>{/*lang*/2048&t.$$.dirty&&m&&d(),/*clientstyling, customStylingContainer*/65&t.$$.dirty&&l&&s&&(()=>{let t=document.createElement("style");t.innerHTML=l,s.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/129&t.$$.dirty&&c&&s&&(()=>{let t=new URL(c),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{s.appendChild(e)}),1)}))})(),/*translationurl*/256&t.$$.dirty&&u&&u&&fetch(u).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{wr(e,t[e])}))})).catch((t=>{console.log(t)})),/*showbackbutton*/512&t.$$.dirty&&f&&r(1,g=!!f&&"false"!==f),/*lang, title*/3072&t.$$.dirty&&m&&p&&r(2,a=p||"header.general")},[s,g,a,n,()=>{window.postMessage({type:"CloseCashier"},window.location.href)},()=>{window.postMessage({type:"BackCashier"},window.location.href)},l,c,u,f,p,m,function(t){B[t?"unshift":"push"]((()=>{s=t,r(0,s)}))}]}
591
+ /* ../cashier-spinner/src/CashierSpinner.svelte generated by Svelte v3.59.2 */
592
+ function Sr(e){let r;return{c(){r=p("div"),r.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',this.c=t,b(r,"class","CashierSpinner")},m(t,n){u(t,r,n),
593
+ /*div_binding*/e[3](r)},p:t,i:t,o:t,d(t){t&&f(r)
594
+ /*div_binding*/,e[3](null)}}}function Or(t,e,r){let n,{clientstyling:i=""}=e,{clientstylingurl:o=""}=e;return t.$$set=t=>{"clientstyling"in t&&r(1,i=t.clientstyling),"clientstylingurl"in t&&r(2,o=t.clientstylingurl)},t.$$.update=()=>{/*clientstyling, customStylingContainer*/3&t.$$.dirty&&i&&n&&(()=>{let t=document.createElement("style");t.innerHTML=i,n.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/5&t.$$.dirty&&o&&n&&(()=>{let t=new URL(o),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{n.appendChild(e)}),1)}))})()},[n,i,o,function(t){B[t?"unshift":"push"]((()=>{n=t,r(0,n)}))}]}!customElements.get("cashier-header")&&customElements.define("cashier-header",class extends U{constructor(t){super();const e=document.createElement("style");e.textContent=".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeader .CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeader .CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeader .CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeader .CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}.CashierHeader .CashierHeaderRightButton .close-button svg path{fill:var(--mmw--color-grey-10, #111)}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Pr,Ar,o,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["clientstyling","clientstylingurl","translationurl","showbackbutton","title","lang"]}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get translationurl(){return this.$$.ctx[8]}set translationurl(t){this.$$set({translationurl:t}),O()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(t){this.$$set({showbackbutton:t}),O()}get title(){return this.$$.ctx[10]}set title(t){this.$$set({title:t}),O()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),O()}});
595
+ /* src/CashierIframeRedirect.svelte generated by Svelte v3.59.2 */
596
+ function Nr(e){let r,n,i;return{c(){r=p("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',b(r,"slot","leftButton"),b(r,"class","CashierHeaderLeftButton")},m(t,o){u(t,r,o),n||(i=d(r,"click",/*close*/e[9]),n=!0)},p:t,d(t){t&&f(r),n=!1,i()}}}
597
+ // (87:6) {#if !showbackbutton || showbackbutton === 'false'}
598
+ function Mr(e){let r,n,i;return{c(){r=p("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',b(r,"slot","rightButton"),b(r,"class","CashierHeaderRightButton")},m(t,o){u(t,r,o),n||(i=d(r,"click",/*close*/e[9]),n=!0)},p:t,d(t){t&&f(r),n=!1,i()}}}
599
+ // (95:2) {#if isLoading}
600
+ function Ir(t){let e;return{c(){e=p("cashier-spinner"),y(e,"clientstylingurl",/*clientstylingurl*/t[5]),y(e,"clientstyling",/*clientstyling*/t[4])},m(t,r){u(t,e,r)},p(t,r){/*clientstylingurl*/32&r&&y(e,"clientstylingurl",/*clientstylingurl*/t[5]),/*clientstyling*/16&r&&y(e,"clientstyling",/*clientstyling*/t[4])},d(t){t&&f(e)}}}function Rr(e){let r,n,i,o,s,a,h,m,E,v=!!/*showbackbutton*/e[3]&&/*showbackbutton*/"false"!==e[3]&&Nr(e),H=(!/*showbackbutton*/e[3]||/*showbackbutton*/"false"===e[3])&&Mr(e),T=/*isLoading*/e[8]&&Ir(e);return{c(){r=p("div"),n=p("cashier-header"),v&&v.c(),i=g(),H&&H.c(),o=g(),T&&T.c(),s=g(),a=p("iframe"),this.c=t,y(n,"lang",/*lang*/e[0]),y(n,"translationurl",/*translationurl*/e[2]),y(n,"title",/*title*/e[6]),y(n,"showbackbutton",/*showbackbutton*/e[3]),y(n,"clientstylingurl",/*clientstylingurl*/e[5]),y(n,"clientstyling",/*clientstyling*/e[4]),l(a.src,h=/*iframeurl*/e[1])||b(a,"src",h),b(a,"frameborder","0"),b(r,"class","CashierRedirectIframe")},m(t,l){u(t,r,l),c(r,n),v&&v.m(n,null),c(n,i),H&&H.m(n,null),c(r,o),T&&T.m(r,null),c(r,s),c(r,a),
601
+ /*div_binding*/e[12](r),m||(E=d(a,"load",/*load_handler*/e[11]),m=!0)},p(t,[e]){/*showbackbutton*/t[3]&&/*showbackbutton*/"false"!==t[3]?v?v.p(t,e):(v=Nr(t),v.c(),v.m(n,i)):v&&(v.d(1),v=null),/*showbackbutton*/t[3]&&/*showbackbutton*/"false"!==t[3]?H&&(H.d(1),H=null):H?H.p(t,e):(H=Mr(t),H.c(),H.m(n,null)),/*lang*/1&e&&y(n,"lang",/*lang*/t[0]),/*translationurl*/4&e&&y(n,"translationurl",/*translationurl*/t[2]),/*title*/64&e&&y(n,"title",/*title*/t[6]),/*showbackbutton*/8&e&&y(n,"showbackbutton",/*showbackbutton*/t[3]),/*clientstylingurl*/32&e&&y(n,"clientstylingurl",/*clientstylingurl*/t[5]),/*clientstyling*/16&e&&y(n,"clientstyling",/*clientstyling*/t[4]),/*isLoading*/t[8]?T?T.p(t,e):(T=Ir(t),T.c(),T.m(r,s)):T&&(T.d(1),T=null),/*iframeurl*/2&e&&!l(a.src,h=/*iframeurl*/t[1])&&b(a,"src",h)},i:t,o:t,d(t){t&&f(r),v&&v.d(),H&&H.d(),T&&T.d()
602
+ /*div_binding*/,e[12](null),m=!1,E()}}}function $r(t,e,r){let n,{lang:i="en"}=e,{iframeurl:o}=e,{translationurl:s=""}=e,{showbackbutton:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:h=""}=e,{title:c=""}=e,u=!0;H();Object.keys(Cr).forEach((t=>{Br(t,Cr[t])}));const f=()=>{var t;t=i,rr.set(t)},p=t=>{t.target.src&&r(8,u=!1)};return t.$$set=t=>{"lang"in t&&r(0,i=t.lang),"iframeurl"in t&&r(1,o=t.iframeurl),"translationurl"in t&&r(2,s=t.translationurl),"showbackbutton"in t&&r(3,a=t.showbackbutton),"clientstyling"in t&&r(4,l=t.clientstyling),"clientstylingurl"in t&&r(5,h=t.clientstylingurl),"title"in t&&r(6,c=t.title)},t.$$.update=()=>{/*lang*/1&t.$$.dirty&&i&&f(),/*translationurl*/4&t.$$.dirty&&s&&(()=>{if(s)fetch(s).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Br(e,t[e])}))})).catch((t=>{console.log(t)}))})(),/*clientstyling, customStylingContainer*/144&t.$$.dirty&&l&&n&&(()=>{let t=document.createElement("style");t.innerHTML=l,n.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/160&t.$$.dirty&&h&&n&&(()=>{let t=new URL(h),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{n.appendChild(e)}),1)}))})()},[i,o,s,a,l,h,c,n,u,()=>{dispatchEvent(new CustomEvent("closeIframe",{bubbles:!0,cancelable:!0,composed:!0}))},p,t=>p(t),function(t){B[t?"unshift":"push"]((()=>{n=t,r(7,n)}))}]}!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",class extends U{constructor(t){super();const e=document.createElement("style");e.textContent=".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Or,Sr,o,{clientstyling:1,clientstylingurl:2},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}});class Ur extends U{constructor(t){super();const e=document.createElement("style");e.textContent=".CashierRedirectIframe{height:inherit;width:inherit}iframe{border-radius:0 0 6px 6px;border:1px solid var(--mmw--color-grey-105, #E8E9EB);height:calc(100% - var(--mmw--header-height, 32px));width:100%;box-sizing:border-box}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}.CashierHeaderRightButton .close-button svg path{fill:var(--mmw--color-grey-10, #111)}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},$r,Rr,o,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["lang","iframeurl","translationurl","showbackbutton","clientstyling","clientstylingurl","title"]}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),O()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(t){this.$$set({iframeurl:t}),O()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),O()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(t){this.$$set({showbackbutton:t}),O()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),O()}}return!customElements.get("cashier-iframe-redirect")&&customElements.define("cashier-iframe-redirect",Ur),Ur}));
589
603
  //# sourceMappingURL=cashier-iframe-redirect.js.map