@stitch-money/client 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { RuntimeConfigEnvironment } from 'runtime-config-stitch';
2
+
1
3
  declare enum WalletType {
2
4
  ApplePay = "APPLE_PAY",
3
5
  SamsungPay = "SAMSUNG_PAY",
@@ -18,6 +20,7 @@ interface InitialisationProperties {
18
20
  onCancelPayment?: () => void;
19
21
  clientId?: string;
20
22
  gatewayMerchantId?: string;
23
+ runtimeConfigEnvironment?: RuntimeConfigEnvironment;
21
24
  }
22
25
  interface SamsungPayClient {
23
26
  isReadyToPay: (paymentMethods: SamsungPayPaymentMethods) => Promise<any>;
@@ -86,6 +89,7 @@ declare class StitchWalletClientSdk {
86
89
  private readonly onCancelPayment;
87
90
  private readonly clientId;
88
91
  private readonly gatewayMerchantId;
92
+ private readonly runtimeConfigEnvironment;
89
93
  private applePayIsSupported;
90
94
  private samsungPayIsSupported;
91
95
  private googlePayIsSupported;
package/build/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  "use client"
2
- var Kn=Object.create;var fe=Object.defineProperty,qn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptor,er=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,nr=Object.getPrototypeOf,Ce=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var ke=(e,t,n)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))Ce.call(t,n)&&ke(e,n,t[n]);if(le)for(var n of le(t))ft.call(t,n)&&ke(e,n,t[n]);return e},K=(e,t)=>qn(e,er(t));var dt=(e,t)=>{var n={};for(var r in e)Ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&le)for(var r of le(e))t.indexOf(r)<0&&ft.call(e,r)&&(n[r]=e[r]);return n};var rr=(e,t)=>()=>(e&&(t=e(e=0)),t);var or=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ir=(e,t)=>{for(var n in t)fe(e,n,{get:t[n],enumerable:!0})},ar=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tr(t))!Ce.call(e,o)&&o!==n&&fe(e,o,{get:()=>t[o],enumerable:!(r=Qn(t,o))||r.enumerable});return e};var pt=(e,t,n)=>(n=e!=null?Kn(nr(e)):{},ar(t||!e||!e.__esModule?fe(n,"default",{value:e,enumerable:!0}):n,e));var T=(e,t,n)=>(ke(e,typeof t!="symbol"?t+"":t,n),n);var h=(e,t,n)=>new Promise((r,o)=>{var a=l=>{try{c(n.next(l))}catch(f){o(f)}},i=l=>{try{c(n.throw(l))}catch(f){o(f)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,i);c((n=n.apply(e,t)).next())});var De=or((wa,It)=>{"use strict";var Me=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch(n){return String(t)}}},yr=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Le=Symbol(".toJSON called"),hr=e=>{e[Le]=!0;let t=e.toJSON();return delete e[Le],t},Fe=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:a})=>{let i=n||(Array.isArray(e)?[]:{});if(t.push(e),a>=o)return i;if(typeof e.toJSON=="function"&&e[Le]!==!0)return hr(e);for(let[c,l]of Object.entries(e)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){i[c]="[object Buffer]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){i[c]=l;continue}if(!t.includes(e[c])){a++,i[c]=Fe({from:e[c],seen:t.slice(),forceEnumerable:r,maxDepth:o,depth:a});continue}i[c]="[Circular]"}}for(let{property:c,enumerable:l}of yr)typeof e[c]=="string"&&Object.defineProperty(i,c,{value:e[c],enumerable:r?!0:l,configurable:!0,writable:!0});return i},br=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;return typeof e=="object"&&e!==null?Fe({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e},wr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;if(e instanceof Error)return e;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){let r=new Error;return Fe({from:e,seen:[],to_:r,maxDepth:n,depth:0}),r}return new Me(e)};It.exports={serializeError:br,deserializeError:wr}});var mn={};ir(mn,{componentsToDebugString:()=>qe,default:()=>Ei,getFullscreenElement:()=>qt,getUnstableAudioFingerprint:()=>en,getUnstableCanvasFingerprint:()=>tn,getUnstableHardwareConcurrency:()=>on,getUnstableScreenFrame:()=>rn,getUnstableScreenResolution:()=>nn,getWebGLContext:()=>Ke,hashComponents:()=>Qe,isAndroid:()=>ve,isChromium:()=>z,isDesktopWebKit:()=>we,isEdgeHTML:()=>Xt,isGecko:()=>B,isSamsungInternet:()=>Qt,isTrident:()=>Je,isWebKit:()=>C,load:()=>pn,loadSources:()=>Jt,murmurX64Hash128:()=>_i,prepareForSources:()=>dn,sources:()=>fn,transformSource:()=>Dr,withIframe:()=>Xe});function he(e,t){return new Promise(n=>setTimeout(n,e,t))}function Er(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function _r(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(r=>n.call(window,()=>r(),{timeout:t})):he(Math.min(e,t))}function be(e){return!!e&&typeof e.then=="function"}function Tt(e,t){try{let n=e();be(n)?n.then(r=>t(!0,r),r=>t(!1,r)):t(!0,n)}catch(n){t(!1,n)}}function Nt(e,t,n=16){return h(this,null,function*(){let r=Array(e.length),o=Date.now();for(let a=0;a<e.length;++a){r[a]=t(e[a],a);let i=Date.now();i>=o+n&&(o=i,yield Er())}return r})}function ee(e){return e.then(void 0,()=>{}),e}function Ir(e,t){for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function xr(e,t){return!Ir(e,t)}function Be(e){return parseInt(e)}function N(e){return parseFloat(e)}function F(e,t){return typeof e=="number"&&isNaN(e)?t:e}function _(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Yt(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function Ar(e){var t,n;let r=`Unexpected syntax '${e}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(e),a=o[1]||void 0,i={},c=/([.:#][\w-]+|\[.+?\])/gi,l=(f,s)=>{i[f]=i[f]||[],i[f].push(s)};for(;;){let f=c.exec(o[2]);if(!f)break;let s=f[0];switch(s[0]){case".":l("class",s.slice(1));break;case"#":l("id",s.slice(1));break;case"[":{let u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(s);if(u)l(u[1],(n=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[a,i]}function Or(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function D(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,c=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,s=0,u=0,m=0,g=0;g+=a+f,m+=g>>>16,g&=65535,m+=o+l,u+=m>>>16,m&=65535,u+=r+c,s+=u>>>16,u&=65535,s+=n+i,s&=65535,e[0]=s<<16|u,e[1]=m<<16|g}function k(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,c=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,s=0,u=0,m=0,g=0;g+=a*f,m+=g>>>16,g&=65535,m+=o*f,u+=m>>>16,m&=65535,m+=a*l,u+=m>>>16,m&=65535,u+=r*f,s+=u>>>16,u&=65535,u+=o*l,s+=u>>>16,u&=65535,u+=a*c,s+=u>>>16,u&=65535,s+=n*f+r*l+o*c+a*i,s&=65535,e[0]=s<<16|u,e[1]=m<<16|g}function Z(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function O(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function R(e,t){e[0]^=t[0],e[1]^=t[1]}function Mt(e){let t=[0,e[0]>>>1];R(e,t),k(e,kr),t[1]=e[0]>>>1,R(e,t),k(e,Cr),t[1]=e[0]>>>1,R(e,t)}function zt(e,t){let n=Or(e);t=t||0;let r=[0,n.length],o=r[1]%16,a=r[1]-o,i=[0,t],c=[0,t],l=[0,0],f=[0,0],s;for(s=0;s<a;s=s+16)l[0]=n[s+4]|n[s+5]<<8|n[s+6]<<16|n[s+7]<<24,l[1]=n[s]|n[s+1]<<8|n[s+2]<<16|n[s+3]<<24,f[0]=n[s+12]|n[s+13]<<8|n[s+14]<<16|n[s+15]<<24,f[1]=n[s+8]|n[s+9]<<8|n[s+10]<<16|n[s+11]<<24,k(l,me),Z(l,31),k(l,ge),R(i,l),Z(i,27),D(i,c),k(i,Lt),D(i,Tr),k(f,ge),Z(f,33),k(f,me),R(c,f),Z(c,31),D(c,i),k(c,Lt),D(c,Nr);l[0]=0,l[1]=0,f[0]=0,f[1]=0;let u=[0,0];switch(o){case 15:u[1]=n[s+14],O(u,48),R(f,u);case 14:u[1]=n[s+13],O(u,40),R(f,u);case 13:u[1]=n[s+12],O(u,32),R(f,u);case 12:u[1]=n[s+11],O(u,24),R(f,u);case 11:u[1]=n[s+10],O(u,16),R(f,u);case 10:u[1]=n[s+9],O(u,8),R(f,u);case 9:u[1]=n[s+8],R(f,u),k(f,ge),Z(f,33),k(f,me),R(c,f);case 8:u[1]=n[s+7],O(u,56),R(l,u);case 7:u[1]=n[s+6],O(u,48),R(l,u);case 6:u[1]=n[s+5],O(u,40),R(l,u);case 5:u[1]=n[s+4],O(u,32),R(l,u);case 4:u[1]=n[s+3],O(u,24),R(l,u);case 3:u[1]=n[s+2],O(u,16),R(l,u);case 2:u[1]=n[s+1],O(u,8),R(l,u);case 1:u[1]=n[s],R(l,u),k(l,me),Z(l,31),k(l,ge),R(i,l)}return R(i,r),R(c,r),D(i,c),D(c,i),Mt(i),Mt(c),D(i,c),D(c,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function Mr(e){var t;return v({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
3
- `)},e)}function Lr(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Bt(e){return typeof e!="function"}function Fr(e,t){let n=ee(new Promise(r=>{let o=Date.now();Tt(e.bind(null,t),(...a)=>{let i=Date.now()-o;if(!a[0])return r(()=>({error:a[1],duration:i}));let c=a[1];if(Bt(c))return r(()=>({value:c,duration:i}));r(()=>new Promise(l=>{let f=Date.now();Tt(c,(...s)=>{let u=i+Date.now()-f;if(!s[0])return l({error:s[1],duration:u});l({value:s[1],duration:u})})}))})}));return function(){return n.then(o=>o())}}function Jt(e,t,n,r){let o=Object.keys(e).filter(i=>xr(n,i)),a=ee(Nt(o,i=>Fr(e[i],t),r));return function(){return h(this,null,function*(){let c=yield a,l=yield Nt(c,u=>ee(u()),r),f=yield Promise.all(l),s={};for(let u=0;u<o.length;++u)s[o[u]]=f[u];return s})}}function Dr(e,t){let n=r=>Bt(r)?t(r):()=>{let o=r();return be(o)?o.then(t):t(o)};return r=>{let o=e(r);return be(o)?o.then(n):n(o)}}function Je(){let e=window,t=navigator;return _(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Xt(){let e=window,t=navigator;return _(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Je()}function z(){let e=window,t=navigator;return _(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function C(){let e=window,t=navigator;return _(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function we(){let e=window,{HTMLElement:t,Document:n}=e;return _(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function te(){let e=window;return Lr(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function B(){var e,t;let n=window;return _(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function jr(){let e=window,t=navigator,{CSS:n}=e;return _(["userActivation"in t,n.supports("color","light-dark(#000, #fff)"),n.supports("height","1lh"),"globalPrivacyControl"in t])>=3}function Kt(){let{CSS:e}=window;return _([e.supports("selector(::details-content)"),e.supports("selector(::before::marker)"),e.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function Vr(){let e=window;return _([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Gr(){let e=window,{URLPattern:t}=e;return _(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Wr(){let e=window;return _(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function ne(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:r}=e;return _([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function $r(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return _(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function qt(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Ur(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function ve(){let e=z(),t=B(),n=window,r=navigator,o="connection";return e?_([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?_(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function Qt(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:r}=t;return _(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function Zr(){return Yr()?-4:en()}function en(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Hr())return-1;let n=4500,r=5e3,o=new t(1,r,44100),a=o.createOscillator();a.type="triangle",a.frequency.value=1e4;let i=o.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,a.connect(i),i.connect(o.destination),a.start(0);let[c,l]=zr(o),f=ee(c.then(s=>Br(s.getChannelData(0).subarray(n)),s=>{if(s.name==="timeout"||s.name==="suspended")return-3;throw s}));return()=>(l(),f)}function Hr(){return C()&&!we()&&!Wr()}function Yr(){return C()&&ne()&&te()||z()&&Qt()&&Gr()}function zr(e){let a=()=>{};return[new Promise((c,l)=>{let f=!1,s=0,u=0;e.oncomplete=d=>c(d.renderedBuffer);let m=()=>{setTimeout(()=>l(Ft("timeout")),Math.min(500,u+5e3-Date.now()))},g=()=>{try{let d=e.startRendering();switch(be(d)&&ee(d),e.state){case"running":u=Date.now(),f&&m();break;case"suspended":document.hidden||s++,f&&s>=3?l(Ft("suspended")):setTimeout(g,500);break}}catch(d){l(d)}};g(),a=()=>{f||(f=!0,u>0&&m())}}),a]}function Br(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Ft(e){let t=new Error(e);return t.name=e,t}function Xe(e,t,n=50){return h(this,null,function*(){var r,o,a;let i=document;for(;!i.body;)yield he(n);let c=i.createElement("iframe");try{for(yield new Promise((l,f)=>{let s=!1,u=()=>{s=!0,l()},m=p=>{s=!0,f(p)};c.onload=u,c.onerror=m;let{style:g}=c;g.setProperty("display","block","important"),g.position="absolute",g.top="0",g.left="0",g.visibility="hidden",t&&"srcdoc"in c?c.srcdoc=t:c.src="about:blank",i.body.appendChild(c);let d=()=>{var p,y;s||(((y=(p=c.contentWindow)===null||p===void 0?void 0:p.document)===null||y===void 0?void 0:y.readyState)==="complete"?u():setTimeout(d,10))};d()});!(!((o=(r=c.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body);)yield he(n);return yield e(c,c.contentWindow)}finally{(a=c.parentNode)===null||a===void 0||a.removeChild(c)}})}function Jr(e){let[t,n]=Ar(e),r=document.createElement(t!=null?t:"div");for(let o of Object.keys(n)){let a=n[o].join(" ");o==="style"?Xr(r.style,a):r.setAttribute(o,a)}return r}function Xr(e,t){for(let n of t.split(";")){let r=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(r){let[,o,a,,i]=r;e.setProperty(o,a,i||"")}}}function Kr(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}function eo(){return Xe((n,r)=>h(this,[n,r],function*(e,{document:t}){let o=t.body;o.style.fontSize=Qr;let a=t.createElement("div");a.style.setProperty("visibility","hidden","important");let i={},c={},l=p=>{let y=t.createElement("span"),{style:b}=y;return b.position="absolute",b.top="0",b.left="0",b.fontFamily=p,y.textContent=qr,a.appendChild(y),y},f=(p,y)=>l(`'${p}',${y}`),s=()=>H.map(l),u=()=>{let p={};for(let y of Dt)p[y]=H.map(b=>f(y,b));return p},m=p=>H.some((y,b)=>p[b].offsetWidth!==i[y]||p[b].offsetHeight!==c[y]),g=s(),d=u();o.appendChild(a);for(let p=0;p<H.length;p++)i[H[p]]=g[p].offsetWidth,c[H[p]]=g[p].offsetHeight;return Dt.filter(p=>m(d[p]))}))}function to(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(!r)continue;let o=[];for(let a=0;a<r.length;++a){let i=r[a];o.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}return t}function no(){return tn(uo())}function tn(e){let t=!1,n,r,[o,a]=ro();return oo(o,a)?(t=io(a),e?n=r="skipped":[n,r]=ao(o,a)):n=r="unsupported",{winding:t,geometry:n,text:r}}function ro(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function oo(e,t){return!!(t&&e.toDataURL)}function io(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function ao(e,t){so(e,t);let n=Ue(e),r=Ue(e);return n!==r?["unstable","unstable"]:(co(e,t),[Ue(e),n])}function so(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function co(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,r,o]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(r,o,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function Ue(e){return e.toDataURL()}function uo(){let e=C()&&ne()&&te(),t=B()&&jr();return e||t}function lo(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=Be(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}let r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function fo(){return navigator.oscpu}function po(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))z()&&Vr()||t.push(e.languages);else if(typeof e.languages=="string"){let r=e.languages;r&&t.push(r.split(","))}return t}function mo(){return window.screen.colorDepth}function go(){return F(N(navigator.deviceMemory),void 0)}function yo(){if(!(C()&&ne()&&te()))return nn()}function nn(){let e=screen,t=r=>F(Be(r),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}function wo(){if(Ze!==void 0)return;let e=()=>{let t=Ye();ze(t)?Ze=setTimeout(e,ho):(ye=t,Ze=void 0)};e()}function rn(){return wo(),()=>h(this,null,function*(){let e=Ye();if(ze(e)){if(ye)return[...ye];qt()&&(yield Ur(),e=Ye())}return ze(e)||(ye=e),e})}function vo(){let e=C()&&ne()&&te(),t=B()&&Kt();if(e||t)return()=>Promise.resolve(void 0);let n=rn();return()=>h(this,null,function*(){let r=yield n(),o=a=>a===null?null:Yt(a,bo);return[o(r[0]),o(r[1]),o(r[2]),o(r[3])]})}function Ye(){let e=screen;return[F(N(e.availTop),null),F(N(e.width)-N(e.availWidth)-F(N(e.availLeft),0),null),F(N(e.height)-N(e.availHeight)-F(N(e.availTop),0),null),F(N(e.availLeft),null)]}function ze(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function So(){let e=on();return e!==void 0&&B()&&Kt()?e>=8?8:4:e}function on(){return F(Be(navigator.hardwareConcurrency),void 0)}function Ro(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let r=new t().resolvedOptions().timeZone;if(r)return r}let n=-Po();return`UTC${n>=0?"+":""}${n}`}function Po(){let e=new Date().getFullYear();return Math.max(N(new Date(e,0,1).getTimezoneOffset()),N(new Date(e,6,1).getTimezoneOffset()))}function Eo(){try{return!!window.sessionStorage}catch(e){return!0}}function _o(){try{return!!window.localStorage}catch(e){return!0}}function Io(){if(!(Je()||Xt()))try{return!!window.indexedDB}catch(e){return!0}}function xo(){return!!window.openDatabase}function Ao(){return navigator.cpuClass}function Oo(){let{platform:e}=navigator;return e==="MacIntel"&&C()&&!we()?$r()?"iPad":"iPhone":e}function ko(){return navigator.vendor||""}function Co(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function To(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function No(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Mo(){return h(this,arguments,function*({debug:e}={}){if(!Lo())return;let t=No(),n=Object.keys(t),r=[].concat(...n.map(i=>t[i])),o=yield Fo(r);e&&Do(t,o);let a=n.filter(i=>{let c=t[i];return _(c.map(f=>o[f]))>c.length*.6});return a.sort(),a})}function Lo(){return C()||ve()}function Fo(e){return h(this,null,function*(){var t;let n=document,r=n.createElement("div"),o=new Array(e.length),a={};jt(r);for(let i=0;i<e.length;++i){let c=Jr(e[i]);c.tagName==="DIALOG"&&c.show();let l=n.createElement("div");jt(l),l.appendChild(c),r.appendChild(l),o[i]=c}for(;!n.body;)yield he(50);n.body.appendChild(r);try{for(let i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return a})}function jt(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Do(e,t){let n="DOM blockers debug:\n```";for(let r of Object.keys(e)){n+=`
2
+ var Qn=Object.create;var fe=Object.defineProperty,er=Object.defineProperties,tr=Object.getOwnPropertyDescriptor,nr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,or=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Oe=(e,t,n)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))ke.call(t,n)&&Oe(e,n,t[n]);if(le)for(var n of le(t))ft.call(t,n)&&Oe(e,n,t[n]);return e},K=(e,t)=>er(e,nr(t));var dt=(e,t)=>{var n={};for(var r in e)ke.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&le)for(var r of le(e))t.indexOf(r)<0&&ft.call(e,r)&&(n[r]=e[r]);return n};var ir=(e,t)=>()=>(e&&(t=e(e=0)),t);var ar=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sr=(e,t)=>{for(var n in t)fe(e,n,{get:t[n],enumerable:!0})},cr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rr(t))!ke.call(e,o)&&o!==n&&fe(e,o,{get:()=>t[o],enumerable:!(r=tr(t,o))||r.enumerable});return e};var pt=(e,t,n)=>(n=e!=null?Qn(or(e)):{},cr(t||!e||!e.__esModule?fe(n,"default",{value:e,enumerable:!0}):n,e));var O=(e,t,n)=>(Oe(e,typeof t!="symbol"?t+"":t,n),n);var h=(e,t,n)=>new Promise((r,o)=>{var a=l=>{try{s(n.next(l))}catch(f){o(f)}},i=l=>{try{s(n.throw(l))}catch(f){o(f)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,i);s((n=n.apply(e,t)).next())});var De=ar((Ea,It)=>{"use strict";var Me=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch(n){return String(t)}}},br=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Le=Symbol(".toJSON called"),wr=e=>{e[Le]=!0;let t=e.toJSON();return delete e[Le],t},Fe=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:a})=>{let i=n||(Array.isArray(e)?[]:{});if(t.push(e),a>=o)return i;if(typeof e.toJSON=="function"&&e[Le]!==!0)return wr(e);for(let[s,l]of Object.entries(e)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){i[s]="[object Buffer]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){i[s]=l;continue}if(!t.includes(e[s])){a++,i[s]=Fe({from:e[s],seen:t.slice(),forceEnumerable:r,maxDepth:o,depth:a});continue}i[s]="[Circular]"}}for(let{property:s,enumerable:l}of br)typeof e[s]=="string"&&Object.defineProperty(i,s,{value:e[s],enumerable:r?!0:l,configurable:!0,writable:!0});return i},vr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;return typeof e=="object"&&e!==null?Fe({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e},Sr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;if(e instanceof Error)return e;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){let r=new Error;return Fe({from:e,seen:[],to_:r,maxDepth:n,depth:0}),r}return new Me(e)};It.exports={serializeError:vr,deserializeError:Sr}});var mn={};sr(mn,{componentsToDebugString:()=>qe,default:()=>Ii,getFullscreenElement:()=>qt,getUnstableAudioFingerprint:()=>en,getUnstableCanvasFingerprint:()=>tn,getUnstableHardwareConcurrency:()=>on,getUnstableScreenFrame:()=>rn,getUnstableScreenResolution:()=>nn,getWebGLContext:()=>Ke,hashComponents:()=>Qe,isAndroid:()=>ve,isChromium:()=>z,isDesktopWebKit:()=>we,isEdgeHTML:()=>Xt,isGecko:()=>B,isSamsungInternet:()=>Qt,isTrident:()=>Je,isWebKit:()=>T,load:()=>pn,loadSources:()=>Jt,murmurX64Hash128:()=>xi,prepareForSources:()=>dn,sources:()=>fn,transformSource:()=>Vr,withIframe:()=>Xe});function he(e,t){return new Promise(n=>setTimeout(n,e,t))}function Ir(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function xr(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(r=>n.call(window,()=>r(),{timeout:t})):he(Math.min(e,t))}function be(e){return!!e&&typeof e.then=="function"}function Tt(e,t){try{let n=e();be(n)?n.then(r=>t(!0,r),r=>t(!1,r)):t(!0,n)}catch(n){t(!1,n)}}function Nt(e,t,n=16){return h(this,null,function*(){let r=Array(e.length),o=Date.now();for(let a=0;a<e.length;++a){r[a]=t(e[a],a);let i=Date.now();i>=o+n&&(o=i,yield Ir())}return r})}function ee(e){return e.then(void 0,()=>{}),e}function Cr(e,t){for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function Ar(e,t){return!Cr(e,t)}function Be(e){return parseInt(e)}function N(e){return parseFloat(e)}function F(e,t){return typeof e=="number"&&isNaN(e)?t:e}function _(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Yt(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function Or(e){var t,n;let r=`Unexpected syntax '${e}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(e),a=o[1]||void 0,i={},s=/([.:#][\w-]+|\[.+?\])/gi,l=(f,c)=>{i[f]=i[f]||[],i[f].push(c)};for(;;){let f=s.exec(o[2]);if(!f)break;let c=f[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":{let u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(u)l(u[1],(n=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[a,i]}function kr(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function D(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,m=0,g=0;g+=a+f,m+=g>>>16,g&=65535,m+=o+l,u+=m>>>16,m&=65535,u+=r+s,c+=u>>>16,u&=65535,c+=n+i,c&=65535,e[0]=c<<16|u,e[1]=m<<16|g}function k(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,m=0,g=0;g+=a*f,m+=g>>>16,g&=65535,m+=o*f,u+=m>>>16,m&=65535,m+=a*l,u+=m>>>16,m&=65535,u+=r*f,c+=u>>>16,u&=65535,u+=o*l,c+=u>>>16,u&=65535,u+=a*s,c+=u>>>16,u&=65535,c+=n*f+r*l+o*s+a*i,c&=65535,e[0]=c<<16|u,e[1]=m<<16|g}function Z(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function A(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function R(e,t){e[0]^=t[0],e[1]^=t[1]}function Mt(e){let t=[0,e[0]>>>1];R(e,t),k(e,Tr),t[1]=e[0]>>>1,R(e,t),k(e,Nr),t[1]=e[0]>>>1,R(e,t)}function zt(e,t){let n=kr(e);t=t||0;let r=[0,n.length],o=r[1]%16,a=r[1]-o,i=[0,t],s=[0,t],l=[0,0],f=[0,0],c;for(c=0;c<a;c=c+16)l[0]=n[c+4]|n[c+5]<<8|n[c+6]<<16|n[c+7]<<24,l[1]=n[c]|n[c+1]<<8|n[c+2]<<16|n[c+3]<<24,f[0]=n[c+12]|n[c+13]<<8|n[c+14]<<16|n[c+15]<<24,f[1]=n[c+8]|n[c+9]<<8|n[c+10]<<16|n[c+11]<<24,k(l,me),Z(l,31),k(l,ge),R(i,l),Z(i,27),D(i,s),k(i,Lt),D(i,Mr),k(f,ge),Z(f,33),k(f,me),R(s,f),Z(s,31),D(s,i),k(s,Lt),D(s,Lr);l[0]=0,l[1]=0,f[0]=0,f[1]=0;let u=[0,0];switch(o){case 15:u[1]=n[c+14],A(u,48),R(f,u);case 14:u[1]=n[c+13],A(u,40),R(f,u);case 13:u[1]=n[c+12],A(u,32),R(f,u);case 12:u[1]=n[c+11],A(u,24),R(f,u);case 11:u[1]=n[c+10],A(u,16),R(f,u);case 10:u[1]=n[c+9],A(u,8),R(f,u);case 9:u[1]=n[c+8],R(f,u),k(f,ge),Z(f,33),k(f,me),R(s,f);case 8:u[1]=n[c+7],A(u,56),R(l,u);case 7:u[1]=n[c+6],A(u,48),R(l,u);case 6:u[1]=n[c+5],A(u,40),R(l,u);case 5:u[1]=n[c+4],A(u,32),R(l,u);case 4:u[1]=n[c+3],A(u,24),R(l,u);case 3:u[1]=n[c+2],A(u,16),R(l,u);case 2:u[1]=n[c+1],A(u,8),R(l,u);case 1:u[1]=n[c],R(l,u),k(l,me),Z(l,31),k(l,ge),R(i,l)}return R(i,r),R(s,r),D(i,s),D(s,i),Mt(i),Mt(s),D(i,s),D(s,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Fr(e){var t;return v({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
3
+ `)},e)}function Dr(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Bt(e){return typeof e!="function"}function jr(e,t){let n=ee(new Promise(r=>{let o=Date.now();Tt(e.bind(null,t),(...a)=>{let i=Date.now()-o;if(!a[0])return r(()=>({error:a[1],duration:i}));let s=a[1];if(Bt(s))return r(()=>({value:s,duration:i}));r(()=>new Promise(l=>{let f=Date.now();Tt(s,(...c)=>{let u=i+Date.now()-f;if(!c[0])return l({error:c[1],duration:u});l({value:c[1],duration:u})})}))})}));return function(){return n.then(o=>o())}}function Jt(e,t,n,r){let o=Object.keys(e).filter(i=>Ar(n,i)),a=ee(Nt(o,i=>jr(e[i],t),r));return function(){return h(this,null,function*(){let s=yield a,l=yield Nt(s,u=>ee(u()),r),f=yield Promise.all(l),c={};for(let u=0;u<o.length;++u)c[o[u]]=f[u];return c})}}function Vr(e,t){let n=r=>Bt(r)?t(r):()=>{let o=r();return be(o)?o.then(t):t(o)};return r=>{let o=e(r);return be(o)?o.then(n):n(o)}}function Je(){let e=window,t=navigator;return _(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Xt(){let e=window,t=navigator;return _(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Je()}function z(){let e=window,t=navigator;return _(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function T(){let e=window,t=navigator;return _(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function we(){let e=window,{HTMLElement:t,Document:n}=e;return _(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function te(){let e=window;return Dr(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function B(){var e,t;let n=window;return _(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Gr(){let e=window,t=navigator,{CSS:n}=e;return _(["userActivation"in t,n.supports("color","light-dark(#000, #fff)"),n.supports("height","1lh"),"globalPrivacyControl"in t])>=3}function Kt(){let{CSS:e}=window;return _([e.supports("selector(::details-content)"),e.supports("selector(::before::marker)"),e.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function Wr(){let e=window;return _([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function $r(){let e=window,{URLPattern:t}=e;return _(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ur(){let e=window;return _(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function ne(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:r}=e;return _([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function Zr(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return _(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function qt(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Hr(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function ve(){let e=z(),t=B(),n=window,r=navigator,o="connection";return e?_([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?_(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function Qt(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:r}=t;return _(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function Yr(){return Br()?-4:en()}function en(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(zr())return-1;let n=4500,r=5e3,o=new t(1,r,44100),a=o.createOscillator();a.type="triangle",a.frequency.value=1e4;let i=o.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,a.connect(i),i.connect(o.destination),a.start(0);let[s,l]=Jr(o),f=ee(s.then(c=>Xr(c.getChannelData(0).subarray(n)),c=>{if(c.name==="timeout"||c.name==="suspended")return-3;throw c}));return()=>(l(),f)}function zr(){return T()&&!we()&&!Ur()}function Br(){return T()&&ne()&&te()||z()&&Qt()&&$r()}function Jr(e){let a=()=>{};return[new Promise((s,l)=>{let f=!1,c=0,u=0;e.oncomplete=d=>s(d.renderedBuffer);let m=()=>{setTimeout(()=>l(Ft("timeout")),Math.min(500,u+5e3-Date.now()))},g=()=>{try{let d=e.startRendering();switch(be(d)&&ee(d),e.state){case"running":u=Date.now(),f&&m();break;case"suspended":document.hidden||c++,f&&c>=3?l(Ft("suspended")):setTimeout(g,500);break}}catch(d){l(d)}};g(),a=()=>{f||(f=!0,u>0&&m())}}),a]}function Xr(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Ft(e){let t=new Error(e);return t.name=e,t}function Xe(e,t,n=50){return h(this,null,function*(){var r,o,a;let i=document;for(;!i.body;)yield he(n);let s=i.createElement("iframe");try{for(yield new Promise((l,f)=>{let c=!1,u=()=>{c=!0,l()},m=p=>{c=!0,f(p)};s.onload=u,s.onerror=m;let{style:g}=s;g.setProperty("display","block","important"),g.position="absolute",g.top="0",g.left="0",g.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",i.body.appendChild(s);let d=()=>{var p,y;c||(((y=(p=s.contentWindow)===null||p===void 0?void 0:p.document)===null||y===void 0?void 0:y.readyState)==="complete"?u():setTimeout(d,10))};d()});!(!((o=(r=s.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body);)yield he(n);return yield e(s,s.contentWindow)}finally{(a=s.parentNode)===null||a===void 0||a.removeChild(s)}})}function Kr(e){let[t,n]=Or(e),r=document.createElement(t!=null?t:"div");for(let o of Object.keys(n)){let a=n[o].join(" ");o==="style"?qr(r.style,a):r.setAttribute(o,a)}return r}function qr(e,t){for(let n of t.split(";")){let r=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(r){let[,o,a,,i]=r;e.setProperty(o,a,i||"")}}}function Qr(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}function no(){return Xe((n,r)=>h(this,[n,r],function*(e,{document:t}){let o=t.body;o.style.fontSize=to;let a=t.createElement("div");a.style.setProperty("visibility","hidden","important");let i={},s={},l=p=>{let y=t.createElement("span"),{style:b}=y;return b.position="absolute",b.top="0",b.left="0",b.fontFamily=p,y.textContent=eo,a.appendChild(y),y},f=(p,y)=>l(`'${p}',${y}`),c=()=>H.map(l),u=()=>{let p={};for(let y of Dt)p[y]=H.map(b=>f(y,b));return p},m=p=>H.some((y,b)=>p[b].offsetWidth!==i[y]||p[b].offsetHeight!==s[y]),g=c(),d=u();o.appendChild(a);for(let p=0;p<H.length;p++)i[H[p]]=g[p].offsetWidth,s[H[p]]=g[p].offsetHeight;return Dt.filter(p=>m(d[p]))}))}function ro(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(!r)continue;let o=[];for(let a=0;a<r.length;++a){let i=r[a];o.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}return t}function oo(){return tn(fo())}function tn(e){let t=!1,n,r,[o,a]=io();return ao(o,a)?(t=so(a),e?n=r="skipped":[n,r]=co(o,a)):n=r="unsupported",{winding:t,geometry:n,text:r}}function io(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function ao(e,t){return!!(t&&e.toDataURL)}function so(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function co(e,t){uo(e,t);let n=Ue(e),r=Ue(e);return n!==r?["unstable","unstable"]:(lo(e,t),[Ue(e),n])}function uo(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function lo(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,r,o]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(r,o,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function Ue(e){return e.toDataURL()}function fo(){let e=T()&&ne()&&te(),t=B()&&Gr();return e||t}function po(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=Be(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}let r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function mo(){return navigator.oscpu}function go(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))z()&&Wr()||t.push(e.languages);else if(typeof e.languages=="string"){let r=e.languages;r&&t.push(r.split(","))}return t}function yo(){return window.screen.colorDepth}function ho(){return F(N(navigator.deviceMemory),void 0)}function bo(){if(!(T()&&ne()&&te()))return nn()}function nn(){let e=screen,t=r=>F(Be(r),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}function So(){if(Ze!==void 0)return;let e=()=>{let t=Ye();ze(t)?Ze=setTimeout(e,wo):(ye=t,Ze=void 0)};e()}function rn(){return So(),()=>h(this,null,function*(){let e=Ye();if(ze(e)){if(ye)return[...ye];qt()&&(yield Hr(),e=Ye())}return ze(e)||(ye=e),e})}function Ro(){let e=T()&&ne()&&te(),t=B()&&Kt();if(e||t)return()=>Promise.resolve(void 0);let n=rn();return()=>h(this,null,function*(){let r=yield n(),o=a=>a===null?null:Yt(a,vo);return[o(r[0]),o(r[1]),o(r[2]),o(r[3])]})}function Ye(){let e=screen;return[F(N(e.availTop),null),F(N(e.width)-N(e.availWidth)-F(N(e.availLeft),0),null),F(N(e.height)-N(e.availHeight)-F(N(e.availTop),0),null),F(N(e.availLeft),null)]}function ze(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function Po(){let e=on();return e!==void 0&&B()&&Kt()?e>=8?8:4:e}function on(){return F(Be(navigator.hardwareConcurrency),void 0)}function Eo(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let r=new t().resolvedOptions().timeZone;if(r)return r}let n=-_o();return`UTC${n>=0?"+":""}${n}`}function _o(){let e=new Date().getFullYear();return Math.max(N(new Date(e,0,1).getTimezoneOffset()),N(new Date(e,6,1).getTimezoneOffset()))}function Io(){try{return!!window.sessionStorage}catch(e){return!0}}function xo(){try{return!!window.localStorage}catch(e){return!0}}function Co(){if(!(Je()||Xt()))try{return!!window.indexedDB}catch(e){return!0}}function Ao(){return!!window.openDatabase}function Oo(){return navigator.cpuClass}function ko(){let{platform:e}=navigator;return e==="MacIntel"&&T()&&!we()?Zr()?"iPad":"iPhone":e}function To(){return navigator.vendor||""}function No(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function Mo(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function Lo(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Fo(){return h(this,arguments,function*({debug:e}={}){if(!Do())return;let t=Lo(),n=Object.keys(t),r=[].concat(...n.map(i=>t[i])),o=yield jo(r);e&&Vo(t,o);let a=n.filter(i=>{let s=t[i];return _(s.map(f=>o[f]))>s.length*.6});return a.sort(),a})}function Do(){return T()||ve()}function jo(e){return h(this,null,function*(){var t;let n=document,r=n.createElement("div"),o=new Array(e.length),a={};jt(r);for(let i=0;i<e.length;++i){let s=Kr(e[i]);s.tagName==="DIALOG"&&s.show();let l=n.createElement("div");jt(l),l.appendChild(s),r.appendChild(l),o[i]=s}for(;!n.body;)yield he(50);n.body.appendChild(r);try{for(let i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return a})}function jt(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Vo(e,t){let n="DOM blockers debug:\n```";for(let r of Object.keys(e)){n+=`
4
4
  ${r}:`;for(let o of e[r])n+=`
5
5
  ${t[o]?"\u{1F6AB}":"\u27A1\uFE0F"} ${o}`}console.log(`${n}
6
- \`\`\``)}function jo(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function Vo(){if(Vt("inverted"))return!0;if(Vt("none"))return!1}function Vt(e){return matchMedia(`(inverted-colors: ${e})`).matches}function Go(){if(Gt("active"))return!0;if(Gt("none"))return!1}function Gt(e){return matchMedia(`(forced-colors: ${e})`).matches}function $o(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=Wo;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function Uo(){if(Y("no-preference"))return 0;if(Y("high")||Y("more"))return 1;if(Y("low")||Y("less"))return-1;if(Y("forced"))return 10}function Y(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function Zo(){if(Wt("reduce"))return!0;if(Wt("no-preference"))return!1}function Wt(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function Ho(){if($t("reduce"))return!0;if($t("no-preference"))return!1}function $t(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function Yo(){if(Ut("high"))return!0;if(Ut("standard"))return!1}function Ut(e){return matchMedia(`(dynamic-range: ${e})`).matches}function zo(){let e=w.acos||A,t=w.acosh||A,n=w.asin||A,r=w.asinh||A,o=w.atanh||A,a=w.atan||A,i=w.sin||A,c=w.sinh||A,l=w.cos||A,f=w.cosh||A,s=w.tan||A,u=w.tanh||A,m=w.exp||A,g=w.expm1||A,d=w.log1p||A,p=S=>w.pow(w.PI,S),y=S=>w.log(S+w.sqrt(S*S-1)),b=S=>w.log(S+w.sqrt(S*S+1)),P=S=>w.log((1+S)/(1-S))/2,x=S=>w.exp(S)-1/w.exp(S)/2,G=S=>(w.exp(S)+1/w.exp(S))/2,xe=S=>w.exp(S)-1,Ae=S=>(w.exp(2*S)-1)/(w.exp(2*S)+1),Oe=S=>w.log(1+S);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:y(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:b(1),atanh:o(.5),atanhPf:P(.5),atan:a(.5),sin:i(-1e300),sinh:c(1),sinhPf:x(1),cos:l(10.000000000123),cosh:f(1),coshPf:G(1),tan:s(-1e300),tanh:u(1),tanhPf:Ae(1),exp:m(1),expm1:g(1),expm1Pf:xe(1),log1p:d(10),log1pPf:Oe(10),powPI:p(-100)}}function Jo(){return Xo((e,t)=>{let n={},r={};for(let o of Object.keys(He)){let[a={},i=Bo]=He[o],c=e.createElement("span");c.textContent=i,c.style.whiteSpace="nowrap";for(let l of Object.keys(a)){let f=a[l];f!==void 0&&(c.style[l]=f)}n[o]=c,t.append(e.createElement("br"),c)}for(let o of Object.keys(He))r[o]=n[o].getBoundingClientRect().width;return r})}function Xo(e,t=4e3){return Xe((n,r)=>{let o=r.document,a=o.body,i=a.style;i.width=`${t}px`,i.webkitTextSizeAdjust=i.textSizeAdjust="none",z()?a.style.zoom=`${1/r.devicePixelRatio}`:C()&&(a.style.zoom="reset");let c=o.createElement("div");return c.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),a.appendChild(c),e(o,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Ko(){return navigator.pdfViewerEnabled}function qo(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Qo(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(ei())return-3;try{return e.canMakePayments()?1:0}catch(t){return ti(t)}}function ti(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function ni(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}function ci({cache:e}){var t,n,r,o,a,i;let c=Ke(e);if(!c)return an;if(!ln(c))return sn;let l=un()?null:c.getExtension(cn);return{version:((t=c.getParameter(c.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=c.getParameter(c.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=c.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=c.getParameter(c.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:l?(a=c.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||a===void 0?void 0:a.toString():"",shadingLanguageVersion:((i=c.getParameter(c.SHADING_LANGUAGE_VERSION))===null||i===void 0?void 0:i.toString())||""}}function ui({cache:e}){let t=Ke(e);if(!t)return an;if(!ln(t))return sn;let n=t.getSupportedExtensions(),r=t.getContextAttributes(),o=[],a=[],i=[],c=[],l=[];if(r)for(let s of Object.keys(r))a.push(`${s}=${r[s]}`);let f=Zt(t);for(let s of f){let u=t[s];i.push(`${s}=${u}${ri.has(u)?`=${t.getParameter(u)}`:""}`)}if(n)for(let s of n){if(s===cn&&un()||s===si&&di())continue;let u=t.getExtension(s);if(!u){o.push(s);continue}for(let m of Zt(u)){let g=u[m];c.push(`${m}=${g}${oi.has(g)?`=${t.getParameter(g)}`:""}`)}}for(let s of ii)for(let u of ai){let m=li(t,s,u);l.push(`${s}.${u}=${m.join(",")}`)}return c.sort(),i.sort(),{contextAttributes:a,parameters:i,shaderPrecisions:l,extensions:n,extensionParameters:c,unsupportedExtensions:o}}function Ke(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let r of["webgl","experimental-webgl"]){try{n=t.getContext(r)}catch(o){}if(n)break}return e.webgl={context:n},n}function li(e,t,n){let r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Zt(e){return Object.keys(e.__proto__).filter(fi)}function fi(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function un(){return B()}function di(){return z()||C()}function ln(e){return typeof e.getParameter=="function"}function pi(){if(!(ve()||C()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function mi(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}function gi(e){return Jt(fn,e,[])}function hi(e){let t=bi(e),n=wi(t);return{score:t,comment:yi.replace(/\$/g,`${n}`)}}function bi(e){if(ve())return .4;if(C())return we()&&!(ne()&&te())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function wi(e){return Yt(.99+.01*e,1e-4)}function vi(e){let t="";for(let n of Object.keys(e).sort()){let r=e[n],o="error"in r?"error":JSON.stringify(r.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return t}function qe(e){return JSON.stringify(e,(t,n)=>n instanceof Error?Mr(n):n,2)}function Qe(e){return zt(vi(e))}function Si(e){let t,n=hi(e);return{get visitorId(){return t===void 0&&(t=Qe(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:Ht}}function dn(e=50){return _r(e,e*2)}function Ri(e,t){let n=Date.now();return{get(o){return h(this,null,function*(){let a=Date.now(),i=yield e(),c=Si(i);return(t||o!=null&&o.debug)&&console.log(`Copy the text below to get the debug data:
6
+ \`\`\``)}function Go(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function Wo(){if(Vt("inverted"))return!0;if(Vt("none"))return!1}function Vt(e){return matchMedia(`(inverted-colors: ${e})`).matches}function $o(){if(Gt("active"))return!0;if(Gt("none"))return!1}function Gt(e){return matchMedia(`(forced-colors: ${e})`).matches}function Zo(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=Uo;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function Ho(){if(Y("no-preference"))return 0;if(Y("high")||Y("more"))return 1;if(Y("low")||Y("less"))return-1;if(Y("forced"))return 10}function Y(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function Yo(){if(Wt("reduce"))return!0;if(Wt("no-preference"))return!1}function Wt(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function zo(){if($t("reduce"))return!0;if($t("no-preference"))return!1}function $t(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function Bo(){if(Ut("high"))return!0;if(Ut("standard"))return!1}function Ut(e){return matchMedia(`(dynamic-range: ${e})`).matches}function Jo(){let e=w.acos||C,t=w.acosh||C,n=w.asin||C,r=w.asinh||C,o=w.atanh||C,a=w.atan||C,i=w.sin||C,s=w.sinh||C,l=w.cos||C,f=w.cosh||C,c=w.tan||C,u=w.tanh||C,m=w.exp||C,g=w.expm1||C,d=w.log1p||C,p=S=>w.pow(w.PI,S),y=S=>w.log(S+w.sqrt(S*S-1)),b=S=>w.log(S+w.sqrt(S*S+1)),P=S=>w.log((1+S)/(1-S))/2,x=S=>w.exp(S)-1/w.exp(S)/2,G=S=>(w.exp(S)+1/w.exp(S))/2,xe=S=>w.exp(S)-1,Ce=S=>(w.exp(2*S)-1)/(w.exp(2*S)+1),Ae=S=>w.log(1+S);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:y(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:b(1),atanh:o(.5),atanhPf:P(.5),atan:a(.5),sin:i(-1e300),sinh:s(1),sinhPf:x(1),cos:l(10.000000000123),cosh:f(1),coshPf:G(1),tan:c(-1e300),tanh:u(1),tanhPf:Ce(1),exp:m(1),expm1:g(1),expm1Pf:xe(1),log1p:d(10),log1pPf:Ae(10),powPI:p(-100)}}function Ko(){return qo((e,t)=>{let n={},r={};for(let o of Object.keys(He)){let[a={},i=Xo]=He[o],s=e.createElement("span");s.textContent=i,s.style.whiteSpace="nowrap";for(let l of Object.keys(a)){let f=a[l];f!==void 0&&(s.style[l]=f)}n[o]=s,t.append(e.createElement("br"),s)}for(let o of Object.keys(He))r[o]=n[o].getBoundingClientRect().width;return r})}function qo(e,t=4e3){return Xe((n,r)=>{let o=r.document,a=o.body,i=a.style;i.width=`${t}px`,i.webkitTextSizeAdjust=i.textSizeAdjust="none",z()?a.style.zoom=`${1/r.devicePixelRatio}`:T()&&(a.style.zoom="reset");let s=o.createElement("div");return s.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),a.appendChild(s),e(o,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Qo(){return navigator.pdfViewerEnabled}function ei(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ti(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(ni())return-3;try{return e.canMakePayments()?1:0}catch(t){return ri(t)}}function ri(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function oi(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}function li({cache:e}){var t,n,r,o,a,i;let s=Ke(e);if(!s)return an;if(!ln(s))return sn;let l=un()?null:s.getExtension(cn);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=s.getParameter(s.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=s.getParameter(s.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:l?(a=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||a===void 0?void 0:a.toString():"",shadingLanguageVersion:((i=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||i===void 0?void 0:i.toString())||""}}function fi({cache:e}){let t=Ke(e);if(!t)return an;if(!ln(t))return sn;let n=t.getSupportedExtensions(),r=t.getContextAttributes(),o=[],a=[],i=[],s=[],l=[];if(r)for(let c of Object.keys(r))a.push(`${c}=${r[c]}`);let f=Zt(t);for(let c of f){let u=t[c];i.push(`${c}=${u}${ii.has(u)?`=${t.getParameter(u)}`:""}`)}if(n)for(let c of n){if(c===cn&&un()||c===ui&&mi())continue;let u=t.getExtension(c);if(!u){o.push(c);continue}for(let m of Zt(u)){let g=u[m];s.push(`${m}=${g}${ai.has(g)?`=${t.getParameter(g)}`:""}`)}}for(let c of si)for(let u of ci){let m=di(t,c,u);l.push(`${c}.${u}=${m.join(",")}`)}return s.sort(),i.sort(),{contextAttributes:a,parameters:i,shaderPrecisions:l,extensions:n,extensionParameters:s,unsupportedExtensions:o}}function Ke(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let r of["webgl","experimental-webgl"]){try{n=t.getContext(r)}catch(o){}if(n)break}return e.webgl={context:n},n}function di(e,t,n){let r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Zt(e){return Object.keys(e.__proto__).filter(pi)}function pi(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function un(){return B()}function mi(){return z()||T()}function ln(e){return typeof e.getParameter=="function"}function gi(){if(!(ve()||T()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function yi(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}function hi(e){return Jt(fn,e,[])}function wi(e){let t=vi(e),n=Si(t);return{score:t,comment:bi.replace(/\$/g,`${n}`)}}function vi(e){if(ve())return .4;if(T())return we()&&!(ne()&&te())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Si(e){return Yt(.99+.01*e,1e-4)}function Ri(e){let t="";for(let n of Object.keys(e).sort()){let r=e[n],o="error"in r?"error":JSON.stringify(r.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return t}function qe(e){return JSON.stringify(e,(t,n)=>n instanceof Error?Fr(n):n,2)}function Qe(e){return zt(Ri(e))}function Pi(e){let t,n=wi(e);return{get visitorId(){return t===void 0&&(t=Qe(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:Ht}}function dn(e=50){return xr(e,e*2)}function Ei(e,t){let n=Date.now();return{get(o){return h(this,null,function*(){let a=Date.now(),i=yield e(),s=Pi(i);return(t||o!=null&&o.debug)&&console.log(`Copy the text below to get the debug data:
7
7
 
8
8
  \`\`\`
9
- version: ${c.version}
9
+ version: ${s.version}
10
10
  userAgent: ${navigator.userAgent}
11
11
  timeBetweenLoadAndGet: ${a-n}
12
- visitorId: ${c.visitorId}
12
+ visitorId: ${s.visitorId}
13
13
  components: ${qe(i)}
14
- \`\`\``),c})}}}function Pi(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Ht}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function pn(){return h(this,arguments,function*(e={}){let{delayFallback:t,debug:n,monitoring:r=!0}=e;r&&Pi(),yield dn(t);let o=gi({cache:{},debug:n});return Ri(o,n)})}var Ht,kr,Cr,me,ge,Lt,Tr,Nr,qr,Qr,H,Dt,ho,bo,ye,Ze,Wo,w,A,Bo,He,ei,an,sn,ri,oi,ii,ai,cn,si,fn,yi,Ei,_i,gn=rr(()=>{"use strict";Ht="5.1.0";kr=[4283543511,3981806797],Cr=[3301882366,444984403];me=[2277735313,289559509],ge=[1291169091,658871167],Lt=[0,5],Tr=[0,1390208809],Nr=[0,944331445];qr="mmMwWLliI0O&1",Qr="48px",H=["monospace","sans-serif","serif"],Dt=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];ho=2500,bo=10;Wo=100;w=Math,A=()=>0;Bo="mmMwWLliI0fiflO&1",He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};ei=Kr;an=-1,sn=-2,ri=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),oi=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ii=["FRAGMENT_SHADER","VERTEX_SHADER"],ai=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],cn="WEBGL_debug_renderer_info",si="WEBGL_polygon_mode";fn={fonts:eo,domBlockers:Mo,fontPreferences:Jo,audio:Zr,screenFrame:vo,canvas:no,osCpu:fo,languages:po,colorDepth:mo,deviceMemory:go,screenResolution:yo,hardwareConcurrency:So,timezone:Ro,sessionStorage:Eo,localStorage:_o,indexedDB:Io,openDatabase:xo,cpuClass:Ao,platform:Oo,plugins:to,touchSupport:lo,vendor:ko,vendorFlavors:Co,cookiesEnabled:To,colorGamut:jo,invertedColors:Vo,forcedColors:Go,monochrome:$o,contrast:Uo,reducedMotion:Zo,reducedTransparency:Ho,hdr:Yo,math:zo,pdfViewerEnabled:Ko,architecture:qo,applePay:Qo,privateClickMeasurement:ni,audioBaseLatency:pi,dateTimeLocale:mi,webGlBasics:ci,webGlExtensions:ui};yi="$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";Ei={load:pn,hashComponents:Qe,componentsToDebugString:qe},_i=zt});var mt=(r=>(r.ApplePay="APPLE_PAY",r.SamsungPay="SAMSUNG_PAY",r.GooglePay="GOOGLE_PAY",r))(mt||{});var sr=["visa","mastercard"];function q(e){let t=e==null?void 0:e.allowedNetworks;return t&&t.length>0?[...t]:[...sr]}function gt(e){switch(e){case"mastercard":return"masterCard";case"visa":case"amex":return e}}function yt(e){switch(e){case"visa":return"VISA";case"mastercard":return"MASTERCARD";case"amex":return"AMEX"}}function ht(e){switch(e){case"visa":case"mastercard":case"amex":return e}}var Q=function(){return Q=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Q.apply(this,arguments)};function bt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function cr(e,t){return function(n,r){return Object.prototype.hasOwnProperty.call(n,r)}(e,t)?e[t]:void 0}function ur(e,t,n,r){var o,a=document,i="securitypolicyviolation",c=function(f){var s=new URL(e,location.href),u=f.blockedURI;u!==s.href&&u!==s.protocol.slice(0,-1)&&u!==s.origin||(o=f,l())};a.addEventListener(i,c);var l=function(){return a.removeEventListener(i,c)};return r==null||r.then(l,l),Promise.resolve().then(t).then(function(f){return l(),f},function(f){return new Promise(function(s){var u=new MessageChannel;u.port1.onmessage=function(){return s()},u.port2.postMessage(null)}).then(function(){if(l(),o)return n(o);throw f})})}var vt={default:"endpoint"};var St="Blocked by CSP",Rt="The endpoint parameter is not a valid URL";var lr="API key required";var fr="3.11.4",Te="Failed to load the JS script of the agent",Ne="9319";function dr(e,t){var n,r,o,a,i,c,l,f=[],s=(n=function(d){var p=wt([],d,!0);return{current:function(){return p[0]},postpone:function(){var y=p.shift();y!==void 0&&p.push(y)},exclude:function(){p.shift()}}}(e),a=100,i=3e3,c=0,r=function(){return Math.random()*Math.min(i,a*Math.pow(2,c++))},o=new Set,[n.current(),function(d,p){var y,b=p instanceof Error?p.message:"";if(b===St||b===Rt)n.exclude(),y=0;else if(b===Ne)n.exclude();else if(b===Te){var P=Date.now()-d.getTime()<50,x=n.current();x&&P&&!o.has(x)&&(o.add(x),y=0),n.postpone()}else n.postpone();var G=n.current();return G===void 0?void 0:[G,y!=null?y:d.getTime()+r()-Date.now()]}]),u=s[0],m=s[1];if(u===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var g=function(d){var p=new Date,y=function(P){return f.push({url:d,startedAt:p,finishedAt:new Date,error:P})},b=t(d);return b.then(function(){return y()},y),b.catch(function(P){if(l!=null||(l=P),f.length>=5)throw l;var x=m(p,P);if(!x)throw l;var G,xe=x[0],Ae=x[1];return(G=Ae,new Promise(function(Oe){return setTimeout(Oe,G)})).then(function(){return g(xe)})})};return g(u).then(function(d){return[d,f]})}var Pt="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",Et=Pt;function _t(e){var t;e.scriptUrlPattern;var n=e.token,r=e.apiKey,o=r===void 0?n:r,a=bt(e,["scriptUrlPattern","token","apiKey"]),i=(t=cr(e,"scriptUrlPattern"))!==null&&t!==void 0?t:Pt,c=function(){var s=[],u=function(){s.push({time:new Date,state:document.visibilityState})},m=function(g,d,p,y){return g.addEventListener(d,p,y),function(){return g.removeEventListener(d,p,y)}}(document,"visibilitychange",u);return u(),[s,m]}(),l=c[0],f=c[1];return Promise.resolve().then(function(){if(!o||typeof o!="string")throw new Error(lr);var s=function(u,m){return(Array.isArray(u)?u:[u]).map(function(g){return function(d,p){var y=encodeURIComponent;return d.replace(/<[^<>]+>/g,function(b){return b==="<version>"?"3":b==="<apiKey>"?y(p):b==="<loaderVersion>"?y(fr):b})}(String(g),m)})}(i,o);return dr(s,pr)}).catch(function(s){throw f(),function(u){return u instanceof Error&&u.message===Ne?new Error(Te):u}(s)}).then(function(s){var u=s[0],m=s[1];return f(),u.load(Q(Q({},a),{ldi:{attempts:m,visibilityStates:l}}))})}function pr(e){return ur(e,function(){return function(t){return new Promise(function(n,r){if(function(c){if(URL.prototype)try{return new URL(c,location.href),!1}catch(l){if(l instanceof Error&&l.name==="TypeError")return!0;throw l}}(t))throw new Error(Rt);var o=document.createElement("script"),a=function(){var c;return(c=o.parentNode)===null||c===void 0?void 0:c.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){a(),n()},o.onerror=function(){a(),r(new Error(Te))},o.async=!0,o.src=t,i.appendChild(o)})}(e)},function(){throw new Error(St)}).then(mr)}function mr(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(r,o){var a,i=(a=Object.getOwnPropertyDescriptor)===null||a===void 0?void 0:a.call(Object,r,o);i!=null&&i.configurable?delete r[o]:i&&!i.writable||(r[o]=void 0)}(e,t),typeof(n==null?void 0:n.load)!="function")throw new Error(Ne);return n}var xt=pt(De());function L(){return typeof crypto!="undefined"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var vr="https://analytics.stitch.money/query",je={loggingUrl:vr},de={};function Ve(e={}){let r=e,{loggingUrl:t}=r,n=dt(r,["loggingUrl"]);typeof t=="string"&&t.length>0&&(je.loggingUrl=t),de=v(v({sessionId:L()},de),n)}function At(){var e,t,n;return((t=(e=window==null?void 0:window.location)==null?void 0:e.ancestorOrigins)==null?void 0:t.length)>0?Object.values((n=window==null?void 0:window.location)==null?void 0:n.ancestorOrigins).join(","):(document==null?void 0:document.referrer)||void 0}function Ge(e,t){return h(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_EVENT",event:{message:e,metadata:v(v({hostname:At()},de),t)}})})}catch(n){try{yield E("[logEvent] Error logging event",n,t)}catch(r){}}})}function E(e,t,n){return h(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_ERROR",error:{message:e,error:(0,xt.serializeError)(t),metadata:v(v({hostname:At()},de),n)}})})}catch(r){}})}var hn=pt(De());var Sr="~";var Rr=new TextEncoder;function We(e){return h(this,null,function*(){var n;let t=(n=globalThis.crypto)==null?void 0:n.subtle;if(t===void 0)return e;try{let r=yield t.digest("SHA-256",Rr.encode(e)),o=Pr(new Uint8Array(r)).slice(0,12);return`${e}${Sr}${o}`}catch(r){return e}})}function Pr(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/gu,"-").replace(/\//gu,"_").replace(/=+$/u,"")}var $e;function pe(e,t=0){let n=typeof e=="string"?($e!=null?$e:$e=new TextEncoder).encode(e):e,r=n,o=t+374761393&4294967295,a=0;if(r.length>=16){let c=[t+2654435761+2246822519&4294967295,t+2246822519&4294967295,t+0&4294967295,t-2654435761&4294967295],l=n,f=l.length-16,s=0;for(a=0;(a&4294967280)<=f;a+=4){let u=a,m=l[u+0]+(l[u+1]<<8),g=l[u+2]+(l[u+3]<<8),d=m*2246822519+(g*2246822519<<16),p=c[s]+d&4294967295;p=p<<13|p>>>19;let y=p&65535,b=p>>>16;c[s]=y*2654435761+(b*2654435761<<16)&4294967295,s=s+1&3}o=(c[0]<<1|c[0]>>>31)+(c[1]<<7|c[1]>>>25)+(c[2]<<12|c[2]>>>20)+(c[3]<<18|c[3]>>>14)&4294967295}o=o+n.length&4294967295;let i=n.length-4;for(;a<=i;a+=4){let c=a,l=r[c+0]+(r[c+1]<<8),f=r[c+2]+(r[c+3]<<8),s=l*3266489917+(f*3266489917<<16);o=o+s&4294967295,o=o<<17|o>>>15,o=(o&65535)*668265263+((o>>>16)*668265263<<16)&4294967295}for(;a<r.length;++a){let c=r[a];o=o+c*374761393,o=o<<11|o>>>21,o=(o&65535)*2654435761+((o>>>16)*2654435761<<16)&4294967295}return o=o^o>>>15,o=((o&65535)*2246822519&4294967295)+((o>>>16)*2246822519<<16),o=o^o>>>13,o=((o&65535)*3266489917&4294967295)+((o>>>16)*3266489917<<16),o=o^o>>>16,o<0?o+4294967296:o}function Ot(e){let t={};if(e===null||typeof e!="object")return t;for(let[n,r]of Object.entries(e)){if(r===null||typeof r!="object")continue;let{value:o}=r;if(o!==void 0){if(typeof o=="string"||typeof o=="number"){t[n]=o.toString();continue}try{let a=JSON.stringify(o);if(a===void 0)continue;t[n]=pe(a,0).toString()}catch(a){continue}}}return t}var kt="stitch-fp-session-id";function Ct(){try{let e=localStorage.getItem(kt);return e||(e=L(),localStorage.setItem(kt,e)),e}catch(e){return}}var et,tt,re;function yn(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function Ii(e){var r;let t=e.cause,n=t!=null?typeof t=="object"&&"message"in t?t.message:typeof t=="object"?"Unknown cause":String(t):void 0;return v(v(v({message:(r=e.message)!=null?r:"Unknown error",name:e.name},typeof e.code=="string"&&{code:e.code}),typeof e.requestId=="string"&&{requestId:e.requestId}),n&&{cause:n})}function bn(t){return h(this,arguments,function*({config:e}){let n={apiKey:e.publicKey,endpoint:[e.endpoint,vt],scriptUrlPattern:[e.scriptUrlPattern,Et],region:"eu"},r=_t(n);if(e.ossEnabled!==!0)return{proAgent:yield r};let[o,a]=yield Promise.all([r,Promise.resolve().then(()=>(gn(),mn)).then(i=>i.load()).catch(i=>{E("OSS fingerprint agent load failed",i,{source:"fingerprint-stitch"})})]);return v({proAgent:o},a!==void 0&&{ossAgent:a})})}function wn(c){return h(this,arguments,function*({config:e,clientId:t,agent:n,payerId:r,sdkVersion:o,ipAddress:a,ipAddressProof:i}){let l=(e==null?void 0:e.ossEnabled)===!0,f=l?a:void 0,s=l?i:void 0;if((e==null?void 0:e.disabled)===!0){let m={disabled:!0,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:"",visitorId:""}};return btoa(JSON.stringify(m))}if((e==null?void 0:e.disabled)===!1&&(e!=null&&e.useEmulation)&&(t!=null&&t.startsWith("test"))){let m=L().replace(/-/g,"").slice(0,8),g=yield We(m),d=v({disabled:!1,emulated:!0,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:`${Date.now()}.${yn(6)}`,visitorId:yn(20)}},l&&{oss:K(v(v({fingerprintHash:g,rawSignals:{},sessionId:L()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})});return btoa(JSON.stringify(d))}if(n!==void 0&&(e==null?void 0:e.disabled)===!1){let m=Date.now();if(et!==void 0&&tt!==void 0&&re!==void 0&&re.ossEnabled===l&&re.ipAddress===f&&re.ipAddressProof===s&&m-tt<e.cacheDurationInSeconds*1e3)return btoa(JSON.stringify(et));try{let g={linkedId:t,tag:{payerId:r}},d,p;if(l&&n.ossAgent!==void 0){let[P,x]=yield Promise.allSettled([n.proAgent.get(g),n.ossAgent.get()]);if(P.status==="rejected")throw P.reason;d=P.value,x.status==="fulfilled"?p=x.value:E("OSS fingerprint collection failed",x.reason,{source:"fingerprint-stitch"})}else d=yield n.proAgent.get(g);let y;if(p!==void 0)try{if(typeof p.visitorId!="string"||p.visitorId.length===0)throw new Error("OSS fingerprint payload missing visitorId");let P=yield We(p.visitorId);y=K(v(v({fingerprintHash:P,rawSignals:Ot(p.components),sessionId:Ct()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})}catch(P){E("OSS fingerprint payload construction failed",P,{source:"fingerprint-stitch"})}let b=v({disabled:!1,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:d.requestId,visitorId:d.visitorId}},y!==void 0&&{oss:y});return et=b,tt=m,re={ossEnabled:l,ipAddress:f,ipAddressProof:s},btoa(JSON.stringify(b))}catch(g){let d=Ii((0,hn.serializeError)(g)),p=d.name&&d.name!=="Error"?`${d.name}: ${d.message}`:d.message,y={error:v(v(v(v({outcome:"Failed",message:p||"Unknown error"},d.code&&{code:d.code}),d.cause&&{cause:d.cause}),d.requestId&&{requestId:d.requestId}),o&&{sdkVersion:o})};return btoa(JSON.stringify(y))}}let u={error:v({outcome:"Failed",message:"Attempted to get fingerprint data but either runtime config or the agent are not present"},o&&{sdkVersion:o})};return btoa(JSON.stringify(u))})}function xi(e){return typeof e=="number"}function Ai(e){return typeof e=="string"}function Oi(e){return typeof e=="bigint"}function Sn(e){return!!e&&Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e)}function Rn(e){return e!=null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}var Pn=new WeakSet;function oe(e){return Pn.add(e),e}function En(e,t){return oe({type:"object",fields:e,text:t})}function ki(e,t){return oe({type:"array",items:e,text:t})}function Se(e,t){return oe({type:"opaque",value:e,text:t})}function Ci(e,t){return oe({type:"scalar",value:e,text:t})}function _n(e,t){return t!==void 0?oe(K(v({},e),{text:t})):e}function In(e,t){let n=new Map([...e.fields,...t]);return En(n,e.text)}function xn(e){return Pn.has(e)}function Ti(e,t,n){n.add(e);let r=[];for(let o of e)r.push(ot(o,void 0,n));return ki(r,t)}function An(e,t,n){n.add(e);let r=new Map;for(let o of Object.keys(e)){let a=e[o];r.set(o,ot(a,void 0,n))}return En(r,t)}function ot(e,t,n){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e.getMonth=="function"?Ci(e,t):xn(e)?_n(e,t):Array.isArray(e)?n.has(e)?Se("<circular ref>",t):Ti(e,t,n):Rn(e)?n.has(e)?Se("<circular ref>",t):An(e,t,n):Se(typeof e=="function"?"<function>":"???",t)}function W(e,t){return ot(e,t,new WeakSet)}function On(e,t){return An(e,t,new WeakSet)}var $=" ";function nt(e){return e.indexOf(`
14
+ \`\`\``),s})}}}function _i(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Ht}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function pn(){return h(this,arguments,function*(e={}){let{delayFallback:t,debug:n,monitoring:r=!0}=e;r&&_i(),yield dn(t);let o=hi({cache:{},debug:n});return Ei(o,n)})}var Ht,Tr,Nr,me,ge,Lt,Mr,Lr,eo,to,H,Dt,wo,vo,ye,Ze,Uo,w,C,Xo,He,ni,an,sn,ii,ai,si,ci,cn,ui,fn,bi,Ii,xi,gn=ir(()=>{"use strict";Ht="5.1.0";Tr=[4283543511,3981806797],Nr=[3301882366,444984403];me=[2277735313,289559509],ge=[1291169091,658871167],Lt=[0,5],Mr=[0,1390208809],Lr=[0,944331445];eo="mmMwWLliI0O&1",to="48px",H=["monospace","sans-serif","serif"],Dt=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];wo=2500,vo=10;Uo=100;w=Math,C=()=>0;Xo="mmMwWLliI0fiflO&1",He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};ni=Qr;an=-1,sn=-2,ii=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),ai=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),si=["FRAGMENT_SHADER","VERTEX_SHADER"],ci=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],cn="WEBGL_debug_renderer_info",ui="WEBGL_polygon_mode";fn={fonts:no,domBlockers:Fo,fontPreferences:Ko,audio:Yr,screenFrame:Ro,canvas:oo,osCpu:mo,languages:go,colorDepth:yo,deviceMemory:ho,screenResolution:bo,hardwareConcurrency:Po,timezone:Eo,sessionStorage:Io,localStorage:xo,indexedDB:Co,openDatabase:Ao,cpuClass:Oo,platform:ko,plugins:ro,touchSupport:po,vendor:To,vendorFlavors:No,cookiesEnabled:Mo,colorGamut:Go,invertedColors:Wo,forcedColors:$o,monochrome:Zo,contrast:Ho,reducedMotion:Yo,reducedTransparency:zo,hdr:Bo,math:Jo,pdfViewerEnabled:Qo,architecture:ei,applePay:ti,privateClickMeasurement:oi,audioBaseLatency:gi,dateTimeLocale:yi,webGlBasics:li,webGlExtensions:fi};bi="$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";Ii={load:pn,hashComponents:Qe,componentsToDebugString:qe},xi=zt});var mt=(r=>(r.ApplePay="APPLE_PAY",r.SamsungPay="SAMSUNG_PAY",r.GooglePay="GOOGLE_PAY",r))(mt||{});var ur=["visa","mastercard"];function q(e){let t=e==null?void 0:e.allowedNetworks;return t&&t.length>0?[...t]:[...ur]}function gt(e){switch(e){case"mastercard":return"masterCard";case"visa":case"amex":return e}}function yt(e){switch(e){case"visa":return"VISA";case"mastercard":return"MASTERCARD";case"amex":return"AMEX"}}function ht(e){switch(e){case"visa":case"mastercard":case"amex":return e}}var Q=function(){return Q=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Q.apply(this,arguments)};function bt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function lr(e,t){return function(n,r){return Object.prototype.hasOwnProperty.call(n,r)}(e,t)?e[t]:void 0}function fr(e,t,n,r){var o,a=document,i="securitypolicyviolation",s=function(f){var c=new URL(e,location.href),u=f.blockedURI;u!==c.href&&u!==c.protocol.slice(0,-1)&&u!==c.origin||(o=f,l())};a.addEventListener(i,s);var l=function(){return a.removeEventListener(i,s)};return r==null||r.then(l,l),Promise.resolve().then(t).then(function(f){return l(),f},function(f){return new Promise(function(c){var u=new MessageChannel;u.port1.onmessage=function(){return c()},u.port2.postMessage(null)}).then(function(){if(l(),o)return n(o);throw f})})}var vt={default:"endpoint"};var St="Blocked by CSP",Rt="The endpoint parameter is not a valid URL";var dr="API key required";var pr="3.11.4",Te="Failed to load the JS script of the agent",Ne="9319";function mr(e,t){var n,r,o,a,i,s,l,f=[],c=(n=function(d){var p=wt([],d,!0);return{current:function(){return p[0]},postpone:function(){var y=p.shift();y!==void 0&&p.push(y)},exclude:function(){p.shift()}}}(e),a=100,i=3e3,s=0,r=function(){return Math.random()*Math.min(i,a*Math.pow(2,s++))},o=new Set,[n.current(),function(d,p){var y,b=p instanceof Error?p.message:"";if(b===St||b===Rt)n.exclude(),y=0;else if(b===Ne)n.exclude();else if(b===Te){var P=Date.now()-d.getTime()<50,x=n.current();x&&P&&!o.has(x)&&(o.add(x),y=0),n.postpone()}else n.postpone();var G=n.current();return G===void 0?void 0:[G,y!=null?y:d.getTime()+r()-Date.now()]}]),u=c[0],m=c[1];if(u===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var g=function(d){var p=new Date,y=function(P){return f.push({url:d,startedAt:p,finishedAt:new Date,error:P})},b=t(d);return b.then(function(){return y()},y),b.catch(function(P){if(l!=null||(l=P),f.length>=5)throw l;var x=m(p,P);if(!x)throw l;var G,xe=x[0],Ce=x[1];return(G=Ce,new Promise(function(Ae){return setTimeout(Ae,G)})).then(function(){return g(xe)})})};return g(u).then(function(d){return[d,f]})}var Pt="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",Et=Pt;function _t(e){var t;e.scriptUrlPattern;var n=e.token,r=e.apiKey,o=r===void 0?n:r,a=bt(e,["scriptUrlPattern","token","apiKey"]),i=(t=lr(e,"scriptUrlPattern"))!==null&&t!==void 0?t:Pt,s=function(){var c=[],u=function(){c.push({time:new Date,state:document.visibilityState})},m=function(g,d,p,y){return g.addEventListener(d,p,y),function(){return g.removeEventListener(d,p,y)}}(document,"visibilitychange",u);return u(),[c,m]}(),l=s[0],f=s[1];return Promise.resolve().then(function(){if(!o||typeof o!="string")throw new Error(dr);var c=function(u,m){return(Array.isArray(u)?u:[u]).map(function(g){return function(d,p){var y=encodeURIComponent;return d.replace(/<[^<>]+>/g,function(b){return b==="<version>"?"3":b==="<apiKey>"?y(p):b==="<loaderVersion>"?y(pr):b})}(String(g),m)})}(i,o);return mr(c,gr)}).catch(function(c){throw f(),function(u){return u instanceof Error&&u.message===Ne?new Error(Te):u}(c)}).then(function(c){var u=c[0],m=c[1];return f(),u.load(Q(Q({},a),{ldi:{attempts:m,visibilityStates:l}}))})}function gr(e){return fr(e,function(){return function(t){return new Promise(function(n,r){if(function(s){if(URL.prototype)try{return new URL(s,location.href),!1}catch(l){if(l instanceof Error&&l.name==="TypeError")return!0;throw l}}(t))throw new Error(Rt);var o=document.createElement("script"),a=function(){var s;return(s=o.parentNode)===null||s===void 0?void 0:s.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){a(),n()},o.onerror=function(){a(),r(new Error(Te))},o.async=!0,o.src=t,i.appendChild(o)})}(e)},function(){throw new Error(St)}).then(yr)}function yr(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(r,o){var a,i=(a=Object.getOwnPropertyDescriptor)===null||a===void 0?void 0:a.call(Object,r,o);i!=null&&i.configurable?delete r[o]:i&&!i.writable||(r[o]=void 0)}(e,t),typeof(n==null?void 0:n.load)!="function")throw new Error(Ne);return n}var xt=pt(De());function L(){return typeof crypto!="undefined"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var Rr="https://analytics.stitch.money/query",je={loggingUrl:Rr},de={};function Ve(e={}){let r=e,{loggingUrl:t}=r,n=dt(r,["loggingUrl"]);typeof t=="string"&&t.length>0&&(je.loggingUrl=t),de=v(v({sessionId:L()},de),n)}function Ct(){var e,t,n;return((t=(e=window==null?void 0:window.location)==null?void 0:e.ancestorOrigins)==null?void 0:t.length)>0?Object.values((n=window==null?void 0:window.location)==null?void 0:n.ancestorOrigins).join(","):(document==null?void 0:document.referrer)||void 0}function Ge(e,t){return h(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_EVENT",event:{message:e,metadata:v(v({hostname:Ct()},de),t)}})})}catch(n){try{yield E("[logEvent] Error logging event",n,t)}catch(r){}}})}function E(e,t,n){return h(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_ERROR",error:{message:e,error:(0,xt.serializeError)(t),metadata:v(v({hostname:Ct()},de),n)}})})}catch(r){}})}var hn=pt(De());var Pr="~";var Er=new TextEncoder;function We(e){return h(this,null,function*(){var n;let t=(n=globalThis.crypto)==null?void 0:n.subtle;if(t===void 0)return e;try{let r=yield t.digest("SHA-256",Er.encode(e)),o=_r(new Uint8Array(r)).slice(0,12);return`${e}${Pr}${o}`}catch(r){return e}})}function _r(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/gu,"-").replace(/\//gu,"_").replace(/=+$/u,"")}var $e;function pe(e,t=0){let n=typeof e=="string"?($e!=null?$e:$e=new TextEncoder).encode(e):e,r=n,o=t+374761393&4294967295,a=0;if(r.length>=16){let s=[t+2654435761+2246822519&4294967295,t+2246822519&4294967295,t+0&4294967295,t-2654435761&4294967295],l=n,f=l.length-16,c=0;for(a=0;(a&4294967280)<=f;a+=4){let u=a,m=l[u+0]+(l[u+1]<<8),g=l[u+2]+(l[u+3]<<8),d=m*2246822519+(g*2246822519<<16),p=s[c]+d&4294967295;p=p<<13|p>>>19;let y=p&65535,b=p>>>16;s[c]=y*2654435761+(b*2654435761<<16)&4294967295,c=c+1&3}o=(s[0]<<1|s[0]>>>31)+(s[1]<<7|s[1]>>>25)+(s[2]<<12|s[2]>>>20)+(s[3]<<18|s[3]>>>14)&4294967295}o=o+n.length&4294967295;let i=n.length-4;for(;a<=i;a+=4){let s=a,l=r[s+0]+(r[s+1]<<8),f=r[s+2]+(r[s+3]<<8),c=l*3266489917+(f*3266489917<<16);o=o+c&4294967295,o=o<<17|o>>>15,o=(o&65535)*668265263+((o>>>16)*668265263<<16)&4294967295}for(;a<r.length;++a){let s=r[a];o=o+s*374761393,o=o<<11|o>>>21,o=(o&65535)*2654435761+((o>>>16)*2654435761<<16)&4294967295}return o=o^o>>>15,o=((o&65535)*2246822519&4294967295)+((o>>>16)*2246822519<<16),o=o^o>>>13,o=((o&65535)*3266489917&4294967295)+((o>>>16)*3266489917<<16),o=o^o>>>16,o<0?o+4294967296:o}function At(e){let t={};if(e===null||typeof e!="object")return t;for(let[n,r]of Object.entries(e)){if(r===null||typeof r!="object")continue;let{value:o}=r;if(o!==void 0){if(typeof o=="string"||typeof o=="number"){t[n]=o.toString();continue}try{let a=JSON.stringify(o);if(a===void 0)continue;t[n]=pe(a,0).toString()}catch(a){continue}}}return t}var Ot="stitch-fp-session-id";function kt(){try{let e=localStorage.getItem(Ot);return e||(e=L(),localStorage.setItem(Ot,e)),e}catch(e){return}}var et,tt,re;function yn(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function Ci(e){var r;let t=e.cause,n=t!=null?typeof t=="object"&&"message"in t?t.message:typeof t=="object"?"Unknown cause":String(t):void 0;return v(v(v({message:(r=e.message)!=null?r:"Unknown error",name:e.name},typeof e.code=="string"&&{code:e.code}),typeof e.requestId=="string"&&{requestId:e.requestId}),n&&{cause:n})}function bn(t){return h(this,arguments,function*({config:e}){let n={apiKey:e.publicKey,endpoint:[e.endpoint,vt],scriptUrlPattern:[e.scriptUrlPattern,Et],region:"eu"},r=_t(n);if(e.ossEnabled!==!0)return{proAgent:yield r};let[o,a]=yield Promise.all([r,Promise.resolve().then(()=>(gn(),mn)).then(i=>i.load()).catch(i=>{E("OSS fingerprint agent load failed",i,{source:"fingerprint-stitch"})})]);return v({proAgent:o},a!==void 0&&{ossAgent:a})})}function wn(s){return h(this,arguments,function*({config:e,clientId:t,agent:n,payerId:r,sdkVersion:o,ipAddress:a,ipAddressProof:i}){let l=(e==null?void 0:e.ossEnabled)===!0,f=l?a:void 0,c=l?i:void 0;if((e==null?void 0:e.disabled)===!0){let m={disabled:!0,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:"",visitorId:""}};return btoa(JSON.stringify(m))}if((e==null?void 0:e.disabled)===!1&&(e!=null&&e.useEmulation)&&(t!=null&&t.startsWith("test"))){let m=L().replace(/-/g,"").slice(0,8),g=yield We(m),d=v({disabled:!1,emulated:!0,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:`${Date.now()}.${yn(6)}`,visitorId:yn(20)}},l&&{oss:K(v(v({fingerprintHash:g,rawSignals:{},sessionId:L()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})});return btoa(JSON.stringify(d))}if(n!==void 0&&(e==null?void 0:e.disabled)===!1){let m=Date.now();if(et!==void 0&&tt!==void 0&&re!==void 0&&re.ossEnabled===l&&re.ipAddress===f&&re.ipAddressProof===c&&m-tt<e.cacheDurationInSeconds*1e3)return btoa(JSON.stringify(et));try{let g={linkedId:t,tag:{payerId:r}},d,p;if(l&&n.ossAgent!==void 0){let[P,x]=yield Promise.allSettled([n.proAgent.get(g),n.ossAgent.get()]);if(P.status==="rejected")throw P.reason;d=P.value,x.status==="fulfilled"?p=x.value:E("OSS fingerprint collection failed",x.reason,{source:"fingerprint-stitch"})}else d=yield n.proAgent.get(g);let y;if(p!==void 0)try{if(typeof p.visitorId!="string"||p.visitorId.length===0)throw new Error("OSS fingerprint payload missing visitorId");let P=yield We(p.visitorId);y=K(v(v({fingerprintHash:P,rawSignals:At(p.components),sessionId:kt()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})}catch(P){E("OSS fingerprint payload construction failed",P,{source:"fingerprint-stitch"})}let b=v({disabled:!1,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:d.requestId,visitorId:d.visitorId}},y!==void 0&&{oss:y});return et=b,tt=m,re={ossEnabled:l,ipAddress:f,ipAddressProof:c},btoa(JSON.stringify(b))}catch(g){let d=Ci((0,hn.serializeError)(g)),p=d.name&&d.name!=="Error"?`${d.name}: ${d.message}`:d.message,y={error:v(v(v(v({outcome:"Failed",message:p||"Unknown error"},d.code&&{code:d.code}),d.cause&&{cause:d.cause}),d.requestId&&{requestId:d.requestId}),o&&{sdkVersion:o})};return btoa(JSON.stringify(y))}}let u={error:v({outcome:"Failed",message:"Attempted to get fingerprint data but either runtime config or the agent are not present"},o&&{sdkVersion:o})};return btoa(JSON.stringify(u))})}function Ai(e){return typeof e=="number"}function Oi(e){return typeof e=="string"}function ki(e){return typeof e=="bigint"}function Sn(e){return!!e&&Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e)}function Rn(e){return e!=null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}var Pn=new WeakSet;function oe(e){return Pn.add(e),e}function En(e,t){return oe({type:"object",fields:e,text:t})}function Ti(e,t){return oe({type:"array",items:e,text:t})}function Se(e,t){return oe({type:"opaque",value:e,text:t})}function Ni(e,t){return oe({type:"scalar",value:e,text:t})}function _n(e,t){return t!==void 0?oe(K(v({},e),{text:t})):e}function In(e,t){let n=new Map([...e.fields,...t]);return En(n,e.text)}function xn(e){return Pn.has(e)}function Mi(e,t,n){n.add(e);let r=[];for(let o of e)r.push(ot(o,void 0,n));return Ti(r,t)}function Cn(e,t,n){n.add(e);let r=new Map;for(let o of Object.keys(e)){let a=e[o];r.set(o,ot(a,void 0,n))}return En(r,t)}function ot(e,t,n){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e.getMonth=="function"?Ni(e,t):xn(e)?_n(e,t):Array.isArray(e)?n.has(e)?Se("<circular ref>",t):Mi(e,t,n):Rn(e)?n.has(e)?Se("<circular ref>",t):Cn(e,t,n):Se(typeof e=="function"?"<function>":"???",t)}function W(e,t){return ot(e,t,new WeakSet)}function An(e,t){return Cn(e,t,new WeakSet)}var $=" ";function nt(e){return e.indexOf(`
15
15
  `)>=0}function it(e,t=$){return nt(e)?e.split(`
16
16
  `).map(n=>`${t}${n}`).join(`
17
- `):`${t}${e}`}var Ni=/'/g;function U(e){return typeof e=="string"?"'"+e.replace(Ni,"\\'")+"'":JSON.stringify(e)}function Re(e,t=[]){let n=[];if(e.type==="array"){let a=e.items,i=0;for(let c of a)for(let l of Re(c,[...t,i++]))n.push(l)}else if(e.type==="object"){let a=e.fields;for(let[i,c]of a)for(let l of Re(c,[...t,i]))n.push(l)}let r=e.text;if(!r)return n;let o;return t.length===0?o="":t.length===1?o=typeof t[0]=="number"?`Value at index ${t[0]}: `:`Value at key ${U(t[0])}: `:o=`Value at keypath ${U(t.map(String).join("."))}: `,[...n,`${o}${r}`]}function Mi(e,t=80){let n=JSON.stringify(e);if(n.length<=t)return n;let r=`${e.substring(0,t-15)}...`;return n=`${JSON.stringify(r)} [truncated]`,n}function Li(e,t){let{items:n}=e;if(n.length===0)return"[]";let r=[];for(let o of n){let[a,i]=at(o,`${t}${$}`);r.push(`${t}${$}${a},`),i!==void 0&&r.push(it(i,`${t}${$}`))}return["[",...r,`${t}]`].join(`
18
- `)}function Fi(e,t){let{fields:n}=e;if(n.size===0)return"{}";let r=[];for(let[o,a]of n){let i=kn(o),c=`${t}${$}${" ".repeat(i.length+2)}`,[l,f]=at(a,`${t}${$}`);r.push(`${t}${$}${i}: ${l},`),f!==void 0&&r.push(it(f,c))}return["{",...r,`${t}}`].join(`
19
- `)}function kn(e){return typeof e=="string"?Mi(e):typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"?e.toString():e===null?"null":e===void 0?"undefined":Sn(e)?`new Date(${U(e.toISOString())})`:e instanceof Date?"(Invalid Date)":"(unserializable)"}function at(e,t=""){let n;e.type==="array"?n=Li(e,t):e.type==="object"?n=Fi(e,t):e.type==="scalar"?n=kn(e.value):n=e.value;let r=e.text;if(r!==void 0){let o="^".repeat(nt(n)?1:n.length);return[n,[o,r].join(nt(r)?`
20
- `:" ")]}else return[n,void 0]}function Di(e){let[t,n]=at(e);return n!==void 0?`${t}
21
- ${n}`:t}function ji(e){return Re(e,[]).join(`
22
- `)}function Cn(e){return{ok:!0,value:e,error:void 0}}function Tn(e){return{ok:!1,value:void 0,error:e}}function Vi(e){return t=>{try{let n=e(t);return Cn(n)}catch(n){return Tn(W(t,n instanceof Error?n.message:String(n)))}}}function Gi(e,t){let n=t(e);if(typeof n=="string"){let r=new Error(`
23
- ${n}`);return r.name="Decoding error",r}else return n}function I(e){function t(s){return e(s,Cn,u=>Tn(xn(u)?u:W(s,u)))}function n(s,u=Di){let m=t(s);if(m.ok)return m.value;throw Gi(m.error,u)}function r(s){return t(s).value}function o(s){return i(Vi(s))}function a(s,u){return l(m=>s(m)?null:u)}function i(s){return I((u,m,g)=>{let d=t(u);if(!d.ok)return d;let p=vn(s)?s:s(d.value,m,g);return vn(p)?p.decode(d.value):p})}function c(s){return i(s)}function l(s){return i((u,m,g)=>{let d=s(u);return d===null?m(u):g(typeof d=="string"?W(u,d):d)})}function f(s){return I((u,m,g)=>{let d=t(u);return d.ok?d:g(W(d.error,s))})}return Wi({verify:n,value:r,decode:t,transform:o,refine:a,reject:l,describe:f,then:i,pipe:c})}var Nn=new WeakSet;function Wi(e){return Nn.add(e),e}function vn(e){return Nn.has(e)}var $i=I((e,t,n)=>Array.isArray(e)?t(e):n("Must be an array"));function Ui(e,t,n,r){let o=[];for(let a=0;a<e.length;++a){let i=e[a];if(i.ok)o.push(i.value);else{let c=i.error,l=t.slice();return l.splice(a,1,W(c,c.text?`${c.text} (at index ${a})`:`index ${a}`)),r(W(l))}}return n(o)}function st(e){let t=e.decode;return $i.then((n,r,o)=>{let a=n.map(t);return Ui(a,n,r,o)})}function Zi(e){return I((t,n,r)=>t instanceof e?n(t):r(`Must be ${e.name} instance`))}function Mn(e){return I(t=>e().decode(t))}function Hi(e,t){let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}var Ln=I((e,t,n)=>Rn(e)?t(e):n("Must be an object"));function J(e){let t=new Set(Object.keys(e));return Ln.then((n,r,o)=>{let a=new Set(Object.keys(n)),i=Hi(t,a),c={},l=null;for(let f of Object.keys(e)){let s=e[f],u=n[f],m=s.decode(u);if(m.ok){let g=m.value;g!==void 0&&(c[f]=g),i.delete(f)}else{let g=m.error;u===void 0?i.add(f):(l===null&&(l=new Map),l.set(f,g))}}if(l||i.size>0){let f=On(n);if(l&&(f=In(f,l)),i.size>0){let s=Array.from(i).map(U).join(", "),u=i.size>1?"keys":"key";f=_n(f,`Missing ${u}: ${s}`)}return o(f)}return r(c)})}var rt=`Either:
24
- `;function Yi(e){return`-${it(e).substring(1)}`}function zi(e){return e.startsWith(rt)?e.substring(rt.length):Yi(e)}function ie(...e){if(e.length===0)throw new Error("Pass at least one decoder to either()");return I((t,n,r)=>{let o=[];for(let i=0;i<e.length;i++){let c=e[i].decode(t);if(c.ok)return c;o.push(c.error)}let a=rt+o.map(i=>zi(Re(i).join(`
17
+ `):`${t}${e}`}var Li=/'/g;function U(e){return typeof e=="string"?"'"+e.replace(Li,"\\'")+"'":JSON.stringify(e)}function Re(e,t=[]){let n=[];if(e.type==="array"){let a=e.items,i=0;for(let s of a)for(let l of Re(s,[...t,i++]))n.push(l)}else if(e.type==="object"){let a=e.fields;for(let[i,s]of a)for(let l of Re(s,[...t,i]))n.push(l)}let r=e.text;if(!r)return n;let o;return t.length===0?o="":t.length===1?o=typeof t[0]=="number"?`Value at index ${t[0]}: `:`Value at key ${U(t[0])}: `:o=`Value at keypath ${U(t.map(String).join("."))}: `,[...n,`${o}${r}`]}function Fi(e,t=80){let n=JSON.stringify(e);if(n.length<=t)return n;let r=`${e.substring(0,t-15)}...`;return n=`${JSON.stringify(r)} [truncated]`,n}function Di(e,t){let{items:n}=e;if(n.length===0)return"[]";let r=[];for(let o of n){let[a,i]=at(o,`${t}${$}`);r.push(`${t}${$}${a},`),i!==void 0&&r.push(it(i,`${t}${$}`))}return["[",...r,`${t}]`].join(`
18
+ `)}function ji(e,t){let{fields:n}=e;if(n.size===0)return"{}";let r=[];for(let[o,a]of n){let i=On(o),s=`${t}${$}${" ".repeat(i.length+2)}`,[l,f]=at(a,`${t}${$}`);r.push(`${t}${$}${i}: ${l},`),f!==void 0&&r.push(it(f,s))}return["{",...r,`${t}}`].join(`
19
+ `)}function On(e){return typeof e=="string"?Fi(e):typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"?e.toString():e===null?"null":e===void 0?"undefined":Sn(e)?`new Date(${U(e.toISOString())})`:e instanceof Date?"(Invalid Date)":"(unserializable)"}function at(e,t=""){let n;e.type==="array"?n=Di(e,t):e.type==="object"?n=ji(e,t):e.type==="scalar"?n=On(e.value):n=e.value;let r=e.text;if(r!==void 0){let o="^".repeat(nt(n)?1:n.length);return[n,[o,r].join(nt(r)?`
20
+ `:" ")]}else return[n,void 0]}function Vi(e){let[t,n]=at(e);return n!==void 0?`${t}
21
+ ${n}`:t}function Gi(e){return Re(e,[]).join(`
22
+ `)}function kn(e){return{ok:!0,value:e,error:void 0}}function Tn(e){return{ok:!1,value:void 0,error:e}}function Wi(e){return t=>{try{let n=e(t);return kn(n)}catch(n){return Tn(W(t,n instanceof Error?n.message:String(n)))}}}function $i(e,t){let n=t(e);if(typeof n=="string"){let r=new Error(`
23
+ ${n}`);return r.name="Decoding error",r}else return n}function I(e){function t(c){return e(c,kn,u=>Tn(xn(u)?u:W(c,u)))}function n(c,u=Vi){let m=t(c);if(m.ok)return m.value;throw $i(m.error,u)}function r(c){return t(c).value}function o(c){return i(Wi(c))}function a(c,u){return l(m=>c(m)?null:u)}function i(c){return I((u,m,g)=>{let d=t(u);if(!d.ok)return d;let p=vn(c)?c:c(d.value,m,g);return vn(p)?p.decode(d.value):p})}function s(c){return i(c)}function l(c){return i((u,m,g)=>{let d=c(u);return d===null?m(u):g(typeof d=="string"?W(u,d):d)})}function f(c){return I((u,m,g)=>{let d=t(u);return d.ok?d:g(W(d.error,c))})}return Ui({verify:n,value:r,decode:t,transform:o,refine:a,reject:l,describe:f,then:i,pipe:s})}var Nn=new WeakSet;function Ui(e){return Nn.add(e),e}function vn(e){return Nn.has(e)}var Zi=I((e,t,n)=>Array.isArray(e)?t(e):n("Must be an array"));function Hi(e,t,n,r){let o=[];for(let a=0;a<e.length;++a){let i=e[a];if(i.ok)o.push(i.value);else{let s=i.error,l=t.slice();return l.splice(a,1,W(s,s.text?`${s.text} (at index ${a})`:`index ${a}`)),r(W(l))}}return n(o)}function st(e){let t=e.decode;return Zi.then((n,r,o)=>{let a=n.map(t);return Hi(a,n,r,o)})}function Yi(e){return I((t,n,r)=>t instanceof e?n(t):r(`Must be ${e.name} instance`))}function Mn(e){return I(t=>e().decode(t))}function zi(e,t){let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}var Ln=I((e,t,n)=>Rn(e)?t(e):n("Must be an object"));function J(e){let t=new Set(Object.keys(e));return Ln.then((n,r,o)=>{let a=new Set(Object.keys(n)),i=zi(t,a),s={},l=null;for(let f of Object.keys(e)){let c=e[f],u=n[f],m=c.decode(u);if(m.ok){let g=m.value;g!==void 0&&(s[f]=g),i.delete(f)}else{let g=m.error;u===void 0?i.add(f):(l===null&&(l=new Map),l.set(f,g))}}if(l||i.size>0){let f=An(n);if(l&&(f=In(f,l)),i.size>0){let c=Array.from(i).map(U).join(", "),u=i.size>1?"keys":"key";f=_n(f,`Missing ${u}: ${c}`)}return o(f)}return r(s)})}var rt=`Either:
24
+ `;function Bi(e){return`-${it(e).substring(1)}`}function Ji(e){return e.startsWith(rt)?e.substring(rt.length):Bi(e)}function ie(...e){if(e.length===0)throw new Error("Pass at least one decoder to either()");return I((t,n,r)=>{let o=[];for(let i=0;i<e.length;i++){let s=e[i].decode(t);if(s.ok)return s;o.push(s.error)}let a=rt+o.map(i=>Ji(Re(i).join(`
25
25
  `))).join(`
26
- `);return r(a)})}function Fn(e){return I((t,n,r)=>{let o=e.find(a=>a===t);return o!==void 0?n(o):r(`Must be one of ${e.map(a=>U(a)).join(", ")}`)})}function Dn(e){return typeof e=="function"?e():e}var Bi=jn(null),Ji=jn(void 0),Xi=I((e,t,n)=>e==null?t(e):n("Must be undefined or null"));function Pe(e,t){let n=ie(Ji,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function ct(e,t){let n=ie(Xi,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function jn(e){return I((t,n,r)=>t===e?n(e):r(`Must be ${typeof e=="symbol"?String(e):U(e)}`))}var Ua=I((e,t,n)=>t(e));var ae=I((e,t,n)=>typeof e=="boolean"?t(e):n("Must be boolean")),Za=I((e,t,n)=>t(!!e));function Ki(e,t){let n=t!==void 0?e:void 0,r=t!==void 0?t:e;return Ln.then((o,a,i)=>{var f;let c={},l=new Map;for(let s of Object.keys(o)){let u=o[s],m=n==null?void 0:n.decode(s);if((m==null?void 0:m.ok)===!1)return i(W(o,`Invalid key ${U(s)}: ${ji(m.error)}`));let g=(f=m==null?void 0:m.value)!=null?f:s,d=r.decode(u);d.ok?l.size===0&&(c[g]=d.value):(l.set(s,d.error),c={})}return l.size>0?i(In(On(o),l)):a(c)})}var qi=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,/\w]*)?(?:#[.,!/\w]*)?)?$/,Vn=I((e,t,n)=>Ai(e)?t(e):n("Must be string")),j=V(/\S/,"Must be non-empty string");function V(e,t){return Vn.refine(n=>e.test(n),t)}var Ha=V(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Must be email"),Qi=ie(V(qi,"Must be URL").transform(e=>new URL(e)),Zi(URL)),Ya=Qi.refine(e=>e.protocol==="https:","Must be an HTTPS URL"),za=V(/^[a-z_][a-z0-9_]*$/i,"Must be valid identifier");var Gn=V(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,"Must be uuid"),Ba=Gn.refine(e=>e[14]==="1","Must be uuidv1"),Ja=Gn.refine(e=>e[14]==="4","Must be uuidv4"),ea=V(/^[0-9]+$/,"Must only contain digits"),Xa=V(/^[0-9a-f]+$/i,"Must only contain hexadecimal digits"),Ka=ea.transform(Number),ta=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:[.]\d+)?(?:Z|[+-]\d{2}:?\d{2})$/,na=I((e,t,n)=>Sn(e)?t(e):n("Must be a Date")),ra=V(ta,"Must be ISO8601 format").transform(e=>{let t=new Date(e);if(isNaN(t.getTime()))throw new Error("Must be valid date/time value");return t}),qa=ie(na,ra).describe("Must be a Date or date string"),oa=I((e,t,n)=>xi(e)?t(e):n("Must be number")),se=oa.refine(e=>Number.isFinite(e),"Number must be finite"),ia=se.refine(e=>Number.isInteger(e),"Number must be an integer"),Wn=se.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),Qa=ia.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),es=I((e,t,n)=>Oi(e)?t(e):n("Must be bigint")),aa=Mn(()=>Ki($n)),sa=Mn(()=>st($n)),$n=ie(Bi,Vn,se,ae,aa,sa).describe("Must be valid JSON value");var Ee=3,Un=500,ca=Fn(["visa","mastercard","amex"]),_e=ct(J({allowedNetworks:ct(st(ca))})),ua=J({analytics:J({changeEventDebounceDelayMs:Wn}),evervault:J({teamId:j,appId:j}),ipAddress:Pe(j),ipAddressProof:Pe(j),fingerprint:J({disabled:ae,useEmulation:ae,ossEnabled:Pe(ae),publicKey:j,endpoint:j,scriptUrlPattern:j,cacheDurationInSeconds:se}),card:_e,apple:_e,google:_e,samsung:_e});function ce(e,t){return h(this,null,function*(){try{let n=0;for(;n<Ee;)try{let r=yield fetch(`https://public-keys.stitch.money/${e}`,{signal:t});if(r.ok)return{type:"success",runtimeConfig:ua.verify(yield r.json())};if(n++,n===Ee)return{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config after ${Ee} attempts. public-keys worker returned ${r.status} response`)};yield new Promise(o=>setTimeout(o,Un))}catch(r){if(n++,n===Ee)throw r;yield new Promise(o=>setTimeout(o,Un))}return{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config`)}}catch(n){return n instanceof Error?{type:"error",error:n}:typeof n=="string"?{type:"error",error:new Error(n)}:{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config. Unknown error thrown`)}}})}import{v4 as da}from"uuid";var la="9ba67dd8d5b247cfb3f76e";function Ie(e){return{version:"2",serviceId:la,protocol:"PROTOCOL_3DS",allowedBrands:q(e==null?void 0:e.samsung).map(t=>ht(t))}}function Zn(e){return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["CRYPTOGRAM_3DS"],allowedCardNetworks:q(e==null?void 0:e.google).map(t=>yt(t))}}]}}function Hn(e){return h(this,null,function*(){if(!window.ApplePaySession)return!1;let t=ApplePaySession;if(t.applePayCapabilities&&e)try{return(yield t.applePayCapabilities(e)).paymentCredentialStatus!=="applePayUnsupported"}catch(n){E("[determineApplePaySupport] failed to get applePayCapabilities, falling back to canMakePayments",n,{merchantIdentifier:e})}return t.canMakePayments()})}function Yn(){if(!window.ApplePaySession)return-1;let t=n=>n===0?-1:ApplePaySession.supportsVersion(n)?n:t(n-1);return t(14)}function zn(e,t){return h(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Zn(t))).result}catch(n){return!1}})}function Bn(e,t){return h(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Ie(t))).result}catch(n){return!1}})}var M=class extends Error{constructor(t){super(t),this.name="SessionError"}};var ue=e=>e instanceof Error?e.toString():JSON.stringify(e);var ut="3.11.0";var pa="[onvalidatemerchant]",Jn="[onpaymentauthorized]",X="[onClickSamsungPaySessionHandler]",lt="[onClickGooglePaySessionHandler]",Xn=class{constructor(t){T(this,"onCancelPayment");T(this,"clientId");T(this,"gatewayMerchantId");T(this,"applePayIsSupported",!1);T(this,"samsungPayIsSupported",!1);T(this,"googlePayIsSupported",!1);T(this,"runtimeConfig");T(this,"fingerprintAgent");T(this,"googlePayClient");T(this,"samsungPayClient");var i,c,l;Ve({source:"wallets-client",version:ut});let{onCancelPayment:n,clientId:r,gatewayMerchantId:o}=t,a=(l=(c=(i=globalThis.google)==null?void 0:i.payments)==null?void 0:c.api)==null?void 0:l.PaymentsClient;this.googlePayClient=a?new a({environment:r!=null&&r.startsWith("test-")?"TEST":"PRODUCTION"}):void 0,this.samsungPayClient=window.SamsungPay?new window.SamsungPay.PaymentClient({environment:r!=null&&r.startsWith("test-")?"STAGE":"PRODUCTION",nonce:da()}):void 0,this.onCancelPayment=n!=null?n:()=>{},this.clientId=r,this.gatewayMerchantId=o,this.loadFingerprintAgent()}loadRuntimeConfig(){return h(this,null,function*(){var t,n;if(this.runtimeConfig===void 0&&this.clientId){let r=yield ce(this.clientId);if(r.type==="error"){let o=(n=(t=r.error)==null?void 0:t.message)!=null?n:"Failed to load runtime configuration";throw E(o,r.error,{clientId:this.clientId}),r.error?r.error:new Error(o)}this.runtimeConfig=r.runtimeConfig}})}loadFingerprintAgent(){return h(this,null,function*(){this.fingerprintAgent===void 0&&(this.runtimeConfig===void 0&&(yield this.loadRuntimeConfig()),this.runtimeConfig!==void 0&&!this.runtimeConfig.fingerprint.disabled&&(this.fingerprintAgent=yield bn({config:this.runtimeConfig.fingerprint})))})}fingerprint(){return h(this,null,function*(){var n,r,o;let t=yield wn({config:(n=this.runtimeConfig)==null?void 0:n.fingerprint,agent:this.fingerprintAgent,clientId:this.clientId,sdkVersion:ut,ipAddress:(r=this.runtimeConfig)==null?void 0:r.ipAddress,ipAddressProof:(o=this.runtimeConfig)==null?void 0:o.ipAddressProof});return Ve({fingerprint:t}),t})}supportedPaymentMethods(){return h(this,null,function*(){let t=[];try{yield this.loadRuntimeConfig()}catch(n){}return this.applePayIsSupported=yield Hn(this.gatewayMerchantId),this.applePayIsSupported&&t.push("APPLE_PAY"),this.samsungPayIsSupported=yield Bn(this.samsungPayClient,this.runtimeConfig),this.samsungPayIsSupported&&t.push("SAMSUNG_PAY"),this.googlePayIsSupported=yield zn(this.googlePayClient,this.runtimeConfig),this.googlePayIsSupported&&t.push("GOOGLE_PAY"),t})}onClickApplePaySessionHandler(t,n,r,o,a,i){let c=Yn();return()=>{var u,m,g;let l=q((u=this.runtimeConfig)==null?void 0:u.apple).map(d=>gt(d)),f={countryCode:"ZA",currencyCode:t,supportedNetworks:l,merchantCapabilities:["supports3DS"],total:{label:r,amount:n.toString()}};i&&(f.recurringPaymentRequest={paymentDescription:r,billingAgreement:i.billingAgreement,regularBilling:{label:r,amount:((m=i.recurringAmount)!=null?m:n).toString(),paymentTiming:"recurring",recurringPaymentIntervalUnit:i.recurringIntervalUnit,recurringPaymentIntervalCount:(g=i.recurringIntervalCount)!=null?g:1},managementURL:i.managementUrl});let s;try{s=new ApplePaySession(c,f)}catch(d){E("Failed to create Apple Pay session",d,{clientId:this.clientId});return}s.onvalidatemerchant=d=>h(this,null,function*(){try{let p=yield o(d.validationURL);if(!s)throw new Error("ApplePaySession is missing");if(p==null||typeof p!="object")throw new Error(`verifyCallbackResponse is not an object: ${JSON.stringify(p)}`);if(Object.keys(p).length===0)throw new Error(`verifyCallbackResponse is an empty object: ${JSON.stringify(p)}`);s.completeMerchantValidation(p)}catch(p){throw E(`${pa} Failed to complete merchant validation`,p,{clientId:this.clientId}),new M(`Failed to complete merchant validation: ${ue(p)}`)}}),s.onpaymentauthorized=d=>h(this,null,function*(){try{let p=d.payment.token,y=yield this.fingerprint(),b=yield a(p,y);switch(b.status){case"TransactionPending":case"TransactionSuccess":{s==null||s.completePayment(ApplePaySession.STATUS_SUCCESS);break}case"TransactionFailure":{s==null||s.completePayment(ApplePaySession.STATUS_FAILURE);break}default:{let P="Invalid transaction status",x=new M(`${P} ${b.status}`);throw E(`${Jn} Invalid transaction status`,x,{clientId:this.clientId}),x}}}catch(p){throw s==null||s.completePayment(ApplePaySession.STATUS_FAILURE),E(`${Jn} Failed to create payment`,p,{clientId:this.clientId}),new M(`Failed to create payment: ${ue(p)}`)}}),s.oncancel=()=>{this.onCancelPayment()},s.begin()}}onClickSamsungPaySessionHandler(t,n,r,o,a,i,c){return()=>h(this,null,function*(){if(!this.samsungPayClient){let l="Samsung Pay client not initialized",f=new Error(l);throw E(`${X} ${l}`,f,{clientId:this.clientId}),f}try{let l={orderNumber:o,merchant:{name:r,url:a,id:i,countryCode:"ZA"},amount:{option:"FORMAT_TOTAL_PRICE_ONLY",currency:t,total:n}},f=yield this.fingerprint(),s=Ie(this.runtimeConfig);Ge(`${X} Loading payment sheet`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentMethods:s,transactionDetail:l}});let u=yield this.samsungPayClient.loadPaymentSheet(s,l);Ge(`${X} Received payment credential`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentCredential:u}});let m=yield c(u,f);switch(m.status){case"TransactionPending":break;case"TransactionFailure":{this.samsungPayClient.notify({status:"REJECTED"});break}case"TransactionSuccess":{this.samsungPayClient.notify({status:"CHARGED"});break}default:{this.samsungPayClient.notify({status:"ERRED"});let g=`${X} Invalid transaction status: ${m.status}`,d=new M(g);throw E(g,d,{clientId:this.clientId,type:"SAMSUNG_PAY"}),d}}}catch(l){throw E(`${X} Failed to create payment`,l,{clientId:this.clientId,type:"SAMSUNG_PAY"}),new M(`${X} Failed to create payment: ${ue(l)}`)}})}onClickGooglePaySessionHandler(t){return n=>h(this,null,function*(){try{let r=yield this.fingerprint(),o=yield t(n.paymentMethodData.tokenizationData.token,r);switch(o.status){case"TransactionPending":case"TransactionFailure":case"TransactionSuccess":break;default:{let a=`${lt} Invalid transaction status: ${o.status}`,i=new M(a);throw E(a,i,{clientId:this.clientId}),i}}}catch(r){throw E(`${lt} Failed to create payment`,r,{clientId:this.clientId}),new M(`${lt} Failed to create payment: ${ue(r)}`)}})}};export{Xn as StitchWalletClientSdk,mt as WalletType};
26
+ `);return r(a)})}function Fn(e){return I((t,n,r)=>{let o=e.find(a=>a===t);return o!==void 0?n(o):r(`Must be one of ${e.map(a=>U(a)).join(", ")}`)})}function Dn(e){return typeof e=="function"?e():e}var Xi=jn(null),Ki=jn(void 0),qi=I((e,t,n)=>e==null?t(e):n("Must be undefined or null"));function Pe(e,t){let n=ie(Ki,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function ct(e,t){let n=ie(qi,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function jn(e){return I((t,n,r)=>t===e?n(e):r(`Must be ${typeof e=="symbol"?String(e):U(e)}`))}var Ba=I((e,t,n)=>t(e));var ae=I((e,t,n)=>typeof e=="boolean"?t(e):n("Must be boolean")),Ja=I((e,t,n)=>t(!!e));function Qi(e,t){let n=t!==void 0?e:void 0,r=t!==void 0?t:e;return Ln.then((o,a,i)=>{var f;let s={},l=new Map;for(let c of Object.keys(o)){let u=o[c],m=n==null?void 0:n.decode(c);if((m==null?void 0:m.ok)===!1)return i(W(o,`Invalid key ${U(c)}: ${Gi(m.error)}`));let g=(f=m==null?void 0:m.value)!=null?f:c,d=r.decode(u);d.ok?l.size===0&&(s[g]=d.value):(l.set(c,d.error),s={})}return l.size>0?i(In(An(o),l)):a(s)})}var ea=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,/\w]*)?(?:#[.,!/\w]*)?)?$/,Vn=I((e,t,n)=>Oi(e)?t(e):n("Must be string")),j=V(/\S/,"Must be non-empty string");function V(e,t){return Vn.refine(n=>e.test(n),t)}var Xa=V(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Must be email"),ta=ie(V(ea,"Must be URL").transform(e=>new URL(e)),Yi(URL)),Ka=ta.refine(e=>e.protocol==="https:","Must be an HTTPS URL"),qa=V(/^[a-z_][a-z0-9_]*$/i,"Must be valid identifier");var Gn=V(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,"Must be uuid"),Qa=Gn.refine(e=>e[14]==="1","Must be uuidv1"),es=Gn.refine(e=>e[14]==="4","Must be uuidv4"),na=V(/^[0-9]+$/,"Must only contain digits"),ts=V(/^[0-9a-f]+$/i,"Must only contain hexadecimal digits"),ns=na.transform(Number),ra=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:[.]\d+)?(?:Z|[+-]\d{2}:?\d{2})$/,oa=I((e,t,n)=>Sn(e)?t(e):n("Must be a Date")),ia=V(ra,"Must be ISO8601 format").transform(e=>{let t=new Date(e);if(isNaN(t.getTime()))throw new Error("Must be valid date/time value");return t}),rs=ie(oa,ia).describe("Must be a Date or date string"),aa=I((e,t,n)=>Ai(e)?t(e):n("Must be number")),se=aa.refine(e=>Number.isFinite(e),"Number must be finite"),sa=se.refine(e=>Number.isInteger(e),"Number must be an integer"),Wn=se.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),os=sa.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),is=I((e,t,n)=>ki(e)?t(e):n("Must be bigint")),ca=Mn(()=>Qi($n)),ua=Mn(()=>st($n)),$n=ie(Xi,Vn,se,ae,ca,ua).describe("Must be valid JSON value");var Ee=3,Un=500,Hn={prod:"https://public-config.stitch.money",staging:"https://public-config-staging.stitch.money",preprod:"https://public-config-pre-prod.stitch.money"},la=Fn(["visa","mastercard","amex"]),_e=ct(J({allowedNetworks:ct(st(la))})),fa=J({analytics:J({changeEventDebounceDelayMs:Wn}),evervault:J({teamId:j,appId:j}),ipAddress:Pe(j),ipAddressProof:Pe(j),fingerprint:J({disabled:ae,useEmulation:ae,ossEnabled:Pe(ae),publicKey:j,endpoint:j,scriptUrlPattern:j,cacheDurationInSeconds:se}),card:_e,applePay:_e,googlePay:_e,samsungPay:_e});function Zn(e){return e!=null&&typeof e=="object"&&"aborted"in e&&"addEventListener"in e}function da(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Hn,e)}function pa(e){let t=da(e==null?void 0:e.environment)?e.environment:"prod";return Hn[t]}function ma(e,t){return`${pa(t)}/config/${e}`}function ce(e,t,n){return h(this,null,function*(){let r=Zn(t)?t:void 0,o=Zn(t)?n:t,a=ma(e,o);try{let i=0;for(;i<Ee;)try{let s=yield fetch(a,{signal:r});if(s.ok)return{type:"success",runtimeConfig:fa.verify(yield s.json())};if(i++,i===Ee)return{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config after ${Ee} attempts. Runtime config endpoint returned ${s.status} response`)};yield new Promise(l=>setTimeout(l,Un))}catch(s){if(i++,i===Ee)throw s;yield new Promise(l=>setTimeout(l,Un))}return{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config`)}}catch(i){return i instanceof Error?{type:"error",error:i}:typeof i=="string"?{type:"error",error:new Error(i)}:{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config. Unknown error thrown`)}}})}import{v4 as ha}from"uuid";var ga="9ba67dd8d5b247cfb3f76e";function Ie(e){return{version:"2",serviceId:ga,protocol:"PROTOCOL_3DS",allowedBrands:q(e==null?void 0:e.samsungPay).map(t=>ht(t))}}function Yn(e){return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["CRYPTOGRAM_3DS"],allowedCardNetworks:q(e==null?void 0:e.googlePay).map(t=>yt(t))}}]}}function zn(e){return h(this,null,function*(){if(!window.ApplePaySession)return!1;let t=ApplePaySession;if(t.applePayCapabilities&&e)try{return(yield t.applePayCapabilities(e)).paymentCredentialStatus!=="applePayUnsupported"}catch(n){E("[determineApplePaySupport] failed to get applePayCapabilities, falling back to canMakePayments",n,{merchantIdentifier:e})}return t.canMakePayments()})}function Bn(){if(!window.ApplePaySession)return-1;let t=n=>n===0?-1:ApplePaySession.supportsVersion(n)?n:t(n-1);return t(14)}function Jn(e,t){return h(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Yn(t))).result}catch(n){return!1}})}function Xn(e,t){return h(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Ie(t))).result}catch(n){return!1}})}var M=class extends Error{constructor(t){super(t),this.name="SessionError"}};var ue=e=>e instanceof Error?e.toString():JSON.stringify(e);var ut="3.12.1";var ba="[onvalidatemerchant]",Kn="[onpaymentauthorized]",X="[onClickSamsungPaySessionHandler]",lt="[onClickGooglePaySessionHandler]",qn=class{constructor(t){O(this,"onCancelPayment");O(this,"clientId");O(this,"gatewayMerchantId");O(this,"runtimeConfigEnvironment");O(this,"applePayIsSupported",!1);O(this,"samsungPayIsSupported",!1);O(this,"googlePayIsSupported",!1);O(this,"runtimeConfig");O(this,"fingerprintAgent");O(this,"googlePayClient");O(this,"samsungPayClient");var s,l,f;Ve({source:"wallets-client",version:ut});let{onCancelPayment:n,clientId:r,gatewayMerchantId:o,runtimeConfigEnvironment:a}=t,i=(f=(l=(s=globalThis.google)==null?void 0:s.payments)==null?void 0:l.api)==null?void 0:f.PaymentsClient;this.googlePayClient=i?new i({environment:r!=null&&r.startsWith("test-")?"TEST":"PRODUCTION"}):void 0,this.samsungPayClient=window.SamsungPay?new window.SamsungPay.PaymentClient({environment:r!=null&&r.startsWith("test-")?"STAGE":"PRODUCTION",nonce:ha()}):void 0,this.onCancelPayment=n!=null?n:()=>{},this.clientId=r,this.gatewayMerchantId=o,this.runtimeConfigEnvironment=a,this.loadFingerprintAgent()}loadRuntimeConfig(){return h(this,null,function*(){var t,n;if(this.runtimeConfig===void 0&&this.clientId){let r=yield ce(this.clientId,{environment:this.runtimeConfigEnvironment});if(r.type==="error"){let o=(n=(t=r.error)==null?void 0:t.message)!=null?n:"Failed to load runtime configuration";throw E(o,r.error,{clientId:this.clientId}),r.error?r.error:new Error(o)}this.runtimeConfig=r.runtimeConfig}})}loadFingerprintAgent(){return h(this,null,function*(){this.fingerprintAgent===void 0&&(this.runtimeConfig===void 0&&(yield this.loadRuntimeConfig()),this.runtimeConfig!==void 0&&!this.runtimeConfig.fingerprint.disabled&&(this.fingerprintAgent=yield bn({config:this.runtimeConfig.fingerprint})))})}fingerprint(){return h(this,null,function*(){var n,r,o;let t=yield wn({config:(n=this.runtimeConfig)==null?void 0:n.fingerprint,agent:this.fingerprintAgent,clientId:this.clientId,sdkVersion:ut,ipAddress:(r=this.runtimeConfig)==null?void 0:r.ipAddress,ipAddressProof:(o=this.runtimeConfig)==null?void 0:o.ipAddressProof});return Ve({fingerprint:t}),t})}supportedPaymentMethods(){return h(this,null,function*(){let t=[];try{yield this.loadRuntimeConfig()}catch(n){}return this.applePayIsSupported=yield zn(this.gatewayMerchantId),this.applePayIsSupported&&t.push("APPLE_PAY"),this.samsungPayIsSupported=yield Xn(this.samsungPayClient,this.runtimeConfig),this.samsungPayIsSupported&&t.push("SAMSUNG_PAY"),this.googlePayIsSupported=yield Jn(this.googlePayClient,this.runtimeConfig),this.googlePayIsSupported&&t.push("GOOGLE_PAY"),t})}onClickApplePaySessionHandler(t,n,r,o,a,i){let s=Bn();return()=>{var u,m,g;let l=q((u=this.runtimeConfig)==null?void 0:u.applePay).map(d=>gt(d)),f={countryCode:"ZA",currencyCode:t,supportedNetworks:l,merchantCapabilities:["supports3DS"],total:{label:r,amount:n.toString()}};i&&(f.recurringPaymentRequest={paymentDescription:r,billingAgreement:i.billingAgreement,regularBilling:{label:r,amount:((m=i.recurringAmount)!=null?m:n).toString(),paymentTiming:"recurring",recurringPaymentIntervalUnit:i.recurringIntervalUnit,recurringPaymentIntervalCount:(g=i.recurringIntervalCount)!=null?g:1},managementURL:i.managementUrl});let c;try{c=new ApplePaySession(s,f)}catch(d){E("Failed to create Apple Pay session",d,{clientId:this.clientId});return}c.onvalidatemerchant=d=>h(this,null,function*(){try{let p=yield o(d.validationURL);if(!c)throw new Error("ApplePaySession is missing");if(p==null||typeof p!="object")throw new Error(`verifyCallbackResponse is not an object: ${JSON.stringify(p)}`);if(Object.keys(p).length===0)throw new Error(`verifyCallbackResponse is an empty object: ${JSON.stringify(p)}`);c.completeMerchantValidation(p)}catch(p){throw E(`${ba} Failed to complete merchant validation`,p,{clientId:this.clientId}),new M(`Failed to complete merchant validation: ${ue(p)}`)}}),c.onpaymentauthorized=d=>h(this,null,function*(){try{let p=d.payment.token,y=yield this.fingerprint(),b=yield a(p,y);switch(b.status){case"TransactionPending":case"TransactionSuccess":{c==null||c.completePayment(ApplePaySession.STATUS_SUCCESS);break}case"TransactionFailure":{c==null||c.completePayment(ApplePaySession.STATUS_FAILURE);break}default:{let P="Invalid transaction status",x=new M(`${P} ${b.status}`);throw E(`${Kn} Invalid transaction status`,x,{clientId:this.clientId}),x}}}catch(p){throw c==null||c.completePayment(ApplePaySession.STATUS_FAILURE),E(`${Kn} Failed to create payment`,p,{clientId:this.clientId}),new M(`Failed to create payment: ${ue(p)}`)}}),c.oncancel=()=>{this.onCancelPayment()},c.begin()}}onClickSamsungPaySessionHandler(t,n,r,o,a,i,s){return()=>h(this,null,function*(){if(!this.samsungPayClient){let l="Samsung Pay client not initialized",f=new Error(l);throw E(`${X} ${l}`,f,{clientId:this.clientId}),f}try{let l={orderNumber:o,merchant:{name:r,url:a,id:i,countryCode:"ZA"},amount:{option:"FORMAT_TOTAL_PRICE_ONLY",currency:t,total:n}},f=yield this.fingerprint(),c=Ie(this.runtimeConfig);Ge(`${X} Loading payment sheet`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentMethods:c,transactionDetail:l}});let u=yield this.samsungPayClient.loadPaymentSheet(c,l);Ge(`${X} Received payment credential`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentCredential:u}});let m=yield s(u,f);switch(m.status){case"TransactionPending":break;case"TransactionFailure":{this.samsungPayClient.notify({status:"REJECTED"});break}case"TransactionSuccess":{this.samsungPayClient.notify({status:"CHARGED"});break}default:{this.samsungPayClient.notify({status:"ERRED"});let g=`${X} Invalid transaction status: ${m.status}`,d=new M(g);throw E(g,d,{clientId:this.clientId,type:"SAMSUNG_PAY"}),d}}}catch(l){throw E(`${X} Failed to create payment`,l,{clientId:this.clientId,type:"SAMSUNG_PAY"}),new M(`${X} Failed to create payment: ${ue(l)}`)}})}onClickGooglePaySessionHandler(t){return n=>h(this,null,function*(){try{let r=yield this.fingerprint(),o=yield t(n.paymentMethodData.tokenizationData.token,r);switch(o.status){case"TransactionPending":case"TransactionFailure":case"TransactionSuccess":break;default:{let a=`${lt} Invalid transaction status: ${o.status}`,i=new M(a);throw E(a,i,{clientId:this.clientId}),i}}}catch(r){throw E(`${lt} Failed to create payment`,r,{clientId:this.clientId}),new M(`${lt} Failed to create payment: ${ue(r)}`)}})}};export{qn as StitchWalletClientSdk,mt as WalletType};
27
27
  //# sourceMappingURL=index.js.map