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 53.5 kB
(function(G,Y){typeof exports=="object"&&typeof module<"u"?Y(exports):typeof define=="function"&&define.amd?define(["exports"],Y):(G=typeof globalThis<"u"?globalThis:G||self,Y(G.SumsubFisherman={}))})(this,function(G){"use strict";var ft;function Y(){return Date.now()}function Tt(){return new Date().toISOString()}const wt="crypto"in window&&"randomUUID"in window.crypto;function Et(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function yt(){return wt?crypto.randomUUID():Et()}const St={type:"InvalidToken",message:"Token is invalid, make sure you generate a new one each time, because the old ones are invalidated upon usage"},Ve={type:"NoToken",message:"Authentication token is required to send requests"},Rt={type:"UpdateTokenRetriesLimitReached",message:"Token renewal failed after multiple attempts (limit reached). Request aborted to prevent infinite retry loop."},At={type:"NetworkError",message:"Failed to connect to the server. Possible network or CORS configuration issue."},xt={type:"FpDisabled",message:"You are trying to use FP, which is not enabled for you."},Ot={type:"FpClientTimeout",message:"Device visitorId calc timeout"},bt={type:"FpRateLimit",message:"FP request rate limit is exceeded"},ve=0;async function pe({payload:t,token:n,url:s,onload:u}){try{const o=await fetch(s,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","X-Client-Id":"fisherman",...n?{"X-Access-Token":n}:{}}});u(o.status,t)}catch{u(ve,t)}}const Ct=2e3,Bt=3,It=atob("aHR0cHM6Ly9jb2NrcGl0LnN1bXN1Yi5jb20="),He=`/resources/bhv/evts/${Math.random().toString(36).substring(0,8)}`,Ke="/resources/di/req";let M,he,We,j,k,me,Te,we=He,Ee=Ke,ye=0;function Pt(t){M=t,re(M.token)}function Dt(t){t&&(we=t)}function Mt(t){t&&(Ee=t)}function _t(){Xe(),We=void 0,re(void 0),he=void 0,we=He,Ee=Ke}async function te(t,n){return await Nt(Lt(t,{fpRequestId:n==null?void 0:n.fpRequestId,fpVisitorId:n==null?void 0:n.fpVisitorId,fpSimulation:n==null?void 0:n.fpSimulation},n==null?void 0:n.behavioralDataEnabled))}function Lt(t,n={},s=!0){t.capturedAt=Tt();const u=yt(),o="deviceFingerprint"in t||!s,c={id:u,predecessorEventId:he,deviceSessionId:We,...n,[o?"initData":"interactionData"]:t};return he=u,c}async function Nt(t,n){k===void 0&&(k=[]),!me&&t.initData?(me=!0,k.unshift(t)):k.push(t),me&&(Te||(Te=setTimeout(kt,Ct)))}function Xe(){k=void 0,Te=void 0}async function kt(){if(k!=null&&k.length&&j){const t=[...k];Xe(),await je(t)}}function ie(){return M.baseUrl!==void 0?M.baseUrl:It}async function Ft(){if(M.accessTokenUpdateHandler){const t=await M.accessTokenUpdateHandler();re(t)}}async function je(t){return j?pe({payload:t,token:j,url:`${ie()}${we}`,onload:(n,s)=>qe(n,()=>je(s))}):(V(Ve),Promise.resolve())}async function Se(t){return j?pe({payload:t,token:j,url:`${ie()}${Ee}`,onload:(n,s)=>qe(n,()=>Se(s))}):(V(Ve),Promise.resolve())}async function qe(t,n){if(t===401||t===ve){let s=ye>=Bt;!s&&M.accessTokenUpdateHandler?(ye++,await Ft(),await n()):re(void 0);let u;t===ve?u=At:s?u=Rt:u=St,V(u)}else t==200&&(ye=0)}function V(t){const n={errorType:"fishermanError",errorName:t.type,message:t.message};M.disabledErrorLogging||pe({payload:n,token:j,url:`${ie()}/resources/serviceLogger/warn`,onload:()=>{}}),M.onError&&M.onError(t)}function re(t){j=t}const ze="focus";let oe,$e=0;function Ut(){oe=()=>{$e++,te({event:"focus",count:$e})},window.addEventListener(ze,oe)}function Gt(){oe&&window.removeEventListener(ze,oe)}function Vt(t){if(t.target instanceof Element){const n=t.target,s=n.getAttribute("type"),u=s?`[${s}]`:"",o=n.id?`#${n.id}`:"";return`${n.tagName}${u}${o}`}}const Ht=["Alt","Control","Meta","Shift","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","Backspace","Delete","Escape"];function Kt(t){if(Ht.includes(t))return t}function Wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var se={exports:{}},Xt=se.exports,Ye;function jt(){return Ye||(Ye=1,function(t){(function(n,s,u){t.exports?t.exports=u():s.exports?s.exports=u():s[n]=u()})("Fingerprint2",Xt,function(){var n=function(e,r){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],r=[r[0]>>>16,r[0]&65535,r[1]>>>16,r[1]&65535];var a=[0,0,0,0];return a[3]+=e[3]+r[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]+r[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]+r[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]+r[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]},s=function(e,r){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],r=[r[0]>>>16,r[0]&65535,r[1]>>>16,r[1]&65535];var a=[0,0,0,0];return a[3]+=e[3]*r[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=e[2]*r[3],a[1]+=a[2]>>>16,a[2]&=65535,a[2]+=e[3]*r[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=e[1]*r[3],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[2]*r[2],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=e[3]*r[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=e[0]*r[3]+e[1]*r[2]+e[2]*r[1]+e[3]*r[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]},u=function(e,r){return r%=64,r===32?[e[1],e[0]]:r<32?[e[0]<<r|e[1]>>>32-r,e[1]<<r|e[0]>>>32-r]:(r-=32,[e[1]<<r|e[0]>>>32-r,e[0]<<r|e[1]>>>32-r])},o=function(e,r){return r%=64,r===0?e:r<32?[e[0]<<r|e[1]>>>32-r,e[1]<<r]:[e[1]<<r-32,0]},c=function(e,r){return[e[0]^r[0],e[1]^r[1]]},v=function(e){return e=c(e,[0,e[0]>>>1]),e=s(e,[4283543511,3981806797]),e=c(e,[0,e[0]>>>1]),e=s(e,[3301882366,444984403]),e=c(e,[0,e[0]>>>1]),e},w=function(e,r){e=e||"",r=r||0;for(var a=e.length%16,i=e.length-a,l=[0,r],d=[0,r],g=[0,0],p=[0,0],S=[2277735313,289559509],C=[1291169091,658871167],h=0;h<i;h=h+16)g=[e.charCodeAt(h+4)&255|(e.charCodeAt(h+5)&255)<<8|(e.charCodeAt(h+6)&255)<<16|(e.charCodeAt(h+7)&255)<<24,e.charCodeAt(h)&255|(e.charCodeAt(h+1)&255)<<8|(e.charCodeAt(h+2)&255)<<16|(e.charCodeAt(h+3)&255)<<24],p=[e.charCodeAt(h+12)&255|(e.charCodeAt(h+13)&255)<<8|(e.charCodeAt(h+14)&255)<<16|(e.charCodeAt(h+15)&255)<<24,e.charCodeAt(h+8)&255|(e.charCodeAt(h+9)&255)<<8|(e.charCodeAt(h+10)&255)<<16|(e.charCodeAt(h+11)&255)<<24],g=s(g,S),g=u(g,31),g=s(g,C),l=c(l,g),l=u(l,27),l=n(l,d),l=n(s(l,[0,5]),[0,1390208809]),p=s(p,C),p=u(p,33),p=s(p,S),d=c(d,p),d=u(d,31),d=n(d,l),d=n(s(d,[0,5]),[0,944331445]);switch(g=[0,0],p=[0,0],a){case 15:p=c(p,o([0,e.charCodeAt(h+14)],48));case 14:p=c(p,o([0,e.charCodeAt(h+13)],40));case 13:p=c(p,o([0,e.charCodeAt(h+12)],32));case 12:p=c(p,o([0,e.charCodeAt(h+11)],24));case 11:p=c(p,o([0,e.charCodeAt(h+10)],16));case 10:p=c(p,o([0,e.charCodeAt(h+9)],8));case 9:p=c(p,[0,e.charCodeAt(h+8)]),p=s(p,C),p=u(p,33),p=s(p,S),d=c(d,p);case 8:g=c(g,o([0,e.charCodeAt(h+7)],56));case 7:g=c(g,o([0,e.charCodeAt(h+6)],48));case 6:g=c(g,o([0,e.charCodeAt(h+5)],40));case 5:g=c(g,o([0,e.charCodeAt(h+4)],32));case 4:g=c(g,o([0,e.charCodeAt(h+3)],24));case 3:g=c(g,o([0,e.charCodeAt(h+2)],16));case 2:g=c(g,o([0,e.charCodeAt(h+1)],8));case 1:g=c(g,[0,e.charCodeAt(h)]),g=s(g,S),g=u(g,31),g=s(g,C),l=c(l,g)}return l=c(l,[0,e.length]),d=c(d,[0,e.length]),l=n(l,d),d=n(d,l),l=v(l),d=v(d),l=n(l,d),d=n(d,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)},E={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"},T=function(e,r){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(r);else if(e.length===+e.length)for(var a=0,i=e.length;a<i;a++)r(e[a],a,e);else for(var l in e)e.hasOwnProperty(l)&&r(e[l],l,e)},f=function(e,r){var a=[];return e==null?a:Array.prototype.map&&e.map===Array.prototype.map?e.map(r):(T(e,function(i,l,d){a.push(r(i,l,d))}),a)},m=function(e,r){if(r==null)return e;var a,i;for(i in r)a=r[i],a!=null&&!Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=a);return e},B=function(e,r){if(!O())return e(r.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then(function(a){e(a.map(function(i){return"id="+i.deviceId+";gid="+i.groupId+";"+i.kind+";"+i.label}))}).catch(function(a){e(a)})},O=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices},A=function(e,r){var a=r.audio;if(a.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(r.EXCLUDED);var i=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(i==null)return e(r.NOT_AVAILABLE);var l=new i(1,44100,44100),d=l.createOscillator();d.type="triangle",d.frequency.setValueAtTime(1e4,l.currentTime);var g=l.createDynamicsCompressor();T([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],function(S){g[S[0]]!==void 0&&typeof g[S[0]].setValueAtTime=="function"&&g[S[0]].setValueAtTime(S[1],l.currentTime)}),d.connect(g),g.connect(l.destination),d.start(0),l.startRendering();var p=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")},a.timeout);l.oncomplete=function(S){var C;try{clearTimeout(p),C=S.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce(function(h,W){return h+Math.abs(W)},0).toString(),d.disconnect(),g.disconnect()}catch(h){e(h);return}e(C)}},x=function(e){e(navigator.userAgent)},R=function(e,r){e(navigator.webdriver==null?r.NOT_AVAILABLE:navigator.webdriver)},b=function(e,r){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||r.NOT_AVAILABLE)},H=function(e,r){e(window.screen.colorDepth||r.NOT_AVAILABLE)},U=function(e,r){e(navigator.deviceMemory||r.NOT_AVAILABLE)},q=function(e,r){e(window.devicePixelRatio||r.NOT_AVAILABLE)},Le=function(e,r){e(Ne(r))},Ne=function(e){var r=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&r.sort().reverse(),r},ke=function(e,r){e(On(r))},On=function(e){if(window.screen.availWidth&&window.screen.availHeight){var r=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&r.sort().reverse(),r}return e.NOT_AVAILABLE},bn=function(e){e(new Date().getTimezoneOffset())},Cn=function(e,r){if(window.Intl&&window.Intl.DateTimeFormat){e(new window.Intl.DateTimeFormat().resolvedOptions().timeZone);return}e(r.NOT_AVAILABLE)},Bn=function(e,r){e(Jn(r))},In=function(e,r){e(Qn(r))},Pn=function(e,r){e(ea(r))},Dn=function(e){e(!!(document.body&&document.body.addBehavior))},Mn=function(e){e(!!window.openDatabase)},_n=function(e,r){e(ra(r))},Ln=function(e,r){e(na(r))},Nn=function(e,r){e(aa(r))},kn=function(e,r){if(vt()){e(oa(r));return}e(r.NOT_AVAILABLE)},Fn=function(e,r){if(pt()){e(sa());return}e(r.NOT_AVAILABLE)},Un=function(e){if(pt()){e(ua());return}e()},Gn=function(e){e(ca())},Vn=function(e){e(la())},Hn=function(e){e(da())},Kn=function(e){e(fa())},Wn=function(e){e(ga())},Xn=function(e,r){if(!pa())return e("swf object not loaded");if(!ha())return e("flash not installed");if(!r.fonts.swfPath)return e("missing options.fonts.swfPath");Ta(function(a){e(a)},r)},jn=function(e,r){var a=["monospace","sans-serif","serif"],i=["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(r.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"];i=i.concat(l)}i=i.concat(r.fonts.userDefinedFonts),i=i.filter(function(y,I){return i.indexOf(y)===I});var d="mmmmmmmmmmlli",g="72px",p=document.getElementsByTagName("body")[0],S=document.createElement("div"),C=document.createElement("div"),h={},W={},P=function(){var y=document.createElement("span");return y.style.position="absolute",y.style.left="-9999px",y.style.fontSize=g,y.style.fontStyle="normal",y.style.fontWeight="normal",y.style.letterSpacing="normal",y.style.lineBreak="auto",y.style.lineHeight="normal",y.style.textTransform="none",y.style.textAlign="left",y.style.textDecoration="none",y.style.textShadow="none",y.style.whiteSpace="normal",y.style.wordBreak="normal",y.style.wordSpacing="normal",y.innerHTML=d,y},z=function(y,I){var D=P();return D.style.fontFamily="'"+y+"',"+I,D},X=function(){for(var y=[],I=0,D=a.length;I<D;I++){var ee=P();ee.style.fontFamily=a[I],S.appendChild(ee),y.push(ee)}return y},$=function(){for(var y={},I=0,D=i.length;I<D;I++){for(var ee=[],Ge=0,Ra=a.length;Ge<Ra;Ge++){var mt=z(i[I],a[Ge]);C.appendChild(mt),ee.push(mt)}y[i[I]]=ee}return y},Ue=function(y){for(var I=!1,D=0;D<a.length;D++)if(I=y[D].offsetWidth!==h[a[D]]||y[D].offsetHeight!==W[a[D]],I)return I;return I},fe=X();p.appendChild(S);for(var Q=0,Ea=a.length;Q<Ea;Q++)h[a[Q]]=fe[Q].offsetWidth,W[a[Q]]=fe[Q].offsetHeight;var ya=$();p.appendChild(C);for(var ht=[],ge=0,Sa=i.length;ge<Sa;ge++)Ue(ya[i[ge]])&&ht.push(i[ge]);p.removeChild(C),p.removeChild(S),e(ht)},qn=function(e,r){va()?r.plugins.excludeIE?e(r.EXCLUDED):e(zn(r)):e(gt(r))},gt=function(e){if(navigator.plugins==null)return e.NOT_AVAILABLE;for(var r=[],a=0,i=navigator.plugins.length;a<i;a++)navigator.plugins[a]&&r.push(navigator.plugins[a]);return $n(e)&&(r=r.sort(function(l,d){return l.name>d.name?1:l.name<d.name?-1:0})),f(r,function(l){var d=f(l,function(g){return[g.type,g.suffixes]});return[l.name,l.description,d]})},zn=function(e){var r=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var a=["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"];r=f(a,function(i){try{return new window.ActiveXObject(i),i}catch{return e.ERROR}})}else r.push(e.NOT_AVAILABLE);return navigator.plugins&&(r=r.concat(gt(e))),r},$n=function(e){for(var r=!1,a=0,i=e.plugins.sortPluginsFor.length;a<i;a++){var l=e.plugins.sortPluginsFor[a];if(navigator.userAgent.match(l)){r=!0;break}}return r},Yn=function(e){e(ia())},Zn=function(e,r){e(ta(r))},Jn=function(e){try{return!!window.sessionStorage}catch{return e.ERROR}},Qn=function(e){try{return!!window.localStorage}catch{return e.ERROR}},ea=function(e){try{return!!window.indexedDB}catch{return e.ERROR}},ta=function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE},ra=function(e){return navigator.cpuClass||e.NOT_AVAILABLE},na=function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE},aa=function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE},ia=function(){var e=0,r;typeof navigator.maxTouchPoints<"u"?e=navigator.maxTouchPoints:typeof navigator.msMaxTouchPoints<"u"&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),r=!0}catch{r=!1}var a="ontouchstart"in window;return[e,r,a]},oa=function(e){var r=[],a=document.createElement("canvas");a.width=2e3,a.height=200,a.style.display="inline";var i=a.getContext("2d");return i.rect(0,0,10,10),i.rect(2,2,6,6),r.push("canvas winding:"+(i.isPointInPath(5,5,"evenodd")===!1?"yes":"no")),i.textBaseline="alphabetic",i.fillStyle="#f60",i.fillRect(125,1,62,20),i.fillStyle="#069",e.dontUseFakeFontInCanvas?i.font="11pt Arial":i.font="11pt no-real-font-123",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),i.fillStyle="rgba(102, 204, 0, 0.2)",i.font="18pt Arial",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),i.globalCompositeOperation="multiply",i.fillStyle="rgb(255,0,255)",i.beginPath(),i.arc(50,50,50,0,Math.PI*2,!0),i.closePath(),i.fill(),i.fillStyle="rgb(0,255,255)",i.beginPath(),i.arc(100,50,50,0,Math.PI*2,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,255,0)",i.beginPath(),i.arc(75,100,50,0,Math.PI*2,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,0,255)",i.arc(75,75,75,0,Math.PI*2,!0),i.arc(75,75,25,0,Math.PI*2,!0),i.fill("evenodd"),a.toDataURL&&r.push("canvas fp:"+a.toDataURL()),r},sa=function(){var e,r=function(P){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),"["+P[0]+", "+P[1]+"]"},a=function(P){var z=P.getExtension("EXT_texture_filter_anisotropic")||P.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||P.getExtension("MOZ_EXT_texture_filter_anisotropic");if(z){var X=P.getParameter(z.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return X===0&&(X=2),X}else return null};if(e=Fe(),!e)return null;var i=[],l="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",d="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",g=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,g);var p=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,p,e.STATIC_DRAW),g.itemSize=3,g.numItems=3;var S=e.createProgram(),C=e.createShader(e.VERTEX_SHADER);e.shaderSource(C,l),e.compileShader(C);var h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,d),e.compileShader(h),e.attachShader(S,C),e.attachShader(S,h),e.linkProgram(S),e.useProgram(S),S.vertexPosAttrib=e.getAttribLocation(S,"attrVertex"),S.offsetUniform=e.getUniformLocation(S,"uniformOffset"),e.enableVertexAttribArray(S.vertexPosArray),e.vertexAttribPointer(S.vertexPosAttrib,g.itemSize,e.FLOAT,!1,0,0),e.uniform2f(S.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,g.numItems);try{i.push(e.canvas.toDataURL())}catch{}i.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),i.push("webgl aliased line width range:"+r(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),i.push("webgl aliased point size range:"+r(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),i.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),i.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),i.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),i.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),i.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),i.push("webgl max anisotropy:"+a(e)),i.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),i.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),i.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),i.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),i.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),i.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),i.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),i.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),i.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),i.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),i.push("webgl max viewport dims:"+r(e.getParameter(e.MAX_VIEWPORT_DIMS))),i.push("webgl red bits:"+e.getParameter(e.RED_BITS)),i.push("webgl renderer:"+e.getParameter(e.RENDERER)),i.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),i.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),i.push("webgl vendor:"+e.getParameter(e.VENDOR)),i.push("webgl version:"+e.getParameter(e.VERSION));try{var W=e.getExtension("WEBGL_debug_renderer_info");W&&(i.push("webgl unmasked vendor:"+e.getParameter(W.UNMASKED_VENDOR_WEBGL)),i.push("webgl unmasked renderer:"+e.getParameter(W.UNMASKED_RENDERER_WEBGL)))}catch{}return e.getShaderPrecisionFormat&&T(["FLOAT","INT"],function(P){T(["VERTEX","FRAGMENT"],function(z){T(["HIGH","MEDIUM","LOW"],function(X){T(["precision","rangeMin","rangeMax"],function($){var Ue=e.getShaderPrecisionFormat(e[z+"_SHADER"],e[X+"_"+P])[$];$!=="precision"&&($="precision "+$);var fe=["webgl ",z.toLowerCase()," shader ",X.toLowerCase()," ",P.toLowerCase()," ",$,":",Ue].join("");i.push(fe)})})})}),i},ua=function(){try{var e=Fe(),r=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(r.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(r.UNMASKED_RENDERER_WEBGL)}catch{return null}},ca=function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="adsbox";var r=!1;try{document.body.appendChild(e),r=document.getElementsByClassName("adsbox")[0].offsetHeight===0,document.body.removeChild(e)}catch{r=!1}return r},la=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},da=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},fa=function(){var e=navigator.userAgent.toLowerCase(),r=navigator.oscpu,a=navigator.platform.toLowerCase(),i;e.indexOf("windows phone")>=0?i="Windows Phone":e.indexOf("win")>=0?i="Windows":e.indexOf("android")>=0?i="Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?i="Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?i="iOS":e.indexOf("mac")>=0?i="Mac":i="Other";var l="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;if(l&&i!=="Windows Phone"&&i!=="Android"&&i!=="iOS"&&i!=="Other")return!0;if(typeof r<"u"){if(r=r.toLowerCase(),r.indexOf("win")>=0&&i!=="Windows"&&i!=="Windows Phone")return!0;if(r.indexOf("linux")>=0&&i!=="Linux"&&i!=="Android")return!0;if(r.indexOf("mac")>=0&&i!=="Mac"&&i!=="iOS")return!0;if((r.indexOf("win")===-1&&r.indexOf("linux")===-1&&r.indexOf("mac")===-1)!=(i==="Other"))return!0}if(a.indexOf("win")>=0&&i!=="Windows"&&i!=="Windows Phone")return!0;if((a.indexOf("linux")>=0||a.indexOf("android")>=0||a.indexOf("pike")>=0)&&i!=="Linux"&&i!=="Android")return!0;if((a.indexOf("mac")>=0||a.indexOf("ipad")>=0||a.indexOf("ipod")>=0||a.indexOf("iphone")>=0)&&i!=="Mac"&&i!=="iOS")return!0;var d=a.indexOf("win")<0&&a.indexOf("linux")<0&&a.indexOf("mac")<0&&a.indexOf("iphone")<0&&a.indexOf("ipad")<0;return d!==(i==="Other")?!0:typeof navigator.plugins>"u"&&i!=="Windows"&&i!=="Windows Phone"},ga=function(){var e=navigator.userAgent.toLowerCase(),r=navigator.productSub,a;if(e.indexOf("firefox")>=0?a="Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?a="Opera":e.indexOf("chrome")>=0?a="Chrome":e.indexOf("safari")>=0?a="Safari":e.indexOf("trident")>=0?a="Internet Explorer":a="Other",(a==="Chrome"||a==="Safari"||a==="Opera")&&r!=="20030107")return!0;var i=eval.toString().length;if(i===37&&a!=="Safari"&&a!=="Firefox"&&a!=="Other")return!0;if(i===39&&a!=="Internet Explorer"&&a!=="Other")return!0;if(i===33&&a!=="Chrome"&&a!=="Opera"&&a!=="Other")return!0;var l;try{throw"a"}catch(d){try{d.toSource(),l=!0}catch{l=!1}}return l&&a!=="Firefox"&&a!=="Other"},vt=function(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d"))},pt=function(){if(!vt())return!1;var e=Fe();return!!window.WebGLRenderingContext&&!!e},va=function(){return navigator.appName==="Microsoft Internet Explorer"?!0:!!(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent))},pa=function(){return typeof window.swfobject<"u"},ha=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},ma=function(e){var r=document.createElement("div");r.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(r)},Ta=function(e,r){var a="___fp_swf_loaded";window[a]=function(g){e(g)};var i=r.fonts.swfContainerId;ma();var l={onReady:a},d={allowScriptAccess:"always",menu:"false"};window.swfobject.embedSWF(r.fonts.swfPath,i,"1","1","9.0.0",!1,l,d,{})},Fe=function(){var e=document.createElement("canvas"),r=null;try{r=e.getContext("webgl")||e.getContext("experimental-webgl")}catch{}return r||(r=null),r},wa=[{key:"userAgent",getData:x},{key:"webdriver",getData:R},{key:"language",getData:b},{key:"colorDepth",getData:H},{key:"deviceMemory",getData:U},{key:"pixelRatio",getData:q},{key:"hardwareConcurrency",getData:Zn},{key:"screenResolution",getData:Le},{key:"availableScreenResolution",getData:ke},{key:"timezoneOffset",getData:bn},{key:"timezone",getData:Cn},{key:"sessionStorage",getData:Bn},{key:"localStorage",getData:In},{key:"indexedDb",getData:Pn},{key:"addBehavior",getData:Dn},{key:"openDatabase",getData:Mn},{key:"cpuClass",getData:_n},{key:"platform",getData:Ln},{key:"doNotTrack",getData:Nn},{key:"plugins",getData:qn},{key:"canvas",getData:kn},{key:"webgl",getData:Fn},{key:"webglVendorAndRenderer",getData:Un},{key:"adBlock",getData:Gn},{key:"hasLiedLanguages",getData:Vn},{key:"hasLiedResolution",getData:Hn},{key:"hasLiedOs",getData:Kn},{key:"hasLiedBrowser",getData:Wn},{key:"touchSupport",getData:Yn},{key:"fonts",getData:jn,pauseBefore:!0},{key:"fontsFlash",getData:Xn,pauseBefore:!0},{key:"audio",getData:A},{key:"enumerateDevices",getData:B}],K=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return K.get=function(e,r){r?e||(e={}):(r=e,e={}),m(e,E),e.components=e.extraComponents.concat(wa);var a={data:[],addPreprocessedComponent:function(d,g){typeof e.preprocessor=="function"&&(g=e.preprocessor(d,g)),a.data.push({key:d,value:g})}},i=-1,l=function(d){if(i+=1,i>=e.components.length){r(a.data);return}var g=e.components[i];if(e.excludes[g.key]){l(!1);return}if(!d&&g.pauseBefore){i-=1,setTimeout(function(){l(!0)},1);return}try{g.getData(function(p){a.addPreprocessedComponent(g.key,p),l(!1)},e)}catch(p){a.addPreprocessedComponent(g.key,String(p)),l(!1)}};l(!1)},K.getPromise=function(e){return new Promise(function(r,a){K.get(e,r)})},K.getV18=function(e,r){return r==null&&(r=e,e={}),K.get(e,function(a){for(var i=[],l=0;l<a.length;l++){var d=a[l];if(d.value===(e.NOT_AVAILABLE||"not available"))i.push({key:d.key,value:"unknown"});else if(d.key==="plugins")i.push({key:"plugins",value:f(d.value,function(p){var S=f(p[2],function(C){return C.join?C.join("~"):C}).join(",");return[p[0],p[1],S].join("::")})});else if(["canvas","webgl"].indexOf(d.key)!==-1)i.push({key:d.key,value:d.value.join("~")});else if(["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(d.key)!==-1)if(d.value)i.push({key:d.key,value:1});else continue;else d.value?i.push(d.value.join?{key:d.key,value:d.value.join(";")}:d):i.push({key:d.key,value:d.value})}var g=w(f(i,function(p){return p.value}).join("~~~"),31);r(g,i)})},K.x64hash128=w,K.VERSION="2.1.0",K})}(se)),se.exports}var qt=jt();const ue=Wt(qt);function Ze(t){return t instanceof Element}const Z=typeof window.WeakMap=="function"?new WeakMap:void 0;function zt(t){return Z==null?void 0:Z.get(t)}function $t(t,n){Z==null||Z.set(t,n)}const Yt=["type","autocomplete","autofocus","placeholder","aria-label"];function Zt(t){const n=t.parentNode,s=t.tagName;if(n){const u=Array.from(n.childNodes).filter(o=>Ze(o)&&s===o.tagName);if(u.length>1){const o=u.indexOf(t);if(o>-1)return`:nth-of-type(${o+1})`}}return""}function Jt(t){const n=t.id?`#${t.id}`:"",s=Zt(t),u=Yt.map(o=>{if(t.hasAttribute(o)){const c=t.getAttribute(o);return`[${c?`${o}="${c}"`:o}]`}}).filter(Boolean).join("");return t.tagName+n+s+u}function Qt(t){const n=[t];let s=t;for(;s.parentElement;){const o=s.parentElement;n.push(o),s=o}const u=n.reverse().map(Jt).join(" > ");return ue.x64hash128(u,31)}function er(t){if(Ze(t.target)){const n=t.target;let s=zt(n);return s||(s=Qt(n),$t(n,s)),s}}const Je=["keydown","keyup"],Qe=["mousemove","mousedown"],et=["paste","focusin","change",...Qe,...Je];let _,L;function tt(){_=new Map,L=[]}function tr(t){let n;return t.type==="change"&&(L&&(L==null?void 0:L.length)>0&&(n=L),tt()),n}function rr({key:t}){_&&_.get(t)===void 0&&_.set(t,Y())}function nr({key:t}){const n=_==null?void 0:_.get(t);if(_&&n){L===void 0&&(L=[]),_.delete(t);const s={start:n,end:Y()},u=Kt(t);u&&(s.key=u),L.push(s)}}function Re(t){const n=t.type;if(n==="keydown"?rr(t):n==="keyup"&&nr(t),!Je.includes(n)){const s={event:n,trusted:t.isTrusted,el:Vt(t),elUid:er(t),cadence:tr(t)};te(s)}Qe.includes(n)&&document.removeEventListener(n,Re)}function ar(){tt(),et.forEach(t=>document.addEventListener(t,Re))}function ir(){et.forEach(t=>document.removeEventListener(t,Re)),_=void 0,L=void 0}const rt="deviceorientation";let J;function or(t){const n=t.alpha!==null?t.alpha:0,s=t.beta!==null?t.beta:0,u=t.gamma!==null?t.gamma:0,o=Math.abs(s)>Math.abs(u)?"portrait":"landscape";return{alpha:n,beta:s,gamma:u,orientation:o}}async function sr(){if(!J){const t="DeviceOrientationEvent"in window;return t&&(J=n=>{te({event:"orientation",orientation:or(n)}),nt()},window.addEventListener(rt,J)),{supported:t}}}function nt(){J&&(window.removeEventListener(rt,J),J=void 0)}const ur="not available",cr=["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"],Ae=200,lr=(t,n)=>{switch(t){case"touchSupport":return vr(n);case"plugins":return gr(n);case"webgl":case"canvas":return pr(n);default:return dr(n)}},dr=t=>typeof t=="string"?at(t):Array.isArray(t)?fr(t):t,at=t=>t.length>Ae?it(t):t,fr=t=>((t==null?void 0:t.length)>Ae&&t.splice(0,Ae),t.map(n=>typeof n=="string"?at(n):n)),gr=t=>{if(Array.isArray(t)&&t.length>0)return t.map(n=>Array.isArray(n)?n[0]:"")},vr=t=>{if((t==null?void 0:t.length)===3)try{return{maxTouchPoints:Number(t[0]),touchEvent:!!t[1],touchStart:!!t[2]}}catch{return}},it=t=>ue.x64hash128(t,31),pr=t=>{if(t)return it(t.toString())},hr=500;async function ot(t){const n=await Tr(),s=[];n.forEach(({key:u,value:o})=>{if(s.push(o),cr.includes(u)&&o!==ur){const c=lr(u,o);c!==void 0&&(t[u]=c)}}),t.deviceFingerprint=ue.x64hash128(s.join(""),31)}async function mr(t){return new Promise((n,s)=>{typeof window.requestIdleCallback=="function"?requestIdleCallback(async()=>{n(await ot(t))}):setTimeout(async()=>{n(await ot(t))},hr)})}function Tr(){return new Promise(t=>ue.get(t))}function ne(){return navigator instanceof window.Navigator}async function wr(t){var n;return!!(ne()&&typeof((n=navigator.permissions)==null?void 0:n.query)=="function"&&(await navigator.permissions.query({name:t})).state==="granted")}async function Er(){return new Promise(t=>{navigator.geolocation.getCurrentPosition(n=>{const s=n.coords.latitude,u=n.coords.longitude;t(`${s}:${u}`)},()=>{t("unknown")})})}async function yr(){const t=await wr("geolocation"),n={permissionGranted:t};return ne()&&t&&navigator.geolocation&&(n.location=await Er()),n}async function Sr(){if(ne()&&"getBattery"in navigator&&typeof navigator.getBattery=="function"){const t=await navigator.getBattery();if(t)return{level:t.level,charging:t.charging}}}async function Rr(){var t;if(ne()&&typeof((t=navigator.mediaDevices)==null?void 0:t.enumerateDevices)=="function")return(await navigator.mediaDevices.enumerateDevices()).map(({kind:s,label:u,deviceId:o,groupId:c})=>({kind:s,label:u||void 0,deviceId:o||void 0,groupId:c||void 0}))}function Ar(){let t;try{throw"a"}catch(n){try{n.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 xe={d:(t,n)=>{for(var s in n)xe.o(n,s)&&!xe.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)},Oe={};xe.d(Oe,{A:()=>br,k:()=>be});var xr=function(t,n,s,u){return new(s||(s=Promise))(function(o,c){function v(T){try{E(u.next(T))}catch(f){c(f)}}function w(T){try{E(u.throw(T))}catch(f){c(f)}}function E(T){var f;T.done?o(T.value):(f=T.value,f instanceof s?f:new s(function(m){m(f)})).then(v,w)}E((u=u.apply(t,[])).next())})},Or=function(t,n){var s,u,o,c,v={label:0,sent:function(){if(1&o[0])throw o[1];return o[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(E){return function(T){return function(f){if(s)throw new TypeError("Generator is already executing.");for(;c&&(c=0,f[0]&&(v=0)),v;)try{if(s=1,u&&(o=2&f[0]?u.return:f[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,f[1])).done)return o;switch(u=0,o&&(f=[2&f[0],o.value]),f[0]){case 0:case 1:o=f;break;case 4:return v.label++,{value:f[1],done:!1};case 5:v.label++,u=f[1],f=[0];continue;case 7:f=v.ops.pop(),v.trys.pop();continue;default:if(o=v.trys,!((o=o.length>0&&o[o.length-1])||f[0]!==6&&f[0]!==2)){v=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){v.label=f[1];break}if(f[0]===6&&v.label<o[1]){v.label=o[1],o=f;break}if(o&&v.label<o[2]){v.label=o[2],v.ops.push(f);break}o[2]&&v.ops.pop(),v.trys.pop();continue}f=n.call(t,v)}catch(m){f=[6,m],u=0}finally{s=o=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([E,T])}}};function be(){return xr(this,void 0,Promise,function(){return Or(this,function(t){switch(t.label){case 0:return[4,new Promise(function(n,s){var u,o,c="Unknown";function v(m){n({isPrivate:m,browserName:c})}function w(m){return m===eval.toString().length}function E(){navigator.maxTouchPoints!==void 0?function(){var m=String(Math.random());try{window.indexedDB.open(m,1).onupgradeneeded=function(B){var O,A,x=(O=B.target)===null||O===void 0?void 0:O.result;try{x.createObjectStore("test",{autoIncrement:!0}).put(new Blob),v(!1)}catch(b){var R=b;return b instanceof Error&&(R=(A=b.message)!==null&&A!==void 0?A:b),typeof R!="string"?void v(!1):void v(R.includes("BlobURLs are not yet supported"))}finally{x.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 T(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(m,B){var O;v(Math.round(B/1048576)<2*Math.round(((O=window).performance!==void 0&&O.performance.memory!==void 0&&O.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824)/1048576))},function(m){s(new Error("detectIncognito somehow failed to query storage quota: "+m.message))})}function f(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?T():(0,window.webkitRequestFileSystem)(0,1,function(){v(!1)},function(){v(!0)})}(o=navigator.vendor)!==void 0&&o.indexOf("Apple")===0&&w(37)?(c="Safari",E()):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",f()):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)):s(new Error("detectIncognito cannot determine the browser"))})];case 1:return[2,t.sent()]}})})}typeof window<"u"&&(window.detectIncognito=be);const br=be;var Cr=Oe.A;Oe.k;const Br="notDetected";async function Ir(){try{return await Cr()}catch{return{browserName:Br}}}async function Pr(){var T;const t={},{width:n,height:s,availWidth:u,availHeight:o}=window.screen;t.width=n,t.height=s,t.availableWidth=u,t.availableHeight=o,await mr(t);const c=await Ir();if(t.browser=c.browserName,t.incognito=c.isPrivate,ne()&&"userAgentData"in navigator){const f=navigator.userAgentData;t.mobile=f==null?void 0:f.mobile}(T=navigator.languages)!=null&&T.length&&(t.languages=[...navigator.languages]),t.geolocation=await yr();const v=await Sr();v&&(t.battery=v);const w=await Rr();w&&(t.mediaDevices=w);const E=await sr();E&&(t.orientation=E),t.oscpu=navigator.oscpu,t.productSub=navigator.productSub,t.evalLength=eval.toString().length,t.errFirefox=Ar(),te(t)}const st="navigate";let ae,Ce;const Dr=typeof((ft=window.navigation)==null?void 0:ft.addEventListener)=="function";function Mr(){var t;Dr&&(ae=()=>{const n=Lr();n!==Ce&&(Ce=n,te({event:"urlchanged"}))},(t=window.navigation)==null||t.addEventListener(st,ae))}function _r(){var t;ae&&((t=window.navigation)==null||t.removeEventListener(st,ae),ae=void 0,Ce=void 0)}function Lr(){return window.location.href}var ce=function(){return ce=Object.assign||function(n){for(var s,u=1,o=arguments.length;u<o;u++){s=arguments[u];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(n[c]=s[c])}return n},ce.apply(this,arguments)};function Nr(t,n){var s={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&n.indexOf(u)<0&&(s[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(t);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(t,u[o])&&(s[u[o]]=t[u[o]]);return s}function kr(t,n,s){if(s||arguments.length===2)for(var u=0,o=n.length,c;u<o;u++)(c||!(u in n))&&(c||(c=Array.prototype.slice.call(n,0,u)),c[u]=n[u]);return t.concat(c||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function Fr(t,n){return function(s,u){return Object.prototype.hasOwnProperty.call(s,u)}(t,n)?t[n]:void 0}function Ur(t,n,s,u){var o,c=document,v="securitypolicyviolation",w=function(T){var f=new URL(t,location.href),m=T.blockedURI;m!==f.href&&m!==f.protocol.slice(0,-1)&&m!==f.origin||(o=T,E())};c.addEventListener(v,w);var E=function(){return c.removeEventListener(v,w)};return Promise.resolve().then(n).then(function(T){return E(),T},function(T){return new Promise(function(f){var m=new MessageChannel;m.port1.onmessage=function(){return f()},m.port2.postMessage(null)}).then(function(){if(E(),o)return s(o);throw T})})}var Gr={default:"endpoint"},Vr={default:"tlsEndpoint"},Hr="Client timeout",Kr="Network connection error",Wr="Network request aborted",Xr="Response cannot be parsed",Be="Blocked by CSP",Ie="The endpoint parameter is not a valid URL";function F(t){for(var n="",s=0;s<t.length;++s)if(s>0){var u=t[s].toLowerCase();u!==t[s]?n+=" ".concat(u):n+=t[s]}else n+=t[s].toUpperCase();return n}var jr=F("WrongRegion"),qr=F("SubscriptionNotActive"),zr=F("UnsupportedVersion"),$r=F("InstallationMethodRestricted"),Yr=F("HostnameRestricted"),Zr=F("IntegrationFailed"),Jr=F("NetworkRestricted"),Qr=F("InvalidProxyIntegrationSecret"),en=F("InvalidProxyIntegrationHeaders"),Pe="API key required",ut="API key not found",ct="API key expired",tn="Request cannot be parsed",rn="Request failed",nn="Request failed to process",an="Too many requests, rate limit exceeded",on="Not available for this origin",sn="Not available with restricted header",un=Pe,cn=ut,ln=ct,dn="3.11.11",le="Failed to load the JS script of the agent",De="9319";function fn(t,n){var s,u,o,c,v,w,E,T=[],f=(s=function(A){var x=kr([],A,!0);return{current:function(){return x[0]},postpone:function(){var R=x.shift();R!==void 0&&x.push(R)},exclude:function(){x.shift()}}}(t),c=100,v=3e3,w=0,u=function(){return Math.random()*Math.min(v,c*Math.pow(2,w++))},o=new Set,[s.current(),function(A,x){var R,b=x instanceof Error?x.message:"";if(b===Be||b===Ie)s.exclude(),R=0;else if(b===De)s.exclude();else if(b===le){var H=Date.now()-A.getTime()<50,U=s.current();U&&H&&!o.has(U)&&(o.add(U),R=0),s.postpone()}else s.postpone();var q=s.current();return q===void 0?void 0:[q,R??A.getTime()+u()-Date.now()]}]),m=f[0],B=f[1];if(m===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var O=function(A){var x=new Date,R=function(H){return T.push({url:A,startedAt:x,finishedAt:new Date,error:H})},b=n(A);return b.then(function(){return R()},R),b.catch(function(H){if(E!=null||(E=H),T.length>=5)throw E;var U=B(x,H);if(!U)throw E;var q,Le=U[0],Ne=U[1];return(q=Ne,new Promise(function(ke){return setTimeout(ke,q)})).then(function(){return O(Le)})})};return O(m).then(function(A){return[A,T]})}var lt="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",gn=lt;function vn(t){var n;t.scriptUrlPattern;var s=t.token,u=t.apiKey,o=u===void 0?s:u,c=Nr(t,["scriptUrlPattern","token","apiKey"]),v=(n=Fr(t,"scriptUrlPattern"))!==null&&n!==void 0?n:lt,w=function(){var f=[],m=function(){f.push({time:new Date,state:document.visibilityState})},B=function(O,A,x,R){return O.addEventListener(A,x,R),function(){return O.removeEventListener(A,x,R)}}(document,"visibilitychange",m);return m(),[f,B]}(),E=w[0],T=w[1];return Promise.resolve().then(function(){if(!o||typeof o!="string")throw new Error(Pe);var f=function(m,B){return(Array.isArray(m)?m:[m]).map(function(O){return function(A,x){var R=encodeURIComponent;return A.replace(/<[^<>]+>/g,function(b){return b==="<version>"?"3":b==="<apiKey>"?R(x):b==="<loaderVersion>"?R(dn):b})}(String(O),B)})}(v,o);return fn(f,pn)}).catch(function(f){throw T(),function(m){return m instanceof Error&&m.message===De?new Error(le):m}(f)}).then(function(f){var m=f[0],B=f[1];return T(),m.load(ce(ce({},c),{ldi:{attempts:B,visibilityStates:E}}))})}function pn(t){return Ur(t,function(){return function(n){return new Promise(function(s,u){if(function(w){if(URL.prototype)try{return new URL(w,location.href),!1}catch(E){if(E instanceof Error&&E.name==="TypeError")return!0;throw E}}(n))throw new Error(Ie);var o=document.createElement("script"),c=function(){var w;return(w=o.parentNode)===null||w===void 0?void 0:w.removeChild(o)},v=document.head||document.getElementsByTagName("head")[0];o.onload=function(){c(),s()},o.onerror=