From 677deec0c371e934d115111466b41358767c6366 Mon Sep 17 00:00:00 2001 From: turtledreams Date: Thu, 9 Nov 2023 19:54:05 +0900 Subject: [PATCH] update build for heatmaps --- asset-manifest.json | 16 ++++++++-------- index.html | 2 +- ...-manifest.72b568bf93baedbadb32c9b6fc378761.js | 16 ++++++++-------- service-worker.js | 2 +- static/js/2.0f49a905.chunk.js | 3 --- static/js/2.0f49a905.chunk.js.map | 1 - static/js/2.1cd1659b.chunk.js | 3 +++ ...nk.js.LICENSE => 2.1cd1659b.chunk.js.LICENSE} | 0 static/js/2.1cd1659b.chunk.js.map | 1 + ....5e01ced7.chunk.js => main.52245336.chunk.js} | 4 ++-- static/js/main.52245336.chunk.js.map | 1 + static/js/main.5e01ced7.chunk.js.map | 1 - 12 files changed, 25 insertions(+), 25 deletions(-) rename precache-manifest.5165d5dea5402d720e38bc7dca35ca41.js => precache-manifest.72b568bf93baedbadb32c9b6fc378761.js (84%) delete mode 100644 static/js/2.0f49a905.chunk.js delete mode 100644 static/js/2.0f49a905.chunk.js.map create mode 100644 static/js/2.1cd1659b.chunk.js rename static/js/{2.0f49a905.chunk.js.LICENSE => 2.1cd1659b.chunk.js.LICENSE} (100%) create mode 100644 static/js/2.1cd1659b.chunk.js.map rename static/js/{main.5e01ced7.chunk.js => main.52245336.chunk.js} (72%) create mode 100644 static/js/main.52245336.chunk.js.map delete mode 100644 static/js/main.5e01ced7.chunk.js.map diff --git a/asset-manifest.json b/asset-manifest.json index e4a0c14..1b24d14 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,19 +1,19 @@ { "files": { "main.css": "https://countly.github.io/countly-banking-demo/static/css/main.b8a3c6d9.chunk.css", - "main.js": "https://countly.github.io/countly-banking-demo/static/js/main.5e01ced7.chunk.js", - "main.js.map": "https://countly.github.io/countly-banking-demo/static/js/main.5e01ced7.chunk.js.map", + "main.js": "https://countly.github.io/countly-banking-demo/static/js/main.52245336.chunk.js", + "main.js.map": "https://countly.github.io/countly-banking-demo/static/js/main.52245336.chunk.js.map", "runtime-main.js": "https://countly.github.io/countly-banking-demo/static/js/runtime-main.e0879aaf.js", "runtime-main.js.map": "https://countly.github.io/countly-banking-demo/static/js/runtime-main.e0879aaf.js.map", "static/css/2.a6c20184.chunk.css": "https://countly.github.io/countly-banking-demo/static/css/2.a6c20184.chunk.css", - "static/js/2.0f49a905.chunk.js": "https://countly.github.io/countly-banking-demo/static/js/2.0f49a905.chunk.js", - "static/js/2.0f49a905.chunk.js.map": "https://countly.github.io/countly-banking-demo/static/js/2.0f49a905.chunk.js.map", + "static/js/2.1cd1659b.chunk.js": "https://countly.github.io/countly-banking-demo/static/js/2.1cd1659b.chunk.js", + "static/js/2.1cd1659b.chunk.js.map": "https://countly.github.io/countly-banking-demo/static/js/2.1cd1659b.chunk.js.map", "index.html": "https://countly.github.io/countly-banking-demo/index.html", - "precache-manifest.5165d5dea5402d720e38bc7dca35ca41.js": "https://countly.github.io/countly-banking-demo/precache-manifest.5165d5dea5402d720e38bc7dca35ca41.js", + "precache-manifest.72b568bf93baedbadb32c9b6fc378761.js": "https://countly.github.io/countly-banking-demo/precache-manifest.72b568bf93baedbadb32c9b6fc378761.js", "service-worker.js": "https://countly.github.io/countly-banking-demo/service-worker.js", "static/css/2.a6c20184.chunk.css.map": "https://countly.github.io/countly-banking-demo/static/css/2.a6c20184.chunk.css.map", "static/css/main.b8a3c6d9.chunk.css.map": "https://countly.github.io/countly-banking-demo/static/css/main.b8a3c6d9.chunk.css.map", - "static/js/2.0f49a905.chunk.js.LICENSE": "https://countly.github.io/countly-banking-demo/static/js/2.0f49a905.chunk.js.LICENSE", + "static/js/2.1cd1659b.chunk.js.LICENSE": "https://countly.github.io/countly-banking-demo/static/js/2.1cd1659b.chunk.js.LICENSE", "static/media/account.svg": "https://countly.github.io/countly-banking-demo/static/media/account.4c2407bb.svg", "static/media/countly-overview.png": "https://countly.github.io/countly-banking-demo/static/media/countly-overview.15e4ed93.png", "static/media/countly.png": "https://countly.github.io/countly-banking-demo/static/media/countly.7cddf229.png", @@ -24,8 +24,8 @@ "entrypoints": [ "static/js/runtime-main.e0879aaf.js", "static/css/2.a6c20184.chunk.css", - "static/js/2.0f49a905.chunk.js", + "static/js/2.1cd1659b.chunk.js", "static/css/main.b8a3c6d9.chunk.css", - "static/js/main.5e01ced7.chunk.js" + "static/js/main.52245336.chunk.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index f7fdafe..45f1f2f 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Countly Bank
\ No newline at end of file +Countly Bank
\ No newline at end of file diff --git a/precache-manifest.5165d5dea5402d720e38bc7dca35ca41.js b/precache-manifest.72b568bf93baedbadb32c9b6fc378761.js similarity index 84% rename from precache-manifest.5165d5dea5402d720e38bc7dca35ca41.js rename to precache-manifest.72b568bf93baedbadb32c9b6fc378761.js index 5a2d7e5..1db7779 100644 --- a/precache-manifest.5165d5dea5402d720e38bc7dca35ca41.js +++ b/precache-manifest.72b568bf93baedbadb32c9b6fc378761.js @@ -1,27 +1,27 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ { - "revision": "caf48719769ac7e334c535cb061a2fae", + "revision": "3c4a3cd09f6e27067f8e3a549d223507", "url": "https://countly.github.io/countly-banking-demo/index.html" }, { - "revision": "d92516a4094d21b74471", + "revision": "97e3933cb8060301ad26", "url": "https://countly.github.io/countly-banking-demo/static/css/2.a6c20184.chunk.css" }, { - "revision": "04c90349c8f373315cf4", + "revision": "5c5e35fdaf8572e50238", "url": "https://countly.github.io/countly-banking-demo/static/css/main.b8a3c6d9.chunk.css" }, { - "revision": "d92516a4094d21b74471", - "url": "https://countly.github.io/countly-banking-demo/static/js/2.0f49a905.chunk.js" + "revision": "97e3933cb8060301ad26", + "url": "https://countly.github.io/countly-banking-demo/static/js/2.1cd1659b.chunk.js" }, { "revision": "fd64d766fb7e6d1a18e038d229e55314", - "url": "https://countly.github.io/countly-banking-demo/static/js/2.0f49a905.chunk.js.LICENSE" + "url": "https://countly.github.io/countly-banking-demo/static/js/2.1cd1659b.chunk.js.LICENSE" }, { - "revision": "04c90349c8f373315cf4", - "url": "https://countly.github.io/countly-banking-demo/static/js/main.5e01ced7.chunk.js" + "revision": "5c5e35fdaf8572e50238", + "url": "https://countly.github.io/countly-banking-demo/static/js/main.52245336.chunk.js" }, { "revision": "446a19cf7c185070f733", diff --git a/service-worker.js b/service-worker.js index e5caac3..4d6129a 100644 --- a/service-worker.js +++ b/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "https://countly.github.io/countly-banking-demo/precache-manifest.5165d5dea5402d720e38bc7dca35ca41.js" + "https://countly.github.io/countly-banking-demo/precache-manifest.72b568bf93baedbadb32c9b6fc378761.js" ); self.addEventListener('message', (event) => { diff --git a/static/js/2.0f49a905.chunk.js b/static/js/2.0f49a905.chunk.js deleted file mode 100644 index 34e4016..0000000 --- a/static/js/2.0f49a905.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 2.0f49a905.chunk.js.LICENSE */ -(this.webpackJsonpbankingdemo=this.webpackJsonpbankingdemo||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(142)},function(e,t,n){e.exports=n(147)()},function(e,t,n){var i,o;o="undefined"!==typeof window?window:this,void 0===(i=function(){return function(e){if("undefined"!==typeof window){var t="sessions",n="events",i="views",o="scrolls",r="clicks",a="forms",s="crashes",u="attribution",l="users",c="star-rating",f="location",p="apm",d="feedback",h="remote-config";(e=e||{}).features=[t,n,i,o,r,a,s,u,l,c,f,p,d,h];var m={NPS:"[CLY]_nps",SURVEY:"[CLY]_survey",STAR_RATING:"[CLY]_star_rating",VIEW:"[CLY]_view",ORIENTATION:"[CLY]_orientation",ACTION:"[CLY]_action"},v=Object.values(m),g="[ERROR] ",y="[WARNING] ",b="[INFO] ",_="[DEBUG] ",w="[VERBOSE] ",x=0,E=1,k=2,O=3,S=500,T=1e3,P=60,C=20,L=60,M=100,j=30,N=128,A=256,R=30,D=100,I=30,z=200;e.q=e.q||[],e.onload=e.onload||[];var B="javascript_native_web",F=/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;e.CountlyClass=function(U){var Y,fe=this,ve=!e.i,ge=!1,ye="/i",be="/o/sdk",_e=J("interval",U,S),we=J("queue_size",U,T),xe=[],Ee=[],ke={},Oe=[],Se={},Te=J("ignore_referrers",U,[]),Pe=null,Ce=!0,Le=0,Me=null,je=0,Ne=0,Ae=0,Re=J("fail_timeout",U,P),De=J("inactivity_time",U,C),Ie=0,ze=J("session_update",U,L),Be=J("max_events",U,M),Fe=J("max_logs",U,null),Ue=J("use_session_cookie",U,!0),We=J("session_cookie_timeout",U,j),Ve=!0,He=!1,Ze=J("offline_mode",U,!1),Ke={},qe=!0,Ye=G(),Ge=!0,Xe=null,Je=E,Qe=!1,$e=0,et=!1,tt=null,nt=null;try{localStorage.setItem("cly_testLocal",!0),localStorage.removeItem("cly_testLocal")}catch(At){Et(g,"Local storage test failed, Halting local storage support: "+At),Ge=!1}for(var it,ot={},rt=0;rt0)for(var n=0;nwindow.innerHeight?"landscape":"portrait")}})},this.report_conversion=function(e,t){Et(y,"report_conversion, Deprecated function call! Use 'recordDirectAttribution' in place of this call. Call will be redirected now!"),this.recordDirectAttribution(e,t)},this.recordDirectAttribution=function(e,t){Et(b,"recordDirectAttribution, Recording the attribution for campaign ID: ["+e+"] and the user ID: ["+t+"]"),this.check_consent(u)&&(e=e||Mt("cly_cmp_id")||"cly_organic",yt((t=t||Mt("cly_cmp_uid"))?{campaign_id:e,campaign_user:t}:{campaign_id:e}))},this.user_details=function(e){Et(b,"user_details, Trying to add user details: ",e),this.check_consent(l)&&(pt(),Et(b,"user_details, flushed the event queue"),e.name=ie(e.name,fe.maxValueSize,"user_details",Et),e.username=ie(e.username,fe.maxValueSize,"user_details",Et),e.email=ie(e.email,fe.maxValueSize,"user_details",Et),e.organization=ie(e.organization,fe.maxValueSize,"user_details",Et),e.phone=ie(e.phone,fe.maxValueSize,"user_details",Et),e.picture=ie(e.picture,4096,"user_details",Et),e.gender=ie(e.gender,fe.maxValueSize,"user_details",Et),e.byear=ie(e.byear,fe.maxValueSize,"user_details",Et),e.custom=ne(e.custom,fe.maxKeyLength,fe.maxValueSize,fe.maxSegmentationValues,"user_details",Et),yt({user_details:JSON.stringify(te(e,["name","username","email","organization","phone","picture","gender","byear","custom"]))}))};var ut={},lt=function(e,t,n){fe.check_consent(l)&&(ut[e]||(ut[e]={}),"$push"===n||"$pull"===n||"$addToSet"===n?(ut[e][n]||(ut[e][n]=[]),ut[e][n].push(t)):ut[e][n]=t)};function ct(e,n,i,o,r){Et(b,"fetch_remote_config_explicit, Fetching sequence initiated");var a,s={method:"rc"};e&&(s.keys=JSON.stringify(e)),n&&(s.omit_keys=JSON.stringify(n)),"legacy"===o&&(s.method="fetch_remote_config"),0===i&&(s.oi=0),1===i&&(s.oi=1),"function"===typeof r&&(a=r),fe.check_consent(t)&&(s.metrics=JSON.stringify(xt())),fe.check_consent(h)?(gt(s),kt("fetch_remote_config_explicit",fe.url+be,s,(function(e,t,n){if(e)Et(g,"fetch_remote_config_explicit, An error occurred: "+e);else{try{var i=JSON.parse(n);if(s.keys||s.omit_keys)for(var o in i)ke[o]=i[o];else ke=i;jt("cly_remote_configs",ke)}catch(r){Et(g,"fetch_remote_config_explicit, Had an issue while parsing the response: "+r)}a&&(Et(b,"fetch_remote_config_explicit, Callback function is provided"),a(e,ke))}}),!0)):(Et(g,"fetch_remote_config_explicit, Remote config requires explicit consent"),a&&a(new Error("Remote config requires explicit consent"),ke))}function ft(){fe.ignore_prefetch&&"undefined"!==typeof document.visibilityState&&"prerender"===document.visibilityState&&(fe.ignore_visitor=!0),fe.ignore_bots&&ae()&&(fe.ignore_visitor=!0)}function pt(){Ee.length>0&&(Et(_,"Flushing events"),yt({events:JSON.stringify(Ee)}),jt("cly_event",Ee=[]))}function dt(e,t){if(document.getElementById("countly-feedback-sticker-"+e._id))Et(g,"Widget with same ID exists");else try{var n=document.createElement("div");n.className="countly-iframe-wrapper",n.id="countly-iframe-wrapper-"+e._id;var i=document.createElement("span");i.className="countly-feedback-close-icon",i.id="countly-feedback-close-icon-"+e._id,i.innerText="x";var o=document.createElement("iframe");if(o.name="countly-feedback-iframe",o.id="countly-feedback-iframe",o.src=fe.url+"/feedback?widget_id="+e._id+"&app_key="+fe.app_key+"&device_id="+fe.device_id+"&sdk_version=23.02.1",document.body.appendChild(n),n.appendChild(i),n.appendChild(o),V(document.getElementById("countly-feedback-close-icon-"+e._id),"click",(function(){document.getElementById("countly-iframe-wrapper-"+e._id).style.display="none",document.getElementById("cfbg").style.display="none"})),t){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.id="feedback-sticker-svg",r.setAttribute("aria-hidden","true"),r.setAttribute("data-prefix","far"),r.setAttribute("data-icon","grin"),r.setAttribute("class","svg-inline--fa fa-grin fa-w-16"),r.setAttribute("role","img"),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("viewBox","0 0 496 512");var a=document.createElementNS("http://www.w3.org/2000/svg","path");a.id="smileyPathInStickerSvg",a.setAttribute("fill","white"),a.setAttribute("d","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm105.6-151.4c-25.9 8.3-64.4 13.1-105.6 13.1s-79.6-4.8-105.6-13.1c-9.9-3.1-19.4 5.4-17.7 15.3 7.9 47.1 71.3 80 123.3 80s115.3-32.9 123.3-80c1.6-9.8-7.7-18.4-17.7-15.3zM168 240c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z");var s=document.createElement("span");s.innerText=e.trigger_button_text;var u=document.createElement("div");u.style.color=e.trigger_font_color.length<7?"#"+e.trigger_font_color:e.trigger_font_color,u.style.backgroundColor=e.trigger_bg_color.length<7?"#"+e.trigger_bg_color:e.trigger_bg_color,u.className="countly-feedback-sticker "+e.trigger_position+"-"+e.trigger_size,u.id="countly-feedback-sticker-"+e._id,r.appendChild(a),u.appendChild(r),u.appendChild(s),document.body.appendChild(u);var l=document.getElementById("smileyPathInStickerSvg");l&&(l.style.fill=e.trigger_font_color.length<7?"#"+e.trigger_font_color:e.trigger_font_color),V(document.getElementById("countly-feedback-sticker-"+e._id),"click",(function(){document.getElementById("countly-iframe-wrapper-"+e._id).style.display="block",document.getElementById("cfbg").style.display="block"}))}else document.getElementById("countly-iframe-wrapper-"+e._id).style.display="block",document.getElementById("cfbg").style.display="block"}catch(At){Et(g,"Somethings went wrong while element injecting process: "+At)}}function ht(){var e;if("undefined"!==typeof fe.onload&&fe.onload.length>0){for(e=0;ewe&&xe.shift(),xe.push(e),jt("cly_queue",xe,!0)):Et(g,"app_key or device_id is missing ",fe.app_key,fe.device_id)}function bt(){if(ht(),fe.ignore_visitor)return He=!1,void Et(y,"User opt_out, no heartbeat");He=!0;var t=0;if(ve&&"undefined"!==typeof e.q&&e.q.length>0){var n,i=e.q;for(e.q=[],t=0;t0){var o=fe,r=0;if(e.i[n[r]]&&(o=e.i[n[r]],r++),"function"===typeof o[n[r]])o[n[r]].apply(o,n.slice(r+1));else if(0===n[r].indexOf("userData.")){var a=n[r].replace("userData.","");"function"===typeof o.userData[a]&&o.userData[a].apply(o,n.slice(r+1))}else"function"===typeof e[n[r]]&&e[n[r]].apply(e,n.slice(r+1))}}if(ge&&Ce&&qe){var s=G();s-Y>ze&&(fe.session_duration(s-Y),Y=s)}if(Ee.length>0&&!fe.test_mode_eq){if(Ee.length<=Be)yt({events:JSON.stringify(Ee)}),Ee=[];else{var u=Ee.splice(0,Be);yt({events:JSON.stringify(u)})}jt("cly_event",Ee)}if(!Ze&&xe.length>0&&Ve&&G()>Ae){Ve=!1;var l=xe[0];Et(_,"Processing request",l),jt("cly_queue",xe,!0),fe.test_mode||kt("send_request_queue",fe.url+ye,l,(function(e,t){Et(_,"Request Finished",t,e),e?(Ae=G()+Re,Et(g,"Request error: ",e)):xe.shift(),jt("cly_queue",xe,!0),Ve=!0}),!1)}setTimeout(bt,_e)}function _t(){var e=Mt("cly_id");return e?(Je=Mt("cly_id_type"),e):q()}function wt(){return fe.metrics._ua||oe()}function xt(){var e=JSON.parse(JSON.stringify(fe.metrics||{}));if(e._app_version=e._app_version||fe.app_version,e._ua=e._ua||oe(),screen.width){var t=screen.width?parseInt(screen.width):0,n=screen.height?parseInt(screen.height):0;if(0!==t&&0!==n){if(navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)&&window.devicePixelRatio)t=Math.round(t*window.devicePixelRatio),n=Math.round(n*window.devicePixelRatio);else if(90===Math.abs(window.orientation)){var i=t;t=n,n=i}e._resolution=e._resolution||t+"x"+n}}window.devicePixelRatio&&(e._density=e._density||window.devicePixelRatio);var o=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage;if("undefined"!==typeof o&&(e._locale=e._locale||o),"undefined"!==typeof document.referrer&&document.referrer.length){var r=F.exec(document.referrer);if(r&&r[11]&&r[11]!==window.location.hostname){var a=!1;if(Te&&Te.length)for(var s=0;s=2e3)&&(s="POST"),"GET"===s?r.open("GET",t+"?"+a,!0):(r.open("POST",t,!0),r.setRequestHeader("Content-type","application/x-www-form-urlencoded")),fe.headers)r.setRequestHeader(u,fe.headers[u]);r.onreadystatechange=function(){4===this.readyState&&(Et(_,e+" HTTP request completed ["+this.status+"]["+this.responseText+"]"),(o?St(this.status,this.responseText):Ot(this.status,this.responseText))?"function"===typeof i&&i(!1,n,this.responseText):(Et(g,e+" Failed Server XML HTTP request, ",this.status),"function"===typeof i&&i(!0,n)))},"GET"===s?r.send():r.send(a)}catch(At){Et(g,e+" Failed XML HTTP request: "+At),"function"===typeof i&&i(!0,n)}}function Ot(e,t){if(!(e>=200&&e<300))return Et(g,"Http response status code is not within the expected range:["+e+"]"),!1;try{var n=JSON.parse(t);return"[object Object]"!==Object.prototype.toString.call(n)?(Et(g,"Http response is not JSON Object"),!1):!!n.result}catch(At){return Et(g,"Http response is not JSON: "+At),!1}}function St(e,t){if(!(e>=200&&e<300))return Et(g,"Http response status code is not within the expected range: "+e),!1;try{var n=JSON.parse(t);return!("[object Object]"!==Object.prototype.toString.call(n)&&!Array.isArray(n))||(Et(g,"Http response is not JSON Object nor JSON Array"),!1)}catch(At){return Et(g,"Http response is not JSON: "+At),!1}}function Tt(){$e=Math.max($e,window.scrollY,document.body.scrollTop,document.documentElement.scrollTop)}function Pt(){if(Qe){Qe=!1;var e=ue(),t=le(),n=ce();if(fe.check_consent(o)){var i={type:"scroll",y:$e+n,width:t,height:e,view:fe.getViewUrl()};i=ne(i,fe.maxKeyLength,fe.maxValueSize,fe.maxSegmentationValues,"processScrollView",Et),fe.track_domains&&(i.domain=window.location.hostname),st({key:m.ACTION,segmentation:i})}}}function Ct(e){jt("cly_token",e)}function Lt(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="; expires="+i.toGMTString();document.cookie=e+"="+t+o+"; path=/"}function Mt(e,t,n){var i;if("none"!==fe.storage)return n||(e=fe.app_key+"/"+e,fe.namespace&&(e=ee(fe.namespace)+"/"+e)),void 0===t&&(t=Ge),t?i=localStorage.getItem(e):"localstorage"!==fe.storage&&(i=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0,o=n.length;i=fe.maxBreadcrumbCount;)Oe.shift(),Et(y,"add_log, Reached maximum crashLogs size. Will erase the oldest one.");Oe.push(e)}},this.fetch_remote_config=function(e,t,n){var i=null,o=null,r=null;if(e&&(n||"function"!==typeof e?Array.isArray(e)&&(i=e):r=e),t&&(n||"function"!==typeof t?Array.isArray(t)&&(o=t):r=t),r||"function"!==typeof n||(r=n),this.useExplicitRcApi)return Et(b,"fetch_remote_config, Fetching remote config"),void ct(i,o,this.rcAutoOptinAb?1:0,null,r);Et(y,"fetch_remote_config, Fetching remote config, with legacy API"),ct(i,o,null,"legacy",r)},this.enrollUserToAb=function(e){if(Et(b,"enrollUserToAb, Providing AB test keys to opt in for"),e&&Array.isArray(e)&&0!==e.length){var t={method:"ab",keys:JSON.stringify(e)};gt(t),kt("enrollUserToAb",this.url+be,t,(function(e,t,n){if(e)Et(g,"enrollUserToAb, An error occurred: "+e);else try{var i=JSON.parse(n);Et(_,"enrollUserToAb, Parsed the response's result: ["+i.result+"]")}catch(o){Et(g,"enrollUserToAb, Had an issue while parsing the response: "+o)}}),!0)}else Et(g,"enrollUserToAb, No keys provided")},this.get_remote_config=function(e){return Et(b,"get_remote_config, Getting remote config from storage"),"undefined"!==typeof e?ke[e]:ke},this.stop_time=function(){Et(b,"stop_time, Stopping tracking duration"),qe&&(qe=!1,Le=G()-Y,Ne=G()-je)},this.start_time=function(){Et(b,"start_time, Starting tracking duration"),qe||(qe=!0,Y=G()-Le,je=G()-Ne,Ne=0,vt())},this.track_sessions=function(){Et(b,"track_session, Starting tracking user session"),this.begin_session(),this.start_time(),V(window,"beforeunload",(function(){pt(),fe.end_session()}));var e="hidden";function t(){document[e]||!document.hasFocus()?fe.stop_time():fe.start_time()}function n(){Ie>=De&&fe.start_time(),Ie=0}V(window,"focus",t),V(window,"blur",t),V(window,"pageshow",t),V(window,"pagehide",t),"onfocusin"in document&&(V(window,"focusin",t),V(window,"focusout",t)),e in document?document.addEventListener("visibilitychange",t):"mozHidden"in document?(e="mozHidden",document.addEventListener("mozvisibilitychange",t)):"webkitHidden"in document?(e="webkitHidden",document.addEventListener("webkitvisibilitychange",t)):"msHidden"in document&&(e="msHidden",document.addEventListener("msvisibilitychange",t)),V(window,"mousemove",n),V(window,"click",n),V(window,"keydown",n),V(window,"scroll",n),setInterval((function(){++Ie>=De&&fe.stop_time()}),6e4)},this.track_pageview=function(e,t,n){if(Et(b,"track_pageview, Tracking page views"),Et(w,"track_pageview, last view is:["+Me+"], current view ID is:["+tt+"], previous view ID is:["+nt+"]"),Me&&et&&(Et(_,"track_pageview, Scroll registry triggered"),Pt(),Qe=!0,$e=0),mt(),nt=tt,tt=K(),(e=ie(e,fe.maxKeyLength,"track_pageview",Et))&&Array.isArray(e)&&(t=e,e=null),e||(e=this.getViewName()),void 0!==e&&""!==e)if(null!==e){if(t&&t.length)for(var o=0;o