(function() { var c = document.currentScript, d = c.dataset, q = new URLSearchParams(location.search), v = q.get('rum') || q.get('optel') || d.rate, t = { on: 1, off: 0, high: 10, low: 1e3 }[v], w = t !== undefined ? t : 100, r = (window.hlx = window.hlx || {}).rum || (window.hlx.rum = { id: crypto.randomUUID().slice(-9) }); if (r.isSelected || ((w && Math.random() * w < 1) && (r.isSelected = true))) { var n = document.createElement('script'); for (var a of c.attributes) n.setAttribute(a.name, a.value); n.src = d.script || c.src.replace(/\/micro\.js$/, '/rum-standalone.js'); if (c.integrity) { n.setAttribute('integrity', 'sha384-qQPPd8eQxDpjfzq7rWXTq90J/pbO12K2QXFwJV5cQmr9wRp6AXNDoaMKwZwWyJmg'); n.setAttribute('crossorigin', 'anonymous'); } document.head.append(n); } })();