Current section

Files

Jump to
error_tracker priv static app.js
Raw

priv/static/app.js

var C=Object.create;var{defineProperty:m,getPrototypeOf:x,getOwnPropertyNames:E}=Object;var w=Object.prototype.hasOwnProperty;var F=(t,i,u)=>{u=t!=null?C(x(t)):{};const n=i||!t||!t.__esModule?m(u,"default",{value:t,enumerable:!0}):u;for(let s of E(t))if(!w.call(n,s))m(n,s,{get:()=>t[s],enumerable:!0});return n};var I=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports);var y=I((b,g)=>{(function(t,i){function u(){n.width=t.innerWidth,n.height=5*r.barThickness;var e=n.getContext("2d");e.shadowBlur=r.shadowBlur,e.shadowColor=r.shadowColor;var o,a=e.createLinearGradient(0,0,n.width,0);for(o in r.barColors)a.addColorStop(o,r.barColors[o]);e.lineWidth=r.barThickness,e.beginPath(),e.moveTo(0,r.barThickness/2),e.lineTo(Math.ceil(s*n.width),r.barThickness/2),e.strokeStyle=a,e.stroke()}var n,s,c,d=null,p=null,h=null,r={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},l={config:function(e){for(var o in e)r.hasOwnProperty(o)&&(r[o]=e[o])},show:function(e){var o,a;c||(e?h=h||setTimeout(()=>l.show(),e):(c=!0,p!==null&&t.cancelAnimationFrame(p),n||((a=(n=i.createElement("canvas")).style).position="fixed",a.top=a.left=a.right=a.margin=a.padding=0,a.zIndex=100001,a.display="none",r.className&&n.classList.add(r.className),o="resize",e=u,(a=t).addEventListener?a.addEventListener(o,e,!1):a.attachEvent?a.attachEvent("on"+o,e):a["on"+o]=e),n.parentElement||i.body.appendChild(n),n.style.opacity=1,n.style.display="block",l.progress(0),r.autoRun&&function v(){d=t.requestAnimationFrame(v),l.progress("+"+0.05*Math.pow(1-Math.sqrt(s),2))}()))},progress:function(e){return e===void 0||(typeof e=="string"&&(e=(0<=e.indexOf("+")||0<=e.indexOf("-")?s:0)+parseFloat(e)),s=1<e?1:e,u()),s},hide:function(){clearTimeout(h),h=null,c&&(c=!1,d!=null&&(t.cancelAnimationFrame(d),d=null),function e(){return 1<=l.progress("+.1")&&(n.style.opacity-=0.05,n.style.opacity<=0.05)?(n.style.display="none",void(p=null)):void(p=t.requestAnimationFrame(e))}())}};typeof g=="object"&&typeof b=="object"?g.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):this.topbar=l}).call(b,window,document)});var f=F(y(),1),A=document.querySelector("meta[name='csrf-token']").getAttribute("content"),B=document.querySelector("meta[name='live-path']").getAttribute("content"),M=document.querySelector("meta[name='live-transport']").getAttribute("content"),T=new LiveView.LiveSocket(B,Phoenix.Socket,{transport:M==="longpoll"?Phoenix.LongPoll:WebSocket,params:{_csrf_token:A}});f.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",(t)=>f.default.show(300));window.addEventListener("phx:page-loading-stop",(t)=>f.default.hide());T.connect();window.liveSocket=T;