@everymatrix/cashier-method-details 1.45.5 → 1.45.6
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CashierConfirmModal-Dw8BnUfp.js → CashierConfirmModal-BMW4zSn1.js} +136 -170
- package/components/CashierConfirmModal-BihPvQBJ.cjs +4 -0
- package/components/{CashierError-ClzxZoH7.cjs → CashierError-D6oq8-CP.cjs} +1 -1
- package/components/{CashierError-B_iMgTfr.js → CashierError-gARTV8-m.js} +1 -1
- package/components/{CashierHeader-BU_vM2lH.cjs → CashierHeader-BsMg5hLV.cjs} +1 -1
- package/components/{CashierHeader-VE5z702l.js → CashierHeader-yroTHP8Z.js} +2 -2
- package/components/{CashierIframeRedirect-DSYHz0IC.cjs → CashierIframeRedirect-BVX_GPxi.cjs} +1 -1
- package/components/{CashierIframeRedirect-CUdjcENK.js → CashierIframeRedirect-J3YBaaqC.js} +57 -65
- package/components/{CashierMethodDetails-BYvlumgg.cjs → CashierMethodDetails-BA_zrJUt.cjs} +3 -3
- package/components/{CashierMethodDetails-CoLJgvjQ.js → CashierMethodDetails-CwK4FlNt.js} +585 -573
- package/components/{CashierModal-BInN_GEx.js → CashierModal-B8UzDwRR.js} +16 -16
- package/components/{CashierModal-9BGQdqOF.cjs → CashierModal-DhSF7r-z.cjs} +1 -1
- package/components/{CashierNotifications-DUaec3Zg.js → CashierNotifications-DKp7tXLX.js} +16 -23
- package/components/CashierNotifications-YYL3Z0mZ.cjs +1 -0
- package/components/{CashierReceiptPage-BbBZku3l.js → CashierReceiptPage--wA7aLAd.js} +23 -23
- package/components/{CashierReceiptPage-lw2wwZ2Y.cjs → CashierReceiptPage-Bb2A4Vm-.cjs} +1 -1
- package/components/{CashierSpinner-DUwdQyI3.cjs → CashierSpinner-CsQIAFM9.cjs} +1 -1
- package/components/{CashierSpinner-DREUPtXI.js → CashierSpinner-Lm8ZCB8I.js} +1 -1
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/package.json +7 -7
- package/components/CashierConfirmModal-BsoB5fQM.cjs +0 -4
- package/components/CashierNotifications-CkuynzyL.cjs +0 -1
@@ -0,0 +1,4 @@
|
|
1
|
+
"use strict";var Bt=Object.defineProperty,Tt=Object.defineProperties;var Rt=Object.getOwnPropertyDescriptors;var ft=Object.getOwnPropertySymbols;var Wt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var it=(t,e,n)=>e in t?Bt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dt=(t,e)=>{for(var n in e||(e={}))Wt.call(e,n)&&it(t,n,e[n]);if(ft)for(var n of ft(e))qt.call(e,n)&&it(t,n,e[n]);return t},ht=(t,e)=>Tt(t,Rt(e));var C=(t,e,n)=>it(t,typeof e!="symbol"?e+"":e,n);var _t=(t,e,n)=>new Promise((i,r)=>{var s=u=>{try{o(n.next(u))}catch(c){r(c)}},l=u=>{try{o(n.throw(u))}catch(c){r(c)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,l);o((n=n.apply(t,e)).next())});function L(){}const Ct=t=>t;function Dt(t,e){for(const n in e)t[n]=e[n];return t}function xt(t){return t()}function $t(){return Object.create(null)}function k(t){t.forEach(xt)}function et(t){return typeof t=="function"}function vt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let V;function Ht(t,e){return t===e?!0:(V||(V=document.createElement("a")),V.href=e,t===V.href)}function It(t){return Object.keys(t).length===0}function Mt(t,...e){if(t==null){for(const i of e)i(void 0);return L}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ft(t,e,n){t.$$.on_destroy.push(Mt(e,n))}function T(t,e,n,i){if(t){const r=Et(t,e,n,i);return t[0](r)}}function Et(t,e,n,i){return t[1]&&i?Dt(n.ctx.slice(),t[1](i(e))):n.ctx}function R(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const s=[],l=Math.max(e.dirty.length,r.length);for(let o=0;o<l;o+=1)s[o]=e.dirty[o]|r[o];return s}return e.dirty|r}return e.dirty}function W(t,e,n,i,r,s){if(r){const l=Et(e,n,i,s);t.p(l,r)}}function q(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}const Lt=typeof window!="undefined";let Ut=Lt?()=>window.performance.now():()=>Date.now(),ct=Lt?t=>requestAnimationFrame(t):L;const N=new Set;function kt(t){N.forEach(e=>{e.c(t)||(N.delete(e),e.f())}),N.size!==0&&ct(kt)}function Jt(t){let e;return N.size===0&&ct(kt),{promise:new Promise(n=>{N.add(e={c:t,f:n})}),abort(){N.delete(e)}}}const Vt=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function x(t,e){t.appendChild(e)}function jt(t,e,n){const i=ut(t);if(!i.getElementById(e)){const r=v("style");r.id=e,r.textContent=n,Ot(i,r)}}function ut(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Zt(t){const e=v("style");return e.textContent="/* empty */",Ot(ut(t),e),e.sheet}function Ot(t,e){return x(t.head||t,e),e.sheet}function nt(t,e,n){t.insertBefore(e,n||null)}function O(t){t.parentNode&&t.parentNode.removeChild(t)}function Gt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function at(t){return document.createTextNode(t)}function G(){return at(" ")}function Kt(){return at("")}function I(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function $(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Xt(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:$(t,e,n)}function Yt(t){return t===""?null:+t}function te(t){return Array.from(t.childNodes)}function ee(t,e){e=""+e,t.data!==e&&(t.data=e)}function ne(t,e){t.value=e==null?"":e}function ie(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}let Z;function se(){if(Z===void 0){Z=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){Z=!0}}return Z}function oe(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const i=v("iframe");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),i.setAttribute("aria-hidden","true"),i.tabIndex=-1;const r=se();let s;return r?(i.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=I(window,"message",l=>{l.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{s=I(i.contentWindow,"resize",e),e()}),x(t,i),()=>{(r||s&&i.contentWindow)&&s(),O(i)}}function re(t,e,n){t.classList.toggle(e,!!n)}function le(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function ce(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}const X=new Map;let Y=0;function ue(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ae(t,e){const n={stylesheet:Zt(e),rules:{}};return X.set(t,n),n}function mt(t,e,n,i,r,s,l,o=0){const u=16.666/i;let c=`{
|
2
|
+
`;for(let g=0;g<=1;g+=u){const m=e+(n-e)*s(g);c+=g*100+`%{${l(m,1-m)}}
|
3
|
+
`}const p=c+`100% {${l(n,1-n)}}
|
4
|
+
}`,_=`__svelte_${ue(p)}_${o}`,y=ut(t),{stylesheet:f,rules:d}=X.get(y)||ae(y,t);d[_]||(d[_]=!0,f.insertRule(`@keyframes ${_} ${p}`,f.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${_} ${i}ms linear ${r}ms 1 both`,Y+=1,_}function fe(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(t.style.animation=i.join(", "),Y-=r,Y||de())}function de(){ct(()=>{Y||(X.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&O(e)}),X.clear())})}let F;function H(t){F=t}function he(){if(!F)throw new Error("Function called outside component initialization");return F}function _e(t){he().$$.on_mount.push(t)}const A=[],tt=[];let P=[];const pt=[],$e=Promise.resolve();let lt=!1;function me(){lt||(lt=!0,$e.then(J))}function U(t){P.push(t)}const st=new Set;let S=0;function J(){if(S!==0)return;const t=F;do{try{for(;S<A.length;){const e=A[S];S++,H(e),pe(e.$$)}}catch(e){throw A.length=0,S=0,e}for(H(null),A.length=0,S=0;tt.length;)tt.pop()();for(let e=0;e<P.length;e+=1){const n=P[e];st.has(n)||(st.add(n),n())}P.length=0}while(A.length);for(;pt.length;)pt.pop()();lt=!1,st.clear(),H(t)}function pe(t){if(t.fragment!==null){t.update(),k(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(U)}}function ge(t){const e=[],n=[];P.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),P=e}let B;function ye(){return B||(B=Promise.resolve(),B.then(()=>{B=null})),B}function ot(t,e,n){t.dispatchEvent(le(`${e?"intro":"outro"}${n}`))}const K=new Set;let M;function be(){M={r:0,c:[],p:M}}function we(){M.r||k(M.c),M=M.p}function z(t,e){t&&t.i&&(K.delete(t),t.i(e))}function D(t,e,n,i){if(t&&t.o){if(K.has(t))return;K.add(t),M.c.push(()=>{K.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const Ce={duration:0};function xe(t,e,n,i){let s=e(t,n,{direction:"both"}),l=i?0:1,o=null,u=null,c=null,p;function _(){c&&fe(t,c)}function y(d,h){const g=d.b-l;return h*=Math.abs(g),{a:l,b:d.b,d:g,duration:h,start:d.start,end:d.start+h,group:d.group}}function f(d){const{delay:h=0,duration:g=300,easing:m=Ct,tick:j=L,css:E}=s||Ce,b={start:Ut()+h,b:d};d||(b.group=M,M.r+=1),"inert"in t&&(d?p!==void 0&&(t.inert=p):(p=t.inert,t.inert=!0)),o||u?u=b:(E&&(_(),c=mt(t,l,d,g,h,m,E)),d&&j(0,1),o=y(b,g),U(()=>ot(t,d,"start")),Jt(a=>{if(u&&a>u.start&&(o=y(u,g),u=null,ot(t,o.b,"start"),E&&(_(),c=mt(t,l,o.b,o.duration,0,m,s.css))),o){if(a>=o.end)j(l=o.b,1-l),ot(t,o.b,"end"),u||(o.b?_():--o.group.r||k(o.group.c)),o=null;else if(a>=o.start){const w=a-o.start;l=o.a+o.d*m(w/o.duration),j(l,1-l)}}return!!(o||u)}))}return{run(d){et(s)?ye().then(()=>{s=s({direction:d?"in":"out"}),f(d)}):f(d)},end(){_(),o=u=null}}}function ve(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Me(t,e,n){const{fragment:i,after_update:r}=t.$$;i&&i.m(e,n),U(()=>{const s=t.$$.on_mount.map(xt).filter(et);t.$$.on_destroy?t.$$.on_destroy.push(...s):k(s),t.$$.on_mount=[]}),r.forEach(U)}function Ee(t,e){const n=t.$$;n.fragment!==null&&(ge(n.after_update),k(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Le(t,e){t.$$.dirty[0]===-1&&(A.push(t),me(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function St(t,e,n,i,r,s,l=null,o=[-1]){const u=F;H(t);const c=t.$$={fragment:null,ctx:[],props:s,update:L,not_equal:r,bound:$t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:$t(),dirty:o,skip_bound:!1,root:e.target||u.$$.root};l&&l(c.root);let p=!1;if(c.ctx=n?n(t,e.props||{},(_,y,...f)=>{const d=f.length?f[0]:y;return c.ctx&&r(c.ctx[_],c.ctx[_]=d)&&(!c.skip_bound&&c.bound[_]&&c.bound[_](d),p&&Le(t,_)),y}):[],c.update(),p=!0,k(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const _=te(e.target);c.fragment&&c.fragment.l(_),_.forEach(O)}else c.fragment&&c.fragment.c();e.intro&&z(t.$$.fragment),Me(t,e.target,e.anchor),J()}H(u)}let At;typeof HTMLElement=="function"&&(At=class extends HTMLElement{constructor(e,n,i){super();C(this,"$$ctor");C(this,"$$s");C(this,"$$c");C(this,"$$cn",!1);C(this,"$$d",{});C(this,"$$r",!1);C(this,"$$p_d",{});C(this,"$$l",{});C(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const r=this.$$c.$on(e,n);this.$$l_u.set(n,r)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return _t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=v("slot"),s!=="default"&&$(l,"name",s)},m:function(c,p){nt(c,l,p)},d:function(c){c&&O(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ce(this);for(const s of this.$$s)s in i&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Q(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ht(dt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=Q(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const o=this.$$c.$on(s,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(e,n,i){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Q(e,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Q(t,e,n,i){var s;const r=(s=n[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function zt(t,e,n,i,r,s){let l=class extends At{constructor(){super(t,n,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=Q(o,u,e),this.$$d[o]=u,(c=this.$$c)==null||c.$set({[o]:u})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),t.element=l,l}class Nt{constructor(){C(this,"$$");C(this,"$$set")}$destroy(){Ee(this,1),this.$destroy=L}$on(e,n){if(!et(n))return L;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!It(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ke="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ke);function je(t){jt(t,"svelte-tf74md","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{container-type:inline-size;container-name:confirm-modal;display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(255, 255, 255, 0.5))}.CashierModalContainer{width:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}@container confirm-modal (max-width: 750px){.CashierModalContainer{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}")}const Oe=t=>({}),gt=t=>({}),Se=t=>({}),yt=t=>({}),Ae=t=>({}),bt=t=>({class:"CashierModalText"}),ze=t=>({}),wt=t=>({class:"CashierModalTitle"});function Ne(t){let e,n;return{c(){e=rt("svg"),n=rt("path"),$(n,"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"),$(n,"fill","#111111"),$(e,"xmlns","http://www.w3.org/2000/svg"),$(e,"width","13"),$(e,"height","20"),$(e,"viewBox","0 0 13 13"),$(e,"fill","none")},m(i,r){nt(i,e,r),x(e,n)},p:L,d(i){i&&O(e)}}}function Pe(t){let e,n,i,r,s,l,o,u,c,p,_;const y=t[6].title,f=T(y,t,t[5],wt),d=t[6].text,h=T(d,t,t[5],bt),g=t[6].confirm,m=T(g,t,t[5],yt),j=t[6].close,E=T(j,t,t[5],gt),b=E||Ne();return{c(){e=v("div"),n=v("div"),i=v("div"),f&&f.c(),r=G(),h&&h.c(),s=G(),l=v("span"),m&&m.c(),o=G(),u=v("span"),b&&b.c(),$(l,"class","ModalOkBtn"),$(l,"role","button"),$(u,"class","ModalCloseBtn"),$(u,"role","button"),$(i,"class","CashierModalContainer"),$(i,"part","CashierModalContainer"),$(n,"class","CashierModalWindow"),$(n,"part","CashierModalWindow"),$(n,"id","Modal"),$(e,"part","CustomStylingContainer")},m(a,w){nt(a,e,w),x(e,n),x(n,i),f&&f.m(i,null),x(i,r),h&&h.m(i,null),x(i,s),x(i,l),m&&m.m(l,null),x(i,o),x(i,u),b&&b.m(u,null),t[7](e),c=!0,p||(_=[I(l,"click",t[2]),I(u,"click",t[1])],p=!0)},p(a,[w]){f&&f.p&&(!c||w&32)&&W(f,y,a,a[5],c?R(y,a[5],w,ze):q(a[5]),wt),h&&h.p&&(!c||w&32)&&W(h,d,a,a[5],c?R(d,a[5],w,Ae):q(a[5]),bt),m&&m.p&&(!c||w&32)&&W(m,g,a,a[5],c?R(g,a[5],w,Se):q(a[5]),yt),E&&E.p&&(!c||w&32)&&W(E,j,a,a[5],c?R(j,a[5],w,Oe):q(a[5]),gt)},i(a){c||(z(f,a),z(h,a),z(m,a),z(b,a),c=!0)},o(a){D(f,a),D(h,a),D(m,a),D(b,a),c=!1},d(a){a&&O(e),f&&f.d(a),h&&h.d(a),m&&m.d(a),b&&b.d(a),t[7](null),p=!1,k(_)}}}function Be(t,e,n){let{$$slots:i={},$$scope:r}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,o;const u=()=>{window.postMessage({type:"CloseModal"},window.location.href)},c=()=>{window.postMessage({type:"ConfirmModal"},window.location.href),u()},p=()=>{let f=document.createElement("style");f.innerHTML=s,o.appendChild(f)},_=()=>{let f=new URL(l),d=document.createElement("style");fetch(f.href).then(h=>h.text()).then(h=>{d.innerHTML=h,setTimeout(()=>{o.appendChild(d)},1)})};function y(f){tt[f?"unshift":"push"](()=>{o=f,n(0,o)})}return t.$$set=f=>{"clientstyling"in f&&n(3,s=f.clientstyling),"clientstylingurl"in f&&n(4,l=f.clientstylingurl),"$$scope"in f&&n(5,r=f.$$scope)},t.$$.update=()=>{t.$$.dirty&9&&s&&o&&p(),t.$$.dirty&17&&l&&o&&_()},[o,u,c,s,l,r,i,y]}class Pt extends Nt{constructor(e){super(),St(this,e,Be,Pe,vt,{clientstyling:3,clientstylingurl:4},je)}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),J()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),J()}}zt(Pt,{clientstyling:{},clientstylingurl:{}},["title","text","confirm","close"],[],!0);const Te=Object.freeze(Object.defineProperty({__proto__:null,default:Pt},Symbol.toStringTag,{value:"Module"}));exports.CashierConfirmModal_ce=Te;exports.SvelteComponent=Nt;exports.add_iframe_resize_listener=oe;exports.add_render_callback=U;exports.append=x;exports.append_styles=jt;exports.attr=$;exports.binding_callbacks=tt;exports.check_outros=we;exports.component_subscribe=Ft;exports.create_bidirectional_transition=xe;exports.create_custom_element=zt;exports.create_slot=T;exports.destroy_each=Gt;exports.detach=O;exports.element=v;exports.empty=Kt;exports.ensure_array_like=ve;exports.flush=J;exports.get_all_dirty_from_scope=q;exports.get_slot_changes=R;exports.globals=Vt;exports.group_outros=be;exports.identity=Ct;exports.init=St;exports.insert=nt;exports.is_function=et;exports.listen=I;exports.noop=L;exports.onMount=_e;exports.prevent_default=Qt;exports.run_all=k;exports.safe_not_equal=vt;exports.set_custom_element_data=Xt;exports.set_data=ee;exports.set_input_value=ne;exports.set_style=ie;exports.space=G;exports.src_url_equal=Ht;exports.subscribe=Mt;exports.svg_element=rt;exports.text=at;exports.to_number=Yt;exports.toggle_class=re;exports.transition_in=z;exports.transition_out=D;exports.update_slot_base=W;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const i=require("./CashierConfirmModal-BsoB5fQM.cjs"),j=[];function Be(A,e){return{subscribe:q(A,e).subscribe}}function q(A,e=i.noop){let f;const n=new Set;function t(P){if(i.safe_not_equal(A,P)&&(A=P,f)){const s=!j.length;for(const v of n)v[1](),j.push(v,A);if(s){for(let v=0;v<j.length;v+=2)j[v][0](j[v+1]);j.length=0}}}function r(P){t(P(A))}function w(P,s=i.noop){const v=[P,s];return n.add(v),n.size===1&&(f=e(t,r)||i.noop),P(A),()=>{n.delete(v),n.size===0&&f&&(f(),f=null)}}return{set:t,update:r,subscribe:w}}function O(A,e,f){const n=!Array.isArray(A),t=n?[A]:A;if(!t.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Be(f,(w,P)=>{let s=!1;const v=[];let g=0,C=i.noop;const E=()=>{if(g)return;C();const I=e(n?v[0]:v,w,P);r?w(I):C=i.is_function(I)?I:i.noop},u=t.map((I,D)=>i.subscribe(I,x=>{v[D]=x,g&=~(1<<D),s&&E()},()=>{g|=1<<D}));return s=!0,E(),function(){i.run_all(u),C(),s=!1}})}var ae=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function pA(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var ue=function(e){return ce(e)&&!xe(e)};function ce(A){return!!A&&typeof A=="object"}function xe(A){var e=Object.prototype.toString.call(A);return e==="[object RegExp]"||e==="[object Date]"||He(A)}var De=typeof Symbol=="function"&&Symbol.for,Ie=De?Symbol.for("react.element"):60103;function He(A){return A.$$typeof===Ie}function le(A){return Array.isArray(A)?[]:{}}function N(A,e){return e.clone!==!1&&e.isMergeableObject(A)?d(le(A),A,e):A}function Te(A,e,f){return A.concat(e).map(function(n){return N(n,f)})}function Le(A,e){if(!e.customMerge)return d;var f=e.customMerge(A);return typeof f=="function"?f:d}function be(A){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(A).filter(function(e){return Object.propertyIsEnumerable.call(A,e)}):[]}function DA(A){return Object.keys(A).concat(be(A))}function YA(A,e){try{return e in A}catch(f){return!1}}function Xe(A,e){return YA(A,e)&&!(Object.hasOwnProperty.call(A,e)&&Object.propertyIsEnumerable.call(A,e))}function Me(A,e,f){var n={};return f.isMergeableObject(A)&&DA(A).forEach(function(t){n[t]=N(A[t],f)}),DA(e).forEach(function(t){Xe(A,t)||(YA(A,t)&&f.isMergeableObject(e[t])?n[t]=Le(t,f)(A[t],e[t],f):n[t]=N(e[t],f))}),n}function d(A,e,f){f=f||{},f.arrayMerge=f.arrayMerge||Te,f.isMergeableObject=f.isMergeableObject||ue,f.cloneUnlessOtherwiseSpecified=N;var n=Array.isArray(e),t=Array.isArray(A),r=n===t;return r?n?f.arrayMerge(A,e,f):Me(A,e,f):N(e,f)}d.all=function(e,f){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,t){return d(n,t,f)},{})};var ze=d,ye=ze;const je=pA(ye);var wA=function(A,e){return wA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,n){f.__proto__=n}||function(f,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(f[t]=n[t])},wA(A,e)};function _(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wA(A,e);function f(){this.constructor=A}A.prototype=e===null?Object.create(e):(f.prototype=e.prototype,new f)}var c=function(){return c=Object.assign||function(e){for(var f,n=1,t=arguments.length;n<t;n++){f=arguments[n];for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r])}return e},c.apply(this,arguments)};function de(A,e){var f={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(f[n]=A[n]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,n=Object.getOwnPropertySymbols(A);t<n.length;t++)e.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(A,n[t])&&(f[n[t]]=A[n[t]]);return f}function eA(A,e,f){if(f||arguments.length===2)for(var n=0,t=e.length,r;n<t;n++)(r||!(n in e))&&(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||Array.prototype.slice.call(e))}var B;(function(A){A[A.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",A[A.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",A[A.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",A[A.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",A[A.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",A[A.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",A[A.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",A[A.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",A[A.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",A[A.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",A[A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",A[A.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",A[A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",A[A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",A[A.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",A[A.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",A[A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",A[A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",A[A.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",A[A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",A[A.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",A[A.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",A[A.INVALID_TAG=23]="INVALID_TAG",A[A.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",A[A.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",A[A.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(B||(B={}));var l;(function(A){A[A.literal=0]="literal",A[A.argument=1]="argument",A[A.number=2]="number",A[A.date=3]="date",A[A.time=4]="time",A[A.select=5]="select",A[A.plural=6]="plural",A[A.pound=7]="pound",A[A.tag=8]="tag"})(l||(l={}));var Q;(function(A){A[A.number=0]="number",A[A.dateTime=1]="dateTime"})(Q||(Q={}));function IA(A){return A.type===l.literal}function Qe(A){return A.type===l.argument}function SA(A){return A.type===l.number}function kA(A){return A.type===l.date}function KA(A){return A.type===l.time}function UA(A){return A.type===l.select}function WA(A){return A.type===l.plural}function Fe(A){return A.type===l.pound}function ZA(A){return A.type===l.tag}function VA(A){return!!(A&&typeof A=="object"&&A.type===Q.number)}function PA(A){return!!(A&&typeof A=="object"&&A.type===Q.dateTime)}var qA=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Je=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Oe(A){var e={};return A.replace(Je,function(f){var n=f.length;switch(f[0]){case"G":e.era=n===4?"long":n===5?"narrow":"short";break;case"y":e.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var me=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Re(A){if(A.length===0)throw new Error("Number skeleton cannot be empty");for(var e=A.split(me).filter(function(E){return E.length>0}),f=[],n=0,t=e;n<t.length;n++){var r=t[n],w=r.split("/");if(w.length===0)throw new Error("Invalid number skeleton");for(var P=w[0],s=w.slice(1),v=0,g=s;v<g.length;v++){var C=g[v];if(C.length===0)throw new Error("Invalid number skeleton")}f.push({stem:P,options:s})}return f}function Ge(A){return A.replace(/^(.*?)-/,"")}var HA=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_A=/^(@+)?(\+|#+)?[rs]?$/g,Ne=/(\*)(0+)|(#+)(0+)|(0+)/g,$A=/^(0+)$/;function lA(A){var e={};return A[A.length-1]==="r"?e.roundingPriority="morePrecision":A[A.length-1]==="s"&&(e.roundingPriority="lessPrecision"),A.replace(_A,function(f,n,t){return typeof t!="string"?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):t==="+"?e.minimumSignificantDigits=n.length:n[0]==="#"?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+(typeof t=="string"?t.length:0)),""}),e}function Ae(A){switch(A){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 pe(A){var e;if(A[0]==="E"&&A[1]==="E"?(e={notation:"engineering"},A=A.slice(2)):A[0]==="E"&&(e={notation:"scientific"},A=A.slice(1)),e){var f=A.slice(0,2);if(f==="+!"?(e.signDisplay="always",A=A.slice(2)):f==="+?"&&(e.signDisplay="exceptZero",A=A.slice(2)),!$A.test(A))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=A.length}return e}function TA(A){var e={},f=Ae(A);return f||e}function Ye(A){for(var e={},f=0,n=A;f<n.length;f++){var t=n[f];switch(t.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=t.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=Ge(t.options[0]);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=c(c(c({},e),{notation:"scientific"}),t.options.reduce(function(s,v){return c(c({},s),TA(v))},{}));continue;case"engineering":e=c(c(c({},e),{notation:"engineering"}),t.options.reduce(function(s,v){return c(c({},s),TA(v))},{}));continue;case"notation-simple":e.notation="standard";continue;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(t.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(t.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");t.options[0].replace(Ne,function(s,v,g,C,E,u){if(v)e.minimumIntegerDigits=g.length;else{if(C&&E)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if($A.test(t.stem)){e.minimumIntegerDigits=t.stem.length;continue}if(HA.test(t.stem)){if(t.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");t.stem.replace(HA,function(s,v,g,C,E,u){return g==="*"?e.minimumFractionDigits=v.length:C&&C[0]==="#"?e.maximumFractionDigits=C.length:E&&u?(e.minimumFractionDigits=E.length,e.maximumFractionDigits=E.length+u.length):(e.minimumFractionDigits=v.length,e.maximumFractionDigits=v.length),""});var r=t.options[0];r==="w"?e=c(c({},e),{trailingZeroDisplay:"stripIfInteger"}):r&&(e=c(c({},e),lA(r)));continue}if(_A.test(t.stem)){e=c(c({},e),lA(t.stem));continue}var w=Ae(t.stem);w&&(e=c(c({},e),w));var P=pe(t.stem);P&&(e=c(c({},e),P))}return e}var k={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"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"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Se(A,e){for(var f="",n=0;n<A.length;n++){var t=A.charAt(n);if(t==="j"){for(var r=0;n+1<A.length&&A.charAt(n+1)===t;)r++,n++;var w=1+(r&1),P=r<2?1:3+(r>>1),s="a",v=ke(e);for((v=="H"||v=="k")&&(P=0);P-- >0;)f+=s;for(;w-- >0;)f=v+f}else t==="J"?f+="H":f+=t}return f}function ke(A){var e=A.hourCycle;if(e===void 0&&A.hourCycles&&A.hourCycles.length&&(e=A.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")}var f=A.language,n;f!=="root"&&(n=A.maximize().region);var t=k[n||""]||k[f||""]||k["".concat(f,"-001")]||k["001"];return t[0]}var fA,Ke=new RegExp("^".concat(qA.source,"*")),Ue=new RegExp("".concat(qA.source,"*$"));function a(A,e){return{start:A,end:e}}var We=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ze=!!String.fromCodePoint,Ve=!!Object.fromEntries,qe=!!String.prototype.codePointAt,_e=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,Af=!!Number.isSafeInteger,ef=Af?Number.isSafeInteger:function(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A&&Math.abs(A)<=9007199254740991},vA=!0;try{var ff=fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vA=((fA=ff.exec("a"))===null||fA===void 0?void 0:fA[0])==="a"}catch(A){vA=!1}var LA=We?function(e,f,n){return e.startsWith(f,n)}:function(e,f,n){return e.slice(n,n+f.length)===f},gA=Ze?String.fromCodePoint:function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];for(var n="",t=e.length,r=0,w;t>r;){if(w=e[r++],w>1114111)throw RangeError(w+" is not a valid code point");n+=w<65536?String.fromCharCode(w):String.fromCharCode(((w-=65536)>>10)+55296,w%1024+56320)}return n},bA=Ve?Object.fromEntries:function(e){for(var f={},n=0,t=e;n<t.length;n++){var r=t[n],w=r[0],P=r[1];f[w]=P}return f},ee=qe?function(e,f){return e.codePointAt(f)}:function(e,f){var n=e.length;if(!(f<0||f>=n)){var t=e.charCodeAt(f),r;return t<55296||t>56319||f+1===n||(r=e.charCodeAt(f+1))<56320||r>57343?t:(t-55296<<10)+(r-56320)+65536}},nf=_e?function(e){return e.trimStart()}:function(e){return e.replace(Ke,"")},tf=$e?function(e){return e.trimEnd()}:function(e){return e.replace(Ue,"")};function fe(A,e){return new RegExp(A,e)}var EA;if(vA){var XA=fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");EA=function(e,f){var n;XA.lastIndex=f;var t=XA.exec(e);return(n=t[1])!==null&&n!==void 0?n:""}}else EA=function(e,f){for(var n=[];;){var t=ee(e,f);if(t===void 0||ne(t)||vf(t))break;n.push(t),f+=t>=65536?2:1}return gA.apply(void 0,n)};var rf=function(){function A(e,f){f===void 0&&(f={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!f.ignoreTag,this.locale=f.locale,this.requiresOtherClause=!!f.requiresOtherClause,this.shouldParseSkeletons=!!f.shouldParseSkeletons}return A.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},A.prototype.parseMessage=function(e,f,n){for(var t=[];!this.isEOF();){var r=this.char();if(r===123){var w=this.parseArgument(e,n);if(w.err)return w;t.push(w.val)}else{if(r===125&&e>0)break;if(r===35&&(f==="plural"||f==="selectordinal")){var P=this.clonePosition();this.bump(),t.push({type:l.pound,location:a(P,this.clonePosition())})}else if(r===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(B.UNMATCHED_CLOSING_TAG,a(this.clonePosition(),this.clonePosition()))}else if(r===60&&!this.ignoreTag&&sA(this.peek()||0)){var w=this.parseTag(e,f);if(w.err)return w;t.push(w.val)}else{var w=this.parseLiteral(e,f);if(w.err)return w;t.push(w.val)}}}return{val:t,err:null}},A.prototype.parseTag=function(e,f){var n=this.clonePosition();this.bump();var t=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(t,"/>"),location:a(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,f,!0);if(r.err)return r;var w=r.val,P=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sA(this.char()))return this.error(B.INVALID_TAG,a(P,this.clonePosition()));var s=this.clonePosition(),v=this.parseTagName();return t!==v?this.error(B.UNMATCHED_CLOSING_TAG,a(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:t,children:w,location:a(n,this.clonePosition())},err:null}:this.error(B.INVALID_TAG,a(P,this.clonePosition())))}else return this.error(B.UNCLOSED_TAG,a(n,this.clonePosition()))}else return this.error(B.INVALID_TAG,a(n,this.clonePosition()))},A.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Pf(this.char());)this.bump();return this.message.slice(e,this.offset())},A.prototype.parseLiteral=function(e,f){for(var n=this.clonePosition(),t="";;){var r=this.tryParseQuote(f);if(r){t+=r;continue}var w=this.tryParseUnquoted(e,f);if(w){t+=w;continue}var P=this.tryParseLeftAngleBracket();if(P){t+=P;continue}break}var s=a(n,this.clonePosition());return{val:{type:l.literal,value:t,location:s},err:null}},A.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wf(this.peek()||0))?(this.bump(),"<"):null},A.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var f=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)f.push(39),this.bump();else{this.bump();break}else f.push(n);this.bump()}return gA.apply(void 0,f)},A.prototype.tryParseUnquoted=function(e,f){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(f==="plural"||f==="selectordinal")||n===125&&e>0?null:(this.bump(),gA(n))},A.prototype.parseArgument=function(e,f){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(B.EMPTY_ARGUMENT,a(n,this.clonePosition()));var t=this.parseIdentifierIfPossible().value;if(!t)return this.error(B.MALFORMED_ARGUMENT,a(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:t,location:a(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(n,this.clonePosition())):this.parseArgumentOptions(e,f,t,n);default:return this.error(B.MALFORMED_ARGUMENT,a(n,this.clonePosition()))}},A.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),f=this.offset(),n=EA(this.message,f),t=f+n.length;this.bumpTo(t);var r=this.clonePosition(),w=a(e,r);return{value:n,location:w}},A.prototype.parseArgumentOptions=function(e,f,n,t){var r,w=this.clonePosition(),P=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(P){case"":return this.error(B.EXPECT_ARGUMENT_TYPE,a(w,s));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var g=this.clonePosition(),C=this.parseSimpleArgStyleIfPossible();if(C.err)return C;var E=tf(C.val);if(E.length===0)return this.error(B.EXPECT_ARGUMENT_STYLE,a(this.clonePosition(),this.clonePosition()));var u=a(g,this.clonePosition());v={style:E,styleLocation:u}}var I=this.tryParseArgumentClose(t);if(I.err)return I;var D=a(t,this.clonePosition());if(v&&LA(v==null?void 0:v.style,"::",0)){var x=nf(v.style.slice(2));if(P==="number"){var C=this.parseNumberSkeletonFromString(x,v.styleLocation);return C.err?C:{val:{type:l.number,value:n,location:D,style:C.val},err:null}}else{if(x.length===0)return this.error(B.EXPECT_DATE_TIME_SKELETON,D);var o=x;this.locale&&(o=Se(x,this.locale));var E={type:Q.dateTime,pattern:o,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?Oe(o):{}},H=P==="date"?l.date:l.time;return{val:{type:H,value:n,location:D,style:E},err:null}}}return{val:{type:P==="number"?l.number:P==="date"?l.date:l.time,value:n,location:D,style:(r=v==null?void 0:v.style)!==null&&r!==void 0?r:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,a(b,c({},b)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),T=0;if(P!=="select"&&h.value==="offset"){if(!this.bumpIf(":"))return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a(this.clonePosition(),this.clonePosition()));this.bumpSpace();var C=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(C.err)return C;this.bumpSpace(),h=this.parseIdentifierIfPossible(),T=C.val}var X=this.tryParsePluralOrSelectOptions(e,P,f,h);if(X.err)return X;var I=this.tryParseArgumentClose(t);if(I.err)return I;var xA=a(t,this.clonePosition());return P==="select"?{val:{type:l.select,value:n,options:bA(X.val),location:xA},err:null}:{val:{type:l.plural,value:n,options:bA(X.val),offset:T,pluralType:P==="plural"?"cardinal":"ordinal",location:xA},err:null}}default:return this.error(B.INVALID_ARGUMENT_TYPE,a(w,s))}},A.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},A.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,f=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var t=this.clonePosition();if(!this.bumpUntil("'"))return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,a(t,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(f.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(f.offset,this.offset()),err:null}},A.prototype.parseNumberSkeletonFromString=function(e,f){var n=[];try{n=Re(e)}catch(t){return this.error(B.INVALID_NUMBER_SKELETON,f)}return{val:{type:Q.number,tokens:n,location:f,parsedOptions:this.shouldParseSkeletons?Ye(n):{}},err:null}},A.prototype.tryParsePluralOrSelectOptions=function(e,f,n,t){for(var r,w=!1,P=[],s=new Set,v=t.value,g=t.location;;){if(v.length===0){var C=this.clonePosition();if(f!=="select"&&this.bumpIf("=")){var E=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR,B.INVALID_PLURAL_ARGUMENT_SELECTOR);if(E.err)return E;g=a(C,this.clonePosition()),v=this.message.slice(C.offset,this.offset())}else break}if(s.has(v))return this.error(f==="select"?B.DUPLICATE_SELECT_ARGUMENT_SELECTOR:B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,g);v==="other"&&(w=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(f==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,a(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(e+1,f,n);if(I.err)return I;var D=this.tryParseArgumentClose(u);if(D.err)return D;P.push([v,{value:I.val,location:a(u,this.clonePosition())}]),s.add(v),this.bumpSpace(),r=this.parseIdentifierIfPossible(),v=r.value,g=r.location}return P.length===0?this.error(f==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR:B.EXPECT_PLURAL_ARGUMENT_SELECTOR,a(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!w?this.error(B.MISSING_OTHER_CLAUSE,a(this.clonePosition(),this.clonePosition())):{val:P,err:null}},A.prototype.tryParseDecimalInteger=function(e,f){var n=1,t=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,w=0;!this.isEOF();){var P=this.char();if(P>=48&&P<=57)r=!0,w=w*10+(P-48),this.bump();else break}var s=a(t,this.clonePosition());return r?(w*=n,ef(w)?{val:w,err:null}:this.error(f,s)):this.error(e,s)},A.prototype.offset=function(){return this.position.offset},A.prototype.isEOF=function(){return this.offset()===this.message.length},A.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},A.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var f=ee(this.message,e);if(f===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return f},A.prototype.error=function(e,f){return{val:null,err:{kind:e,message:this.message,location:f}}},A.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},A.prototype.bumpIf=function(e){if(LA(this.message,e,this.offset())){for(var f=0;f<e.length;f++)this.bump();return!0}return!1},A.prototype.bumpUntil=function(e){var f=this.offset(),n=this.message.indexOf(e,f);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},A.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 f=this.offset();if(f===e)break;if(f>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},A.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},A.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),f=this.offset(),n=this.message.charCodeAt(f+(e>=65536?2:1));return n!=null?n:null},A}();function sA(A){return A>=97&&A<=122||A>=65&&A<=90}function wf(A){return sA(A)||A===47}function Pf(A){return A===45||A===46||A>=48&&A<=57||A===95||A>=97&&A<=122||A>=65&&A<=90||A==183||A>=192&&A<=214||A>=216&&A<=246||A>=248&&A<=893||A>=895&&A<=8191||A>=8204&&A<=8205||A>=8255&&A<=8256||A>=8304&&A<=8591||A>=11264&&A<=12271||A>=12289&&A<=55295||A>=63744&&A<=64975||A>=65008&&A<=65533||A>=65536&&A<=983039}function ne(A){return A>=9&&A<=13||A===32||A===133||A>=8206&&A<=8207||A===8232||A===8233}function vf(A){return A>=33&&A<=35||A===36||A>=37&&A<=39||A===40||A===41||A===42||A===43||A===44||A===45||A>=46&&A<=47||A>=58&&A<=59||A>=60&&A<=62||A>=63&&A<=64||A===91||A===92||A===93||A===94||A===96||A===123||A===124||A===125||A===126||A===161||A>=162&&A<=165||A===166||A===167||A===169||A===171||A===172||A===174||A===176||A===177||A===182||A===187||A===191||A===215||A===247||A>=8208&&A<=8213||A>=8214&&A<=8215||A===8216||A===8217||A===8218||A>=8219&&A<=8220||A===8221||A===8222||A===8223||A>=8224&&A<=8231||A>=8240&&A<=8248||A===8249||A===8250||A>=8251&&A<=8254||A>=8257&&A<=8259||A===8260||A===8261||A===8262||A>=8263&&A<=8273||A===8274||A===8275||A>=8277&&A<=8286||A>=8592&&A<=8596||A>=8597&&A<=8601||A>=8602&&A<=8603||A>=8604&&A<=8607||A===8608||A>=8609&&A<=8610||A===8611||A>=8612&&A<=8613||A===8614||A>=8615&&A<=8621||A===8622||A>=8623&&A<=8653||A>=8654&&A<=8655||A>=8656&&A<=8657||A===8658||A===8659||A===8660||A>=8661&&A<=8691||A>=8692&&A<=8959||A>=8960&&A<=8967||A===8968||A===8969||A===8970||A===8971||A>=8972&&A<=8991||A>=8992&&A<=8993||A>=8994&&A<=9e3||A===9001||A===9002||A>=9003&&A<=9083||A===9084||A>=9085&&A<=9114||A>=9115&&A<=9139||A>=9140&&A<=9179||A>=9180&&A<=9185||A>=9186&&A<=9254||A>=9255&&A<=9279||A>=9280&&A<=9290||A>=9291&&A<=9311||A>=9472&&A<=9654||A===9655||A>=9656&&A<=9664||A===9665||A>=9666&&A<=9719||A>=9720&&A<=9727||A>=9728&&A<=9838||A===9839||A>=9840&&A<=10087||A===10088||A===10089||A===10090||A===10091||A===10092||A===10093||A===10094||A===10095||A===10096||A===10097||A===10098||A===10099||A===10100||A===10101||A>=10132&&A<=10175||A>=10176&&A<=10180||A===10181||A===10182||A>=10183&&A<=10213||A===10214||A===10215||A===10216||A===10217||A===10218||A===10219||A===10220||A===10221||A===10222||A===10223||A>=10224&&A<=10239||A>=10240&&A<=10495||A>=10496&&A<=10626||A===10627||A===10628||A===10629||A===10630||A===10631||A===10632||A===10633||A===10634||A===10635||A===10636||A===10637||A===10638||A===10639||A===10640||A===10641||A===10642||A===10643||A===10644||A===10645||A===10646||A===10647||A===10648||A>=10649&&A<=10711||A===10712||A===10713||A===10714||A===10715||A>=10716&&A<=10747||A===10748||A===10749||A>=10750&&A<=11007||A>=11008&&A<=11055||A>=11056&&A<=11076||A>=11077&&A<=11078||A>=11079&&A<=11084||A>=11085&&A<=11123||A>=11124&&A<=11125||A>=11126&&A<=11157||A===11158||A>=11159&&A<=11263||A>=11776&&A<=11777||A===11778||A===11779||A===11780||A===11781||A>=11782&&A<=11784||A===11785||A===11786||A===11787||A===11788||A===11789||A>=11790&&A<=11798||A===11799||A>=11800&&A<=11801||A===11802||A===11803||A===11804||A===11805||A>=11806&&A<=11807||A===11808||A===11809||A===11810||A===11811||A===11812||A===11813||A===11814||A===11815||A===11816||A===11817||A>=11818&&A<=11822||A===11823||A>=11824&&A<=11833||A>=11834&&A<=11835||A>=11836&&A<=11839||A===11840||A===11841||A===11842||A>=11843&&A<=11855||A>=11856&&A<=11857||A===11858||A>=11859&&A<=11903||A>=12289&&A<=12291||A===12296||A===12297||A===12298||A===12299||A===12300||A===12301||A===12302||A===12303||A===12304||A===12305||A>=12306&&A<=12307||A===12308||A===12309||A===12310||A===12311||A===12312||A===12313||A===12314||A===12315||A===12316||A===12317||A>=12318&&A<=12319||A===12320||A===12336||A===64830||A===64831||A>=65093&&A<=65094}function CA(A){A.forEach(function(e){if(delete e.location,UA(e)||WA(e))for(var f in e.options)delete e.options[f].location,CA(e.options[f].value);else SA(e)&&VA(e.style)||(kA(e)||KA(e))&&PA(e.style)?delete e.style.location:ZA(e)&&CA(e.children)})}function gf(A,e){e===void 0&&(e={}),e=c({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var f=new rf(A,e).parse();if(f.err){var n=SyntaxError(B[f.err.kind]);throw n.location=f.err.location,n.originalMessage=f.err.message,n}return e!=null&&e.captureLocation||CA(f.val),f.val}function nA(A,e){var f=e&&e.cache?e.cache:Bf,n=e&&e.serializer?e.serializer:hf,t=e&&e.strategy?e.strategy:sf;return t(A,{cache:f,serializer:n})}function Ef(A){return A==null||typeof A=="number"||typeof A=="boolean"}function te(A,e,f,n){var t=Ef(n)?n:f(n),r=e.get(t);return typeof r=="undefined"&&(r=A.call(this,n),e.set(t,r)),r}function re(A,e,f){var n=Array.prototype.slice.call(arguments,3),t=f(n),r=e.get(t);return typeof r=="undefined"&&(r=A.apply(this,n),e.set(t,r)),r}function hA(A,e,f,n,t){return f.bind(e,A,n,t)}function sf(A,e){var f=A.length===1?te:re;return hA(A,this,f,e.cache.create(),e.serializer)}function Cf(A,e){return hA(A,this,re,e.cache.create(),e.serializer)}function of(A,e){return hA(A,this,te,e.cache.create(),e.serializer)}var hf=function(){return JSON.stringify(arguments)};function BA(){this.cache=Object.create(null)}BA.prototype.get=function(A){return this.cache[A]};BA.prototype.set=function(A,e){this.cache[A]=e};var Bf={create:function(){return new BA}},tA={variadic:Cf,monadic:of},F;(function(A){A.MISSING_VALUE="MISSING_VALUE",A.INVALID_VALUE="INVALID_VALUE",A.MISSING_INTL_API="MISSING_INTL_API"})(F||(F={}));var $=function(A){_(e,A);function e(f,n,t){var r=A.call(this,f)||this;return r.code=n,r.originalMessage=t,r}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),MA=function(A){_(e,A);function e(f,n,t,r){return A.call(this,'Invalid values for "'.concat(f,'": "').concat(n,'". Options are "').concat(Object.keys(t).join('", "'),'"'),F.INVALID_VALUE,r)||this}return e}($),af=function(A){_(e,A);function e(f,n,t){return A.call(this,'Value for "'.concat(f,'" must be of type ').concat(n),F.INVALID_VALUE,t)||this}return e}($),uf=function(A){_(e,A);function e(f,n){return A.call(this,'The intl string context variable "'.concat(f,'" was not provided to the string "').concat(n,'"'),F.MISSING_VALUE,n)||this}return e}($),L;(function(A){A[A.literal=0]="literal",A[A.object=1]="object"})(L||(L={}));function cf(A){return A.length<2?A:A.reduce(function(e,f){var n=e[e.length-1];return!n||n.type!==L.literal||f.type!==L.literal?e.push(f):n.value+=f.value,e},[])}function xf(A){return typeof A=="function"}function K(A,e,f,n,t,r,w){if(A.length===1&&IA(A[0]))return[{type:L.literal,value:A[0].value}];for(var P=[],s=0,v=A;s<v.length;s++){var g=v[s];if(IA(g)){P.push({type:L.literal,value:g.value});continue}if(Fe(g)){typeof r=="number"&&P.push({type:L.literal,value:f.getNumberFormat(e).format(r)});continue}var C=g.value;if(!(t&&C in t))throw new uf(C,w);var E=t[C];if(Qe(g)){(!E||typeof E=="string"||typeof E=="number")&&(E=typeof E=="string"||typeof E=="number"?String(E):""),P.push({type:typeof E=="string"?L.literal:L.object,value:E});continue}if(kA(g)){var u=typeof g.style=="string"?n.date[g.style]:PA(g.style)?g.style.parsedOptions:void 0;P.push({type:L.literal,value:f.getDateTimeFormat(e,u).format(E)});continue}if(KA(g)){var u=typeof g.style=="string"?n.time[g.style]:PA(g.style)?g.style.parsedOptions:n.time.medium;P.push({type:L.literal,value:f.getDateTimeFormat(e,u).format(E)});continue}if(SA(g)){var u=typeof g.style=="string"?n.number[g.style]:VA(g.style)?g.style.parsedOptions:void 0;u&&u.scale&&(E=E*(u.scale||1)),P.push({type:L.literal,value:f.getNumberFormat(e,u).format(E)});continue}if(ZA(g)){var I=g.children,D=g.value,x=t[D];if(!xf(x))throw new af(D,"function",w);var o=K(I,e,f,n,t,r),H=x(o.map(function(T){return T.value}));Array.isArray(H)||(H=[H]),P.push.apply(P,H.map(function(T){return{type:typeof T=="string"?L.literal:L.object,value:T}}))}if(UA(g)){var b=g.options[E]||g.options.other;if(!b)throw new MA(g.value,E,Object.keys(g.options),w);P.push.apply(P,K(b.value,e,f,n,t));continue}if(WA(g)){var b=g.options["=".concat(E)];if(!b){if(!Intl.PluralRules)throw new $(`Intl.PluralRules is not available in this environment.
|
1
|
+
"use strict";const i=require("./CashierConfirmModal-BihPvQBJ.cjs"),j=[];function Be(A,e){return{subscribe:q(A,e).subscribe}}function q(A,e=i.noop){let f;const n=new Set;function t(P){if(i.safe_not_equal(A,P)&&(A=P,f)){const s=!j.length;for(const v of n)v[1](),j.push(v,A);if(s){for(let v=0;v<j.length;v+=2)j[v][0](j[v+1]);j.length=0}}}function r(P){t(P(A))}function w(P,s=i.noop){const v=[P,s];return n.add(v),n.size===1&&(f=e(t,r)||i.noop),P(A),()=>{n.delete(v),n.size===0&&f&&(f(),f=null)}}return{set:t,update:r,subscribe:w}}function O(A,e,f){const n=!Array.isArray(A),t=n?[A]:A;if(!t.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Be(f,(w,P)=>{let s=!1;const v=[];let g=0,C=i.noop;const E=()=>{if(g)return;C();const I=e(n?v[0]:v,w,P);r?w(I):C=i.is_function(I)?I:i.noop},u=t.map((I,D)=>i.subscribe(I,x=>{v[D]=x,g&=~(1<<D),s&&E()},()=>{g|=1<<D}));return s=!0,E(),function(){i.run_all(u),C(),s=!1}})}var ae=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function pA(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var ue=function(e){return ce(e)&&!xe(e)};function ce(A){return!!A&&typeof A=="object"}function xe(A){var e=Object.prototype.toString.call(A);return e==="[object RegExp]"||e==="[object Date]"||He(A)}var De=typeof Symbol=="function"&&Symbol.for,Ie=De?Symbol.for("react.element"):60103;function He(A){return A.$$typeof===Ie}function le(A){return Array.isArray(A)?[]:{}}function N(A,e){return e.clone!==!1&&e.isMergeableObject(A)?d(le(A),A,e):A}function Te(A,e,f){return A.concat(e).map(function(n){return N(n,f)})}function Le(A,e){if(!e.customMerge)return d;var f=e.customMerge(A);return typeof f=="function"?f:d}function be(A){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(A).filter(function(e){return Object.propertyIsEnumerable.call(A,e)}):[]}function DA(A){return Object.keys(A).concat(be(A))}function YA(A,e){try{return e in A}catch(f){return!1}}function Xe(A,e){return YA(A,e)&&!(Object.hasOwnProperty.call(A,e)&&Object.propertyIsEnumerable.call(A,e))}function Me(A,e,f){var n={};return f.isMergeableObject(A)&&DA(A).forEach(function(t){n[t]=N(A[t],f)}),DA(e).forEach(function(t){Xe(A,t)||(YA(A,t)&&f.isMergeableObject(e[t])?n[t]=Le(t,f)(A[t],e[t],f):n[t]=N(e[t],f))}),n}function d(A,e,f){f=f||{},f.arrayMerge=f.arrayMerge||Te,f.isMergeableObject=f.isMergeableObject||ue,f.cloneUnlessOtherwiseSpecified=N;var n=Array.isArray(e),t=Array.isArray(A),r=n===t;return r?n?f.arrayMerge(A,e,f):Me(A,e,f):N(e,f)}d.all=function(e,f){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,t){return d(n,t,f)},{})};var ze=d,ye=ze;const je=pA(ye);var wA=function(A,e){return wA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,n){f.__proto__=n}||function(f,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(f[t]=n[t])},wA(A,e)};function _(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wA(A,e);function f(){this.constructor=A}A.prototype=e===null?Object.create(e):(f.prototype=e.prototype,new f)}var c=function(){return c=Object.assign||function(e){for(var f,n=1,t=arguments.length;n<t;n++){f=arguments[n];for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r])}return e},c.apply(this,arguments)};function de(A,e){var f={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(f[n]=A[n]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,n=Object.getOwnPropertySymbols(A);t<n.length;t++)e.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(A,n[t])&&(f[n[t]]=A[n[t]]);return f}function eA(A,e,f){if(f||arguments.length===2)for(var n=0,t=e.length,r;n<t;n++)(r||!(n in e))&&(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||Array.prototype.slice.call(e))}var B;(function(A){A[A.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",A[A.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",A[A.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",A[A.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",A[A.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",A[A.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",A[A.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",A[A.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",A[A.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",A[A.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",A[A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",A[A.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",A[A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",A[A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",A[A.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",A[A.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",A[A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",A[A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",A[A.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",A[A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",A[A.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",A[A.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",A[A.INVALID_TAG=23]="INVALID_TAG",A[A.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",A[A.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",A[A.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(B||(B={}));var l;(function(A){A[A.literal=0]="literal",A[A.argument=1]="argument",A[A.number=2]="number",A[A.date=3]="date",A[A.time=4]="time",A[A.select=5]="select",A[A.plural=6]="plural",A[A.pound=7]="pound",A[A.tag=8]="tag"})(l||(l={}));var Q;(function(A){A[A.number=0]="number",A[A.dateTime=1]="dateTime"})(Q||(Q={}));function IA(A){return A.type===l.literal}function Qe(A){return A.type===l.argument}function SA(A){return A.type===l.number}function kA(A){return A.type===l.date}function KA(A){return A.type===l.time}function UA(A){return A.type===l.select}function WA(A){return A.type===l.plural}function Fe(A){return A.type===l.pound}function ZA(A){return A.type===l.tag}function VA(A){return!!(A&&typeof A=="object"&&A.type===Q.number)}function PA(A){return!!(A&&typeof A=="object"&&A.type===Q.dateTime)}var qA=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Je=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Oe(A){var e={};return A.replace(Je,function(f){var n=f.length;switch(f[0]){case"G":e.era=n===4?"long":n===5?"narrow":"short";break;case"y":e.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var me=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Re(A){if(A.length===0)throw new Error("Number skeleton cannot be empty");for(var e=A.split(me).filter(function(E){return E.length>0}),f=[],n=0,t=e;n<t.length;n++){var r=t[n],w=r.split("/");if(w.length===0)throw new Error("Invalid number skeleton");for(var P=w[0],s=w.slice(1),v=0,g=s;v<g.length;v++){var C=g[v];if(C.length===0)throw new Error("Invalid number skeleton")}f.push({stem:P,options:s})}return f}function Ge(A){return A.replace(/^(.*?)-/,"")}var HA=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_A=/^(@+)?(\+|#+)?[rs]?$/g,Ne=/(\*)(0+)|(#+)(0+)|(0+)/g,$A=/^(0+)$/;function lA(A){var e={};return A[A.length-1]==="r"?e.roundingPriority="morePrecision":A[A.length-1]==="s"&&(e.roundingPriority="lessPrecision"),A.replace(_A,function(f,n,t){return typeof t!="string"?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):t==="+"?e.minimumSignificantDigits=n.length:n[0]==="#"?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+(typeof t=="string"?t.length:0)),""}),e}function Ae(A){switch(A){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 pe(A){var e;if(A[0]==="E"&&A[1]==="E"?(e={notation:"engineering"},A=A.slice(2)):A[0]==="E"&&(e={notation:"scientific"},A=A.slice(1)),e){var f=A.slice(0,2);if(f==="+!"?(e.signDisplay="always",A=A.slice(2)):f==="+?"&&(e.signDisplay="exceptZero",A=A.slice(2)),!$A.test(A))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=A.length}return e}function TA(A){var e={},f=Ae(A);return f||e}function Ye(A){for(var e={},f=0,n=A;f<n.length;f++){var t=n[f];switch(t.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=t.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=Ge(t.options[0]);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=c(c(c({},e),{notation:"scientific"}),t.options.reduce(function(s,v){return c(c({},s),TA(v))},{}));continue;case"engineering":e=c(c(c({},e),{notation:"engineering"}),t.options.reduce(function(s,v){return c(c({},s),TA(v))},{}));continue;case"notation-simple":e.notation="standard";continue;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(t.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(t.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");t.options[0].replace(Ne,function(s,v,g,C,E,u){if(v)e.minimumIntegerDigits=g.length;else{if(C&&E)throw new Error("We currently do not support maximum integer digits");if(u)throw new Error("We currently do not support exact integer digits")}return""});continue}if($A.test(t.stem)){e.minimumIntegerDigits=t.stem.length;continue}if(HA.test(t.stem)){if(t.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");t.stem.replace(HA,function(s,v,g,C,E,u){return g==="*"?e.minimumFractionDigits=v.length:C&&C[0]==="#"?e.maximumFractionDigits=C.length:E&&u?(e.minimumFractionDigits=E.length,e.maximumFractionDigits=E.length+u.length):(e.minimumFractionDigits=v.length,e.maximumFractionDigits=v.length),""});var r=t.options[0];r==="w"?e=c(c({},e),{trailingZeroDisplay:"stripIfInteger"}):r&&(e=c(c({},e),lA(r)));continue}if(_A.test(t.stem)){e=c(c({},e),lA(t.stem));continue}var w=Ae(t.stem);w&&(e=c(c({},e),w));var P=pe(t.stem);P&&(e=c(c({},e),P))}return e}var k={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"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"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Se(A,e){for(var f="",n=0;n<A.length;n++){var t=A.charAt(n);if(t==="j"){for(var r=0;n+1<A.length&&A.charAt(n+1)===t;)r++,n++;var w=1+(r&1),P=r<2?1:3+(r>>1),s="a",v=ke(e);for((v=="H"||v=="k")&&(P=0);P-- >0;)f+=s;for(;w-- >0;)f=v+f}else t==="J"?f+="H":f+=t}return f}function ke(A){var e=A.hourCycle;if(e===void 0&&A.hourCycles&&A.hourCycles.length&&(e=A.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")}var f=A.language,n;f!=="root"&&(n=A.maximize().region);var t=k[n||""]||k[f||""]||k["".concat(f,"-001")]||k["001"];return t[0]}var fA,Ke=new RegExp("^".concat(qA.source,"*")),Ue=new RegExp("".concat(qA.source,"*$"));function a(A,e){return{start:A,end:e}}var We=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ze=!!String.fromCodePoint,Ve=!!Object.fromEntries,qe=!!String.prototype.codePointAt,_e=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,Af=!!Number.isSafeInteger,ef=Af?Number.isSafeInteger:function(A){return typeof A=="number"&&isFinite(A)&&Math.floor(A)===A&&Math.abs(A)<=9007199254740991},vA=!0;try{var ff=fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vA=((fA=ff.exec("a"))===null||fA===void 0?void 0:fA[0])==="a"}catch(A){vA=!1}var LA=We?function(e,f,n){return e.startsWith(f,n)}:function(e,f,n){return e.slice(n,n+f.length)===f},gA=Ze?String.fromCodePoint:function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];for(var n="",t=e.length,r=0,w;t>r;){if(w=e[r++],w>1114111)throw RangeError(w+" is not a valid code point");n+=w<65536?String.fromCharCode(w):String.fromCharCode(((w-=65536)>>10)+55296,w%1024+56320)}return n},bA=Ve?Object.fromEntries:function(e){for(var f={},n=0,t=e;n<t.length;n++){var r=t[n],w=r[0],P=r[1];f[w]=P}return f},ee=qe?function(e,f){return e.codePointAt(f)}:function(e,f){var n=e.length;if(!(f<0||f>=n)){var t=e.charCodeAt(f),r;return t<55296||t>56319||f+1===n||(r=e.charCodeAt(f+1))<56320||r>57343?t:(t-55296<<10)+(r-56320)+65536}},nf=_e?function(e){return e.trimStart()}:function(e){return e.replace(Ke,"")},tf=$e?function(e){return e.trimEnd()}:function(e){return e.replace(Ue,"")};function fe(A,e){return new RegExp(A,e)}var EA;if(vA){var XA=fe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");EA=function(e,f){var n;XA.lastIndex=f;var t=XA.exec(e);return(n=t[1])!==null&&n!==void 0?n:""}}else EA=function(e,f){for(var n=[];;){var t=ee(e,f);if(t===void 0||ne(t)||vf(t))break;n.push(t),f+=t>=65536?2:1}return gA.apply(void 0,n)};var rf=function(){function A(e,f){f===void 0&&(f={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!f.ignoreTag,this.locale=f.locale,this.requiresOtherClause=!!f.requiresOtherClause,this.shouldParseSkeletons=!!f.shouldParseSkeletons}return A.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},A.prototype.parseMessage=function(e,f,n){for(var t=[];!this.isEOF();){var r=this.char();if(r===123){var w=this.parseArgument(e,n);if(w.err)return w;t.push(w.val)}else{if(r===125&&e>0)break;if(r===35&&(f==="plural"||f==="selectordinal")){var P=this.clonePosition();this.bump(),t.push({type:l.pound,location:a(P,this.clonePosition())})}else if(r===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(B.UNMATCHED_CLOSING_TAG,a(this.clonePosition(),this.clonePosition()))}else if(r===60&&!this.ignoreTag&&sA(this.peek()||0)){var w=this.parseTag(e,f);if(w.err)return w;t.push(w.val)}else{var w=this.parseLiteral(e,f);if(w.err)return w;t.push(w.val)}}}return{val:t,err:null}},A.prototype.parseTag=function(e,f){var n=this.clonePosition();this.bump();var t=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(t,"/>"),location:a(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(e+1,f,!0);if(r.err)return r;var w=r.val,P=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sA(this.char()))return this.error(B.INVALID_TAG,a(P,this.clonePosition()));var s=this.clonePosition(),v=this.parseTagName();return t!==v?this.error(B.UNMATCHED_CLOSING_TAG,a(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:t,children:w,location:a(n,this.clonePosition())},err:null}:this.error(B.INVALID_TAG,a(P,this.clonePosition())))}else return this.error(B.UNCLOSED_TAG,a(n,this.clonePosition()))}else return this.error(B.INVALID_TAG,a(n,this.clonePosition()))},A.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Pf(this.char());)this.bump();return this.message.slice(e,this.offset())},A.prototype.parseLiteral=function(e,f){for(var n=this.clonePosition(),t="";;){var r=this.tryParseQuote(f);if(r){t+=r;continue}var w=this.tryParseUnquoted(e,f);if(w){t+=w;continue}var P=this.tryParseLeftAngleBracket();if(P){t+=P;continue}break}var s=a(n,this.clonePosition());return{val:{type:l.literal,value:t,location:s},err:null}},A.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wf(this.peek()||0))?(this.bump(),"<"):null},A.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var f=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)f.push(39),this.bump();else{this.bump();break}else f.push(n);this.bump()}return gA.apply(void 0,f)},A.prototype.tryParseUnquoted=function(e,f){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(f==="plural"||f==="selectordinal")||n===125&&e>0?null:(this.bump(),gA(n))},A.prototype.parseArgument=function(e,f){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(B.EMPTY_ARGUMENT,a(n,this.clonePosition()));var t=this.parseIdentifierIfPossible().value;if(!t)return this.error(B.MALFORMED_ARGUMENT,a(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:t,location:a(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(n,this.clonePosition())):this.parseArgumentOptions(e,f,t,n);default:return this.error(B.MALFORMED_ARGUMENT,a(n,this.clonePosition()))}},A.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),f=this.offset(),n=EA(this.message,f),t=f+n.length;this.bumpTo(t);var r=this.clonePosition(),w=a(e,r);return{value:n,location:w}},A.prototype.parseArgumentOptions=function(e,f,n,t){var r,w=this.clonePosition(),P=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(P){case"":return this.error(B.EXPECT_ARGUMENT_TYPE,a(w,s));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var g=this.clonePosition(),C=this.parseSimpleArgStyleIfPossible();if(C.err)return C;var E=tf(C.val);if(E.length===0)return this.error(B.EXPECT_ARGUMENT_STYLE,a(this.clonePosition(),this.clonePosition()));var u=a(g,this.clonePosition());v={style:E,styleLocation:u}}var I=this.tryParseArgumentClose(t);if(I.err)return I;var D=a(t,this.clonePosition());if(v&&LA(v==null?void 0:v.style,"::",0)){var x=nf(v.style.slice(2));if(P==="number"){var C=this.parseNumberSkeletonFromString(x,v.styleLocation);return C.err?C:{val:{type:l.number,value:n,location:D,style:C.val},err:null}}else{if(x.length===0)return this.error(B.EXPECT_DATE_TIME_SKELETON,D);var o=x;this.locale&&(o=Se(x,this.locale));var E={type:Q.dateTime,pattern:o,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?Oe(o):{}},H=P==="date"?l.date:l.time;return{val:{type:H,value:n,location:D,style:E},err:null}}}return{val:{type:P==="number"?l.number:P==="date"?l.date:l.time,value:n,location:D,style:(r=v==null?void 0:v.style)!==null&&r!==void 0?r:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,a(b,c({},b)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),T=0;if(P!=="select"&&h.value==="offset"){if(!this.bumpIf(":"))return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a(this.clonePosition(),this.clonePosition()));this.bumpSpace();var C=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(C.err)return C;this.bumpSpace(),h=this.parseIdentifierIfPossible(),T=C.val}var X=this.tryParsePluralOrSelectOptions(e,P,f,h);if(X.err)return X;var I=this.tryParseArgumentClose(t);if(I.err)return I;var xA=a(t,this.clonePosition());return P==="select"?{val:{type:l.select,value:n,options:bA(X.val),location:xA},err:null}:{val:{type:l.plural,value:n,options:bA(X.val),offset:T,pluralType:P==="plural"?"cardinal":"ordinal",location:xA},err:null}}default:return this.error(B.INVALID_ARGUMENT_TYPE,a(w,s))}},A.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,a(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},A.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,f=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var t=this.clonePosition();if(!this.bumpUntil("'"))return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,a(t,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(f.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(f.offset,this.offset()),err:null}},A.prototype.parseNumberSkeletonFromString=function(e,f){var n=[];try{n=Re(e)}catch(t){return this.error(B.INVALID_NUMBER_SKELETON,f)}return{val:{type:Q.number,tokens:n,location:f,parsedOptions:this.shouldParseSkeletons?Ye(n):{}},err:null}},A.prototype.tryParsePluralOrSelectOptions=function(e,f,n,t){for(var r,w=!1,P=[],s=new Set,v=t.value,g=t.location;;){if(v.length===0){var C=this.clonePosition();if(f!=="select"&&this.bumpIf("=")){var E=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR,B.INVALID_PLURAL_ARGUMENT_SELECTOR);if(E.err)return E;g=a(C,this.clonePosition()),v=this.message.slice(C.offset,this.offset())}else break}if(s.has(v))return this.error(f==="select"?B.DUPLICATE_SELECT_ARGUMENT_SELECTOR:B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,g);v==="other"&&(w=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error(f==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,a(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(e+1,f,n);if(I.err)return I;var D=this.tryParseArgumentClose(u);if(D.err)return D;P.push([v,{value:I.val,location:a(u,this.clonePosition())}]),s.add(v),this.bumpSpace(),r=this.parseIdentifierIfPossible(),v=r.value,g=r.location}return P.length===0?this.error(f==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR:B.EXPECT_PLURAL_ARGUMENT_SELECTOR,a(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!w?this.error(B.MISSING_OTHER_CLAUSE,a(this.clonePosition(),this.clonePosition())):{val:P,err:null}},A.prototype.tryParseDecimalInteger=function(e,f){var n=1,t=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,w=0;!this.isEOF();){var P=this.char();if(P>=48&&P<=57)r=!0,w=w*10+(P-48),this.bump();else break}var s=a(t,this.clonePosition());return r?(w*=n,ef(w)?{val:w,err:null}:this.error(f,s)):this.error(e,s)},A.prototype.offset=function(){return this.position.offset},A.prototype.isEOF=function(){return this.offset()===this.message.length},A.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},A.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var f=ee(this.message,e);if(f===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return f},A.prototype.error=function(e,f){return{val:null,err:{kind:e,message:this.message,location:f}}},A.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},A.prototype.bumpIf=function(e){if(LA(this.message,e,this.offset())){for(var f=0;f<e.length;f++)this.bump();return!0}return!1},A.prototype.bumpUntil=function(e){var f=this.offset(),n=this.message.indexOf(e,f);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},A.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 f=this.offset();if(f===e)break;if(f>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},A.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},A.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),f=this.offset(),n=this.message.charCodeAt(f+(e>=65536?2:1));return n!=null?n:null},A}();function sA(A){return A>=97&&A<=122||A>=65&&A<=90}function wf(A){return sA(A)||A===47}function Pf(A){return A===45||A===46||A>=48&&A<=57||A===95||A>=97&&A<=122||A>=65&&A<=90||A==183||A>=192&&A<=214||A>=216&&A<=246||A>=248&&A<=893||A>=895&&A<=8191||A>=8204&&A<=8205||A>=8255&&A<=8256||A>=8304&&A<=8591||A>=11264&&A<=12271||A>=12289&&A<=55295||A>=63744&&A<=64975||A>=65008&&A<=65533||A>=65536&&A<=983039}function ne(A){return A>=9&&A<=13||A===32||A===133||A>=8206&&A<=8207||A===8232||A===8233}function vf(A){return A>=33&&A<=35||A===36||A>=37&&A<=39||A===40||A===41||A===42||A===43||A===44||A===45||A>=46&&A<=47||A>=58&&A<=59||A>=60&&A<=62||A>=63&&A<=64||A===91||A===92||A===93||A===94||A===96||A===123||A===124||A===125||A===126||A===161||A>=162&&A<=165||A===166||A===167||A===169||A===171||A===172||A===174||A===176||A===177||A===182||A===187||A===191||A===215||A===247||A>=8208&&A<=8213||A>=8214&&A<=8215||A===8216||A===8217||A===8218||A>=8219&&A<=8220||A===8221||A===8222||A===8223||A>=8224&&A<=8231||A>=8240&&A<=8248||A===8249||A===8250||A>=8251&&A<=8254||A>=8257&&A<=8259||A===8260||A===8261||A===8262||A>=8263&&A<=8273||A===8274||A===8275||A>=8277&&A<=8286||A>=8592&&A<=8596||A>=8597&&A<=8601||A>=8602&&A<=8603||A>=8604&&A<=8607||A===8608||A>=8609&&A<=8610||A===8611||A>=8612&&A<=8613||A===8614||A>=8615&&A<=8621||A===8622||A>=8623&&A<=8653||A>=8654&&A<=8655||A>=8656&&A<=8657||A===8658||A===8659||A===8660||A>=8661&&A<=8691||A>=8692&&A<=8959||A>=8960&&A<=8967||A===8968||A===8969||A===8970||A===8971||A>=8972&&A<=8991||A>=8992&&A<=8993||A>=8994&&A<=9e3||A===9001||A===9002||A>=9003&&A<=9083||A===9084||A>=9085&&A<=9114||A>=9115&&A<=9139||A>=9140&&A<=9179||A>=9180&&A<=9185||A>=9186&&A<=9254||A>=9255&&A<=9279||A>=9280&&A<=9290||A>=9291&&A<=9311||A>=9472&&A<=9654||A===9655||A>=9656&&A<=9664||A===9665||A>=9666&&A<=9719||A>=9720&&A<=9727||A>=9728&&A<=9838||A===9839||A>=9840&&A<=10087||A===10088||A===10089||A===10090||A===10091||A===10092||A===10093||A===10094||A===10095||A===10096||A===10097||A===10098||A===10099||A===10100||A===10101||A>=10132&&A<=10175||A>=10176&&A<=10180||A===10181||A===10182||A>=10183&&A<=10213||A===10214||A===10215||A===10216||A===10217||A===10218||A===10219||A===10220||A===10221||A===10222||A===10223||A>=10224&&A<=10239||A>=10240&&A<=10495||A>=10496&&A<=10626||A===10627||A===10628||A===10629||A===10630||A===10631||A===10632||A===10633||A===10634||A===10635||A===10636||A===10637||A===10638||A===10639||A===10640||A===10641||A===10642||A===10643||A===10644||A===10645||A===10646||A===10647||A===10648||A>=10649&&A<=10711||A===10712||A===10713||A===10714||A===10715||A>=10716&&A<=10747||A===10748||A===10749||A>=10750&&A<=11007||A>=11008&&A<=11055||A>=11056&&A<=11076||A>=11077&&A<=11078||A>=11079&&A<=11084||A>=11085&&A<=11123||A>=11124&&A<=11125||A>=11126&&A<=11157||A===11158||A>=11159&&A<=11263||A>=11776&&A<=11777||A===11778||A===11779||A===11780||A===11781||A>=11782&&A<=11784||A===11785||A===11786||A===11787||A===11788||A===11789||A>=11790&&A<=11798||A===11799||A>=11800&&A<=11801||A===11802||A===11803||A===11804||A===11805||A>=11806&&A<=11807||A===11808||A===11809||A===11810||A===11811||A===11812||A===11813||A===11814||A===11815||A===11816||A===11817||A>=11818&&A<=11822||A===11823||A>=11824&&A<=11833||A>=11834&&A<=11835||A>=11836&&A<=11839||A===11840||A===11841||A===11842||A>=11843&&A<=11855||A>=11856&&A<=11857||A===11858||A>=11859&&A<=11903||A>=12289&&A<=12291||A===12296||A===12297||A===12298||A===12299||A===12300||A===12301||A===12302||A===12303||A===12304||A===12305||A>=12306&&A<=12307||A===12308||A===12309||A===12310||A===12311||A===12312||A===12313||A===12314||A===12315||A===12316||A===12317||A>=12318&&A<=12319||A===12320||A===12336||A===64830||A===64831||A>=65093&&A<=65094}function CA(A){A.forEach(function(e){if(delete e.location,UA(e)||WA(e))for(var f in e.options)delete e.options[f].location,CA(e.options[f].value);else SA(e)&&VA(e.style)||(kA(e)||KA(e))&&PA(e.style)?delete e.style.location:ZA(e)&&CA(e.children)})}function gf(A,e){e===void 0&&(e={}),e=c({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var f=new rf(A,e).parse();if(f.err){var n=SyntaxError(B[f.err.kind]);throw n.location=f.err.location,n.originalMessage=f.err.message,n}return e!=null&&e.captureLocation||CA(f.val),f.val}function nA(A,e){var f=e&&e.cache?e.cache:Bf,n=e&&e.serializer?e.serializer:hf,t=e&&e.strategy?e.strategy:sf;return t(A,{cache:f,serializer:n})}function Ef(A){return A==null||typeof A=="number"||typeof A=="boolean"}function te(A,e,f,n){var t=Ef(n)?n:f(n),r=e.get(t);return typeof r=="undefined"&&(r=A.call(this,n),e.set(t,r)),r}function re(A,e,f){var n=Array.prototype.slice.call(arguments,3),t=f(n),r=e.get(t);return typeof r=="undefined"&&(r=A.apply(this,n),e.set(t,r)),r}function hA(A,e,f,n,t){return f.bind(e,A,n,t)}function sf(A,e){var f=A.length===1?te:re;return hA(A,this,f,e.cache.create(),e.serializer)}function Cf(A,e){return hA(A,this,re,e.cache.create(),e.serializer)}function of(A,e){return hA(A,this,te,e.cache.create(),e.serializer)}var hf=function(){return JSON.stringify(arguments)};function BA(){this.cache=Object.create(null)}BA.prototype.get=function(A){return this.cache[A]};BA.prototype.set=function(A,e){this.cache[A]=e};var Bf={create:function(){return new BA}},tA={variadic:Cf,monadic:of},F;(function(A){A.MISSING_VALUE="MISSING_VALUE",A.INVALID_VALUE="INVALID_VALUE",A.MISSING_INTL_API="MISSING_INTL_API"})(F||(F={}));var $=function(A){_(e,A);function e(f,n,t){var r=A.call(this,f)||this;return r.code=n,r.originalMessage=t,r}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),MA=function(A){_(e,A);function e(f,n,t,r){return A.call(this,'Invalid values for "'.concat(f,'": "').concat(n,'". Options are "').concat(Object.keys(t).join('", "'),'"'),F.INVALID_VALUE,r)||this}return e}($),af=function(A){_(e,A);function e(f,n,t){return A.call(this,'Value for "'.concat(f,'" must be of type ').concat(n),F.INVALID_VALUE,t)||this}return e}($),uf=function(A){_(e,A);function e(f,n){return A.call(this,'The intl string context variable "'.concat(f,'" was not provided to the string "').concat(n,'"'),F.MISSING_VALUE,n)||this}return e}($),L;(function(A){A[A.literal=0]="literal",A[A.object=1]="object"})(L||(L={}));function cf(A){return A.length<2?A:A.reduce(function(e,f){var n=e[e.length-1];return!n||n.type!==L.literal||f.type!==L.literal?e.push(f):n.value+=f.value,e},[])}function xf(A){return typeof A=="function"}function K(A,e,f,n,t,r,w){if(A.length===1&&IA(A[0]))return[{type:L.literal,value:A[0].value}];for(var P=[],s=0,v=A;s<v.length;s++){var g=v[s];if(IA(g)){P.push({type:L.literal,value:g.value});continue}if(Fe(g)){typeof r=="number"&&P.push({type:L.literal,value:f.getNumberFormat(e).format(r)});continue}var C=g.value;if(!(t&&C in t))throw new uf(C,w);var E=t[C];if(Qe(g)){(!E||typeof E=="string"||typeof E=="number")&&(E=typeof E=="string"||typeof E=="number"?String(E):""),P.push({type:typeof E=="string"?L.literal:L.object,value:E});continue}if(kA(g)){var u=typeof g.style=="string"?n.date[g.style]:PA(g.style)?g.style.parsedOptions:void 0;P.push({type:L.literal,value:f.getDateTimeFormat(e,u).format(E)});continue}if(KA(g)){var u=typeof g.style=="string"?n.time[g.style]:PA(g.style)?g.style.parsedOptions:n.time.medium;P.push({type:L.literal,value:f.getDateTimeFormat(e,u).format(E)});continue}if(SA(g)){var u=typeof g.style=="string"?n.number[g.style]:VA(g.style)?g.style.parsedOptions:void 0;u&&u.scale&&(E=E*(u.scale||1)),P.push({type:L.literal,value:f.getNumberFormat(e,u).format(E)});continue}if(ZA(g)){var I=g.children,D=g.value,x=t[D];if(!xf(x))throw new af(D,"function",w);var o=K(I,e,f,n,t,r),H=x(o.map(function(T){return T.value}));Array.isArray(H)||(H=[H]),P.push.apply(P,H.map(function(T){return{type:typeof T=="string"?L.literal:L.object,value:T}}))}if(UA(g)){var b=g.options[E]||g.options.other;if(!b)throw new MA(g.value,E,Object.keys(g.options),w);P.push.apply(P,K(b.value,e,f,n,t));continue}if(WA(g)){var b=g.options["=".concat(E)];if(!b){if(!Intl.PluralRules)throw new $(`Intl.PluralRules is not available in this environment.
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3
3
|
`,F.MISSING_INTL_API,w);var h=f.getPluralRules(e,{type:g.pluralType}).select(E-(g.offset||0));b=g.options[h]||g.options.other}if(!b)throw new MA(g.value,E,Object.keys(g.options),w);P.push.apply(P,K(b.value,e,f,n,t,E-(g.offset||0)));continue}}return cf(P)}function Df(A,e){return e?c(c(c({},A||{}),e||{}),Object.keys(A).reduce(function(f,n){return f[n]=c(c({},A[n]),e[n]||{}),f},{})):A}function If(A,e){return e?Object.keys(A).reduce(function(f,n){return f[n]=Df(A[n],e[n]),f},c({},A)):A}function rA(A){return{create:function(){return{get:function(e){return A[e]},set:function(e,f){A[e]=f}}}}}function Hf(A){return A===void 0&&(A={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nA(function(){for(var e,f=[],n=0;n<arguments.length;n++)f[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,eA([void 0],f,!1)))},{cache:rA(A.number),strategy:tA.variadic}),getDateTimeFormat:nA(function(){for(var e,f=[],n=0;n<arguments.length;n++)f[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,eA([void 0],f,!1)))},{cache:rA(A.dateTime),strategy:tA.variadic}),getPluralRules:nA(function(){for(var e,f=[],n=0;n<arguments.length;n++)f[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,eA([void 0],f,!1)))},{cache:rA(A.pluralRules),strategy:tA.variadic})}}var ie=function(){function A(e,f,n,t){var r=this;if(f===void 0&&(f=A.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var v=r.formatToParts(s);if(v.length===1)return v[0].value;var g=v.reduce(function(C,E){return!C.length||E.type!==L.literal||typeof C[C.length-1]!="string"?C.push(E.value):C[C.length-1]+=E.value,C},[]);return g.length<=1?g[0]||"":g},this.formatToParts=function(s){return K(r.ast,r.locales,r.formatters,r.formats,s,void 0,r.message)},this.resolvedOptions=function(){var s;return{locale:((s=r.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(r.locales)[0]}},this.getAst=function(){return r.ast},this.locales=f,this.resolvedLocale=A.resolveLocale(f),typeof e=="string"){if(this.message=e,!A.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var w=t||{};w.formatters;var P=de(w,["formatters"]);this.ast=A.__parse(e,c(c({},P),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=If(A.formats,n),this.formatters=t&&t.formatters||Hf(this.formatterCache)}return Object.defineProperty(A,"defaultLocale",{get:function(){return A.memoizedDefaultLocale||(A.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),A.memoizedDefaultLocale},enumerable:!1,configurable:!0}),A.memoizedDefaultLocale=null,A.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var f=Intl.NumberFormat.supportedLocalesOf(e);return f.length>0?new Intl.Locale(f[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},A.__parse=gf,A.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"}}},A}();function lf(A,e){if(e==null)return;if(e in A)return A[e];const f=e.split(".");let n=A;for(let t=0;t<f.length;t++)if(typeof n=="object"){if(t>0){const r=f.slice(t,f.length).join(".");if(r in n){n=n[r];break}}n=n[f[t]]}else n=void 0;return n}const M={},Tf=(A,e,f)=>f&&(e in M||(M[e]={}),A in M[e]||(M[e][A]=f),f),we=(A,e)=>{if(e==null)return;if(e in M&&A in M[e])return M[e][A];const f=S(e);for(let n=0;n<f.length;n++){const t=f[n],r=bf(t,A);if(r)return Tf(A,e,r)}};let aA;const Y=q({});function Lf(A){return aA[A]||null}function Pe(A){return A in aA}function bf(A,e){if(!Pe(A))return null;const f=Lf(A);return lf(f,e)}function Xf(A){if(A==null)return;const e=S(A);for(let f=0;f<e.length;f++){const n=e[f];if(Pe(n))return n}}function uA(A,...e){delete M[A],Y.update(f=>(f[A]=je.all([f[A]||{},...e]),f))}O([Y],([A])=>Object.keys(A));Y.subscribe(A=>aA=A);const U={};function Mf(A,e){U[A].delete(e),U[A].size===0&&delete U[A]}function ve(A){return U[A]}function zf(A){return S(A).map(e=>{const f=ve(e);return[e,f?[...f]:[]]}).filter(([,e])=>e.length>0)}function W(A){return A==null?!1:S(A).some(e=>{var f;return(f=ve(e))==null?void 0:f.size})}function yf(A,e){return Promise.all(e.map(n=>(Mf(A,n),n().then(t=>t.default||t)))).then(n=>uA(A,...n))}const R={};function ge(A){if(!W(A))return A in R?R[A]:Promise.resolve();const e=zf(A);return R[A]=Promise.all(e.map(([f,n])=>yf(f,n))).then(()=>{if(W(A))return ge(A);delete R[A]}),R[A]}var zA=Object.getOwnPropertySymbols,jf=Object.prototype.hasOwnProperty,df=Object.prototype.propertyIsEnumerable,Qf=(A,e)=>{var f={};for(var n in A)jf.call(A,n)&&e.indexOf(n)<0&&(f[n]=A[n]);if(A!=null&&zA)for(var n of zA(A))e.indexOf(n)<0&&df.call(A,n)&&(f[n]=A[n]);return f};const Ff={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Jf({locale:A,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${S(A).join('", "')}".${W(z())?`
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { n as G, s as ze, r as ye, a as ne, i as je, S as Qe, b as Fe, f as Q, c as de, d as Je, e as AA, g as y, h as CA, j as X, k as d, l as M, u as eA, m as fA, o as nA, t as F, p as R, q as Oe, v as J, w as me, x as Re, y as MA, z as zA, A as Ge, B as Ne, C as pe, D as DA } from "./CashierConfirmModal-
|
1
|
+
import { n as G, s as ze, r as ye, a as ne, i as je, S as Qe, b as Fe, f as Q, c as de, d as Je, e as AA, g as y, h as CA, j as X, k as d, l as M, u as eA, m as fA, o as nA, t as F, p as R, q as Oe, v as J, w as me, x as Re, y as MA, z as zA, A as Ge, B as Ne, C as pe, D as DA } from "./CashierConfirmModal-BMW4zSn1.js";
|
2
2
|
const m = [];
|
3
3
|
function Ye(A, e) {
|
4
4
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BihPvQBJ.cjs"),b=require("./CashierError-D6oq8-CP.cjs");function y(n,e){b.addMessages(n,e)}function O(n){b.init({fallbackLocale:"en"}),b.$locale.set(n)}const k={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};function q(n){t.append_styles(n,"svelte-v7co4a",".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}.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)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.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}")}const A=n=>({}),L=n=>({}),U=n=>({}),v=n=>({}),P=n=>({}),B=n=>({});function H(n){let e,i,a;return{c(){e=t.element("div"),e.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>',t.attr(e,"class","CashierHeaderLeftButton")},m(l,u){t.insert(l,e,u),i||(a=t.listen(e,"click",n[5]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,a()}}}function Z(n){let e,i=n[1]&&H(n);return{c(){i&&i.c(),e=t.empty()},m(a,l){i&&i.m(a,l),t.insert(a,e,l)},p(a,l){a[1]?i?i.p(a,l):(i=H(a),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(a){a&&t.detach(e),i&&i.d(a)}}}function D(n){let e,i=n[3](n[2])+"",a;return{c(){e=t.element("span"),a=t.text(i),t.attr(e,"class","CashierHeaderTitle")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&12&&i!==(i=l[3](l[2])+"")&&t.set_data(a,i)},d(l){l&&t.detach(e)}}}function F(n){let e,i,a;return{c(){e=t.element("span"),e.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>',t.attr(e,"class","CashierHeaderRightButton")},m(l,u){t.insert(l,e,u),i||(a=t.listen(e,"click",n[4]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,a()}}}function I(n){let e,i,a,l;const u=n[13].leftButton,m=t.create_slot(u,n,n[12],B),r=m||Z(n),w=n[13].title,_=t.create_slot(w,n,n[12],v),c=_||D(n),d=n[13].rightButton,h=t.create_slot(d,n,n[12],L),g=h||F(n);return{c(){e=t.element("div"),r&&r.c(),i=t.space(),c&&c.c(),a=t.space(),g&&g.c(),t.attr(e,"class","CashierHeader")},m(s,f){t.insert(s,e,f),r&&r.m(e,null),t.append(e,i),c&&c.m(e,null),t.append(e,a),g&&g.m(e,null),n[14](e),l=!0},p(s,[f]){m?m.p&&(!l||f&4096)&&t.update_slot_base(m,u,s,s[12],l?t.get_slot_changes(u,s[12],f,P):t.get_all_dirty_from_scope(s[12]),B):r&&r.p&&(!l||f&2)&&r.p(s,l?f:-1),_?_.p&&(!l||f&4096)&&t.update_slot_base(_,w,s,s[12],l?t.get_slot_changes(w,s[12],f,U):t.get_all_dirty_from_scope(s[12]),v):c&&c.p&&(!l||f&12)&&c.p(s,l?f:-1),h&&h.p&&(!l||f&4096)&&t.update_slot_base(h,d,s,s[12],l?t.get_slot_changes(d,s[12],f,A):t.get_all_dirty_from_scope(s[12]),L)},i(s){l||(t.transition_in(r,s),t.transition_in(c,s),t.transition_in(g,s),l=!0)},o(s){t.transition_out(r,s),t.transition_out(c,s),t.transition_out(g,s),l=!1},d(s){s&&t.detach(e),r&&r.d(s),c&&c.d(s),g&&g.d(s),n[14](null)}}}function W(n,e,i){let a;t.component_subscribe(n,b.$format,o=>i(3,a=o));let{$$slots:l={},$$scope:u}=e,{clientstyling:m=""}=e,{clientstylingurl:r=""}=e,{translationurl:w=""}=e,{showbackbutton:_=""}=e,{title:c="header.general"}=e,{lang:d="en"}=e,h,g=!1,s;const f=()=>{let o=w;o&&fetch(o).then(p=>p.json()).then(p=>{Object.keys(p).forEach(C=>{y(C,p[C])})}).catch(p=>{console.log(p)})};Object.keys(k).forEach(o=>{y(o,k[o])});const M=()=>{let o=document.createElement("style");o.innerHTML=m,h.appendChild(o)},E=()=>{let o=new URL(r),p=document.createElement("style");fetch(o.href).then(C=>C.text()).then(C=>{p.innerHTML=C,setTimeout(()=>{h.appendChild(p)},1)})},S=()=>{O(d)},j=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},x=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{i(1,g=!!_&&_!=="false")},z=()=>{i(2,s=c||"header.general")};function N(o){t.binding_callbacks[o?"unshift":"push"](()=>{h=o,i(0,h)})}return n.$$set=o=>{"clientstyling"in o&&i(6,m=o.clientstyling),"clientstylingurl"in o&&i(7,r=o.clientstylingurl),"translationurl"in o&&i(8,w=o.translationurl),"showbackbutton"in o&&i(9,_=o.showbackbutton),"title"in o&&i(10,c=o.title),"lang"in o&&i(11,d=o.lang),"$$scope"in o&&i(12,u=o.$$scope)},n.$$.update=()=>{n.$$.dirty&2048&&d&&S(),n.$$.dirty&3072&&d&&c&&z(),n.$$.dirty&65&&m&&h&&M(),n.$$.dirty&129&&r&&h&&E(),n.$$.dirty&2304&&d&&w&&f(),n.$$.dirty&512&&_&&R()},[h,g,s,a,j,x,m,r,w,_,c,d,u,l,N]}class T extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,I,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},q)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get title(){return this.$$.ctx[10]}set title(e){this.$$set({title:e}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),t.flush()}}t.create_custom_element(T,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{}},["leftButton","title","rightButton"],[],!0);exports.default=T;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as J, b as K, f as C, c as Q, a as V, d as X, e as v, g as k, h as S, j as L, k as b, l as E, u as B, m as H, o as T, t as M, p as x, v as y, w as $, x as tt, y as et, z as nt, C as it, A as U, n as Z } from "./CashierConfirmModal-
|
2
|
-
import { a as lt, i as st, $ as at, b as ot } from "./CashierError-
|
1
|
+
import { S as J, b as K, f as C, c as Q, a as V, d as X, e as v, g as k, h as S, j as L, k as b, l as E, u as B, m as H, o as T, t as M, p as x, v as y, w as $, x as tt, y as et, z as nt, C as it, A as U, n as Z } from "./CashierConfirmModal-BMW4zSn1.js";
|
2
|
+
import { a as lt, i as st, $ as at, b as ot } from "./CashierError-gARTV8-m.js";
|
3
3
|
function j(e, t) {
|
4
4
|
lt(e, t);
|
5
5
|
}
|
package/components/{CashierIframeRedirect-DSYHz0IC.cjs → CashierIframeRedirect-BVX_GPxi.cjs}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BihPvQBJ.cjs"),C=require("./CashierError-D6oq8-CP.cjs");function y(i,e){C.addMessages(i,e)}function S(i){C.init({fallbackLocale:"en"}),C.$locale.set(i)}const L={en:{redirectHeader:"Deposit redirect"},"pt-br":{redirectHeader:"Redirecionar depósito"},"es-mx":{redirectHeader:"Redirigir depósito"},tr:{redirectHeader:"Para yatırma yönlendirmesi"}};if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-BsMg5hLV.cjs")).then(({default:e})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",e.element)})}if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CashierSpinner-CsQIAFM9.cjs")).then(({default:e})=>{!customElements.get("cashier-spinner")&&customElements.define("cashier-spinner",e.element)})}function q(i){t.append_styles(i,"svelte-mxoveh",".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}")}function v(i){let e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","leftButton"),t.attr(e,"class","CashierHeaderLeftButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function k(i){let e,n,s;return{c(){e=t.element("div"),e.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>',t.attr(e,"slot","rightButton"),t.attr(e,"class","CashierHeaderRightButton")},m(f,m){t.insert(f,e,m),n||(s=t.listen(e,"click",i[9]),n=!0)},p:t.noop,d(f){f&&t.detach(e),n=!1,s()}}}function E(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[5]),t.set_custom_element_data(e,"clientstyling",i[4])},m(n,s){t.insert(n,e,s)},p(n,s){s&32&&t.set_custom_element_data(e,"clientstylingurl",n[5]),s&16&&t.set_custom_element_data(e,"clientstyling",n[4])},d(n){n&&t.detach(e)}}}function O(i){let e,n,s,f,m,d,g,_,w,o=!!i[3]&&i[3]!=="false"&&v(i),a=(!i[3]||i[3]==="false")&&k(i),c=i[8]&&E(i);return{c(){e=t.element("div"),n=t.element("cashier-header"),o&&o.c(),s=t.space(),a&&a.c(),f=t.space(),c&&c.c(),m=t.space(),d=t.element("iframe"),t.set_custom_element_data(n,"lang",i[0]),t.set_custom_element_data(n,"translationurl",i[2]),t.set_custom_element_data(n,"title",i[6]),t.set_custom_element_data(n,"showbackbutton",i[3]),t.set_custom_element_data(n,"clientstylingurl",i[5]),t.set_custom_element_data(n,"clientstyling",i[4]),t.src_url_equal(d.src,g=i[1])||t.attr(d,"src",g),t.attr(d,"frameborder","0"),t.attr(e,"class","CashierRedirectIframe")},m(r,u){t.insert(r,e,u),t.append(e,n),o&&o.m(n,null),t.append(n,s),a&&a.m(n,null),t.append(e,f),c&&c.m(e,null),t.append(e,m),t.append(e,d),i[12](e),_||(w=t.listen(d,"load",i[11]),_=!0)},p(r,[u]){r[3]&&r[3]!=="false"?o?o.p(r,u):(o=v(r),o.c(),o.m(n,s)):o&&(o.d(1),o=null),!r[3]||r[3]==="false"?a?a.p(r,u):(a=k(r),a.c(),a.m(n,null)):a&&(a.d(1),a=null),u&1&&t.set_custom_element_data(n,"lang",r[0]),u&4&&t.set_custom_element_data(n,"translationurl",r[2]),u&64&&t.set_custom_element_data(n,"title",r[6]),u&8&&t.set_custom_element_data(n,"showbackbutton",r[3]),u&32&&t.set_custom_element_data(n,"clientstylingurl",r[5]),u&16&&t.set_custom_element_data(n,"clientstyling",r[4]),r[8]?c?c.p(r,u):(c=E(r),c.c(),c.m(e,m)):c&&(c.d(1),c=null),u&2&&!t.src_url_equal(d.src,g=r[1])&&t.attr(d,"src",g)},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o&&o.d(),a&&a.d(),c&&c.d(),i[12](null),_=!1,w()}}}function j(i,e,n){let{lang:s="en"}=e,{iframeurl:f}=e,{translationurl:m=""}=e,{showbackbutton:d=""}=e,{clientstyling:g=""}=e,{clientstylingurl:_=""}=e,{title:w=""}=e,o=!0,a;const c=()=>{let l=m;if(l)return fetch(l).then(h=>h.json()).then(h=>{Object.keys(h).forEach(p=>{y(p,h[p])})}).catch(h=>{console.log(h)})};Object.keys(L).forEach(l=>{y(l,L[l])});const r=()=>{S(s)},u=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},M=()=>{let l=new URL(_),h=document.createElement("style");fetch(l.href).then(p=>p.text()).then(p=>{h.innerHTML=p,setTimeout(()=>{a.appendChild(h)},1)})},B=()=>{window.postMessage({type:"CloseIframe"},window.location.href)},b=l=>{l.target.src&&n(8,o=!1)},R=l=>b(l);function T(l){t.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(7,a)})}return i.$$set=l=>{"lang"in l&&n(0,s=l.lang),"iframeurl"in l&&n(1,f=l.iframeurl),"translationurl"in l&&n(2,m=l.translationurl),"showbackbutton"in l&&n(3,d=l.showbackbutton),"clientstyling"in l&&n(4,g=l.clientstyling),"clientstylingurl"in l&&n(5,_=l.clientstylingurl),"title"in l&&n(6,w=l.title)},i.$$.update=()=>{i.$$.dirty&1&&s&&r(),i.$$.dirty&4&&m&&c(),i.$$.dirty&144&&g&&a&&u(),i.$$.dirty&160&&_&&a&&M()},[s,f,m,d,g,_,w,a,o,B,b,R,T]}class H extends t.SvelteComponent{constructor(e){super(),t.init(this,e,j,O,t.safe_not_equal,{lang:0,iframeurl:1,translationurl:2,showbackbutton:3,clientstyling:4,clientstylingurl:5,title:6},q)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get iframeurl(){return this.$$.ctx[1]}set iframeurl(e){this.$$set({iframeurl:e}),t.flush()}get translationurl(){return this.$$.ctx[2]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[3]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get title(){return this.$$.ctx[6]}set title(e){this.$$set({title:e}),t.flush()}}t.create_custom_element(H,{lang:{},iframeurl:{},translationurl:{},showbackbutton:{},clientstyling:{},clientstylingurl:{},title:{}},[],[],!0);exports.default=H;
|