varfrontexpress=function(){"use strict";functione(e,t){if(t.method&&t.method!==e.method)return!1;if(!t.uri||!e.uri)return!0;varr=/^(.*)\?.*#.*|(.*)(?=\?|#)|(.*[^\?#])$/.exec(e.uri),n=r[1]||r[2]||r[3];if(t.uriinstanceofRegExp)returnnull!==n.match(t.uri);if(-1!==t.uri.indexOf(":")){for(vari=function(e){return!isNaN(parseFloat(e))&&isFinite(e)?Number.isInteger(e)?Number.parseInt(e,10):Number.parseFloat(e):e},a=[],u=/:([^\/\?]+)\??/g,o=u.exec(t.uri);null!=o;)a.push(o[1]),o=u.exec(t.uri);vars=t.uri.replace(/\/:[^\/]+\?/g,"(?:/([^/]+))?").replace(/:[^\/]+/g,"([^/]+)").replace("/","\\/"),f=n.match(newRegExp("^"+s+"$"));return!!f&&(e.params=Object.assign(e.params,a.reduce(function(e,t,r){varn=f[r+1];returnn&&(n=-1!==n.indexOf(",")?n.split(",").map(function(e){returni(e)}):n=i(n)),e[t]=n,e},{})),!0)}returnt.uri===n}functiont(e,t){if("function"!=typeofe)thrownewTypeError(t)}functionr(e){vart,r,n,i,a=void0,u=void0,s=void0,h=void0,c=void0;return1===e.length?(t=e,r=o(t,1),c=r[0]):(n=e,i=o(n,2),a=i[0],c=i[1]),cinstanceofd?s=c:cinstanceoff||"function"==typeofc?u=c:c&&c.plugin&&"function"==typeofc.plugin&&(h=c),{baseUri:a,middleware:u,router:s,plugin:h,which:c}}varn=["GET","POST","PUT","PATCH","DELETE"],i="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},a=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")},u=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){functione(e,t){varr=[],n=!0,i=!1,a=void0;try{for(varu,o=e[Symbol.iterator]();!(n=(u=o.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throwa}}returnr}returnfunction(t,r){if(Array.isArray(t))returnt;if(Symbol.iteratorinObject(t))returne(t,r);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(e){if(Array.isArray(e)){for(vart=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];returnr}returnArray.from(e)},f=function(){functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:"";a(this,e),this.name=t}returnu(e,[{key:"entered",value:function(e){}},{key:"exited",value:function(e){}},{key:"updated",value:function(e,t){}},{key:"failed",value:function(e,t){}},{key:"next",value:function(){return!0}}]),e}(),h=function(){functione(t,r,n,i){a(this,e),this.router=t,this.uriPart=r,this.method=n,this.middleware=i,this.visited=!1}returnu(e,[{key:"uri",get:function(){if(this.uriPart||this.method){if(this.uriPartinstanceofRegExp)returnthis.uriPart;if(this.router.baseUriinstanceofRegExp)returnthis.router.baseUri;if(this.router.baseUri){vare=this.router.baseUri.trim();returnthis.uriPart?(e+this.uriPart.trim()).replace(/\/{2,}/,"/"):e}returnthis.uriPart}}}]),e}(),d=function(){functione(t){a(this,e),this._baseUri=t,this._routes=[]}returnu(e,[{key:"_add",value:function(e){returnthis._routes.push(e),this}},{key:"routes",value:function(e,t){t.params=t.params||{};varr=e.get("route matcher");returnthis._routes.filter(function(e){returnr(t,e)})}},{key:"visited",value:function(){returnthis._routes.filter(function(e){returne.visited})}},{key:"use",value:function(e){if(!(einstanceoff)&&"function"!=typeofe)thrownewTypeError("method takes at least a middleware");returnthis._add(newh(this,void0,void0,e)),this}},{key:"all",value:function(){for(vare=this,t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];if(!r(i).middleware)thrownewTypeError("method takes at least a middleware");returnn.forEach(function(t){e[t.toLowerCase()].apply(e,i)}),this}},{key:"baseUri",set:function(e){if(e){if(!this._baseUri)returnvoid(this._baseUri=e);if(i(this._baseUri)!==(void0===e?"undefined":i(e)))thrownewTypeError("routercannotmix