@duplicati/ngclient 0.0.218 → 0.0.220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/assets/ship.css +0 -2
  2. package/{chunk-UT42UQWA.js → chunk-22AR7ES3.js} +1 -1
  3. package/{chunk-6HY2QKBL.js → chunk-23SRH7FI.js} +1 -1
  4. package/{chunk-IHNPTBK2.js → chunk-2J2554EV.js} +1 -1
  5. package/chunk-37ODVJFS.js +1 -0
  6. package/chunk-3RCF6UT4.js +1 -0
  7. package/{chunk-DQISAVUL.js → chunk-4E7D5F6K.js} +1 -1
  8. package/chunk-4J6L5OV3.js +1 -0
  9. package/chunk-4OA2FFS5.js +1 -0
  10. package/chunk-4OJPTRZJ.js +1 -0
  11. package/{chunk-B7PXB6LO.js → chunk-5KJPC3V5.js} +1 -1
  12. package/{chunk-X6S2TQ5D.js → chunk-5RNU5BNO.js} +1 -1
  13. package/{chunk-MZAGGSG2.js → chunk-6JS7B4FW.js} +1 -1
  14. package/{chunk-7PBEL6UP.js → chunk-7C2YZVSQ.js} +1 -1
  15. package/chunk-ACTATISC.js +1 -0
  16. package/chunk-ACTJSKQZ.js +2 -0
  17. package/{chunk-OMOPTBR2.js → chunk-AIAUP7OE.js} +1 -1
  18. package/{chunk-Y3LMRA5G.js → chunk-ANSV4G2K.js} +1 -1
  19. package/{chunk-PAXRIMTV.js → chunk-BACKG7KA.js} +1 -1
  20. package/{chunk-XZS6HRVR.js → chunk-BKEJZADV.js} +2 -2
  21. package/{chunk-NXEMSNQO.js → chunk-BLSV7CNZ.js} +1 -1
  22. package/{chunk-6PPCACHR.js → chunk-BZXBH4CN.js} +1 -1
  23. package/chunk-C3PQFWVO.js +1 -0
  24. package/{chunk-O6ZQRIZA.js → chunk-C6PICAXB.js} +1 -1
  25. package/{chunk-LFWCPFV7.js → chunk-CAQ3XMFP.js} +1 -1
  26. package/chunk-DJXLNIMV.js +11 -0
  27. package/{chunk-4KFQXVKU.js → chunk-DSYNIXJF.js} +1 -1
  28. package/chunk-DSZ644JT.js +1 -0
  29. package/chunk-EADZVBRA.js +1 -0
  30. package/{chunk-Y6WYFFBC.js → chunk-EDLHTWBA.js} +1 -1
  31. package/{chunk-VJ3PK33N.js → chunk-EKVZKEQJ.js} +1 -1
  32. package/{chunk-HSAIFBZZ.js → chunk-ELCA5MKF.js} +2 -2
  33. package/chunk-EPIYGHPM.js +1 -0
  34. package/{chunk-GEATZGKK.js → chunk-EXMYBMGI.js} +1 -1
  35. package/{chunk-YEMKFHRS.js → chunk-FBU3EBFO.js} +1 -1
  36. package/{chunk-5VAN6GVG.js → chunk-FD5CKX3J.js} +1 -1
  37. package/{chunk-KDWGBKDI.js → chunk-GKGMP6VF.js} +1 -1
  38. package/chunk-GN7AO4B6.js +1 -0
  39. package/{chunk-3374ABNZ.js → chunk-GRE6GKVP.js} +2 -2
  40. package/chunk-I6MIXWIT.js +1 -0
  41. package/{chunk-TMS3I5A2.js → chunk-IFSZJSGH.js} +1 -1
  42. package/{chunk-B7CN4JEV.js → chunk-IG7XUEED.js} +1 -1
  43. package/chunk-IMQUTGIK.js +1 -0
  44. package/chunk-IQL3REGJ.js +1 -0
  45. package/chunk-IRT2UBDI.js +2 -0
  46. package/{chunk-BOD6INK4.js → chunk-JPCUISZG.js} +1 -1
  47. package/{chunk-Y4TMGQ3H.js → chunk-KDV2OE64.js} +1 -1
  48. package/{chunk-SXNQOAUJ.js → chunk-KZTFESBJ.js} +1 -1
  49. package/{chunk-X5TRWBWL.js → chunk-M3PW6DLD.js} +1 -1
  50. package/{chunk-7BK2K5ML.js → chunk-N2AU7VKX.js} +1 -1
  51. package/chunk-N3NJW75G.js +1 -0
  52. package/{chunk-5Q47XWAA.js → chunk-NHS6CQO2.js} +1 -1
  53. package/{chunk-EZZPO6ZZ.js → chunk-NKUA7I47.js} +2 -2
  54. package/chunk-NPFPMA4P.js +1 -0
  55. package/{chunk-HKQDPKTA.js → chunk-NX35OQ3V.js} +1 -1
  56. package/{chunk-AAUAZ76N.js → chunk-O2SMJYPC.js} +1 -1
  57. package/{chunk-S36F6ZJZ.js → chunk-OHYENIPP.js} +1 -1
  58. package/{chunk-MI3BETEH.js → chunk-OPHQNXYO.js} +1 -1
  59. package/chunk-P4R3ERID.js +1 -0
  60. package/chunk-PG4G4RLP.js +1 -0
  61. package/{chunk-DJIBS7A6.js → chunk-PIGMTUUT.js} +1 -1
  62. package/chunk-PXI3UZ4R.js +1 -0
  63. package/chunk-QDDVZ4CR.js +1 -0
  64. package/{chunk-JJ5XEJ75.js → chunk-QOWXL7ZL.js} +1 -1
  65. package/chunk-QZQS7M3D.js +1 -0
  66. package/{chunk-RZTMWVAA.js → chunk-RGFJ5UMA.js} +1 -1
  67. package/{chunk-54IBJBVK.js → chunk-RJ2JM7C7.js} +1 -1
  68. package/{chunk-2C3OMPC2.js → chunk-RLWICOKH.js} +1 -1
  69. package/chunk-RRDLQLTM.js +1 -0
  70. package/{chunk-SDKAVOP6.js → chunk-TCXCC5BM.js} +1 -1
  71. package/chunk-TQTOIWBK.js +4 -0
  72. package/chunk-UCHK3SHH.js +3 -0
  73. package/{chunk-AC34YYIW.js → chunk-UTXZPAY6.js} +1 -1
  74. package/chunk-VC55KFAX.js +1 -0
  75. package/chunk-VKQQDCUN.js +1 -0
  76. package/{chunk-VOHSRCTH.js → chunk-WOKYULBU.js} +1 -1
  77. package/{chunk-OZDUAVJM.js → chunk-X276XFCH.js} +1 -1
  78. package/{chunk-KQR3DEQ4.js → chunk-XDBSTUYC.js} +1 -1
  79. package/chunk-XEG3CP74.js +1 -0
  80. package/chunk-XWTB7XRI.js +1 -0
  81. package/chunk-XXVDL5TR.js +1 -0
  82. package/{chunk-FHH444ZI.js → chunk-YCJYEQF7.js} +1 -1
  83. package/chunk-YWBZLU6M.js +1 -0
  84. package/chunk-YWUUX3S6.js +1 -0
  85. package/{chunk-GIITUFAQ.js → chunk-ZC23RK4J.js} +1 -1
  86. package/{chunk-SRILTSQM.js → chunk-ZEFSBETQ.js} +1 -1
  87. package/chunk-ZHQI6LYB.js +1 -0
  88. package/chunk-ZNYN6ES6.js +1 -0
  89. package/chunk-ZNYRWXQR.js +1 -0
  90. package/{chunk-2LDEHODA.js → chunk-ZP3QZ43W.js} +1 -1
  91. package/{chunk-PSISW3DT.js → chunk-ZYRB2TUK.js} +1 -1
  92. package/index.html +2 -2
  93. package/{main-57XFFSWO.js → main-7J2QXC6H.js} +1 -1
  94. package/package.json +1 -1
  95. package/ship-ui-assets/mcp/components.json +137 -350
  96. package/styles-S2CJL4OY.css +1 -0
  97. package/chunk-4U5P2NHK.js +0 -1
  98. package/chunk-53YJLSUR.js +0 -1
  99. package/chunk-5DB5LJ2V.js +0 -1
  100. package/chunk-5QCIXYJ2.js +0 -1
  101. package/chunk-5TT43ERP.js +0 -1
  102. package/chunk-6LPGVWBH.js +0 -1
  103. package/chunk-6XWKOOJR.js +0 -1
  104. package/chunk-C56RQYG4.js +0 -2
  105. package/chunk-CL2S4OQ7.js +0 -1
  106. package/chunk-E3UAEGAI.js +0 -1
  107. package/chunk-G5IUH2UI.js +0 -1
  108. package/chunk-GNMIMW7D.js +0 -1
  109. package/chunk-GQWUTQIZ.js +0 -1
  110. package/chunk-HN6343SO.js +0 -3
  111. package/chunk-IFZC7RUJ.js +0 -2
  112. package/chunk-IM6CS76E.js +0 -1
  113. package/chunk-J6OYVDRR.js +0 -1
  114. package/chunk-JNWS5H5A.js +0 -1
  115. package/chunk-KTRNTLNO.js +0 -1
  116. package/chunk-LRZXNEAQ.js +0 -1
  117. package/chunk-NFXXT6A3.js +0 -4
  118. package/chunk-NPL5UWFD.js +0 -1
  119. package/chunk-O42PEGVX.js +0 -1
  120. package/chunk-OW2XLFBF.js +0 -1
  121. package/chunk-Q6A652RP.js +0 -1
  122. package/chunk-R3H3RDDJ.js +0 -1
  123. package/chunk-RLWCEUKT.js +0 -1
  124. package/chunk-RXWMHEJY.js +0 -1
  125. package/chunk-S235GCI6.js +0 -1
  126. package/chunk-TSDCJYMP.js +0 -1
  127. package/chunk-UOTOQXS3.js +0 -1
  128. package/chunk-V42HCQ3A.js +0 -1
  129. package/chunk-V4NNTODH.js +0 -1
  130. package/chunk-V6U75SVY.js +0 -1
  131. package/chunk-YXRM2NKT.js +0 -11
  132. package/chunk-ZJAQQH7X.js +0 -1
  133. package/chunk-ZXAPMIF3.js +0 -1
  134. package/styles-VWVVVLVS.css +0 -1
