(()=>{var te=Object.create;var Nt=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var ne=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty;var wt=(l,s)=>()=>(s||l((s={exports:{}}).exports,s),s.exports);var ie=(l,s,a,e)=>{if(s&&typeof s=="object"||typeof s=="function")for(let t of re(s))!oe.call(l,t)&&t!==a&&Nt(l,t,{get:()=>s[t],enumerable:!(e=ee(s,t))||e.enumerable});return l};var Lt=(l,s,a)=>(a=l!=null?te(ne(l)):{},ie(s||!l||!l.__esModule?Nt(a,"default",{value:l,enumerable:!0}):a,l));var Dt=wt((Mt,vt)=>{(function(){var l=this;(function(){(function(){this.Turbolinks={supported:function(){return window.history.pushState!=null&&window.requestAnimationFrame!=null&&window.addEventListener!=null}(),visit:function(a,e){return s.controller.visit(a,e)},clearCache:function(){return s.controller.clearCache()},setProgressBarDelay:function(a){return s.controller.setProgressBarDelay(a)}}}).call(this)}).call(l);var s=l.Turbolinks;(function(){(function(){var a,e,t,r=[].slice;s.copyObject=function(o){var n,i,u;i={};for(n in o)u=o[n],i[n]=u;return i},s.closest=function(o,n){return a.call(o,n)},a=function(){var o,n;return o=document.documentElement,(n=o.closest)!=null?n:function(i){var u;for(u=this;u;){if(u.nodeType===Node.ELEMENT_NODE&&e.call(u,i))return u;u=u.parentNode}}}(),s.defer=function(o){return setTimeout(o,1)},s.throttle=function(o){var n;return n=null,function(){var i;return i=1<=arguments.length?r.call(arguments,0):[],n??(n=requestAnimationFrame(function(u){return function(){return n=null,o.apply(u,i)}}(this)))}},s.dispatch=function(o,n){var i,u,c,d,f,y;return f=n??{},y=f.target,i=f.cancelable,u=f.data,c=document.createEvent("Events"),c.initEvent(o,!0,i===!0),c.data=u??{},c.cancelable&&!t&&(d=c.preventDefault,c.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),d.call(this)}),(y??document).dispatchEvent(c),c},t=function(){var o;return o=document.createEvent("Events"),o.initEvent("test",!0,!0),o.preventDefault(),o.defaultPrevented}(),s.match=function(o,n){return e.call(o,n)},e=function(){var o,n,i,u;return o=document.documentElement,(n=(i=(u=o.matchesSelector)!=null?u:o.webkitMatchesSelector)!=null?i:o.msMatchesSelector)!=null?n:o.mozMatchesSelector}(),s.uuid=function(){var o,n,i;for(i="",o=n=1;36>=n;o=++n)i+=o===9||o===14||o===19||o===24?"-":o===15?"4":o===20?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return i}}).call(this),function(){s.Location=function(){function a(n){var i,u;n==null&&(n=""),u=document.createElement("a"),u.href=n.toString(),this.absoluteURL=u.href,i=u.hash.length,2>i?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-i),this.anchor=u.hash.slice(1))}var e,t,r,o;return a.wrap=function(n){return n instanceof this?n:new this(n)},a.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},a.prototype.getPath=function(){var n,i;return(n=(i=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))!=null?i[1]:void 0)!=null?n:"/"},a.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},a.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},a.prototype.getExtension=function(){var n,i;return(n=(i=this.getLastPathComponent().match(/\.[^.]*$/))!=null?i[0]:void 0)!=null?n:""},a.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},a.prototype.isPrefixedBy=function(n){var i;return i=t(n),this.isEqualTo(n)||o(this.absoluteURL,i)},a.prototype.isEqualTo=function(n){return this.absoluteURL===n?.absoluteURL},a.prototype.toCacheKey=function(){return this.requestURL},a.prototype.toJSON=function(){return this.absoluteURL},a.prototype.toString=function(){return this.absoluteURL},a.prototype.valueOf=function(){return this.absoluteURL},t=function(n){return e(n.getOrigin()+n.getPath())},e=function(n){return r(n,"/")?n:n+"/"},o=function(n,i){return n.slice(0,i.length)===i},r=function(n,i){return n.slice(-i.length)===i},a}()}.call(this),function(){var a=function(e,t){return function(){return e.apply(t,arguments)}};s.HttpRequest=function(){function e(t,r,o){this.delegate=t,this.requestCanceled=a(this.requestCanceled,this),this.requestTimedOut=a(this.requestTimedOut,this),this.requestFailed=a(this.requestFailed,this),this.requestLoaded=a(this.requestLoaded,this),this.requestProgressed=a(this.requestProgressed,this),this.url=s.Location.wrap(r).requestURL,this.referrer=s.Location.wrap(o).absoluteURL,this.createXHR()}return e.NETWORK_FAILURE=0,e.TIMEOUT_FAILURE=-1,e.timeout=60,e.prototype.send=function(){var t;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,typeof(t=this.delegate).requestStarted=="function"?t.requestStarted():void 0):void 0},e.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},e.prototype.requestProgressed=function(t){return t.lengthComputable?this.setProgress(t.loaded/t.total):void 0},e.prototype.requestLoaded=function(){return this.endRequest(function(t){return function(){var r;return 200<=(r=t.xhr.status)&&300>r?t.delegate.requestCompletedWithResponse(t.xhr.responseText,t.xhr.getResponseHeader("Turbolinks-Location")):(t.failed=!0,t.delegate.requestFailedWithStatusCode(t.xhr.status,t.xhr.responseText))}}(this))},e.prototype.requestFailed=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.NETWORK_FAILURE)}}(this))},e.prototype.requestTimedOut=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.TIMEOUT_FAILURE)}}(this))},e.prototype.requestCanceled=function(){return this.endRequest()},e.prototype.notifyApplicationBeforeRequestStart=function(){return s.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},e.prototype.notifyApplicationAfterRequestEnd=function(){return s.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},e.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},e.prototype.endRequest=function(t){return this.xhr?(this.notifyApplicationAfterRequestEnd(),t?.call(this),this.destroy()):void 0},e.prototype.setProgress=function(t){var r;return this.progress=t,typeof(r=this.delegate).requestProgressed=="function"?r.requestProgressed(this.progress):void 0},e.prototype.destroy=function(){var t;return this.setProgress(1),typeof(t=this.delegate).requestFinished=="function"&&t.requestFinished(),this.delegate=null,this.xhr=null},e}()}.call(this),function(){var a=function(e,t){return function(){return e.apply(t,arguments)}};s.ProgressBar=function(){function e(){this.trickle=a(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var t;return t=300,e.defaultCSS=`.turbolinks-progress-bar { position: fixed; display: block; top: 0; left: 0; height: 3px; background: #0076ff; z-index: 9999; transition: width `+t+"ms ease-out, opacity "+t/2+"ms "+t/2+`ms ease-in; transform: translate3d(0, 0, 0); }`,e.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},e.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement(function(r){return function(){return r.uninstallProgressElement(),r.stopTrickling(),r.visible=!1,r.hiding=!1}}(this))):void 0},e.prototype.setValue=function(r){return this.value=r,this.refresh()},e.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},e.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},e.prototype.fadeProgressElement=function(r){return this.progressElement.style.opacity=0,setTimeout(r,1.5*t)},e.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},e.prototype.startTrickling=function(){return this.trickleInterval!=null?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,t)},e.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},e.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},e.prototype.refresh=function(){return requestAnimationFrame(function(r){return function(){return r.progressElement.style.width=10+90*r.value+"%"}}(this))},e.prototype.createStylesheetElement=function(){var r;return r=document.createElement("style"),r.type="text/css",r.textContent=this.constructor.defaultCSS,r},e.prototype.createProgressElement=function(){var r;return r=document.createElement("div"),r.className="turbolinks-progress-bar",r},e}()}.call(this),function(){var a=function(e,t){return function(){return e.apply(t,arguments)}};s.BrowserAdapter=function(){function e(n){this.controller=n,this.showProgressBar=a(this.showProgressBar,this),this.progressBar=new s.ProgressBar}var t,r,o;return o=s.HttpRequest,t=o.NETWORK_FAILURE,r=o.TIMEOUT_FAILURE,e.prototype.visitProposedToLocationWithAction=function(n,i){return this.controller.startVisitToLocationWithAction(n,i)},e.prototype.visitStarted=function(n){return n.issueRequest(),n.changeHistory(),n.loadCachedSnapshot()},e.prototype.visitRequestStarted=function(n){return this.progressBar.setValue(0),n.hasCachedSnapshot()||n.action!=="restore"?this.showProgressBarAfterDelay():this.showProgressBar()},e.prototype.visitRequestProgressed=function(n){return this.progressBar.setValue(n.progress)},e.prototype.visitRequestCompleted=function(n){return n.loadResponse()},e.prototype.visitRequestFailedWithStatusCode=function(n,i){switch(i){case t:case r:return this.reload();default:return n.loadResponse()}},e.prototype.visitRequestFinished=function(n){return this.hideProgressBar()},e.prototype.visitCompleted=function(n){return n.followRedirect()},e.prototype.pageInvalidated=function(){return this.reload()},e.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},e.prototype.showProgressBar=function(){return this.progressBar.show()},e.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},e.prototype.reload=function(){return window.location.reload()},e}()}.call(this),function(){var a=function(e,t){return function(){return e.apply(t,arguments)}};s.History=function(){function e(t){this.delegate=t,this.onPageLoad=a(this.onPageLoad,this),this.onPopState=a(this.onPopState,this)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},e.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},e.prototype.push=function(t,r){return t=s.Location.wrap(t),this.update("push",t,r)},e.prototype.replace=function(t,r){return t=s.Location.wrap(t),this.update("replace",t,r)},e.prototype.onPopState=function(t){var r,o,n,i;return this.shouldHandlePopState()&&(i=(o=t.state)!=null?o.turbolinks:void 0)?(r=s.Location.wrap(window.location),n=i.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(r,n)):void 0},e.prototype.onPageLoad=function(t){return s.defer(function(r){return function(){return r.pageLoaded=!0}}(this))},e.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},e.prototype.pageIsLoaded=function(){return this.pageLoaded||document.readyState==="complete"},e.prototype.update=function(t,r,o){var n;return n={turbolinks:{restorationIdentifier:o}},history[t+"State"](n,null,r)},e}()}.call(this),function(){s.HeadDetails=function(){function a(i){var u,c,d,f,y,k;for(this.elements={},d=0,y=i.length;y>d;d++)k=i[d],k.nodeType===Node.ELEMENT_NODE&&(f=k.outerHTML,c=(u=this.elements)[f]!=null?u[f]:u[f]={type:n(k),tracked:o(k),elements:[]},c.elements.push(k))}var e,t,r,o,n;return a.fromHeadElement=function(i){var u;return new this((u=i?.childNodes)!=null?u:[])},a.prototype.hasElementWithKey=function(i){return i in this.elements},a.prototype.getTrackedElementSignature=function(){var i,u;return function(){var c,d;c=this.elements,d=[];for(i in c)u=c[i].tracked,u&&d.push(i);return d}.call(this).join("")},a.prototype.getScriptElementsNotInDetails=function(i){return this.getElementsMatchingTypeNotInDetails("script",i)},a.prototype.getStylesheetElementsNotInDetails=function(i){return this.getElementsMatchingTypeNotInDetails("stylesheet",i)},a.prototype.getElementsMatchingTypeNotInDetails=function(i,u){var c,d,f,y,k,K;f=this.elements,k=[];for(d in f)y=f[d],K=y.type,c=y.elements,K!==i||u.hasElementWithKey(d)||k.push(c[0]);return k},a.prototype.getProvisionalElements=function(){var i,u,c,d,f,y,k;c=[],d=this.elements;for(u in d)f=d[u],k=f.type,y=f.tracked,i=f.elements,k!=null||y?i.length>1&&c.push.apply(c,i.slice(1)):c.push.apply(c,i);return c},a.prototype.getMetaValue=function(i){var u;return(u=this.findMetaElementByName(i))!=null?u.getAttribute("content"):void 0},a.prototype.findMetaElementByName=function(i){var u,c,d,f;u=void 0,f=this.elements;for(d in f)c=f[d].elements,e(c[0],i)&&(u=c[0]);return u},n=function(i){return t(i)?"script":r(i)?"stylesheet":void 0},o=function(i){return i.getAttribute("data-turbolinks-track")==="reload"},t=function(i){var u;return u=i.tagName.toLowerCase(),u==="script"},r=function(i){var u;return u=i.tagName.toLowerCase(),u==="style"||u==="link"&&i.getAttribute("rel")==="stylesheet"},e=function(i,u){var c;return c=i.tagName.toLowerCase(),c==="meta"&&i.getAttribute("name")===u},a}()}.call(this),function(){s.Snapshot=function(){function a(e,t){this.headDetails=e,this.bodyElement=t}return a.wrap=function(e){return e instanceof this?e:typeof e=="string"?this.fromHTMLString(e):this.fromHTMLElement(e)},a.fromHTMLString=function(e){var t;return t=document.createElement("html"),t.innerHTML=e,this.fromHTMLElement(t)},a.fromHTMLElement=function(e){var t,r,o,n;return o=e.querySelector("head"),t=(n=e.querySelector("body"))!=null?n:document.createElement("body"),r=s.HeadDetails.fromHeadElement(o),new this(r,t)},a.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},a.prototype.getRootLocation=function(){var e,t;return t=(e=this.getSetting("root"))!=null?e:"/",new s.Location(t)},a.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},a.prototype.getElementForAnchor=function(e){try{return this.bodyElement.querySelector("[id='"+e+"'], a[name='"+e+"']")}catch{}},a.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll("[id][data-turbolinks-permanent]")},a.prototype.getPermanentElementById=function(e){return this.bodyElement.querySelector("#"+e+"[data-turbolinks-permanent]")},a.prototype.getPermanentElementsPresentInSnapshot=function(e){var t,r,o,n,i;for(n=this.getPermanentElements(),i=[],r=0,o=n.length;o>r;r++)t=n[r],e.getPermanentElementById(t.id)&&i.push(t);return i},a.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector("[autofocus]")},a.prototype.hasAnchor=function(e){return this.getElementForAnchor(e)!=null},a.prototype.isPreviewable=function(){return this.getCacheControlValue()!=="no-preview"},a.prototype.isCacheable=function(){return this.getCacheControlValue()!=="no-cache"},a.prototype.isVisitable=function(){return this.getSetting("visit-control")!=="reload"},a.prototype.getSetting=function(e){return this.headDetails.getMetaValue("turbolinks-"+e)},a}()}.call(this),function(){var a=[].slice;s.Renderer=function(){function e(){}var t;return e.render=function(){var r,o,n,i;return n=arguments[0],o=arguments[1],r=3<=arguments.length?a.call(arguments,2):[],i=function(u,c,d){d.prototype=u.prototype;var f=new d,y=u.apply(f,c);return Object(y)===y?y:f}(this,r,function(){}),i.delegate=n,i.render(o),i},e.prototype.renderView=function(r){return this.delegate.viewWillRender(this.newBody),r(),this.delegate.viewRendered(this.newBody)},e.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},e.prototype.createScriptElement=function(r){var o;return r.getAttribute("data-turbolinks-eval")==="false"?r:(o=document.createElement("script"),o.textContent=r.textContent,o.async=!1,t(o,r),o)},t=function(r,o){var n,i,u,c,d,f,y;for(c=o.attributes,f=[],n=0,i=c.length;i>n;n++)d=c[n],u=d.name,y=d.value,f.push(r.setAttribute(u,y));return f},e}()}.call(this),function(){var a,e,t=function(o,n){function i(){this.constructor=o}for(var u in n)r.call(n,u)&&(o[u]=n[u]);return i.prototype=n.prototype,o.prototype=new i,o.__super__=n.prototype,o},r={}.hasOwnProperty;s.SnapshotRenderer=function(o){function n(i,u,c){this.currentSnapshot=i,this.newSnapshot=u,this.isPreview=c,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return t(n,o),n.prototype.render=function(i){return this.shouldRender()?(this.mergeHead(),this.renderView(function(u){return function(){return u.replaceBody(),u.isPreview||u.focusFirstAutofocusableElement(),i()}}(this))):this.invalidateView()},n.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},n.prototype.replaceBody=function(){var i;return i=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(i)},n.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},n.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},n.prototype.copyNewHeadStylesheetElements=function(){var i,u,c,d,f;for(d=this.getNewHeadStylesheetElements(),f=[],u=0,c=d.length;c>u;u++)i=d[u],f.push(document.head.appendChild(i));return f},n.prototype.copyNewHeadScriptElements=function(){var i,u,c,d,f;for(d=this.getNewHeadScriptElements(),f=[],u=0,c=d.length;c>u;u++)i=d[u],f.push(document.head.appendChild(this.createScriptElement(i)));return f},n.prototype.removeCurrentHeadProvisionalElements=function(){var i,u,c,d,f;for(d=this.getCurrentHeadProvisionalElements(),f=[],u=0,c=d.length;c>u;u++)i=d[u],f.push(document.head.removeChild(i));return f},n.prototype.copyNewHeadProvisionalElements=function(){var i,u,c,d,f;for(d=this.getNewHeadProvisionalElements(),f=[],u=0,c=d.length;c>u;u++)i=d[u],f.push(document.head.appendChild(i));return f},n.prototype.relocateCurrentBodyPermanentElements=function(){var i,u,c,d,f,y,k;for(y=this.getCurrentBodyPermanentElements(),k=[],i=0,u=y.length;u>i;i++)d=y[i],f=a(d),c=this.newSnapshot.getPermanentElementById(d.id),e(d,f.element),e(c,d),k.push(f);return k},n.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(i){var u,c,d,f,y,k,K;for(K=[],d=0,f=i.length;f>d;d++)k=i[d],c=k.element,y=k.permanentElement,u=y.cloneNode(!0),K.push(e(c,u));return K},n.prototype.activateNewBodyScriptElements=function(){var i,u,c,d,f,y;for(f=this.getNewBodyScriptElements(),y=[],u=0,d=f.length;d>u;u++)c=f[u],i=this.createScriptElement(c),y.push(e(c,i));return y},n.prototype.assignNewBody=function(){return document.body=this.newBody},n.prototype.focusFirstAutofocusableElement=function(){var i;return(i=this.newSnapshot.findFirstAutofocusableElement())!=null?i.focus():void 0},n.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},n.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},n.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},n.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},n.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},n.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},n}(s.Renderer),a=function(o){var n;return n=document.createElement("meta"),n.setAttribute("name","turbolinks-permanent-placeholder"),n.setAttribute("content",o.id),{element:n,permanentElement:o}},e=function(o,n){var i;return(i=o.parentNode)?i.replaceChild(n,o):void 0}}.call(this),function(){var a=function(t,r){function o(){this.constructor=t}for(var n in r)e.call(r,n)&&(t[n]=r[n]);return o.prototype=r.prototype,t.prototype=new o,t.__super__=r.prototype,t},e={}.hasOwnProperty;s.ErrorRenderer=function(t){function r(o){var n;n=document.createElement("html"),n.innerHTML=o,this.newHead=n.querySelector("head"),this.newBody=n.querySelector("body")}return a(r,t),r.prototype.render=function(o){return this.renderView(function(n){return function(){return n.replaceHeadAndBody(),n.activateBodyScriptElements(),o()}}(this))},r.prototype.replaceHeadAndBody=function(){var o,n;return n=document.head,o=document.body,n.parentNode.replaceChild(this.newHead,n),o.parentNode.replaceChild(this.newBody,o)},r.prototype.activateBodyScriptElements=function(){var o,n,i,u,c,d;for(u=this.getScriptElements(),d=[],n=0,i=u.length;i>n;n++)c=u[n],o=this.createScriptElement(c),d.push(c.parentNode.replaceChild(o,c));return d},r.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},r}(s.Renderer)}.call(this),function(){s.View=function(){function a(e){this.delegate=e,this.htmlElement=document.documentElement}return a.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},a.prototype.getElementForAnchor=function(e){return this.getSnapshot().getElementForAnchor(e)},a.prototype.getSnapshot=function(){return s.Snapshot.fromHTMLElement(this.htmlElement)},a.prototype.render=function(e,t){var r,o,n;return n=e.snapshot,r=e.error,o=e.isPreview,this.markAsPreview(o),n!=null?this.renderSnapshot(n,o,t):this.renderError(r,t)},a.prototype.markAsPreview=function(e){return e?this.htmlElement.setAttribute("data-turbolinks-preview",""):this.htmlElement.removeAttribute("data-turbolinks-preview")},a.prototype.renderSnapshot=function(e,t,r){return s.SnapshotRenderer.render(this.delegate,r,this.getSnapshot(),s.Snapshot.wrap(e),t)},a.prototype.renderError=function(e,t){return s.ErrorRenderer.render(this.delegate,t,e)},a}()}.call(this),function(){var a=function(e,t){return function(){return e.apply(t,arguments)}};s.ScrollManager=function(){function e(t){this.delegate=t,this.onScroll=a(this.onScroll,this),this.onScroll=s.throttle(this.onScroll)}return e.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},e.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},e.prototype.scrollToElement=function(t){return t.scrollIntoView()},e.prototype.scrollToPosition=function(t){var r,o;return r=t.x,o=t.y,window.scrollTo(r,o)},e.prototype.onScroll=function(t){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},e.prototype.updatePosition=function(t){var r;return this.position=t,(r=this.delegate)!=null?r.scrollPositionChanged(this.position):void 0},e}()}.call(this),function(){s.SnapshotCache=function(){function a(t){this.size=t,this.keys=[],this.snapshots={}}var e;return a.prototype.has=function(t){var r;return r=e(t),r in this.snapshots},a.prototype.get=function(t){var r;if(this.has(t))return r=this.read(t),this.touch(t),r},a.prototype.put=function(t,r){return this.write(t,r),this.touch(t),r},a.prototype.read=function(t){var r;return r=e(t),this.snapshots[r]},a.prototype.write=function(t,r){var o;return o=e(t),this.snapshots[o]=r},a.prototype.touch=function(t){var r,o;return o=e(t),r=this.keys.indexOf(o),r>-1&&this.keys.splice(r,1),this.keys.unshift(o),this.trim()},a.prototype.trim=function(){var t,r,o,n,i;for(n=this.keys.splice(this.size),i=[],t=0,o=n.length;o>t;t++)r=n[t],i.push(delete this.snapshots[r]);return i},e=function(t){return s.Location.wrap(t).toCacheKey()},a}()}.call(this),function(){var a=function(e,t){return function(){return e.apply(t,arguments)}};s.Visit=function(){function e(r,o,n){this.controller=r,this.action=n,this.performScroll=a(this.performScroll,this),this.identifier=s.uuid(),this.location=s.Location.wrap(o),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var t;return e.prototype.start=function(){return this.state==="initialized"?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},e.prototype.cancel=function(){var r;return this.state==="started"?((r=this.request)!=null&&r.cancel(),this.cancelRender(),this.state="canceled"):void 0},e.prototype.complete=function(){var r;return this.state==="started"?(this.recordTimingMetric("visitEnd"),this.state="completed",typeof(r=this.adapter).visitCompleted=="function"&&r.visitCompleted(this),this.controller.visitCompleted(this)):void 0},e.prototype.fail=function(){var r;return this.state==="started"?(this.state="failed",typeof(r=this.adapter).visitFailed=="function"?r.visitFailed(this):void 0):void 0},e.prototype.changeHistory=function(){var r,o;return this.historyChanged?void 0:(r=this.location.isEqualTo(this.referrer)?"replace":this.action,o=t(r),this.controller[o](this.location,this.restorationIdentifier),this.historyChanged=!0)},e.prototype.issueRequest=function(){return this.shouldIssueRequest()&&this.request==null?(this.progress=0,this.request=new s.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},e.prototype.getCachedSnapshot=function(){var r;return!(r=this.controller.getCachedSnapshotForLocation(this.location))||this.location.anchor!=null&&!r.hasAnchor(this.location.anchor)||this.action!=="restore"&&!r.isPreviewable()?void 0:r},e.prototype.hasCachedSnapshot=function(){return this.getCachedSnapshot()!=null},e.prototype.loadCachedSnapshot=function(){var r,o;return(o=this.getCachedSnapshot())?(r=this.shouldIssueRequest(),this.render(function(){var n;return this.cacheSnapshot(),this.controller.render({snapshot:o,isPreview:r},this.performScroll),typeof(n=this.adapter).visitRendered=="function"&&n.visitRendered(this),r?void 0:this.complete()})):void 0},e.prototype.loadResponse=function(){return this.response!=null?this.render(function(){var r,o;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),typeof(r=this.adapter).visitRendered=="function"&&r.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),typeof(o=this.adapter).visitRendered=="function"&&o.visitRendered(this),this.complete())}):void 0},e.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},e.prototype.requestStarted=function(){var r;return this.recordTimingMetric("requestStart"),typeof(r=this.adapter).visitRequestStarted=="function"?r.visitRequestStarted(this):void 0},e.prototype.requestProgressed=function(r){var o;return this.progress=r,typeof(o=this.adapter).visitRequestProgressed=="function"?o.visitRequestProgressed(this):void 0},e.prototype.requestCompletedWithResponse=function(r,o){return this.response=r,o!=null&&(this.redirectedToLocation=s.Location.wrap(o)),this.adapter.visitRequestCompleted(this)},e.prototype.requestFailedWithStatusCode=function(r,o){return this.response=o,this.adapter.visitRequestFailedWithStatusCode(this,r)},e.prototype.requestFinished=function(){var r;return this.recordTimingMetric("requestEnd"),typeof(r=this.adapter).visitRequestFinished=="function"?r.visitRequestFinished(this):void 0},e.prototype.performScroll=function(){return this.scrolled?void 0:(this.action==="restore"?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},e.prototype.scrollToRestoredPosition=function(){var r,o;return r=(o=this.restorationData)!=null?o.scrollPosition:void 0,r!=null?(this.controller.scrollToPosition(r),!0):void 0},e.prototype.scrollToAnchor=function(){return this.location.anchor!=null?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},e.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},e.prototype.recordTimingMetric=function(r){var o;return(o=this.timingMetrics)[r]!=null?o[r]:o[r]=new Date().getTime()},e.prototype.getTimingMetrics=function(){return s.copyObject(this.timingMetrics)},t=function(r){switch(r){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},e.prototype.shouldIssueRequest=function(){return this.action==="restore"?!this.hasCachedSnapshot():!0},e.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},e.prototype.render=function(r){return this.cancelRender(),this.frame=requestAnimationFrame(function(o){return function(){return o.frame=null,r.call(o)}}(this))},e.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},e}()}.call(this),function(){var a=function(e,t){return function(){return e.apply(t,arguments)}};s.Controller=function(){function e(){this.clickBubbled=a(this.clickBubbled,this),this.clickCaptured=a(this.clickCaptured,this),this.pageLoaded=a(this.pageLoaded,this),this.history=new s.History(this),this.view=new s.View(this),this.scrollManager=new s.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return e.prototype.start=function(){return s.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},e.prototype.clearCache=function(){return this.cache=new s.SnapshotCache(10)},e.prototype.visit=function(t,r){var o,n;return r==null&&(r={}),t=s.Location.wrap(t),this.applicationAllowsVisitingLocation(t)?this.locationIsVisitable(t)?(o=(n=r.action)!=null?n:"advance",this.adapter.visitProposedToLocationWithAction(t,o)):window.location=t:void 0},e.prototype.startVisitToLocationWithAction=function(t,r,o){var n;return s.supported?(n=this.getRestorationDataForIdentifier(o),this.startVisit(t,r,{restorationData:n})):window.location=t},e.prototype.setProgressBarDelay=function(t){return this.progressBarDelay=t},e.prototype.startHistory=function(){return this.location=s.Location.wrap(window.location),this.restorationIdentifier=s.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},e.prototype.stopHistory=function(){return this.history.stop()},e.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(t,r){return this.restorationIdentifier=r,this.location=s.Location.wrap(t),this.history.push(this.location,this.restorationIdentifier)},e.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(t,r){return this.restorationIdentifier=r,this.location=s.Location.wrap(t),this.history.replace(this.location,this.restorationIdentifier)},e.prototype.historyPoppedToLocationWithRestorationIdentifier=function(t,r){var o;return this.restorationIdentifier=r,this.enabled?(o=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(t,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:o,historyChanged:!0}),this.location=s.Location.wrap(t)):this.adapter.pageInvalidated()},e.prototype.getCachedSnapshotForLocation=function(t){var r;return(r=this.cache.get(t))!=null?r.clone():void 0},e.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},e.prototype.cacheSnapshot=function(){var t,r;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),r=this.view.getSnapshot(),t=this.lastRenderedLocation,s.defer(function(o){return function(){return o.cache.put(t,r.clone())}}(this))):void 0},e.prototype.scrollToAnchor=function(t){var r;return(r=this.view.getElementForAnchor(t))?this.scrollToElement(r):this.scrollToPosition({x:0,y:0})},e.prototype.scrollToElement=function(t){return this.scrollManager.scrollToElement(t)},e.prototype.scrollToPosition=function(t){return this.scrollManager.scrollToPosition(t)},e.prototype.scrollPositionChanged=function(t){var r;return r=this.getCurrentRestorationData(),r.scrollPosition=t},e.prototype.render=function(t,r){return this.view.render(t,r)},e.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},e.prototype.viewWillRender=function(t){return this.notifyApplicationBeforeRender(t)},e.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},e.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},e.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},e.prototype.clickBubbled=function(t){var r,o,n;return this.enabled&&this.clickEventIsSignificant(t)&&(o=this.getVisitableLinkForNode(t.target))&&(n=this.getVisitableLocationForLink(o))&&this.applicationAllowsFollowingLinkToLocation(o,n)?(t.preventDefault(),r=this.getActionForLink(o),this.visit(n,{action:r})):void 0},e.prototype.applicationAllowsFollowingLinkToLocation=function(t,r){var o;return o=this.notifyApplicationAfterClickingLinkToLocation(t,r),!o.defaultPrevented},e.prototype.applicationAllowsVisitingLocation=function(t){var r;return r=this.notifyApplicationBeforeVisitingLocation(t),!r.defaultPrevented},e.prototype.notifyApplicationAfterClickingLinkToLocation=function(t,r){return s.dispatch("turbolinks:click",{target:t,data:{url:r.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationBeforeVisitingLocation=function(t){return s.dispatch("turbolinks:before-visit",{data:{url:t.absoluteURL},cancelable:!0})},e.prototype.notifyApplicationAfterVisitingLocation=function(t){return s.dispatch("turbolinks:visit",{data:{url:t.absoluteURL}})},e.prototype.notifyApplicationBeforeCachingSnapshot=function(){return s.dispatch("turbolinks:before-cache")},e.prototype.notifyApplicationBeforeRender=function(t){return s.dispatch("turbolinks:before-render",{data:{newBody:t}})},e.prototype.notifyApplicationAfterRender=function(){return s.dispatch("turbolinks:render")},e.prototype.notifyApplicationAfterPageLoad=function(t){return t==null&&(t={}),s.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:t}})},e.prototype.startVisit=function(t,r,o){var n;return(n=this.currentVisit)!=null&&n.cancel(),this.currentVisit=this.createVisit(t,r,o),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(t)},e.prototype.createVisit=function(t,r,o){var n,i,u,c,d;return i=o??{},c=i.restorationIdentifier,u=i.restorationData,n=i.historyChanged,d=new s.Visit(this,t,r),d.restorationIdentifier=c??s.uuid(),d.restorationData=s.copyObject(u),d.historyChanged=n,d.referrer=this.location,d},e.prototype.visitCompleted=function(t){return this.notifyApplicationAfterPageLoad(t.getTimingMetrics())},e.prototype.clickEventIsSignificant=function(t){return!(t.defaultPrevented||t.target.isContentEditable||t.which>1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)},e.prototype.getVisitableLinkForNode=function(t){return this.nodeIsVisitable(t)?s.closest(t,"a[href]:not([target]):not([download])"):void 0},e.prototype.getVisitableLocationForLink=function(t){var r;return r=new s.Location(t.getAttribute("href")),this.locationIsVisitable(r)?r:void 0},e.prototype.getActionForLink=function(t){var r;return(r=t.getAttribute("data-turbolinks-action"))!=null?r:"advance"},e.prototype.nodeIsVisitable=function(t){var r;return(r=s.closest(t,"[data-turbolinks]"))?r.getAttribute("data-turbolinks")!=="false":!0},e.prototype.locationIsVisitable=function(t){return t.isPrefixedBy(this.view.getRootLocation())&&t.isHTML()},e.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},e.prototype.getRestorationDataForIdentifier=function(t){var r;return(r=this.restorationData)[t]!=null?r[t]:r[t]={}},e}()}.call(this),function(){(function(){var a,e;if((a=e=document.currentScript)&&!e.hasAttribute("data-turbolinks-suppress-warning")){for(;a=a.parentNode;)if(a===document.body)return console.warn(`You are loading Turbolinks from a