DijiHax.pytorch / GoogleTagManager.min.js.download
dijihax's picture
Upload 25 files
6d68c3f verified
var GoogleTagManager_RS=function(e){"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function n(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n(a.key),a)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c="GTM",f="Google Tag Manager";s({},f,"GoogleTagManager"),s(s(s(s(s({},c,c),"Google Tag Manager",c),"google tag manager",c),"googletag manager",c),"googletagmanager",c);var g={LOG:{value:0,method:console.log},INFO:{value:1,method:console.info},DEBUG:{value:2,method:console.debug},WARN:{value:3,method:console.warn},ERROR:{value:4,method:console.error}},v=function(){function e(t,r){a(this,e),this.level=+r||g.ERROR.value,this.scope=t||""}return i(e,[{key:"setLogLevel",value:function(e){if(e&&"string"==typeof e){var t=e.toUpperCase();this.level=g[t]?g[t].value:this.level}}},{key:"setScope",value:function(e){this.scope=e||this.scope}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.logBase(t,g.LOG.value)}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.logBase(t,g.INFO.value)}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.logBase(t,g.DEBUG.value)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.logBase(t,g.WARN.value)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.logBase(t,g.ERROR.value)}},{key:"logBase",value:function(e,t){if(this.level<=t){var r=Object.values(g).find((function(e){return e.value===t}));r.method.apply(r,l(this.getLogData(e)))}}},{key:"getLogData",value:function(e){if(Array.isArray(e)&&e.length>0){var t="%c RS SDK";this.scope&&(t="".concat(t," - ").concat(this.scope));var r=e[0].trim();t="".concat(t," %c ").concat(r);var n=[];return n.push(t),n.push("font-weight: bold; background: black; color: white;"),n.push("font-weight: normal;"),n.push.apply(n,l(e.slice(1))),n}return e}}]),e}();var y=new v(f),p=function(){function e(t,r,n){a(this,e),r.logLevel&&y.setLogLevel(r.logLevel),this.analytics=r,this.containerID=t.containerID,this.name=c,this.serverUrl=t.serverUrl;var o=null!=n?n:{};this.shouldApplyDeviceModeTransformation=o.shouldApplyDeviceModeTransformation,this.propagateEventsUntransformedOnError=o.propagateEventsUntransformedOnError,this.destinationId=o.destinationId}return i(e,[{key:"init",value:function(){var e,t;e=this.containerID,t=this.serverUrl,window.finalUrl=t||"https://www.googletagmanager.com",function(e,t,r,n,a){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var o=t.getElementsByTagName(r)[0],i=t.createElement(r);i.setAttribute("data-loader","RS_JS_SDK"),i.async=!0,i.src="".concat(window.finalUrl,"/gtm.js?id=").concat(a).concat(""),o.parentNode.insertBefore(i,o)}(window,document,"script","dataLayer",e)}},{key:"isLoaded",value:function(){return!(!window.dataLayer||Array.prototype.push===window.dataLayer.push)}},{key:"sendToGTMDatalayer",value:function(e){window.dataLayer.push(e)}},{key:"isReady",value:function(){return this.isLoaded()}},{key:"identify",value:function(e){var t={traits:e.message.context.traits};this.sendToGTMDatalayer(t)}},{key:"track",value:function(e){var t=e.message,n=r({event:t.event,userId:t.userId,anonymousId:t.anonymousId,traits:t.context.traits},t.properties);this.sendToGTMDatalayer(n)}},{key:"page",value:function(e){var t,n=e.message,a=n.name,o=n.properties?n.properties.category:void 0;a&&(t="Viewed ".concat(a," page")),o&&a&&(t="Viewed ".concat(o," ").concat(a," page")),t||(t="Viewed a Page");var i=r({event:t,userId:n.userId,anonymousId:n.anonymousId,traits:n.context.traits},n.properties);this.sendToGTMDatalayer(i)}}]),e}();return e.GoogleTagManager=p,e}({});
//# sourceMappingURL=GoogleTagManager.min.js.map