var __spreadArray=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,a=r.length;t<n;t++,a++)r[a]=e[t];return r};import{h}from"./index-67f7ec52.js";var createProviderConsumer=function(r,e){var t=new Map;var n=r;var a=function(r,e){if(Array.isArray(r)){__spreadArray([],r).forEach((function(r){e[r]=n[r]}))}else{e[r]=Object.assign({},n)}};var o=function(r,e){if(!t.has(r)){t.set(r,e);a(e,r)}return function(){if(t.has(r)){t.delete(r)}}};var i=function(r,e){var o=r.state;n=o;t.forEach(a);return e};var c=function(r,t){return e(o,t[0])};var s=function(r,e){var n=r.prototype;var a=n.connectedCallback;var i=n.disconnectedCallback;n.connectedCallback=function(){o(this,e);if(a){return a.call(this)}};n.disconnectedCallback=function(){t.delete(this);if(i){i.call(this)}}};return{Provider:i,Consumer:c,injectProps:s}};var ActiveRouter=createProviderConsumer({historyType:"browser",location:{pathname:"",query:{},key:""},titleSuffix:"",root:"/",routeViewsUpdated:function(){}},(function(r,e){return h("context-consumer",{subscribe:r,renderer:e})}));export{ActiveRouter as A};