UNPKG

@sumsub/fisherman

Version:

The Sumsub Fisherman is a powerful tool that helps developers integrate fraud detection capabilities into their applications. With Fisherman, you can easily identify and prevent fraudulent activities within your system, providing a safer and more secure e

31 lines 55.7 kB
(function(V,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(V=typeof globalThis<"u"?globalThis:V||self,J(V.SumsubFisherman={}))})(this,function(V){"use strict";function J(){return Date.now()}function Rt(){return new Date().toISOString()}const Ot="crypto"in window&&"randomUUID"in window.crypto;function bt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}function xt(){return Ot?crypto.randomUUID():bt()}const It={type:"InvalidToken",message:"Token is invalid, make sure you generate a new one each time, because the old ones are invalidated upon usage"},je={type:"NoToken",message:"Authentication token is required to send requests"},Bt={type:"UpdateTokenRetriesLimitReached",message:"Token renewal failed after multiple attempts (limit reached). Request aborted to prevent infinite retry loop."},Ct={type:"NetworkError",message:"Failed to connect to the server. Possible network or CORS configuration issue."},qe={type:"FpDisabled",message:"You are trying to use FP, which is not enabled for you."},Dt={type:"FpClientTimeout",message:"Device visitorId calc timeout"},Lt={type:"FpRateLimit",message:"FP request rate limit is exceeded"},de=0;async function fe({payload:t,token:r,url:i,onload:u}){try{const a=await fetch(i,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","X-Client-Id":"fisherman",...r?{"X-Access-Token":r}:{}}});return u(a.status,t),a.status}catch{return u(de,t),de}}const Pt=2e3,_t=3,Mt=atob("aHR0cHM6Ly9jb2NrcGl0LnN1bXN1Yi5jb20="),$e=`/resources/bhv/evts/${Math.random().toString(36).substring(0,8)}`,ze="/resources/di/req";let _,Se,Ye,H,k,ge,ve,Ae=$e,Re=ze,re=0,Oe="info";function Nt(t){_=t,ie(_.token)}function Ft(t){t&&(Ae=t)}function kt(t){t&&(Re=t)}function Ut(t){Oe=t??"info"}function Gt(){Je(),Ye=void 0,ie(void 0),Se=void 0,Ae=$e,Re=ze,re=0,ge=!1,Oe="info"}async function ne(t,r){return await Ht(Vt(t,{fpRequestId:r==null?void 0:r.fpRequestId,fpVisitorId:r==null?void 0:r.fpVisitorId,fpSimulation:r==null?void 0:r.fpSimulation},r==null?void 0:r.behavioralDataEnabled))}function Vt(t,r={},i=!0){t.capturedAt=Rt();const u=xt(),a="deviceFingerprint"in t||!i,c={id:u,predecessorEventId:Se,deviceSessionId:Ye,...r,[a?"initData":"interactionData"]:t};return Se=u,c}async function Ht(t,r){k===void 0&&(k=[]),!ge&&t.initData?(ge=!0,k.unshift(t)):k.push(t),ge&&(ve||(ve=setTimeout(Kt,Pt)))}function Je(){clearTimeout(ve),k=void 0,ve=void 0}async function Kt(){if(k!=null&&k.length&&H){const t=[...k];Je(),await Ze(t)}}function ae(){return _.baseUrl!==void 0?_.baseUrl:Mt}async function Wt(){if(_.accessTokenUpdateHandler){const t=await _.accessTokenUpdateHandler();ie(t)}}async function Ze(t){H?await fe({payload:t,token:H,url:`${ae()}${Ae}`,onload:(r,i)=>Qe(r,()=>Ze(i))}):L(je)}async function he(t){H?await fe({payload:t,token:H,url:`${ae()}${Re}`,onload:(r,i)=>Qe(r,()=>he(i))}):L(je)}async function Qe(t,r){if(t===401||t===de){let i=re>=_t;!i&&_.accessTokenUpdateHandler?(re++,q("TokenRefreshRetry",`attempt=${re}`),await Wt(),await r()):ie(void 0);let u;t===de?u=Ct:i?u=Bt:u=It,L(u)}else t===200&&(re=0)}function q(t,r){Oe!=="debug"||!_||_.disabledErrorLogging||fe({payload:{errorType:"fishermanDebug",errorName:t,message:r},token:H,url:`${ae()}/resources/serviceLogger/warn`,onload:()=>{}})}function L(t){const r={errorType:"fishermanError",errorName:t.type,message:t.message};_.disabledErrorLogging||fe({payload:r,token:H,url:`${ae()}/resources/serviceLogger/warn`,onload:()=>{}}),_.onError&&_.onError(t)}function ie(t){H=t}const et="focus";let oe,be=0;function Xt(){oe=()=>{be++,ne({event:"focus",count:be})},window.addEventListener(et,oe)}function jt(){oe&&(window.removeEventListener(et,oe),oe=void 0),be=0}function qt(t){if(t.target instanceof Element){const r=t.target,i=r.getAttribute("type"),u=i?`[${i}]`:"",a=r.id?`#${r.id}`:"";return`${r.tagName}${u}${a}`}}const $t=["Alt","Control","Meta","Shift","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","Backspace","Delete","Escape"];function zt(t){if($t.includes(t))return t}function Yt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pe={exports:{}},Jt=pe.exports,tt;function Zt(){return tt||(tt=1,function(t){(function(r,i,u){t.exports?t.exports=u():i.exports?i.exports=u():i[r]=u()})("Fingerprint2",Jt,function(){var r=function(e,n){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],n=[n[0]>>>16,n[0]&65535,n[1]>>>16,n[1]&65535];var o=[0,0,0,0];return o[3]+=e[3]+n[3],o[2]+=o[3]>>>16,o[3]&=65535,o[2]+=e[2]+n[2],o[1]+=o[2]>>>16,o[2]&=65535,o[1]+=e[1]+n[1],o[0]+=o[1]>>>16,o[1]&=65535,o[0]+=e[0]+n[0],o[0]&=65535,[o[0]<<16|o[1],o[2]<<16|o[3]]},i=function(e,n){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],n=[n[0]>>>16,n[0]&65535,n[1]>>>16,n[1]&65535];var o=[0,0,0,0];return o[3]+=e[3]*n[3],o[2]+=o[3]>>>16,o[3]&=65535,o[2]+=e[2]*n[3],o[1]+=o[2]>>>16,o[2]&=65535,o[2]+=e[3]*n[2],o[1]+=o[2]>>>16,o[2]&=65535,o[1]+=e[1]*n[3],o[0]+=o[1]>>>16,o[1]&=65535,o[1]+=e[2]*n[2],o[0]+=o[1]>>>16,o[1]&=65535,o[1]+=e[3]*n[1],o[0]+=o[1]>>>16,o[1]&=65535,o[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],o[0]&=65535,[o[0]<<16|o[1],o[2]<<16|o[3]]},u=function(e,n){return n%=64,n===32?[e[1],e[0]]:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])},a=function(e,n){return n%=64,n===0?e:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]},c=function(e,n){return[e[0]^n[0],e[1]^n[1]]},v=function(e){return e=c(e,[0,e[0]>>>1]),e=i(e,[4283543511,3981806797]),e=c(e,[0,e[0]>>>1]),e=i(e,[3301882366,444984403]),e=c(e,[0,e[0]>>>1]),e},w=function(e,n){e=e||"",n=n||0;for(var o=e.length%16,s=e.length-o,l=[0,n],f=[0,n],g=[0,0],h=[0,0],y=[2277735313,289559509],I=[1291169091,658871167],p=0;p<s;p=p+16)g=[e.charCodeAt(p+4)&255|(e.charCodeAt(p+5)&255)<<8|(e.charCodeAt(p+6)&255)<<16|(e.charCodeAt(p+7)&255)<<24,e.charCodeAt(p)&255|(e.charCodeAt(p+1)&255)<<8|(e.charCodeAt(p+2)&255)<<16|(e.charCodeAt(p+3)&255)<<24],h=[e.charCodeAt(p+12)&255|(e.charCodeAt(p+13)&255)<<8|(e.charCodeAt(p+14)&255)<<16|(e.charCodeAt(p+15)&255)<<24,e.charCodeAt(p+8)&255|(e.charCodeAt(p+9)&255)<<8|(e.charCodeAt(p+10)&255)<<16|(e.charCodeAt(p+11)&255)<<24],g=i(g,y),g=u(g,31),g=i(g,I),l=c(l,g),l=u(l,27),l=r(l,f),l=r(i(l,[0,5]),[0,1390208809]),h=i(h,I),h=u(h,33),h=i(h,y),f=c(f,h),f=u(f,31),f=r(f,l),f=r(i(f,[0,5]),[0,944331445]);switch(g=[0,0],h=[0,0],o){case 15:h=c(h,a([0,e.charCodeAt(p+14)],48));case 14:h=c(h,a([0,e.charCodeAt(p+13)],40));case 13:h=c(h,a([0,e.charCodeAt(p+12)],32));case 12:h=c(h,a([0,e.charCodeAt(p+11)],24));case 11:h=c(h,a([0,e.charCodeAt(p+10)],16));case 10:h=c(h,a([0,e.charCodeAt(p+9)],8));case 9:h=c(h,[0,e.charCodeAt(p+8)]),h=i(h,I),h=u(h,33),h=i(h,y),f=c(f,h);case 8:g=c(g,a([0,e.charCodeAt(p+7)],56));case 7:g=c(g,a([0,e.charCodeAt(p+6)],48));case 6:g=c(g,a([0,e.charCodeAt(p+5)],40));case 5:g=c(g,a([0,e.charCodeAt(p+4)],32));case 4:g=c(g,a([0,e.charCodeAt(p+3)],24));case 3:g=c(g,a([0,e.charCodeAt(p+2)],16));case 2:g=c(g,a([0,e.charCodeAt(p+1)],8));case 1:g=c(g,[0,e.charCodeAt(p)]),g=i(g,y),g=u(g,31),g=i(g,I),l=c(l,g)}return l=c(l,[0,e.length]),f=c(f,[0,e.length]),l=r(l,f),f=r(f,l),l=v(l),f=v(f),l=r(l,f),f=r(f,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)},S={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},E=function(e,n){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(n);else if(e.length===+e.length)for(var o=0,s=e.length;o<s;o++)n(e[o],o,e);else for(var l in e)e.hasOwnProperty(l)&&n(e[l],l,e)},d=function(e,n){var o=[];return e==null?o:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(E(e,function(s,l,f){o.push(n(s,l,f))}),o)},m=function(e,n){if(n==null)return e;var o,s;for(s in n)o=n[s],o!=null&&!Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=o);return e},B=function(e,n){if(!b())return e(n.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then(function(o){e(o.map(function(s){return"id="+s.deviceId+";gid="+s.groupId+";"+s.kind+";"+s.label}))}).catch(function(o){e(o)})},b=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices},R=function(e,n){var o=n.audio;if(o.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED);var s=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(s==null)return e(n.NOT_AVAILABLE);var l=new s(1,44100,44100),f=l.createOscillator();f.type="triangle",f.frequency.setValueAtTime(1e4,l.currentTime);var g=l.createDynamicsCompressor();E([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],function(y){g[y[0]]!==void 0&&typeof g[y[0]].setValueAtTime=="function"&&g[y[0]].setValueAtTime(y[1],l.currentTime)}),f.connect(g),g.connect(l.destination),f.start(0),l.startRendering();var h=setTimeout(function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),l.oncomplete=function(){},l=null,e("audioTimeout")},o.timeout);l.oncomplete=function(y){var I;try{clearTimeout(h),I=y.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce(function(p,X){return p+Math.abs(X)},0).toString(),f.disconnect(),g.disconnect()}catch(p){e(p);return}e(I)}},O=function(e){e(navigator.userAgent)},A=function(e,n){e(navigator.webdriver==null?n.NOT_AVAILABLE:navigator.webdriver)},x=function(e,n){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||n.NOT_AVAILABLE)},K=function(e,n){e(window.screen.colorDepth||n.NOT_AVAILABLE)},G=function(e,n){e(navigator.deviceMemory||n.NOT_AVAILABLE)},$=function(e,n){e(window.devicePixelRatio||n.NOT_AVAILABLE)},Ge=function(e,n){e(Ve(n))},Ve=function(e){var n=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&n.sort().reverse(),n},He=function(e,n){e(kn(n))},kn=function(e){if(window.screen.availWidth&&window.screen.availHeight){var n=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&n.sort().reverse(),n}return e.NOT_AVAILABLE},Un=function(e){e(new Date().getTimezoneOffset())},Gn=function(e,n){if(window.Intl&&window.Intl.DateTimeFormat){e(new window.Intl.DateTimeFormat().resolvedOptions().timeZone);return}e(n.NOT_AVAILABLE)},Vn=function(e,n){e(la(n))},Hn=function(e,n){e(da(n))},Kn=function(e,n){e(fa(n))},Wn=function(e){e(!!(document.body&&document.body.addBehavior))},Xn=function(e){e(!!window.openDatabase)},jn=function(e,n){e(va(n))},qn=function(e,n){e(ha(n))},$n=function(e,n){e(pa(n))},zn=function(e,n){if(Tt()){e(wa(n));return}e(n.NOT_AVAILABLE)},Yn=function(e,n){if(yt()){e(Ea());return}e(n.NOT_AVAILABLE)},Jn=function(e){if(yt()){e(Ta());return}e()},Zn=function(e){e(ya())},Qn=function(e){e(Sa())},ea=function(e){e(Aa())},ta=function(e){e(Ra())},ra=function(e){e(Oa())},na=function(e,n){if(!xa())return e("swf object not loaded");if(!Ia())return e("flash not installed");if(!n.fonts.swfPath)return e("missing options.fonts.swfPath");Ca(function(o){e(o)},n)},aa=function(e,n){var o=["monospace","sans-serif","serif"],s=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];if(n.fonts.extendedJsFonts){var l=["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"];s=s.concat(l)}s=s.concat(n.fonts.userDefinedFonts),s=s.filter(function(T,C){return s.indexOf(T)===C});var f="mmmmmmmmmmlli",g="72px",h=document.getElementsByTagName("body")[0],y=document.createElement("div"),I=document.createElement("div"),p={},X={},D=function(){var T=document.createElement("span");return T.style.position="absolute",T.style.left="-9999px",T.style.fontSize=g,T.style.fontStyle="normal",T.style.fontWeight="normal",T.style.letterSpacing="normal",T.style.lineBreak="auto",T.style.lineHeight="normal",T.style.textTransform="none",T.style.textAlign="left",T.style.textDecoration="none",T.style.textShadow="none",T.style.whiteSpace="normal",T.style.wordBreak="normal",T.style.wordSpacing="normal",T.innerHTML=f,T},z=function(T,C){var P=D();return P.style.fontFamily="'"+T+"',"+C,P},j=function(){for(var T=[],C=0,P=o.length;C<P;C++){var te=D();te.style.fontFamily=o[C],y.appendChild(te),T.push(te)}return T},Y=function(){for(var T={},C=0,P=s.length;C<P;C++){for(var te=[],Xe=0,Ma=o.length;Xe<Ma;Xe++){var At=z(s[C],o[Xe]);I.appendChild(At),te.push(At)}T[s[C]]=te}return T},We=function(T){for(var C=!1,P=0;P<o.length;P++)if(C=T[P].offsetWidth!==p[o[P]]||T[P].offsetHeight!==X[o[P]],C)return C;return C},Te=j();h.appendChild(y);for(var ee=0,La=o.length;ee<La;ee++)p[o[ee]]=Te[ee].offsetWidth,X[o[ee]]=Te[ee].offsetHeight;var Pa=Y();h.appendChild(I);for(var St=[],ye=0,_a=s.length;ye<_a;ye++)We(Pa[s[ye]])&&St.push(s[ye]);h.removeChild(I),h.removeChild(y),e(St)},ia=function(e,n){ba()?n.plugins.excludeIE?e(n.EXCLUDED):e(oa(n)):e(Et(n))},Et=function(e){if(navigator.plugins==null)return e.NOT_AVAILABLE;for(var n=[],o=0,s=navigator.plugins.length;o<s;o++)navigator.plugins[o]&&n.push(navigator.plugins[o]);return sa(e)&&(n=n.sort(function(l,f){return l.name>f.name?1:l.name<f.name?-1:0})),d(n,function(l){var f=d(l,function(g){return[g.type,g.suffixes]});return[l.name,l.description,f]})},oa=function(e){var n=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var o=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"];n=d(o,function(s){try{return new window.ActiveXObject(s),s}catch{return e.ERROR}})}else n.push(e.NOT_AVAILABLE);return navigator.plugins&&(n=n.concat(Et(e))),n},sa=function(e){for(var n=!1,o=0,s=e.plugins.sortPluginsFor.length;o<s;o++){var l=e.plugins.sortPluginsFor[o];if(navigator.userAgent.match(l)){n=!0;break}}return n},ua=function(e){e(ma())},ca=function(e,n){e(ga(n))},la=function(e){try{return!!window.sessionStorage}catch{return e.ERROR}},da=function(e){try{return!!window.localStorage}catch{return e.ERROR}},fa=function(e){try{return!!window.indexedDB}catch{return e.ERROR}},ga=function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE},va=function(e){return navigator.cpuClass||e.NOT_AVAILABLE},ha=function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE},pa=function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE},ma=function(){var e=0,n;typeof navigator.maxTouchPoints<"u"?e=navigator.maxTouchPoints:typeof navigator.msMaxTouchPoints<"u"&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch{n=!1}var o="ontouchstart"in window;return[e,n,o]},wa=function(e){var n=[],o=document.createElement("canvas");o.width=2e3,o.height=200,o.style.display="inline";var s=o.getContext("2d");return s.rect(0,0,10,10),s.rect(2,2,6,6),n.push("canvas winding:"+(s.isPointInPath(5,5,"evenodd")===!1?"yes":"no")),s.textBaseline="alphabetic",s.fillStyle="#f60",s.fillRect(125,1,62,20),s.fillStyle="#069",e.dontUseFakeFontInCanvas?s.font="11pt Arial":s.font="11pt no-real-font-123",s.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),s.fillStyle="rgba(102, 204, 0, 0.2)",s.font="18pt Arial",s.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),s.globalCompositeOperation="multiply",s.fillStyle="rgb(255,0,255)",s.beginPath(),s.arc(50,50,50,0,Math.PI*2,!0),s.closePath(),s.fill(),s.fillStyle="rgb(0,255,255)",s.beginPath(),s.arc(100,50,50,0,Math.PI*2,!0),s.closePath(),s.fill(),s.fillStyle="rgb(255,255,0)",s.beginPath(),s.arc(75,100,50,0,Math.PI*2,!0),s.closePath(),s.fill(),s.fillStyle="rgb(255,0,255)",s.arc(75,75,75,0,Math.PI*2,!0),s.arc(75,75,25,0,Math.PI*2,!0),s.fill("evenodd"),o.toDataURL&&n.push("canvas fp:"+o.toDataURL()),n},Ea=function(){var e,n=function(D){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+D[0]+", "+D[1]+"]"},o=function(D){var z=D.getExtension("EXT_texture_filter_anisotropic")||D.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||D.getExtension("MOZ_EXT_texture_filter_anisotropic");if(z){var j=D.getParameter(z.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return j===0&&(j=2),j}else return null};if(e=Ke(),!e)return null;var s=[],l="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",f="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",g=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,g);var h=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,h,e.STATIC_DRAW),g.itemSize=3,g.numItems=3;var y=e.createProgram(),I=e.createShader(e.VERTEX_SHADER);e.shaderSource(I,l),e.compileShader(I);var p=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(p,f),e.compileShader(p),e.attachShader(y,I),e.attachShader(y,p),e.linkProgram(y),e.useProgram(y),y.vertexPosAttrib=e.getAttribLocation(y,"attrVertex"),y.offsetUniform=e.getUniformLocation(y,"uniformOffset"),e.enableVertexAttribArray(y.vertexPosArray),e.vertexAttribPointer(y.vertexPosAttrib,g.itemSize,e.FLOAT,!1,0,0),e.uniform2f(y.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,g.numItems);try{s.push(e.canvas.toDataURL())}catch{}s.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),s.push("webgl aliased line width range:"+n(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),s.push("webgl aliased point size range:"+n(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),s.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),s.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),s.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),s.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),s.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),s.push("webgl max anisotropy:"+o(e)),s.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),s.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),s.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),s.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),s.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),s.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),s.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),s.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),s.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),s.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),s.push("webgl max viewport dims:"+n(e.getParameter(e.MAX_VIEWPORT_DIMS))),s.push("webgl red bits:"+e.getParameter(e.RED_BITS)),s.push("webgl renderer:"+e.getParameter(e.RENDERER)),s.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),s.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),s.push("webgl vendor:"+e.getParameter(e.VENDOR)),s.push("webgl version:"+e.getParameter(e.VERSION));try{var X=e.getExtension("WEBGL_debug_renderer_info");X&&(s.push("webgl unmasked vendor:"+e.getParameter(X.UNMASKED_VENDOR_WEBGL)),s.push("webgl unmasked renderer:"+e.getParameter(X.UNMASKED_RENDERER_WEBGL)))}catch{}return e.getShaderPrecisionFormat&&E(["FLOAT","INT"],function(D){E(["VERTEX","FRAGMENT"],function(z){E(["HIGH","MEDIUM","LOW"],function(j){E(["precision","rangeMin","rangeMax"],function(Y){var We=e.getShaderPrecisionFormat(e[z+"_SHADER"],e[j+"_"+D])[Y];Y!=="precision"&&(Y="precision "+Y);var Te=["webgl ",z.toLowerCase()," shader ",j.toLowerCase()," ",D.toLowerCase()," ",Y,":",We].join("");s.push(Te)})})})}),s},Ta=function(){try{var e=Ke(),n=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch{return null}},ya=function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="adsbox";var n=!1;try{document.body.appendChild(e),n=document.getElementsByClassName("adsbox")[0].offsetHeight===0,document.body.removeChild(e)}catch{n=!1}return n},Sa=function(){if(typeof navigator.languages<"u")try{var e=navigator.languages[0].substr(0,2);if(e!==navigator.language.substr(0,2))return!0}catch{return!0}return!1},Aa=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},Ra=function(){var e=navigator.userAgent.toLowerCase(),n=navigator.oscpu,o=navigator.platform.toLowerCase(),s;e.indexOf("windows phone")>=0?s="Windows Phone":e.indexOf("win")>=0?s="Windows":e.indexOf("android")>=0?s="Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?s="Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?s="iOS":e.indexOf("mac")>=0?s="Mac":s="Other";var l="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;if(l&&s!=="Windows Phone"&&s!=="Android"&&s!=="iOS"&&s!=="Other")return!0;if(typeof n<"u"){if(n=n.toLowerCase(),n.indexOf("win")>=0&&s!=="Windows"&&s!=="Windows Phone")return!0;if(n.indexOf("linux")>=0&&s!=="Linux"&&s!=="Android")return!0;if(n.indexOf("mac")>=0&&s!=="Mac"&&s!=="iOS")return!0;if((n.indexOf("win")===-1&&n.indexOf("linux")===-1&&n.indexOf("mac")===-1)!=(s==="Other"))return!0}if(o.indexOf("win")>=0&&s!=="Windows"&&s!=="Windows Phone")return!0;if((o.indexOf("linux")>=0||o.indexOf("android")>=0||o.indexOf("pike")>=0)&&s!=="Linux"&&s!=="Android")return!0;if((o.indexOf("mac")>=0||o.indexOf("ipad")>=0||o.indexOf("ipod")>=0||o.indexOf("iphone")>=0)&&s!=="Mac"&&s!=="iOS")return!0;var f=o.indexOf("win")<0&&o.indexOf("linux")<0&&o.indexOf("mac")<0&&o.indexOf("iphone")<0&&o.indexOf("ipad")<0;return f!==(s==="Other")?!0:typeof navigator.plugins>"u"&&s!=="Windows"&&s!=="Windows Phone"},Oa=function(){var e=navigator.userAgent.toLowerCase(),n=navigator.productSub,o;if(e.indexOf("firefox")>=0?o="Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?o="Opera":e.indexOf("chrome")>=0?o="Chrome":e.indexOf("safari")>=0?o="Safari":e.indexOf("trident")>=0?o="Internet Explorer":o="Other",(o==="Chrome"||o==="Safari"||o==="Opera")&&n!=="20030107")return!0;var s=eval.toString().length;if(s===37&&o!=="Safari"&&o!=="Firefox"&&o!=="Other")return!0;if(s===39&&o!=="Internet Explorer"&&o!=="Other")return!0;if(s===33&&o!=="Chrome"&&o!=="Opera"&&o!=="Other")return!0;var l;try{throw"a"}catch(f){try{f.toSource(),l=!0}catch{l=!1}}return l&&o!=="Firefox"&&o!=="Other"},Tt=function(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d"))},yt=function(){if(!Tt())return!1;var e=Ke();return!!window.WebGLRenderingContext&&!!e},ba=function(){return navigator.appName==="Microsoft Internet Explorer"?!0:!!(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent))},xa=function(){return typeof window.swfobject<"u"},Ia=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},Ba=function(e){var n=document.createElement("div");n.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(n)},Ca=function(e,n){var o="___fp_swf_loaded";window[o]=function(g){e(g)};var s=n.fonts.swfContainerId;Ba();var l={onReady:o},f={allowScriptAccess:"always",menu:"false"};window.swfobject.embedSWF(n.fonts.swfPath,s,"1","1","9.0.0",!1,l,f,{})},Ke=function(){var e=document.createElement("canvas"),n=null;try{n=e.getContext("webgl")||e.getContext("experimental-webgl")}catch{}return n||(n=null),n},Da=[{key:"userAgent",getData:O},{key:"webdriver",getData:A},{key:"language",getData:x},{key:"colorDepth",getData:K},{key:"deviceMemory",getData:G},{key:"pixelRatio",getData:$},{key:"hardwareConcurrency",getData:ca},{key:"screenResolution",getData:Ge},{key:"availableScreenResolution",getData:He},{key:"timezoneOffset",getData:Un},{key:"timezone",getData:Gn},{key:"sessionStorage",getData:Vn},{key:"localStorage",getData:Hn},{key:"indexedDb",getData:Kn},{key:"addBehavior",getData:Wn},{key:"openDatabase",getData:Xn},{key:"cpuClass",getData:jn},{key:"platform",getData:qn},{key:"doNotTrack",getData:$n},{key:"plugins",getData:ia},{key:"canvas",getData:zn},{key:"webgl",getData:Yn},{key:"webglVendorAndRenderer",getData:Jn},{key:"adBlock",getData:Zn},{key:"hasLiedLanguages",getData:Qn},{key:"hasLiedResolution",getData:ea},{key:"hasLiedOs",getData:ta},{key:"hasLiedBrowser",getData:ra},{key:"touchSupport",getData:ua},{key:"fonts",getData:aa,pauseBefore:!0},{key:"fontsFlash",getData:na,pauseBefore:!0},{key:"audio",getData:R},{key:"enumerateDevices",getData:B}],W=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return W.get=function(e,n){n?e||(e={}):(n=e,e={}),m(e,S),e.components=e.extraComponents.concat(Da);var o={data:[],addPreprocessedComponent:function(f,g){typeof e.preprocessor=="function"&&(g=e.preprocessor(f,g)),o.data.push({key:f,value:g})}},s=-1,l=function(f){if(s+=1,s>=e.components.length){n(o.data);return}var g=e.components[s];if(e.excludes[g.key]){l(!1);return}if(!f&&g.pauseBefore){s-=1,setTimeout(function(){l(!0)},1);return}try{g.getData(function(h){o.addPreprocessedComponent(g.key,h),l(!1)},e)}catch(h){o.addPreprocessedComponent(g.key,String(h)),l(!1)}};l(!1)},W.getPromise=function(e){return new Promise(function(n,o){W.get(e,n)})},W.getV18=function(e,n){return n==null&&(n=e,e={}),W.get(e,function(o){for(var s=[],l=0;l<o.length;l++){var f=o[l];if(f.value===(e.NOT_AVAILABLE||"not available"))s.push({key:f.key,value:"unknown"});else if(f.key==="plugins")s.push({key:"plugins",value:d(f.value,function(h){var y=d(h[2],function(I){return I.join?I.join("~"):I}).join(",");return[h[0],h[1],y].join("::")})});else if(["canvas","webgl"].indexOf(f.key)!==-1)s.push({key:f.key,value:f.value.join("~")});else if(["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(f.key)!==-1)if(f.value)s.push({key:f.key,value:1});else continue;else f.value?s.push(f.value.join?{key:f.key,value:f.value.join(";")}:f):s.push({key:f.key,value:f.value})}var g=w(d(s,function(h){return h.value}).join("~~~"),31);n(g,s)})},W.x64hash128=w,W.VERSION="2.1.0",W})}(pe)),pe.exports}var Qt=Zt();const me=Yt(Qt);function rt(t){return t instanceof Element}const Z=typeof window.WeakMap=="function"?new WeakMap:void 0;function er(t){return Z==null?void 0:Z.get(t)}function tr(t,r){Z==null||Z.set(t,r)}const rr=["type","autocomplete","autofocus","placeholder","aria-label"];function nr(t){const r=t.parentNode,i=t.tagName;if(r){const u=Array.from(r.childNodes).filter(a=>rt(a)&&i===a.tagName);if(u.length>1){const a=u.indexOf(t);if(a>-1)return`:nth-of-type(${a+1})`}}return""}function ar(t){const r=t.id?`#${t.id}`:"",i=nr(t),u=rr.map(a=>{if(t.hasAttribute(a)){const c=t.getAttribute(a);return`[${c?`${a}="${c}"`:a}]`}}).filter(Boolean).join("");return t.tagName+r+i+u}function ir(t){const r=[t];let i=t;for(;i.parentElement;){const a=i.parentElement;r.push(a),i=a}const u=r.reverse().map(ar).join(" > ");return me.x64hash128(u,31)}function or(t){if(rt(t.target)){const r=t.target;let i=er(r);return i||(i=ir(r),tr(r,i)),i}}const nt=["keydown","keyup"],at=["mousemove","mousedown"],it=["paste","focusin","change",...at,...nt];let M,N;function ot(){M=new Map,N=[]}function sr(t){let r;return t.type==="change"&&(N&&(N==null?void 0:N.length)>0&&(r=N),ot()),r}function ur({key:t}){M&&M.get(t)===void 0&&M.set(t,J())}function cr({key:t}){const r=M==null?void 0:M.get(t);if(M&&r){N===void 0&&(N=[]),M.delete(t);const i={start:r,end:J()},u=zt(t);u&&(i.key=u),N.push(i)}}function xe(t){const r=t.type;if(r==="keydown"?ur(t):r==="keyup"&&cr(t),!nt.includes(r)){const i={event:r,trusted:t.isTrusted,el:qt(t),elUid:or(t),cadence:sr(t)};ne(i)}at.includes(r)&&document.removeEventListener(r,xe)}function lr(){ot(),it.forEach(t=>document.addEventListener(t,xe))}function dr(){it.forEach(t=>document.removeEventListener(t,xe)),M=void 0,N=void 0}const st="deviceorientation";let Q;function fr(t){const r=t.alpha!==null?t.alpha:0,i=t.beta!==null?t.beta:0,u=t.gamma!==null?t.gamma:0,a=Math.abs(i)>Math.abs(u)?"portrait":"landscape";return{alpha:r,beta:i,gamma:u,orientation:a}}async function gr(){if(!Q){const t="DeviceOrientationEvent"in window;return t&&(Q=r=>{ne({event:"orientation",orientation:fr(r)}),ut()},window.addEventListener(st,Q)),{supported:t}}}function ut(){Q&&(window.removeEventListener(st,Q),Q=void 0)}const vr="not available",hr=["userAgent","webdriver","language","colorDepth","deviceMemory","pixelRatio","hardwareConcurrency","timezoneOffset","timezone","sessionStorage","localStorage","indexedDb","openDatabase","platform","doNotTrack","plugins","canvas","webgl","webglVendorAndRenderer","adBlock","hasLiedOs","hasLiedBrowser","touchSupport","fonts","audio"],Ie=200,pr=(t,r)=>{switch(t){case"touchSupport":return Tr(r);case"plugins":return Er(r);case"webgl":case"canvas":return yr(r);default:return mr(r)}},mr=t=>typeof t=="string"?ct(t):Array.isArray(t)?wr(t):t,ct=t=>t.length>Ie?lt(t):t,wr=t=>((t==null?void 0:t.length)>Ie&&t.splice(0,Ie),t.map(r=>typeof r=="string"?ct(r):r)),Er=t=>{if(Array.isArray(t)&&t.length>0)return t.map(r=>Array.isArray(r)?r[0]:"")},Tr=t=>{if((t==null?void 0:t.length)===3)try{return{maxTouchPoints:Number(t[0]),touchEvent:!!t[1],touchStart:!!t[2]}}catch{return}},lt=t=>me.x64hash128(t,31),yr=t=>{if(t)return lt(t.toString())},Sr=500;async function dt(t){const r=await Rr(),i=[];r.forEach(({key:u,value:a})=>{if(i.push(a),hr.includes(u)&&a!==vr){const c=pr(u,a);c!==void 0&&(t[u]=c)}}),t.deviceFingerprint=me.x64hash128(i.join(""),31)}async function Ar(t){return new Promise((r,i)=>{typeof window.requestIdleCallback=="function"?requestIdleCallback(async()=>{try{r(await dt(t))}catch(u){i(u)}}):setTimeout(async()=>{try{r(await dt(t))}catch(u){i(u)}},Sr)})}function Rr(){return new Promise(t=>me.get(t))}function se(){return navigator instanceof window.Navigator}async function Or(t){var r;return!!(se()&&typeof((r=navigator.permissions)==null?void 0:r.query)=="function"&&(await navigator.permissions.query({name:t})).state==="granted")}async function br(){return new Promise(t=>{navigator.geolocation.getCurrentPosition(r=>{const i=r.coords.latitude,u=r.coords.longitude;t(`${i}:${u}`)},()=>{t("unknown")})})}async function xr(){const t=await Or("geolocation"),r={permissionGranted:t};return se()&&t&&navigator.geolocation&&(r.location=await br()),r}async function Ir(){if(se()&&"getBattery"in navigator&&typeof navigator.getBattery=="function"){const t=await navigator.getBattery();if(t)return{level:t.level,charging:t.charging}}}async function Br(){var t;if(se()&&typeof((t=navigator.mediaDevices)==null?void 0:t.enumerateDevices)=="function")return(await navigator.mediaDevices.enumerateDevices()).map(({kind:i,label:u,deviceId:a,groupId:c})=>({kind:i,label:u||void 0,deviceId:a||void 0,groupId:c||void 0}))}function Cr(){let t;try{throw"a"}catch(r){try{r.toSource(),t=!0}catch{t=!1}}return t}/*! * * detectIncognito v1.3.5 * * https://github.com/Joe12387/detectIncognito * * MIT License * * Copyright (c) 2021 - 2024 Joe Rutkowski <Joe@dreggle.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Please keep this comment intact in order to properly abide by the MIT License. * **/var Be={d:(t,r)=>{for(var i in r)Be.o(r,i)&&!Be.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r)},Ce={};Be.d(Ce,{A:()=>Pr,k:()=>De});var Dr=function(t,r,i,u){return new(i||(i=Promise))(function(a,c){function v(E){try{S(u.next(E))}catch(d){c(d)}}function w(E){try{S(u.throw(E))}catch(d){c(d)}}function S(E){var d;E.done?a(E.value):(d=E.value,d instanceof i?d:new i(function(m){m(d)})).then(v,w)}S((u=u.apply(t,[])).next())})},Lr=function(t,r){var i,u,a,c,v={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function w(S){return function(E){return function(d){if(i)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(v=0)),v;)try{if(i=1,u&&(a=2&d[0]?u.return:d[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,d[1])).done)return a;switch(u=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return v.label++,{value:d[1],done:!1};case 5:v.label++,u=d[1],d=[0];continue;case 7:d=v.ops.pop(),v.trys.pop();continue;default:if(a=v.trys,!((a=a.length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){v=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){v.label=d[1];break}if(d[0]===6&&v.label<a[1]){v.label=a[1],a=d;break}if(a&&v.label<a[2]){v.label=a[2],v.ops.push(d);break}a[2]&&v.ops.pop(),v.trys.pop();continue}d=r.call(t,v)}catch(m){d=[6,m],u=0}finally{i=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([S,E])}}};function De(){return Dr(this,void 0,Promise,function(){return Lr(this,function(t){switch(t.label){case 0:return[4,new Promise(function(r,i){var u,a,c="Unknown";function v(m){r({isPrivate:m,browserName:c})}function w(m){return m===eval.toString().length}function S(){navigator.maxTouchPoints!==void 0?function(){var m=String(Math.random());try{window.indexedDB.open(m,1).onupgradeneeded=function(B){var b,R,O=(b=B.target)===null||b===void 0?void 0:b.result;try{O.createObjectStore("test",{autoIncrement:!0}).put(new Blob),v(!1)}catch(x){var A=x;return x instanceof Error&&(A=(R=x.message)!==null&&R!==void 0?R:x),typeof A!="string"?void v(!1):void v(A.includes("BlobURLs are not yet supported"))}finally{O.close(),window.indexedDB.deleteDatabase(m)}}}catch{v(!1)}}():function(){var m=window.openDatabase,B=window.localStorage;try{m(null,null,null,null)}catch{return void v(!0)}try{B.setItem("test","1"),B.removeItem("test")}catch{return void v(!0)}v(!1)}()}function E(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(m,B){var b;v(Math.round(B/1048576)<2*Math.round(((b=window).performance!==void 0&&b.performance.memory!==void 0&&b.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824)/1048576))},function(m){i(new Error("detectIncognito somehow failed to query storage quota: "+m.message))})}function d(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?E():(0,window.webkitRequestFileSystem)(0,1,function(){v(!1)},function(){v(!0)})}(a=navigator.vendor)!==void 0&&a.indexOf("Apple")===0&&w(37)?(c="Safari",S()):function(){var m=navigator.vendor;return m!==void 0&&m.indexOf("Google")===0&&w(33)}()?(u=navigator.userAgent,c=u.match(/Chrome/)?navigator.brave!==void 0?"Brave":u.match(/Edg/)?"Edge":u.match(/OPR/)?"Opera":"Chrome":"Chromium",d()):document.documentElement!==void 0&&document.documentElement.style.MozAppearance!==void 0&&w(37)?(c="Firefox",v(navigator.serviceWorker===void 0)):navigator.msSaveBlob!==void 0&&w(39)?(c="Internet Explorer",v(window.indexedDB===void 0)):i(new Error("detectIncognito cannot determine the browser"))})];case 1:return[2,t.sent()]}})})}typeof window<"u"&&(window.detectIncognito=De);const Pr=De;var _r=Ce.A;Ce.k;const Mr="notDetected";async function Nr(){try{return await _r()}catch{return{browserName:Mr}}}async function Fr(){var E;const t={},{width:r,height:i,availWidth:u,availHeight:a}=window.screen;t.width=r,t.height=i,t.availableWidth=u,t.availableHeight=a;try{await Ar(t)}catch(d){L({type:"FpInitError",message:d.message})}const c=await Nr();if(t.browser=c.browserName,t.incognito=c.isPrivate,se()&&"userAgentData"in navigator){const d=navigator.userAgentData;t.mobile=d==null?void 0:d.mobile}(E=navigator.languages)!=null&&E.length&&(t.languages=[...navigator.languages]),t.geolocation=await xr();const v=await Ir();v&&(t.battery=v);const w=await Br();w&&(t.mediaDevices=w);const S=await gr();S&&(t.orientation=S),t.oscpu=navigator.oscpu,t.productSub=navigator.productSub,t.evalLength=eval.toString().length,t.errFirefox=Cr(),await ne(t)}const ft="navigate";let ue,Le;function kr(){var r,i;typeof((r=window.navigation)==null?void 0:r.addEventListener)=="function"&&(ue=()=>{const u=Gr();u!==Le&&(Le=u,ne({event:"urlchanged"}))},(i=window.navigation)==null||i.addEventListener(ft,ue))}function Ur(){var t;ue&&((t=window.navigation)==null||t.removeEventListener(ft,ue),ue=void 0,Le=void 0)}function Gr(){return window.location.href}var we=function(){return we=Object.assign||function(r){for(var i,u=1,a=arguments.length;u<a;u++){i=arguments[u];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},we.apply(this,arguments)};function Vr(t,r){var i={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&r.indexOf(u)<0&&(i[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,u=Object.getOwnPropertySymbols(t);a<u.length;a++)r.indexOf(u[a])<0&&Object.prototype.propertyIsEnumerable.call(t,u[a])&&(i[u[a]]=t[u[a]]);return i}function Hr(t,r,i){if(i||arguments.length===2)for(var u=0,a=r.length,c;u<a;u++)(c||!(u in r))&&(c||(c=Array.prototype.slice.call(r,0,u)),c[u]=r[u]);return t.concat(c||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;function Kr(t,r){return function(i,u){return Object.prototype.hasOwnProperty.call(i,u)}(t,r)?t[r]:void 0}function Wr(t,r,i,u){var a,c=document,v="securitypolicyviolation",w=function(E){var d=new URL(t,location.href),m=E.blockedURI;m!==d.href&&m!==d.protocol.slice(0,-1)&&m!==d.origin||(a=E,S())};c.addEventListener(v,w);var S=function(){return c.removeEventListener(v,w)};return Promise.resolve().then(r).then(function(E){return S(),E},function(E){return new Promise(function(d){var m=new MessageChannel;m.port1.onmessage=function(){return d()},m.port2.postMessage(null)}).then(function(){if(S(),a)return i(a);throw E})})}var Xr={default:"endpoint"},jr={default:"tlsEndpoint"},qr="Client timeout",$r="Network connection error",zr="Network request aborted",Yr="Response cannot be parsed",Pe="Blocked by CSP",_e="The endpoint parameter is not a valid URL";function U(t){for(var r="",i=0;i<t.length;++i)if(i>0){var u=t[i].toLowerCase();u!==t[i]?r+=" ".concat(u):r+=t[i]}else r+=t[i].toUpperCase();return r}var Jr=U("WrongRegion"),Zr=U("SubscriptionNotActive"),Qr=U("UnsupportedVersion"),en=U("InstallationMethodRestricted"),tn=U("HostnameRestricted"),rn=U("IntegrationFailed"),nn=U("NetworkRestricted"),an=U("InvalidProxyIntegrationSecret"),on=U("InvalidProxyIntegrationHeaders"),Me="API key required",gt="API key not found",vt="API key expired",sn="Request cannot be parsed",un="Request failed",cn="Request failed to process",ln="Too many requests, rate limit exceeded",dn="Not available for this origin",fn="Not available with restricted header",gn=Me,vn=gt,hn=vt,pn="3.11.11",Ee="Failed to load the JS script of the agent",Ne="9319";function mn(t,r){var i,u,a,c,v,w,S,E=[],d=(i=function(R){var O=Hr([],R,!0);return{current:function(){return O[0]},postpone:function(){var A=O.shift();A!==void 0&&O.push(A)},exclude:function(){O.shift()}}}(t),c=100,v=3e3,w=0,u=function(){return Math.random()*Math.min(v,c*Math.pow(2,w++))},a=new Set,[i.current(),function(R,O){var A,x=O instanceof Error?O.message:"";if(x===Pe||x===_e)i.exclude(),A=0;else if(x===Ne)i.exclude();else if(x===Ee){var K=Date.now()-R.getTime()<50,G=i.current();G&&K&&!a.has(G)&&(a.add(G),A=0),i.postpone()}else i.postpone();var $=i.current();return $===void 0?void 0:[$,A??R.getTime()+u()-Date.now()]}]),m=d[0],B=d[1];if(m===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var b=function(R){var O=new Date,A=function(K){return E.push({url:R,startedAt:O,finishedAt:new Date,error:K})},x=r(R);return x.then(function(){return A()},A),x.catch(function(K){if(S!=null||(S=K),E.length>=5)throw S;var G=B(O,K);if(!G)throw S;var $,Ge=G[0],Ve=G[1];return($=Ve,new Promise(function(He){return setTimeout(He,$)})).then(function(){return b(Ge)})})};return b(m).then(function(R){return[R,E]})}var ht="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",wn=ht;function En(t){var r;t.scriptUrlPattern;var i=t.token,u=t.apiKey,a=u===void 0?i:u,c=Vr(t,["scriptUrlPattern","token","apiKey"]),v=(r=Kr(t,"scriptUrlPattern"))!==null&&r!==void 0?r:ht,w=function(){var d=[],m=function(){d.push({time:new Date,state:document.visibilityState})},B=function(b,R,O,A){return b.addEventListener(R,O,A),function(){return b.removeEventListener(R,O,A)}}(document,"visibilitychange",m);return m(),[d,B]}(),S=w[0],E=w[1];return Promise.resolve().then(function(){if(!a||typeof a!="string")throw new Error(Me);var d=function(m,B){return(Array.isArray(m)?m:[m]).map(function(b){return function(R,O){var A=encodeURIComponent;return R.replace(/<[^<>]+>/g,function(x){return x==="<version>"?"3":x==="<apiKey>"?A(O):x==="<loaderVersion>"?A(pn):x})}(String(b),B)})}(v,a);return mn(d,Tn)}).catch(function(d){throw E(),function(m){return m instanceof Error&&m.message===Ne?new Error(Ee):m}(d)}).then(function(d){var m=d[0],B=d[1];return E(),m.load(we(we({},c),{ldi:{attempts:B,visibilityStates:S}}))})}function Tn(t){return Wr(t,function(){return function(r){return new Promise(function(i