@thumbmarkjs/thumbmarkjs
Advanced tools
Comparing version 0.13.7 to 0.13.8
@@ -1,2 +0,2 @@ | ||
define(["exports"],(function(e){"use strict";function n(e,n,r,t){return new(r||(r=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,c)}u((t=t.apply(e,n||[])).next())}))}function r(e,n){var r,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(e,i)}catch(e){c=[6,e],t=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var t={},o={timeout:"true"},a=function(e,n){"undefined"!=typeof window&&(t[e]=n)},i=function(){return Object.fromEntries(Object.entries(t).map((function(e){return[e[0],(0,e[1])()]})))},c=3432918353,u=461845907,s=3864292196,l=2246822507,d=3266489909;function f(e,n){return e<<n|e>>>32-n}function h(e,n){void 0===n&&(n=0);for(var r=n,t=0,o=3&e.length,a=e.length-o,i=0;i<a;)t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24,++i,t=f(t=Math.imul(t,c),15),r=f(r^=t=Math.imul(t,u),13),r=Math.imul(r,5)+s;switch(t=0,o){case 3:t^=(255&e.charCodeAt(i+2))<<16;case 2:t^=(255&e.charCodeAt(i+1))<<8;case 1:t^=255&e.charCodeAt(i),t=f(t=Math.imul(t,c),15),r^=t=Math.imul(t,u)}return((r=function(e){return e^=e>>>16,e=Math.imul(e,l),e^=e>>>13,e=Math.imul(e,d),e^e>>>16}(r^=e.length))>>>0).toString(36)}function m(e,n){return new Promise((function(r){setTimeout((function(){return r(n)}),e)}))}function v(e,n,r){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),m(n,r).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function g(e,n,r){return Promise.all(e.map((function(e){return Promise.race([e,m(n,r)])})))}var p=1e3;function w(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,g(Object.values(e),p,o)];case 1:return t=r.sent(),a={},t.forEach((function(e,r){a[n[r]]=e})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))}function S(e){for(var n=0,r=0;r<e.length;++r)n+=Math.abs(e[r]);return n}function b(e,n,r){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(y(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,n,r)}function y(e){if(0===e.length)return 0;for(var n={},r=0,t=e;r<t.length;r++){n[a=t[r]]=(n[a]||0)+1}var o=e[0];for(var a in n)n[a]>n[o]&&(o=parseInt(a,10));return o}function P(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,n={Edg:"Edge",OPR:"Opera"},r=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];r<t.length;r++){var o=t[r],a=e.match(o);if(a&&a.groups)return{name:n[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}a("audio",(function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,n){try{var r=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=r.createBufferSource(),o=r.createOscillator();o.frequency.value=1e3;var a,i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(r.destination),o.start(),r.oncomplete=function(n){a=n.renderedBuffer.getChannelData(0),e({sampleHash:S(a),oscillator:o.type,maxChannels:r.destination.maxChannelCount,channelCountMode:t.channelCountMode})},r.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),n(e)}}))]}))}))}));var E=280,M=20;"Firefox"!=P().name&&a("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var n=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),n=e.getContext("2d");if(!n)return new ImageData(1,1);e.width=E,e.height=M;var r=n.createLinearGradient(0,0,e.width,e.height);r.addColorStop(0,"red"),r.addColorStop(1/6,"orange"),r.addColorStop(2/6,"yellow"),r.addColorStop(.5,"green"),r.addColorStop(4/6,"blue"),r.addColorStop(5/6,"indigo"),r.addColorStop(1,"violet"),n.fillStyle=r,n.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";n.font="23.123px Arial",n.fillStyle="black",n.fillText(t,-5,15),n.fillStyle="rgba(0, 0, 255, 0.5)",n.fillText(t,-3.3,17.7),n.beginPath(),n.moveTo(0,0),n.lineTo(2*e.width/7,e.height),n.strokeStyle="white",n.lineWidth=2,n.stroke();var o=n.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:h(b(n,E,M).data.toString()).toString()})}))}));var C=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],A=["monospace","sans-serif","serif"];function R(e,n){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(n),e.measureText("WwMmLli0Oo").width}function T(){var e,n=document.createElement("canvas"),r=null!==(e=n.getContext("webgl"))&&void 0!==e?e:n.getContext("experimental-webgl");return r&&"getParameter"in r?{vendor:(r.getParameter(r.VENDOR)||"").toString(),renderer:(r.getParameter(r.RENDERER)||"").toString()}:"undefined"}function x(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}function I(e,n){var r={};return n.forEach((function(n){var t=function(e){if(0===e.length)return null;var n={};e.forEach((function(e){var r=String(e);n[r]=(n[r]||0)+1}));var r=e[0],t=1;return Object.keys(n).forEach((function(e){n[e]>t&&(r=e,t=n[e])})),r}(e.map((function(e){return n in e?e[n]:void 0})).filter((function(e){return void 0!==e})));t&&(r[n]=t)})),r}"Firefox"!=P().name&&a("fonts",(function(){var e=this;return new Promise((function(t,o){try{!function(e){var t;n(this,void 0,void 0,(function(){var n,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(n=document.createElement("iframe"),(o=n.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),n.src="about:blank",document.body.appendChild(n),!(a=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout((function(){document.body.removeChild(n)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return n(e,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=A.map((function(e){return R(n,e)})),i={},C.forEach((function(e){var r=R(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),a("hardware",(function(){return new Promise((function(e,n){var r=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:T(),architecture:x(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),a("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var k,O=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function D(){var e=[],n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(n).forEach((function(r){n[r].forEach((function(n){matchMedia("(".concat(r,": ").concat(n,")")).matches&&e.push("".concat(r,": ").concat(n))}))})),e}function F(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,n=15;n>0;n--)if(e(n))return n;return 0}a("permissions",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){return e=Array.from({length:3},(function(){return function(){return n(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=O,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(e).then((function(e){return I(e,O)}))]}))}))})),a("plugins",(function(){var e=[];if(navigator.plugins)for(var n=0;n<navigator.plugins.length;n++){var r=navigator.plugins[n];e.push([r.name,r.filename,r.description].join("|"))}return new Promise((function(n){n({plugins:e})}))})),a("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})}))})),a("system",(function(){return new Promise((function(e){var n=P();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:n.name,version:n.version},applePayInfo:F()})}))}));var L=null;"undefined"!=typeof document&&((k=document.createElement("canvas")).width=200,k.height=100,L=k.getContext("webgl")),a("webgl",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){try{if(!L)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!L)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",n="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",r=L.createShader(L.VERTEX_SHADER),t=L.createShader(L.FRAGMENT_SHADER);if(!r||!t)throw new Error("Failed to create shaders");if(L.shaderSource(r,e),L.shaderSource(t,n),L.compileShader(r),!L.getShaderParameter(r,L.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+L.getShaderInfoLog(r));if(L.compileShader(t),!L.getShaderParameter(t,L.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+L.getShaderInfoLog(t));var o=L.createProgram();if(!o)throw new Error("Failed to create shader program");if(L.attachShader(o,r),L.attachShader(o,t),L.linkProgram(o),!L.getProgramParameter(o,L.LINK_STATUS))throw new Error("Shader program linking failed: "+L.getProgramInfoLog(o));L.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(k.width/2),i[4*u+3]=Math.sin(s)*(k.height/2)}var l=L.createBuffer();L.bindBuffer(L.ARRAY_BUFFER,l),L.bufferData(L.ARRAY_BUFFER,i,L.STATIC_DRAW);var d=L.getAttribLocation(o,"position");L.enableVertexAttribArray(d),L.vertexAttribPointer(d,2,L.FLOAT,!1,0,0),L.viewport(0,0,k.width,k.height),L.clearColor(0,0,0,1),L.clear(L.COLOR_BUFFER_BIT),L.drawArrays(L.LINES,0,2*a);var f=new Uint8ClampedArray(k.width*k.height*4);return L.readPixels(0,0,k.width,k.height,L.RGBA,L.UNSIGNED_BYTE,f),new ImageData(f,k.width,k.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{L&&(L.bindBuffer(L.ARRAY_BUFFER,null),L.useProgram(null),L.viewport(0,0,L.drawingBufferWidth,L.drawingBufferHeight),L.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:h(b(e,k.width,k.height).data.toString()).toString(),renderer:L.getParameter(L.RENDERER),vendor:L.getParameter(L.VENDOR),version:L.getParameter(L.VERSION),shadingLanguageVersion:L.getParameter(L.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var B=function(e,n,r,t){for(var o=(r-n)/t,a=0,i=0;i<t;i++){a+=e(n+(i+.5)*o)}return a*o};a("math",(function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:B(Math.asin,-1,1,97),atan:B(Math.atan,-1,1,97),cos:B(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:B(Math.sin,-Math.PI,Math.PI,97),sinh:B(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:B(Math.tan,0,2*Math.PI,97),tanh:B(Math.tanh,-9/7,7/9,97)}]}))}))})),e.getFingerprint=function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,w()];case 1:return e=n.sent(),[2,h(JSON.stringify(e)).toString()];case 2:throw n.sent();case 3:return[2]}}))}))},e.getFingerprintData=w,e.getFingerprintPerformance=function(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,v(Object.values(e),p,o)];case 1:return t=r.sent(),a={elapsed:{}},t.forEach((function(e,r){a[n[r]]=e.value,a.elapsed[n[r]]=e.elapsed})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))},e.getVersion=function(){return"0.13.7"}})); | ||
define(["exports"],(function(e){"use strict";function n(e,n,r,t){return new(r||(r=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,c)}u((t=t.apply(e,n||[])).next())}))}function r(e,n){var r,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(e,i)}catch(e){c=[6,e],t=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var t={},o={timeout:"true"},a=function(e,n){"undefined"!=typeof window&&(t[e]=n)},i=function(){return Object.fromEntries(Object.entries(t).map((function(e){return[e[0],(0,e[1])()]})))},c=3432918353,u=461845907,s=3864292196,l=2246822507,d=3266489909;function f(e,n){return e<<n|e>>>32-n}function h(e,n){void 0===n&&(n=0);for(var r=n,t=0,o=3&e.length,a=e.length-o,i=0;i<a;)t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24,++i,t=f(t=Math.imul(t,c),15),r=f(r^=t=Math.imul(t,u),13),r=Math.imul(r,5)+s;switch(t=0,o){case 3:t^=(255&e.charCodeAt(i+2))<<16;case 2:t^=(255&e.charCodeAt(i+1))<<8;case 1:t^=255&e.charCodeAt(i),t=f(t=Math.imul(t,c),15),r^=t=Math.imul(t,u)}return((r=function(e){return e^=e>>>16,e=Math.imul(e,l),e^=e>>>13,e=Math.imul(e,d),e^e>>>16}(r^=e.length))>>>0).toString(36)}function m(e,n){return new Promise((function(r){setTimeout((function(){return r(n)}),e)}))}function v(e,n,r){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),m(n,r).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function g(e,n,r){return Promise.all(e.map((function(e){return Promise.race([e,m(n,r)])})))}var p=1e3;function w(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,g(Object.values(e),p,o)];case 1:return t=r.sent(),a={},t.forEach((function(e,r){a[n[r]]=e})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))}function S(e){for(var n=0,r=0;r<e.length;++r)n+=Math.abs(e[r]);return n}function b(e,n,r){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(y(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,n,r)}function y(e){if(0===e.length)return 0;for(var n={},r=0,t=e;r<t.length;r++){n[a=t[r]]=(n[a]||0)+1}var o=e[0];for(var a in n)n[a]>n[o]&&(o=parseInt(a,10));return o}function P(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,n={Edg:"Edge",OPR:"Opera"},r=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];r<t.length;r++){var o=t[r],a=e.match(o);if(a&&a.groups)return{name:n[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}a("audio",(function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,n){try{var r=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=r.createBufferSource(),o=r.createOscillator();o.frequency.value=1e3;var a,i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(r.destination),o.start(),r.oncomplete=function(n){a=n.renderedBuffer.getChannelData(0),e({sampleHash:S(a),oscillator:o.type,maxChannels:r.destination.maxChannelCount,channelCountMode:t.channelCountMode})},r.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),n(e)}}))]}))}))}));var E=280,M=20;"Firefox"!=P().name&&a("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var n=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),n=e.getContext("2d");if(!n)return new ImageData(1,1);e.width=E,e.height=M;var r=n.createLinearGradient(0,0,e.width,e.height);r.addColorStop(0,"red"),r.addColorStop(1/6,"orange"),r.addColorStop(2/6,"yellow"),r.addColorStop(.5,"green"),r.addColorStop(4/6,"blue"),r.addColorStop(5/6,"indigo"),r.addColorStop(1,"violet"),n.fillStyle=r,n.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";n.font="23.123px Arial",n.fillStyle="black",n.fillText(t,-5,15),n.fillStyle="rgba(0, 0, 255, 0.5)",n.fillText(t,-3.3,17.7),n.beginPath(),n.moveTo(0,0),n.lineTo(2*e.width/7,e.height),n.strokeStyle="white",n.lineWidth=2,n.stroke();var o=n.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:h(b(n,E,M).data.toString()).toString()})}))}));var C=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],A=["monospace","sans-serif","serif"];function R(e,n){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(n),e.measureText("WwMmLli0Oo").width}function T(){var e,n=document.createElement("canvas"),r=null!==(e=n.getContext("webgl"))&&void 0!==e?e:n.getContext("experimental-webgl");return r&&"getParameter"in r?{vendor:(r.getParameter(r.VENDOR)||"").toString(),renderer:(r.getParameter(r.RENDERER)||"").toString()}:"undefined"}function x(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}function I(e,n){var r={};return n.forEach((function(n){var t=function(e){if(0===e.length)return null;var n={};e.forEach((function(e){var r=String(e);n[r]=(n[r]||0)+1}));var r=e[0],t=1;return Object.keys(n).forEach((function(e){n[e]>t&&(r=e,t=n[e])})),r}(e.map((function(e){return n in e?e[n]:void 0})).filter((function(e){return void 0!==e})));t&&(r[n]=t)})),r}"Firefox"!=P().name&&a("fonts",(function(){var e=this;return new Promise((function(t,o){try{!function(e){var t;n(this,void 0,void 0,(function(){var n,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(n=document.createElement("iframe"),(o=n.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),n.src="about:blank",document.body.appendChild(n),!(a=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout((function(){document.body.removeChild(n)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return n(e,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=A.map((function(e){return R(n,e)})),i={},C.forEach((function(e){var r=R(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),a("hardware",(function(){return new Promise((function(e,n){var r=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:T(),architecture:x(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),a("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var k,O=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function D(){var e=[],n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(n).forEach((function(r){n[r].forEach((function(n){matchMedia("(".concat(r,": ").concat(n,")")).matches&&e.push("".concat(r,": ").concat(n))}))})),e}function F(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,n=15;n>0;n--)if(e(n))return n;return 0}a("permissions",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){return e=Array.from({length:3},(function(){return function(){return n(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=O,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(e).then((function(e){return I(e,O)}))]}))}))})),a("plugins",(function(){var e=[];if(navigator.plugins)for(var n=0;n<navigator.plugins.length;n++){var r=navigator.plugins[n];e.push([r.name,r.filename,r.description].join("|"))}return new Promise((function(n){n({plugins:e})}))})),a("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})}))})),a("system",(function(){return new Promise((function(e){var n=P();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:n.name,version:n.version},applePayInfo:F()})}))}));var L=null;"undefined"!=typeof document&&((k=document.createElement("canvas")).width=200,k.height=100,L=k.getContext("webgl")),a("webgl",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){try{if(!L)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!L)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",n="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",r=L.createShader(L.VERTEX_SHADER),t=L.createShader(L.FRAGMENT_SHADER);if(!r||!t)throw new Error("Failed to create shaders");if(L.shaderSource(r,e),L.shaderSource(t,n),L.compileShader(r),!L.getShaderParameter(r,L.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+L.getShaderInfoLog(r));if(L.compileShader(t),!L.getShaderParameter(t,L.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+L.getShaderInfoLog(t));var o=L.createProgram();if(!o)throw new Error("Failed to create shader program");if(L.attachShader(o,r),L.attachShader(o,t),L.linkProgram(o),!L.getProgramParameter(o,L.LINK_STATUS))throw new Error("Shader program linking failed: "+L.getProgramInfoLog(o));L.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(k.width/2),i[4*u+3]=Math.sin(s)*(k.height/2)}var l=L.createBuffer();L.bindBuffer(L.ARRAY_BUFFER,l),L.bufferData(L.ARRAY_BUFFER,i,L.STATIC_DRAW);var d=L.getAttribLocation(o,"position");L.enableVertexAttribArray(d),L.vertexAttribPointer(d,2,L.FLOAT,!1,0,0),L.viewport(0,0,k.width,k.height),L.clearColor(0,0,0,1),L.clear(L.COLOR_BUFFER_BIT),L.drawArrays(L.LINES,0,2*a);var f=new Uint8ClampedArray(k.width*k.height*4);return L.readPixels(0,0,k.width,k.height,L.RGBA,L.UNSIGNED_BYTE,f),new ImageData(f,k.width,k.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{L&&(L.bindBuffer(L.ARRAY_BUFFER,null),L.useProgram(null),L.viewport(0,0,L.drawingBufferWidth,L.drawingBufferHeight),L.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:h(b(e,k.width,k.height).data.toString()).toString(),renderer:L.getParameter(L.RENDERER),vendor:L.getParameter(L.VENDOR),version:L.getParameter(L.VERSION),shadingLanguageVersion:L.getParameter(L.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var B=function(e,n,r,t){for(var o=(r-n)/t,a=0,i=0;i<t;i++){a+=e(n+(i+.5)*o)}return a*o};a("math",(function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:B(Math.asin,-1,1,97),atan:B(Math.atan,-1,1,97),cos:B(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:B(Math.sin,-Math.PI,Math.PI,97),sinh:B(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:B(Math.tan,0,2*Math.PI,97),tanh:B(Math.tanh,-9/7,7/9,97)}]}))}))})),e.getFingerprint=function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,w()];case 1:return e=n.sent(),[2,h(JSON.stringify(e)).toString()];case 2:throw n.sent();case 3:return[2]}}))}))},e.getFingerprintData=w,e.getFingerprintPerformance=function(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,v(Object.values(e),p,o)];case 1:return t=r.sent(),a={elapsed:{}},t.forEach((function(e,r){a[n[r]]=e.value,a.elapsed[n[r]]=e.elapsed})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))},e.getVersion=function(){return"0.13.8"}})); | ||
//# sourceMappingURL=thumbmark.amd.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,c)}u((t=t.apply(e,r||[])).next())}))}function r(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],t=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var n={},t={timeout:"true"},o=function(e,r){"undefined"!=typeof window&&(n[e]=r)},a=function(){return Object.fromEntries(Object.entries(n).map((function(e){return[e[0],(0,e[1])()]})))},i=3432918353,c=461845907,u=3864292196,s=2246822507,l=3266489909;function d(e,r){return e<<r|e>>>32-r}function f(e,r){void 0===r&&(r=0);for(var n=r,t=0,o=3&e.length,a=e.length-o,f=0;f<a;)t=255&e.charCodeAt(f)|(255&e.charCodeAt(++f))<<8|(255&e.charCodeAt(++f))<<16|(255&e.charCodeAt(++f))<<24,++f,t=d(t=Math.imul(t,i),15),n=d(n^=t=Math.imul(t,c),13),n=Math.imul(n,5)+u;switch(t=0,o){case 3:t^=(255&e.charCodeAt(f+2))<<16;case 2:t^=(255&e.charCodeAt(f+1))<<8;case 1:t^=255&e.charCodeAt(f),t=d(t=Math.imul(t,i),15),n^=t=Math.imul(t,c)}return((n=function(e){return e^=e>>>16,e=Math.imul(e,s),e^=e>>>13,e=Math.imul(e,l),e^e>>>16}(n^=e.length))>>>0).toString(36)}function h(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e)}))}function m(e,r,n){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),h(r,n).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function v(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,h(r,n)])})))}var p=1e3;function g(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,v(Object.values(e),p,t)];case 1:return o=r.sent(),i={},o.forEach((function(e,r){i[n[r]]=e})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))}function w(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function S(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(b(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,r,n)}function b(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function y(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return{name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}o("audio",(function(){return e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:w(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),r(e)}}))]}))}))}));var P=280,E=20;"Firefox"!=y().name&&o("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=P,e.height=E;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:f(S(r,P,E).data.toString()).toString()})}))}));var M=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],C=["monospace","sans-serif","serif"];function A(e,r){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function x(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");return n&&"getParameter"in n?{vendor:(n.getParameter(n.VENDOR)||"").toString(),renderer:(n.getParameter(n.RENDERER)||"").toString()}:"undefined"}function R(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function T(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e])})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t)})),n}"Firefox"!=y().name&&o("fonts",(function(){var n=this;return new Promise((function(t,o){try{!function(n){var t;e(this,void 0,void 0,(function(){var e,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(e=document.createElement("iframe"),(o=e.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),e.src="about:blank",document.body.appendChild(e),!(a=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return n({iframe:a}),setTimeout((function(){document.body.removeChild(e)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return e(n,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=C.map((function(e){return A(n,e)})),i={},M.forEach((function(e){var r=A(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),o("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:x(),architecture:R(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),o("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var I,k=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function O(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r))}))})),e}function D(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r;return 0}o("permissions",(function(){return e(this,void 0,void 0,(function(){var n;return r(this,(function(t){return n=Array.from({length:3},(function(){return function(){return e(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=k,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(n).then((function(e){return T(e,k)}))]}))}))})),o("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"))}return new Promise((function(r){r({plugins:e})}))})),o("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:O()})}))})),o("system",(function(){return new Promise((function(e){var r=y();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:r.name,version:r.version},applePayInfo:D()})}))}));var F=null;"undefined"!=typeof document&&((I=document.createElement("canvas")).width=200,I.height=100,F=I.getContext("webgl")),o("webgl",(function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){try{if(!F)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!F)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=F.createShader(F.VERTEX_SHADER),t=F.createShader(F.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(F.shaderSource(n,e),F.shaderSource(t,r),F.compileShader(n),!F.getShaderParameter(n,F.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+F.getShaderInfoLog(n));if(F.compileShader(t),!F.getShaderParameter(t,F.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+F.getShaderInfoLog(t));var o=F.createProgram();if(!o)throw new Error("Failed to create shader program");if(F.attachShader(o,n),F.attachShader(o,t),F.linkProgram(o),!F.getProgramParameter(o,F.LINK_STATUS))throw new Error("Shader program linking failed: "+F.getProgramInfoLog(o));F.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(I.width/2),i[4*u+3]=Math.sin(s)*(I.height/2)}var l=F.createBuffer();F.bindBuffer(F.ARRAY_BUFFER,l),F.bufferData(F.ARRAY_BUFFER,i,F.STATIC_DRAW);var d=F.getAttribLocation(o,"position");F.enableVertexAttribArray(d),F.vertexAttribPointer(d,2,F.FLOAT,!1,0,0),F.viewport(0,0,I.width,I.height),F.clearColor(0,0,0,1),F.clear(F.COLOR_BUFFER_BIT),F.drawArrays(F.LINES,0,2*a);var f=new Uint8ClampedArray(I.width*I.height*4);return F.readPixels(0,0,I.width,I.height,F.RGBA,F.UNSIGNED_BYTE,f),new ImageData(f,I.width,I.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{F&&(F.bindBuffer(F.ARRAY_BUFFER,null),F.useProgram(null),F.viewport(0,0,F.drawingBufferWidth,F.drawingBufferHeight),F.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:f(S(e,I.width,I.height).data.toString()).toString(),renderer:F.getParameter(F.RENDERER),vendor:F.getParameter(F.VENDOR),version:F.getParameter(F.VERSION),shadingLanguageVersion:F.getParameter(F.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var L=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o)}return a*o};o("math",(function(){return e(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:L(Math.asin,-1,1,97),atan:L(Math.atan,-1,1,97),cos:L(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:L(Math.sin,-Math.PI,Math.PI,97),sinh:L(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:L(Math.tan,0,2*Math.PI,97),tanh:L(Math.tanh,-9/7,7/9,97)}]}))}))})),exports.getFingerprint=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,g()];case 1:return e=r.sent(),[2,f(JSON.stringify(e)).toString()];case 2:throw r.sent();case 3:return[2]}}))}))},exports.getFingerprintData=g,exports.getFingerprintPerformance=function(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,m(Object.values(e),p,t)];case 1:return o=r.sent(),i={elapsed:{}},o.forEach((function(e,r){i[n[r]]=e.value,i.elapsed[n[r]]=e.elapsed})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))},exports.getVersion=function(){return"0.13.7"}; | ||
"use strict";function e(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,c)}u((t=t.apply(e,r||[])).next())}))}function r(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],t=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var n={},t={timeout:"true"},o=function(e,r){"undefined"!=typeof window&&(n[e]=r)},a=function(){return Object.fromEntries(Object.entries(n).map((function(e){return[e[0],(0,e[1])()]})))},i=3432918353,c=461845907,u=3864292196,s=2246822507,l=3266489909;function d(e,r){return e<<r|e>>>32-r}function f(e,r){void 0===r&&(r=0);for(var n=r,t=0,o=3&e.length,a=e.length-o,f=0;f<a;)t=255&e.charCodeAt(f)|(255&e.charCodeAt(++f))<<8|(255&e.charCodeAt(++f))<<16|(255&e.charCodeAt(++f))<<24,++f,t=d(t=Math.imul(t,i),15),n=d(n^=t=Math.imul(t,c),13),n=Math.imul(n,5)+u;switch(t=0,o){case 3:t^=(255&e.charCodeAt(f+2))<<16;case 2:t^=(255&e.charCodeAt(f+1))<<8;case 1:t^=255&e.charCodeAt(f),t=d(t=Math.imul(t,i),15),n^=t=Math.imul(t,c)}return((n=function(e){return e^=e>>>16,e=Math.imul(e,s),e^=e>>>13,e=Math.imul(e,l),e^e>>>16}(n^=e.length))>>>0).toString(36)}function h(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e)}))}function m(e,r,n){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),h(r,n).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function v(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,h(r,n)])})))}var p=1e3;function g(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,v(Object.values(e),p,t)];case 1:return o=r.sent(),i={},o.forEach((function(e,r){i[n[r]]=e})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))}function w(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function S(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(b(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,r,n)}function b(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function y(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return{name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}o("audio",(function(){return e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:w(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),r(e)}}))]}))}))}));var P=280,E=20;"Firefox"!=y().name&&o("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=P,e.height=E;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:f(S(r,P,E).data.toString()).toString()})}))}));var M=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],C=["monospace","sans-serif","serif"];function A(e,r){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function x(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");return n&&"getParameter"in n?{vendor:(n.getParameter(n.VENDOR)||"").toString(),renderer:(n.getParameter(n.RENDERER)||"").toString()}:"undefined"}function R(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function T(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e])})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t)})),n}"Firefox"!=y().name&&o("fonts",(function(){var n=this;return new Promise((function(t,o){try{!function(n){var t;e(this,void 0,void 0,(function(){var e,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(e=document.createElement("iframe"),(o=e.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),e.src="about:blank",document.body.appendChild(e),!(a=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return n({iframe:a}),setTimeout((function(){document.body.removeChild(e)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return e(n,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=C.map((function(e){return A(n,e)})),i={},M.forEach((function(e){var r=A(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),o("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:x(),architecture:R(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),o("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var I,k=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function O(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r))}))})),e}function D(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r;return 0}o("permissions",(function(){return e(this,void 0,void 0,(function(){var n;return r(this,(function(t){return n=Array.from({length:3},(function(){return function(){return e(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=k,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(n).then((function(e){return T(e,k)}))]}))}))})),o("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"))}return new Promise((function(r){r({plugins:e})}))})),o("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:O()})}))})),o("system",(function(){return new Promise((function(e){var r=y();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:r.name,version:r.version},applePayInfo:D()})}))}));var F=null;"undefined"!=typeof document&&((I=document.createElement("canvas")).width=200,I.height=100,F=I.getContext("webgl")),o("webgl",(function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){try{if(!F)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!F)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=F.createShader(F.VERTEX_SHADER),t=F.createShader(F.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(F.shaderSource(n,e),F.shaderSource(t,r),F.compileShader(n),!F.getShaderParameter(n,F.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+F.getShaderInfoLog(n));if(F.compileShader(t),!F.getShaderParameter(t,F.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+F.getShaderInfoLog(t));var o=F.createProgram();if(!o)throw new Error("Failed to create shader program");if(F.attachShader(o,n),F.attachShader(o,t),F.linkProgram(o),!F.getProgramParameter(o,F.LINK_STATUS))throw new Error("Shader program linking failed: "+F.getProgramInfoLog(o));F.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(I.width/2),i[4*u+3]=Math.sin(s)*(I.height/2)}var l=F.createBuffer();F.bindBuffer(F.ARRAY_BUFFER,l),F.bufferData(F.ARRAY_BUFFER,i,F.STATIC_DRAW);var d=F.getAttribLocation(o,"position");F.enableVertexAttribArray(d),F.vertexAttribPointer(d,2,F.FLOAT,!1,0,0),F.viewport(0,0,I.width,I.height),F.clearColor(0,0,0,1),F.clear(F.COLOR_BUFFER_BIT),F.drawArrays(F.LINES,0,2*a);var f=new Uint8ClampedArray(I.width*I.height*4);return F.readPixels(0,0,I.width,I.height,F.RGBA,F.UNSIGNED_BYTE,f),new ImageData(f,I.width,I.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{F&&(F.bindBuffer(F.ARRAY_BUFFER,null),F.useProgram(null),F.viewport(0,0,F.drawingBufferWidth,F.drawingBufferHeight),F.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:f(S(e,I.width,I.height).data.toString()).toString(),renderer:F.getParameter(F.RENDERER),vendor:F.getParameter(F.VENDOR),version:F.getParameter(F.VERSION),shadingLanguageVersion:F.getParameter(F.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var L=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o)}return a*o};o("math",(function(){return e(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:L(Math.asin,-1,1,97),atan:L(Math.atan,-1,1,97),cos:L(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:L(Math.sin,-Math.PI,Math.PI,97),sinh:L(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:L(Math.tan,0,2*Math.PI,97),tanh:L(Math.tanh,-9/7,7/9,97)}]}))}))})),exports.getFingerprint=function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,g()];case 1:return e=r.sent(),[2,f(JSON.stringify(e)).toString()];case 2:throw r.sent();case 3:return[2]}}))}))},exports.getFingerprintData=g,exports.getFingerprintPerformance=function(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,m(Object.values(e),p,t)];case 1:return o=r.sent(),i={elapsed:{}},o.forEach((function(e,r){i[n[r]]=e.value,i.elapsed[n[r]]=e.elapsed})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))},exports.getVersion=function(){return"0.13.8"}; | ||
//# sourceMappingURL=thumbmark.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
function e(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,c)}u((t=t.apply(e,r||[])).next())}))}function r(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],t=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var n={},t={timeout:"true"},o=function(e,r){"undefined"!=typeof window&&(n[e]=r)},a=function(){return Object.fromEntries(Object.entries(n).map((function(e){return[e[0],(0,e[1])()]})))},i=3432918353,c=461845907,u=3864292196,s=2246822507,l=3266489909;function d(e,r){return e<<r|e>>>32-r}function f(e,r){void 0===r&&(r=0);for(var n=r,t=0,o=3&e.length,a=e.length-o,f=0;f<a;)t=255&e.charCodeAt(f)|(255&e.charCodeAt(++f))<<8|(255&e.charCodeAt(++f))<<16|(255&e.charCodeAt(++f))<<24,++f,t=d(t=Math.imul(t,i),15),n=d(n^=t=Math.imul(t,c),13),n=Math.imul(n,5)+u;switch(t=0,o){case 3:t^=(255&e.charCodeAt(f+2))<<16;case 2:t^=(255&e.charCodeAt(f+1))<<8;case 1:t^=255&e.charCodeAt(f),t=d(t=Math.imul(t,i),15),n^=t=Math.imul(t,c)}return((n=function(e){return e^=e>>>16,e=Math.imul(e,s),e^=e>>>13,e=Math.imul(e,l),e^e>>>16}(n^=e.length))>>>0).toString(36)}function h(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e)}))}function m(e,r,n){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),h(r,n).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function v(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,h(r,n)])})))}var p=1e3;function g(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,v(Object.values(e),p,t)];case 1:return o=r.sent(),i={},o.forEach((function(e,r){i[n[r]]=e})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))}function w(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,g()];case 1:return e=r.sent(),[2,f(JSON.stringify(e)).toString()];case 2:throw r.sent();case 3:return[2]}}))}))}function S(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,m(Object.values(e),p,t)];case 1:return o=r.sent(),i={elapsed:{}},o.forEach((function(e,r){i[n[r]]=e.value,i.elapsed[n[r]]=e.elapsed})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))}function b(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function y(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(P(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,r,n)}function P(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function E(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return{name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}o("audio",(function(){return e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:b(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),r(e)}}))]}))}))}));var M=280,C=20;"Firefox"!=E().name&&o("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=M,e.height=C;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:f(y(r,M,C).data.toString()).toString()})}))}));var A=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R=["monospace","sans-serif","serif"];function T(e,r){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function x(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");return n&&"getParameter"in n?{vendor:(n.getParameter(n.VENDOR)||"").toString(),renderer:(n.getParameter(n.RENDERER)||"").toString()}:"undefined"}function I(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function k(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e])})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t)})),n}"Firefox"!=E().name&&o("fonts",(function(){var n=this;return new Promise((function(t,o){try{!function(n){var t;e(this,void 0,void 0,(function(){var e,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(e=document.createElement("iframe"),(o=e.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),e.src="about:blank",document.body.appendChild(e),!(a=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return n({iframe:a}),setTimeout((function(){document.body.removeChild(e)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return e(n,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=R.map((function(e){return T(n,e)})),i={},A.forEach((function(e){var r=T(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),o("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:x(),architecture:I(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),o("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var O,D=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function F(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r))}))})),e}function L(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r;return 0}o("permissions",(function(){return e(this,void 0,void 0,(function(){var n;return r(this,(function(t){return n=Array.from({length:3},(function(){return function(){return e(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=D,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(n).then((function(e){return k(e,D)}))]}))}))})),o("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"))}return new Promise((function(r){r({plugins:e})}))})),o("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:F()})}))})),o("system",(function(){return new Promise((function(e){var r=E();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:r.name,version:r.version},applePayInfo:L()})}))}));var B=null;"undefined"!=typeof document&&((O=document.createElement("canvas")).width=200,O.height=100,B=O.getContext("webgl")),o("webgl",(function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){try{if(!B)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!B)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=B.createShader(B.VERTEX_SHADER),t=B.createShader(B.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(B.shaderSource(n,e),B.shaderSource(t,r),B.compileShader(n),!B.getShaderParameter(n,B.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+B.getShaderInfoLog(n));if(B.compileShader(t),!B.getShaderParameter(t,B.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+B.getShaderInfoLog(t));var o=B.createProgram();if(!o)throw new Error("Failed to create shader program");if(B.attachShader(o,n),B.attachShader(o,t),B.linkProgram(o),!B.getProgramParameter(o,B.LINK_STATUS))throw new Error("Shader program linking failed: "+B.getProgramInfoLog(o));B.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(O.width/2),i[4*u+3]=Math.sin(s)*(O.height/2)}var l=B.createBuffer();B.bindBuffer(B.ARRAY_BUFFER,l),B.bufferData(B.ARRAY_BUFFER,i,B.STATIC_DRAW);var d=B.getAttribLocation(o,"position");B.enableVertexAttribArray(d),B.vertexAttribPointer(d,2,B.FLOAT,!1,0,0),B.viewport(0,0,O.width,O.height),B.clearColor(0,0,0,1),B.clear(B.COLOR_BUFFER_BIT),B.drawArrays(B.LINES,0,2*a);var f=new Uint8ClampedArray(O.width*O.height*4);return B.readPixels(0,0,O.width,O.height,B.RGBA,B.UNSIGNED_BYTE,f),new ImageData(f,O.width,O.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{B&&(B.bindBuffer(B.ARRAY_BUFFER,null),B.useProgram(null),B.viewport(0,0,B.drawingBufferWidth,B.drawingBufferHeight),B.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:f(y(e,O.width,O.height).data.toString()).toString(),renderer:B.getParameter(B.RENDERER),vendor:B.getParameter(B.VENDOR),version:B.getParameter(B.VERSION),shadingLanguageVersion:B.getParameter(B.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var N=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o)}return a*o};function _(){return"0.13.7"}o("math",(function(){return e(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:N(Math.asin,-1,1,97),atan:N(Math.atan,-1,1,97),cos:N(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:N(Math.sin,-Math.PI,Math.PI,97),sinh:N(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:N(Math.tan,0,2*Math.PI,97),tanh:N(Math.tanh,-9/7,7/9,97)}]}))}))}));export{w as getFingerprint,g as getFingerprintData,S as getFingerprintPerformance,_ as getVersion}; | ||
function e(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,c)}u((t=t.apply(e,r||[])).next())}))}function r(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],t=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var n={},t={timeout:"true"},o=function(e,r){"undefined"!=typeof window&&(n[e]=r)},a=function(){return Object.fromEntries(Object.entries(n).map((function(e){return[e[0],(0,e[1])()]})))},i=3432918353,c=461845907,u=3864292196,s=2246822507,l=3266489909;function d(e,r){return e<<r|e>>>32-r}function f(e,r){void 0===r&&(r=0);for(var n=r,t=0,o=3&e.length,a=e.length-o,f=0;f<a;)t=255&e.charCodeAt(f)|(255&e.charCodeAt(++f))<<8|(255&e.charCodeAt(++f))<<16|(255&e.charCodeAt(++f))<<24,++f,t=d(t=Math.imul(t,i),15),n=d(n^=t=Math.imul(t,c),13),n=Math.imul(n,5)+u;switch(t=0,o){case 3:t^=(255&e.charCodeAt(f+2))<<16;case 2:t^=(255&e.charCodeAt(f+1))<<8;case 1:t^=255&e.charCodeAt(f),t=d(t=Math.imul(t,i),15),n^=t=Math.imul(t,c)}return((n=function(e){return e^=e>>>16,e=Math.imul(e,s),e^=e>>>13,e=Math.imul(e,l),e^e>>>16}(n^=e.length))>>>0).toString(36)}function h(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e)}))}function m(e,r,n){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),h(r,n).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function v(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,h(r,n)])})))}var p=1e3;function g(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,v(Object.values(e),p,t)];case 1:return o=r.sent(),i={},o.forEach((function(e,r){i[n[r]]=e})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))}function w(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,g()];case 1:return e=r.sent(),[2,f(JSON.stringify(e)).toString()];case 2:throw r.sent();case 3:return[2]}}))}))}function S(){return e(this,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=a(),n=Object.keys(e),[4,m(Object.values(e),p,t)];case 1:return o=r.sent(),i={elapsed:{}},o.forEach((function(e,r){i[n[r]]=e.value,i.elapsed[n[r]]=e.elapsed})),[2,i];case 2:throw r.sent();case 3:return[2]}}))}))}function b(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function y(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(P(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,r,n)}function P(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function E(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return{name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}o("audio",(function(){return e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:b(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),r(e)}}))]}))}))}));var M=280,C=20;"Firefox"!=E().name&&o("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=M,e.height=C;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:f(y(r,M,C).data.toString()).toString()})}))}));var A=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R=["monospace","sans-serif","serif"];function T(e,r){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function x(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");return n&&"getParameter"in n?{vendor:(n.getParameter(n.VENDOR)||"").toString(),renderer:(n.getParameter(n.RENDERER)||"").toString()}:"undefined"}function I(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function k(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e])})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t)})),n}"Firefox"!=E().name&&o("fonts",(function(){var n=this;return new Promise((function(t,o){try{!function(n){var t;e(this,void 0,void 0,(function(){var e,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(e=document.createElement("iframe"),(o=e.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),e.src="about:blank",document.body.appendChild(e),!(a=e.contentDocument||(null===(t=e.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return n({iframe:a}),setTimeout((function(){document.body.removeChild(e)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return e(n,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=R.map((function(e){return T(n,e)})),i={},A.forEach((function(e){var r=T(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),o("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:x(),architecture:I(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),o("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var O,D=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function F(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r))}))})),e}function L(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r;return 0}o("permissions",(function(){return e(this,void 0,void 0,(function(){var n;return r(this,(function(t){return n=Array.from({length:3},(function(){return function(){return e(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=D,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(n).then((function(e){return k(e,D)}))]}))}))})),o("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"))}return new Promise((function(r){r({plugins:e})}))})),o("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:F()})}))})),o("system",(function(){return new Promise((function(e){var r=E();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:r.name,version:r.version},applePayInfo:L()})}))}));var B=null;"undefined"!=typeof document&&((O=document.createElement("canvas")).width=200,O.height=100,B=O.getContext("webgl")),o("webgl",(function(){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){try{if(!B)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!B)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=B.createShader(B.VERTEX_SHADER),t=B.createShader(B.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(B.shaderSource(n,e),B.shaderSource(t,r),B.compileShader(n),!B.getShaderParameter(n,B.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+B.getShaderInfoLog(n));if(B.compileShader(t),!B.getShaderParameter(t,B.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+B.getShaderInfoLog(t));var o=B.createProgram();if(!o)throw new Error("Failed to create shader program");if(B.attachShader(o,n),B.attachShader(o,t),B.linkProgram(o),!B.getProgramParameter(o,B.LINK_STATUS))throw new Error("Shader program linking failed: "+B.getProgramInfoLog(o));B.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(O.width/2),i[4*u+3]=Math.sin(s)*(O.height/2)}var l=B.createBuffer();B.bindBuffer(B.ARRAY_BUFFER,l),B.bufferData(B.ARRAY_BUFFER,i,B.STATIC_DRAW);var d=B.getAttribLocation(o,"position");B.enableVertexAttribArray(d),B.vertexAttribPointer(d,2,B.FLOAT,!1,0,0),B.viewport(0,0,O.width,O.height),B.clearColor(0,0,0,1),B.clear(B.COLOR_BUFFER_BIT),B.drawArrays(B.LINES,0,2*a);var f=new Uint8ClampedArray(O.width*O.height*4);return B.readPixels(0,0,O.width,O.height,B.RGBA,B.UNSIGNED_BYTE,f),new ImageData(f,O.width,O.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{B&&(B.bindBuffer(B.ARRAY_BUFFER,null),B.useProgram(null),B.viewport(0,0,B.drawingBufferWidth,B.drawingBufferHeight),B.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:f(y(e,O.width,O.height).data.toString()).toString(),renderer:B.getParameter(B.RENDERER),vendor:B.getParameter(B.VENDOR),version:B.getParameter(B.VERSION),shadingLanguageVersion:B.getParameter(B.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var N=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o)}return a*o};function _(){return"0.13.8"}o("math",(function(){return e(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:N(Math.asin,-1,1,97),atan:N(Math.atan,-1,1,97),cos:N(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:N(Math.sin,-Math.PI,Math.PI,97),sinh:N(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:N(Math.tan,0,2*Math.PI,97),tanh:N(Math.tanh,-9/7,7/9,97)}]}))}))}));export{w as getFingerprint,g as getFingerprintData,S as getFingerprintPerformance,_ as getVersion}; | ||
//# sourceMappingURL=thumbmark.esm.js.map |
@@ -1,2 +0,2 @@ | ||
var ThumbmarkJS=function(e){"use strict";function r(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,c)}u((t=t.apply(e,r||[])).next())}))}function n(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],t=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var t={},o={timeout:"true"},a=function(e,r){"undefined"!=typeof window&&(t[e]=r)},i=function(){return Object.fromEntries(Object.entries(t).map((function(e){return[e[0],(0,e[1])()]})))},c=3432918353,u=461845907,s=3864292196,l=2246822507,d=3266489909;function f(e,r){return e<<r|e>>>32-r}function h(e,r){void 0===r&&(r=0);for(var n=r,t=0,o=3&e.length,a=e.length-o,i=0;i<a;)t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24,++i,t=f(t=Math.imul(t,c),15),n=f(n^=t=Math.imul(t,u),13),n=Math.imul(n,5)+s;switch(t=0,o){case 3:t^=(255&e.charCodeAt(i+2))<<16;case 2:t^=(255&e.charCodeAt(i+1))<<8;case 1:t^=255&e.charCodeAt(i),t=f(t=Math.imul(t,c),15),n^=t=Math.imul(t,u)}return((n=function(e){return e^=e>>>16,e=Math.imul(e,l),e^=e>>>13,e=Math.imul(e,d),e^e>>>16}(n^=e.length))>>>0).toString(36)}function m(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e)}))}function v(e,r,n){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),m(r,n).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function g(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,m(r,n)])})))}var p=1e3;function w(){return r(this,void 0,void 0,(function(){var e,r,t,a;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=i(),r=Object.keys(e),[4,g(Object.values(e),p,o)];case 1:return t=n.sent(),a={},t.forEach((function(e,n){a[r[n]]=e})),[2,a];case 2:throw n.sent();case 3:return[2]}}))}))}function S(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function b(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(y(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,r,n)}function y(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function P(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return{name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}a("audio",(function(){return r(this,void 0,void 0,(function(){return n(this,(function(e){return[2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:S(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),r(e)}}))]}))}))}));var E=280,M=20;"Firefox"!=P().name&&a("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=E,e.height=M;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:h(b(r,E,M).data.toString()).toString()})}))}));var C=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],A=["monospace","sans-serif","serif"];function R(e,r){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function T(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");return n&&"getParameter"in n?{vendor:(n.getParameter(n.VENDOR)||"").toString(),renderer:(n.getParameter(n.RENDERER)||"").toString()}:"undefined"}function I(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function x(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e])})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t)})),n}"Firefox"!=P().name&&a("fonts",(function(){var e=this;return new Promise((function(t,o){try{!function(e){var t;r(this,void 0,void 0,(function(){var r,o,a;return n(this,(function(n){switch(n.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return n.sent(),[3,0];case 2:if(r=document.createElement("iframe"),(o=r.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),r.src="about:blank",document.body.appendChild(r),!(a=r.contentDocument||(null===(t=r.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout((function(){document.body.removeChild(r)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return r(e,void 0,void 0,(function(){var e,r,o,i;return n(this,(function(n){return"Hello, world!",e=a.createElement("canvas"),r=e.getContext("2d"),o=A.map((function(e){return R(r,e)})),i={},C.forEach((function(e){var n=R(r,e);o.includes(n)||(i[e]=n)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),a("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:T(),architecture:I(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),a("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var k,O=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function D(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r))}))})),e}function F(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r;return 0}a("permissions",(function(){return r(this,void 0,void 0,(function(){var e;return n(this,(function(t){return e=Array.from({length:3},(function(){return function(){return r(this,void 0,void 0,(function(){var e,r,t,o,a;return n(this,(function(n){switch(n.label){case 0:e={},r=0,t=O,n.label=1;case 1:if(!(r<t.length))return[3,6];o=t[r],n.label=2;case 2:return n.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=n.sent(),e[o]=a.state.toString(),[3,5];case 4:return n.sent(),[3,5];case 5:return r++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(e).then((function(e){return x(e,O)}))]}))}))})),a("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"))}return new Promise((function(r){r({plugins:e})}))})),a("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})}))})),a("system",(function(){return new Promise((function(e){var r=P();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:r.name,version:r.version},applePayInfo:F()})}))}));var L=null;"undefined"!=typeof document&&((k=document.createElement("canvas")).width=200,k.height=100,L=k.getContext("webgl")),a("webgl",(function(){return r(this,void 0,void 0,(function(){var e;return n(this,(function(r){try{if(!L)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!L)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=L.createShader(L.VERTEX_SHADER),t=L.createShader(L.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(L.shaderSource(n,e),L.shaderSource(t,r),L.compileShader(n),!L.getShaderParameter(n,L.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+L.getShaderInfoLog(n));if(L.compileShader(t),!L.getShaderParameter(t,L.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+L.getShaderInfoLog(t));var o=L.createProgram();if(!o)throw new Error("Failed to create shader program");if(L.attachShader(o,n),L.attachShader(o,t),L.linkProgram(o),!L.getProgramParameter(o,L.LINK_STATUS))throw new Error("Shader program linking failed: "+L.getProgramInfoLog(o));L.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(k.width/2),i[4*u+3]=Math.sin(s)*(k.height/2)}var l=L.createBuffer();L.bindBuffer(L.ARRAY_BUFFER,l),L.bufferData(L.ARRAY_BUFFER,i,L.STATIC_DRAW);var d=L.getAttribLocation(o,"position");L.enableVertexAttribArray(d),L.vertexAttribPointer(d,2,L.FLOAT,!1,0,0),L.viewport(0,0,k.width,k.height),L.clearColor(0,0,0,1),L.clear(L.COLOR_BUFFER_BIT),L.drawArrays(L.LINES,0,2*a);var f=new Uint8ClampedArray(k.width*k.height*4);return L.readPixels(0,0,k.width,k.height,L.RGBA,L.UNSIGNED_BYTE,f),new ImageData(f,k.width,k.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{L&&(L.bindBuffer(L.ARRAY_BUFFER,null),L.useProgram(null),L.viewport(0,0,L.drawingBufferWidth,L.drawingBufferHeight),L.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:h(b(e,k.width,k.height).data.toString()).toString(),renderer:L.getParameter(L.RENDERER),vendor:L.getParameter(L.VENDOR),version:L.getParameter(L.VERSION),shadingLanguageVersion:L.getParameter(L.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var B=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o)}return a*o};return a("math",(function(){return r(void 0,void 0,void 0,(function(){return n(this,(function(e){return[2,{acos:Math.acos(.5),asin:B(Math.asin,-1,1,97),atan:B(Math.atan,-1,1,97),cos:B(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:B(Math.sin,-Math.PI,Math.PI,97),sinh:B(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:B(Math.tan,0,2*Math.PI,97),tanh:B(Math.tanh,-9/7,7/9,97)}]}))}))})),e.getFingerprint=function(){return r(this,void 0,void 0,(function(){var e;return n(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,w()];case 1:return e=r.sent(),[2,h(JSON.stringify(e)).toString()];case 2:throw r.sent();case 3:return[2]}}))}))},e.getFingerprintData=w,e.getFingerprintPerformance=function(){return r(this,void 0,void 0,(function(){var e,r,t,a;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=i(),r=Object.keys(e),[4,v(Object.values(e),p,o)];case 1:return t=n.sent(),a={elapsed:{}},t.forEach((function(e,n){a[r[n]]=e.value,a.elapsed[r[n]]=e.elapsed})),[2,a];case 2:throw n.sent();case 3:return[2]}}))}))},e.getVersion=function(){return"0.13.7"},e}({}); | ||
var ThumbmarkJS=function(e){"use strict";function r(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,c)}u((t=t.apply(e,r||[])).next())}))}function n(e,r){var n,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],t=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var t={},o={timeout:"true"},a=function(e,r){"undefined"!=typeof window&&(t[e]=r)},i=function(){return Object.fromEntries(Object.entries(t).map((function(e){return[e[0],(0,e[1])()]})))},c=3432918353,u=461845907,s=3864292196,l=2246822507,d=3266489909;function f(e,r){return e<<r|e>>>32-r}function h(e,r){void 0===r&&(r=0);for(var n=r,t=0,o=3&e.length,a=e.length-o,i=0;i<a;)t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24,++i,t=f(t=Math.imul(t,c),15),n=f(n^=t=Math.imul(t,u),13),n=Math.imul(n,5)+s;switch(t=0,o){case 3:t^=(255&e.charCodeAt(i+2))<<16;case 2:t^=(255&e.charCodeAt(i+1))<<8;case 1:t^=255&e.charCodeAt(i),t=f(t=Math.imul(t,c),15),n^=t=Math.imul(t,u)}return((n=function(e){return e^=e>>>16,e=Math.imul(e,l),e^=e>>>13,e=Math.imul(e,d),e^e>>>16}(n^=e.length))>>>0).toString(36)}function m(e,r){return new Promise((function(n){setTimeout((function(){return n(r)}),e)}))}function v(e,r,n){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),m(r,n).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function g(e,r,n){return Promise.all(e.map((function(e){return Promise.race([e,m(r,n)])})))}var p=1e3;function w(){return r(this,void 0,void 0,(function(){var e,r,t,a;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=i(),r=Object.keys(e),[4,g(Object.values(e),p,o)];case 1:return t=n.sent(),a={},t.forEach((function(e,n){a[r[n]]=e})),[2,a];case 2:throw n.sent();case 3:return[2]}}))}))}function S(e){for(var r=0,n=0;n<e.length;++n)r+=Math.abs(e[n]);return r}function b(e,r,n){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(y(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,r,n)}function y(e){if(0===e.length)return 0;for(var r={},n=0,t=e;n<t.length;n++){r[a=t[n]]=(r[a]||0)+1}var o=e[0];for(var a in r)r[a]>r[o]&&(o=parseInt(a,10));return o}function P(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,r={Edg:"Edge",OPR:"Opera"},n=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];n<t.length;n++){var o=t[n],a=e.match(o);if(a&&a.groups)return{name:r[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}a("audio",(function(){return r(this,void 0,void 0,(function(){return n(this,(function(e){return[2,new Promise((function(e,r){try{var n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=n.createBufferSource(),o=n.createOscillator();o.frequency.value=1e3;var a,i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(n.destination),o.start(),n.oncomplete=function(r){a=r.renderedBuffer.getChannelData(0),e({sampleHash:S(a),oscillator:o.type,maxChannels:n.destination.maxChannelCount,channelCountMode:t.channelCountMode})},n.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),r(e)}}))]}))}))}));var E=280,M=20;"Firefox"!=P().name&&a("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var r=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),r=e.getContext("2d");if(!r)return new ImageData(1,1);e.width=E,e.height=M;var n=r.createLinearGradient(0,0,e.width,e.height);n.addColorStop(0,"red"),n.addColorStop(1/6,"orange"),n.addColorStop(2/6,"yellow"),n.addColorStop(.5,"green"),n.addColorStop(4/6,"blue"),n.addColorStop(5/6,"indigo"),n.addColorStop(1,"violet"),r.fillStyle=n,r.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";r.font="23.123px Arial",r.fillStyle="black",r.fillText(t,-5,15),r.fillStyle="rgba(0, 0, 255, 0.5)",r.fillText(t,-3.3,17.7),r.beginPath(),r.moveTo(0,0),r.lineTo(2*e.width/7,e.height),r.strokeStyle="white",r.lineWidth=2,r.stroke();var o=r.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:h(b(r,E,M).data.toString()).toString()})}))}));var C=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],A=["monospace","sans-serif","serif"];function R(e,r){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(r),e.measureText("WwMmLli0Oo").width}function T(){var e,r=document.createElement("canvas"),n=null!==(e=r.getContext("webgl"))&&void 0!==e?e:r.getContext("experimental-webgl");return n&&"getParameter"in n?{vendor:(n.getParameter(n.VENDOR)||"").toString(),renderer:(n.getParameter(n.RENDERER)||"").toString()}:"undefined"}function I(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function x(e,r){var n={};return r.forEach((function(r){var t=function(e){if(0===e.length)return null;var r={};e.forEach((function(e){var n=String(e);r[n]=(r[n]||0)+1}));var n=e[0],t=1;return Object.keys(r).forEach((function(e){r[e]>t&&(n=e,t=r[e])})),n}(e.map((function(e){return r in e?e[r]:void 0})).filter((function(e){return void 0!==e})));t&&(n[r]=t)})),n}"Firefox"!=P().name&&a("fonts",(function(){var e=this;return new Promise((function(t,o){try{!function(e){var t;r(this,void 0,void 0,(function(){var r,o,a;return n(this,(function(n){switch(n.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return n.sent(),[3,0];case 2:if(r=document.createElement("iframe"),(o=r.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),r.src="about:blank",document.body.appendChild(r),!(a=r.contentDocument||(null===(t=r.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout((function(){document.body.removeChild(r)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return r(e,void 0,void 0,(function(){var e,r,o,i;return n(this,(function(n){return"Hello, world!",e=a.createElement("canvas"),r=e.getContext("2d"),o=A.map((function(e){return R(r,e)})),i={},C.forEach((function(e){var n=R(r,e);o.includes(n)||(i[e]=n)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),a("hardware",(function(){return new Promise((function(e,r){var n=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:T(),architecture:I(),deviceMemory:n.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),a("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var k,O=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function D(){var e=[],r={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(r).forEach((function(n){r[n].forEach((function(r){matchMedia("(".concat(n,": ").concat(r,")")).matches&&e.push("".concat(n,": ").concat(r))}))})),e}function F(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,r=15;r>0;r--)if(e(r))return r;return 0}a("permissions",(function(){return r(this,void 0,void 0,(function(){var e;return n(this,(function(t){return e=Array.from({length:3},(function(){return function(){return r(this,void 0,void 0,(function(){var e,r,t,o,a;return n(this,(function(n){switch(n.label){case 0:e={},r=0,t=O,n.label=1;case 1:if(!(r<t.length))return[3,6];o=t[r],n.label=2;case 2:return n.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=n.sent(),e[o]=a.state.toString(),[3,5];case 4:return n.sent(),[3,5];case 5:return r++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(e).then((function(e){return x(e,O)}))]}))}))})),a("plugins",(function(){var e=[];if(navigator.plugins)for(var r=0;r<navigator.plugins.length;r++){var n=navigator.plugins[r];e.push([n.name,n.filename,n.description].join("|"))}return new Promise((function(r){r({plugins:e})}))})),a("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})}))})),a("system",(function(){return new Promise((function(e){var r=P();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:r.name,version:r.version},applePayInfo:F()})}))}));var L=null;"undefined"!=typeof document&&((k=document.createElement("canvas")).width=200,k.height=100,L=k.getContext("webgl")),a("webgl",(function(){return r(this,void 0,void 0,(function(){var e;return n(this,(function(r){try{if(!L)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!L)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",r="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",n=L.createShader(L.VERTEX_SHADER),t=L.createShader(L.FRAGMENT_SHADER);if(!n||!t)throw new Error("Failed to create shaders");if(L.shaderSource(n,e),L.shaderSource(t,r),L.compileShader(n),!L.getShaderParameter(n,L.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+L.getShaderInfoLog(n));if(L.compileShader(t),!L.getShaderParameter(t,L.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+L.getShaderInfoLog(t));var o=L.createProgram();if(!o)throw new Error("Failed to create shader program");if(L.attachShader(o,n),L.attachShader(o,t),L.linkProgram(o),!L.getProgramParameter(o,L.LINK_STATUS))throw new Error("Shader program linking failed: "+L.getProgramInfoLog(o));L.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(k.width/2),i[4*u+3]=Math.sin(s)*(k.height/2)}var l=L.createBuffer();L.bindBuffer(L.ARRAY_BUFFER,l),L.bufferData(L.ARRAY_BUFFER,i,L.STATIC_DRAW);var d=L.getAttribLocation(o,"position");L.enableVertexAttribArray(d),L.vertexAttribPointer(d,2,L.FLOAT,!1,0,0),L.viewport(0,0,k.width,k.height),L.clearColor(0,0,0,1),L.clear(L.COLOR_BUFFER_BIT),L.drawArrays(L.LINES,0,2*a);var f=new Uint8ClampedArray(k.width*k.height*4);return L.readPixels(0,0,k.width,k.height,L.RGBA,L.UNSIGNED_BYTE,f),new ImageData(f,k.width,k.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{L&&(L.bindBuffer(L.ARRAY_BUFFER,null),L.useProgram(null),L.viewport(0,0,L.drawingBufferWidth,L.drawingBufferHeight),L.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:h(b(e,k.width,k.height).data.toString()).toString(),renderer:L.getParameter(L.RENDERER),vendor:L.getParameter(L.VENDOR),version:L.getParameter(L.VERSION),shadingLanguageVersion:L.getParameter(L.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var B=function(e,r,n,t){for(var o=(n-r)/t,a=0,i=0;i<t;i++){a+=e(r+(i+.5)*o)}return a*o};return a("math",(function(){return r(void 0,void 0,void 0,(function(){return n(this,(function(e){return[2,{acos:Math.acos(.5),asin:B(Math.asin,-1,1,97),atan:B(Math.atan,-1,1,97),cos:B(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:B(Math.sin,-Math.PI,Math.PI,97),sinh:B(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:B(Math.tan,0,2*Math.PI,97),tanh:B(Math.tanh,-9/7,7/9,97)}]}))}))})),e.getFingerprint=function(){return r(this,void 0,void 0,(function(){var e;return n(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,w()];case 1:return e=r.sent(),[2,h(JSON.stringify(e)).toString()];case 2:throw r.sent();case 3:return[2]}}))}))},e.getFingerprintData=w,e.getFingerprintPerformance=function(){return r(this,void 0,void 0,(function(){var e,r,t,a;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=i(),r=Object.keys(e),[4,v(Object.values(e),p,o)];case 1:return t=n.sent(),a={elapsed:{}},t.forEach((function(e,n){a[r[n]]=e.value,a.elapsed[r[n]]=e.elapsed})),[2,a];case 2:throw n.sent();case 3:return[2]}}))}))},e.getVersion=function(){return"0.13.8"},e}({}); | ||
//# sourceMappingURL=thumbmark.iife.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).ThumbmarkJS={})}(this,(function(e){"use strict";function n(e,n,r,t){return new(r||(r=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,c)}u((t=t.apply(e,n||[])).next())}))}function r(e,n){var r,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(e,i)}catch(e){c=[6,e],t=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var t={},o={timeout:"true"},a=function(e,n){"undefined"!=typeof window&&(t[e]=n)},i=function(){return Object.fromEntries(Object.entries(t).map((function(e){return[e[0],(0,e[1])()]})))},c=3432918353,u=461845907,s=3864292196,l=2246822507,d=3266489909;function f(e,n){return e<<n|e>>>32-n}function h(e,n){void 0===n&&(n=0);for(var r=n,t=0,o=3&e.length,a=e.length-o,i=0;i<a;)t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24,++i,t=f(t=Math.imul(t,c),15),r=f(r^=t=Math.imul(t,u),13),r=Math.imul(r,5)+s;switch(t=0,o){case 3:t^=(255&e.charCodeAt(i+2))<<16;case 2:t^=(255&e.charCodeAt(i+1))<<8;case 1:t^=255&e.charCodeAt(i),t=f(t=Math.imul(t,c),15),r^=t=Math.imul(t,u)}return((r=function(e){return e^=e>>>16,e=Math.imul(e,l),e^=e>>>13,e=Math.imul(e,d),e^e>>>16}(r^=e.length))>>>0).toString(36)}function m(e,n){return new Promise((function(r){setTimeout((function(){return r(n)}),e)}))}function v(e,n,r){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),m(n,r).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function p(e,n,r){return Promise.all(e.map((function(e){return Promise.race([e,m(n,r)])})))}var g=1e3;function w(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,p(Object.values(e),g,o)];case 1:return t=r.sent(),a={},t.forEach((function(e,r){a[n[r]]=e})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))}function S(e){for(var n=0,r=0;r<e.length;++r)n+=Math.abs(e[r]);return n}function b(e,n,r){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(y(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,n,r)}function y(e){if(0===e.length)return 0;for(var n={},r=0,t=e;r<t.length;r++){n[a=t[r]]=(n[a]||0)+1}var o=e[0];for(var a in n)n[a]>n[o]&&(o=parseInt(a,10));return o}function P(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,n={Edg:"Edge",OPR:"Opera"},r=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];r<t.length;r++){var o=t[r],a=e.match(o);if(a&&a.groups)return{name:n[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}a("audio",(function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,n){try{var r=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=r.createBufferSource(),o=r.createOscillator();o.frequency.value=1e3;var a,i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(r.destination),o.start(),r.oncomplete=function(n){a=n.renderedBuffer.getChannelData(0),e({sampleHash:S(a),oscillator:o.type,maxChannels:r.destination.maxChannelCount,channelCountMode:t.channelCountMode})},r.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),n(e)}}))]}))}))}));var E=280,M=20;"Firefox"!=P().name&&a("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var n=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),n=e.getContext("2d");if(!n)return new ImageData(1,1);e.width=E,e.height=M;var r=n.createLinearGradient(0,0,e.width,e.height);r.addColorStop(0,"red"),r.addColorStop(1/6,"orange"),r.addColorStop(2/6,"yellow"),r.addColorStop(.5,"green"),r.addColorStop(4/6,"blue"),r.addColorStop(5/6,"indigo"),r.addColorStop(1,"violet"),n.fillStyle=r,n.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";n.font="23.123px Arial",n.fillStyle="black",n.fillText(t,-5,15),n.fillStyle="rgba(0, 0, 255, 0.5)",n.fillText(t,-3.3,17.7),n.beginPath(),n.moveTo(0,0),n.lineTo(2*e.width/7,e.height),n.strokeStyle="white",n.lineWidth=2,n.stroke();var o=n.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:h(b(n,E,M).data.toString()).toString()})}))}));var C=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],A=["monospace","sans-serif","serif"];function T(e,n){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(n),e.measureText("WwMmLli0Oo").width}function x(){var e,n=document.createElement("canvas"),r=null!==(e=n.getContext("webgl"))&&void 0!==e?e:n.getContext("experimental-webgl");return r&&"getParameter"in r?{vendor:(r.getParameter(r.VENDOR)||"").toString(),renderer:(r.getParameter(r.RENDERER)||"").toString()}:"undefined"}function R(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}function I(e,n){var r={};return n.forEach((function(n){var t=function(e){if(0===e.length)return null;var n={};e.forEach((function(e){var r=String(e);n[r]=(n[r]||0)+1}));var r=e[0],t=1;return Object.keys(n).forEach((function(e){n[e]>t&&(r=e,t=n[e])})),r}(e.map((function(e){return n in e?e[n]:void 0})).filter((function(e){return void 0!==e})));t&&(r[n]=t)})),r}"Firefox"!=P().name&&a("fonts",(function(){var e=this;return new Promise((function(t,o){try{!function(e){var t;n(this,void 0,void 0,(function(){var n,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(n=document.createElement("iframe"),(o=n.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),n.src="about:blank",document.body.appendChild(n),!(a=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout((function(){document.body.removeChild(n)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return n(e,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=A.map((function(e){return T(n,e)})),i={},C.forEach((function(e){var r=T(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),a("hardware",(function(){return new Promise((function(e,n){var r=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:x(),architecture:R(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),a("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var k,O=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function D(){var e=[],n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(n).forEach((function(r){n[r].forEach((function(n){matchMedia("(".concat(r,": ").concat(n,")")).matches&&e.push("".concat(r,": ").concat(n))}))})),e}function F(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,n=15;n>0;n--)if(e(n))return n;return 0}a("permissions",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){return e=Array.from({length:3},(function(){return function(){return n(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=O,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(e).then((function(e){return I(e,O)}))]}))}))})),a("plugins",(function(){var e=[];if(navigator.plugins)for(var n=0;n<navigator.plugins.length;n++){var r=navigator.plugins[n];e.push([r.name,r.filename,r.description].join("|"))}return new Promise((function(n){n({plugins:e})}))})),a("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})}))})),a("system",(function(){return new Promise((function(e){var n=P();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:n.name,version:n.version},applePayInfo:F()})}))}));var L=null;"undefined"!=typeof document&&((k=document.createElement("canvas")).width=200,k.height=100,L=k.getContext("webgl")),a("webgl",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){try{if(!L)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!L)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",n="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",r=L.createShader(L.VERTEX_SHADER),t=L.createShader(L.FRAGMENT_SHADER);if(!r||!t)throw new Error("Failed to create shaders");if(L.shaderSource(r,e),L.shaderSource(t,n),L.compileShader(r),!L.getShaderParameter(r,L.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+L.getShaderInfoLog(r));if(L.compileShader(t),!L.getShaderParameter(t,L.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+L.getShaderInfoLog(t));var o=L.createProgram();if(!o)throw new Error("Failed to create shader program");if(L.attachShader(o,r),L.attachShader(o,t),L.linkProgram(o),!L.getProgramParameter(o,L.LINK_STATUS))throw new Error("Shader program linking failed: "+L.getProgramInfoLog(o));L.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(k.width/2),i[4*u+3]=Math.sin(s)*(k.height/2)}var l=L.createBuffer();L.bindBuffer(L.ARRAY_BUFFER,l),L.bufferData(L.ARRAY_BUFFER,i,L.STATIC_DRAW);var d=L.getAttribLocation(o,"position");L.enableVertexAttribArray(d),L.vertexAttribPointer(d,2,L.FLOAT,!1,0,0),L.viewport(0,0,k.width,k.height),L.clearColor(0,0,0,1),L.clear(L.COLOR_BUFFER_BIT),L.drawArrays(L.LINES,0,2*a);var f=new Uint8ClampedArray(k.width*k.height*4);return L.readPixels(0,0,k.width,k.height,L.RGBA,L.UNSIGNED_BYTE,f),new ImageData(f,k.width,k.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{L&&(L.bindBuffer(L.ARRAY_BUFFER,null),L.useProgram(null),L.viewport(0,0,L.drawingBufferWidth,L.drawingBufferHeight),L.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:h(b(e,k.width,k.height).data.toString()).toString(),renderer:L.getParameter(L.RENDERER),vendor:L.getParameter(L.VENDOR),version:L.getParameter(L.VERSION),shadingLanguageVersion:L.getParameter(L.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var B=function(e,n,r,t){for(var o=(r-n)/t,a=0,i=0;i<t;i++){a+=e(n+(i+.5)*o)}return a*o};a("math",(function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:B(Math.asin,-1,1,97),atan:B(Math.atan,-1,1,97),cos:B(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:B(Math.sin,-Math.PI,Math.PI,97),sinh:B(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:B(Math.tan,0,2*Math.PI,97),tanh:B(Math.tanh,-9/7,7/9,97)}]}))}))})),e.getFingerprint=function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,w()];case 1:return e=n.sent(),[2,h(JSON.stringify(e)).toString()];case 2:throw n.sent();case 3:return[2]}}))}))},e.getFingerprintData=w,e.getFingerprintPerformance=function(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,v(Object.values(e),g,o)];case 1:return t=r.sent(),a={elapsed:{}},t.forEach((function(e,r){a[n[r]]=e.value,a.elapsed[n[r]]=e.elapsed})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))},e.getVersion=function(){return"0.13.7"}})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).ThumbmarkJS={})}(this,(function(e){"use strict";function n(e,n,r,t){return new(r||(r=Promise))((function(o,a){function i(e){try{u(t.next(e))}catch(e){a(e)}}function c(e){try{u(t.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,c)}u((t=t.apply(e,n||[])).next())}))}function r(e,n){var r,t,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,t&&(o=2&c[0]?t.return:c[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;switch(t=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,t=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(e,i)}catch(e){c=[6,e],t=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}"function"==typeof SuppressedError&&SuppressedError;var t={},o={timeout:"true"},a=function(e,n){"undefined"!=typeof window&&(t[e]=n)},i=function(){return Object.fromEntries(Object.entries(t).map((function(e){return[e[0],(0,e[1])()]})))},c=3432918353,u=461845907,s=3864292196,l=2246822507,d=3266489909;function f(e,n){return e<<n|e>>>32-n}function h(e,n){void 0===n&&(n=0);for(var r=n,t=0,o=3&e.length,a=e.length-o,i=0;i<a;)t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24,++i,t=f(t=Math.imul(t,c),15),r=f(r^=t=Math.imul(t,u),13),r=Math.imul(r,5)+s;switch(t=0,o){case 3:t^=(255&e.charCodeAt(i+2))<<16;case 2:t^=(255&e.charCodeAt(i+1))<<8;case 1:t^=255&e.charCodeAt(i),t=f(t=Math.imul(t,c),15),r^=t=Math.imul(t,u)}return((r=function(e){return e^=e>>>16,e=Math.imul(e,l),e^=e>>>13,e=Math.imul(e,d),e^e>>>16}(r^=e.length))>>>0).toString(36)}function m(e,n){return new Promise((function(r){setTimeout((function(){return r(n)}),e)}))}function v(e,n,r){return Promise.all(e.map((function(e){var t=performance.now();return Promise.race([e.then((function(e){return{value:e,elapsed:performance.now()-t}})),m(n,r).then((function(e){return{value:e,elapsed:performance.now()-t}}))])})))}function p(e,n,r){return Promise.all(e.map((function(e){return Promise.race([e,m(n,r)])})))}var g=1e3;function w(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,p(Object.values(e),g,o)];case 1:return t=r.sent(),a={},t.forEach((function(e,r){a[n[r]]=e})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))}function S(e){for(var n=0,r=0;r<e.length;++r)n+=Math.abs(e[r]);return n}function b(e,n,r){for(var t=[],o=0;o<e[0].data.length;o++){for(var a=[],i=0;i<e.length;i++)a.push(e[i].data[o]);t.push(y(a))}var c=new Uint8ClampedArray(t);return new ImageData(c,n,r)}function y(e){if(0===e.length)return 0;for(var n={},r=0,t=e;r<t.length;r++){n[a=t[r]]=(n[a]||0)+1}var o=e[0];for(var a in n)n[a]>n[o]&&(o=parseInt(a,10));return o}function P(){if("undefined"==typeof navigator)return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,n={Edg:"Edge",OPR:"Opera"},r=0,t=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];r<t.length;r++){var o=t[r],a=e.match(o);if(a&&a.groups)return{name:n[a.groups.name]||a.groups.name,version:a.groups.version}}return{name:"unknown",version:"unknown"}}a("audio",(function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e,n){try{var r=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),t=r.createBufferSource(),o=r.createOscillator();o.frequency.value=1e3;var a,i=r.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.2,o.connect(i),i.connect(r.destination),o.start(),r.oncomplete=function(n){a=n.renderedBuffer.getChannelData(0),e({sampleHash:S(a),oscillator:o.type,maxChannels:r.destination.maxChannelCount,channelCountMode:t.channelCountMode})},r.startRendering()}catch(e){console.error("Error creating audio fingerprint:",e),n(e)}}))]}))}))}));var E=280,M=20;"Firefox"!=P().name&&a("canvas",(function(){return document.createElement("canvas").getContext("2d"),new Promise((function(e){var n=Array.from({length:3},(function(){return function(){var e=document.createElement("canvas"),n=e.getContext("2d");if(!n)return new ImageData(1,1);e.width=E,e.height=M;var r=n.createLinearGradient(0,0,e.width,e.height);r.addColorStop(0,"red"),r.addColorStop(1/6,"orange"),r.addColorStop(2/6,"yellow"),r.addColorStop(.5,"green"),r.addColorStop(4/6,"blue"),r.addColorStop(5/6,"indigo"),r.addColorStop(1,"violet"),n.fillStyle=r,n.fillRect(0,0,e.width,e.height);var t="Random Text WMwmil10Oo";n.font="23.123px Arial",n.fillStyle="black",n.fillText(t,-5,15),n.fillStyle="rgba(0, 0, 255, 0.5)",n.fillText(t,-3.3,17.7),n.beginPath(),n.moveTo(0,0),n.lineTo(2*e.width/7,e.height),n.strokeStyle="white",n.lineWidth=2,n.stroke();var o=n.getImageData(0,0,e.width,e.height);return o}()}));e({commonImageDataHash:h(b(n,E,M).data.toString()).toString()})}))}));var C=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],A=["monospace","sans-serif","serif"];function T(e,n){if(!e)throw new Error("Canvas context not supported");return e.font,e.font="72px ".concat(n),e.measureText("WwMmLli0Oo").width}function x(){var e,n=document.createElement("canvas"),r=null!==(e=n.getContext("webgl"))&&void 0!==e?e:n.getContext("experimental-webgl");return r&&"getParameter"in r?{vendor:(r.getParameter(r.VENDOR)||"").toString(),renderer:(r.getParameter(r.RENDERER)||"").toString()}:"undefined"}function R(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}function I(e,n){var r={};return n.forEach((function(n){var t=function(e){if(0===e.length)return null;var n={};e.forEach((function(e){var r=String(e);n[r]=(n[r]||0)+1}));var r=e[0],t=1;return Object.keys(n).forEach((function(e){n[e]>t&&(r=e,t=n[e])})),r}(e.map((function(e){return n in e?e[n]:void 0})).filter((function(e){return void 0!==e})));t&&(r[n]=t)})),r}"Firefox"!=P().name&&a("fonts",(function(){var e=this;return new Promise((function(t,o){try{!function(e){var t;n(this,void 0,void 0,(function(){var n,o,a;return r(this,(function(r){switch(r.label){case 0:return document.body?[3,2]:[4,(i=50,new Promise((function(e){return setTimeout(e,i,c)})))];case 1:return r.sent(),[3,0];case 2:if(n=document.createElement("iframe"),(o=n.style).setProperty("display","block","important"),o.setProperty("visibility","visible"),n.src="about:blank",document.body.appendChild(n),!(a=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document)))throw new Error("Iframe document is not accessible");return e({iframe:a}),setTimeout((function(){document.body.removeChild(n)}),0),[2]}var i,c}))}))}((function(o){var a=o.iframe;return n(e,void 0,void 0,(function(){var e,n,o,i;return r(this,(function(r){return"Hello, world!",e=a.createElement("canvas"),n=e.getContext("2d"),o=A.map((function(e){return T(n,e)})),i={},C.forEach((function(e){var r=T(n,e);o.includes(r)||(i[e]=r)})),t(i),[2]}))}))}))}catch(e){o({error:"unsupported"})}}))})),a("hardware",(function(){return new Promise((function(e,n){var r=void 0!==navigator.deviceMemory?navigator.deviceMemory:0,t=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:x(),architecture:R(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:t.jsHeapSizeLimit||"undefined"})}))})),a("locales",(function(){return new Promise((function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}))}));var k,O=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"];function D(){var e=[],n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],color:["8","16","256"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"],"prefers-color-scheme":["dark","light","no-preference"]};return Object.keys(n).forEach((function(r){n[r].forEach((function(n){matchMedia("(".concat(r,": ").concat(n,")")).matches&&e.push("".concat(r,": ").concat(n))}))})),e}function F(){if("https:"===window.location.protocol&&"function"==typeof window.ApplePaySession)for(var e=window.ApplePaySession.supportsVersion,n=15;n>0;n--)if(e(n))return n;return 0}a("permissions",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){return e=Array.from({length:3},(function(){return function(){return n(this,void 0,void 0,(function(){var e,n,t,o,a;return r(this,(function(r){switch(r.label){case 0:e={},n=0,t=O,r.label=1;case 1:if(!(n<t.length))return[3,6];o=t[n],r.label=2;case 2:return r.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return a=r.sent(),e[o]=a.state.toString(),[3,5];case 4:return r.sent(),[3,5];case 5:return n++,[3,1];case 6:return[2,e]}}))}))}()})),[2,Promise.all(e).then((function(e){return I(e,O)}))]}))}))})),a("plugins",(function(){var e=[];if(navigator.plugins)for(var n=0;n<navigator.plugins.length;n++){var r=navigator.plugins[n];e.push([r.name,r.filename,r.description].join("|"))}return new Promise((function(n){n({plugins:e})}))})),a("screen",(function(){return new Promise((function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})}))})),a("system",(function(){return new Promise((function(e){var n=P();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,browser:{name:n.name,version:n.version},applePayInfo:F()})}))}));var L=null;"undefined"!=typeof document&&((k=document.createElement("canvas")).width=200,k.height=100,L=k.getContext("webgl")),a("webgl",(function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){try{if(!L)throw new Error("WebGL not supported");return e=Array.from({length:1},(function(){return function(){try{if(!L)throw new Error("WebGL not supported");var e="\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",n="\n precision mediump float;\n void main() {\n gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n }\n ",r=L.createShader(L.VERTEX_SHADER),t=L.createShader(L.FRAGMENT_SHADER);if(!r||!t)throw new Error("Failed to create shaders");if(L.shaderSource(r,e),L.shaderSource(t,n),L.compileShader(r),!L.getShaderParameter(r,L.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+L.getShaderInfoLog(r));if(L.compileShader(t),!L.getShaderParameter(t,L.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+L.getShaderInfoLog(t));var o=L.createProgram();if(!o)throw new Error("Failed to create shader program");if(L.attachShader(o,r),L.attachShader(o,t),L.linkProgram(o),!L.getProgramParameter(o,L.LINK_STATUS))throw new Error("Shader program linking failed: "+L.getProgramInfoLog(o));L.useProgram(o);for(var a=137,i=new Float32Array(4*a),c=2*Math.PI/a,u=0;u<a;u++){var s=u*c;i[4*u]=0,i[4*u+1]=0,i[4*u+2]=Math.cos(s)*(k.width/2),i[4*u+3]=Math.sin(s)*(k.height/2)}var l=L.createBuffer();L.bindBuffer(L.ARRAY_BUFFER,l),L.bufferData(L.ARRAY_BUFFER,i,L.STATIC_DRAW);var d=L.getAttribLocation(o,"position");L.enableVertexAttribArray(d),L.vertexAttribPointer(d,2,L.FLOAT,!1,0,0),L.viewport(0,0,k.width,k.height),L.clearColor(0,0,0,1),L.clear(L.COLOR_BUFFER_BIT),L.drawArrays(L.LINES,0,2*a);var f=new Uint8ClampedArray(k.width*k.height*4);return L.readPixels(0,0,k.width,k.height,L.RGBA,L.UNSIGNED_BYTE,f),new ImageData(f,k.width,k.height)}catch(e){return console.error(e),new ImageData(1,1)}finally{L&&(L.bindBuffer(L.ARRAY_BUFFER,null),L.useProgram(null),L.viewport(0,0,L.drawingBufferWidth,L.drawingBufferHeight),L.clearColor(0,0,0,0))}}()})),[2,{commonImageHash:h(b(e,k.width,k.height).data.toString()).toString(),renderer:L.getParameter(L.RENDERER),vendor:L.getParameter(L.VENDOR),version:L.getParameter(L.VERSION),shadingLanguageVersion:L.getParameter(L.SHADING_LANGUAGE_VERSION)}]}catch(e){return[2,{webgl:"unsupported"}]}return[2]}))}))}));var B=function(e,n,r,t){for(var o=(r-n)/t,a=0,i=0;i<t;i++){a+=e(n+(i+.5)*o)}return a*o};a("math",(function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(e){return[2,{acos:Math.acos(.5),asin:B(Math.asin,-1,1,97),atan:B(Math.atan,-1,1,97),cos:B(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:B(Math.sin,-Math.PI,Math.PI,97),sinh:B(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:B(Math.tan,0,2*Math.PI,97),tanh:B(Math.tanh,-9/7,7/9,97)}]}))}))})),e.getFingerprint=function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,w()];case 1:return e=n.sent(),[2,h(JSON.stringify(e)).toString()];case 2:throw n.sent();case 3:return[2]}}))}))},e.getFingerprintData=w,e.getFingerprintPerformance=function(){return n(this,void 0,void 0,(function(){var e,n,t,a;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=i(),n=Object.keys(e),[4,v(Object.values(e),g,o)];case 1:return t=r.sent(),a={elapsed:{}},t.forEach((function(e,r){a[n[r]]=e.value,a.elapsed[n[r]]=e.elapsed})),[2,a];case 2:throw r.sent();case 3:return[2]}}))}))},e.getVersion=function(){return"0.13.8"}})); | ||
//# sourceMappingURL=thumbmark.umd.js.map |
{ | ||
"name": "@thumbmarkjs/thumbmarkjs", | ||
"version": "0.13.7", | ||
"version": "0.13.8", | ||
"description": "", | ||
@@ -8,2 +8,8 @@ "main": "dist/thumbmark.cjs.js", | ||
"types": "dist/types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/thumbmark.esm.js", | ||
"require": "./dist/thumbmark.cjs.js" | ||
} | ||
}, | ||
"public": true, | ||
@@ -29,2 +35,3 @@ "files": [ | ||
"license": "MIT", | ||
"unpkg": "dist/thumbmark.umd.js", | ||
"devDependencies": { | ||
@@ -52,6 +59,4 @@ "@testing-library/jest-dom": "^6.1.6", | ||
"ts-md5": "^1.3.1", | ||
"typescript": "^5.3.3", | ||
"webpack": "^5.89.0", | ||
"webpack-cli": "^5.1.4" | ||
"typescript": "^5.3.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
291052
22
2