2 lines
59 KiB
Plaintext
2 lines
59 KiB
Plaintext
|
|
!function(){"use strict";function n(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var e,t,r,o,i={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},u="GUEST",a="MEMBER",c=0,l=1,d=2,s=(n(e={},u,"li_gc"),n(e,a,"li_mc"),e),f=function Eo(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null,e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null,t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null,r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;for(var o in function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Eo),n=n||{},this.consentAvailable=!1,this.issuedAt=e,this.userMode=t,this.optedInConsentMap={},i)n[o]=n[o]||c,n[o]!==c&&(this.consentAvailable=!0),this.optedInConsentMap[o]=n[o]===l||n[o]===c&&r===l},p=(t=[i.ADVERTISING,i.ANALYTICS_AND_RESEARCH,i.FUNCTIONAL],r=[c,l,d,c],o=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(n,e){var i=n.match(o);if(!i)return{error:"Invalid consent body encoding",consent:new f};for(var u=parseInt(i[1],10),a={},l=0;l<t.length;l++)a[t[l]]=r[u>>2*l&3];var d=new Date(1e3*parseInt(i[2],10)),s=parseInt(i[3],10),p=c;return s>=0&&s<=3&&(p=r[s]),{error:null,consent:new f(a,d,e,p)}}}),v=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),g=function(n,e){var t=e.match(new RegExp("(?:^|; *)".concat(n,"=([^;]*)")));return t&&t.length>1?t[1]:null},h=function(n){var e={};for(var t in i)e[t]=n;return{error:null,consent:new f(e,null,null,n)}};var m=function(n,e){n&&n.length>1&&'"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1));var t,r=null;try{r=(t=n,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(t,"base64").toString("binary"):atob(t)).match(v)}catch(u){}if(!r)return{error:"Invalid consent encoding",consent:new f};var o=parseInt(r[1],10),i=r[2];return 1===o?p.parseConsentBody(i,e):{error:"Invalid encoded consent version ".concat(o),consent:new f}},w=function(n){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:document.cookie;return n||(n=g("liap",e)?g(s[a],e)?a:u:g(s[u],e)?u:a),function(n,e){var t=g(s[n],e);return t?m(t,n):g(s[u],e)||g(s[a],e)?h(d):h(l)}(n,e)},I=function(){return(new Date).getTime()},E=function(n){void 0===n&&(n="");for(var e=n.split("."),t=[],r=e.length-2;r>=0;r--)t.push(e.slice(r).join("."));return t},y=function(n,e){void 0===e&&(e=E);var t=e(n);return t.includes("linkedin.com")||t.includes("www.linkedin.com")},_=function(n,e,t){void 0===n&&(n=[]),void 0===e&&(e=undefined),void 0===t&&(t=w);for(var r=t(undefined,e).consent.optedInConsentMap,o=0,i=n;o<i.length;o++){if(!0!==r[i[o]])return!1}return!0},A=function(n,e){var t,r=null===(t=n.cookie)||void 0===t?void 0:t.match(new RegExp("(?:^|; )"+encodeURIComponent(e).replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return r?decodeURIComponent(r[1]):""},b=function(n,e,t,r){var o,i,u,a=r.days_until_expiration,c=void 0===a?1:a,l=r.path,d=void 0===l?"/":l,s=r.domain,f=void 0===s?null:s,p=(o=864e5*c,i=(new Date).getTime()+o,(u=new Date).setTime(i),u.toUTCString()),v="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t));v="".concat(v,";expires=").concat(p),f&&(v="".concat(v,";domain=").concat(f)),v="".concat(v,";path=").concat(d),n.cookie=v},S=function(n){return n.map((function(n){return"".concat(n.key,"=").concat(n.val)})).join("&")},O=function(n){try{return n.self!==n.top}catch(e){return!0}},T=function(n,e){void 0===e&&(e=O);var t=n.document;if(e(n)&&t.referrer){var r=t.createElement("a");return r.href=t.referrer,r}return n.location},N="li_fat_id",P="li_giant",C=function(n,e){return void 0===e&&(e=_),e([i.ADVERTISING],n)},R=function(n){for(var e=0,t=n.split("&");e<t.length;e++){var r=t[e].split("="),o=r[0],i=r[1];if(o===N)return decodeURIComponent(i)}return""},L=function(n){for(var e=0,t=n.split("&");e<t.length;e++){var r=t[e].split("="),o=r[0],i=r[1];if(o===P)return decodeURIComponent(i||"")}return""},x=function(n,e,t,r
|