HEX
Server: Apache
System: Linux p3plzcpnl507418.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: retoti4c1e1s (10075650)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/retoti4c1e1s/public_html/greatminds.place/wp-content/themes/cassio/js/barba.umd.min.js
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e||self).barba=t()}(this,function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t,r){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o}).apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)})(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c,f=function(){};!function(e){e[e.off=0]="off",e[e.error=1]="error",e[e.warning=2]="warning",e[e.info=3]="info",e[e.debug=4]="debug"}(c||(c={}));var h=c.off,l=function(){function e(e){this.t=e}e.getLevel=function(){return h},e.setLevel=function(e){return h=c[e]};var t=e.prototype;return t.error=function(){this.i(console.error,c.error,[].slice.call(arguments))},t.warn=function(){this.i(console.warn,c.warning,[].slice.call(arguments))},t.info=function(){this.i(console.info,c.info,[].slice.call(arguments))},t.debug=function(){this.i(console.log,c.debug,[].slice.call(arguments))},t.i=function(t,r,n){r<=e.getLevel()&&t.apply(console,["["+this.t+"] "].concat(n))},e}(),p=L,v=w,d=b,m=P,g=O,y=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function b(e,t){for(var r,n=[],o=0,i=0,s="",a=t&&t.delimiter||"/",u=t&&t.whitelist||void 0,c=!1;null!==(r=y.exec(e));){var f=r[0],h=r[1],l=r.index;if(s+=e.slice(i,l),i=l+f.length,h)s+=h[1],c=!0;else{var p="",v=r[2],d=r[3],m=r[4],g=r[5];if(!c&&s.length){var b=s.length-1,w=s[b];(!u||u.indexOf(w)>-1)&&(p=w,s=s.slice(0,b))}s&&(n.push(s),s="",c=!1);var P=d||m,k=p||a;n.push({name:v||o++,prefix:p,delimiter:k,optional:"?"===g||"*"===g,repeat:"+"===g||"*"===g,pattern:P?E(P):"[^"+x(k===a?k:k+a)+"]+?"})}}return(s||i<e.length)&&n.push(s+e.substr(i)),n}function w(e,t){return function(r,n){var o=e.exec(r);if(!o)return!1;for(var i=o[0],s=o.index,a={},u=n&&n.decode||decodeURIComponent,c=1;c<o.length;c++)if(void 0!==o[c]){var f=t[c-1];a[f.name]=f.repeat?o[c].split(f.delimiter).map(function(e){return u(e,f)}):u(o[c],f)}return{path:i,index:s,params:a}}}function P(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(r[n]=new RegExp("^(?:"+e[n].pattern+")$",k(t)));return function(t,n){for(var o="",i=n&&n.encode||encodeURIComponent,s=!n||!1!==n.validate,a=0;a<e.length;a++){var u=e[a];if("string"!=typeof u){var c,f=t?t[u.name]:void 0;if(Array.isArray(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but got array');if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(c=i(f[h],u),s&&!r[a].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'"');o+=(0===h?u.prefix:u.delimiter)+c}}else if("string"!=typeof f&&"number"!=typeof f&&"boolean"!=typeof f){if(!u.optional)throw new TypeError('Expected "'+u.name+'" to be '+(u.repeat?"an array":"a string"))}else{if(c=i(String(f),u),s&&!r[a].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but got "'+c+'"');o+=u.prefix+c}}else o+=u}return o}}function x(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function E(e){return e.replace(/([=!:$/()])/g,"\\$1")}function k(e){return e&&e.sensitive?"":"i"}function O(e,t,r){for(var n=(r=r||{}).strict,o=!1!==r.start,i=!1!==r.end,s=r.delimiter||"/",a=[].concat(r.endsWith||[]).map(x).concat("$").join("|"),u=o?"^":"",c=0;c<e.length;c++){var f=e[c];if("string"==typeof f)u+=x(f);else{var h=f.repeat?"(?:"+f.pattern+")(?:"+x(f.delimiter)+"(?:"+f.pattern+"))*":f.pattern;t&&t.push(f),u+=f.optional?f.prefix?"(?:"+x(f.prefix)+"("+h+"))?":"("+h+")?":x(f.prefix)+"("+h+")"}}if(i)n||(u+="(?:"+x(s)+")?"),u+="$"===a?"$":"(?="+a+")";else{var l=e[e.length-1],p="string"==typeof l?l[l.length-1]===s:void 0===l;n||(u+="(?:"+x(s)+"(?="+a+"))?"),p||(u+="(?="+x(s)+"|"+a+")")}return new RegExp(u,k(r))}function L(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,r){for(var n=[],o=0;o<e.length;o++)n.push(L(e[o],t,r).source);return new RegExp("(?:"+n.join("|")+")",k(r))}(e,t,r):function(e,t,r){return O(b(e,r),t,r)}(e,t,r)}p.match=function(e,t){var r=[];return w(L(e,r,t),r)},p.regexpToFunction=v,p.parse=d,p.compile=function(e,t){return P(b(e,t),t)},p.tokensToFunction=m,p.tokensToRegExp=g;var R={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},A=new(function(){function e(){this.o=R,this.u=new DOMParser}var t=e.prototype;return t.toString=function(e){return e.outerHTML},t.toDocument=function(e){return this.u.parseFromString(e,"text/html")},t.toElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t},t.getHtml=function(e){return void 0===e&&(e=document),this.toString(e.documentElement)},t.getWrapper=function(e){return void 0===e&&(e=document),e.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},t.getContainer=function(e){return void 0===e&&(e=document),e.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},t.removeContainer=function(e){document.body.contains(e)&&e.parentNode.removeChild(e)},t.addContainer=function(e,t){var r=this.getContainer();r?this.h(e,r):t.appendChild(e)},t.getNamespace=function(e){void 0===e&&(e=document);var t=e.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return t?t.getAttribute(this.o.prefix+"-"+this.o.namespace):null},t.getHref=function(e){if(e.tagName&&"a"===e.tagName.toLowerCase()){if("string"==typeof e.href)return e.href;var t=e.getAttribute("href")||e.getAttribute("xlink:href");if(t)return this.resolveUrl(t.baseVal||t)}return null},t.resolveUrl=function(){var e=[].slice.call(arguments).length;if(0===e)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],1===e)return t.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(t,r.firstChild);for(var n,o=document.createElement("a"),i=1;i<e;i++)o.href=arguments[i],t.href=n=o.href;return r.removeChild(t),n},t.h=function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},e}()),T=new(function(){function e(){this.v=[],this.l=-1}var n=e.prototype;return n.init=function(e,t){this.p="barba";var r={ns:t,scroll:{x:window.scrollX,y:window.scrollY},url:e};this.v.push(r),this.l=0;var n={from:this.p,index:0,states:[].concat(this.v)};window.history&&window.history.replaceState(n,"",e)},n.change=function(e,t,r){if(r&&r.state){var n=r.state,o=n.index;t=this.m(this.l-o),this.replace(n.states),this.l=o}else this.add(e,t);return t},n.add=function(e,t){var r=this.size,n=this.P(t),o={ns:"tmp",scroll:{x:window.scrollX,y:window.scrollY},url:e};this.v.push(o),this.l=r;var i={from:this.p,index:r,states:[].concat(this.v)};switch(n){case"push":window.history&&window.history.pushState(i,"",e);break;case"replace":window.history&&window.history.replaceState(i,"",e)}},n.update=function(e,t){var n=t||this.l,o=r({},this.get(n),e);this.set(n,o)},n.remove=function(e){e?this.v.splice(e,1):this.v.pop(),this.l--},n.clear=function(){this.v=[],this.l=-1},n.replace=function(e){this.v=e},n.get=function(e){return this.v[e]},n.set=function(e,t){return this.v[e]=t},n.P=function(e){var t="push",r=e,n=R.prefix+"-"+R.history;return r.hasAttribute&&r.hasAttribute(n)&&(t=r.getAttribute(n)),t},n.m=function(e){return Math.abs(e)>1?e>0?"forward":"back":0===e?"popstate":e>0?"back":"forward"},t(e,[{key:"current",get:function(){return this.v[this.l]}},{key:"state",get:function(){return this.v[this.v.length-1]}},{key:"previous",get:function(){return this.l<1?null:this.v[this.l-1]}},{key:"size",get:function(){return this.v.length}}]),e}()),j=function(e,t){try{var r=function(){if(!t.next.html)return Promise.resolve(e).then(function(e){var r=t.next;if(e){var n=A.toElement(e);r.namespace=A.getNamespace(n),r.container=A.getContainer(n),r.html=e,T.update({ns:r.namespace});var o=A.toDocument(e);document.title=o.title}})}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},q=p,S={__proto__:null,update:j,nextTick:function(){return new Promise(function(e){window.requestAnimationFrame(e)})},pathToRegexp:q},H=function(){return window.location.origin},M=function(e){return void 0===e&&(e=window.location.href),C(e).port},C=function(e){var t,r=e.match(/:\d+/);if(null===r)/^http/.test(e)&&(t=80),/^https/.test(e)&&(t=443);else{var n=r[0].substring(1);t=parseInt(n,10)}var o,i=e.replace(H(),""),s={},a=i.indexOf("#");a>=0&&(o=i.slice(a+1),i=i.slice(0,a));var u=i.indexOf("?");return u>=0&&(s=N(i.slice(u+1)),i=i.slice(0,u)),{hash:o,path:i,port:t,query:s}},N=function(e){return e.split("&").reduce(function(e,t){var r=t.split("=");return e[r[0]]=r[1],e},{})},_=function(e){return void 0===e&&(e=window.location.href),e.replace(/(\/#.*|\/|#.*)$/,"")},I={__proto__:null,getHref:function(){return window.location.href},getOrigin:H,getPort:M,getPath:function(e){return void 0===e&&(e=window.location.href),C(e).path},parse:C,parseQuery:N,clean:_};function B(e,t,r,n){return void 0===t&&(t=2e3),new Promise(function(o,i){var s=new XMLHttpRequest;if(s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE)if(200===s.status)o(s.responseText);else if(s.status){var t={status:s.status,statusText:s.statusText};r(e,t),i(t)}},s.ontimeout=function(){var n=new Error("Timeout error ["+t+"]");r(e,n),i(n)},s.onerror=function(){var t=new Error("Fetch error");r(e,t),i(t)},s.open("GET",e),s.timeout=t,s.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),s.setRequestHeader("x-barba","yes"),n){if("function"==typeof n){var a=n();a&&"name"in a&&"value"in a&&s.setRequestHeader(a.name,a.value)}if(Array.isArray(n)&&n.length)for(var c,f=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(c=f()).done;){var h=c.value;s.setRequestHeader(h.name,h.value)}}s.send()})}var U=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then};function $(e,t){return void 0===t&&(t={}),function(){var r=arguments,n=!1;return new Promise(function(o,i){t.async=function(){return n=!0,function(e,t){e?i(e):o(t)}};var s=e.apply(t,[].slice.call(r));n||(U(s)?s.then(o,i):o(s))})}}var F=new(function(e){function t(){var t;return(t=e.call(this)||this).logger=new l("@barba/core"),t.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],t.registered=new Map,t.init(),t}n(t,e);var r=t.prototype;return r.init=function(){var e=this;this.registered.clear(),this.all.forEach(function(t){e[t]||(e[t]=function(r,n){e.registered.has(t)||e.registered.set(t,new Set),e.registered.get(t).add({ctx:n||{},fn:r})})})},r.do=function(e){var t=arguments,r=this;if(this.registered.has(e)){var n=Promise.resolve();return this.registered.get(e).forEach(function(e){n=n.then(function(){return $(e.fn,e.ctx).apply(void 0,[].slice.call(t,1))})}),n.catch(function(t){r.logger.debug("Hook error ["+e+"]"),r.logger.error(t)})}return Promise.resolve()},r.clear=function(){var e=this;this.all.forEach(function(t){delete e[t]}),this.init()},r.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var e=[];this.registered.forEach(function(t,r){return e.push(r)}),this.logger.info("Registered hooks: "+e.join(","))},t}(f)),D=function(){function e(e){if(this.g=[],"boolean"==typeof e)this.k=e;else{var t=Array.isArray(e)?e:[e];this.g=t.map(function(e){return q(e)})}}return e.prototype.checkHref=function(e){if("boolean"==typeof this.k)return this.k;var t=C(e).path;return this.g.some(function(e){return null!==e.exec(t)})},e}(),W=function(e){function t(t){var r;return(r=e.call(this,t)||this).T=new Map,r}n(t,e);var o=t.prototype;return o.set=function(e,t,r){return this.T.set(e,{action:r,request:t}),{action:r,request:t}},o.get=function(e){return this.T.get(e)},o.getRequest=function(e){return this.T.get(e).request},o.getAction=function(e){return this.T.get(e).action},o.has=function(e){return!this.checkHref(e)&&this.T.has(e)},o.delete=function(e){return this.T.delete(e)},o.update=function(e,t){var n=r({},this.T.get(e),t);return this.T.set(e,n),n},t}(D),K=function(){return!window.history.pushState},X=function(e){return!e.el||!e.href},z=function(e){var t=e.event;return t.which>1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey},Y=function(e){var t=e.el;return t.hasAttribute("target")&&"_blank"===t.target},G=function(e){var t=e.el;return void 0!==t.protocol&&window.location.protocol!==t.protocol||void 0!==t.hostname&&window.location.hostname!==t.hostname},Q=function(e){var t=e.el;return void 0!==t.port&&M()!==M(t.href)},V=function(e){var t=e.el;return t.getAttribute&&"string"==typeof t.getAttribute("download")},J=function(e){return e.el.hasAttribute(R.prefix+"-"+R.prevent)},Z=function(e){return Boolean(e.el.closest("["+R.prefix+"-"+R.prevent+'="all"]'))},ee=function(e){var t=e.href;return _(t)===_()&&M(t)===M()},te=function(e){function t(t){var r;return(r=e.call(this,t)||this).suite=[],r.tests=new Map,r.init(),r}n(t,e);var r=t.prototype;return r.init=function(){this.add("pushState",K),this.add("exists",X),this.add("newTab",z),this.add("blank",Y),this.add("corsDomain",G),this.add("corsPort",Q),this.add("download",V),this.add("preventSelf",J),this.add("preventAll",Z),this.add("sameUrl",ee,!1)},r.add=function(e,t,r){void 0===r&&(r=!0),this.tests.set(e,t),r&&this.suite.push(e)},r.run=function(e,t,r,n){return this.tests.get(e)({el:t,event:r,href:n})},r.checkLink=function(e,t,r){var n=this;return this.suite.some(function(o){return n.run(o,e,t,r)})},t}(D),re=function(e){function t(r,n){var o;return void 0===n&&(n="Barba error"),(o=e.call.apply(e,[this].concat([].slice.call(arguments,2)))||this).error=r,o.label=n,Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o),t),o.name="BarbaError",o}return n(t,e),t}(a(Error)),ne=function(){function e(e){void 0===e&&(e=[]),this.logger=new l("@barba/core"),this.all=[],this.page=[],this.once=[],this.O=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],e&&(this.all=this.all.concat(e)),this.update()}var t=e.prototype;return t.add=function(e,t){"rule"===e?this.O.splice(t.position||0,0,t.value):this.all.push(t),this.update()},t.resolve=function(e,t){var r=this;void 0===t&&(t={});var n=t.once?this.once:this.page;n=n.filter(t.self?function(e){return e.name&&"self"===e.name}:function(e){return!e.name||"self"!==e.name});var o=new Map,i=n.find(function(n){var i=!0,s={};return!(!t.self||"self"!==n.name)||(r.O.reverse().forEach(function(t){i&&(i=r.R(n,t,e,s),n.from&&n.to&&(i=r.R(n,t,e,s,"from")&&r.R(n,t,e,s,"to")),n.from&&!n.to&&(i=r.R(n,t,e,s,"from")),!n.from&&n.to&&(i=r.R(n,t,e,s,"to")))}),o.set(n,s),i)}),s=o.get(i),a=[];if(a.push(t.once?"once":"page"),t.self&&a.push("self"),s){var u,c=[i];Object.keys(s).length>0&&c.push(s),(u=this.logger).info.apply(u,["Transition found ["+a.join(",")+"]"].concat(c))}else this.logger.info("No transition found ["+a.join(",")+"]");return i},t.update=function(){var e=this;this.all=this.all.map(function(t){return e.j(t)}).sort(function(e,t){return e.priority-t.priority}).reverse().map(function(e){return delete e.priority,e}),this.page=this.all.filter(function(e){return void 0!==e.leave||void 0!==e.enter}),this.once=this.all.filter(function(e){return void 0!==e.once})},t.R=function(e,t,r,n,o){var i=!0,s=!1,a=e,u=t.name,c=u,f=u,h=u,l=o?a[o]:a,p="to"===o?r.next:r.current;if(o?l&&l[u]:l[u]){switch(t.type){case"strings":default:var v=Array.isArray(l[c])?l[c]:[l[c]];p[c]&&-1!==v.indexOf(p[c])&&(s=!0),-1===v.indexOf(p[c])&&(i=!1);break;case"object":var d=Array.isArray(l[f])?l[f]:[l[f]];p[f]?(p[f].name&&-1!==d.indexOf(p[f].name)&&(s=!0),-1===d.indexOf(p[f].name)&&(i=!1)):i=!1;break;case"function":l[h](r)?s=!0:i=!1}s&&(o?(n[o]=n[o]||{},n[o][u]=a[o][u]):n[u]=a[u])}return i},t.A=function(e,t,r){var n=0;return(e[t]||e.from&&e.from[t]||e.to&&e.to[t])&&(n+=Math.pow(10,r),e.from&&e.from[t]&&(n+=1),e.to&&e.to[t]&&(n+=2)),n},t.j=function(e){var t=this;e.priority=0;var r=0;return this.O.forEach(function(n,o){r+=t.A(e,n.name,o+1)}),e.priority=r,e},e}();function oe(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}var ie=function(){function e(e){void 0===e&&(e=[]),this.logger=new l("@barba/core"),this.M=!1,this.store=new ne(e)}var r=e.prototype;return r.get=function(e,t){return this.store.resolve(e,t)},r.doOnce=function(e){var t=e.data,r=e.transition;try{var n=function(){o.M=!1},o=this,i=r||{};o.M=!0;var s=oe(function(){return Promise.resolve(o.L("beforeOnce",t,i)).then(function(){return Promise.resolve(o.once(t,i)).then(function(){return Promise.resolve(o.L("afterOnce",t,i)).then(function(){})})})},function(e){o.M=!1,o.logger.debug("Transition error [before/after/once]"),o.logger.error(e)});return Promise.resolve(s&&s.then?s.then(n):n())}catch(e){return Promise.reject(e)}},r.doPage=function(e){var t=e.data,r=e.transition,n=e.page,o=e.wrapper;try{var i=function(e){s.M=!1},s=this,a=r||{},u=!0===a.sync||!1;s.M=!0;var c=oe(function(){function e(){return Promise.resolve(s.L("before",t,a)).then(function(){function e(e){return Promise.resolve(s.remove(t)).then(function(){return Promise.resolve(s.L("after",t,a)).then(function(){})})}var r=function(){if(u)return oe(function(){return Promise.resolve(s.add(t,o)).then(function(){return Promise.resolve(s.L("beforeLeave",t,a)).then(function(){return Promise.resolve(s.L("beforeEnter",t,a)).then(function(){return Promise.resolve(Promise.all([s.leave(t,a),s.enter(t,a)])).then(function(){return Promise.resolve(s.L("afterLeave",t,a)).then(function(){return Promise.resolve(s.L("afterEnter",t,a)).then(function(){})})})})})})},function(e){if(s.S(e))throw new re(e,"Transition error [sync]")});var e=function(e){return oe(function(){var e=function(){if(!1!==r)return Promise.resolve(s.add(t,o)).then(function(){return Promise.resolve(s.L("beforeEnter",t,a)).then(function(){return Promise.resolve(s.enter(t,a,r)).then(function(){return Promise.resolve(s.L("afterEnter",t,a)).then(function(){})})})})}();if(e&&e.then)return e.then(function(){})},function(e){if(s.S(e))throw new re(e,"Transition error [before/after/enter]")})},r=!1,i=oe(function(){return Promise.resolve(s.L("beforeLeave",t,a)).then(function(){return Promise.resolve(Promise.all([s.leave(t,a),j(n,t)]).then(function(e){return e[0]})).then(function(e){return r=e,Promise.resolve(s.L("afterLeave",t,a)).then(function(){})})})},function(e){if(s.S(e))throw new re(e,"Transition error [before/after/leave]")});return i&&i.then?i.then(e):e()}();return r&&r.then?r.then(e):e()})}var r=function(){if(u)return Promise.resolve(j(n,t)).then(function(){})}();return r&&r.then?r.then(e):e()},function(e){if(s.M=!1,e.name&&"BarbaError"===e.name)throw s.logger.debug(e.label),s.logger.error(e.error),e;throw s.logger.debug("Transition error [page]"),s.logger.error(e),e});return Promise.resolve(c&&c.then?c.then(i):i())}catch(e){return Promise.reject(e)}},r.once=function(e,t){try{return Promise.resolve(F.do("once",e,t)).then(function(){return t.once?$(t.once,t)(e):Promise.resolve()})}catch(e){return Promise.reject(e)}},r.leave=function(e,t){try{return Promise.resolve(F.do("leave",e,t)).then(function(){return t.leave?$(t.leave,t)(e):Promise.resolve()})}catch(e){return Promise.reject(e)}},r.enter=function(e,t,r){try{return Promise.resolve(F.do("enter",e,t)).then(function(){return t.enter?$(t.enter,t)(e,r):Promise.resolve()})}catch(e){return Promise.reject(e)}},r.add=function(e,t){try{return A.addContainer(e.next.container,t),F.do("nextAdded",e),Promise.resolve()}catch(e){return Promise.reject(e)}},r.remove=function(e){try{return A.removeContainer(e.current.container),F.do("currentRemoved",e),Promise.resolve()}catch(e){return Promise.reject(e)}},r.S=function(e){return e.message?!/Timeout error|Fetch error/.test(e.message):!e.status},r.L=function(e,t,r){try{return Promise.resolve(F.do(e,t,r)).then(function(){return r[e]?$(r[e],r)(t):Promise.resolve()})}catch(e){return Promise.reject(e)}},t(e,[{key:"isRunning",get:function(){return this.M},set:function(e){this.M=e}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(e){return"self"===e.name})}},{key:"shouldWait",get:function(){return this.store.all.some(function(e){return e.to&&!e.to.route||e.sync})}}]),e}(),se=function(){function e(e){var t=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,0!==e.length&&(e.forEach(function(e){t.byNamespace.set(e.namespace,e)}),this.names.forEach(function(e){F[e](t.$(e))}))}return e.prototype.$=function(e){var t=this;return function(r){var n=e.match(/enter/i)?r.next:r.current,o=t.byNamespace.get(n.namespace);return o&&o[e]?$(o[e],o)(r):Promise.resolve()}},e}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var ae={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}};return new(function(){function e(){this.version="2.9.7",this.schemaPage=ae,this.Logger=l,this.logger=new l("@barba/core"),this.plugins=[],this.hooks=F,this.dom=A,this.helpers=S,this.history=T,this.request=B,this.url=I}var n=e.prototype;return n.use=function(e,t){var r=this.plugins;r.indexOf(e)>-1?this.logger.warn("Plugin ["+e.name+"] already installed."):"function"==typeof e.install?(e.install(this,t),r.push(e)):this.logger.warn("Plugin ["+e.name+'] has no "install" method.')},n.init=function(e){var t=void 0===e?{}:e,n=t.transitions,o=void 0===n?[]:n,i=t.views,s=void 0===i?[]:i,a=t.schema,u=void 0===a?R:a,c=t.requestError,f=t.timeout,h=void 0===f?2e3:f,p=t.cacheIgnore,v=void 0!==p&&p,d=t.prefetchIgnore,m=void 0!==d&&d,g=t.preventRunning,y=void 0!==g&&g,b=t.prevent,w=void 0===b?null:b,P=t.debug,x=t.logLevel,E=t.customHeaders,k=void 0===E?[]:E;if(l.setLevel(!0===(void 0!==P&&P)?"debug":void 0===x?"off":x),this.logger.info(this.version),Object.keys(u).forEach(function(e){R[e]&&(R[e]=u[e])}),this._=c,this.timeout=h,this.cacheIgnore=v,this.prefetchIgnore=m,this.preventRunning=y,this.customHeaders=k,this.B=this.dom.getWrapper(),!this.B)throw new Error("[@barba/core] No Barba wrapper found");this.B.setAttribute("aria-live","polite"),this.q();var O=this.data.current;if(!O.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new W(v),this.prevent=new te(m),this.transitions=new ie(o),this.views=new se(s),null!==w){if("function"!=typeof w)throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",w)}this.history.init(O.url.href,O.namespace),this.I=this.I.bind(this),this.U=this.U.bind(this),this.C=this.C.bind(this),this.F(),this.plugins.forEach(function(e){return e.init()});var L=this.data;L.trigger="barba",L.next=L.current,L.current=r({},this.schemaPage),this.hooks.do("ready",L),this.once(L),this.q()},n.destroy=function(){this.q(),this.H(),this.history.clear(),this.hooks.clear(),this.plugins=[]},n.force=function(e){window.location.assign(e)},n.go=function(e,t,r){var n;if(void 0===t&&(t="barba"),this.transitions.isRunning)this.force(e);else if(!(n="popstate"===t?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(e):this.prevent.run("sameUrl",null,null,e))||this.transitions.hasSelf)return t=this.history.change(e,t,r),r&&(r.stopPropagation(),r.preventDefault()),this.page(e,t,n)},n.once=function(e){try{var t=this;return Promise.resolve(t.hooks.do("beforeEnter",e)).then(function(){function r(){return Promise.resolve(t.hooks.do("afterEnter",e)).then(function(){})}var n=function(){if(t.transitions.hasOnce){var r=t.transitions.get(e,{once:!0});return Promise.resolve(t.transitions.doOnce({transition:r,data:e})).then(function(){})}}();return n&&n.then?n.then(r):r()})}catch(e){return Promise.reject(e)}},n.page=function(e,t,n){try{var o=function(){var e=i.data;return Promise.resolve(i.hooks.do("page",e)).then(function(){var t=function(t,r){try{var o=(a=i.transitions.get(e,{once:!1,self:n}),Promise.resolve(i.transitions.doPage({data:e,page:s,transition:a,wrapper:i.B})).then(function(){i.q()}))}catch(e){return r()}var a;return o&&o.then?o.then(void 0,r):o}(0,function(){0===l.getLevel()&&i.force(e.current.url.href)});if(t&&t.then)return t.then(function(){})})},i=this;i.data.next.url=r({href:e},i.url.parse(e)),i.data.trigger=t;var s=i.cache.has(e)?i.cache.update(e,{action:"click"}).request:i.cache.set(e,i.request(e,i.timeout,i.onRequestError.bind(i,t),i.customHeaders),"click").request,a=function(){if(i.transitions.shouldWait)return Promise.resolve(j(s,i.data)).then(function(){})}();return Promise.resolve(a&&a.then?a.then(o):o())}catch(e){return Promise.reject(e)}},n.onRequestError=function(e){this.transitions.isRunning=!1;var t=[].slice.call(arguments,1),r=t[0],n=t[1],o=this.cache.getAction(r);return this.cache.delete(r),this._&&!1===this._(e,o,r,n)||"click"===o&&this.force(r),!1},n.prefetch=function(e){var t=this;this.cache.has(e)||this.cache.set(e,this.request(e,this.timeout,this.onRequestError.bind(this,"barba"),this.customHeaders).catch(function(e){t.logger.error(e)}),"prefetch")},n.F=function(){!0!==this.prefetchIgnore&&(document.addEventListener("mouseover",this.I),document.addEventListener("touchstart",this.I)),document.addEventListener("click",this.U),window.addEventListener("popstate",this.C)},n.H=function(){!0!==this.prefetchIgnore&&(document.removeEventListener("mouseover",this.I),document.removeEventListener("touchstart",this.I)),document.removeEventListener("click",this.U),window.removeEventListener("popstate",this.C)},n.I=function(e){var t=this,r=this.N(e);if(r){var n=this.dom.getHref(r);this.prevent.checkHref(n)||this.cache.has(n)||this.cache.set(n,this.request(n,this.timeout,this.onRequestError.bind(this,r),this.customHeaders).catch(function(e){t.logger.error(e)}),"enter")}},n.U=function(e){var t=this.N(e);if(t)return this.transitions.isRunning&&this.preventRunning?(e.preventDefault(),void e.stopPropagation()):void this.go(this.dom.getHref(t),t,e)},n.C=function(e){this.go(this.url.getHref(),"popstate",e)},n.N=function(e){for(var t=e.target;t&&!this.dom.getHref(t);)t=t.parentNode;if(t&&!this.prevent.checkLink(t,e,this.dom.getHref(t)))return t},n.q=function(){var e=this.url.getHref(),t={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:r({href:e},this.url.parse(e))};this.D={current:t,next:r({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},t(e,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.B}}]),e}())});