import{o as S}from"./chunk-GW2OL5S3.js";import{Cb as d,fa as f,ja as p,xb as a}from"./chunk-DYUFV4HF.js";var u=class extends Error{constructor(){super(`You've forgotten to import "NgxsSelectSnapshotModule"!`)}},c=null;function y(t){if(t==null)throw new u}function b(t){c=t}function m(){c=null}function M(){return y(c),c.get(S)}var D=36;function A(t){typeof t!="string"&&(t=t.toString());let e=t.length-1;return t.charCodeAt(e)===D?t.slice(0,e):t}function P(t,e){return e.length?[t,...e]:t.split(".")}function h(t){let e=[...t];return o=>e.reduce((n,r)=>n&&n[r],o)}var i="NGXS_META";function T(t){return e=>{if(typeof e=="string"){let o=P(e,t);return h(o)}else if(e[i]&&e[i].path)return h(e[i].path.split("."));return e}}function j(t,e,o,n){return t[e]||(t[e]=o(n))}function C(t,e,o,n,r){let s=`__${n.toString()}__selector`,l=T(e);return Object.defineProperties(o,{[s]:{writable:!0,enumerable:!1,configurable:!0},[n]:{get(){let g=j(this,s,l,t);return r=r||M(),r.selectSnapshot(g)},enumerable:!0,configurable:!0}}),{selectorFnName:s,createSelector:l,selectorOrFeature:t||A(n)}}function v(t,...e){return(o,n)=>{C(t,e,o,n)}}var w=Symbol("SUBSCRIPTIONS");var E=(()=>{class t{constructor(o){b(o.injector),o.onDestroy(m)}static forRoot(){return{ngModule:t}}}return t.\u0275fac=function(o){return new(o||t)(p(a))},t.\u0275mod=d({type:t}),t.\u0275inj=f({}),t})();export{v as a,E as b};
//# sourceMappingURL=chunk-Y75MWVBQ.js.map
