import{Y as i,_ as c,aa as a,oa as l,tc as d}from"./chunk-WOSO3QBJ.js";import{i as r}from"./chunk-C2HMJUB7.js";var s=new c("cdk-dir-doc",{providedIn:"root",factory:f});function f(){return a(d)}var m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function v(o){let t=o?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?m.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var E=(()=>{let t=class t{value="ltr";change=new l;constructor(){let e=a(s,{optional:!0});if(e){let n=e.body?e.body.dir:null,u=e.documentElement?e.documentElement.dir:null;this.value=v(n||u||"ltr")}}ngOnDestroy(){this.change.complete()}};r(t,"\u0275fac",function(n){return new(n||t)}),r(t,"\u0275prov",i({token:t,factory:t.\u0275fac,providedIn:"root"}));let o=t;return o})();export{E as a};
/**i18n:b44b17e72e4b9ae03afb92709eafda64a985c0c8f0453c865708cceafe42f927*/
//# sourceMappingURL=chunk-PKA2FPPZ.js.map
