var __spreadArray=this&&this.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var e=0,a=t.length,c;e<a;e++){if(c||!(e in t)){if(!c)c=Array.prototype.slice.call(t,0,e);c[e]=t[e]}}return r.concat(c||Array.prototype.slice.call(t))};System.register([],(function(r){"use strict";return{execute:function(){var t=r("c",(function(r,t){var n=new Map;var e=r;var a=function(r,t){if(Array.isArray(r)){__spreadArray([],r,true).forEach((function(r){t[r]=e[r]}))}else{t[r]=Object.assign({},e)}};var c=function(r,t){if(!n.has(r)){n.set(r,t);a(t,r)}return function(){if(n.has(r)){n.delete(r)}}};var i=function(r,t){var c=r.state;e=c;n.forEach(a);return t};var o=function(r,n){return t(c,n[0])};var s=function(r,t){var e=r.prototype;var a=e.connectedCallback;var i=e.disconnectedCallback;e.connectedCallback=function(){c(this,t);if(a){return a.call(this)}};e.disconnectedCallback=function(){n.delete(this);if(i){i.call(this)}}};return{Provider:i,Consumer:o,injectProps:s}}))}}}));