package/chunk-E3UAEGAI.js DELETED
@@ -1 +0,0 @@
1
- import{aa as Ht,ha as jt,ya as Ci}from"./chunk-GIITUFAQ.js";import{a as Bt}from"./chunk-MI3BETEH.js";import{$a as M,$b as h,$c as $,Ab as Ae,Ac as J,Bb as ke,Bc as ht,Cb as X,Cc as Xe,Db as f,Dc as kt,Eb as v,Fb as ue,Gb as P,Hb as B,Ib as Ee,Kc as _i,Lb as be,Mb as Q,Nb as Vt,Pc as Pt,Qc as oe,Ra as pi,Rc as O,S as lt,Sa as p,U as se,V as Ne,W as je,Wc as re,Xa as Tt,Xc as c,Y as fe,Ya as $e,Yc as Z,Zb as E,_ as C,_a as ge,_b as ve,_c as Ft,ab as fi,ac as H,ad as Rt,ba as di,bb as gi,bc as g,ca as ui,da as F,ea as R,ed as pt,fc as Nt,g as ri,gb as A,gc as le,gd as Lt,ha as Ie,hb as We,hc as te,ia as _e,ib as L,ic as It,ja as Ce,jc as ie,k as ai,kb as G,kc as j,la as ye,lb as me,lc as At,mc as k,nc as y,ob as ct,oc as Pe,pa as _,pb as mi,pc as ne,q as li,qc as dt,ra as N,sa as ze,sb as Ot,sc as qe,ta as xe,tc as Ue,uc as Ye,va as I,vb as K,vc as ut,w as ci,wb as w,wc as de,xb as T,xc as q,yb as Ge,za as hi,zb as vi}from"./chunk-NFXXT6A3.js";import{a as z,b as U,c as si}from"./chunk-7CGTOI24.js";var Ti=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||n)(M(ge),M(I))};static \u0275dir=L({type:n})}return n})(),ot=(()=>{class n extends Ti{static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,features:[G]})}return n})(),Se=new fe(""),tn={provide:Se,useExisting:se(()=>nn),multi:!0},nn=(()=>{class n extends ot{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,i){t&1&&E("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[J([tn]),G]})}return n})(),on={provide:Se,useExisting:se(()=>Oi),multi:!0};function sn(){let n=Bt()?Bt().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var rn=new fe(""),Oi=(()=>{class n extends Ti{_compositionMode;_composing=!1;constructor(e,t,i){super(e,t),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!sn())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||n)(M(ge),M(I),M(rn,8))};static \u0275dir=L({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,i){t&1&&E("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},standalone:!1,features:[J([on]),G]})}return n})();function Gt(n){return n==null||qt(n)===0}function qt(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var we=new fe(""),Te=new fe(""),an=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yi=class{static min(o){return ln(o)}static max(o){return cn(o)}static required(o){return dn(o)}static requiredTrue(o){return un(o)}static email(o){return hn(o)}static minLength(o){return pn(o)}static maxLength(o){return fn(o)}static pattern(o){return gn(o)}static nullValidator(o){return Vi()}static compose(o){return Fi(o)}static composeAsync(o){return Ri(o)}};function ln(n){return o=>{if(o.value==null||n==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e<n?{min:{min:n,actual:o.value}}:null}}function cn(n){return o=>{if(o.value==null||n==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e>n?{max:{max:n,actual:o.value}}:null}}function dn(n){return Gt(n.value)?{required:!0}:null}function un(n){return n.value===!0?null:{required:!0}}function hn(n){return Gt(n.value)||an.test(n.value)?null:{email:!0}}function pn(n){return o=>{let e=o.value?.length??qt(o.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function fn(n){return o=>{let e=o.value?.length??qt(o.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function gn(n){if(!n)return Vi;let o,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),o=new RegExp(e)):(e=n.toString(),o=n),t=>{if(Gt(t.value))return null;let i=t.value;return o.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function Vi(n){return null}function Ni(n){return n!=null}function Ii(n){return mi(n)?ai(n):n}function Ai(n){let o={};return n.forEach(e=>{o=e!=null?z(z({},o),e):o}),Object.keys(o).length===0?null:o}function ki(n,o){return o.map(e=>e(n))}function mn(n){return!n.validate}function Pi(n){return n.map(o=>mn(o)?o:e=>o.validate(e))}function Fi(n){if(!n)return null;let o=n.filter(Ni);return o.length==0?null:function(e){return Ai(ki(e,o))}}function Ut(n){return n!=null?Fi(Pi(n)):null}function Ri(n){if(!n)return null;let o=n.filter(Ni);return o.length==0?null:function(e){let t=ki(e,o).map(Ii);return ci(t).pipe(li(Ai))}}function Yt(n){return n!=null?Ri(Pi(n)):null}function bi(n,o){return n===null?[o]:Array.isArray(n)?[...n,o]:[n,o]}function Li(n){return n._rawValidators}function Bi(n){return n._rawAsyncValidators}function zt(n){return n?Array.isArray(n)?n:[n]:[]}function gt(n,o){return Array.isArray(n)?n.includes(o):n===o}function Di(n,o){let e=zt(o);return zt(n).forEach(i=>{gt(e,i)||e.push(i)}),e}function Si(n,o){return zt(o).filter(e=>!gt(n,e))}var mt=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=Ut(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control?.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},ee=class extends mt{name;get formDirective(){return null}get path(){return null}},he=class extends mt{_parent=null;name=null;valueAccessor=null},vt=class{_cd;constructor(o){this._cd=o}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Ir=(()=>{class n extends vt{constructor(e){super(e)}static \u0275fac=function(t){return new(t||n)(M(he,2))};static \u0275dir=L({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){t&2&&j("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[G]})}return n})(),Ar=(()=>{class n extends vt{constructor(e){super(e)}static \u0275fac=function(t){return new(t||n)(M(ee,10))};static \u0275dir=L({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,i){t&2&&j("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[G]})}return n})();var Qe="VALID",ft="INVALID",Fe="PENDING",Ke="DISABLED",De=class{},_t=class extends De{value;source;constructor(o,e){super(),this.value=o,this.source=e}},Je=class extends De{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},et=class extends De{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},Re=class extends De{status;source;constructor(o,e){super(),this.status=o,this.source=e}},Ct=class extends De{source;constructor(o){super(),this.source=o}},it=class extends De{source;constructor(o){super(),this.source=o}};function Xt(n){return(St(n)?n.validators:n)||null}function vn(n){return Array.isArray(n)?Ut(n):n||null}function Qt(n,o){return(St(o)?o.asyncValidators:n)||null}function _n(n){return Array.isArray(n)?Yt(n):n||null}function St(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Hi(n,o,e){let t=n.controls;if(!(o?Object.keys(t):t).length)throw new lt(1e3,"");if(!t[e])throw new lt(1001,"")}function ji(n,o,e){n._forEachChild((t,i)=>{if(e[i]===void 0)throw new lt(1002,"")})}var Le=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return oe(this.statusReactive)}set status(o){oe(()=>this.statusReactive.set(o))}_status=O(()=>this.statusReactive());statusReactive=_(void 0);get valid(){return this.status===Qe}get invalid(){return this.status===ft}get pending(){return this.status==Fe}get disabled(){return this.status===Ke}get enabled(){return this.status!==Ke}errors;get pristine(){return oe(this.pristineReactive)}set pristine(o){oe(()=>this.pristineReactive.set(o))}_pristine=O(()=>this.pristineReactive());pristineReactive=_(!0);get dirty(){return!this.pristine}get touched(){return oe(this.touchedReactive)}set touched(o){oe(()=>this.touchedReactive.set(o))}_touched=O(()=>this.touchedReactive());touchedReactive=_(!1);get untouched(){return!this.touched}_events=new ri;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(Di(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(Di(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Si(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Si(o,this._rawAsyncValidators))}hasValidator(o){return gt(this._rawValidators,o)}hasAsyncValidator(o){return gt(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let t=o.sourceControl??this;o.onlySelf||this._parent?.markAsTouched(U(z({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new et(!0,t))}markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=o.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:t})}),o.onlySelf||this._parent?._updateTouched(o,t),e&&o.emitEvent!==!1&&this._events.next(new et(!1,t))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let t=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(U(z({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Je(!1,t))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=o.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,t),e&&o.emitEvent!==!1&&this._events.next(new Je(!0,t))}markAsPending(o={}){this.status=Fe;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Re(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(U(z({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Ke,this.errors=null,this._forEachChild(i=>{i.disable(U(z({},o),{onlySelf:!0}))}),this._updateValue();let t=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new _t(this.value,t)),this._events.next(new Re(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(z({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Qe,this._forEachChild(t=>{t.enable(U(z({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(U(z({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o,e){o.onlySelf||(this._parent?.updateValueAndValidity(o),o.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qe||this.status===Fe)&&this._runAsyncValidator(t,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new _t(this.value,e)),this._events.next(new Re(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(U(z({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ke:Qe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=Fe,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let t=Ii(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,i)=>t&&t._find(i),this)}getError(o,e){let t=e?this.get(e):this;return t?.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,t){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||t)&&this._events.next(new Re(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,t)}_initObservables(){this.valueChanges=new ye,this.statusChanges=new ye}_calculateStatus(){return this._allControlsDisabled()?Ke:this.errors?ft:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fe)?Fe:this._anyControlsHaveStatus(ft)?ft:Qe}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let t=!this._anyControlsDirty(),i=this.pristine!==t;this.pristine=t,o.onlySelf||this._parent?._updatePristine(o,e),i&&this._events.next(new Je(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new et(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){St(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=vn(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=_n(this._rawAsyncValidators)}},Be=class extends Le{constructor(o,e,t){super(Xt(e),Qt(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){ji(this,!0,o),Object.keys(o).forEach(t=>{Hi(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(Object.keys(o).forEach(t=>{let i=this.controls[t];i&&i.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,i)=>{t.reset(o?o[i]:null,U(z({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new it(this))}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){let o={};return this._reduceChildren(o,(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((i,s)=>{t=e(t,i,s)}),t}_allControlsDisabled(){for(let o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}};var $t=class extends Be{};var Oe=new fe("",{factory:()=>st}),st="always";function Mt(n,o){return[...o.path,n]}function nt(n,o,e=st){Kt(n,o),o.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(n.disabled),yn(n,o),Dn(n,o),bn(n,o),Cn(n,o)}function yt(n,o,e=!0){let t=()=>{};o?.valueAccessor?.registerOnChange(t),o?.valueAccessor?.registerOnTouched(t),Dt(n,o),n&&(o._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function bt(n,o){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function Cn(n,o){if(o.valueAccessor.setDisabledState){let e=t=>{o.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),o._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function Kt(n,o){let e=Li(n);o.validator!==null?n.setValidators(bi(e,o.validator)):typeof e=="function"&&n.setValidators([e]);let t=Bi(n);o.asyncValidator!==null?n.setAsyncValidators(bi(t,o.asyncValidator)):typeof t=="function"&&n.setAsyncValidators([t]);let i=()=>n.updateValueAndValidity();bt(o._rawValidators,i),bt(o._rawAsyncValidators,i)}function Dt(n,o){let e=!1;if(n!==null){if(o.validator!==null){let i=Li(n);if(Array.isArray(i)&&i.length>0){let s=i.filter(r=>r!==o.validator);s.length!==i.length&&(e=!0,n.setValidators(s))}}if(o.asyncValidator!==null){let i=Bi(n);if(Array.isArray(i)&&i.length>0){let s=i.filter(r=>r!==o.asyncValidator);s.length!==i.length&&(e=!0,n.setAsyncValidators(s))}}}let t=()=>{};return bt(o._rawValidators,t),bt(o._rawAsyncValidators,t),e}function yn(n,o){o.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&zi(n,o)})}function bn(n,o){o.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&zi(n,o),n.updateOn!=="submit"&&n.markAsTouched()})}function zi(n,o){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Dn(n,o){let e=(t,i)=>{o.valueAccessor.writeValue(t),i&&o.viewToModelUpdate(t)};n.registerOnChange(e),o._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function $i(n,o){n==null,Kt(n,o)}function Sn(n,o){return Dt(n,o)}function Zt(n,o){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function Mn(n){return Object.getPrototypeOf(n.constructor)===ot}function Wi(n,o){n._syncPendingControls(),o.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Jt(n,o){if(!o)return null;Array.isArray(o);let e,t,i;return o.forEach(s=>{s.constructor===Oi?e=s:Mn(s)?t=s:i=s}),i||t||e||null}function xn(n,o){let e=n.indexOf(o);e>-1&&n.splice(e,1)}var En={provide:ee,useExisting:se(()=>wn)},Ze=Promise.resolve(),wn=(()=>{class n extends ee{callSetDisabledState;get submitted(){return oe(this.submittedReactive)}_submitted=O(()=>this.submittedReactive());submittedReactive=_(!1);_directives=new Set;form;ngSubmit=new ye;options;constructor(e,t,i){super(),this.callSetDisabledState=i,this.form=new Be({},Ut(e),Yt(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ze.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),nt(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ze.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ze.then(()=>{let t=this._findContainer(e.path),i=new Be({});$i(i,e),t.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ze.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ze.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Wi(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Ct(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(t){return new(t||n)(M(we,10),M(Te,10),M(Oe,8))};static \u0275dir=L({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){t&1&&E("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[J([En]),G]})}return n})();function Mi(n,o){let e=n.indexOf(o);e>-1&&n.splice(e,1)}function xi(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var tt=class extends Le{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,t){super(Xt(e),Qt(t,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),St(e)&&(e.nonNullable||e.initialValueIsDefault)&&(xi(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new it(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Mi(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Mi(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(o){xi(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}};var Tn=n=>n instanceof tt,On=(()=>{class n extends ee{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Mt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,standalone:!1,features:[G]})}return n})();var Vn={provide:he,useExisting:se(()=>xt)},Ei=Promise.resolve(),xt=(()=>{class n extends he{_changeDetectorRef;callSetDisabledState;control=new tt;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ye;constructor(e,t,i,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=Jt(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Zt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){nt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Ei.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,i=t!==0&&pt(t);Ei.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Mt(e,this._parent):[e]}static \u0275fac=function(t){return new(t||n)(M(ee,9),M(we,10),M(Te,10),M(Se,10),M(Rt,8),M(Oe,8))};static \u0275dir=L({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[J([Vn]),G,ze]})}return n})();var Pr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=L({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),Nn={provide:Se,useExisting:se(()=>In),multi:!0},In=(()=>{class n extends ot{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){t&1&&E("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[J([Nn]),G]})}return n})(),An={provide:Se,useExisting:se(()=>Pn),multi:!0};var kn=(()=>{class n{_accessors=[];add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e){this._accessors.splice(t,1);return}}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return e[0].control?e[0]._parent===t._control._parent&&e[1].name===t.name:!1}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Pn=(()=>{class n extends ot{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=C(Oe,{optional:!0})??st;constructor(e,t,i,s){super(e,t),this._registry=i,this._injector=s}ngOnInit(){this._control=this._injector.get(he),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(t){return new(t||n)(M(ge),M(I),M(kn),M(Ie))};static \u0275dir=L({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,i){t&1&&E("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[J([An]),G]})}return n})(),Fn={provide:Se,useExisting:se(()=>Rn),multi:!0},Rn=(()=>{class n extends ot{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,i){t&1&&E("change",function(r){return i.onChange(r.target.value)})("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[J([Fn]),G]})}return n})(),Wt=class extends Le{constructor(o,e,t){super(Xt(e),Qt(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){Array.isArray(o)?o.forEach(t=>{this.controls.push(t),this._registerControl(t)}):(this.controls.push(o),this._registerControl(o)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let i=this._adjustIndex(o);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){ji(this,!1,o),o.forEach((t,i)=>{Hi(this,!1,i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(o.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,i)=>{t.reset(o[i],U(z({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new it(this))}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(let o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}};var Gi=(()=>{class n extends ee{callSetDisabledState;get submitted(){return oe(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=O(()=>this._submittedReactive());_submittedReactive=_(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,t,i){super(),this.callSetDisabledState=i,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Dt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let t=this.form.get(e.path);return nt(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){yt(e.control||null,e,!1),xn(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,t){this.form.get(e.path).setValue(t)}onReset(){this.resetForm()}resetForm(e=void 0,t={}){this.form.reset(e,t),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,Wi(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ct(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,i=this.form.get(e.path);t!==i&&(yt(t||null,e),Tn(i)&&(nt(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);$i(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let t=this.form?.get(e.path);t&&Sn(t,e)&&t.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){Kt(this.form,this),this._oldForm&&Dt(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(t){return new(t||n)(M(we,10),M(Te,10),M(Oe,8))};static \u0275dir=L({type:n,features:[G,ze]})}return n})();var ei=new fe(""),Ln={provide:he,useExisting:se(()=>Bn)},Bn=(()=>{class n extends he{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new ye;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,i,s,r){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Jt(this,i)}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&yt(t,this,!1),nt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Zt(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&yt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(t){return new(t||n)(M(we,10),M(Te,10),M(Se,10),M(ei,8),M(Oe,8))};static \u0275dir=L({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[J([Ln]),G,ze]})}return n})(),Hn={provide:ee,useExisting:se(()=>qi)},qi=(()=>{class n extends On{name=null;constructor(e,t,i){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(i)}_checkParentType(){Yi(this._parent)}static \u0275fac=function(t){return new(t||n)(M(ee,13),M(we,10),M(Te,10))};static \u0275dir=L({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[J([Hn]),G]})}return n})(),jn={provide:ee,useExisting:se(()=>Ui)},Ui=(()=>{class n extends ee{_parent;name=null;constructor(e,t,i){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(i)}ngOnInit(){Yi(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Mt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(t){return new(t||n)(M(ee,13),M(we,10),M(Te,10))};static \u0275dir=L({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[J([jn]),G]})}return n})();function Yi(n){return!(n instanceof qi)&&!(n instanceof Gi)&&!(n instanceof Ui)}var zn={provide:he,useExisting:se(()=>$n)},$n=(()=>{class n extends he{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new ye;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,i,s,r){super(),this._ngModelWarningConfig=r,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=Jt(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Zt(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Mt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(t){return new(t||n)(M(ee,13),M(we,10),M(Te,10),M(Se,10),M(ei,8))};static \u0275dir=L({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[J([zn]),G,ze]})}return n})();var Wn={provide:ee,useExisting:se(()=>Gn)},Gn=(()=>{class n extends Gi{form=null;ngSubmit=new ye;get control(){return this.form}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){t&1&&E("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[J([Wn]),G]})}return n})();var Xi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=We({type:n});static \u0275inj=je({})}return n})();function wi(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Fr=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,t=null){let i=this._reduceControls(e),s={};return wi(t)?s=t:t!==null&&(s.validators=t.validator,s.asyncValidators=t.asyncValidator),new Be(i,s)}record(e,t=null){let i=this._reduceControls(e);return new $t(i,t)}control(e,t,i){let s={};return this.useNonNullable?(wi(t)?s=t:(s.validators=t,s.asyncValidators=i),new tt(e,U(z({},s),{nonNullable:!0}))):new tt(e,t,i)}array(e,t,i){let s=e.map(r=>this._createControl(r));return new Wt(s,t,i)}_reduceControls(e){let t={};return Object.keys(e).forEach(i=>{t[i]=this._createControl(e[i])}),t}_createControl(e){if(e instanceof tt)return e;if(e instanceof Le)return e;if(Array.isArray(e)){let t=e[0],i=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(t,i,s)}else return this.control(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Rr=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Oe,useValue:e.callSetDisabledState??st}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=We({type:n});static \u0275inj=je({imports:[Xi]})}return n})(),Lr=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:ei,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Oe,useValue:e.callSetDisabledState??st}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=We({type:n});static \u0275inj=je({imports:[Xi]})}return n})();var ae=["*"],qn=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["button"]],[["","actions",""]],[["","content",""]],[["p"]]],Un=["[icon]","sh-icon","[title]","*","button","[actions]","[content]","p"];function Yn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"info"),v())}function Xn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"info"),v())}function Qn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"warning"),v())}function Kn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"warning-octagon"),v())}function Zn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"check-circle"),v())}function Jn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"question"),v())}function eo(n,o){if(n&1){let e=Q();f(0,"sh-icon",8),E("click",function(){F(e);let i=h();return R(i.removeAlert())}),y(1,"plus"),v()}}var to=["dialogRef"];function io(n,o){if(n&1){let e=Q();P(0,"div",5),ve("click",function(){F(e);let i=h(2);return R(i.isOpen.set(!1))}),B()}}function no(n,o){if(n&1&&(P(0,"dialog",2,0)(2,"div",3),g(3),B(),w(4,io,1,0,"div",4),B()),n&2){let e=h(),t=q(0);k(t.class),ie("width",t.width??"")("max-width",t.maxWidth??"")("max-height",t.maxHeight??"")("height",t.height??""),p(4),T(e.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var oo=["shButton",""],ti=["internalInput"];function so(n,o){if(n&1){let e=Q();f(0,"input",6,0),E("change",function(i){F(e);let s=h();return R(s.onInternalInputChange(i))}),v()}if(n&2){let e=h();X("checked",e.checked()),K("disabled",e.disabled()?"":null)}}var ro=["triggerRef"],ao=["popoverRef"],lo=["popoverContentRef"],co=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],uo=["[trigger]","button","[shButton]","*"];function ho(n,o){if(n&1){let e=Q();P(0,"div",6,1)(2,"div",7),ve("click",function(i){F(e);let s=h();return R(s.eventClose(i))}),B(),P(3,"div",8,2),g(5,3),B()()}if(n&2){let e=h();K("id",e.id()+"hello"),p(3),At(e.menuStyle()),ie("position-anchor",e.id())}}var po=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","popoverContent",""]],[["","error",""]],[["","hint",""]]],fo=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[popoverContent]","[error]","[hint]"],Qi=()=>({closeOnButton:!1,closeOnEsc:!0}),go=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","textSuffix",""]],[["","suffix",""]]],mo=["label","[prefix]","[textPrefix]","input","[textSuffix]","[suffix]"];var vo=["daysRef"];function _o(n,o){if(n&1&&y(0),n&2){let e=h();ne(" - ",e.getMonthName(e.getLastVisibleMonth())," ")}}function Co(n,o){if(n&1&&(f(0,"div"),y(1),v()),n&2){let e=o.$implicit;p(),Pe(e)}}function yo(n,o){if(n&1){let e=Q();f(0,"div",2,1),E("click",function(){let i=F(e).$implicit,s=It(1),r=h(2);return R(r.setDate(i,s))}),y(2),v()}if(n&2){let e=o.$implicit,t=h().$implicit,i=h();k(i.isDateSelected(e)),j("out-of-scope",!i.isCurrentMonth(e,t)),p(2),ne(" ",e.getDate()," ")}}function bo(n,o){if(n&1&&(f(0,"article",7),ue(1,"div",9),v()),n&2){let e=h(2);p(),At(e.selectedDateStylePosition())}}function Do(n,o){if(n&1&&(f(0,"div",5)(1,"nav",6),Ae(2,Co,2,1,"div",null,Ge),v(),f(4,"div",7,0),Ae(6,yo,3,5,"div",8,Ge),w(8,bo,2,2,"article",7),v()()),n&2){let e=o.$implicit,t=h();p(2),ke(t.weekdays()),p(4),ke(t.getMonthDates(e)),p(2),T(t.asRange()?-1:8)}}function So(n,o){if(n&1&&(f(0,"div",3),y(1),v()),n&2){let e=h();p(),ne(" ",e._maskedDate()," ")}}function Mo(n,o){if(n&1){let e=Q();f(0,"sh-datepicker",7),E("dateChange",function(i){F(e);let s=h();return R(s.onDateChange(i))}),v()}if(n&2){let e=h();k(e.currentClass()),X("date",e.internalDate())}}function xo(n,o){}var Eo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],wo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],To=["input"],Oo=[[["label"]]],Vo=["label"];function No(n,o){if(n&1&&(f(0,"div",3),y(1),v()),n&2){let e=h();p(),Pe(e.files()[0].name)}}function Io(n,o){if(n&1&&(f(0,"div",3),y(1),v()),n&2){let e=h();p(),ne("",e.files().length," files selected")}}function Ao(n,o){if(n&1&&(f(0,"div",4),y(1),v()),n&2){let e=h();p(),Pe(e.filesOver()?e.overlayText():e.placeholder())}}var ko=["inputRef"],Po=["optionsRef"],Fo=["*",[["","menu",""]]],Ro=["*","[menu]"];function Lo(n,o){n&1&&(f(0,"sh-icon",5),y(1,"caret-down"),v())}function Bo(n,o){if(n&1){let e=Q();P(0,"input",3,0),ve("change",function(i){F(e);let s=h();return R(s.onInternalInputChange(i))}),B()}if(n&2){let e=h();Vt("checked",e.checked()),K("disabled",e.disabled()?"":null)}}var Ho=[[["label"]],[["input","type","range"]]],jo=["label","input[type=range]"],zo=["optionsWrap"],$o=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],Wo=["label","[prefix]","[boxPrefix]","input","textarea"],Go=()=>({closeOnButton:!1,closeOnEsc:!1}),Ki=(n,o)=>({$implicit:n,last:o}),Et=n=>({$implicit:n});function qo(n,o){if(n&1&&y(0),n&2){let e=h();ne(" ",e.inputValue()," ")}}function Uo(n,o){n&1&&be(0)}function Yo(n,o){if(n&1&&me(0,Uo,1,0,"ng-container",13),n&2){let e=h(3),t=e.$implicit,i=e.$index,s=e.$count;h(2);let r=q(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",kt(2,Ki,t,i===s-1))}}function Xo(n,o){if(n&1&&y(0),n&2){let e=h(3).$implicit,t=h(2);ne(" ",t.getLabel(e)," ")}}function Qo(n,o){if(n&1){let e=Q();f(0,"sh-chip",12),E("click",function(i){F(e);let s=h(2).$index,r=h(2);return R(r.removeSelectedOptionByIndex(i,s))}),w(1,Yo,1,5,"ng-container")(2,Xo,1,1),f(3,"sh-icon"),y(4,"x-bold"),v()()}if(n&2){let e=h(4),t=q(3);k(e.selectClasses()),p(),T(t?1:2)}}function Ko(n,o){n&1&&be(0)}function Zo(n,o){if(n&1&&me(0,Ko,1,0,"ng-container",13),n&2){let e=h(4),t=e.$implicit,i=e.$index,s=e.$count;h(2);let r=q(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",kt(2,Ki,t,i===s-1))}}function Jo(n,o){if(n&1&&y(0),n&2){let e=h(4),t=e.$implicit,i=e.$index,s=e.$count,r=h(2);ne(" ",i===s-1?r.getLabel(t):r.getLabel(t)+","," ")}}function es(n,o){if(n&1&&w(0,Zo,1,5,"ng-container")(1,Jo,1,1),n&2){h(5);let e=q(3);T(e?0:1)}}function ts(n,o){if(n&1&&w(0,es,2,1),n&2){h(4);let e=q(6);T(e?-1:0)}}function is(n,o){if(n&1&&w(0,Qo,5,3,"sh-chip",11)(1,ts,1,1),n&2){h(3);let e=q(5);T(e?0:1)}}function ns(n,o){if(n&1&&w(0,is,2,1),n&2){let e=o.$implicit;T(e?0:-1)}}function os(n,o){if(n&1&&Ae(0,ns,1,1,null,null,Ge),n&2){h();let e=q(2);ke(e)}}function ss(n,o){n&1&&be(0)}function rs(n,o){if(n&1&&me(0,ss,1,0,"ng-container",14),n&2){h(2);let e=q(0);X("ngTemplateOutlet",e)}}function as(n,o){if(n&1&&y(0),n&2){let e=h(2);ne(" ",e.placeholderText()??""," ")}}function ls(n,o){if(n&1&&w(0,rs,1,1,"ng-container")(1,as,1,1),n&2){h();let e=q(0);T(e?0:1)}}function cs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"caret-down"),v())}function ds(n,o){n&1&&ue(0,"sh-spinner",7)}function us(n,o){n&1&&(f(0,"sh-icon",6),y(1,"list-magnifying-glass"),v())}function hs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"magnifying-glass"),v())}function ps(n,o){if(n&1){let e=Q();f(0,"sh-icon",15),E("click",function(i){F(e);let s=h();return R(s.clear(i))}),y(1,"x-bold"),v()}}function fs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"caret-down"),v())}function gs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"caret-up"),v())}function ms(n,o){if(n&1&&(f(0,"p",9),y(1),v()),n&2){let e=h(3);p(),Pe(e.freeTextTitle())}}function vs(n,o){n&1&&be(0)}function _s(n,o){if(n&1&&me(0,vs,1,0,"ng-container",13),n&2){h(2);let e=q(0);h();let t=q(1);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Xe(2,Et,e))}}function Cs(n,o){n&1&&be(0)}function ys(n,o){if(n&1&&me(0,Cs,1,0,"ng-container",13),n&2){h(2);let e=q(0);h();let t=q(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Xe(2,Et,e))}}function bs(n,o){if(n&1&&y(0),n&2){h(2);let e=q(1);ne(" ",e," ")}}function Ds(n,o){n&1&&ue(0,"sh-divider")}function Ss(n,o){if(n&1){let e=Q();w(0,ms,2,1,"p",9),f(1,"li",16),E("click",function(){F(e);let i=h(2);return R(i.toggleOptionByIndex(-1))}),w(2,_s,1,4,"ng-container")(3,ys,1,4,"ng-container")(4,bs,1,1),v(),w(5,Ds,1,0,"sh-divider")}if(n&2){h();let e=q(0),t=h(),i=q(1),s=q(4);T(t.freeTextTitle()?0:-1),p(),j("selected",t.isSelected(-1))("focused",t.focusedOptionIndex()===-1),X("id",t.getLabelAsSlug(e)),K("aria-selected",t.isSelected(-1)),p(),T(i?2:s?3:4),p(3),T(t.freeTextTitle()&&t.filteredOptions().length>0?5:-1)}}function Ms(n,o){if(n&1&&(ut(0)(1),w(2,Ss,6,9)),n&2){let e=h(),t=de(e.computedFreeTextOption());p();let i=de(e.getValue(t));p(),T(i.length>0?2:-1)}}function xs(n,o){if(n&1&&(f(0,"p",9),y(1),v()),n&2){let e=h();p(),Pe(e.optionTitle())}}function Es(n,o){if(n&1&&ue(0,"sh-checkbox",18),n&2){let e=h().$index,t=h();k(t.selectClasses()),X("checked",t.isSelected(e))}}function ws(n,o){n&1&&be(0)}function Ts(n,o){if(n&1&&me(0,ws,1,0,"ng-container",13),n&2){let e=h().$implicit;h();let t=q(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Xe(2,Et,e))}}function Os(n,o){if(n&1&&y(0),n&2){let e=h().$implicit,t=h();ne(" ",t.getLabel(e)," ")}}function Vs(n,o){if(n&1){let e=Q();f(0,"li",16),E("click",function(){let i=F(e).$index,s=h();return R(s.toggleOptionByIndex(i))}),w(1,Es,1,3,"sh-checkbox",17),w(2,Ts,1,4,"ng-container")(3,Os,1,1),v()}if(n&2){let e=o.$implicit,t=o.$index,i=h(),s=q(4);j("selected",i.isSelected(t))("focused",t===i.focusedOptionIndex()),X("id",i.getLabelAsSlug(e)),K("aria-selected",i.isSelected(t)),p(),T(i.selectMultiple()?1:-1),p(),T(s?2:3)}}var Ns=["dragImageElement"],Is=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],As=["[sidenav]","[sidenav-closed-topbar]","*"];function ks(n,o){n&1&&Ee(0,"div",1,0)}function Ps(n,o){if(n&1){let e=Q();P(0,"div",7),ve("drop",function(i){F(e);let s=h();return R(s.drop(i))})("dragenter",function(){F(e);let i=h();return R(i.dragEnter())})("dragleave",function(){F(e);let i=h();return R(i.dragLeave())}),B()}}function Fs(n,o){if(n&1){let e=Q();P(0,"div",8),ve("dragstart",function(i){F(e);let s=h();return R(s.dragStart(i))})("dragend",function(i){F(e);let s=h();return R(s.dragEnd(i))})("drag",function(i){F(e);let s=h();return R(s.drag(i))})("touchstart",function(i){F(e);let s=h();return R(s.touchStart(i))})("touchmove",function(i){F(e);let s=h();return R(s.touchMove(i))})("touchend",function(i){F(e);let s=h();return R(s.touchEnd(i))})("touchcancel",function(i){F(e);let s=h();return R(s.touchCancel(i))}),B()}}var Rs=["thead"],Ls=["tbody"],Bs=[[["","actionbar",""]],[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],Hs=["[actionbar]","th","[thead]","*","[table-no-rows]"];function js(n,o){n&1&&ue(0,"sh-progress-bar",3)}function zs(n,o){n&1&&(f(0,"div",4),g(1,4),v())}var $s=[[["","title",""]],"*"],Ws=["[title]","*"];function Gs(n,o){n&1&&y(0,"Title")}function qs(n,o){n&1&&(f(0,"sh-icon",1),y(1,"caret-down"),v())}function Us(n,o){if(n&1){let e=Q();P(0,"input",4,0),ve("change",function(i){F(e);let s=h();return R(s.onInternalInputChange(i))}),B()}if(n&2){let e=h();Vt("checked",e.checked()),K("disabled",e.disabled()?"":null)}}function Ys(n,o){n&1&&be(0)}function Xs(n,o){if(n&1&&me(0,Ys,1,0,"ng-container",1),n&2){let e=h();X("ngTemplateOutlet",e.content())("ngTemplateOutletContext",Xe(2,Et,e.tooltipContext))}}function Qs(n,o){if(n&1&&y(0),n&2){let e=h();ne(" ",e.content()," ")}}var Zi=new fe("Ship UI Config");function Y(n,o){let e=C(Zi,{optional:!0});return O(()=>{let t=e?.[n],i=o.variant?.();i||(i=t?.variant),!i&&n==="alert"&&e?.alertVariant&&(i=e.alertVariant),!i&&n==="card"&&e?.cardType&&(i=e.cardType),!i&&n==="table"&&e?.tableType&&(i=e.tableType);let s=o.color?.()||t?.color;i||(i="base");let r=o.size?.()||t?.size,a=(o.sharp?.()??t?.sharp)||!1,l=(o.dynamic?.()??t?.dynamic)||!1,d=(o.readonly?.()??t?.readonly)||!1,u=(o.alwaysShow?.()??t?.alwaysShow)||!1,m=[];return s&&m.push(s),i&&(["a","b","c","d"].includes(i)?m.push(`type-${i}`):m.push(i)),r&&m.push(r),a&&m.push("sharp"),l&&m.push("dynamic"),d&&m.push("readonly"),u&&m.push("always-show"),m.join(" ")})}var Ks=["bold","thin","light","fill","duotone"],Me=(()=>{class n{constructor(){this.#t=C(I),this.#i=C(ge),this.color=c(null),this.size=c(null),this.hostClasses=Y("icon",{color:this.color,size:this.size})}#t;#i;ngAfterContentInit(){let e=this.#t.nativeElement.textContent?.trim();if(!e)return;let t=e.split("-").at(-1);t&&Ks.includes(t)&&this.#i.addClass(this.#t.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],size:[1,"size"]},ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),la=(()=>{class n{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=Y("alert",{color:this.color,variant:this.variant}),this._el=C(I),this.alertService=c(null),this.id=c(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-alert"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Un,decls:22,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"actions"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(H(qn),f(0,"div",1)(1,"div",2,0),g(3),g(4,1),v(),f(5,"div",2),w(6,Yn,2,0,"sh-icon",3)(7,Xn,2,0,"sh-icon",3)(8,Qn,2,0,"sh-icon",3)(9,Kn,2,0,"sh-icon",3)(10,Zn,2,0,"sh-icon",3)(11,Jn,2,0,"sh-icon",3),v(),f(12,"div",4),g(13,2),g(14,3),v(),w(15,eo,2,0,"sh-icon",5),f(16,"div",6),g(17,4),g(18,5),v(),f(19,"div",7),g(20,6),g(21,7),v()()),t&2){let s=It(2);p(),ie("display",s.children.length?"block":"none");let r=i.hostClasses();p(5),T(r.includes("primary")?6:r.includes("accent")?7:r.includes("warn")?8:r.includes("error")?9:r.includes("success")?10:11),p(9),T(i.id()?15:-1)}},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})();function rt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ca=(()=>{class n{constructor(){this.alertHistory=_([]),this.alertHistoryIsOpen=_(!1),this.alertHistoryIsHidden=_(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=rt();this.alertHistory.update(i=>[U(z({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(s=>U(z({},s),{animateIn:s.id===t?!1:s.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>U(z({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>U(z({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Zs={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Js=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(Zi,{optional:!0}),this.dialogRef=Z("dialogRef"),this.isOpen=$(!1),this.options=c(),this.closed=re(),this.defaultOptionMerge=O(()=>z(U(z({},Zs),{class:this.#i?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=N(()=>{let e=this.dialogRef()?.nativeElement;e&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e.showModal(),e.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),this.#t.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(e.close(),queueMicrotask(()=>this.closed.emit())))})}#t;#i;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-dialog"]],viewQuery:function(t,i){t&1&&le(i.dialogRef,to,5),t&2&&te()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ae,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){t&1&&(H(),ut(0),w(1,no,5,11,"dialog",1)),t&2&&(de(i.defaultOptionMerge()),p(),T(i.isOpen()?1:-1))},encapsulation:2,changeDetection:0})}}return n})(),da=(()=>{class n{constructor(){this.#t=C(_e),this.#i=this.#t.querySelector("body"),this.#e=C(Ot),this.compRef=null,this.insertedCompRef=null,this.insertedTemplateRef=null,this.closedFieldSub=null,this.compClosedSub=null}#t;#i;#e;open(e,t){let i=this.#e.injector,s=this.#n(),r=!1,a,S=t||{},{data:l,closed:d}=S,u=si(S,["data","closed"]);this.compRef&&this.#o(!0);let m=this;function x(D=void 0){m.#o(),!r&&(r=!0,a&&a instanceof Pt&&a.emit(D),d?.(D))}let V=[];if(e instanceof $e)this.insertedTemplateRef=e.createEmbeddedView({$implicit:l,close:D=>x(D)}),V=[this.insertedTemplateRef.rootNodes];else{this.insertedCompRef=Lt(e,{environmentInjector:i}),V=[[this.insertedCompRef.location.nativeElement]];let D=this.insertedCompRef.instance,ce=D.data;if(a=D.closed,l){if(ct(ce))this.insertedCompRef.setInput("data",l);else if(!ct(ce))throw new Error("data is not an input signal on the passed component")}a&&a instanceof Pt&&(this.closedFieldSub=a.subscribe(Ve=>{this.#o(),!r&&(r=!0,d?.(Ve),(this.compRef?.instance.closed).emit(Ve))}))}return this.compRef=Lt(Js,{hostElement:s,environmentInjector:i,projectableNodes:V}),this.insertedCompRef&&(this.#e.attachView(this.insertedCompRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges()),this.insertedTemplateRef&&(this.#e.attachView(this.insertedTemplateRef),this.insertedTemplateRef.detectChanges()),this.#e.attachView(this.compRef.hostView),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",u),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>x()),{component:this.insertedCompRef?.instance,close:x,closed:this.compRef.instance.closed}}#n(){let e=this.#t.createElement("sh-dialog-ref");return e.id="sh-dialog-ref",this.#t.getElementById("sh-dialog-ref")||this.#i?.append(e),this.#t.getElementById("sh-dialog-ref")}#o(e=!1){let t=this;e||queueMicrotask(()=>i());function i(){t.insertedCompRef&&(t.#e.detachView(t.insertedCompRef.hostView),t.closedFieldSub?.unsubscribe(),t.insertedCompRef.destroy(),t.insertedCompRef=null),t.insertedTemplateRef&&(t.#e.detachView(t.insertedTemplateRef),t.insertedTemplateRef.destroy(),t.insertedTemplateRef=null),t.compRef&&(t.#e.detachView(t.compRef.hostView),t.compClosedSub?.unsubscribe(),t.compRef.destroy())}}ngOnDestroy(){this.#o(!0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function at(n,o={childList:!0}){let e=C(I).nativeElement,t=C(Ce),i=_([]),s=()=>{i.set(Array.from(e.querySelectorAll(n)))};if(s(),typeof MutationObserver>"u")return i.asReadonly();let r=new MutationObserver(a=>{a.some(d=>d.type==="childList")&&s()});return r.observe(e,o),t.onDestroy(()=>r.disconnect()),i.asReadonly()}function wt(n=null){let o=n??C(I).nativeElement;if(!o)return _("");let e=_(o.className);if(typeof MutationObserver>"u")return e.asReadonly();let t=C(Ce),i=new MutationObserver(s=>{for(let r of s)if(r.type==="attributes"&&r.attributeName==="class"){let a=r.target;e.set(a.className)}});return i.observe(o,{attributes:!0,attributeFilter:["class"]}),t.onDestroy(()=>i.disconnect()),e.asReadonly()}var ii=(()=>{class n{constructor(e,t){this.itemSelector=e,this.activeClass=t,this.hostElement=C(I).nativeElement,this.value=$(null),this.closable=c(!1,{transform:pt}),this.items=at(this.itemSelector,{childList:!0,subtree:!0,attributes:!0}),N(()=>{let i=this.value(),s=this.activeClass;this.items().forEach(r=>{let a=r.getAttribute("value");a===null&&!r.hasAttribute("value")||(a===String(i)||a===""&&(i===null||i==="")?r.classList.add(s):r.classList.remove(s))})})}onClick(e){let t=e;if(!t||!t.closest)return;let i=t.closest(this.itemSelector);if(i&&this.hostElement.contains(i)&&i.hasAttribute("value")){let s=i.getAttribute("value");this.closable()&&String(this.value())===String(s)?this.value.set(null):this.value.set(s)}}onKeyDown(e){let t=this.items().filter(a=>a.hasAttribute("value"));if(!t.length)return;let i=t.findIndex(a=>a.classList.contains(this.activeClass)),s=i;switch(e.key){case"ArrowRight":case"ArrowDown":s=i>=t.length-1?0:i+1;break;case"ArrowLeft":case"ArrowUp":s=i<=0?t.length-1:i-1;break;default:return}e.preventDefault();let r=t[s];if(r){let a=r.getAttribute("value");this.value.set(a),r.focus()}}static{this.\u0275fac=function(t){fi()}}static{this.\u0275dir=L({type:n,hostBindings:function(t,i){t&1&&E("click",function(r){return i.onClick(r.target)})("keydown",function(r){return i.onKeyDown(r)})},inputs:{value:[1,"value"],closable:[1,"closable"]},outputs:{value:"valueChange"}})}}return n})(),ua=(()=>{class n extends ii{constructor(){super("button","active"),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=c(null),this.variant=c(null),this.size=c(null),this.hostClasses=Y("buttonGroup",{color:this.color,variant:this.variant,size:this.size})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-button-group"]],hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),ie("--btng-id",i.id))},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},features:[G],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),ha=(()=>{class n{constructor(){this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=Y("button",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},attrs:oo,ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),pa=(()=>{class n{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=Y("card",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-card"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"]},ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),er=(()=>{class n{constructor(){this._elementRef=C(I),this.internalInput=Z("internalInput"),this.projectedInputs=at("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=$(!1),this.currentClassList=wt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=Y("checkbox",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-checkbox"]],viewQuery:function(t,i){t&1&&le(i.internalInput,ti,5),t&2&&te()},hostVars:3,hostBindings:function(t,i){t&1&&E("keydown.enter",function(r){return i.onEnter(r)}),t&2&&(K("disabled",i.disabled()?"":null),k(i.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:ae,decls:8,vars:3,consts:[["internalInput",""],[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"],["type","checkbox",1,"internal-input",3,"checked"],["type","checkbox",1,"internal-input",3,"change","checked"]],template:function(t,i){t&1&&(H(),f(0,"div",1)(1,"sh-icon",2),y(2,"check-bold"),v(),f(3,"sh-icon",3),y(4,"minus-bold"),v()(),f(5,"div",4),g(6),v(),w(7,so,2,2,"input",5)),t&2&&(k(i.currentClassList()),p(7),T(i.projectedInputs().length===0&&!i.noInternalInput()?7:-1))},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})(),tr=(()=>{class n{constructor(){this.color=c(null),this.variant=c(null),this.size=c(null),this.sharp=c(void 0),this.dynamic=c(void 0),this.readonly=c(!1),this.hostClasses=Y("chip",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,dynamic:this.dynamic,readonly:this.readonly})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],dynamic:[1,"dynamic"],readonly:[1,"readonly"]},ngContentSelectors:ae,decls:2,vars:0,template:function(t,i){t&1&&(H(),P(0,"div"),g(1),B())},encapsulation:2,changeDetection:0})}}return n})();var pe=4,ir=["scroll","auto"],nr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ni=(()=>{class n{constructor(){this.#t=C(_e),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=c(!1),this.asSheetOnMobile=c(!1),this.disableOpenByClick=c(!1),this.isOpen=$(!1),this.options=c(),this.closed=re(),this.defaultOptionMerge=O(()=>z(z({},nr),this.options())),this.triggerRef=Z.required("triggerRef"),this.popoverRef=Z("popoverRef"),this.popoverContentRef=Z("popoverContentRef"),this.id=_("--"+rt()),this.menuStyle=_(null),this.openAbort=null,this.#i=null,this.openEffect=N(()=>{let e=this.isOpen();queueMicrotask(()=>{let t=this.popoverRef()?.nativeElement;if(!t){this.openAbort?.abort(),this.openAbort=null;return}if(e){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#t.addEventListener("keydown",s=>{s.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&s.preventDefault(),s.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),!t.isConnected)return;t.showPopover();let i=this.asSheetOnMobile()&&window.innerWidth<=768;i&&(this.#i=this.#t.body.style.overflow,this.#t.body.style.overflow="hidden",this.menuStyle.set(null)),!this.SUPPORTS_ANCHOR&&!i&&setTimeout(()=>{this.#e(t).addEventListener("scroll",()=>this.#u(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#u(),{signal:this.openAbort?.signal}),this.#u()})}else this.closed.emit(),t.hidePopover(),this.openAbort?.abort(),this.openAbort=null,this.asSheetOnMobile()&&this.#i!==null&&(this.#t.body.style.overflow=this.#i,this.#i=null)})})}#t;#i;toggleIsOpen(e){this.disableOpenByClick()||(e.preventDefault(),e.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(e){this.isOpen()&&this.isOpen.set(!1)}#e(e){let t=e.parentElement;for(;t;){if(ir.indexOf(window?.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return this.#t.documentElement}#n(e,t){return{left:e.left,top:e.bottom+pe}}#o(e,t){return{left:e.left,top:e.top-t.height-pe}}#a(e,t){return{left:e.right-t.width,top:e.bottom+pe}}#r(e,t){return{left:e.right-t.width,top:e.top-t.height-pe}}#s(e,t){return{left:e.right+pe,top:e.top}}#l(e,t){return{left:e.left-t.width-pe,top:e.top}}#c(e,t){return{left:e.right+pe,top:e.top+e.height/2-t.height/2}}#d(e,t){return{left:e.left-t.width-pe,top:e.top+e.height/2-t.height/2}}#h(e,t){return{left:e.right+pe,top:e.bottom-t.height}}#p(e,t){return{left:e.left-t.width-pe,top:e.bottom-t.height}}#f(e,t){return e.left>=0&&e.top>=0&&e.left+t.width<=window.innerWidth&&e.top+t.height<=window.innerHeight}#g(e,t){return{left:Math.max(0,Math.min(e.left,window.innerWidth-t.width)),top:Math.max(0,Math.min(e.top,window.innerHeight-t.height))}}#u(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!e||!t)return;let i=[this.#n,this.#o,this.#a,this.#r,this.#s,this.#l,this.#c,this.#d,this.#h,this.#p],s=[this.#s,this.#h,this.#l,this.#p,this.#c,this.#d,this.#n,this.#o,this.#a,this.#r],r=this.asMultiLayer()?s:i;for(let l of r){let d=l.call(this,e,t);if(this.#f(d,t)){this.menuStyle.set({left:d.left+"px",top:d.top+"px"});return}}let a=this.#g(r[0].call(this,e,t),t);this.menuStyle.set({left:a.left+"px",top:a.top+"px"})}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-popover"]],viewQuery:function(t,i){t&1&&le(i.triggerRef,ro,5)(i.popoverRef,ao,5)(i.popoverContentRef,lo,5),t&2&&te(3)},hostVars:4,hostBindings:function(t,i){t&2&&j("multi-layer",i.asMultiLayer())("as-sheet",i.asSheetOnMobile())},inputs:{asMultiLayer:[1,"asMultiLayer"],asSheetOnMobile:[1,"asSheetOnMobile"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:uo,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(t,i){t&1&&(H(co),P(0,"div",3,0),ve("click",function(r){return i.toggleIsOpen(r)}),P(2,"div",4),g(3),g(4,1),g(5,2),B(),Ee(6,"div",5),B(),w(7,ho,6,5,"div",6)),t&2&&(K("popovertarget",i.id()+"hello"),p(6),ie("anchor-name",i.id()),p(),T(i.isOpen()?7:-1))},encapsulation:2,changeDetection:0})}}return n})(),or=(()=>{class n{constructor(){this.#t=C(I),this.isOpen=$(!1),this.closed=re(),this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=Y("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly})}#t;onClick(){this.#t.nativeElement.querySelector("input")&&this.#t.nativeElement.querySelector("input").focus(),this.#t.nativeElement.querySelector("textarea")&&this.#t.nativeElement.querySelector("textarea").focus()}close(){this.closed.emit()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#t.nativeElement.querySelector("textarea");if(!e&&t!==null){let a=function(){r.style.height="auto",r.style.height=r.scrollHeight+"px"},l=function(){setTimeout(a,0)};var i=a,s=l;let r=this.#t.nativeElement.querySelector("textarea");r&&(r.addEventListener("change",a),r.addEventListener("cut",l),r.addEventListener("paste",l),r.addEventListener("drop",l),r.addEventListener("keydown",l),r.focus(),r.select(),a())}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(t,i){t&1&&E("click",function(){return i.onClick()}),t&2&&k(i.hostClasses())},inputs:{isOpen:[1,"isOpen"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:fo,decls:18,vars:4,consts:[[3,"isOpenChange","closed","isOpen","asSheetOnMobile","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,i){t&1&&(H(po),g(0),f(1,"sh-popover",0),Ye("isOpenChange",function(r){return Ue(i.isOpen,r)||(i.isOpen=r),r}),E("closed",function(){return i.close()}),f(2,"div",1)(3,"div",2),g(4,1),g(5,2),v(),ue(6,"div",3),g(7,3),g(8,4),g(9,5),ue(10,"div",4),g(11,6),v(),g(12,7),v(),f(13,"div",5)(14,"div",6),g(15,8),v(),f(16,"div",7),g(17,9),v()()),t&2&&(p(),qe("isOpen",i.isOpen),X("asSheetOnMobile",!0)("options",ht(3,Qi)))},dependencies:[ni],encapsulation:2,changeDetection:0})}}return n})();var sr=(()=>{class n{constructor(){this.#t=new Date(new Date().setHours(0,0,0,0)),this.date=$(null),this.endDate=$(null),this.asRange=c(!1),this.monthsToShow=c(1),this.disabled=c(!1),this.startOfWeek=c(1),this.weekdayLabels=c(["Su","Mo","Tu","We","Th","Fr","Sa"]),this.daysRef=Z("daysRef"),this.currentDate=_(this.date()??this.#t),this.monthOffsets=O(()=>Array.from({length:this.monthsToShow()},(e,t)=>t)),this.selectedDateStylePosition=_(null),this.weekdays=O(()=>{let e=this.startOfWeek(),t=this.weekdayLabels();return t.slice(e).concat(t.slice(0,e))}),this.currentClasses=wt(),this.someEffect=N(()=>{let e=this.currentClasses();this.#n()}),this.#i=N(()=>{this.monthsToShow()>1||this.#e()})}#t;getLastVisibleMonth(){let e=this.monthsToShow()-1;return this.getOffsetDate(e)}getOffsetDate(e){let t=new Date(this.currentDate());return t.setMonth(t.getMonth()+e),t}getMonthDates(e){let t=this.getOffsetDate(e);return this.#o(t,this.startOfWeek())}#i;ngOnInit(){this.monthsToShow()!==1&&this.#e()}#e(){let e=this.date();e&&this.currentDate.set(e),this.#n()}#n(){setTimeout(()=>{let e=this.daysRef()?.nativeElement.querySelector(".sel");if(!e)return this.selectedDateStylePosition.update(t=>t?U(z({},t),{opacity:"0"}):null);this.setSelectedDateStylePosition(e)})}#o(e,t){let i=e.getFullYear(),s=e.getMonth(),r=new Date(i,s,1).getDay(),a=new Date(i,s+1,0).getDate(),l=[],d=r-t;d<0&&(d+=7);let u=new Date(i,s,0).getDate();for(let x=d-1;x>=0;x--)l.push(new Date(i,s-1,u-x,0,0,0,0));for(let x=1;x<=a;x++)l.push(new Date(i,s,x,0,0,0,0));let m=1;for(;l.length%7!==0;)l.push(new Date(i,s+1,m++,0,0,0,0));return l}nextMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()+1),t}),this.#n()}previousMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()-1),t}),this.#n()}setDate(e,t){let i=(s,r)=>{let a=r?.getHours()??0,l=r?.getMinutes()??0,d=r?.getSeconds()??0,u=r?.getMilliseconds()??0;return new Date(s.getFullYear(),s.getMonth(),s.getDate(),a,l,d,u)};if(!this.asRange())this.date.set(i(e,this.date())),this.endDate.set(null);else{let s=this.date(),r=this.endDate(),a=i(e,null);s?r?(this.date.set(a),this.endDate.set(null)):a<s?(this.date.set(a),this.endDate.set(null)):this.endDate.set(a):this.date.set(a)}this.asRange()||this.setSelectedDateStylePosition(t)}isDateSelected(e){let t=this.date(),i=this.endDate();if(t===null)return null;let s=m=>new Date(m.getFullYear(),m.getMonth(),m.getDate(),0,0,0,0),r=m=>new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999),a=s(e),l=s(t),d=i?r(i):null,u=[];if(this.asRange())if(d===null)a.getTime()===l.getTime()&&u.push("sel first last");else{if(a.getTime()===l.getTime()&&u.push("first"),a.getTime()===s(d).getTime()&&u.push("last"),a>=l&&a<=d){u.push("sel");let D=a.getDay(),ce=this.startOfWeek();D===ce&&u.push("week-start");let Ve=(ce+6)%7;D===Ve&&u.push("week-end")}let m=new Date(a);m.setDate(a.getDate()+1),new Date(a).setDate(a.getDate()-1);let V=a.getDate()===1,S=m.getMonth()!==a.getMonth();V&&u.push("month-start"),S&&u.push("month-end")}else a.getTime()===l.getTime()&&u.push("sel");return u.join(" ")||null}setSelectedDateStylePosition(e){this.selectedDateStylePosition.set({transform:`translate(${e.offsetLeft}px, ${e.offsetTop}px)`,opacity:"1"})}getMonthName(e){return e.toLocaleString("default",{month:"long"})}getFullYear(e){return e.getFullYear()}isCurrentMonth(e,t){let i=this.getOffsetDate(t);return e.getMonth()===i.getMonth()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-datepicker"]],viewQuery:function(t,i){t&1&&le(i.daysRef,vo,5),t&2&&te()},hostVars:6,hostBindings:function(t,i){t&2&&(k("columns-"+i.monthsToShow()),j("as-range",i.asRange())("disabled",i.disabled()))},inputs:{date:[1,"date"],endDate:[1,"endDate"],asRange:[1,"asRange"],monthsToShow:[1,"monthsToShow"],disabled:[1,"disabled"],startOfWeek:[1,"startOfWeek"],weekdayLabels:[1,"weekdayLabels"]},outputs:{date:"dateChange",endDate:"endDateChange"},decls:14,vars:3,consts:[["daysRef",""],["elementRef",""],[3,"click"],[1,"title"],[1,"months-container"],[1,"month"],[1,"weekdays"],[1,"days"],[3,"out-of-scope","class"],[1,"sel-el"]],template:function(t,i){t&1&&(f(0,"header")(1,"button",2),E("click",function(){return i.previousMonth()}),f(2,"sh-icon"),y(3,"caret-left"),v()(),f(4,"div",3),y(5),w(6,_o,1,1),y(7),v(),f(8,"button",2),E("click",function(){return i.nextMonth()}),f(9,"sh-icon"),y(10,"caret-right"),v()()(),f(11,"section",4),Ae(12,Do,9,1,"div",5,vi),v()),t&2&&(p(5),ne(" ",i.getMonthName(i.currentDate())," "),p(),T(i.monthsToShow()>1?6:-1),p(),ne(" ",i.getFullYear(i.currentDate())," "),p(5),ke(i.monthOffsets()))},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})(),fa=(()=>{class n{constructor(){this.ngModels=Ft(xt),this.#t=C(jt),this.#i=_(null),this.masking=c("mediumDate"),this.closed=re(),this._maskedDate=O(()=>{let e=this.internalDate(),t=this.masking();return t?e?this.#t.transform(e,t):null:e}),this.internalDate=_(null),this.isOpen=$(!1),this.currentClass=wt(),this.#e=at("#input-wrap input"),this.#n=N(()=>{let e=this.#e();if(!e.length)return;let t=e[0];t&&(this.#o(t),t.addEventListener("inputValueChanged",i=>{this.internalDate.set(i.detail.value?new Date(i.detail.value):null)}),t.addEventListener("focus",()=>{this.isOpen.set(!0),t.blur()}),this.#i.set(t),t.autocomplete="off",typeof t.value=="string"&&this.internalDate.set(t.value?new Date(t.value):null))})}#t;#i;#e;onDateChange(e){this.internalDate.set(e);let t=this.#i();t&&(t.value=e?e.toString():"",t.dispatchEvent(new Event("input")))}close(){this.closed.emit(this.internalDate())}#n;#o(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}}),e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-datepicker-input"]],contentQueries:function(t,i,s){t&1&&Nt(s,i.ngModels,xt,5),t&2&&te()},inputs:{masking:[1,"masking"],isOpen:[1,"isOpen"]},outputs:{closed:"closed",isOpen:"isOpenChange"},features:[J([jt])],ngContentSelectors:mo,decls:15,vars:3,consts:[["defaultIndicator",""],[3,"closed","isOpenChange","isOpen"],["id","input-wrap","ngProjectAs","input",5,["input"],1,"input"],[1,"masked-value"],["suffix","",1,"default-indicator"],["popoverContent",""],[3,"date","class"],[3,"dateChange","date"]],template:function(t,i){if(t&1){let s=Q();H(go),f(0,"sh-form-field-popover",1),E("closed",function(){return i.close()}),Ye("isOpenChange",function(a){return F(s),Ue(i.isOpen,a)||(i.isOpen=a),R(a)}),g(1,0,["ngProjectAs","label",5,["label"]]),g(2,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),g(3,2,["ngProjectAs","[textPrefix]",5,["","textPrefix",""]]),f(4,"div",2),w(5,So,2,1,"div",3),g(6,3),v(),g(7,4,["ngProjectAs","[textSuffix]",5,["","textSuffix",""]]),g(8,5,["ngProjectAs","[suffix]",5,["","suffix",""]]),f(9,"sh-icon",4),y(10,"calendar"),v(),f(11,"div",5),w(12,Mo,1,3,"sh-datepicker",6),v()(),me(13,xo,0,0,"ng-template",null,0,_i)}t&2&&(qe("isOpen",i.isOpen),p(5),T(i.masking()?5:-1),p(7),T(i.isOpen()?12:-1))},dependencies:[sr,or,Me],encapsulation:2,changeDetection:0})}}return n})();var rr=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-divider"]],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();var oi=(()=>{class n{#t;onClick(){this.#t.nativeElement.querySelector("input")&&this.#t.nativeElement.querySelector("input").focus(),this.#t.nativeElement.querySelector("textarea")&&this.#t.nativeElement.querySelector("textarea").focus()}constructor(){this.#t=C(I),this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=Y("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),Tt(()=>{let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#t.nativeElement.querySelector("textarea");if(!e&&t!==null){let r=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},a=function(){setTimeout(r,0)};var i=r,s=a;t.addEventListener("change",r),t.addEventListener("cut",a),t.addEventListener("paste",a),t.addEventListener("drop",a),t.addEventListener("keydown",a),t.focus(),t.select(),r()}})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(t,i){t&1&&E("click",function(){return i.onClick()}),t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:wo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,i){t&1&&(H(Eo),g(0),P(1,"div",0)(2,"div",1),g(3,1),g(4,2),g(5,3),B(),g(6,4),g(7,5),P(8,"div",2),g(9,6),g(10,7),g(11,8),B()(),P(12,"div",3)(13,"div",4),g(14,9),B(),P(15,"div",5),g(16,10),B()())},encapsulation:2,changeDetection:0})}}return n})(),ga=(()=>{class n{constructor(){this._el=C(I),this.inputRef=Z.required("input"),this.filesOver=_(!1),this.multiple=c(),this.accept=c(null),this.placeholder=$("Click or drag files here"),this.overlayText=c("Drop files here"),this.files=$([]),this.fileUploadClasses=O(()=>this._el.nativeElement.classList.toString()),this.inputEffect=N(()=>{let e=this.inputRef().nativeElement;e&&(e.placeholder&&this.placeholder.set(e.placeholder),e.addEventListener("dragover",t=>{t.preventDefault(),this.filesOver.set(!0)}),e.addEventListener("dragleave",t=>{t.preventDefault(),this.filesOver.set(!1)}),e.addEventListener("drop",t=>{t.preventDefault(),this.filesOver.set(!1);let i=t.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),e.files=i)}),e.addEventListener("change",t=>{t.preventDefault(),this.handleFileUpload(Array.from(t.target.files))}))})}handleFileUpload(e){this.multiple()?this.files.update(t=>[...t,...e]):this.files.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-file-upload"]],viewQuery:function(t,i){t&1&&le(i.inputRef,To,5),t&2&&te()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Vo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(t,i){t&1&&(H(Oo),f(0,"sh-form-field"),g(1,0,["ngProjectAs","label",5,["label"]]),f(2,"div",2,0),w(4,No,2,1,"div",3)(5,Io,2,1,"div",3)(6,Ao,2,1,"div",4),ue(7,"input",5,1)(9,"div",6),v(),f(10,"sh-icon",7),y(11,"upload-simple"),v()()),t&2&&(k(i.fileUploadClasses()),p(4),T(i.files().length===1?4:i.files().length>1?5:6),p(3),K("multiple",i.multiple())("accept",i.accept()),p(2),j("files-over",i.filesOver()))},dependencies:[oi,Me],encapsulation:2,changeDetection:0})}}return n})(),ma=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-list"]],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();function ar(n,o){let e=_(null),t=o.map(l=>l.toUpperCase()),i=C(Ie),s=i.get(Ce);if(Ci(i.get(hi))||typeof MutationObserver>"u")return e.asReadonly();if(t.find(l=>n.nativeElement.querySelector(l)))return e.set(new I(n.nativeElement.querySelector(o[0]))),e.asReadonly();let a=new MutationObserver(l=>{for(let d of l)if(d.addedNodes){for(let u of Array.from(d.addedNodes))if(u.nodeType===Node.ELEMENT_NODE&&t.includes(u.nodeName)){e.set(new I(u)),a.disconnect();return}}});return a.observe(n.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>a.disconnect()),e.asReadonly()}function Ji(n,o){let e=C(Ie),t=e.get(Ce),i=_([]),s=null,r=null,a=(d,u)=>{r&&r.disconnect();let m=Array.from(d.nativeElement.querySelectorAll(u.join(",")));i.set(m),typeof MutationObserver<"u"&&(r=new MutationObserver(x=>{queueMicrotask(()=>{let V=Array.from(d.nativeElement.querySelectorAll(u.join(",")));i.set(V)})}),r.observe(d.nativeElement,{childList:!0,subtree:!0})),t.onDestroy(()=>l())};s=N(()=>{let d=typeof n=="function"&&ct(n)?n():n,u=typeof o=="function"?o():o;d&&u?.length>0?a(d,u):(i.set([]),r&&(r.disconnect(),r=null))},{injector:e});function l(){s&&s.destroy(),r&&r.disconnect()}return{signal:i.asReadonly(),destroy:l}}function lr(n,o=["input","textarea"]){let e=n||ar(C(I),o),t=_(void 0),i=C(Ie),s=i.get(Ce),r=_(null);N(l=>{let d=e();if(!d)return;let u=d.nativeElement;u&&(cr(u),r.set(u),t.set(u.value??""),l(()=>{r.set(null)}))},{injector:i});let a=null;return N(()=>{let l=r();if(!l)return;a&&(a(),a=null);let d=m=>{t.set(m.detail.value)},u=m=>{t.set(m.target.value)};l.addEventListener("input",u),l.addEventListener("inputValueChanged",d),t.set(l.value),a=()=>{l.removeEventListener("input",u),l.removeEventListener("inputValueChanged",d)},s.onDestroy(()=>{a&&a()})},{injector:i}),N(()=>{let l=r();if(!l)return;let d=t();d&&(l.value=d,l.dispatchEvent(new Event("input")))},{injector:i}),t}function cr(n){return Object.defineProperty(n,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value").get.call(this)},set(o){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value").set.call(this,o);let t=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:o}});return this.dispatchEvent(t),o}}),n}var va=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(ge),this.asMultiLayer=c(!1),this.openIndicator=c(!1),this.disabled=c(!1),this.customOptionElementSelectors=c(["button"]),this.keepClickedOptionActive=c(!1),this.closeOnClick=c(!0),this.isOpen=$(!1),this.closed=re(),this.searchable=c(!1),this.activeOptionIndex=_(-1),this.inputRef=Z("inputRef"),this.optionsRef=Z("optionsRef"),this.openMenusEffect=N(e=>{this.isOpen()&&n.openMenus.push(this),e(()=>{let t=n.openMenus.indexOf(this);t>-1&&n.openMenus.splice(t,1)})}),this.options=Ji(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=O(()=>this.options.signal().filter(e=>!e.disabled)),this.inputValue=lr(this.inputRef),this.optionsId=rt(),this.activeOptionId=_(void 0),this.abortController=null,this.optionsEffect=N(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||this.#t.documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),t.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",s=>{let r=s.target,a=this.activeElements();if(!a.length){let d=this.optionsEl();this.activeElements.set(d),a=d}let l=a.findIndex(d=>d===r);l>-1&&(this.activeOptionIndex.set(l),t.focus())}))}),this.keyDownEventListener=e=>{if(n.openMenus.at(-1)!==this)return;let t=this.activeOptionIndex();if(e.key==="ArrowDown")e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t));else if(e.key==="ArrowUp")e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t));else if(e.key==="Enter"){if(e.preventDefault(),t>-1){let i=this.activeElements()[t];if(i.parentElement?.hasAttribute("trigger")){let r=new CustomEvent("ship-menu-open",{bubbles:!0,cancelable:!0});i.dispatchEvent(r)}else i.click(),i.querySelector("sh-checkbox")||queueMicrotask(()=>this.close("active"))}}else if(e.key==="Tab"){let i=this.activeElements();if(!i.length){let s=this.optionsEl();this.activeElements.set(s),i=s}e.shiftKey?t<=0?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t))):t>=i.length-1?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t)))}},this._lastElementList=[],this.activeElements=_([]),this.lastInputValue="",this.inputValueEffect=N(()=>{if(!this.searchable())return;let t=(this.inputValue()??"").toLowerCase();if(this.#n(),!t||t===""){let s=this.optionsEl();this.activeElements.set(s),this._lastElementList=s;for(let r=0;r<s.length;r++)this.#i.removeStyle(s[r],"order"),s[r].id||(s[r].id=`${this.optionsId}-option-${r}`),s[r].setAttribute("role","option");return}if(!t||t==="")return;let i=this._lastElementList.length&&t.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=t;for(let s=0;s<i.length;s++){let r=i[s],a=r.textContent?.toLowerCase()||"",l=this.#e(a,t);r.value=l}i=i.filter(s=>s.value>0).sort((s,r)=>r.value-s.value);for(let s=0;s<i.length;s++)this.#i.setStyle(i[s],"order",s);this.activeElements.set(i),this._lastElementList=i;for(let s=0;s<i.length;s++)i[s].id||(i[s].id=`${this.optionsId}-option-${s}`),i[s].setAttribute("role","option")}),this.activeOptionIndexEffect=N(()=>{let e=this.activeElements(),t=this.activeOptionIndex();for(let i=0;i<e.length;i++)e[i].classList.remove("active"),e[i].removeAttribute("aria-selected");if(t>-1){let i=e[t];i.scrollIntoView({block:"center"}),i.classList.add("active"),i.setAttribute("aria-selected","true"),this.activeOptionId.set(i.id)}else this.activeOptionId.set(void 0)})}#t;#i;static{this.openMenus=[]}toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),!this.disabled()&&(this.isOpen()?this.close("fromPopover"):this.open())}open(){this.disabled()||(this.isOpen.set(!0),this.searchable()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}onShipMenuOpen(e){e.preventDefault(),e.stopPropagation(),this.open()}#e(e,t){if(!t)return 0;let i=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let d=t[l];if(e.length>s+1&&e[s+1]===d)i+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;i+=100,s=u,r++}}return a&&t.length===r&&(i+=1e3),i+=r*20,i}nextActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===-1||e===t.length-1)return 0;let i=e+1;return t[i].disabled?this.nextActiveIndex(i):i}prevActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===0||e===-1)return t.length-1;let i=e-1;return t[i].disabled?this.prevActiveIndex(i):i}close(e="closed",t){this.inputValue.set("");let i=this.inputRef()?.nativeElement;i&&(i.value=""),this.closeOnClick()&&((!this.keepClickedOptionActive()||e==="closed")&&this.#n(),this.isOpen.set(!1),this.closed.emit(e==="active"))}#n(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active"),e[t].removeAttribute("aria-selected")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null);let e=n.openMenus.indexOf(this);e>-1&&n.openMenus.splice(e,1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-menu"]],viewQuery:function(t,i){t&1&&le(i.inputRef,ko,5)(i.optionsRef,Po,5),t&2&&te(2)},hostVars:6,hostBindings:function(t,i){t&1&&E("ship-menu-open",function(r){return i.onShipMenuOpen(r)}),t&2&&j("disabled",i.disabled())("has-search",i.searchable())("multi-layer",i.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ro,decls:12,vars:20,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","","role","combobox","aria-haspopup","listbox",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search","role","combobox","aria-autocomplete","list"],["role","listbox",1,"options",3,"click","id"]],template:function(t,i){if(t&1){let s=Q();H(Fo),f(0,"sh-popover",3,0),Ye("isOpenChange",function(a){return F(s),Ue(i.isOpen,a)||(i.isOpen=a),R(a)}),E("closed",function(){return i.close("fromPopover")}),f(2,"div",4),E("click",function(a){return i.toggleIsOpen(a)}),g(3),w(4,Lo,2,0,"sh-icon",5),v(),f(5,"div",6)(6,"sh-form-field",7),ue(7,"input",8,1),v()(),f(9,"div",9,2),E("click",function(){return i.close("active")}),g(11,1),v()()}t&2&&(qe("isOpen",i.isOpen),X("disableOpenByClick",!0)("asMultiLayer",i.asMultiLayer())("options",ht(19,Qi)),p(2),j("is-open",i.isOpen()),K("aria-expanded",i.isOpen())("aria-controls",i.optionsId)("aria-activedescendant",i.activeOptionId()),p(2),T(i.openIndicator()?4:-1),p(2),j("hidden",i.searchable()===!1),p(),K("aria-expanded",i.isOpen())("aria-controls",i.optionsId)("aria-activedescendant",i.activeOptionId()),p(2),j("searching",i.searchable()&&i.inputValue()!==""),X("id",i.optionsId),K("aria-activedescendant",i.activeOptionId()))},dependencies:[ni,oi,Me],encapsulation:2,changeDetection:0})}}return n})(),dr=(()=>{class n{constructor(){this.value=c(void 0),this.color=c(null),this.variant=c(null),this.hostClasses=Y("progressBar",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-progress-bar"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{value:[1,"value"],color:[1,"color"],variant:[1,"variant"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&Ee(0,"div",0),t&2&&ie("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),_a=(()=>{class n{constructor(){this._elementRef=C(I),this.internalInput=Z("internalInput"),this.projectedInputs=at("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=$(!1),this.currentClassList=wt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=Y("radio",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-radio"]],viewQuery:function(t,i){t&1&&le(i.internalInput,ti,5),t&2&&te()},hostVars:3,hostBindings:function(t,i){t&1&&E("keydown.enter",function(r){return i.onEnter(r)}),t&2&&(K("disabled",i.disabled()?"":null),k(i.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:ae,decls:3,vars:3,consts:[["internalInput",""],[1,"radio","sh-sheet"],["type","radio",1,"internal-input",3,"checked"],["type","radio",1,"internal-input",3,"change","checked"]],template:function(t,i){t&1&&(H(),Ee(0,"div",1),g(1),w(2,Bo,2,2,"input",2)),t&2&&(k(i.currentClassList()),p(2),T(i.projectedInputs().length===0&&!i.noInternalInput()?2:-1))},encapsulation:2,changeDetection:0})}}return n})(),Ca=(()=>{class n{constructor(){this.#t=C(I),this.#i=null,this.#e=null,this.#n=0,this.unit=c(""),this.value=$(this.#n),this.inputState=_({min:0,max:100,step:1}),this.color=c(null),this.variant=c(null),this.size=c(null),this.sharp=c(void 0),this.alwaysShow=c(void 0),this.hostClasses=Y("rangeSlider",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,alwaysShow:this.alwaysShow}),this.valuePercentage=O(()=>{let{min:e,max:t}=this.inputState(),i=this.value()??e;if(isNaN(i))return 0;let s=t-e;if(s===0)return 0;let r=(i-e)/s*100;return Math.max(0,Math.min(100,r))}),this.trackFilledPercentage=O(()=>this.valuePercentage()),this.thumbPositionPercentage=O(()=>this.valuePercentage()),this.syncModelToInputEffect=N(()=>{let e=this.value();if(this.#e){let t=parseFloat(this.#e.value);(isNaN(t)||String(t)!==String(e))&&(this.#e.value=String(e))}})}#t;#i;#e;#n;get hasInputElement(){return!!this.#e}ngAfterViewInit(){this.#e=this.#t.nativeElement.querySelector('input[type="range"]'),this.#e?(this.#s(this.#e),this.#e.oninput=()=>{this.setNewInputValue(this.#e.value)},this.#e.addEventListener("inputValueChanged",e=>{this.setNewInputValue(e.detail.value)}),queueMicrotask(()=>this.#o(!0)),this.#a()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(e){let t=parseFloat(e??"0");if(!isNaN(t)){let{min:i,max:s}=this.inputState();this.value.set(Math.max(i,Math.min(s,t)))}}trackEvent(e){if(!this.#e||this.#e.readOnly||this.#e.disabled){e.preventDefault(),e.stopPropagation();return}if(e.target===this.#e||e.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let i=e.currentTarget.getBoundingClientRect(),s=e.clientX-i.left,r=i.width,{min:a,max:l,step:d}=this.inputState(),u=l-a;if(r>0&&u!==0&&d>0){let x=(s/r*u+a-a)/d,V=a+Math.round(x)*d,S=this.#r(d);V=parseFloat(V.toFixed(S));let D=Math.max(a,Math.min(l,V));this.value.set(D)}}#o(e=!1){if(!this.#e)return;let t=parseFloat(this.#e.min??"0")??0,i=parseFloat(this.#e.max??"100")??100,s=this.#e.step,r=1;if(s&&s.toLowerCase()!=="any"){let l=parseFloat(s);!isNaN(l)&&l>0&&(r=l)}this.inputState.set({min:t,max:i,step:r});let a=parseFloat(this.#e.value??String(t))??t;if(e&&this.value()!==this.#n){let l=this.value(),d=Math.max(t,Math.min(i,l));a!==d&&(this.#e.value=String(d)),l!==d&&this.value.set(d)}else{let l=Math.max(t,Math.min(i,a));this.value()!==l&&this.value.set(l)}}#a(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(t=>{let i=!1;for(let s of t)if(s.type==="attributes"&&e.includes(s.attributeName??"")){i=!0;break}i&&this.#o(!1)}),this.#i.observe(this.#e,{attributes:!0,attributeFilter:e})}#r(e){if(isNaN(e)||Math.floor(e)===e)return 0;let i=e.toString().split(".")[1];return i?i.length:0}#s(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#e&&(this.#e.oninput=null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-range-slider"]],hostVars:6,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),j("sh-range-slider",!0)("has-input",i.hasInputElement))},inputs:{unit:[1,"unit"],value:[1,"value"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],alwaysShow:[1,"alwaysShow"]},outputs:{value:"valueChange"},ngContentSelectors:jo,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(t,i){t&1&&(H(Ho),P(0,"div",0),g(1),B(),P(2,"div",1)(3,"div",2),y(4),B(),P(5,"div",3),ve("click",function(r){return i.trackEvent(r)}),g(6,1),P(7,"div",4),Ee(8,"div",5),B(),P(9,"div",6)(10,"div",7)(11,"div",8),y(12),B()()()(),P(13,"div",9),y(14),B()()),t&2&&(p(4),dt("",i.inputState().min,"",i.unit()),p(4),ie("width",i.trackFilledPercentage(),"%"),p(),ie("left",i.thumbPositionPercentage(),"%"),p(3),dt("",i.value(),"",i.unit()),p(2),dt("",i.inputState().max,"",i.unit()))},encapsulation:2,changeDetection:0})}}return n})(),ur=(()=>{class n{constructor(){this.color=c(null),this.hostClasses=Y("spinner",{color:this.color})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-spinner"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"]},decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),ya=(()=>{class n{constructor(){this.#t=C(I),this.value=c(),this.label=c(),this.asFreeText=c(!1),this.color=c(null),this.variant=c(null),this.size=c(null),this.optionTitle=c(null),this.freeTextTitle=c(null),this.freeTextPlaceholder=c("Type to create a new option"),this.validateFreeText=c(),this.placeholder=c(),this.readonly=$(!1),this.disabled=$(!1),this.hostClasses=Y("select",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),this.lazySearch=c(!1),this.inlineSearch=c(!1),this.asText=c(!1),this.isClearable=c(!0),this.selectMultiple=c(!1),this.optionTemplate=c(null),this.selectedOptionTemplate=c(null),this.placeholderTemplate=c(null),this.freeTextOptionTemplate=c(null),this.isOpen=$(!1),this.isLoading=$(!1),this.options=$([]),this.selectedOptions=$([]),this.cleared=re(),this.onAddNewFreeTextOption=re(),this.computedFreeTextOption=O(()=>{let e=this.inputValue(),t=this.value(),i=t?{}:e;return t&&typeof i=="object"&&(i[t]=e),i}),this.#i=_(null),this.inlineTemplate=Ft($e),this.optionsWrapRef=Z.required("optionsWrap"),this.inputRefInput=_(null),this.#e=typeof MutationObserver<"u"?new MutationObserver(e=>{for(var t of e)t&&(t.target.nodeName==="INPUT"||t.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new I(t.target)),this.#e.disconnect())}):void 0,this.inputValue=_(""),this.prevInputValue=_(null),this.focusedOptionIndex=_(-1),this._isClearable=O(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=O(()=>this.#t.nativeElement.classList.toString()),this.stretch=O(()=>this.selectClasses().includes("stretch")),this.small=O(()=>this.selectClasses().includes("small")),this.placeholderText=O(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=O(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(i=>this.#s(i,t)):e}),this.filteredOptions=O(()=>{let e=this.options()||[],t=this.label(),i=this.value(),s=this.inlineSearch(),r=this.inputValue().toLowerCase(),a=this.#c(r);if(e.length<=0)return[];if(!s||r==="")return e;let d=e.filter(u=>{let m=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),x=((i?this.#s(u,i):u)??"").toString().toLowerCase(),V=a.test(m),S=a.test(x);return V||S}).map(u=>{let m=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),x=((i?this.#s(u,i):u)??"").toString().toLowerCase(),V=this.#n(m,r),S=this.#n(x,r);return{item:u,score:Math.max(V,S)}});return d.sort((u,m)=>m.score-u.score),d.map(u=>u.item)}),this.#o=rt(),this.inputRefEl=O(()=>{let e=this.inputRefInput();if(e===null)return;let t=e?e.nativeElement:null;return t?(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("id",`combobox-${this.#o}`),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-owns","optionsWrapId"),this.#l(t),t.addEventListener("focus",()=>{this.readonly()||this.open()}),t.addEventListener("input",i=>{let s=i.target.value,r=this.inputValue();s!==r&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(s),this.updateInputElValue())}),t.addEventListener("inputValueChanged",i=>{let s=i.detail.value,r=this.inputValue(),a=oe(()=>this.selectedOptions().length);s===r&&(s!==""||a>0)||(this.setSelectedOptionsFromValue(s),this.setInputValueFromOptions(this.selectedOptions()),this.#r())}),t):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=N(()=>{let e=this.inputRefEl();if(!e)return;let t=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);t?e.setAttribute("aria-activedescendant",t):e.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=N(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl(),s=this.asFreeText()?-1:0;if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),t.addEventListener("keydown",r=>{if((r.key==="Escape"||r.key==="Tab")&&(r.preventDefault(),this.close()),r.key==="Enter"&&(r.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),r.key==="ArrowDown"){r.preventDefault();let a=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(a>this.filteredOptions().length-1?s:a)}if(r.key==="ArrowUp"){r.preventDefault();let a=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(a<s?this.filteredOptions().length-1:a)}},{signal:this.openAbortController?.signal})}else{let t=this.inputRefEl();if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=N(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=N(()=>{let e=this.inputRefEl();if(!e)return;let t=oe(()=>this.selectedOptions().length);e.value===this._inputValue&&(e.value!==""||t>0)||(this.disabled.set(e.disabled),oe(()=>{this.setSelectedOptionsFromValue(e.value),this.setInputValueFromOptions(this.selectedOptions())}))}),this.selectedLabels=O(()=>{let e=this.selectedOptions();return this.label()?e.map(i=>this.getLabel(i)).join(", "):e.join(", ")}),this.inputState=O(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=O(()=>this.inlineSearch()||this.lazySearch()),this.#a=N(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),i=e.map(s=>t?this.#s(s,t):s).join(",");this.inputValue.set(i)})}#t;#i;#e;#n(e,t){if(!t)return 0;let i=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let d=t[l];if(e.length>s+1&&e[s+1]===d)i+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;i+=100,s=u,r++}}return a&&t.length===r&&(i+=1e3),i+=r*20,i}#o;#a;ngOnInit(){this.setInitInput()}setInitInput(){let e=this.#t.nativeElement.querySelector("input");if(e){this.inputRefInput.set(new I(e));return}let t=this.#t.nativeElement.querySelector("textarea");if(t){this.inputRefInput.set(new I(t));return}typeof MutationObserver<"u"&&this.#e.observe(this.#t.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(e){let t=this.options()||[],i=this.value(),s=this.selectMultiple(),r=e.toString().split(",");if(r.length===0){this.selectedOptions.set([]);return}let a=s?r:[r[0]],l=t.filter(u=>{let m=i?this.#s(u,i)?.toString():u?.toString();return m!=null&&a.includes(m)}),d=l.length>0;this.selectedOptions.set(s?l:d?[l[0]]:[])}setInputValueFromOptions(e){let t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=e.map(s=>t?this.#s(s,t):s).join(",");i!==this.inputValue()&&(this.inputValue.set(i),this.updateInputElValue())}getValue(e){let t=this.value();return t?this.#s(e,t):e}getLabel(e){let t=this.label();return t?this.#s(e,t):e}getLabelAsSlug(e){let t=this.getLabel(e);return!t||typeof t!="string"?"":t.replaceAll(" ","-")}toggleOptionByIndex(e,t,i=!1){let s=this.filteredOptions()[e];if(this.asFreeText()&&e===-1){let m=this.computedFreeTextOption(),x=this.getValue(m);if(!(this.validateFreeText()??(D=>!0))(x))return;this.options.update(D=>D.findIndex(Ve=>this.getValue(Ve)===x)>-1?D:(this.onAddNewFreeTextOption.emit(x),[m,...D])),e=0,s=m}else if(!s){this.close();return}t&&t.stopPropagation();let r=this.selectMultiple(),a=this._isClearable(),l=this.value(),d=this.selectedOptionValues(),u=l?this.#s(s,l):s;this.prevInputValue.set(null),this.#i.set(null),this.selectedOptions.update(m=>{let x=d.indexOf(u);if(x>-1){let V=[...m.slice(0,x),...m.slice(x+1)];return a||V.length>0?V:m}else return this.focusedOptionIndex.set(e),r?[...m,s]:[s]}),r?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),r&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,t),...i.slice(t+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(e){let t=this.value(),i=this.filteredOptions()[e],s=t?this.#s(i,t):i;return this.selectedOptionValues().indexOf(s)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):this.#i.set(this.selectedOptions()),this.selectMultiple()||this.#r())}#r(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let i=this.filteredOptions().findIndex(s=>t?this.#s(s,t)===e:s===e);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue(),t=this.#i();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&t!==null&&this.setInputValueFromOptions(t),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();!e||e.value===t||(e.value=t,e.dispatchEvent(new Event("input")))}#s(e,t){return t.split(".").reduce((i,s)=>i?.[s],e)}#l(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}#c(e){let t=(e??"").toLowerCase(),i="^";for(let s of t)i+=".*"+this.#d(s);return i+=".*$",new RegExp(i,"i")}#d(e){return e.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#e.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-select"]],contentQueries:function(t,i,s){t&1&&Nt(s,i.inlineTemplate,$e,5),t&2&&te()},viewQuery:function(t,i){t&1&&le(i.optionsWrapRef,zo,5),t&2&&te()},hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),j("multiple",i.selectMultiple()))},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:Wo,decls:33,vars:28,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click","color","variant","size"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","checked"],[3,"checked"]],template:function(t,i){if(t&1){let s=Q();H($o),ut(0)(1)(2)(3)(4)(5)(6),f(7,"sh-popover",2,0),Ye("isOpenChange",function(a){return F(s),Ue(i.isOpen,a)||(i.isOpen=a),R(a)}),E("closed",function(){return i.close()}),f(9,"sh-form-field",3),E("click",function(){return i.open()}),g(10,0,["ngProjectAs","label",5,["label"]]),g(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),g(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),f(13,"div",4)(14,"div",5),w(15,qo,1,1)(16,os,2,0)(17,ls,2,1),g(18,3),g(19,4),v()(),w(20,cs,2,0,"sh-icon",6)(21,ds,1,0,"sh-spinner",7)(22,us,2,0,"sh-icon",6)(23,hs,2,0,"sh-icon",6)(24,ps,2,0,"sh-icon",6)(25,fs,2,0,"sh-icon",6)(26,gs,2,0,"sh-icon",6),v(),f(27,"div",8,1),w(29,Ms,3,3),w(30,xs,2,1,"p",9),Ae(31,Vs,4,8,"li",10,Ge),v()()}if(t&2){de(i.placeholderTemplate());let s=i.optionTemplate();p(),de(i.freeTextOptionTemplate());let r=i.selectedOptionTemplate(),a=i.inlineTemplate();p();let l=de(i.selectedOptions()),d=i.inputState();p(),de(r||s||a),p(),de(s||a),p();let u=de(!i.asText()&&i.selectMultiple());p();let m=de(i.isOpen()&&i.hasSearch()&&(u||i.inputValue().length>-1));p(),qe("isOpen",i.isOpen),X("disableOpenByClick",!0)("options",ht(27,Go)),p(2),j("stretch",i.stretch())("small",i.small())("readonly",i.readonly()||i.disabled()),X("color",i.color())("variant",i.variant())("size",i.size()),p(4),j("show-search-text",m),p(),j("is-selected",d==="selected"),p(),T(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?15:l.length>0?16:m?-1:17),p(5),T(d==="closed"?20:d==="loading"?21:d==="open-searching"?22:d==="searching"?23:d==="selected"&&i._isClearable()?24:d==="selected"&&!i._isClearable()?25:26),p(9),T(i.asFreeText()?29:-1),p(),T(i.optionTitle()&&i.filteredOptions().length>0?30:-1),p(),ke(i.filteredOptions())}},dependencies:[Ht,ni,oi,Me,er,ur,tr,rr],encapsulation:2,changeDetection:0})}}return n})();function hr(n){let o=C(I),e=C(Ce),t=_(!1),i=typeof MutationObserver<"u"?new MutationObserver(s=>{s.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&t.set(o.nativeElement.classList.contains(n))})}):void 0;return ui(o.nativeElement,()=>{i&&i.observe(o.nativeElement,{attributes:!0}),t.set(o.nativeElement.classList.contains(n))}),e.onDestroy(()=>{i&&i.disconnect()}),t}var ba=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(I),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=c(!1),this.isOpen=$(!1),this.isOverlay=hr("overlay"),this.#e=this.#i.nativeElement.parentElement,this.#n=this.#e.getBoundingClientRect&&this.#e.getBoundingClientRect(),this.dragImageElement=Z.required("dragImageElement"),this.dragIsEnding=_(!1),this.dragIsOnScreen=_(!0),this.isDragging=_(!1),this.dragPositionX=_(0),this.dragActualPositionX=O(()=>{let e=this.dragPositionX(),t=280,i=100,s=.008,r=t/2,a=r-i/2,l=r+i/2;if(e>l){let d=e-l,m=(t-l)*(1-Math.exp(-s*d));return l+m}else if(e<a){let d=a-e,m=a*(1-Math.exp(-s*d));return a-m}return e}),this.draggingStyle=O(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=N(()=>{this.disableDrag()||(this.isDragging()?this.#t.body.classList.add("dragging"):this.#t.body.classList.remove("dragging"))})}#t;#i;#e;#n;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#n.left)}#o(e){this.isDragging.set(!1),e>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)}dragEnd(e){e.clientX-this.#n.left<0&&this.#o(0),e.clientX-this.#n.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(e){e.stopPropagation(),this.#n=this.#e.getBoundingClientRect(),this.isDragging.set(!0)}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#n.left)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#n=this.#e.getBoundingClientRect(),this.dragPositionX.set(0)}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#n.left)}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#n.left)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-sidenav"]],viewQuery:function(t,i){t&1&&le(i.dragImageElement,Ns,5),t&2&&te()},hostVars:6,hostBindings:function(t,i){t&2&&j("open",i.isOpen())("closed",!i.isOpen())("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:As,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(H(Is),w(0,ks,2,0,"div",1),w(1,Ps,1,0,"div",2),P(2,"div",3),g(3),B(),P(4,"div",4),w(5,Fs,1,0,"div",5),P(6,"div",6),g(7,1),B(),P(8,"main"),g(9,2),B()()),t&2&&(T(i.isOverlay()&&!i.disableDrag()?0:-1),p(),T(i.isOverlay()&&i.isDragging()?1:-1),p(3),ie("transform",!i.disableDrag()&&i.draggingStyle()),p(),T(i.isOverlay()&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})(),b;var pr=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(I),this.#e=C(ge),this.#n=_(null),this.shSortable=c(),this.sortableGroup=c(),this.sortDrop=re(),this.afterDrop=re(),this.crossDrop=re(),this.dragStartIndex=_(-1),this.dragToIndex=_(-1),this.initialPositions=_([]),this.dragables=_([]),this.abortController=null,this.isDropping=!1,this.isCrossTarget=!1,this.draggingEffect=N(()=>{let e=this.dragToIndex(),t=this.dragStartIndex(),i=this.dragables(),s=this.initialPositions();if(e>-1&&s.length>0){this.#e.removeClass(this.#i.nativeElement,"item-dragged-out");let r=null,a=-1;!this.isCrossTarget&&t>-1&&i.length>t?(r=i[t],a=t):this.isCrossTarget&&this.#n()&&(r=this.#n(),a=s.length-1);for(let l=0;l<i.length;l++){if(l===t&&!this.isCrossTarget)continue;let d=this.getVisualIndexOfElement(l);if(d<s.length&&s[l]){let u=s[d].x-s[l].x,m=s[d].y-s[l].y,x=`translate(${u}px, ${m}px)`;i[l].style.transform!==x&&this.#e.setStyle(i[l],"transform",x)}}if(r&&a>-1&&s[e]&&s[a]){let l=s[e].x-s[a].x,d=s[e].y-s[a].y,u=`translate(${l}px, ${d}px)`;r.style.transform!==u&&this.#e.setStyle(r,"transform",u)}}else if(t>-1&&e===-1&&!this.isCrossTarget){this.#e.addClass(this.#i.nativeElement,"item-dragged-out");for(let r=0;r<i.length;r++)i[r].style.transform!==""&&this.#e.setStyle(i[r],"transform","")}}),this.draggablesEffect=N(()=>{let e=this.dragables();this.abortController&&this.abortController.abort(),this.abortController=new AbortController;for(let t of e)t.addEventListener("dragstart",i=>this.dragStart(i),{signal:this.abortController.signal}),t.addEventListener("dragend",()=>this.dragEnd(),{signal:this.abortController.signal})}),this.#r=typeof MutationObserver<"u"?new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){let i=Array.from(this.#i.nativeElement.querySelectorAll("[draggable]:not(.sortable-spacer)"));this.dragables.set(i),this.isDropping&&(this.isDropping=!1,this.#o(),b.activeTarget===this&&(b.activeTarget=null),b.activeSource===this&&(b.activeSource=null))}}):void 0}#t;#i;#e;#n;static{this.activeSource=null}static{this.activeDraggedElement=null}static{this.activeTarget=null}getIndexOfElement(e){return this.dragables().findIndex(t=>t===e)}dragStart(e){if(e.target&&e.dataTransfer){let t=e.target,i=this.#t.elementFromPoint(e.clientX,e.clientY),s=i?.hasAttribute("sort-handle")||i?.closest("[sort-handle]")!==null,r;if(s)r=t.closest("[draggable]");else if(r=t,r.parentElement?.querySelector("[sort-handle]")!==null||!r.draggable){e.preventDefault();return}e.dataTransfer.effectAllowed="move",b.activeSource=this,b.activeDraggedElement=r,b.activeTarget=this,this.isCrossTarget=!1;let a=this.#i.nativeElement.getBoundingClientRect(),l=this.#i.nativeElement,d=Array.from(this.dragables()).map(S=>{let D=S.getBoundingClientRect();return{x:D.left-a.left-l.clientLeft+l.scrollLeft,y:D.top-a.top-l.clientTop+l.scrollTop,width:D.width,height:D.height}});this.initialPositions.set(d);let u=r.getBoundingClientRect(),m=Math.max(0,e.clientX-u.left),x=Math.max(0,e.clientY-u.top);e.dataTransfer.setDragImage(r,m,x);let V=this.getIndexOfElement(r);this.dragStartIndex.set(V),this.dragToIndex.set(V),setTimeout(()=>{this.#e.addClass(r,"sortable-ghost"),this.#e.addClass(this.#i.nativeElement,"dragging")},0)}}ngOnInit(){typeof MutationObserver<"u"&&this.#r.observe(this.#i.nativeElement,{childList:!0})}dragEnter(e){if(!b.activeSource||b.activeSource===this)return;let t=b.activeSource.sortableGroup(),i=this.sortableGroup(),s=b.activeSource.shSortable(),r=this.shSortable(),a=!!(t&&i&&t===i),l=!!(s?.drop&&r?.drop&&s===r);if((a||l)&&(b.activeTarget=this,b.activeSource.dragToIndex.set(-1),!this.isCrossTarget)){this.isCrossTarget=!0,this.#e.addClass(this.#i.nativeElement,"dragging");let u=b.activeDraggedElement.cloneNode(!0);this.#e.setStyle(u,"transform",""),this.#e.removeClass(u,"sortable-ghost"),this.#i.nativeElement.appendChild(u);let m=Array.from(this.#i.nativeElement.querySelectorAll("[draggable]:not(.sortable-spacer)")),x=this.#i.nativeElement.getBoundingClientRect(),V=this.#i.nativeElement,S=m.map(D=>{let ce=D.getBoundingClientRect();return{x:ce.left-x.left-V.clientLeft+V.scrollLeft,y:ce.top-x.top-V.clientTop+V.scrollTop,width:ce.width,height:ce.height}});this.initialPositions.set(S),u.removeAttribute("draggable"),this.#e.addClass(u,"sortable-spacer"),this.#n.set(u),this.#e.addClass(u,"sortable-ghost"),this.dragToIndex.set(this.dragables().length)}}dragLeave(e){if(!(!b.activeSource||b.activeSource===this)){if(e.relatedTarget){if(this.#i.nativeElement.contains(e.relatedTarget))return}else{let t=this.#i.nativeElement.getBoundingClientRect();if(!(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom))return}this.isCrossTarget&&(this.#o(),b.activeTarget===this&&(b.activeTarget=b.activeSource))}}dragOver(e){if(e.preventDefault(),e.dataTransfer.dropEffect="move",b.activeTarget!==this)return;let t=this.#i.nativeElement,i=t.getBoundingClientRect(),s=e.clientX-i.left-t.clientLeft+t.scrollLeft,r=e.clientY-i.top-t.clientTop+t.scrollTop,a=-1,l=1/0,d=this.initialPositions();for(let u=0;u<d.length;u++){let m=d[u],x=m.x+m.width/2,V=m.y+m.height/2,S=Math.hypot(s-x,r-V);S<l&&(l=S,a=u)}a!==-1&&this.dragToIndex()!==a&&this.dragToIndex.set(a)}getVisualIndexOfElement(e){let t=this.dragStartIndex(),i=this.dragToIndex(),s=e;return t>-1?i>t&&e>t&&e<=i?s=e-1:i<t&&e>=i&&e<t&&(s=e+1):this.isCrossTarget&&e>=i&&(s=e+1),s}drop(){if(b.activeSource){if(this.#e.removeClass(b.activeSource.#i.nativeElement,"dragging"),this.#e.removeClass(this.#i.nativeElement,"dragging"),b.activeSource===this){if(this.dragStartIndex()!==-1&&this.dragToIndex()!==-1&&this.dragStartIndex()!==this.dragToIndex()){this.isDropping=!0;let e={previousContainer:this,container:this,previousIndex:this.dragStartIndex(),currentIndex:this.dragToIndex()};this.shSortable()?.drop?this.shSortable().drop(e):(this.sortDrop.emit(e),this.afterDrop.emit({fromIndex:e.previousIndex,toIndex:e.currentIndex}))}}else if(b.activeTarget===this&&this.isCrossTarget){this.isDropping=!0,b.activeSource.isDropping=!0;let e={previousContainer:b.activeSource,container:this,previousIndex:b.activeSource.dragStartIndex(),currentIndex:this.dragToIndex()};this.shSortable()?.drop?this.shSortable().drop(e):(this.sortDrop.emit(e),this.crossDrop.emit({previousContainer:b.activeSource,currentContainer:this,previousIndex:b.activeSource.dragStartIndex(),currentIndex:this.dragToIndex()}))}}}dragEnd(){b.activeSource&&(b.activeSource.#e.removeClass(b.activeSource.#i.nativeElement,"dragging"),b.activeSource.#o()),b.activeTarget&&b.activeTarget!==b.activeSource&&(b.activeTarget.#e.removeClass(b.activeTarget.#i.nativeElement,"dragging"),b.activeTarget.#o()),b.activeSource=null,b.activeTarget=null,b.activeDraggedElement=null}#o(){this.#e.removeClass(this.#i.nativeElement,"dragging"),this.#e.removeClass(this.#i.nativeElement,"item-dragged-out");let e=this.#n();e&&(this.#e.removeChild(this.#i.nativeElement,e),this.#n.set(null)),this.#a(),this.dragStartIndex.set(-1),this.dragToIndex.set(-1),this.isCrossTarget=!1}#a(){let e=this.dragables();for(let t of e)this.#e.setStyle(t,"transform",""),this.#e.removeClass(t,"sortable-ghost")}#r;ngOnDestroy(){this.#r?.disconnect(),this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shSortable",""]],hostAttrs:[1,"sh-sortable"],hostBindings:function(t,i){t&1&&E("dragenter",function(r){return i.dragEnter(r)})("dragleave",function(r){return i.dragLeave(r)})("dragover",function(r){return i.dragOver(r)})("drop",function(){return i.drop()})},inputs:{shSortable:[1,"shSortable"],sortableGroup:[1,"sortableGroup"]},outputs:{sortDrop:"sortDrop",afterDrop:"afterDrop",crossDrop:"crossDrop"}})}}return n})();b=pr;var Da=(()=>{class n extends ii{constructor(){super("[value], [step], [routerLinkActive], button, a","active"),this.color=c(null),this.hostClasses=Y("stepper",{color:this.color}),N(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let i=document.createElement("div");i.className="radio sh-sheet",t.append(i),e.prepend(t)}})})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"]},features:[G],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();var Sa=(()=>{class n{constructor(){this.#t=C(fr),this.shSort=c(),this.sortAsc=O(()=>{let e=this.#t.sortByColumn(),t=this.shSort();return!e||!t?!1:e===t}),this.sortDesc=O(()=>{let e=this.#t.sortByColumn(),t=this.shSort();return!e||!t?!1:e===`-${t}`})}#t;toggleSort(){let e=this.shSort();e&&this.#t.toggleSort(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(t,i){t&1&&E("mousedown",function(){return i.toggleSort()}),t&2&&j("sort-asc",i.sortAsc())("sort-desc",i.sortDesc())},inputs:{shSort:[1,"shSort"]}})}}return n})();var He=1.5,fr=(()=>{class n{constructor(){this.#t=C(I),this.loading=c(!1),this.data=c([]),this.dataChange=re(),this.sortByColumn=$(null),this.color=c(null),this.variant=c(null),this.hostClasses=Y("table",{color:this.color,variant:this.variant}),this.thead=Z("thead"),this.tbody=Z("tbody"),this.columns=Ji(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=O(()=>{let e=this.hostClasses();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=N(()=>{let e=this.tbody()?.nativeElement,t=this.thead()?.nativeElement;if(!e||!t)return;let i=this.stickyHeaderHeight();queueMicrotask(()=>{let s=t.querySelectorAll("tr.sticky").length>0,r=e.querySelectorAll("tr.sticky");if(r.length>0&&s)for(let l=0;l<r.length;l++)r[l].style.top=`${i}px`})}),this.resizing=_(!1),this.sizeTrigger=_(!0),this.#i=null,this.#e=_(!1),this.scrollXState=_(-1),this.scrollYState=_(-1),this.canScrollX=_(!1),this.canScrollY=_(!1),this.columnSizes=O(()=>{this.sizeTrigger();let e=this.columns.signal();return e.reduce((t,i,s)=>{let r=i,a=r.getAttribute("size"),l=s===e.length-1;return a?`${t} ${a}`:r.classList.contains("sticky")||r.classList.contains("sticky-end")?`${t} min-content`:l?`${t} 1fr`:`${t} 1fr`},"")}),this.e=N(()=>{let e=this.sortByColumn();if(e===null)return this.#e()||(this.#i=this.data(),this.#e.set(!0)),this.dataChange.emit(structuredClone(this.#i));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),s=this.data().sort((r,a)=>{let l=r[t],d=a[t],u=0;return typeof l=="number"&&typeof d=="number"&&(u=l-d),l instanceof Date&&d instanceof Date&&(u=l.getTime()-d.getTime()),typeof l=="string"&&typeof d=="string"&&(u=l.localeCompare(d,void 0,{sensitivity:"base"})),i?-u:u});this.dataChange.emit(s)})}#t;#i;#e;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#n()}onResize(e){this.#n()}ngAfterViewInit(){queueMicrotask(()=>this.#n())}toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}#n(){let e=this.#t.nativeElement,t=-1,i=-1,s=e.scrollWidth>e.clientWidth+He;if(s){let a=e.scrollLeft<=He;e.scrollWidth-(e.scrollLeft+e.clientWidth)<He?t=1:a||(t=0)}this.scrollXState.set(t),this.canScrollX.set(s);let r=e.scrollHeight>e.clientHeight+He;if(r){let a=e.scrollTop<=He;e.scrollHeight-(e.scrollTop+e.clientHeight)<He?i=1:a||(i=0)}this.scrollYState.set(i),this.canScrollY.set(r)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-table"]],viewQuery:function(t,i){t&1&&le(i.thead,Rs,5)(i.tbody,Ls,5),t&2&&te(2)},hostVars:18,hostBindings:function(t,i){t&1&&E("scroll",function(){return i.onScroll()})("resize",function(r){return i.onResize(r)},pi),t&2&&(k(i.hostClasses()),ie("grid-template-columns",i.columnSizes()),j("resizing",i.resizing())("can-scroll-x",i.canScrollX())("can-scroll-y",i.canScrollY())("scrolled-x",i.scrollXState()>=0)("scrolled-x-end",i.scrollXState()===1)("scrolled-y",i.scrollYState()>=0)("scrolled-y-end",i.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"],color:[1,"color"],variant:[1,"variant"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Hs,decls:11,vars:2,consts:[["thead",""],["tbody",""],[1,"actionbar"],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(H(Bs),f(0,"div",2),g(1),v(),w(2,js,1,0,"sh-progress-bar",3),f(3,"thead",null,0),g(5,1),g(6,2),v(),f(7,"tbody",null,1),g(9,3),v(),w(10,zs,2,0,"div",4)),t&2&&(p(2),T(i.loading()?2:-1),p(8),T(i.loading()?-1:10))},dependencies:[dr],encapsulation:2,changeDetection:0})}}return n})(),Ma=(()=>{class n extends ii{constructor(){super("[value], [tab], button, a","active"),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=c(null),this.variant=c(null),this.hostClasses=Y("tabs",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-tabs"]],hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),ie("--tabs-id",i.id))},inputs:{color:[1,"color"],variant:[1,"variant"]},features:[G],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();var xa=(()=>{class n{constructor(){this.disableToggle=c(!1),this.isActive=$(),this.#t=N(()=>{this.disableToggle()&&this.isActive.set(!0)}),this.color=c(null),this.variant=c(null),this.hostClasses=Y("card",{color:this.color,variant:this.variant})}#t;toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-toggle-card"]],hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),j("active",i.isActive()))},inputs:{disableToggle:[1,"disableToggle"],isActive:[1,"isActive"],color:[1,"color"],variant:[1,"variant"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:Ws,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(t,i){t&1&&(H($s),f(0,"h3",0),E("click",function(){return!i.disableToggle()&&i.toggle()}),g(1,0,null,Gs,1,0),w(3,qs,2,0,"sh-icon",1),v(),f(4,"div",2)(5,"div",3),g(6,1),v()()),t&2&&(p(3),T(i.disableToggle()?-1:3))},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})(),Ea=(()=>{class n{constructor(){this._elementRef=C(I),this.internalInput=Z("internalInput"),this.projectedInputs=at("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=$(!1),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=Y("toggle",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-toggle"]],viewQuery:function(t,i){t&1&&le(i.internalInput,ti,5),t&2&&te()},hostVars:3,hostBindings:function(t,i){t&1&&E("keydown.enter",function(r){return i.onEnter(r)}),t&2&&(K("disabled",i.disabled()?"":null),k(i.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:ae,decls:4,vars:1,consts:[["internalInput",""],[1,"box"],[1,"knob"],["type","checkbox",1,"internal-input",3,"checked"],["type","checkbox",1,"internal-input",3,"change","checked"]],template:function(t,i){t&1&&(H(),P(0,"div",1),Ee(1,"div",2),B(),g(2),w(3,Us,2,2,"input",3)),t&2&&(p(3),T(i.projectedInputs().length===0&&!i.noInternalInput()?3:-1))},encapsulation:2,changeDetection:0})}}return n})();var wa=(()=>{class n{constructor(){this.filesOver=_(!1),this.filesDropped=re()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&E("dragover",function(r){return i.onDragOver(r)})("dragleave",function(r){return i.onDragLeave(r)})("drop",function(r){return i.ondrop(r)}),t&2&&j("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();var gr=(()=>{class n{constructor(){this.positionAnchorName=c.required(),this.anchorEl=c.required(),this.isOpen=c(!1),this.content=c(),this.close=c(()=>{}),this.tooltipContext={close:()=>this.close()()},this.isTemplate=O(()=>this.content()instanceof $e),this.#t=C(_e),this.#i=C(I),this.#e=C(ge),this.#n=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=_(!1),this.openEffect=N(()=>{if(this.isOpen())queueMicrotask(()=>{let e=this.#i.nativeElement;!e||!e.isConnected||(this.#n&&this.#n.abort(),this.#n=new AbortController,e.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#o(e).addEventListener("scroll",()=>this.calculateTooltipPosition(),{signal:this.#n?.signal,passive:!0}),window?.addEventListener("resize",()=>this.calculateTooltipPosition(),{signal:this.#n?.signal,passive:!0}),this.calculateTooltipPosition()}))});else{let e=this.#i.nativeElement;if(e)try{e.matches(":popover-open")&&e.hidePopover()}catch{}this.#n?.abort(),this.#n=null}}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let e=this.anchorEl().nativeElement.getBoundingClientRect(),t=this.#i.nativeElement,i=t.getBoundingClientRect();if(i.width===0&&i.height===0)return;let s=8,r=(S,D)=>({left:S.left+S.width/2-D.width/2,top:S.top-D.height-s}),x=[r,(S,D)=>({left:S.right-D.width,top:S.top-D.height-s}),(S,D)=>({left:S.left,top:S.top-D.height-s}),(S,D)=>({left:S.left+S.width/2-D.width/2,top:S.bottom+s}),(S,D)=>({left:S.right-D.width,top:S.bottom+s}),(S,D)=>({left:S.left,top:S.bottom+s})];for(let S of x){let D=S(e,i);if(this.#r(D,i)){this.#a(D,t),this.isBelow.set(D.top>e.top);return}}let V=this.#s(r(e,i),i);this.#a(V,t),this.isBelow.set(V.top>e.top)}}#t;#i;#e;#n;ngOnDestroy(){this.#n?.abort(),this.#n=null}#o(e){let t=["scroll","auto"],i=e.parentElement;for(;i;){if(t.indexOf(window?.getComputedStyle(i).overflowY)>-1&&i.scrollHeight>i.clientHeight)return i;i=i.parentElement}return this.#t.documentElement}#a(e,t){this.#e.setStyle(t,"left",`${e.left}px`),this.#e.setStyle(t,"top",`${e.top}px`),this.#e.setStyle(t,"position","fixed"),this.#e.setStyle(t,"margin","0")}#r(e,t){return e.left>=0&&e.top>=0&&e.left+t.width<=window.innerWidth&&e.top+t.height<=window.innerHeight}#s(e,t){return{left:Math.max(0,Math.min(e.left,window.innerWidth-t.width)),top:Math.max(0,Math.min(e.top,window.innerHeight-t.height))}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){t&2&&(K("popover","manual"),ie("position-anchor",i.positionAnchorName()),j("below",i.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"],content:[1,"content"],close:[1,"close"]},decls:3,vars:1,consts:[[1,"tooltip-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){t&1&&(f(0,"div",0),w(1,Xs,1,4,"ng-container")(2,Qs,1,1),v()),t&2&&(p(),T(i.isTemplate()?1:2))},dependencies:[Ht],encapsulation:2})}}return n})(),W=null,Ta=(()=>{class n{constructor(){this.shTooltip=c.required(),this.#t=N(()=>{let e=this.shTooltip();oe(()=>{this.isOpen()&&W?.component===this&&W?.wrapperComponentRef&&(W.wrapperComponentRef.setInput("content",e),W.wrapperComponentRef.changeDetectorRef.detectChanges())})}),this.#i=C(I),this.#e=C(gi),this.#n=C(di),this.debounceTimer=null,this.DEBOUNCE_DELAY=50,this.anchorName=`--${rt()}`,this.isOpen=_(!1),this.destroyTimeout=null}#t;#i;#e;#n;onMouseEnter(e){e.stopPropagation(),W?.component.anchorName!==this.anchorName?this.cleanupTooltip():this.cancelCleanupTimer(),this.showTooltip()}onMouseLeave(e){e.stopPropagation(),this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.destroyTimeout&&(clearTimeout(this.destroyTimeout),this.destroyTimeout=null)}showTooltip(){if(W?.wrapperComponentRef||!this.shTooltip()){W?.component===this&&W?.wrapperComponentRef&&W.wrapperComponentRef.setInput("content",this.shTooltip());return}W={wrapperComponentRef:this.#e.createComponent(gr,{environmentInjector:this.#n}),component:this},W.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),W.wrapperComponentRef.setInput("anchorEl",this.#i),W.wrapperComponentRef.setInput("isOpen",this.isOpen),W.wrapperComponentRef.setInput("content",this.shTooltip()),W.wrapperComponentRef.setInput("close",()=>this.cleanupTooltip()),W.wrapperComponentRef.changeDetectorRef.detectChanges(),W.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",e=>{e.stopPropagation(),this.cancelCleanupTimer()}),W.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",e=>{e.stopPropagation(),this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){W?.wrapperComponentRef&&(W.component.cancelCleanupTimer(),W.component.isOpen.set(!1),W.wrapperComponentRef.location.nativeElement.hidePopover(),this.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{W?.wrapperComponentRef.destroy(),W=null})},this.DEBOUNCE_DELAY))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(t,i){t&1&&E("mouseenter",function(r){return i.onMouseEnter(r)})("mouseleave",function(r){return i.onMouseLeave(r)}),t&2&&(ie("anchor-name",i.anchorName),j("active",i.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}})}}return n})();export{Se as a,nn as b,Oi as c,yi as d,Ir as e,Ar as f,wn as g,tt as h,xt as i,Pr as j,In as k,Pn as l,Rn as m,Bn as n,qi as o,$n as p,Gn as q,Fr as r,Rr as s,Lr as t,Zi as u,Me as v,la as w,ca as x,Js as y,da as z,ua as A,ha as B,pa as C,er as D,tr as E,fa as F,rr as G,oi as H,ga as I,ma as J,va as K,dr as L,_a as M,Ca as N,ur as O,ya as P,ba as Q,Da as R,Sa as S,fr as T,Ma as U,xa as V,Ea as W,wa as X,Ta as Y};
package/chunk-G5IUH2UI.js DELETED
@@ -1 +0,0 @@
1
- import{b as Qr}from"./chunk-AAUAZ76N.js";import{b as Wr,g as rt}from"./chunk-GIITUFAQ.js";import{$ as Ir,$a as $,A as Ae,B as Ee,D as ue,F as Cr,Fb as jr,G as Q,H as Ut,K as Sr,L as x,Lc as qr,M as Ye,N as j,Qa as Tr,Qc as y,Rc as Xe,S as w,Sc as Hr,T as wr,V as R,Vc as Br,X as br,Xc as Vr,Y as M,Z as K,Zb as kr,_ as h,_a as jt,ad as et,ba as H,bb as Dr,ca as U,cc as $r,d as pr,db as Nr,dc as zr,e as gr,ec as Fr,ed as tt,f as vr,fb as Je,g as re,gb as _r,h as _,ha as Ar,hd as Gr,ib as Te,j as O,ja as Pt,k as b,ka as Er,l as g,la as ne,m as mr,n as _t,nb as Or,o as yr,oa as Ze,pa as C,pb as Ur,q as A,r as Ot,rb as Pr,s as k,sa as Me,sb as Lr,t as Ie,ta as Lt,u as Rr,ua as Mr,v as Ke,va as xt,vb as xr,y as W}from"./chunk-NFXXT6A3.js";import{a as l,b as N}from"./chunk-7CGTOI24.js";var f="primary",He=Symbol("RouteTitle"),qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function oe(t){return new qt(t)}function kt(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function tn(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let c={},u=t.slice(0,r.length);return kt(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!kt(o,t.slice(0,o.length),a)||!kt(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function ct(t){return new Promise((n,e)=>{t.pipe(Q()).subscribe({next:r=>n(r),error:r=>e(r)})})}function Qn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],n[e]))return!1;return!0}function z(t,n){let e=t?Ht(t):void 0,r=n?Ht(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!rn(t[i],n[i]))return!1;return!0}function Ht(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function rn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Kn(t){return t.length>0?t[t.length-1]:null}function ce(t){return _t(t)?t:Ur(t)?b(Promise.resolve(t)):g(t)}function nn(t){return _t(t)?ct(t):Promise.resolve(t)}var Yn={exact:an,subset:sn},on={exact:Zn,subset:Jn,ignored:()=>!0},nr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Pe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function ir(t,n,e){let r=t instanceof E?t:n.parseUrl(t);return Xe(()=>Bt(n.lastSuccessfulNavigation()?.finalUrl??new E,r,l(l({},Pe),e)))}function Bt(t,n,e){return Yn[e.paths](t.root,n.root,e.matrixParams)&&on[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Zn(t,n){return z(t,n)}function an(t,n,e){if(!ie(t.segments,n.segments)||!ot(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!an(t.children[r],n.children[r],e))return!1;return!0}function Jn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>rn(t[e],n[e]))}function sn(t,n,e){return cn(t,n,n.segments,e)}function cn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ie(i,e)||n.hasChildren()||!ot(i,e,r))}else if(t.segments.length===e.length){if(!ie(t.segments,e)||!ot(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!sn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ie(t.segments,i)||!ot(t.segments,i,r)||!t.children[f]?!1:cn(t.children[f],n,o,r)}}function ot(t,n,e){return n.every((r,i)=>on[e](t[i].parameters,r.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return ti.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return at(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return ln(this)}};function Xn(t,n){return ie(t,n)&&t.every((e,r)=>z(e.parameters,n[r].parameters))}function ie(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ei(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>new Z,providedIn:"root"})}return t})(),Z=class{parse(n){let e=new Gt(n);return new E(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=ii(n.queryParams),i=typeof n.fragment=="string"?`#${ri(n.fragment)}`:"";return`${e}${r}${i}`}},ti=new Z;function at(t){return t.segments.map(n=>ln(n)).join("/")}function De(t,n){if(!t.hasChildren())return at(t);if(n){let e=t.children[f]?De(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ei(t,(r,i)=>i===f?[De(t.children[f],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${at(t)}/${e[0]}`:`${at(t)}/(${e.join("//")})`}}function un(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nt(t){return un(t).replace(/%3B/gi,";")}function ri(t){return encodeURI(t)}function Vt(t){return un(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function st(t){return decodeURIComponent(t)}function Kr(t){return st(t.replace(/\+/g,"%20"))}function ln(t){return`${Vt(t.path)}${ni(t.parameters)}`}function ni(t){return Object.entries(t).map(([n,e])=>`;${Vt(n)}=${Vt(e)}`).join("")}function ii(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${nt(e)}=${nt(i)}`).join("&"):`${nt(e)}=${nt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var oi=/^[^\/()?;#]+/;function $t(t){let n=t.match(oi);return n?n[0]:""}var ai=/^[^\/()?;=#]+/;function si(t){let n=t.match(ai);return n?n[0]:""}var ci=/^[^=?&#]+/;function ui(t){let n=t.match(ci);return n?n[0]:""}var li=/^[^&#]+/;function di(t){let n=t.match(li);return n?n[0]:""}var Gt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new w(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[f]=new v(e,r)),i}parseSegment(){let n=$t(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new Y(st(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=si(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=$t(this.remaining);i&&(r=i,this.capture(r))}n[st(e)]=st(r)}parseQueryParam(n){let e=ui(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=di(this.remaining);s&&(r=s,this.capture(r))}let i=Kr(e),o=Kr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=$t(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let a=this.parseChildren(e+1);r[s??f]=Object.keys(a).length===1&&a[f]?a[f]:new v([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function dn(t){return t.segments.length>0?new v([],{[f]:t}):t}function hn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=hn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return hi(e)}function hi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof E}function fn(t,n,e=null,r=null,i=new Z){let o=pn(t);return gn(o,n,e,r,i)}function pn(t){let n;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new v(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=dn(r);return n??i}function gn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return zt(o,o,o,e,r,i);let s=fi(n);if(s.toRoot())return zt(o,o,new v([],{}),e,r,i);let a=pi(s,o,t),c=a.processChildren?_e(a.segmentGroup,a.index,s.commands):mn(a.segmentGroup,a.index,s.commands);return zt(o,a.segmentGroup,c,e,r,i)}function ut(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Le(t){return typeof t=="object"&&t!=null&&t.outlets}function Yr(t,n,e){t||="\u0275";let r=new E;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function zt(t,n,e,r,i,o){let s={};for(let[u,d]of Object.entries(r??{}))s[u]=Array.isArray(d)?d.map(p=>Yr(u,p,o)):Yr(u,d,o);let a;t===n?a=e:a=vn(t,n,e);let c=dn(hn(a));return new E(c,s,i)}function vn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=vn(o,n,e)}),new v(t.segments,r)}var lt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ut(r[0]))throw new w(4003,!1);let i=r.find(Le);if(i&&i!==Kn(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new lt(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new lt(e,n,r)}var de=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function pi(t,n,e){if(t.isAbsolute)return new de(n,!0,0);if(!e)return new de(n,!1,NaN);if(e.parent===null)return new de(e,!0,0);let r=ut(t.commands[0])?0:1,i=e.segments.length-1+r;return gi(e,i,t.numberOfDoubleDots)}function gi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new de(r,!1,i-o)}function vi(t){return Le(t[0])?t[0].outlets:{[f]:t}}function mn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=mi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new v(t.segments.slice(r.pathIndex),t.children),_e(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Wt(t,n,e):r.match?_e(t,0,i):Wt(t,n,e)}function _e(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=vi(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=_e(t.children[f],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=mn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function mi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(Le(a))break;let c=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Jr(c,u,s))return o;r+=2}else{if(!Jr(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Wt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Le(o)){let c=yi(o.outlets);return new v(r,c)}if(i===0&&ut(e[0])){let c=t.segments[n];r.push(new Y(c.path,Zr(e[0]))),i++;continue}let s=Le(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ut(a)?(r.push(new Y(s,Zr(a))),i+=2):(r.push(new Y(s,{})),i++)}return new v(r,{})}function yi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Wt(new v([],{}),0,r))}),n}function Zr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Jr(t,n,e){return t==e.path&&z(n,e.parameters)}var Oe="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),D=class{id;url;constructor(n,e){this.id=n,this.url=e}},ae=class extends D{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends D{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},I=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(I||{}),xe=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(xe||{}),P=class extends D{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function yn(t){return t instanceof P&&(t.code===I.Redirect||t.code===I.SupersededByNewNavigation)}var V=class extends D{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},se=class extends D{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},je=class extends D{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class extends D{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class extends D{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ft=class extends D{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends D{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},mt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var fe=class{},ke=class{},pe=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ri(t){return!(t instanceof fe)&&!(t instanceof pe)&&!(t instanceof ke)}var St=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Re(this.rootInjector)}},Re=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new St(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(K(H))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Qt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Qt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Kt(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Kt(n,this._root).map(e=>e.value)}};function Qt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Qt(t,e);if(r)return r}return null}function Kt(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Kt(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function le(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $e=class extends wt{snapshot;constructor(n,e){super(n),this.snapshot=e,ar(this,n)}toString(){return this.snapshot.toString()}};function Rn(t,n){let e=Ci(t,n),r=new _([new Y("",{})]),i=new _({}),o=new _({}),s=new _({}),a=new _(""),c=new G(r,i,s,a,o,f,t,e.root);return c.snapshot=e.root,new $e(new T(c,[]),e)}function Ci(t,n){let e={},r={},i={},s=new ge([],e,i,"",r,f,t,null,{},n);return new ze("",new T(s,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[He]))??g(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(n=>oe(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(n=>oe(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function or(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&Sn(i)&&(r.resolve[He]=i.title),r}var ge=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[He]}constructor(n,e,r,i,o,s,a,c,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ze=class extends wt{url;constructor(n,e){super(e),this.url=n,ar(this,e)}toString(){return Cn(this._root)}};function ar(t,n){n.value._routerState=t,n.children.forEach(e=>ar(t,e))}function Cn(t){let n=t.children.length>0?` { ${t.children.map(Cn).join(", ")} } `:"";return`${t.value}${n}`}function Ft(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(n.params,e.params)||t.paramsSubject.next(e.params),Qn(n.url,e.url)||t.urlSubject.next(e.url),z(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Yt(t,n){let e=z(t.params,n.params)&&Xn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Yt(t.parent,n.parent))}function Sn(t){return typeof t.title=="string"||t.title===null}var wn=new M(""),sr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new ne;deactivateEvents=new ne;attachEvents=new ne;detachEvents=new ne;routerOutletData=Vr();parentContexts=h(Re);location=h(Dr);changeDetector=h(et);inputBinder=h(Be,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Zt(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Te({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Me]})}return t})(),Zt=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===G?this.route:n===Re?this.childContexts:n===wn?this.outletData:this.parent.get(n,e)}},Be=new M(""),cr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ot([r.queryParams,r.params,r.data]).pipe(x(([o,s,a],c)=>(a=l(l(l({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Gr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),ur=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=_r({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&jr(0,"router-outlet")},dependencies:[sr],encapsulation:2})}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?N(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=ur),e}function Si(t,n,e){let r=Fe(t,n._root,e?e._root:void 0);return new $e(r,n)}function Fe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=wi(t,n,e);return new T(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Fe(t,a)),s}}let r=bi(n.value),i=n.children.map(o=>Fe(t,o));return new T(r,i)}}function wi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Fe(t,r,i);return Fe(t,r)})}function bi(t){return new G(new _(t.url),new _(t.params),new _(t.queryParams),new _(t.fragment),new _(t.data),t.outlet,t.component,t)}var ve=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},bn="ngNavigationCancelingError";function bt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=In(!1,I.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function In(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[bn]=!0,e.cancellationCode=n,e}function Ii(t){return An(t)&&J(t.url)}function An(t){return!!t&&t[bn]}var Jt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Ft(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=le(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=le(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=le(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Ct(o.value.snapshot))}),n.children.length&&this.forwardEvent(new yt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Ft(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ft(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},It=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Ai(t,n,e){let r=t._root,i=n?n._root:null;return Ne(r,i,e,[r.value])}function Ei(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!br(t)?t:n.get(t):r}function Ne(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=le(n);return t.children.forEach(s=>{Mi(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ue(a,e.getContext(s),i)),i}function Mi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Ti(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new It(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ne(t,n,a?a.children:null,r,i):Ne(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new he(a.outlet.component,s))}else s&&Ue(n,a,i),i.canActivateChecks.push(new It(r)),o.component?Ne(t,null,a?a.children:null,r,i):Ne(t,null,e,r,i);return i}function Ti(t,n,e){if(typeof e=="function")return U(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!ie(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ie(t.url,n.url)||!z(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(t,n)||!z(t.queryParams,n.queryParams);default:return!Yt(t,n)}}function Ue(t,n,e){let r=le(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function Ve(t){return typeof t=="function"}function Di(t){return typeof t=="boolean"}function Ni(t){return t&&Ve(t.canLoad)}function _i(t){return t&&Ve(t.canActivate)}function Oi(t){return t&&Ve(t.canActivateChild)}function Ui(t){return t&&Ve(t.canDeactivate)}function Pi(t){return t&&Ve(t.canMatch)}function En(t){return t instanceof yr||t?.name==="EmptyError"}var it=Symbol("INITIAL_VALUE");function me(){return x(t=>Ot(t.map(n=>n.pipe(ue(1),Sr(it)))).pipe(A(n=>{for(let e of n)if(e!==!0){if(e===it)return it;if(e===!1||Li(e))return e}return!0}),W(n=>n!==it),ue(1)))}function Li(t){return J(t)||t instanceof ve}function Mn(t){return t.aborted?g(void 0).pipe(ue(1)):new vr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Tn(t){return Ye(Mn(t))}function xi(t){return k(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(N(l({},n),{guardsResult:!0})):ji(o,e,r).pipe(k(s=>s&&Di(s)?ki(e,i,t):g(s)),A(s=>N(l({},n),{guardsResult:s})))})}function ji(t,n,e){return b(t).pipe(k(r=>Hi(r.component,r.route,e,n)),Q(r=>r!==!0,!0))}function ki(t,n,e){return b(n).pipe(Ee(r=>Rr(zi(r.route.parent,e),$i(r.route,e),qi(t,r.path),Fi(t,r.route))),Q(r=>r!==!0,!0))}function $i(t,n){return t!==null&&n&&n(new Rt(t)),g(!0)}function zi(t,n){return t!==null&&n&&n(new mt(t)),g(!0)}function Fi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>Ke(()=>{let o=n._environmentInjector,s=Ce(i,o),a=_i(s)?s.canActivate(n,t):U(o,()=>s(n,t));return ce(a).pipe(Q())}));return g(r).pipe(me())}function qi(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ei(o)).filter(o=>o!==null).map(o=>Ke(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ce(a,c),d=Oi(u)?u.canActivateChild(e,t):U(c,()=>u(e,t));return ce(d).pipe(Q())});return g(s).pipe(me())}));return g(i).pipe(me())}function Hi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=Ce(s,a),u=Ui(c)?c.canDeactivate(t,n,e,r):U(a,()=>c(t,n,e,r));return ce(u).pipe(Q())});return g(o).pipe(me())}function Bi(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ce(a,t),u=Ni(c)?c.canLoad(n,e):U(t,()=>c(n,e)),d=ce(u);return i?d.pipe(Tn(i)):d});return g(s).pipe(me(),Dn(r))}function Dn(t){return gr(j(n=>{if(typeof n!="boolean")throw bt(t,n)}),A(n=>n===!0))}function Vi(t,n,e,r,i,o){let s=n.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=Ce(c,t),d=Pi(u)?u.canMatch(n,e,i):U(t,()=>u(n,e,i));return ce(d).pipe(Tn(o))});return g(a).pipe(me(),Dn(r))}var B=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function Gi(t){throw new w(4e3,!1)}function Wi(t){throw In(!1,I.GuardRejected)}var Xt=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw Gi(`${n.redirectTo}`);i=i.children[f]}}async applyRedirectCommands(n,e,r,i,o){let s=await Qi(e,i,o);if(s instanceof E)throw new qe(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new qe(a);return a}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new E(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function Qi(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return ct(ce(U(e,()=>r(n))))}function Ki(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function F(t){return t.outlet||f}function Yi(t,n){let e=t.filter(r=>F(r)===n);return e.push(...t.filter(r=>F(r)!==n)),e}var er={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Nn(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Zi(t,n,e,r,i,o,s){let a=_n(t,n,e);if(!a.matched)return g(a);let c=Nn(o(a));return r=Ki(n,r),Vi(r,n,e,i,c,s).pipe(A(u=>u===!0?a:l({},er)))}function _n(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},er):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||tn)(e,t,n);if(!i)return l({},er);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Xr(t,n,e,r){return e.length>0&&eo(t,e,r)?{segmentGroup:new v(n,Xi(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&to(t,e,r)?{segmentGroup:new v(t.segments,Ji(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Ji(t,n,e,r){let i={};for(let o of e)if(Et(t,n,o)&&!r[F(o)]){let s=new v([],{});i[F(o)]=s}return l(l({},r),i)}function Xi(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&F(r)!==f){let i=new v([],{});e[F(r)]=i}return e}function eo(t,n,e){return e.some(r=>Et(t,n,r)&&F(r)!==f)}function to(t,n,e){return e.some(r=>Et(t,n,r))}function Et(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function ro(t,n,e){return n.length===0&&!t.children[e]}var tr=class{};async function no(t,n,e,r,i,o,s="emptyOnly",a){return new rr(t,n,e,r,i,s,o,a).recognize()}var io=31,rr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Xt(this.urlSerializer,this.urlTree)}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Xr(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new T(r,e),o=new ze("",i),s=fn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let e=new ge([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,f,e),rootSnapshot:e}}catch(r){if(r instanceof qe)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof B?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=await this.processSegment(n,e,r,r.segments,i,!0,o);return s instanceof T?[s]:[]}async processChildren(n,e,r,i){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],d=Yi(e,c),p=await this.processSegmentGroup(n,d,u,c,i);s.push(...p)}let a=On(s);return oo(a),a}async processSegment(n,e,r,i,o,s,a){for(let c of e)try{return await this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a)}catch(u){if(u instanceof B||En(u))continue;throw u}if(ro(r,i,o))return new tr;throw new B(r)}async processSegmentAgainstRoute(n,e,r,i,o,s,a,c){if(F(r)!==s&&(s===f||!Et(i,o,r)))throw new B(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c);throw new B(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:p,remainingSegments:m}=_n(e,i,o);if(!c)throw new B(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>io&&(this.allowRedirects=!1));let ee=this.createSnapshot(n,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let q=await this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,Nn(ee),n),te=await this.applyRedirects.lineralizeSegments(i,q);return this.processSegment(n,r,e,te.concat(m),s,!1,a)}createSnapshot(n,e,r,i,o){let s=new ge(r,i,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,so(e),F(e),e.component??e._loadedComponent??null,e,co(e),n),a=or(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(n,e,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Qe=>this.createSnapshot(n,r,Qe.consumedSegments,Qe.parameters,s),c=await ct(Zi(e,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(e.children={}),!c?.matched)throw new B(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:p,consumedSegments:m,remainingSegments:ee}=c,q=this.createSnapshot(n,r,m,p,s),{segmentGroup:te,slicedSegments:we}=Xr(e,m,ee,u);if(we.length===0&&te.hasChildren()){let Qe=await this.processChildren(d,u,te,q);return new T(q,Qe)}if(u.length===0&&we.length===0)return new T(q,[]);let Nt=F(r)===o,be=await this.processSegment(d,u,te,we,Nt?f:o,!0,q);return new T(q,be instanceof T?[be]:[])}async getChildConfig(n,e,r){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await ct(Bi(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Wi(e)}return{routes:[],injector:n}}};function oo(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function ao(t){let n=t.value.routeConfig;return n&&n.path===""}function On(t){let n=[],e=new Set;for(let r of t){if(!ao(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=On(r.children);n.push(new T(r.value,i))}return n.filter(r=>!e.has(r))}function so(t){return t.data||{}}function co(t){return t.resolve||{}}function uo(t,n,e,r,i,o,s){return k(async a=>{let{state:c,tree:u}=await no(t,n,e,r,a.extractedUrl,i,o,s);return N(l({},a),{targetSnapshot:c,urlAfterRedirects:u})})}function lo(t){return k(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of Un(a))o.add(c);let s=0;return b(o).pipe(Ee(a=>i.has(a)?ho(a,e,t):(a.data=or(a,a.parent,t).resolve,g(void 0))),j(()=>s++),Ut(1),k(a=>s===o.size?g(n):O))})}function Un(t){let n=t.children.map(e=>Un(e)).flat();return[t,...n]}function ho(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Sn(r)&&(i[He]=r.title),Ke(()=>(t.data=or(t,t.parent,e).resolve,fo(i,t,n).pipe(A(o=>(t._resolvedData=o,t.data=l(l({},t.data),o),null)))))}function fo(t,n,e){let r=Ht(t);if(r.length===0)return g({});let i={};return b(r).pipe(k(o=>po(t[o],n,e).pipe(Q(),j(s=>{if(s instanceof ve)throw bt(new Z,s);i[o]=s}))),Ut(1),A(()=>i),Ae(o=>En(o)?O:mr(o)))}function po(t,n,e){let r=n._environmentInjector,i=Ce(t,r),o=i.resolve?i.resolve(n,e):U(r,()=>i(n,e));return ce(o)}function en(t){return x(n=>{let e=t(n);return e?b(e).pipe(A(()=>n)):g(n)})}var dr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(Pn),providedIn:"root"})}return t})(),Pn=(()=>{class t extends dr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(K(Qr))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new M("",{factory:()=>({})}),Ge=new M(""),hr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(qr);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await nn(U(e,()=>r.loadComponent())),s=await jn(xn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await Ln(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function Ln(t,n,e,r){let i=await nn(U(e,()=>t.loadChildren())),o=await jn(xn(i)),s;o instanceof Nr||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(t);let a,c,u=!1,d;return Array.isArray(s)?(c=s,u=!0):(a=s.create(e).injector,d=s,c=a.get(Ge,[],{optional:!0,self:!0}).flat()),{routes:c.map(lr),injector:a,factory:d}}function go(t){return t&&typeof t=="object"&&"default"in t}function xn(t){return go(t)?t.default:t}async function jn(t){return t}var Mt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(vo),providedIn:"root"})}return t})(),vo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kn=new M("");var mo=()=>{},$n=new M(""),zn=(()=>{class t{currentNavigation=C(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=C(null);events=new re;transitionAbortWithErrorSubject=new re;configLoader=h(hr);environmentInjector=h(H);destroyRef=h(Pt);urlSerializer=h(ye);rootContexts=h(Re);location=h(rt);inputBindingEnabled=h(Be,{optional:!0})!==null;titleStrategy=h(dr);options=h(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(Mt);createViewTransition=h(kn,{optional:!0});navigationErrorHandler=h($n,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new gt(i)),r=i=>this.events.next(new vt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;y(()=>{this.transitions?.next(N(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new _(null),this.transitions.pipe(W(r=>r!==null),x(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(x(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",I.SupersededByNewNavigation),O;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?N(l({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new V(a.id,this.urlSerializer.serialize(a.rawUrl),"",xe.IgnoredSameUrlNavigation)),a.resolve(!1),O;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(x(p=>(this.events.next(new ae(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?O:Promise.resolve(p))),uo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),j(p=>{r.targetSnapshot=p.targetSnapshot,r.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=p.urlAfterRedirects,m)),this.events.next(new ke)}),x(p=>b(r.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(A(()=>p))),j(()=>{let p=new je(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:m,source:ee,restoredState:q,extras:te}=a,we=new ae(p,this.urlSerializer.serialize(m),ee,q);this.events.next(we);let Nt=Rn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=N(l({},a),{targetSnapshot:Nt,urlAfterRedirects:m,extras:N(l({},te),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(be=>(be.finalUrl=m,be)),g(r)}else return this.events.next(new V(a.id,this.urlSerializer.serialize(a.extractedUrl),"",xe.IgnoredByUrlHandlingStrategy)),a.resolve(!1),O}),A(a=>{let c=new dt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=N(l({},a),{guards:Ai(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),xi(a=>this.events.next(a)),x(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw bt(this.urlSerializer,a.guardsResult);let c=new ht(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return O;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",I.GuardRejected),O;if(a.guards.canActivateChecks.length===0)return g(a);let u=new ft(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return O;let d=!1;return g(a).pipe(lo(this.paramsInheritanceStrategy),j({next:()=>{d=!0;let p=new pt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>{d||this.cancelNavigationTransition(a,"",I.NoDataFromResolver)}}))}),en(a=>{let c=d=>{let p=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let m=d._environmentInjector;p.push(this.configLoader.loadComponent(m,d.routeConfig).then(ee=>{d.component=ee}))}for(let m of d.children)p.push(...c(m));return p},u=c(a.targetSnapshot.root);return u.length===0?g(a):b(Promise.all(u).then(()=>a))}),en(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?b(u).pipe(A(()=>r)):g(r)}),ue(1),x(a=>{let c=Si(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=N(l({},a),{targetRouterState:c}),this.currentNavigation.update(d=>(d.targetRouterState=c,d)),this.events.next(new fe);let u=r.beforeActivateHandler.deferredHandle;return u?b(u.then(()=>a)):g(a)}),j(a=>{new Jt(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=mo,c)),this.lastSuccessfulNavigation.set(y(this.currentNavigation)),this.events.next(new L(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Ye(Mn(o.signal).pipe(W(()=>!i&&!r.targetRouterState),j(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",I.Aborted)}))),j({complete:()=>{i=!0}}),Ye(this.transitionAbortWithErrorSubject.pipe(j(a=>{throw a}))),Cr(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",I.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Ae(a=>{if(i=!0,this.destroyed)return r.resolve(!1),O;if(An(a))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),Ii(a)?this.events.next(new pe(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new se(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=U(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof ve){let{message:d,cancellationCode:p}=bt(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),d,p)),this.events.next(new pe(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return O}))}))}cancelNavigationTransition(e,r,i){let o=new P(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=y(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yo(t){return t!==Oe}var Fn=new M("");var qn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(Ro),providedIn:"root"})}return t})(),At=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},Ro=(()=>{class t extends At{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Lt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tt=(()=>{class t{urlSerializer=h(ye);options=h(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(rt);urlHandlingStrategy=h(Mt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof E?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Rn(null,h(H));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(Co),providedIn:"root"})}return t})(),Co=(()=>{class t extends Tt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,r){e instanceof ae?this.updateStateMemento():e instanceof V?this.commitTransition(r):e instanceof je?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof fe?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!yn(e)?this.restoreHistory(r):e instanceof se?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Lt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fr(t,n){t.events.pipe(W(e=>e instanceof L||e instanceof P||e instanceof se||e instanceof V),A(e=>e instanceof L||e instanceof V?0:(e instanceof P?e.code===I.Redirect||e.code===I.SupersededByNewNavigation:!1)?2:1),W(e=>e!==2),ue(1)).subscribe(()=>{n()})}var X=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(Or);stateManager=h(Tt);options=h(Se,{optional:!0})||{};pendingTasks=h(Er);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(zn);urlSerializer=h(ye);location=h(rt);urlHandlingStrategy=h(Mt);injector=h(H);_events=new re;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(qn);injectorCleanup=h(Fn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(Ge,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Be,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new pr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=y(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==I.Redirect&&r.code!==I.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof pe){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=l({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||yo(i.source)},s);this.scheduleNavigation(a,Oe,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Ri(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Oe,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o)})}navigateToSyncWithBrowser(e,r,i,o){let s=i?.navigationId?i:null;if(i){let c=l({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Ze)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return y(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(lr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let m=i?i.snapshot:this.routerState.snapshot.root;p=pn(m)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return gn(p,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Oe,null,r)}navigate(e,r={skipLocationChange:!1}){return So(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(wr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},nr):r===!1?i=l({},Pe):i=l(l({},Pe),r),J(e))return Bt(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Bt(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((p,m)=>{a=p,c=m});let d=this.pendingTasks.add();return fr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function So(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new w(4008,!1)}var bo=(()=>{class t{router=h(X);stateManager=h(Tt);fragment=C("");queryParams=C({});path=C("");serializer=h(ye);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof L&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(r)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=h(new Br("href"),{optional:!0});reactiveHref=Hr(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return y(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return y(this._target)}_target=C(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return y(this._queryParams)}_queryParams=C(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return y(this._fragment)}_fragment=C(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return y(this._queryParamsHandling)}_queryParamsHandling=C(void 0);set state(e){this._state.set(e)}get state(){return y(this._state)}_state=C(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return y(this._info)}_info=C(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return y(this._relativeTo)}_relativeTo=C(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return y(this._preserveFragment)}_preserveFragment=C(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return y(this._skipLocationChange)}_skipLocationChange=C(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return y(this._replaceUrl)}_replaceUrl=C(!1);isAnchorElement;onChanges=new re;applicationErrorHandler=h(Ze);options=h(Se,{optional:!0});reactiveRouterState=h(bo);constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=C(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}_urlTree=Xe(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:J(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return y(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)($(X),$(G),Mr("tabindex"),$(jt),$(xt),$(Wr))};static \u0275dir=Te({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&kr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&xr("href",i.reactiveHref(),Tr)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",tt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",tt],replaceUrl:[2,"replaceUrl","replaceUrl",tt],routerLink:"routerLink"},features:[Me]})}return t})(),Io=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ne;link=h(Dt,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof L&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(Ie()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=b(e).pipe(Ie()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=Ao(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?l({},nr):l({},Pe);return i=>{let o=i.urlTree;return o?y(ir(o,e,r)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)($(X),$(xt),$(jt),$(et))};static \u0275dir=Te({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&$r(o,Dt,5),r&2){let s;zr(s=Fr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Me]})}return t})();function Ao(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var We=class{},Eo=(()=>{class t{preload(e,r){return r().pipe(Ae(()=>g(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(W(e=>e instanceof L),Ee(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,""));let s=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return b(i).pipe(Ie())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=b(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(k(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return b([o,s]).pipe(Ie())}else return o})}static \u0275fac=function(r){return new(r||t)(K(X),K(H),K(We),K(hr))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mo=new M("");function To(t,...n){return Ir([{provide:Ge,multi:!0,useValue:t},[],{provide:G,useFactory:Do},{provide:Pr,multi:!0,useFactory:No},n.map(e=>e.\u0275providers)])}function Do(){return h(X).routerState.root}function Bn(t,n){return{\u0275kind:t,\u0275providers:n}}function No(){let t=h(Ar);return n=>{let e=t.get(Lr);if(n!==e.components[0])return;let r=t.get(X),i=t.get(_o);t.get(Oo)===1&&r.initialNavigation(),t.get(Vn,null,{optional:!0})?.setUpPreloading(),t.get(Mo,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var _o=new M("",{factory:()=>new re}),Oo=new M("",{factory:()=>1});var Vn=new M("");function Uo(t){return Bn(0,[{provide:Vn,useExisting:Hn},{provide:We,useExisting:t}])}function Po(){return Bn(8,[cr,{provide:Be,useExisting:cr}])}export{L as a,G as b,sr as c,X as d,Dt as e,Io as f,Eo as g,To as h,Uo as i,Po as j};