PageSourceSearch

https://webstatic.chargebee.com/assets/web/20260924074434/scripts/vwo-loader.js

js chargebee.com collected 2026-09-24 15:15:14 UTC 8,441 bytes, 257 lines download raw bytes

1(function () {
2  function initVWO() {
3    var cbEnvironmentVWO = document.domain;
4    if (
5      cbEnvironmentVWO === "localhost" ||
6      cbEnvironmentVWO === "www.devcb.in" ||
7      cbEnvironmentVWO === "www.devstory.in"
8    ) {
9      console.log("VWO script disabled for:", cbEnvironmentVWO);
10      return;
11    }
12
13    if (document.URL.indexOf("__vwo_disable__") > -1 || window._vwo_code) {
14      return;
15    }
16
17    var w = window,
18      d = document;
19    var account_id = 21063,
20      version = 2.2,
21      settings_tolerance = 2000,
22      hide_element = "",
23      background_color = "white",
24      hide_element_style =
25        "opacity:0 !important;filter:alpha(opacity=0) !important;background:" +
26        background_color +
27        " !important;transition:none !important;",
28      f = !1,
29      v = d.querySelector("#vwoCode"),
30      cc = {};
31
32    try {
33      var e = JSON.parse(localStorage.getItem("_vwo_" + account_id + "_config"));
34      cc = e && "object" == typeof e ? e : {};
35    } catch (e) {}
36
37    function r(t) {
38      try {
39        return decodeURIComponent(t);
40      } catch (e) {
41        return t;
42      }
43    }
44
45    var s = (function () {
46      var e = {
47          combination: [],
48          combinationChoose: [],
49          split: [],
50          exclude: [],
51          uuid: null,
52          consent: null,
53          optOut: null,
54        },
55        t = d.cookie || "";
56      if (!t) return e;
57      for (
58        var n,
59          i,
60          o =
61            /(?:^|;\s*)(?:(_vis_opt_exp_(\d+)_combi=([^;]*))|(_vis_opt_exp_(\d+)_combi_choose=([^;]*))|(_vis_opt_exp_(\d+)_split=([^:;]*))|(_vis_opt_exp_(\d+)_exclude=[^;]*)|(_vis_opt_out=([^;]*))|(_vwo_global_opt_out=[^;]*)|(_vwo_uuid=([^;]*))|(_vwo_consent=([^;]*)))/g;
62        null !== (n = o.exec(t));
63
64      )
65        try {
66          n[1]
67            ? e.combination.push({ id: n[2], value: r(n[3]) })
68            : n[4]
69              ? e.combinationChoose.push({ id: n[5], value: r(n[6]) })
70              : n[7]
71                ? e.split.push({ id: n[8], value: r(n[9]) })
72                : n[10]
73                  ? e.exclude.push({ id: n[11] })
74                  : n[12]
75                    ? (e.optOut = r(n[13]))
76                    : n[14]
77                      ? (e.optOut = !0)
78                      : n[15]
79                        ? (e.uuid = r(n[16]))
80                        : n[17] && ((i = r(n[18])), (e.consent = i && 3 <= i.length ? i.substring(0, 3) : null));
81        } catch (e) {}
82      return e;
83    })();
84
85    function i() {
86      var e = (function () {
87          if (w.VWO && Array.isArray(w.VWO))
88            for (var e = 0; e < w.VWO.length; e++) {
89              var t = w.VWO[e];
90              if (Array.isArray(t) && ("setVisitorId" === t[0] || "setSessionId" === t[0])) return !0;
91            }
92          return !1;
93        })(),
94        t =
95          "a=" +
96          account_id +
97          "&u=" +
98          encodeURIComponent(w._vis_opt_url || d.URL) +
99          "&vn=" +
100          version +
101          ("undefined" != typeof platform ? "&p=" + platform : "") +
102          "&st=" +
103          w.performance.now();
104      e ||
105        ((n = (function () {
106          var e,
107            t = [],
108            n = {},
109            i = (w.VWO && w.VWO.appliedCampaigns) || {};
110          for (e in i) {
111            var o = i[e] && i[e].v;
112            o && (t.push(e + "-" + o + "-1"), (n[e] = !0));
113          }
114          if (s && s.combination)
115            for (var r = 0; r < s.combination.length; r++) {
116              var a = s.combination[r];
117              n[a.id] || t.push(a.id + "-" + a.value);
118            }
119          return t.join("|");
120        })()) && (t += "&c=" + n),
121        (n = (function () {
122          var e = [],
123            t = {};
124          if (s && s.combinationChoose)
125            for (var n = 0; n < s.combinationChoose.length; n++) {
126              var i = s.combinationChoose[n];
127              (e.push(i.id + "-" + i.value), (t[i.id] = !0));
128            }
129          if (s && s.split)
130            for (var o = 0; o < s.split.length; o++) t[(i = s.split[o]).id] || e.push(i.id + "-" + i.value);
131          return e.join("|");
132        })()) && (t += "&cc=" + n),
133        (n = (function () {
134          var e = {},
135            t = [];
136          if (w.VWO && Array.isArray(w.VWO))
137            for (var n = 0; n < w.VWO.length; n++) {
138              var i = w.VWO[n];
139              if (Array.isArray(i) && "setVariation" === i[0] && i[1] && Array.isArray(i[1]))
140                for (var o = 0; o < i[1].length; o++) {
141                  var r,
142                    a = i[1][o];
143                  a && "object" == typeof a && ((r = a.e), (a = a.v), r && a && (e[r] = a));
144                }
145            }
146          for (r in e) t.push(r + "-" + e[r]);
147          return t.join("|");
148        })()) && (t += "&sv=" + n));
149      s && s.optOut && (t += "&o=" + s.optOut);
150      var n = (function () {
151        var e = [],
152          t = {};
153        if (s && s.exclude)
154          for (var n = 0; n < s.exclude.length; n++) {
155            var i = s.exclude[n];
156            t[i.id] || (e.push(i.id), (t[i.id] = !0));
157          }
158        return e.join("|");
159      })();
160      return (
161        n && (t += "&e=" + n),
162        s && s.uuid && (t += "&id=" + s.uuid),
163        s && s.consent && (t += "&consent=" + s.consent),
164        w.name && -1 < w.name.indexOf("_vis_preview") && (t += "&pM=true"),
165        w.VWO && w.VWO.ed && (t += "&ed=" + w.VWO.ed),
166        t
167      );
168    }
169
170    var code = {
171      nonce: v && v.nonce,
172      library_tolerance: function () {
173        return "undefined" != typeof library_tolerance ? library_tolerance : void 0;
174      },
175      settings_tolerance: function () {
176        return cc.sT || settings_tolerance;
177      },
178      hide_element_style: function () {
179        return "{" + (cc.hES || hide_element_style) + "}";
180      },
181      hide_element: function () {
182        return performance.getEntriesByName("first-contentful-paint")[0]
183          ? ""
184          : "string" == typeof cc.hE
185            ? cc.hE
186            : hide_element;
187      },
188      getVersion: function () {
189        return version;
190      },
191      finish: function (e) {
192        var t;
193        f ||
194          ((f = !0),
195          (t = d.getElementById("_vis_opt_path_hides")) && t.parentNode.removeChild(t),
196          e && (new Image().src = "https://dev.visualwebsiteoptimizer.com/ee.gif?a=" + account_id + e));
197      },
198      finished: function () {
199        return f;
200      },
201      addScript: function (e) {
202        var t = d.createElement("script");
203        t.type = "text/javascript";
204        e.src ? (t.src = e.src) : (t.text = e.text);
205        v && t.setAttribute("nonce", v.nonce);
206        d.getElementsByTagName("head")[0].appendChild(t);
207      },
208      load: function (e, t) {
209        t = t || {};
210        var n = new XMLHttpRequest();
211        n.open("GET", e, !0);
212        n.withCredentials = !t.dSC;
213        n.responseType = t.responseType || "text";
214        n.onload = function () {
215          if (t.onloadCb) return t.onloadCb(n, e);
216          200 === n.status
217            ? _vwo_code.addScript({ text: n.responseText })
218            : _vwo_code.finish("&e=loading_failure:" + e);
219        };
220        n.onerror = function () {
221          if (t.onerrorCb) return t.onerrorCb(e);
222          _vwo_code.finish("&e=loading_failure:" + e);
223        };
224        n.send();
225      },
226      init: function () {
227        var e,
228          t = this.settings_tolerance();
229        w._vwo_settings_timer = setTimeout(function () {
230          _vwo_code.finish();
231        }, t);
232        if (this.hide_element()) {
233          var n = d.createElement("style");
234          e = this.hide_element() + this.hide_element_style();
235          var t = d.getElementsByTagName("head")[0];
236          n.setAttribute("id", "_vis_opt_path_hides");
237          v && n.setAttribute("nonce", v.nonce);
238          n.setAttribute("type", "text/css");
239          n.styleSheet ? (n.styleSheet.cssText = e) : n.appendChild(d.createTextNode(e));
240          t.appendChild(n);
241        }
242        var url = "https://dev.visualwebsiteoptimizer.com/j.php?" + i();
243        -1 !== w.location.search.indexOf("_vwo_xhr")
244          ? this.addScript({ src: url })
245          : this.load(url + "&x=true", { l: 1 });
246      },
247    };
248    w._vwo_code = code;
249    code.init();
250  }
251
252  if ("requestIdleCallback" in window) {
253    requestIdleCallback(initVWO, { timeout: 1000 });
254  } else {
255    setTimeout(initVWO, 50);
256  }
257})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.