2 lines
42 KiB
JavaScript
Executable File
2 lines
42 KiB
JavaScript
Executable File
!function(){"use strict";var n=Object.prototype;var a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)};var o=function(t,n){return function(e){return t(n(e))}}(Object.keys,Object),r=Object.prototype.hasOwnProperty;var i=function(e){if(!a(e))return o(e);var t,n=[];for(t in Object(e))r.call(e,t)&&"constructor"!=t&&n.push(t);return n},w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e,t){return e(t={exports:{}},t.exports),t.exports}var s="object"==typeof w&&w&&w.Object===Object&&w,t="object"==typeof self&&self&&self.Object===Object&&self,c=s||t||Function("return this")(),t=c.Symbol,l=Object.prototype,d=l.hasOwnProperty,u=l.toString,f=t?t.toStringTag:void 0;var h=function(e){var t=d.call(e,f),n=e[f];try{var a=!(e[f]=void 0)}catch(e){}var o=u.call(e);return a&&(t?e[f]=n:delete e[f]),o},g=Object.prototype.toString;var p=function(e){return g.call(e)},m=t?t.toStringTag:void 0;var v=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(m&&m in Object(e)?h:p)(e)};var y=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var T=function(e){return!!y(e)&&("[object Function]"==(e=v(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)},l=c["__core-js_shared__"],A=(t=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";var D=function(e){return!!A&&A in e},N=Function.prototype.toString;var b=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},F=/^\[object .+?Constructor\]$/,l=Function.prototype,t=Object.prototype,l=l.toString,t=t.hasOwnProperty,U=RegExp("^"+l.call(t).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var j=function(e){return!(!y(e)||D(e))&&(T(e)?U:F).test(b(e))};var G=function(e,t){return null==e?void 0:e[t]};var l=function(e,t){return e=G(e,t),j(e)?e:void 0},t=l(c,"DataView"),S=l(c,"Map"),E=l(c,"Promise"),O=l(c,"Set"),l=l(c,"WeakMap"),C="[object Map]",x="[object Promise]",B="[object Set]",M="[object WeakMap]",_="[object DataView]",V=b(t),H=b(S),X=b(E),W=b(O),K=b(l),I=v,z=I=t&&I(new t(new ArrayBuffer(1)))!=_||S&&I(new S)!=C||E&&I(E.resolve())!=x||O&&I(new O)!=B||l&&I(new l)!=M?function(e){var t=v(e),e="[object Object]"==t?e.constructor:void 0,e=e?b(e):"";if(e)switch(e){case V:return _;case H:return C;case X:return x;case W:return B;case K:return M}return t}:I;var L=function(e){return null!=e&&"object"==typeof e};var t=function(e){return L(e)&&"[object Arguments]"==v(e)},S=Object.prototype,q=S.hasOwnProperty,J=S.propertyIsEnumerable,Y=t(function(){return arguments}())?t:function(e){return L(e)&&q.call(e,"callee")&&!J.call(e,"callee")},Z=Array.isArray;var P=function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991};var $=function(e){return null!=e&&P(e.length)&&!T(e)};function Q(){return!1}var ee=e(function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?c.Buffer:void 0,t=n?n.isBuffer:void 0;e.exports=t||Q}),k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object Boolean]"]=k["[object DataView]"]=k["[object Date]"]=k["[object Error]"]=k["[object Function]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object WeakMap]"]=!1;function te(e){return L(e)&&P(e.length)&&!!k[v(e)]}var E=function(t){return function(e){return t(e)}},O=e(function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,a=n&&n.exports===t&&s.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=t}),l=O&&O.isTypedArray,ne=l?E(l):te,ae=Object.prototype.hasOwnProperty;var oe=function(e){if(null==e)return!0;if($(e)&&(Z(e)||"string"==typeof e||"function"==typeof e.splice||ee(e)||ne(e)||Y(e)))return!e.length;var t,n=z(e);if("[object Map]"==n||"[object Set]"==n)return!e.size;if(a(e))return!i(e).length;for(t in e)if(ae.call(e,t))return!1;return!0},I=e(function(e,t){function n(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n=null);var a=JSON.parse(JSON.stringify(e));a.time&&(a.time+=(performance.now()/1e3).toFixed(0)),d(function(e){T(p.baseURL+"/humans/visitors/"+(y||"#PIXEL_ID#")+"/sessions/"+u,Object.assign({},{id:p.id,hash:p.hash,data:JSON.stringify(a),fingerprint:e,gso_session_id:f},t),"POST",n)})}var a,o,r,i,s,c,l,d,u,f,h,g,p,m,v,y,T;t=t,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==w?w:"undefined"!=typeof self?self:{},h=r={exports:{}},a=a,o=function(){function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function f(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:[e[1]<<(t-=32)|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t]}function h(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function g(e){return e=m(e,[0,e[0]>>>1]),e=p(e,[4283543511,3981806797]),e=m(e,[0,e[0]>>>1]),e=p(e,[3301882366,444984403]),m(e,[0,e[0]>>>1])}function s(e,t){for(var n=(e=e||"").length%16,a=e.length-n,o=[0,t=t||0],r=[0,t],i=[0,0],s=[0,0],c=[2277735313,289559509],l=[1291169091,658871167],d=0;d<a;d+=16)i=[255&e.charCodeAt(d+4)|(255&e.charCodeAt(d+5))<<8|(255&e.charCodeAt(d+6))<<16|(255&e.charCodeAt(d+7))<<24,255&e.charCodeAt(d)|(255&e.charCodeAt(d+1))<<8|(255&e.charCodeAt(d+2))<<16|(255&e.charCodeAt(d+3))<<24],s=[255&e.charCodeAt(d+12)|(255&e.charCodeAt(d+13))<<8|(255&e.charCodeAt(d+14))<<16|(255&e.charCodeAt(d+15))<<24,255&e.charCodeAt(d+8)|(255&e.charCodeAt(d+9))<<8|(255&e.charCodeAt(d+10))<<16|(255&e.charCodeAt(d+11))<<24],i=f(i=p(i,c),31),i=p(i,l),o=u(o=f(o=m(o,i),27),r),o=u(p(o,[0,5]),[0,1390208809]),s=f(s=p(s,l),33),s=p(s,c),r=u(r=f(r=m(r,s),31),o),r=u(p(r,[0,5]),[0,944331445]);switch(i=[0,0],s=[0,0],n){case 15:s=m(s,h([0,e.charCodeAt(d+14)],48));case 14:s=m(s,h([0,e.charCodeAt(d+13)],40));case 13:s=m(s,h([0,e.charCodeAt(d+12)],32));case 12:s=m(s,h([0,e.charCodeAt(d+11)],24));case 11:s=m(s,h([0,e.charCodeAt(d+10)],16));case 10:s=m(s,h([0,e.charCodeAt(d+9)],8));case 9:s=m(s,[0,e.charCodeAt(d+8)]),s=f(s=p(s,l),33),s=p(s,c),r=m(r,s);case 8:i=m(i,h([0,e.charCodeAt(d+7)],56));case 7:i=m(i,h([0,e.charCodeAt(d+6)],48));case 6:i=m(i,h([0,e.charCodeAt(d+5)],40));case 5:i=m(i,h([0,e.charCodeAt(d+4)],32));case 4:i=m(i,h([0,e.charCodeAt(d+3)],24));case 3:i=m(i,h([0,e.charCodeAt(d+2)],16));case 2:i=m(i,h([0,e.charCodeAt(d+1)],8));case 1:i=m(i,[0,e.charCodeAt(d)]),i=f(i=p(i,c),31),i=p(i,l),o=m(o,i)}return o=u(o=m(o,[0,e.length]),r=m(r,[0,e.length])),r=u(r,o),o=u(o=g(o),r=g(r)),r=u(r,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(r[0]>>>0).toString(16)).slice(-8)+("00000000"+(r[1]>>>0).toString(16)).slice(-8)}function n(){var e,t;return i()&&(e=l(),t=!!window.WebGLRenderingContext&&!!e,d(e),t)}function a(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")}void 0===Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});function c(e,a){var o=[];return null==e?o:Array.prototype.map&&e.map===Array.prototype.map?e.map(a):(y(e,function(e,t,n){o.push(a(e,t,n))}),o)}function o(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],n=0,a=navigator.plugins.length;n<a;n++)navigator.plugins[n]&&t.push(navigator.plugins[n]);return function(e){for(var t=!1,n=0,a=e.plugins.sortPluginsFor.length;n<a;n++){var o=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(o)){t=!0;break}}return t}(e)&&(t=t.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),c(t,function(e){var t=c(e,function(e){return[e.type,e.suffixes]});return[e.name,e.description,t]})}function i(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}function l(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||null}function d(e){null!=(e=e.getExtension("WEBGL_lose_context"))&&e.loseContext()}var p=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},m=function(e,t){return[e[0]^t[0],e[1]^t[1]]},v={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},y=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t(e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t(e[o],o,e)},T=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(navigator.hardwareConcurrency||t.NOT_AVAILABLE)}},{key:"screenResolution",getData:function(e,t){e((e=[window.screen.width,window.screen.height],t.screen.detectScreenOrientation&&e.sort().reverse(),e))}},{key:"availableScreenResolution",getData:function(e,t){e((e=t,window.screen.availWidth&&window.screen.availHeight?(t=[window.screen.availHeight,window.screen.availWidth],e.screen.detectScreenOrientation&&t.sort().reverse(),t):e.NOT_AVAILABLE))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(t){try{return!!window.sessionStorage}catch(e){return t.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(t){try{return!!window.localStorage}catch(e){return t.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(t){try{return!!window.indexedDB}catch(e){return t.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e((e=t,navigator.cpuClass||e.NOT_AVAILABLE))}},{key:"platform",getData:function(e,t){e(navigator.platform||t.NOT_AVAILABLE)}},{key:"doNotTrack",getData:function(e,t){e(navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack||t.NOT_AVAILABLE)}},{key:"plugins",getData:function(e,t){var n,a;"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?t.plugins.excludeIE?e(t.EXCLUDED):e((n=t,a=[],Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?a=c(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],function(e){try{return new window.ActiveXObject(e),e}catch(e){return n.ERROR}}):a.push(n.NOT_AVAILABLE),a=navigator.plugins?a.concat(o(n)):a)):e(o(t))}},{key:"canvas",getData:function(e,t){var n,a,o,r;i()?e((n=t,a=[],(o=document.createElement("canvas")).width=2e3,o.height=200,o.style.display="inline",(r=o.getContext("2d")).rect(0,0,10,10),r.rect(2,2,6,6),a.push("canvas winding:"+(!1===r.isPointInPath(5,5,"evenodd")?"yes":"no")),r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",n.dontUseFakeFontInCanvas?r.font="11pt Arial":r.font="11pt no-real-font-123",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill("evenodd"),o.toDataURL&&a.push("canvas fp:"+o.toDataURL()),a)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){n()?e(function(){function e(e){return r.clearColor(0,0,0,1),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"}var r=l();if(!r)return null;var i=[],t=r.createBuffer(),n=(r.bindBuffer(r.ARRAY_BUFFER,t),new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])),n=(r.bufferData(r.ARRAY_BUFFER,n,r.STATIC_DRAW),t.itemSize=3,t.numItems=3,r.createProgram()),a=r.createShader(r.VERTEX_SHADER),o=(r.shaderSource(a,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),r.compileShader(a),r.createShader(r.FRAGMENT_SHADER));r.shaderSource(o,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),r.compileShader(o),r.attachShader(n,a),r.attachShader(n,o),r.linkProgram(n),r.useProgram(n),n.vertexPosAttrib=r.getAttribLocation(n,"attrVertex"),n.offsetUniform=r.getUniformLocation(n,"uniformOffset"),r.enableVertexAttribArray(n.vertexPosArray),r.vertexAttribPointer(n.vertexPosAttrib,t.itemSize,r.FLOAT,!1,0,0),r.uniform2f(n.offsetUniform,1,1),r.drawArrays(r.TRIANGLE_STRIP,0,t.numItems);try{i.push(r.canvas.toDataURL())}catch(e){}i.push("extensions:"+(r.getSupportedExtensions()||[]).join(";")),i.push("webgl aliased line width range:"+e(r.getParameter(r.ALIASED_LINE_WIDTH_RANGE))),i.push("webgl aliased point size range:"+e(r.getParameter(r.ALIASED_POINT_SIZE_RANGE))),i.push("webgl alpha bits:"+r.getParameter(r.ALPHA_BITS)),i.push("webgl antialiasing:"+(r.getContextAttributes().antialias?"yes":"no")),i.push("webgl blue bits:"+r.getParameter(r.BLUE_BITS)),i.push("webgl depth bits:"+r.getParameter(r.DEPTH_BITS)),i.push("webgl green bits:"+r.getParameter(r.GREEN_BITS)),i.push("webgl max anisotropy:"+((o=(a=r).getExtension("EXT_texture_filter_anisotropic")||a.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||a.getExtension("MOZ_EXT_texture_filter_anisotropic"))?0===(a=a.getParameter(o.MAX_TEXTURE_MAX_ANISOTROPY_EXT))?2:a:null)),i.push("webgl max combined texture image units:"+r.getParameter(r.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),i.push("webgl max cube map texture size:"+r.getParameter(r.MAX_CUBE_MAP_TEXTURE_SIZE)),i.push("webgl max fragment uniform vectors:"+r.getParameter(r.MAX_FRAGMENT_UNIFORM_VECTORS)),i.push("webgl max render buffer size:"+r.getParameter(r.MAX_RENDERBUFFER_SIZE)),i.push("webgl max texture image units:"+r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS)),i.push("webgl max texture size:"+r.getParameter(r.MAX_TEXTURE_SIZE)),i.push("webgl max varying vectors:"+r.getParameter(r.MAX_VARYING_VECTORS)),i.push("webgl max vertex attribs:"+r.getParameter(r.MAX_VERTEX_ATTRIBS)),i.push("webgl max vertex texture image units:"+r.getParameter(r.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),i.push("webgl max vertex uniform vectors:"+r.getParameter(r.MAX_VERTEX_UNIFORM_VECTORS)),i.push("webgl max viewport dims:"+e(r.getParameter(r.MAX_VIEWPORT_DIMS))),i.push("webgl red bits:"+r.getParameter(r.RED_BITS)),i.push("webgl renderer:"+r.getParameter(r.RENDERER)),i.push("webgl shading language version:"+r.getParameter(r.SHADING_LANGUAGE_VERSION)),i.push("webgl stencil bits:"+r.getParameter(r.STENCIL_BITS)),i.push("webgl vendor:"+r.getParameter(r.VENDOR)),i.push("webgl version:"+r.getParameter(r.VERSION));try{var s=r.getExtension("WEBGL_debug_renderer_info");s&&(i.push("webgl unmasked vendor:"+r.getParameter(s.UNMASKED_VENDOR_WEBGL)),i.push("webgl unmasked renderer:"+r.getParameter(s.UNMASKED_RENDERER_WEBGL)))}catch(e){}return r.getShaderPrecisionFormat&&y(["FLOAT","INT"],function(o){y(["VERTEX","FRAGMENT"],function(a){y(["HIGH","MEDIUM","LOW"],function(n){y(["precision","rangeMin","rangeMax"],function(e){var t=r.getShaderPrecisionFormat(r[a+"_SHADER"],r[n+"_"+o])[e],e=("precision"!==e&&(e="precision "+e),["webgl ",a.toLowerCase()," shader ",n.toLowerCase()," ",o.toLowerCase()," ",e,":",t].join(""));i.push(e)})})})}),d(r),i}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){n()?e(function(){try{var e=l(),t=e.getExtension("WEBGL_debug_renderer_info"),n=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);return d(e),n}catch(e){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div"),t=(e.innerHTML=" ",!(e.className="adsbox"));try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e=navigator.userAgent.toLowerCase(),t=navigator.oscpu,n=navigator.platform.toLowerCase(),a=0<=e.indexOf("windows phone")?"Windows Phone":0<=e.indexOf("windows")||0<=e.indexOf("win16")||0<=e.indexOf("win32")||0<=e.indexOf("win64")||0<=e.indexOf("win95")||0<=e.indexOf("win98")||0<=e.indexOf("winnt")||0<=e.indexOf("wow64")?"Windows":0<=e.indexOf("android")?"Android":0<=e.indexOf("linux")||0<=e.indexOf("cros")||0<=e.indexOf("x11")?"Linux":0<=e.indexOf("iphone")||0<=e.indexOf("ipad")||0<=e.indexOf("ipod")||0<=e.indexOf("crios")||0<=e.indexOf("fxios")?"iOS":0<=e.indexOf("macintosh")||0<=e.indexOf("mac_powerpc)")?"Mac":"Other";if(("ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&"Windows"!==a&&"Windows Phone"!==a&&"Android"!==a&&"iOS"!==a&&"Other"!==a&&-1===e.indexOf("cros"))return!0;if(void 0!==t){if(0<=(t=t.toLowerCase()).indexOf("win")&&"Windows"!==a&&"Windows Phone"!==a)return!0;if(0<=t.indexOf("linux")&&"Linux"!==a&&"Android"!==a)return!0;if(0<=t.indexOf("mac")&&"Mac"!==a&&"iOS"!==a)return!0;if((-1===t.indexOf("win")&&-1===t.indexOf("linux")&&-1===t.indexOf("mac"))!=("Other"===a))return!0}return 0<=n.indexOf("win")&&"Windows"!==a&&"Windows Phone"!==a||((0<=n.indexOf("linux")||0<=n.indexOf("android")||0<=n.indexOf("pike"))&&"Linux"!==a&&"Android"!==a||((0<=n.indexOf("mac")||0<=n.indexOf("ipad")||0<=n.indexOf("ipod")||0<=n.indexOf("iphone"))&&"Mac"!==a&&"iOS"!==a||!(0<=n.indexOf("arm")&&"Windows Phone"===a)&&(!(0<=n.indexOf("pike")&&0<=e.indexOf("opera mini"))&&((n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0&&n.indexOf("ipod")<0)!=("Other"===a)||void 0===navigator.plugins&&"Windows"!==a&&"Windows Phone"!==a))))}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(0<=t.indexOf("edge/")||0<=t.indexOf("iemobile/"))return!1;if(0<=t.indexOf("opera mini"))return!1;if(("Chrome"===(e=0<=t.indexOf("firefox/")?"Firefox":0<=t.indexOf("opera/")||0<=t.indexOf(" opr/")?"Opera":0<=t.indexOf("chrome/")?"Chrome":0<=t.indexOf("safari/")?0<=t.indexOf("android 1.")||0<=t.indexOf("android 2.")||0<=t.indexOf("android 3.")||0<=t.indexOf("android 4.")?"AOSP":"Safari":0<=t.indexOf("trident/")?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var a,n=eval.toString().length;if(37===n&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===n&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===n&&"Chrome"!==e&&"AOSP"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(t){try{t.toSource(),a=!0}catch(t){a=!1}}return a&&"Firefox"!==e&&"Other"!==e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){function l(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize=a,e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML=n,e}var d=["monospace","sans-serif","serif"],u=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"],n=(u=(u=(u=t.fonts.extendedJsFonts?u.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"]):u).concat(t.fonts.userDefinedFonts)).filter(function(e,t){return u.indexOf(e)===t}),"mmmmmmmmmmlli"),a="72px",t=document.getElementsByTagName("body")[0],o=document.createElement("div"),f=document.createElement("div"),r={},i={},s=function(){for(var e=[],t=0,n=d.length;t<n;t++){var a=l();a.style.fontFamily=d[t],o.appendChild(a),e.push(a)}return e}();t.appendChild(o);for(var c=0,h=d.length;c<h;c++)r[d[c]]=s[c].offsetWidth,i[d[c]]=s[c].offsetHeight;for(var g=function(){for(var e,t,n={},a=0,o=u.length;a<o;a++){for(var r=[],i=0,s=d.length;i<s;i++){c=u[a],e=d[i],t=void 0,(t=l()).style.fontFamily="'"+c+"',"+e;var c=t;f.appendChild(c),r.push(c)}n[u[a]]=r}return n}(),p=(t.appendChild(f),[]),m=0,v=u.length;m<v;m++)!function(e){for(var t=!1,n=0;n<d.length;n++)if(t=e[n].offsetWidth!==r[d[n]]||e[n].offsetHeight!==i[d[n]])return t;return t}(g[u[m]])||p.push(u[m]);t.removeChild(f),t.removeChild(o),e(p)},pauseBefore:!0},{key:"fontsFlash",getData:function(t,e){return void 0===window.swfobject?t("swf object not loaded"):window.swfobject.hasFlashPlayerVersion("9.0.0")?e.fonts.swfPath?(o=function(e){t(e)},r="___fp_swf_loaded",window[r]=function(e){o(e)},i=e.fonts.swfContainerId,(a=document.createElement("div")).setAttribute("id",n.fonts.swfContainerId),document.body.appendChild(a),void window.swfobject.embedSWF(e.fonts.swfPath,i,"1","1","9.0.0",!1,{onReady:r},{allowScriptAccess:"always",menu:"false"},{})):t("missing options.fonts.swfPath"):t("flash not installed");var n,a,o,r,i},pauseBefore:!0},{key:"audio",getData:function(n,e){var t=e.audio;if(t.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return n(e.EXCLUDED);var a=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==a)return n(e.NOT_AVAILABLE);var o=new a(1,44100,44100),r=o.createOscillator(),i=(r.type="triangle",r.frequency.setValueAtTime(1e4,o.currentTime),o.createDynamicsCompressor()),s=(y([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],function(e){void 0!==i[e[0]]&&"function"==typeof i[e[0]].setValueAtTime&&i[e[0]].setValueAtTime(e[1],o.currentTime)}),r.connect(i),i.connect(o.destination),r.start(0),o.startRendering(),setTimeout(function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),o.oncomplete=function(){},o=null,n("audioTimeout")},t.timeout));o.oncomplete=function(e){var t;try{clearTimeout(s),t=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce(function(e,t){return e+Math.abs(t)},0).toString(),r.disconnect(),i.disconnect()}catch(e){return void n(e)}n(t)}}},{key:"enumerateDevices",getData:function(t,e){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return t(e.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then(function(e){t(e.map(function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label}))}).catch(function(e){t(e)})}}];return a.get=function(a,o){var e,t,n=a=o?a||{}:(o=a,{}),r=v;if(null!=r)for(t in r)null==(e=r[t])||Object.prototype.hasOwnProperty.call(n,t)||(n[t]=e);a.components=a.extraComponents.concat(T);var i={data:[],addPreprocessedComponent:function(e,t){"function"==typeof a.preprocessor&&(t=a.preprocessor(e,t)),i.data.push({key:e,value:t})}},s=-1;!function t(e){if((s+=1)>=a.components.length)o(i.data);else{var n=a.components[s];if(a.excludes[n.key])t(!1);else{if(!e&&n.pauseBefore)return--s,setTimeout(function(){t(!0)},1);try{n.getData(function(e){i.addPreprocessedComponent(n.key,e),t(!1)},a)}catch(e){i.addPreprocessedComponent(n.key,String(e)),t(!1)}}}}(!1)},a.getPromise=function(n){return new Promise(function(e,t){a.get(n,e)})},a.getV18=function(r,i){return null==i&&(i=r,r={}),a.get(r,function(e){for(var t=[],n=0;n<e.length;n++){var a=e[n];a.value===(r.NOT_AVAILABLE||"not available")?t.push({key:a.key,value:"unknown"}):"plugins"===a.key?t.push({key:"plugins",value:c(a.value,function(e){var t=c(e[2],function(e){return e.join?e.join("~"):e}).join(",");return[e[0],e[1],t].join("::")})}):-1!==["canvas","webgl"].indexOf(a.key)&&Array.isArray(a.value)?t.push({key:a.key,value:a.value.join("~")}):-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(a.key)?a.value&&t.push({key:a.key,value:1}):a.value?t.push(a.value.join?{key:a.key,value:a.value.join(";")}:a):t.push({key:a.key,value:a.value})}var o=s(c(t,function(e){return e.value}).join("~~~"),31);i(o,t)})},a.x64hash128=s,a.VERSION="2.1.2",a},h.exports?h.exports=o():a.exports?a.exports=o():a.Fingerprint2=o(),i=r.exports,s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{userDefinedFonts:[],extendedJsFonts:!0},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},c="",l=[],setTimeout(function(){i.get(s,function(e){c=i.x64hash128(JSON.stringify(e),31),l.length&&(l.forEach(function(e){e(c)}),l=[])})},500),d=function(e){c?e(c):l.push(e)},h=function(){return f},g=["parent","top"],m=!(p={baseURL:f=u="",pixelClientWindow:"parent"}),v=[],y="",T=function(e,t,n,a){if(void 0===t&&(t={}),void 0===n&&(n="POST"),void 0===a&&(a=null),!y){if(m)return void v.push(arguments);throw new Error("Load pixel id first")}var o,r=new FormData;Object.keys(t).forEach(function(e){r.append(e,t[e])}),e=e.replace("#PIXEL_ID#",y),void 0===window.navigator.sendBeacon||"function"==typeof a?((o=new XMLHttpRequest).open(n,e),a&&(o.onload=function(){a(o)}),o.send(r)):window.navigator.sendBeacon(e,r)},t.configure=function(e){(e=void 0===e?{}:e).pixelClientWindow&&!g.includes(e.pixelClientWindow)&&(e.pixelClientWindow="parent"),Object.assign(p,e)},t.getHuman=function(t,n){void 0===t&&(t=function(){return!0}),void 0===n&&(n=function(){return!1});var a=new XMLHttpRequest;d(function(e){a.onload=t,a.onerror=n,a.open("GET",p.baseURL+"/humans/?id="+p.id+"&hash="+p.hash+"&visitor_uid="+y+"&fingerprint="+e),a.send()})},t.getManager=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=function(){return!0}),void 0===n&&(n=function(){return!1});var a=new XMLHttpRequest,t=(a.onload=t,a.onerror=n,"/feedback_button/manager/?id="+p.id+"&hash="+p.hash+"&visitor_uid="+y);null!==e&&(t+="&entity_hash="+e),a.open("GET",""+p.baseURL+t),a.send()},t.getProperties=function(e,t){void 0===e&&(e=function(){return!0}),void 0===t&&(t=function(){return!1});var n=new XMLHttpRequest;n.onload=e,n.onerror=t,n.open("GET",p.baseURL+"/forms/"+p.id+"/hash/"+p.hash+"/pixel?visitor_uid="+y),n.send()},t.getSessionUid=function(){return u?"VisitorUid_"+u:""},t.getShortSessionId=h,t.load=function(t,e){var n,d,u,f;m=!0,u=window[p.pixelClientWindow],f=!1,n=function e(t,n,a,o){var r,i,s,c,l;"AMO_PIXEL_LOADING"===o.data?(clearTimeout(d),d=setTimeout(function(){u.postMessage("IS_AMO_PIXEL_READY?",o.origin)},100)):-1<["AMO_PIXEL_NOT_READY","AMO_PIXEL_READY"].indexOf(o.data)&&!f&&(clearTimeout(d),window.removeEventListener("message",e),r=t,i=n,s=a,c=o.origin,(l=new XMLHttpRequest).onload=function(){var t;try{t=JSON.parse(l.response)}catch(e){t={}}t.visitor_uid?(r(t.visitor_uid),window[s.pixelClientWindow].postMessage("SET_AMO_PIXEL_READY",c)):i()},l.onerror=function(){i()},l.open("GET",s.baseURL+"/humans/visitor"),l.send(),f=!0)}.bind(null,function(e){y=e,v.forEach(function(e){return T.apply(void 0,e)}),v=v.slice(0,0),"function"==typeof t&&t()},function(){"function"==typeof e&&e()},p),window.addEventListener("message",n),u.postMessage("IS_AMO_PIXEL_READY?","*")},t.sendContactForHuman=function(e,t){0<(t=parseInt(t))&&n(e,{},function(e){T(p.baseURL+"/humans",{id:p.id,hash:p.hash,"params[visitor_uid]":u,"params[contact_id]":t},"POST")})},t.sendInternalMetadata=n,t.sendKeyAction=function(t){t&&d(function(e){T(p.baseURL+"/humans/visitors/"+(y||"#PIXEL_ID#")+"/key_action/completed",{id:p.id,hash:p.hash,fingerprint:e,key_action_id:t})})},t.sendTrackingLink=function(e){e&&T(p.baseURL+"/humans/visitors/"+(y||"#PIXEL_ID#")+"/follow",{id:p.id,hash:p.hash,link:e})},t.sendUserMetadata=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),T(p.baseURL+"/humans/sessions/"+u+"/metadata",Object.assign({},{id:p.id,hash:p.hash,data:JSON.stringify(e)},t))},t.setSessionId=function(e){u=e},t.setShortSessionId=function(e){f=e},Object.defineProperty(t,"__esModule",{value:!0})}),R=(S=I)&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S;t=new function(){var r=this,e="buttonscollapsed",t=-1<navigator.userAgent.indexOf("Chrome");navigator.userAgent.indexOf("Safari"),navigator.userAgent.indexOf("Android");this.callbacks={livechat:function(e){return e.preventDefault(),r.source_window&&(r.isInline?(r.socialTitleElements=r.socialTitleElements||document.querySelectorAll(".amo-button__title"),r.needHideTitles=r.isVertical||"top"===r.vPosition,r.livechatIsActive=!r.livechatIsActive,r.livechatIsActive?(r.source_window.postMessage("livechat:show","*"),e.currentTarget.style.opacity="0",r.needHideTitles&&r.socialTitleElements.forEach(function(e){e.style.display="none"})):(r.source_window.postMessage("livechat:hide","*"),e.currentTarget.style.opacity="",r.needHideTitles&&r.socialTitleElements.forEach(function(e){e.style.display=""}))):(r.collapseSocials(),r.source_window.postMessage("livechat:show","*"))),!1},vk:function(e){return R.sendInternalMetadata(r.metadata),r.openWindow(e.target.href+"?ref="+R.getSessionUid()),!1},facebook:function(e){return R.sendInternalMetadata(r.metadata),r.openWindow(e.target.href+"?ref="+R.getSessionUid()),!1},viber:function(e){return R.sendInternalMetadata(r.metadata),window.top.location=e.target.href+"&context="+R.getSessionUid(),!1},telegram:function(e){return R.sendInternalMetadata(r.metadata),e.target.href.includes("?start")||(e.target.href=e.target.href+"?start="+R.getSessionUid()),r.openWindow(e.target.href),!1},form:function(e){return e.preventDefault(),r.source_window&&r.source_window.postMessage("click_form","*"),!1},whatsapp:function(e){e.preventDefault();var t="ID: "+R.getShortSessionId();return R.sendInternalMetadata(r.metadata),r.openWindow(e.target.href+"?text="+t),!1},default:function(){return!0}},this.openWindow=function(e){window.open(e)},this.showSocials=function(){document.body.classList.remove(e)},this.collapseSocials=function(){document.body.classList.add(e)},this.handleBusMessage=function(e){var t,a=e.data,n=document.querySelector(".amo-button--livechat");switch(a&&a.method){case"button:click":if(oe(r.social_services))break;r.hasOwnProperty("source_window")||(r.source_window=e.source),a.payload&&a.payload.showSocials?(t=document.querySelector(".amo-inner-buttons-body"),r.isVertical=t&&t.classList.contains("vertical"),r.isInline=a.payload&&a.payload.isInline,r.buttonTheme=a.payload&&a.payload.buttonTheme,r.isVertical||(n&&+n.getAttribute("data-badge")?(n.style.display="none",r.source_window.postMessage("livechat:show","*")):n&&(n.style.display=null)),r.isInline&&Array.prototype.slice.call(document.querySelectorAll(".amo-button")).forEach(function(e){e.style.transition="none"}),r.showSocials()):r.collapseSocials();break;case"badge":n&&n.setAttribute("data-badge",a.payload.count);break;case"livechat:onShow":R.sendInternalMetadata(r.metadata);break;case"send_meta":R.sendUserMetadata(a.payload.metaData);break;case"send_keyaction":R.sendKeyAction(a.payload.keyaction_id);break;case"livechat:click":window.document.querySelector(".amo-button--livechat").click();break;case"set_social":var o=a.payload.data||{};r.social_services={},r.locale=o.locale,r.button=o.button,r.metadata=a.payload.data.metadata,r.vPosition=2<parseInt(a.payload.data.button.position)?"bottom":"top",r.isMobile=a.payload.data.isMobile,R.configure({id:r.button.id,hash:r.button.hash}),R.setSessionId(a.payload.data.session_uid),R.setShortSessionId(a.payload.data.session_id),o=o.social_services||{};R.load(function(){for(var e in o){var e=o[e],t=0<=["form","viber","telegram","vk","facebook","livechat","whatsapp"].indexOf(e.type)?e.type:"default",n=document.querySelectorAll(".amo-button--"+e.type+" .amo-button__link");n.length&&"function"==typeof r.callbacks[t]&&(r.social_services[e.type]=e,n[0].onclick=function(e,t,n){return r.source_window.postMessage(JSON.stringify({func:"buttonClick",service:t,link:"livechat"!==t?n.target.getAttribute("href"):""}),"*"),e(n)}.bind(null,r.callbacks[t],e.type),n[0].onmouseover=function(){document.body.classList.add("amo-button_hovered")},n[0].onmouseleave=function(){document.body.classList.remove("amo-button_hovered")})}a.payload.data.link&&R.sendTrackingLink(a.payload.data.link),a.payload.data.disable_titles&&document.body.classList.add("no-titles"),window.parent.postMessage("pixel_ready","*")},function(){window.parent.postMessage("pixel_ready","*")});break;case"setup_contact_for_human":R.sendContactForHuman(r.metadata,a.payload.contactId)}}};window.addEventListener&&window.addEventListener("message",t.handleBusMessage),document.addEventListener("DOMContentLoaded",function(){var e;/Macintosh|iPad|iPhone/.test(navigator.userAgent)||(e=document.querySelector(".amo-button--amocrm_applebm"))&&e.remove()})}();
|