@everymatrix/cashier-methods-list 1.45.3 → 1.45.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,we.MISSING_INTL_API,a);var U=r.getPluralRules(t,{type:h.pluralType}).select(p-(h.offset||0));O=h.options[U]||h.options.other}if(!O)throw new Ut(h.value,p,Object.keys(h.options),a);o.push.apply(o,Fe(O.value,t,r,n,i,p-(h.offset||0)));continue}}return mi(o)}function gi(e,t){return t?A(A(A({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=A(A({},e[n]),t[n]||{}),r},{})):e}function pi(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=gi(e[n],t[n]),r},A({},e)):e}function nt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function bi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.number),strategy:rt.variadic}),getDateTimeFormat:tt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.dateTime),strategy:rt.variadic}),getPluralRules:tt(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.pluralRules),strategy:rt.variadic})}}var wr=function(){function e(t,r,n,i){var s=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(m,p){return!m.length||p.type!==J.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.value,m},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return Fe(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Ln(a,["formatters"]);this.ast=e.__parse(t,A(A({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=pi(e.formats,n),this.formatters=i&&i.formatters||bi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ii,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function yi(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const fe={},vi=(e,t,r)=>r&&(t in fe||(fe[t]={}),e in fe[t]||(fe[t][e]=r),r),Sr=(e,t)=>{if(t==null)return;if(t in fe&&e in fe[t])return fe[t][e];const r=Ce(t);for(let n=0;n<r.length;n++){const i=r[n],s=xi(i,e);if(s)return vi(e,t,s)}};let xt;const Ne=We({});function Ei(e){return xt[e]||null}function Tr(e){return e in xt}function xi(e,t){if(!Tr(e))return null;const r=Ei(e);return yi(r,t)}function _i(e){if(e==null)return;const t=Ce(e);for(let r=0;r<t.length;r++){const n=t[r];if(Tr(n))return n}}function Mr(e,...t){delete fe[e],Ne.update(r=>(r[e]=Hn.all([r[e]||{},...t]),r))}Me([Ne],([e])=>Object.keys(e));Ne.subscribe(e=>xt=e);const ke={};function wi(e,t){ke[e].delete(t),ke[e].size===0&&delete ke[e]}function Hr(e){return ke[e]}function Si(e){return Ce(e).map(t=>{const r=Hr(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function je(e){return e==null?!1:Ce(e).some(t=>{var r;return(r=Hr(t))==null?void 0:r.size})}function Ti(e,t){return Promise.all(t.map(n=>(wi(e,n),n().then(i=>i.default||i)))).then(n=>Mr(e,...n))}const Le={};function Lr(e){if(!je(e))return e in Le?Le[e]:Promise.resolve();const t=Si(e);return Le[e]=Promise.all(t.map(([r,n])=>Ti(r,n))).then(()=>{if(je(e))return Lr(e);delete Le[e]}),Le[e]}var Gt=Object.getOwnPropertySymbols,Mi=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,Li=(e,t)=>{var r={};for(var n in e)Mi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gt)for(var n of Gt(e))t.indexOf(n)<0&&Hi.call(e,n)&&(r[n]=e[n]);return r};const Oi={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 $i({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Ce(e).join('", "')}".${je(ce())?`
4
4
 
5
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Ai={fallbackLocale:null,loadingDelay:200,formats:Oi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Oe=Ai;function Se(){return Oe}function Bi(e){const t=e,{formats:r}=t,n=Li(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{wr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=$i:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Oe,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Oe.formats.number,r.number),"date"in r&&Object.assign(Oe.formats.date,r.date),"time"in r&&Object.assign(Oe.formats.time,r.time)),ge.set(i)}const it=We(!1);var Pi=Object.defineProperty,Ni=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,kt=(e,t,r)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ri=(e,t)=>{for(var r in t||(t={}))Ii.call(t,r)&&kt(e,r,t[r]);if(Ft)for(var r of Ft(t))Di.call(t,r)&&kt(e,r,t[r]);return e},Ui=(e,t)=>Ni(e,Ci(t));let pt;const Ve=We(null);function jt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ce(e,t=Se().fallbackLocale){const r=jt(e);return t?[...new Set([...r,...jt(t)])]:r}function ce(){return pt!=null?pt:void 0}Ve.subscribe(e=>{pt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Gi=e=>{if(e&&_i(e)&&je(e)){const{loadingDelay:t}=Se();let r;return typeof window!="undefined"&&ce()!=null&&t?r=window.setTimeout(()=>it.set(!0),t):it.set(!0),Lr(e).then(()=>{Ve.set(e)}).finally(()=>{clearTimeout(r),it.set(!1)})}return Ve.set(e)},ge=Ui(Ri({},Ve),{set:Gi}),Ze=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Fi=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Vt=(e,t,r)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_t=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Vt(e,r,t[r]);if(Xe)for(var r of Xe(t))$r.call(t,r)&&Vt(e,r,t[r]);return e},He=(e,t)=>{var r={};for(var n in e)Or.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xe)for(var n of Xe(e))t.indexOf(n)<0&&$r.call(e,n)&&(r[n]=e[n]);return r};const Pe=(e,t)=>{const{formats:r}=Se();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ki=Ze(e=>{var t=e,{locale:r,format:n}=t,i=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Pe("number",n)),new Intl.NumberFormat(r,i)}),ji=Ze(e=>{var t=e,{locale:r,format:n}=t,i=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Pe("date",n):Object.keys(i).length===0&&(i=Pe("date","short")),new Intl.DateTimeFormat(r,i)}),Vi=Ze(e=>{var t=e,{locale:r,format:n}=t,i=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Pe("time",n):Object.keys(i).length===0&&(i=Pe("time","short")),new Intl.DateTimeFormat(r,i)}),Xi=(e={})=>{var t=e,{locale:r=ce()}=t,n=He(t,["locale"]);return ki(_t({locale:r},n))},Wi=(e={})=>{var t=e,{locale:r=ce()}=t,n=He(t,["locale"]);return ji(_t({locale:r},n))},zi=(e={})=>{var t=e,{locale:r=ce()}=t,n=He(t,["locale"]);return Vi(_t({locale:r},n))},Yi=Ze((e,t=ce())=>new wr(e,t,Se().formats,{ignoreTag:Se().ignoreTag})),Zi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=ce(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Sr(e,l);if(!h)h=(s=(i=(n=(r=Se()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let m=h;try{m=Yi(h,l).format(o)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return m},Ji=(e,t)=>zi(t).format(e),Qi=(e,t)=>Wi(t).format(e),qi=(e,t)=>Xi(t).format(e),Ki=(e,t=ce())=>Sr(e,t),es=Me([ge,Ne],()=>Zi);Me([ge],()=>Ji);Me([ge],()=>Qi);Me([ge],()=>qi);Me([ge,Ne],()=>Ki);function Xt(e,t){Mr(e,t)}function ts(e){Bi({fallbackLocale:"en"}),ge.set(e)}const Wt={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"}};var Ar={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(sr,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",h="week",m="month",p="quarter",x="year",w="date",b="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var g=["th","st","nd","rd"],c=v%100;return"["+v+(g[(c-20)%10]||g[c]||g[0])+"]"}},O=function(v,g,c){var y=String(v);return!y||y.length>=g?v:""+Array(g+1-y.length).join(c)+v},U={s:O,z:function(v){var g=-v.utcOffset(),c=Math.abs(g),y=Math.floor(c/60),d=c%60;return(g<=0?"+":"-")+O(y,2,"0")+":"+O(d,2,"0")},m:function v(g,c){if(g.date()<c.date())return-v(c,g);var y=12*(c.year()-g.year())+(c.month()-g.month()),d=g.clone().add(y,m),_=c-d<0,E=g.clone().add(y+(_?-1:1),m);return+(-(y+(c-d)/(_?d-E:E-d))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:m,y:x,w:h,d:u,D:w,h:l,m:o,s:a,ms:s,Q:p}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",j={};j[N]=I;var F="$isDayjsObject",K=function(v){return v instanceof ie||!(!v||!v[F])},X=function v(g,c,y){var d;if(!g)return N;if(typeof g=="string"){var _=g.toLowerCase();j[_]&&(d=_),c&&(j[_]=c,d=_);var E=g.split("-");if(!d&&E.length>1)return v(E[0])}else{var S=g.name;j[S]=g,d=S}return!y&&d&&(N=d),d||!y&&N},C=function(v,g){if(K(v))return v.clone();var c=typeof g=="object"?g:{};return c.date=v,c.args=arguments,new ie(c)},T=U;T.l=X,T.i=K,T.w=function(v,g){return C(v,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var ie=function(){function v(c){this.$L=X(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[F]=!0}var g=v.prototype;return g.parse=function(c){this.$d=function(y){var d=y.date,_=y.utc;if(d===null)return new Date(NaN);if(T.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var E=d.match(M);if(E){var S=E[2]-1||0,G=(E[7]||"0").substring(0,3);return _?new Date(Date.UTC(E[1],S,E[3]||1,E[4]||0,E[5]||0,E[6]||0,G)):new Date(E[1],S,E[3]||1,E[4]||0,E[5]||0,E[6]||0,G)}}return new Date(d)}(c),this.init()},g.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return this.$d.toString()!==b},g.isSame=function(c,y){var d=C(c);return this.startOf(y)<=d&&d<=this.endOf(y)},g.isAfter=function(c,y){return C(c)<this.startOf(y)},g.isBefore=function(c,y){return this.endOf(y)<C(c)},g.$g=function(c,y,d){return T.u(c)?this[y]:this.set(d,c)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(c,y){var d=this,_=!!T.u(y)||y,E=T.p(c),S=function(ae,f){var $=T.w(d.$u?Date.UTC(d.$y,f,ae):new Date(d.$y,f,ae),d);return _?$:$.endOf(u)},G=function(ae,f){return T.w(d.toDate()[ae].apply(d.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(f)),d)},k=this.$W,V=this.$M,Q=this.$D,he="set"+(this.$u?"UTC":"");switch(E){case x:return _?S(1,0):S(31,11);case m:return _?S(1,V):S(0,V+1);case h:var oe=this.$locale().weekStart||0,de=(k<oe?k+7:k)-oe;return S(_?Q-de:Q+(6-de),V);case u:case w:return G(he+"Hours",0);case l:return G(he+"Minutes",1);case o:return G(he+"Seconds",2);case a:return G(he+"Milliseconds",3);default:return this.clone()}},g.endOf=function(c){return this.startOf(c,!1)},g.$set=function(c,y){var d,_=T.p(c),E="set"+(this.$u?"UTC":""),S=(d={},d[u]=E+"Date",d[w]=E+"Date",d[m]=E+"Month",d[x]=E+"FullYear",d[l]=E+"Hours",d[o]=E+"Minutes",d[a]=E+"Seconds",d[s]=E+"Milliseconds",d)[_],G=_===u?this.$D+(y-this.$W):y;if(_===m||_===x){var k=this.clone().set(w,1);k.$d[S](G),k.init(),this.$d=k.set(w,Math.min(this.$D,k.daysInMonth())).$d}else S&&this.$d[S](G);return this.init(),this},g.set=function(c,y){return this.clone().$set(c,y)},g.get=function(c){return this[T.p(c)]()},g.add=function(c,y){var d,_=this;c=Number(c);var E=T.p(y),S=function(V){var Q=C(_);return T.w(Q.date(Q.date()+Math.round(V*c)),_)};if(E===m)return this.set(m,this.$M+c);if(E===x)return this.set(x,this.$y+c);if(E===u)return S(1);if(E===h)return S(7);var G=(d={},d[o]=n,d[l]=i,d[a]=r,d)[E]||1,k=this.$d.getTime()+c*G;return T.w(k,this)},g.subtract=function(c,y){return this.add(-1*c,y)},g.format=function(c){var y=this,d=this.$locale();if(!this.isValid())return d.invalidDate||b;var _=c||"YYYY-MM-DDTHH:mm:ssZ",E=T.z(this),S=this.$H,G=this.$m,k=this.$M,V=d.weekdays,Q=d.months,he=d.meridiem,oe=function(f,$,W,D){return f&&(f[$]||f(y,_))||W[$].slice(0,D)},de=function(f){return T.s(S%12||12,f,"0")},ae=he||function(f,$,W){var D=f<12?"AM":"PM";return W?D.toLowerCase():D};return _.replace(P,function(f,$){return $||function(W){switch(W){case"YY":return String(y.$y).slice(-2);case"YYYY":return T.s(y.$y,4,"0");case"M":return k+1;case"MM":return T.s(k+1,2,"0");case"MMM":return oe(d.monthsShort,k,Q,3);case"MMMM":return oe(Q,k);case"D":return y.$D;case"DD":return T.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return oe(d.weekdaysMin,y.$W,V,2);case"ddd":return oe(d.weekdaysShort,y.$W,V,3);case"dddd":return V[y.$W];case"H":return String(S);case"HH":return T.s(S,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return ae(S,G,!0);case"A":return ae(S,G,!1);case"m":return String(G);case"mm":return T.s(G,2,"0");case"s":return String(y.$s);case"ss":return T.s(y.$s,2,"0");case"SSS":return T.s(y.$ms,3,"0");case"Z":return E}return null}(f)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(c,y,d){var _,E=this,S=T.p(y),G=C(c),k=(G.utcOffset()-this.utcOffset())*n,V=this-G,Q=function(){return T.m(E,G)};switch(S){case x:_=Q()/12;break;case m:_=Q();break;case p:_=Q()/3;break;case h:_=(V-k)/6048e5;break;case u:_=(V-k)/864e5;break;case l:_=V/i;break;case o:_=V/n;break;case a:_=V/r;break;default:_=V}return d?_:T.a(_)},g.daysInMonth=function(){return this.endOf(m).$D},g.$locale=function(){return j[this.$L]},g.locale=function(c,y){if(!c)return this.$L;var d=this.clone(),_=X(c,y,!0);return _&&(d.$L=_),d},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),me=ie.prototype;return C.prototype=me,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",m],["$y",x],["$D",w]].forEach(function(v){me[v[1]]=function(g){return this.$g(g,v[0],v[1])}}),C.extend=function(v,g){return v.$i||(v(g,ie,C),v.$i=!0),C},C.locale=X,C.isDayjs=K,C.unix=function(v){return C(1e3*v)},C.en=j[N],C.Ls=j,C.p={},C})})(Ar);var rs=Ar.exports;const zt=yt(rs);var Br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(sr,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,a,o){var l=a.prototype;o.utc=function(b){var M={date:b,utc:!0,args:arguments};return new a(M)},l.utc=function(b){var M=o(this.toDate(),{locale:this.$L,utc:!0});return b?M.add(this.utcOffset(),r):M},l.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var h=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else h.call(this)};var m=l.utcOffset;l.utcOffset=function(b,M){var P=this.$utils().u;if(P(b))return this.$u?0:P(this.$offset)?m.call(this):this.$offset;if(typeof b=="string"&&(b=function(N){N===void 0&&(N="");var j=N.match(n);if(!j)return null;var F=(""+j[0]).match(i)||["-",0,0],K=F[0],X=60*+F[1]+ +F[2];return X===0?0:K==="+"?X:-X}(b),b===null))return this;var I=Math.abs(b)<=16?60*b:b,O=this;if(M)return O.$offset=I,O.$u=b===0,O;if(b!==0){var U=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(O=this.local().add(I+U,r)).$offset=I,O.$x.$localOffset=U}else O=this.utc();return O};var p=l.format;l.format=function(b){var M=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,M)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(b,M,P){if(b&&this.$u===b.$u)return w.call(this,b,M,P);var I=this.local(),O=o(b).local();return w.call(I,O,M,P)}}})})(Br);var ns=Br.exports;const is=yt(ns);function ss(e){kr(e,"svelte-a5920l","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);min-width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function Yt(e,t,r){const n=e.slice();return n[46]=t[r],n[48]=r,n}function Zt(e){let t;return{c(){t=Y("cashier-spinner"),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3])},m(r,n){le(r,t,n)},p(r,n){n[0]&16&&Z(t,"clientstylingurl",r[4]),n[0]&8&&Z(t,"clientstyling",r[3])},d(r){r&&se(t)}}}function Jt(e){let t,r,n,i=$t(e[8]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Qt(Yt(e,i,o));let a=e[7]&&qt(e);return{c(){t=Y("div"),r=Y("div");for(let o=0;o<s.length;o+=1)s[o].c();n=te(),a&&a.c(),z(r,"class","CashierMethodList"),z(t,"class","CashierMethodListWidget")},m(o,l){le(o,t,l),B(t,r);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(r,null);B(t,n),a&&a.m(t,null),e[26](t)},p(o,l){if(l[0]&57664){i=$t(o[8]);let u;for(u=0;u<i.length;u+=1){const h=Yt(o,i,u);s[u]?s[u].p(h,l):(s[u]=Qt(h),s[u].c(),s[u].m(r,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=i.length}o[7]?a?a.p(o,l):(a=qt(o),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(o){o&&se(t),Xr(s,o),a&&a.d(),e[26](null)}}}function Qt(e){let t,r,n,i,s,a,o,l,u=(e[46].Label||e[46].Name)+"",h,m,p,x,w=e[13]("generalMin")+"",b,M,P=e[14].format(e[46].DisplayCurrency.MinAmountLimit)+"",I,O,U=e[46].DisplayCurrency.Name+"",N,j,F,K=e[13]("generalMax")+"",X,C,T=e[14].format(e[46].DisplayCurrency.MaxAmountLimit)+"",ie,me,v=e[46].DisplayCurrency.Name+"",g,c,y,d;function _(){return e[24](e[46])}return{c(){t=Y("div"),r=Y("div"),n=Y("img"),a=te(),o=Y("div"),l=Y("span"),h=re(u),m=te(),p=Y("div"),x=Y("span"),b=re(w),M=te(),I=re(P),O=te(),N=re(U),j=te(),F=Y("span"),X=re(K),C=te(),ie=re(T),me=te(),g=re(v),c=te(),Ht(n.src,i=e[46].LogoUrl)||z(n,"src",i),z(n,"alt",s=e[46].Label),z(r,"class","MethodLogo"),z(o,"class","MethodTitle"),z(x,"class","Limits"),z(F,"class","Limits"),z(p,"class","MethodLimits"),z(t,"class","SelectorWrapper"),Lt(t,"checked",e[6]===e[46].Name)},m(E,S){le(E,t,S),B(t,r),B(r,n),B(t,a),B(t,o),B(o,l),B(l,h),B(t,m),B(t,p),B(p,x),B(x,b),B(x,M),B(x,I),B(x,O),B(x,N),B(p,j),B(p,F),B(F,X),B(F,C),B(F,ie),B(F,me),B(F,g),B(t,c),y||(d=[st(t,"click",_),st(t,"keyup",as)],y=!0)},p(E,S){e=E,S[0]&256&&!Ht(n.src,i=e[46].LogoUrl)&&z(n,"src",i),S[0]&256&&s!==(s=e[46].Label)&&z(n,"alt",s),S[0]&256&&u!==(u=(e[46].Label||e[46].Name)+"")&&ue(h,u),S[0]&8192&&w!==(w=e[13]("generalMin")+"")&&ue(b,w),S[0]&256&&P!==(P=e[14].format(e[46].DisplayCurrency.MinAmountLimit)+"")&&ue(I,P),S[0]&256&&U!==(U=e[46].DisplayCurrency.Name+"")&&ue(N,U),S[0]&8192&&K!==(K=e[13]("generalMax")+"")&&ue(X,K),S[0]&256&&T!==(T=e[14].format(e[46].DisplayCurrency.MaxAmountLimit)+"")&&ue(ie,T),S[0]&256&&v!==(v=e[46].DisplayCurrency.Name+"")&&ue(g,v),S[0]&320&&Lt(t,"checked",e[6]===e[46].Name)},d(E){E&&se(t),y=!1,Te(d)}}}function qt(e){let t,r,n,i;return{c(){t=Y("div"),r=re(e[7]),z(t,"class","ShowAllButton")},m(s,a){le(s,t,a),B(t,r),n||(i=st(t,"click",e[25]),n=!0)},p(s,a){a[0]&128&&ue(r,s[7])},d(s){s&&se(t),n=!1,i()}}}function Kt(e){let t,r,n;return{c(){t=Y("cashier-error"),r=Y("span"),n=re(e[10]),z(r,"slot","text"),Z(t,"lang",e[0]),Z(t,"assetsurl",e[1]),Z(t,"translationurl",e[2]),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3]),Z(t,"hidebuttons","true")},m(i,s){le(i,t,s),B(t,r),B(r,n)},p(i,s){s[0]&1024&&ue(n,i[10]),s[0]&1&&Z(t,"lang",i[0]),s[0]&2&&Z(t,"assetsurl",i[1]),s[0]&4&&Z(t,"translationurl",i[2]),s[0]&16&&Z(t,"clientstylingurl",i[4]),s[0]&8&&Z(t,"clientstyling",i[3])},d(i){i&&se(t)}}}function os(e){let t,r,n,i=e[12]&&Zt(e),s=(e[9]||e[11])&&Jt(e),a=e[10]&&Kt(e);return{c(){i&&i.c(),t=te(),s&&s.c(),r=te(),a&&a.c(),n=Wr()},m(o,l){i&&i.m(o,l),le(o,t,l),s&&s.m(o,l),le(o,r,l),a&&a.m(o,l),le(o,n,l)},p(o,l){o[12]?i?i.p(o,l):(i=Zt(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),o[9]||o[11]?s?s.p(o,l):(s=Jt(o),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),o[10]?a?a.p(o,l):(a=Kt(o),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},i:ne,o:ne,d(o){o&&(se(t),se(r),se(n)),i&&i.d(o),s&&s.d(o),a&&a.d(o)}}}const as=()=>{};function us(e,t,r){let n;Fr(e,es,f=>r(13,n=f)),zt.extend(is);let{lang:i="en"}=t,{local:s="en-US"}=t,{endpoint:a}=t,{session:o}=t,{customerid:l}=t,{assetsurl:u}=t,{currency:h}=t,{numberofmethodsshown:m}=t,{translationurl:p=""}=t,{clientstyling:x=""}=t,{clientstylingurl:w=""}=t,{ismobileview:b}=t,M=[],P,I,O="",U=[],N=!0,j=new Intl.NumberFormat(s,{minimumFractionDigits:2}),F="",K,X=!0,C=!1;var T;(function(f){f.PlayerSessionIsNotValid="PlayerSessionIsNotValid",f.Success="Success",f.JwtTokenError="JwtTokenError"})(T||(T={})),Qr();const ie=()=>{let f=p;if(f)return fetch(f).then($=>$.json()).then($=>{Object.keys($).forEach(W=>{Xt(W,$[W])})}).catch($=>{console.log($)})};Object.keys(Wt).forEach(f=>{Xt(f,Wt[f])});const me=()=>{ts(i)},v=()=>{r(12,C=!0);const f=new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`),$=new Headers;$.append("accept","application/json"),$.append("Content-Type","application/json"),$.append("X-Client-Request-Timestamp",zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const W={method:"POST",headers:$,body:JSON.stringify({XPaymentSessionToken:o,Currency:h})};fetch(f,W).then(D=>D.json()).then(D=>{var pe;if(D.error){r(10,F=D.error);return}if(D.ResponseCode!==T.Success){K=D.ResponseCode,d();return}M=(pe=D.PaymentMethods)!=null&&pe.Ordering?g(D):c(D),r(7,O=m&&+m>0&&M.length>+m?n("showAll"):""),r(8,U=O?M.slice(0,+m):M),window.postMessage({type:"StartSessionCountdown",paymentMethodName:M[0].Name,xPaymentSessionToken:D.XPaymentSessionToken},window.location.href)}).finally(()=>r(12,C=!1))},g=f=>{const $=[];return f.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(W=>{const D=f.PaymentMethods.PaymentMethods.find(pe=>pe.Name===W);if(D){const pe=(D==null?void 0:D.Logos.find(Je=>Je.LogoType==="Desktop"))||{},Nr=(D==null?void 0:D.Logos.find(Je=>Je.LogoType==="Mobile"))||{},wt=X?pe:Nr;$.push(De(Ie({},D),{LogoUrl:wt.LogoUrl?`https:${wt.LogoUrl}`:""}))}}),$},c=f=>f.PaymentMethods.PaymentMethods.map($=>De(Ie({},$),{LogoUrl:$.Logos&&$.Logos.length&&$.Logos[0].LogoUrl?`https:${$.Logos[0].LogoUrl}`:""})),y=f=>{r(6,I=f.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:f,bubbles:!0,cancelable:!0,composed:!0}))},d=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:K},window.location.href)},_=()=>{r(11,X=b==="false")},E=()=>{U==M?G():S()},S=()=>{r(8,U=M),r(7,O=n("showLess"))},G=()=>{r(8,U=M.slice(0,+m)),I&&!U.find(f=>f.Name===I)&&U.splice(0,0,M.find(f=>f.Name===I)),r(7,O=n("showAll"))},k=()=>{r(9,N=!0)},V=f=>{r(9,N=!f.detail.hideMethodsList)},Q=()=>{let f=document.createElement("style");f.innerHTML=x,P.appendChild(f)},he=()=>{let f=new URL(w),$=document.createElement("style");fetch(f.href).then(W=>W.text()).then(W=>{$.innerHTML=W,setTimeout(()=>{P.appendChild($)},1),setTimeout(()=>{},500)})};Jr(()=>(window.addEventListener("backToMethodList",k,!1),window.addEventListener("hideMethodsList",V,!1),()=>{window.removeEventListener("backToMethodList",k),window.removeEventListener("paymentMethodLoaded",V)}));const oe=f=>y(f),de=()=>E();function ae(f){ot[f?"unshift":"push"](()=>{P=f,r(5,P)})}return e.$$set=f=>{"lang"in f&&r(0,i=f.lang),"local"in f&&r(17,s=f.local),"endpoint"in f&&r(18,a=f.endpoint),"session"in f&&r(19,o=f.session),"customerid"in f&&r(20,l=f.customerid),"assetsurl"in f&&r(1,u=f.assetsurl),"currency"in f&&r(21,h=f.currency),"numberofmethodsshown"in f&&r(22,m=f.numberofmethodsshown),"translationurl"in f&&r(2,p=f.translationurl),"clientstyling"in f&&r(3,x=f.clientstyling),"clientstylingurl"in f&&r(4,w=f.clientstylingurl),"ismobileview"in f&&r(23,b=f.ismobileview)},e.$$.update=()=>{e.$$.dirty[0]&1835008&&a&&o&&l&&v(),e.$$.dirty[0]&1&&i&&me(),e.$$.dirty[0]&40&&x&&P&&Q(),e.$$.dirty[0]&48&&w&&P&&he(),e.$$.dirty[0]&8388608&&b&&_(),e.$$.dirty[0]&5&&i&&p&&ie()},[i,u,p,x,w,P,I,O,U,N,F,X,C,n,j,y,E,s,a,o,l,h,m,b,oe,de,ae]}class Pr extends hn{constructor(t){super(),un(this,t,us,os,tr,{lang:0,local:17,endpoint:18,session:19,customerid:20,assetsurl:1,currency:21,numberofmethodsshown:22,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:23},ss,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),q()}get local(){return this.$$.ctx[17]}set local(t){this.$$set({local:t}),q()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),q()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),q()}get customerid(){return this.$$.ctx[20]}set customerid(t){this.$$set({customerid:t}),q()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),q()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),q()}get numberofmethodsshown(){return this.$$.ctx[22]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),q()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),q()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),q()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),q()}get ismobileview(){return this.$$.ctx[23]}set ismobileview(t){this.$$set({ismobileview:t}),q()}}ln(Pr,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=Pr;
5
+ Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Ai={fallbackLocale:null,loadingDelay:200,formats:Oi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Oe=Ai;function Se(){return Oe}function Bi(e){const t=e,{formats:r}=t,n=Li(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{wr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=$i:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Oe,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Oe.formats.number,r.number),"date"in r&&Object.assign(Oe.formats.date,r.date),"time"in r&&Object.assign(Oe.formats.time,r.time)),ge.set(i)}const it=We(!1);var Pi=Object.defineProperty,Ni=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,kt=(e,t,r)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ri=(e,t)=>{for(var r in t||(t={}))Ii.call(t,r)&&kt(e,r,t[r]);if(Ft)for(var r of Ft(t))Di.call(t,r)&&kt(e,r,t[r]);return e},Ui=(e,t)=>Ni(e,Ci(t));let pt;const Ve=We(null);function jt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ce(e,t=Se().fallbackLocale){const r=jt(e);return t?[...new Set([...r,...jt(t)])]:r}function ce(){return pt!=null?pt:void 0}Ve.subscribe(e=>{pt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Gi=e=>{if(e&&_i(e)&&je(e)){const{loadingDelay:t}=Se();let r;return typeof window!="undefined"&&ce()!=null&&t?r=window.setTimeout(()=>it.set(!0),t):it.set(!0),Lr(e).then(()=>{Ve.set(e)}).finally(()=>{clearTimeout(r),it.set(!1)})}return Ve.set(e)},ge=Ui(Ri({},Ve),{set:Gi}),Ze=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Fi=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Vt=(e,t,r)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_t=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Vt(e,r,t[r]);if(Xe)for(var r of Xe(t))$r.call(t,r)&&Vt(e,r,t[r]);return e},He=(e,t)=>{var r={};for(var n in e)Or.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xe)for(var n of Xe(e))t.indexOf(n)<0&&$r.call(e,n)&&(r[n]=e[n]);return r};const Pe=(e,t)=>{const{formats:r}=Se();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ki=Ze(e=>{var t=e,{locale:r,format:n}=t,i=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Pe("number",n)),new Intl.NumberFormat(r,i)}),ji=Ze(e=>{var t=e,{locale:r,format:n}=t,i=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Pe("date",n):Object.keys(i).length===0&&(i=Pe("date","short")),new Intl.DateTimeFormat(r,i)}),Vi=Ze(e=>{var t=e,{locale:r,format:n}=t,i=He(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Pe("time",n):Object.keys(i).length===0&&(i=Pe("time","short")),new Intl.DateTimeFormat(r,i)}),Xi=(e={})=>{var t=e,{locale:r=ce()}=t,n=He(t,["locale"]);return ki(_t({locale:r},n))},Wi=(e={})=>{var t=e,{locale:r=ce()}=t,n=He(t,["locale"]);return ji(_t({locale:r},n))},zi=(e={})=>{var t=e,{locale:r=ce()}=t,n=He(t,["locale"]);return Vi(_t({locale:r},n))},Yi=Ze((e,t=ce())=>new wr(e,t,Se().formats,{ignoreTag:Se().ignoreTag})),Zi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=ce(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Sr(e,l);if(!h)h=(s=(i=(n=(r=Se()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let m=h;try{m=Yi(h,l).format(o)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return m},Ji=(e,t)=>zi(t).format(e),Qi=(e,t)=>Wi(t).format(e),qi=(e,t)=>Xi(t).format(e),Ki=(e,t=ce())=>Sr(e,t),es=Me([ge,Ne],()=>Zi);Me([ge],()=>Ji);Me([ge],()=>Qi);Me([ge],()=>qi);Me([ge,Ne],()=>Ki);function Xt(e,t){Mr(e,t)}function ts(e){Bi({fallbackLocale:"en"}),ge.set(e)}const Wt={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Prikaži sve",showLess:"Prikaži manje"},tr:{generalMin:"Min",generalMax:"Maks",showAll:"HEPSİNİ GÖSTER",showLess:"DAHA AZ GÖSTER"}};var Ar={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(sr,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",h="week",m="month",p="quarter",x="year",w="date",b="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var g=["th","st","nd","rd"],c=v%100;return"["+v+(g[(c-20)%10]||g[c]||g[0])+"]"}},O=function(v,g,c){var y=String(v);return!y||y.length>=g?v:""+Array(g+1-y.length).join(c)+v},U={s:O,z:function(v){var g=-v.utcOffset(),c=Math.abs(g),y=Math.floor(c/60),d=c%60;return(g<=0?"+":"-")+O(y,2,"0")+":"+O(d,2,"0")},m:function v(g,c){if(g.date()<c.date())return-v(c,g);var y=12*(c.year()-g.year())+(c.month()-g.month()),d=g.clone().add(y,m),_=c-d<0,E=g.clone().add(y+(_?-1:1),m);return+(-(y+(c-d)/(_?d-E:E-d))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:m,y:x,w:h,d:u,D:w,h:l,m:o,s:a,ms:s,Q:p}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",j={};j[N]=I;var F="$isDayjsObject",K=function(v){return v instanceof ie||!(!v||!v[F])},X=function v(g,c,y){var d;if(!g)return N;if(typeof g=="string"){var _=g.toLowerCase();j[_]&&(d=_),c&&(j[_]=c,d=_);var E=g.split("-");if(!d&&E.length>1)return v(E[0])}else{var S=g.name;j[S]=g,d=S}return!y&&d&&(N=d),d||!y&&N},C=function(v,g){if(K(v))return v.clone();var c=typeof g=="object"?g:{};return c.date=v,c.args=arguments,new ie(c)},T=U;T.l=X,T.i=K,T.w=function(v,g){return C(v,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var ie=function(){function v(c){this.$L=X(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[F]=!0}var g=v.prototype;return g.parse=function(c){this.$d=function(y){var d=y.date,_=y.utc;if(d===null)return new Date(NaN);if(T.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var E=d.match(M);if(E){var S=E[2]-1||0,G=(E[7]||"0").substring(0,3);return _?new Date(Date.UTC(E[1],S,E[3]||1,E[4]||0,E[5]||0,E[6]||0,G)):new Date(E[1],S,E[3]||1,E[4]||0,E[5]||0,E[6]||0,G)}}return new Date(d)}(c),this.init()},g.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return this.$d.toString()!==b},g.isSame=function(c,y){var d=C(c);return this.startOf(y)<=d&&d<=this.endOf(y)},g.isAfter=function(c,y){return C(c)<this.startOf(y)},g.isBefore=function(c,y){return this.endOf(y)<C(c)},g.$g=function(c,y,d){return T.u(c)?this[y]:this.set(d,c)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(c,y){var d=this,_=!!T.u(y)||y,E=T.p(c),S=function(ae,f){var $=T.w(d.$u?Date.UTC(d.$y,f,ae):new Date(d.$y,f,ae),d);return _?$:$.endOf(u)},G=function(ae,f){return T.w(d.toDate()[ae].apply(d.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(f)),d)},k=this.$W,V=this.$M,Q=this.$D,he="set"+(this.$u?"UTC":"");switch(E){case x:return _?S(1,0):S(31,11);case m:return _?S(1,V):S(0,V+1);case h:var oe=this.$locale().weekStart||0,de=(k<oe?k+7:k)-oe;return S(_?Q-de:Q+(6-de),V);case u:case w:return G(he+"Hours",0);case l:return G(he+"Minutes",1);case o:return G(he+"Seconds",2);case a:return G(he+"Milliseconds",3);default:return this.clone()}},g.endOf=function(c){return this.startOf(c,!1)},g.$set=function(c,y){var d,_=T.p(c),E="set"+(this.$u?"UTC":""),S=(d={},d[u]=E+"Date",d[w]=E+"Date",d[m]=E+"Month",d[x]=E+"FullYear",d[l]=E+"Hours",d[o]=E+"Minutes",d[a]=E+"Seconds",d[s]=E+"Milliseconds",d)[_],G=_===u?this.$D+(y-this.$W):y;if(_===m||_===x){var k=this.clone().set(w,1);k.$d[S](G),k.init(),this.$d=k.set(w,Math.min(this.$D,k.daysInMonth())).$d}else S&&this.$d[S](G);return this.init(),this},g.set=function(c,y){return this.clone().$set(c,y)},g.get=function(c){return this[T.p(c)]()},g.add=function(c,y){var d,_=this;c=Number(c);var E=T.p(y),S=function(V){var Q=C(_);return T.w(Q.date(Q.date()+Math.round(V*c)),_)};if(E===m)return this.set(m,this.$M+c);if(E===x)return this.set(x,this.$y+c);if(E===u)return S(1);if(E===h)return S(7);var G=(d={},d[o]=n,d[l]=i,d[a]=r,d)[E]||1,k=this.$d.getTime()+c*G;return T.w(k,this)},g.subtract=function(c,y){return this.add(-1*c,y)},g.format=function(c){var y=this,d=this.$locale();if(!this.isValid())return d.invalidDate||b;var _=c||"YYYY-MM-DDTHH:mm:ssZ",E=T.z(this),S=this.$H,G=this.$m,k=this.$M,V=d.weekdays,Q=d.months,he=d.meridiem,oe=function(f,$,W,D){return f&&(f[$]||f(y,_))||W[$].slice(0,D)},de=function(f){return T.s(S%12||12,f,"0")},ae=he||function(f,$,W){var D=f<12?"AM":"PM";return W?D.toLowerCase():D};return _.replace(P,function(f,$){return $||function(W){switch(W){case"YY":return String(y.$y).slice(-2);case"YYYY":return T.s(y.$y,4,"0");case"M":return k+1;case"MM":return T.s(k+1,2,"0");case"MMM":return oe(d.monthsShort,k,Q,3);case"MMMM":return oe(Q,k);case"D":return y.$D;case"DD":return T.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return oe(d.weekdaysMin,y.$W,V,2);case"ddd":return oe(d.weekdaysShort,y.$W,V,3);case"dddd":return V[y.$W];case"H":return String(S);case"HH":return T.s(S,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return ae(S,G,!0);case"A":return ae(S,G,!1);case"m":return String(G);case"mm":return T.s(G,2,"0");case"s":return String(y.$s);case"ss":return T.s(y.$s,2,"0");case"SSS":return T.s(y.$ms,3,"0");case"Z":return E}return null}(f)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(c,y,d){var _,E=this,S=T.p(y),G=C(c),k=(G.utcOffset()-this.utcOffset())*n,V=this-G,Q=function(){return T.m(E,G)};switch(S){case x:_=Q()/12;break;case m:_=Q();break;case p:_=Q()/3;break;case h:_=(V-k)/6048e5;break;case u:_=(V-k)/864e5;break;case l:_=V/i;break;case o:_=V/n;break;case a:_=V/r;break;default:_=V}return d?_:T.a(_)},g.daysInMonth=function(){return this.endOf(m).$D},g.$locale=function(){return j[this.$L]},g.locale=function(c,y){if(!c)return this.$L;var d=this.clone(),_=X(c,y,!0);return _&&(d.$L=_),d},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),me=ie.prototype;return C.prototype=me,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",m],["$y",x],["$D",w]].forEach(function(v){me[v[1]]=function(g){return this.$g(g,v[0],v[1])}}),C.extend=function(v,g){return v.$i||(v(g,ie,C),v.$i=!0),C},C.locale=X,C.isDayjs=K,C.unix=function(v){return C(1e3*v)},C.en=j[N],C.Ls=j,C.p={},C})})(Ar);var rs=Ar.exports;const zt=yt(rs);var Br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(sr,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,a,o){var l=a.prototype;o.utc=function(b){var M={date:b,utc:!0,args:arguments};return new a(M)},l.utc=function(b){var M=o(this.toDate(),{locale:this.$L,utc:!0});return b?M.add(this.utcOffset(),r):M},l.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var h=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else h.call(this)};var m=l.utcOffset;l.utcOffset=function(b,M){var P=this.$utils().u;if(P(b))return this.$u?0:P(this.$offset)?m.call(this):this.$offset;if(typeof b=="string"&&(b=function(N){N===void 0&&(N="");var j=N.match(n);if(!j)return null;var F=(""+j[0]).match(i)||["-",0,0],K=F[0],X=60*+F[1]+ +F[2];return X===0?0:K==="+"?X:-X}(b),b===null))return this;var I=Math.abs(b)<=16?60*b:b,O=this;if(M)return O.$offset=I,O.$u=b===0,O;if(b!==0){var U=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(O=this.local().add(I+U,r)).$offset=I,O.$x.$localOffset=U}else O=this.utc();return O};var p=l.format;l.format=function(b){var M=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,M)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var x=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var w=l.diff;l.diff=function(b,M,P){if(b&&this.$u===b.$u)return w.call(this,b,M,P);var I=this.local(),O=o(b).local();return w.call(I,O,M,P)}}})})(Br);var ns=Br.exports;const is=yt(ns);function ss(e){kr(e,"svelte-a5920l","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);min-width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}")}function Yt(e,t,r){const n=e.slice();return n[46]=t[r],n[48]=r,n}function Zt(e){let t;return{c(){t=Y("cashier-spinner"),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3])},m(r,n){le(r,t,n)},p(r,n){n[0]&16&&Z(t,"clientstylingurl",r[4]),n[0]&8&&Z(t,"clientstyling",r[3])},d(r){r&&se(t)}}}function Jt(e){let t,r,n,i=$t(e[8]),s=[];for(let o=0;o<i.length;o+=1)s[o]=Qt(Yt(e,i,o));let a=e[7]&&qt(e);return{c(){t=Y("div"),r=Y("div");for(let o=0;o<s.length;o+=1)s[o].c();n=te(),a&&a.c(),z(r,"class","CashierMethodList"),z(t,"class","CashierMethodListWidget")},m(o,l){le(o,t,l),B(t,r);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(r,null);B(t,n),a&&a.m(t,null),e[26](t)},p(o,l){if(l[0]&57664){i=$t(o[8]);let u;for(u=0;u<i.length;u+=1){const h=Yt(o,i,u);s[u]?s[u].p(h,l):(s[u]=Qt(h),s[u].c(),s[u].m(r,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=i.length}o[7]?a?a.p(o,l):(a=qt(o),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},d(o){o&&se(t),Xr(s,o),a&&a.d(),e[26](null)}}}function Qt(e){let t,r,n,i,s,a,o,l,u=(e[46].Label||e[46].Name)+"",h,m,p,x,w=e[13]("generalMin")+"",b,M,P=e[14].format(e[46].DisplayCurrency.MinAmountLimit)+"",I,O,U=e[46].DisplayCurrency.Name+"",N,j,F,K=e[13]("generalMax")+"",X,C,T=e[14].format(e[46].DisplayCurrency.MaxAmountLimit)+"",ie,me,v=e[46].DisplayCurrency.Name+"",g,c,y,d;function _(){return e[24](e[46])}return{c(){t=Y("div"),r=Y("div"),n=Y("img"),a=te(),o=Y("div"),l=Y("span"),h=re(u),m=te(),p=Y("div"),x=Y("span"),b=re(w),M=te(),I=re(P),O=te(),N=re(U),j=te(),F=Y("span"),X=re(K),C=te(),ie=re(T),me=te(),g=re(v),c=te(),Ht(n.src,i=e[46].LogoUrl)||z(n,"src",i),z(n,"alt",s=e[46].Label),z(r,"class","MethodLogo"),z(o,"class","MethodTitle"),z(x,"class","Limits"),z(F,"class","Limits"),z(p,"class","MethodLimits"),z(t,"class","SelectorWrapper"),Lt(t,"checked",e[6]===e[46].Name)},m(E,S){le(E,t,S),B(t,r),B(r,n),B(t,a),B(t,o),B(o,l),B(l,h),B(t,m),B(t,p),B(p,x),B(x,b),B(x,M),B(x,I),B(x,O),B(x,N),B(p,j),B(p,F),B(F,X),B(F,C),B(F,ie),B(F,me),B(F,g),B(t,c),y||(d=[st(t,"click",_),st(t,"keyup",as)],y=!0)},p(E,S){e=E,S[0]&256&&!Ht(n.src,i=e[46].LogoUrl)&&z(n,"src",i),S[0]&256&&s!==(s=e[46].Label)&&z(n,"alt",s),S[0]&256&&u!==(u=(e[46].Label||e[46].Name)+"")&&ue(h,u),S[0]&8192&&w!==(w=e[13]("generalMin")+"")&&ue(b,w),S[0]&256&&P!==(P=e[14].format(e[46].DisplayCurrency.MinAmountLimit)+"")&&ue(I,P),S[0]&256&&U!==(U=e[46].DisplayCurrency.Name+"")&&ue(N,U),S[0]&8192&&K!==(K=e[13]("generalMax")+"")&&ue(X,K),S[0]&256&&T!==(T=e[14].format(e[46].DisplayCurrency.MaxAmountLimit)+"")&&ue(ie,T),S[0]&256&&v!==(v=e[46].DisplayCurrency.Name+"")&&ue(g,v),S[0]&320&&Lt(t,"checked",e[6]===e[46].Name)},d(E){E&&se(t),y=!1,Te(d)}}}function qt(e){let t,r,n,i;return{c(){t=Y("div"),r=re(e[7]),z(t,"class","ShowAllButton")},m(s,a){le(s,t,a),B(t,r),n||(i=st(t,"click",e[25]),n=!0)},p(s,a){a[0]&128&&ue(r,s[7])},d(s){s&&se(t),n=!1,i()}}}function Kt(e){let t,r,n;return{c(){t=Y("cashier-error"),r=Y("span"),n=re(e[10]),z(r,"slot","text"),Z(t,"lang",e[0]),Z(t,"assetsurl",e[1]),Z(t,"translationurl",e[2]),Z(t,"clientstylingurl",e[4]),Z(t,"clientstyling",e[3]),Z(t,"hidebuttons","true")},m(i,s){le(i,t,s),B(t,r),B(r,n)},p(i,s){s[0]&1024&&ue(n,i[10]),s[0]&1&&Z(t,"lang",i[0]),s[0]&2&&Z(t,"assetsurl",i[1]),s[0]&4&&Z(t,"translationurl",i[2]),s[0]&16&&Z(t,"clientstylingurl",i[4]),s[0]&8&&Z(t,"clientstyling",i[3])},d(i){i&&se(t)}}}function os(e){let t,r,n,i=e[12]&&Zt(e),s=(e[9]||e[11])&&Jt(e),a=e[10]&&Kt(e);return{c(){i&&i.c(),t=te(),s&&s.c(),r=te(),a&&a.c(),n=Wr()},m(o,l){i&&i.m(o,l),le(o,t,l),s&&s.m(o,l),le(o,r,l),a&&a.m(o,l),le(o,n,l)},p(o,l){o[12]?i?i.p(o,l):(i=Zt(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),o[9]||o[11]?s?s.p(o,l):(s=Jt(o),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),o[10]?a?a.p(o,l):(a=Kt(o),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},i:ne,o:ne,d(o){o&&(se(t),se(r),se(n)),i&&i.d(o),s&&s.d(o),a&&a.d(o)}}}const as=()=>{};function us(e,t,r){let n;Fr(e,es,f=>r(13,n=f)),zt.extend(is);let{lang:i="en"}=t,{local:s="en-US"}=t,{endpoint:a}=t,{session:o}=t,{customerid:l}=t,{assetsurl:u}=t,{currency:h}=t,{numberofmethodsshown:m}=t,{translationurl:p=""}=t,{clientstyling:x=""}=t,{clientstylingurl:w=""}=t,{ismobileview:b}=t,M=[],P,I,O="",U=[],N=!0,j=new Intl.NumberFormat(s,{minimumFractionDigits:2}),F="",K,X=!0,C=!1;var T;(function(f){f.PlayerSessionIsNotValid="PlayerSessionIsNotValid",f.Success="Success",f.JwtTokenError="JwtTokenError"})(T||(T={})),Qr();const ie=()=>{let f=p;if(f)return fetch(f).then($=>$.json()).then($=>{Object.keys($).forEach(W=>{Xt(W,$[W])})}).catch($=>{console.log($)})};Object.keys(Wt).forEach(f=>{Xt(f,Wt[f])});const me=()=>{ts(i)},v=()=>{r(12,C=!0);const f=new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`),$=new Headers;$.append("accept","application/json"),$.append("Content-Type","application/json"),$.append("X-Client-Request-Timestamp",zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const W={method:"POST",headers:$,body:JSON.stringify({XPaymentSessionToken:o,Currency:h,Tags:{UserAgent:window.navigator.userAgent}})};fetch(f,W).then(D=>D.json()).then(D=>{var pe;if(D.error){r(10,F=D.error);return}if(D.ResponseCode!==T.Success){K=D.ResponseCode,d();return}M=(pe=D.PaymentMethods)!=null&&pe.Ordering?g(D):c(D),r(7,O=m&&+m>0&&M.length>+m?n("showAll"):""),r(8,U=O?M.slice(0,+m):M),window.postMessage({type:"StartSessionCountdown",paymentMethodName:M[0].Name,xPaymentSessionToken:D.XPaymentSessionToken},window.location.href)}).finally(()=>r(12,C=!1))},g=f=>{const $=[];return f.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach(W=>{const D=f.PaymentMethods.PaymentMethods.find(pe=>pe.Name===W);if(D){const pe=(D==null?void 0:D.Logos.find(Je=>Je.LogoType==="Desktop"))||{},Nr=(D==null?void 0:D.Logos.find(Je=>Je.LogoType==="Mobile"))||{},wt=X?pe:Nr;$.push(De(Ie({},D),{LogoUrl:wt.LogoUrl?`https:${wt.LogoUrl}`:""}))}}),$},c=f=>f.PaymentMethods.PaymentMethods.map($=>De(Ie({},$),{LogoUrl:$.Logos&&$.Logos.length&&$.Logos[0].LogoUrl?`https:${$.Logos[0].LogoUrl}`:""})),y=f=>{r(6,I=f.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:f,bubbles:!0,cancelable:!0,composed:!0}))},d=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:K},window.location.href)},_=()=>{r(11,X=b==="false")},E=()=>{U==M?G():S()},S=()=>{r(8,U=M),r(7,O=n("showLess"))},G=()=>{r(8,U=M.slice(0,+m)),I&&!U.find(f=>f.Name===I)&&U.splice(0,0,M.find(f=>f.Name===I)),r(7,O=n("showAll"))},k=()=>{r(9,N=!0)},V=f=>{r(9,N=!f.detail.hideMethodsList)},Q=()=>{let f=document.createElement("style");f.innerHTML=x,P.appendChild(f)},he=()=>{let f=new URL(w),$=document.createElement("style");fetch(f.href).then(W=>W.text()).then(W=>{$.innerHTML=W,setTimeout(()=>{P.appendChild($)},1),setTimeout(()=>{},500)})};Jr(()=>(window.addEventListener("backToMethodList",k,!1),window.addEventListener("hideMethodsList",V,!1),()=>{window.removeEventListener("backToMethodList",k),window.removeEventListener("paymentMethodLoaded",V)}));const oe=f=>y(f),de=()=>E();function ae(f){ot[f?"unshift":"push"](()=>{P=f,r(5,P)})}return e.$$set=f=>{"lang"in f&&r(0,i=f.lang),"local"in f&&r(17,s=f.local),"endpoint"in f&&r(18,a=f.endpoint),"session"in f&&r(19,o=f.session),"customerid"in f&&r(20,l=f.customerid),"assetsurl"in f&&r(1,u=f.assetsurl),"currency"in f&&r(21,h=f.currency),"numberofmethodsshown"in f&&r(22,m=f.numberofmethodsshown),"translationurl"in f&&r(2,p=f.translationurl),"clientstyling"in f&&r(3,x=f.clientstyling),"clientstylingurl"in f&&r(4,w=f.clientstylingurl),"ismobileview"in f&&r(23,b=f.ismobileview)},e.$$.update=()=>{e.$$.dirty[0]&1835008&&a&&o&&l&&v(),e.$$.dirty[0]&1&&i&&me(),e.$$.dirty[0]&40&&x&&P&&Q(),e.$$.dirty[0]&48&&w&&P&&he(),e.$$.dirty[0]&8388608&&b&&_(),e.$$.dirty[0]&5&&i&&p&&ie()},[i,u,p,x,w,P,I,O,U,N,F,X,C,n,j,y,E,s,a,o,l,h,m,b,oe,de,ae]}class Pr extends hn{constructor(t){super(),un(this,t,us,os,tr,{lang:0,local:17,endpoint:18,session:19,customerid:20,assetsurl:1,currency:21,numberofmethodsshown:22,translationurl:2,clientstyling:3,clientstylingurl:4,ismobileview:23},ss,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),q()}get local(){return this.$$.ctx[17]}set local(t){this.$$set({local:t}),q()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),q()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),q()}get customerid(){return this.$$.ctx[20]}set customerid(t){this.$$set({customerid:t}),q()}get assetsurl(){return this.$$.ctx[1]}set assetsurl(t){this.$$set({assetsurl:t}),q()}get currency(){return this.$$.ctx[21]}set currency(t){this.$$set({currency:t}),q()}get numberofmethodsshown(){return this.$$.ctx[22]}set numberofmethodsshown(t){this.$$set({numberofmethodsshown:t}),q()}get translationurl(){return this.$$.ctx[2]}set translationurl(t){this.$$set({translationurl:t}),q()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),q()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),q()}get ismobileview(){return this.$$.ctx[23]}set ismobileview(t){this.$$set({ismobileview:t}),q()}}ln(Pr,{lang:{},local:{},endpoint:{},session:{},customerid:{},assetsurl:{},currency:{},numberofmethodsshown:{},translationurl:{},clientstyling:{},clientstylingurl:{},ismobileview:{}},[],[],!0);exports.default=Pr;
@@ -143,13 +143,13 @@ function Yr(e) {
143
143
  }
144
144
  ), t;
145
145
  }
146
- let Ae;
147
- function Oe(e) {
148
- Ae = e;
146
+ let Oe;
147
+ function Ae(e) {
148
+ Oe = e;
149
149
  }
150
150
  function nr() {
151
- if (!Ae) throw new Error("Function called outside component initialization");
152
- return Ae;
151
+ if (!Oe) throw new Error("Function called outside component initialization");
152
+ return Oe;
153
153
  }
154
154
  function Zr(e) {
155
155
  nr().$$.on_mount.push(e);
@@ -187,17 +187,17 @@ let be = 0;
187
187
  function q() {
188
188
  if (be !== 0)
189
189
  return;
190
- const e = Ae;
190
+ const e = Oe;
191
191
  do {
192
192
  try {
193
193
  for (; be < ve.length; ) {
194
194
  const t = ve[be];
195
- be++, Oe(t), Kr(t.$$);
195
+ be++, Ae(t), Kr(t.$$);
196
196
  }
197
197
  } catch (t) {
198
198
  throw ve.length = 0, be = 0, t;
199
199
  }
200
- for (Oe(null), ve.length = 0, be = 0; ot.length; ) ot.pop()();
200
+ for (Ae(null), ve.length = 0, be = 0; ot.length; ) ot.pop()();
201
201
  for (let t = 0; t < Ee.length; t += 1) {
202
202
  const r = Ee[t];
203
203
  qe.has(r) || (qe.add(r), r());
@@ -206,7 +206,7 @@ function q() {
206
206
  } while (ve.length);
207
207
  for (; $t.length; )
208
208
  $t.pop()();
209
- at = !1, qe.clear(), Oe(e);
209
+ at = !1, qe.clear(), Ae(e);
210
210
  }
211
211
  function Kr(e) {
212
212
  if (e.fragment !== null) {
@@ -223,7 +223,7 @@ const tn = /* @__PURE__ */ new Set();
223
223
  function rn(e, t) {
224
224
  e && e.i && (tn.delete(e), e.i(t));
225
225
  }
226
- function Ot(e) {
226
+ function At(e) {
227
227
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
228
228
  }
229
229
  function nn(e, t, r) {
@@ -241,8 +241,8 @@ function on(e, t) {
241
241
  e.$$.dirty[0] === -1 && (ve.push(e), qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
242
  }
243
243
  function an(e, t, r, n, i, s, a = null, o = [-1]) {
244
- const l = Ae;
245
- Oe(e);
244
+ const l = Oe;
245
+ Ae(e);
246
246
  const u = e.$$ = {
247
247
  fragment: null,
248
248
  ctx: [],
@@ -277,7 +277,7 @@ function an(e, t, r, n, i, s, a = null, o = [-1]) {
277
277
  u.fragment && u.fragment.c();
278
278
  t.intro && rn(e.$$.fragment), nn(e, t.target, t.anchor), q();
279
279
  }
280
- Oe(l);
280
+ Ae(l);
281
281
  }
282
282
  let ir;
283
283
  typeof HTMLElement == "function" && (ir = class extends HTMLElement {
@@ -612,7 +612,7 @@ function xn(e) {
612
612
  return Object.propertyIsEnumerable.call(e, t);
613
613
  }) : [];
614
614
  }
615
- function At(e) {
615
+ function Ot(e) {
616
616
  return Object.keys(e).concat(xn(e));
617
617
  }
618
618
  function or(e, t) {
@@ -627,9 +627,9 @@ function _n(e, t) {
627
627
  }
628
628
  function wn(e, t, r) {
629
629
  var n = {};
630
- return r.isMergeableObject(e) && At(e).forEach(function(i) {
630
+ return r.isMergeableObject(e) && Ot(e).forEach(function(i) {
631
631
  n[i] = Be(e[i], r);
632
- }), At(t).forEach(function(i) {
632
+ }), Ot(t).forEach(function(i) {
633
633
  _n(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = En(i, r)(e[i], t[i], r) : n[i] = Be(t[i], r));
634
634
  }), n;
635
635
  }
@@ -663,14 +663,14 @@ function ze(e, t) {
663
663
  }
664
664
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
665
665
  }
666
- var A = function() {
667
- return A = Object.assign || function(t) {
666
+ var O = function() {
667
+ return O = Object.assign || function(t) {
668
668
  for (var r, n = 1, i = arguments.length; n < i; n++) {
669
669
  r = arguments[n];
670
670
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
671
671
  }
672
672
  return t;
673
- }, A.apply(this, arguments);
673
+ }, O.apply(this, arguments);
674
674
  };
675
675
  function Mn(e, t) {
676
676
  var r = {};
@@ -730,10 +730,10 @@ function mr(e) {
730
730
  function ht(e) {
731
731
  return !!(e && typeof e == "object" && e.type === _e.dateTime);
732
732
  }
733
- var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
734
- function An(e) {
733
+ var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
734
+ function On(e) {
735
735
  var t = {};
736
- return e.replace(On, function(r) {
736
+ return e.replace(An, function(r) {
737
737
  var n = r.length;
738
738
  switch (r[0]) {
739
739
  case "G":
@@ -944,13 +944,13 @@ function Dn(e) {
944
944
  t.notation = "compact", t.compactDisplay = "long";
945
945
  continue;
946
946
  case "scientific":
947
- t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
948
- return A(A({}, l), Ct(u));
947
+ t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
948
+ return O(O({}, l), Ct(u));
949
949
  }, {}));
950
950
  continue;
951
951
  case "engineering":
952
- t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
953
- return A(A({}, l), Ct(u));
952
+ t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
953
+ return O(O({}, l), Ct(u));
954
954
  }, {}));
955
955
  continue;
956
956
  case "notation-simple":
@@ -1019,17 +1019,17 @@ function Dn(e) {
1019
1019
  return h === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1020
1020
  });
1021
1021
  var s = i.options[0];
1022
- s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), Nt(s)));
1022
+ s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Nt(s)));
1023
1023
  continue;
1024
1024
  }
1025
1025
  if (gr.test(i.stem)) {
1026
- t = A(A({}, t), Nt(i.stem));
1026
+ t = O(O({}, t), Nt(i.stem));
1027
1027
  continue;
1028
1028
  }
1029
1029
  var a = br(i.stem);
1030
- a && (t = A(A({}, t), a));
1030
+ a && (t = O(O({}, t), a));
1031
1031
  var o = In(i.stem);
1032
- o && (t = A(A({}, t), o));
1032
+ o && (t = O(O({}, t), o));
1033
1033
  }
1034
1034
  return t;
1035
1035
  }
@@ -2808,7 +2808,7 @@ var Kn = (
2808
2808
  type: _e.dateTime,
2809
2809
  pattern: P,
2810
2810
  location: u.styleLocation,
2811
- parsedOptions: this.shouldParseSkeletons ? An(P) : {}
2811
+ parsedOptions: this.shouldParseSkeletons ? On(P) : {}
2812
2812
  }, I = o === "date" ? R.date : R.time;
2813
2813
  return {
2814
2814
  val: { type: I, value: n, location: b, style: p },
@@ -2831,7 +2831,7 @@ var Kn = (
2831
2831
  case "select": {
2832
2832
  var $ = this.clonePosition();
2833
2833
  if (this.bumpSpace(), !this.bumpIf(","))
2834
- return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, L($, A({}, $)));
2834
+ return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, L($, O({}, $)));
2835
2835
  this.bumpSpace();
2836
2836
  var U = this.parseIdentifierIfPossible(), N = 0;
2837
2837
  if (o !== "select" && U.value === "offset") {
@@ -3060,7 +3060,7 @@ function gt(e) {
3060
3060
  });
3061
3061
  }
3062
3062
  function ni(e, t) {
3063
- t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3063
+ t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3064
3064
  var r = new Kn(e, t).parse();
3065
3065
  if (r.err) {
3066
3066
  var n = SyntaxError(M[r.err.kind]);
@@ -3273,14 +3273,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3273
3273
  return ci(o);
3274
3274
  }
3275
3275
  function di(e, t) {
3276
- return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3277
- return r[n] = A(A({}, e[n]), t[n] || {}), r;
3276
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3277
+ return r[n] = O(O({}, e[n]), t[n] || {}), r;
3278
3278
  }, {})) : e;
3279
3279
  }
3280
3280
  function gi(e, t) {
3281
3281
  return t ? Object.keys(e).reduce(function(r, n) {
3282
3282
  return r[n] = di(e[n], t[n]), r;
3283
- }, A({}, e)) : e;
3283
+ }, O({}, e)) : e;
3284
3284
  }
3285
3285
  function nt(e) {
3286
3286
  return {
@@ -3360,7 +3360,7 @@ var wr = (
3360
3360
  var a = i || {};
3361
3361
  a.formatters;
3362
3362
  var o = Mn(a, ["formatters"]);
3363
- this.ast = e.__parse(t, A(A({}, o), { locale: this.resolvedLocale }));
3363
+ this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3364
3364
  } else
3365
3365
  this.ast = t;
3366
3366
  if (!Array.isArray(this.ast))
@@ -3593,18 +3593,18 @@ function $i({ locale: e, id: t }) {
3593
3593
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3594
3594
  );
3595
3595
  }
3596
- const Oi = {
3596
+ const Ai = {
3597
3597
  fallbackLocale: null,
3598
3598
  loadingDelay: 200,
3599
3599
  formats: Li,
3600
3600
  warnOnMissingMessages: !0,
3601
3601
  handleMissingMessage: void 0,
3602
3602
  ignoreTag: !0
3603
- }, $e = Oi;
3603
+ }, $e = Ai;
3604
3604
  function Se() {
3605
3605
  return $e;
3606
3606
  }
3607
- function Ai(e) {
3607
+ function Oi(e) {
3608
3608
  const t = e, { formats: r } = t, n = Mi(t, ["formats"]);
3609
3609
  let i = e.fallbackLocale;
3610
3610
  if (e.initialLocale)
@@ -3666,12 +3666,12 @@ const Ui = (e) => {
3666
3666
  return i in t ? t[i] : t[i] = e(n);
3667
3667
  };
3668
3668
  };
3669
- var Gi = Object.defineProperty, Xe = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Or = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
3669
+ var Gi = Object.defineProperty, Xe = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
3670
3670
  for (var r in t || (t = {}))
3671
3671
  $r.call(t, r) && Vt(e, r, t[r]);
3672
3672
  if (Xe)
3673
3673
  for (var r of Xe(t))
3674
- Or.call(t, r) && Vt(e, r, t[r]);
3674
+ Ar.call(t, r) && Vt(e, r, t[r]);
3675
3675
  return e;
3676
3676
  }, Me = (e, t) => {
3677
3677
  var r = {};
@@ -3679,7 +3679,7 @@ var Gi = Object.defineProperty, Xe = Object.getOwnPropertySymbols, $r = Object.p
3679
3679
  $r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3680
3680
  if (e != null && Xe)
3681
3681
  for (var n of Xe(e))
3682
- t.indexOf(n) < 0 && Or.call(e, n) && (r[n] = e[n]);
3682
+ t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
3683
3683
  return r;
3684
3684
  };
3685
3685
  const Pe = (e, t) => {
@@ -3777,7 +3777,7 @@ function Xt(e, t) {
3777
3777
  Hr(e, t);
3778
3778
  }
3779
3779
  function es(e) {
3780
- Ai({
3780
+ Oi({
3781
3781
  fallbackLocale: "en"
3782
3782
  }), ge.set(e);
3783
3783
  }
@@ -3805,7 +3805,7 @@ const Wt = {
3805
3805
  showLess: "DAHA AZ GÖSTER"
3806
3806
  }
3807
3807
  };
3808
- var Ar = { exports: {} };
3808
+ var Or = { exports: {} };
3809
3809
  (function(e, t) {
3810
3810
  (function(r, n) {
3811
3811
  e.exports = n();
@@ -3896,8 +3896,8 @@ var Ar = { exports: {} };
3896
3896
  return this.$d.getTime();
3897
3897
  }, g.startOf = function(c, y) {
3898
3898
  var d = this, _ = !!T.u(y) || y, E = T.p(c), S = function(ae, f) {
3899
- var O = T.w(d.$u ? Date.UTC(d.$y, f, ae) : new Date(d.$y, f, ae), d);
3900
- return _ ? O : O.endOf(u);
3899
+ var A = T.w(d.$u ? Date.UTC(d.$y, f, ae) : new Date(d.$y, f, ae), d);
3900
+ return _ ? A : A.endOf(u);
3901
3901
  }, G = function(ae, f) {
3902
3902
  return T.w(d.toDate()[ae].apply(d.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(f)), d);
3903
3903
  }, k = this.$W, V = this.$M, Q = this.$D, he = "set" + (this.$u ? "UTC" : "");
@@ -3952,16 +3952,16 @@ var Ar = { exports: {} };
3952
3952
  }, g.format = function(c) {
3953
3953
  var y = this, d = this.$locale();
3954
3954
  if (!this.isValid()) return d.invalidDate || b;
3955
- var _ = c || "YYYY-MM-DDTHH:mm:ssZ", E = T.z(this), S = this.$H, G = this.$m, k = this.$M, V = d.weekdays, Q = d.months, he = d.meridiem, oe = function(f, O, W, D) {
3956
- return f && (f[O] || f(y, _)) || W[O].slice(0, D);
3955
+ var _ = c || "YYYY-MM-DDTHH:mm:ssZ", E = T.z(this), S = this.$H, G = this.$m, k = this.$M, V = d.weekdays, Q = d.months, he = d.meridiem, oe = function(f, A, W, D) {
3956
+ return f && (f[A] || f(y, _)) || W[A].slice(0, D);
3957
3957
  }, de = function(f) {
3958
3958
  return T.s(S % 12 || 12, f, "0");
3959
- }, ae = he || function(f, O, W) {
3959
+ }, ae = he || function(f, A, W) {
3960
3960
  var D = f < 12 ? "AM" : "PM";
3961
3961
  return W ? D.toLowerCase() : D;
3962
3962
  };
3963
- return _.replace(P, function(f, O) {
3964
- return O || function(W) {
3963
+ return _.replace(P, function(f, A) {
3964
+ return A || function(W) {
3965
3965
  switch (W) {
3966
3966
  case "YY":
3967
3967
  return String(y.$y).slice(-2);
@@ -4080,8 +4080,8 @@ var Ar = { exports: {} };
4080
4080
  return C(1e3 * v);
4081
4081
  }, C.en = j[N], C.Ls = j, C.p = {}, C;
4082
4082
  });
4083
- })(Ar);
4084
- var ts = Ar.exports;
4083
+ })(Or);
4084
+ var ts = Or.exports;
4085
4085
  const zt = /* @__PURE__ */ yt(ts);
4086
4086
  var Br = { exports: {} };
4087
4087
  (function(e, t) {
@@ -4206,7 +4206,7 @@ function Zt(e) {
4206
4206
  };
4207
4207
  }
4208
4208
  function Jt(e) {
4209
- let t, r, n, i = Ot(
4209
+ let t, r, n, i = At(
4210
4210
  /*paymentMethodsToShow*/
4211
4211
  e[8]
4212
4212
  ), s = [];
@@ -4232,7 +4232,7 @@ function Jt(e) {
4232
4232
  p(o, l) {
4233
4233
  if (l[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
4234
4234
  57664) {
4235
- i = Ot(
4235
+ i = At(
4236
4236
  /*paymentMethodsToShow*/
4237
4237
  o[8]
4238
4238
  );
@@ -4506,12 +4506,12 @@ function as(e, t, r) {
4506
4506
  const ie = () => {
4507
4507
  let f = p;
4508
4508
  if (f)
4509
- return fetch(f).then((O) => O.json()).then((O) => {
4510
- Object.keys(O).forEach((W) => {
4511
- Xt(W, O[W]);
4509
+ return fetch(f).then((A) => A.json()).then((A) => {
4510
+ Object.keys(A).forEach((W) => {
4511
+ Xt(W, A[W]);
4512
4512
  });
4513
- }).catch((O) => {
4514
- console.log(O);
4513
+ }).catch((A) => {
4514
+ console.log(A);
4515
4515
  });
4516
4516
  };
4517
4517
  Object.keys(Wt).forEach((f) => {
@@ -4521,14 +4521,15 @@ function as(e, t, r) {
4521
4521
  es(i);
4522
4522
  }, v = () => {
4523
4523
  r(12, C = !0);
4524
- const f = new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`), O = new Headers();
4525
- O.append("accept", "application/json"), O.append("Content-Type", "application/json"), O.append("X-Client-Request-Timestamp", zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
4524
+ const f = new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`), A = new Headers();
4525
+ A.append("accept", "application/json"), A.append("Content-Type", "application/json"), A.append("X-Client-Request-Timestamp", zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
4526
4526
  const W = {
4527
4527
  method: "POST",
4528
- headers: O,
4528
+ headers: A,
4529
4529
  body: JSON.stringify({
4530
4530
  XPaymentSessionToken: o,
4531
- Currency: h
4531
+ Currency: h,
4532
+ Tags: { UserAgent: window.navigator.userAgent }
4532
4533
  })
4533
4534
  };
4534
4535
  fetch(f, W).then((D) => D.json()).then((D) => {
@@ -4551,18 +4552,18 @@ function as(e, t, r) {
4551
4552
  );
4552
4553
  }).finally(() => r(12, C = !1));
4553
4554
  }, g = (f) => {
4554
- const O = [];
4555
+ const A = [];
4555
4556
  return f.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((W) => {
4556
4557
  const D = f.PaymentMethods.PaymentMethods.find((pe) => pe.Name === W);
4557
4558
  if (D) {
4558
4559
  const pe = (D == null ? void 0 : D.Logos.find((Je) => Je.LogoType === "Desktop")) || {}, Pr = (D == null ? void 0 : D.Logos.find((Je) => Je.LogoType === "Mobile")) || {}, wt = X ? pe : Pr;
4559
- O.push(De(Ie({}, D), {
4560
+ A.push(De(Ie({}, D), {
4560
4561
  LogoUrl: wt.LogoUrl ? `https:${wt.LogoUrl}` : ""
4561
4562
  }));
4562
4563
  }
4563
- }), O;
4564
- }, c = (f) => f.PaymentMethods.PaymentMethods.map((O) => De(Ie({}, O), {
4565
- LogoUrl: O.Logos && O.Logos.length && O.Logos[0].LogoUrl ? `https:${O.Logos[0].LogoUrl}` : ""
4564
+ }), A;
4565
+ }, c = (f) => f.PaymentMethods.PaymentMethods.map((A) => De(Ie({}, A), {
4566
+ LogoUrl: A.Logos && A.Logos.length && A.Logos[0].LogoUrl ? `https:${A.Logos[0].LogoUrl}` : ""
4566
4567
  })), y = (f) => {
4567
4568
  r(6, I = f.Name), dispatchEvent(new CustomEvent(
4568
4569
  "selectPayMeth",
@@ -4597,11 +4598,11 @@ function as(e, t, r) {
4597
4598
  let f = document.createElement("style");
4598
4599
  f.innerHTML = x, P.appendChild(f);
4599
4600
  }, he = () => {
4600
- let f = new URL(w), O = document.createElement("style");
4601
+ let f = new URL(w), A = document.createElement("style");
4601
4602
  fetch(f.href).then((W) => W.text()).then((W) => {
4602
- O.innerHTML = W, setTimeout(
4603
+ A.innerHTML = W, setTimeout(
4603
4604
  () => {
4604
- P.appendChild(O);
4605
+ P.appendChild(A);
4605
4606
  },
4606
4607
  1
4607
4608
  ), setTimeout(
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodsList-C7YUSIH_.cjs")).then(({default:t})=>{!customElements.get("cashier-methods-list")&&customElements.define("cashier-methods-list",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodsList-CpQDf2_q.cjs")).then(({default:t})=>{!customElements.get("cashier-methods-list")&&customElements.define("cashier-methods-list",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = s(customElements.define), import("../components/CashierMethodsList-CoK3EJb6.js").then(({ default: t }) => {
13
+ customElements.define = s(customElements.define), import("../components/CashierMethodsList-DBQfx0yO.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-methods-list") && customElements.define("cashier-methods-list", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-methods-list",
3
- "version": "1.45.3",
3
+ "version": "1.45.5",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-methods-list.cjs",
6
6
  "module": "es2015/cashier-methods-list.js",