@duplicati/ngclient 0.0.83 → 0.0.85

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 (96) hide show
  1. package/chunk-2M52SFS6.js +7 -0
  2. package/chunk-2VH4NDQH.js +1 -0
  3. package/chunk-2WZR3NHU.js +6 -0
  4. package/{chunk-QD57YWCQ.js → chunk-4A4CWPH7.js} +1 -1
  5. package/chunk-4WK5KLP3.js +1 -0
  6. package/chunk-6RMLOIRD.js +1 -0
  7. package/{chunk-5G5KVDTS.js → chunk-7G6LF4RE.js} +1 -1
  8. package/{chunk-DNB4ABNJ.js → chunk-7IPKE42T.js} +1 -1
  9. package/chunk-7IRVNC4S.js +1 -0
  10. package/{chunk-6A6LDFVN.js → chunk-7LP2EQ7M.js} +1 -1
  11. package/{chunk-7AU6BKAH.js → chunk-7LRQSKYZ.js} +1 -1
  12. package/{chunk-TIBSEND5.js → chunk-7QNL2MJX.js} +1 -1
  13. package/chunk-AO6V5EDZ.js +1 -0
  14. package/{chunk-UKAYBL4H.js → chunk-AXHB6A4N.js} +1 -1
  15. package/chunk-AYWJL6PH.js +1 -0
  16. package/{chunk-CSMWKX44.js → chunk-C5EHOW7U.js} +1 -1
  17. package/chunk-CI7PYMKD.js +1 -0
  18. package/{chunk-VIQMN6MJ.js → chunk-DALX7AMG.js} +1 -1
  19. package/{chunk-YTBB644O.js → chunk-DNDOALN6.js} +1 -1
  20. package/chunk-DTCM7OB2.js +1 -0
  21. package/{chunk-NE337TA6.js → chunk-DW725235.js} +1 -1
  22. package/chunk-FMSANFAF.js +1 -0
  23. package/chunk-FQPMHKLD.js +1 -0
  24. package/chunk-FXXGCONI.js +1 -0
  25. package/{chunk-KEKOXSB2.js → chunk-G3KME6QI.js} +1 -1
  26. package/chunk-G56SHWBZ.js +1 -0
  27. package/{chunk-EJVKADW2.js → chunk-IYQIIJKE.js} +1 -1
  28. package/{chunk-IAKOIFIN.js → chunk-IZYAOMPF.js} +1 -1
  29. package/{chunk-BDT56US4.js → chunk-JGOWJDLZ.js} +1 -1
  30. package/{chunk-7GWCXQET.js → chunk-KIB4MYBL.js} +1 -1
  31. package/{chunk-7KVBF3B3.js → chunk-L5D4JLN3.js} +1 -1
  32. package/chunk-LJ3ULEOG.js +1 -0
  33. package/chunk-MADB4EX7.js +1 -0
  34. package/{chunk-MKHNYYLL.js → chunk-MCLDJCPW.js} +1 -1
  35. package/{chunk-PFD5SPQI.js → chunk-MNR2YI5Q.js} +1 -1
  36. package/{chunk-WJOMCF4H.js → chunk-NNUHZ2L7.js} +1 -1
  37. package/chunk-OKERRNQC.js +6 -0
  38. package/{chunk-EWNWUTPO.js → chunk-OQ3EADZK.js} +1 -1
  39. package/{chunk-APZSWRAC.js → chunk-P6HOXQHE.js} +1 -1
  40. package/{chunk-O4IO27RV.js → chunk-PHQM25ND.js} +1 -1
  41. package/{chunk-UVM5AF3P.js → chunk-PNJEVGID.js} +1 -1
  42. package/{chunk-6FEY72H5.js → chunk-PPRHD3ZV.js} +1 -1
  43. package/chunk-R2HH6TYJ.js +1 -0
  44. package/{chunk-2CCKM7DM.js → chunk-RGSJ6UVN.js} +1 -1
  45. package/{chunk-FUZ2WCNJ.js → chunk-RTVM3BJK.js} +1 -1
  46. package/chunk-SWGKS3QC.js +1 -0
  47. package/chunk-TO5QMMUQ.js +1 -0
  48. package/chunk-UIC2LGAH.js +1 -0
  49. package/{chunk-DFGJKS5P.js → chunk-UXQIJ2H5.js} +1 -1
  50. package/chunk-W4MEGIZH.js +1 -0
  51. package/chunk-WLQUMVWA.js +1 -0
  52. package/chunk-WQDSSB2V.js +3 -0
  53. package/{chunk-OVUQHKG5.js → chunk-WWJFELTU.js} +1 -1
  54. package/chunk-X6SCWL5V.js +1 -0
  55. package/{chunk-YF6FW4JS.js → chunk-XB5GDNN5.js} +1 -1
  56. package/{chunk-U27FSIPV.js → chunk-XFS2LSEM.js} +1 -1
  57. package/{chunk-MWZZ2BGA.js → chunk-XKAASYKO.js} +1 -1
  58. package/{chunk-2ICYPGI3.js → chunk-Y2422GIA.js} +1 -1
  59. package/{chunk-U5XRPZBE.js → chunk-Y5WADXF5.js} +1 -1
  60. package/{chunk-H2JFCXJJ.js → chunk-YO6IQOER.js} +1 -1
  61. package/{chunk-6PGJBRJV.js → chunk-YOP6HOXH.js} +1 -1
  62. package/chunk-ZLMSSTXT.js +1 -0
  63. package/chunk-ZNTSJUHI.js +1 -0
  64. package/index.html +2 -2
  65. package/main-JZ3UOPVL.js +1 -0
  66. package/package.json +1 -1
  67. package/styles-HDO6WYV2.css +1 -0
  68. package/chunk-2AXD35RA.js +0 -1
  69. package/chunk-3IMBZVOU.js +0 -1
  70. package/chunk-53YXMY4O.js +0 -1
  71. package/chunk-BNJ6YIRT.js +0 -6
  72. package/chunk-CNKMCZR3.js +0 -1
  73. package/chunk-DHMWOZZD.js +0 -1
  74. package/chunk-EPS56WMH.js +0 -1
  75. package/chunk-GGDGKIVD.js +0 -1
  76. package/chunk-I52AX5MH.js +0 -1
  77. package/chunk-I7CCITLM.js +0 -7
  78. package/chunk-IBBJHMWR.js +0 -1
  79. package/chunk-INATF4ZS.js +0 -1
  80. package/chunk-JZVJHJKF.js +0 -3
  81. package/chunk-KSYEGP4X.js +0 -1
  82. package/chunk-MR65TJSP.js +0 -1
  83. package/chunk-NC3TCAYJ.js +0 -1
  84. package/chunk-NGJEATCE.js +0 -1
  85. package/chunk-PHK42XHX.js +0 -1
  86. package/chunk-PLMZCRFV.js +0 -1
  87. package/chunk-TODNKYG6.js +0 -1
  88. package/chunk-UFBCQOH4.js +0 -1
  89. package/chunk-URCWYHPG.js +0 -1
  90. package/chunk-UUHR4SZC.js +0 -1
  91. package/chunk-UVF6BCW2.js +0 -1
  92. package/chunk-VWJ5QJXJ.js +0 -1
  93. package/chunk-WXWYY4O2.js +0 -1
  94. package/chunk-XDOTOR6Y.js +0 -6
  95. package/main-4O3FFDTG.js +0 -1
  96. package/styles-LPOGBXRK.css +0 -1
@@ -0,0 +1 @@
1
+ import{b as xr}from"./chunk-C5EHOW7U.js";import{j as vt,n as _e}from"./chunk-7IRVNC4S.js";import{$ as je,$b as Or,B as ut,Bc as gt,C as ee,Db as Dr,E as Pe,F as H,Fc as Le,G as ct,H as or,J as sr,Jc as ke,L as ar,M as x,N as ur,O as S,P as w,Qa as vr,Qc as Er,S as b,Tb as Mr,U as cr,V as P,Va as pt,W as lt,Wa as j,X as ht,Xa as mr,Y as g,Z as lr,a as er,aa as _,ac as Tr,bb as yr,bc as Ur,c as tr,ca as Ne,db as Rr,e as it,eb as Sr,f as ot,g as V,ga as dt,gb as $e,h as M,ha as hr,ia as dr,j as k,ja as fr,k as O,ka as pr,kb as Cr,l as d,la as te,lb as wr,m as de,n as rr,nb as br,o as nr,ob as Ir,p as m,q as xe,qa as gr,r as T,ra as ft,rb as Ar,s as st,t as ir,u as at,w as X,y as J,z as fe}from"./chunk-2M52SFS6.js";import{a as l,b as I}from"./chunk-C6Q5SG76.js";var p="primary",Oe=Symbol("RouteTitle"),Ct=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Ct(t)}function yn(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Rn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!L(t[e],r[e]))return!1;return!0}function L(t,r){let e=t?wt(t):void 0,n=r?wt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!qr(t[i],r[i]))return!1;return!0}function wt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function qr(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Br(t){return t.length>0?t[t.length-1]:null}function W(t){return rr(t)?t:wr(t)?O(Promise.resolve(t)):d(t)}var Sn={exact:Hr,subset:Wr},Vr={exact:Cn,subset:wn,ignored:()=>!0};function Pr(t,r,e){return Sn[e.paths](t.root,r.root,e.matrixParams)&&Vr[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Cn(t,r){return L(t,r)}function Hr(t,r,e){if(!Q(t.segments,r.segments)||!qe(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hr(t.children[n],r.children[n],e))return!1;return!0}function wn(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>qr(t[e],r[e]))}function Wr(t,r,e){return Gr(t,r,r.segments,e)}function Gr(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Q(i,e)||r.hasChildren()||!qe(i,e,n))}else if(t.segments.length===e.length){if(!Q(t.segments,e)||!qe(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Wr(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Q(t.segments,i)||!qe(t.segments,i,n)||!t.children[p]?!1:Gr(t.children[p],r,o,n)}}function qe(t,r,e){return r.every((n,i)=>Vr[e](t[i].parameters,n.parameters))}var F=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return An.serialize(this)}},v=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Be(this)}},G=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return Kr(this)}};function bn(t,r){return Q(t,r)&&t.every((e,n)=>L(e.parameters,r[n].parameters))}function Q(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function In(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Qt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>new Re,providedIn:"root"})}return t})(),Re=class{parse(r){let e=new It(r);return new F(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${pe(r.root,!0)}`,n=On(r.queryParams),i=typeof r.fragment=="string"?`#${Dn(r.fragment)}`:"";return`${e}${n}${i}`}},An=new Re;function Be(t){return t.segments.map(r=>Kr(r)).join("/")}function pe(t,r){if(!t.hasChildren())return Be(t);if(r){let e=t.children[p]?pe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${pe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=In(t,(n,i)=>i===p?[pe(t.children[p],!1)]:[`${i}:${pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Be(t)}/${e[0]}`:`${Be(t)}/(${e.join("//")})`}}function Qr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ze(t){return Qr(t).replace(/%3B/gi,";")}function Dn(t){return encodeURI(t)}function bt(t){return Qr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(t){return decodeURIComponent(t)}function jr(t){return Ve(t.replace(/\+/g,"%20"))}function Kr(t){return`${bt(t.path)}${Mn(t.parameters)}`}function Mn(t){return Object.entries(t).map(([r,e])=>`;${bt(r)}=${bt(e)}`).join("")}function On(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${ze(e)}=${ze(i)}`).join("&"):`${ze(e)}=${ze(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Tn=/^[^\/()?;#]+/;function mt(t){let r=t.match(Tn);return r?r[0]:""}var Un=/^[^\/()?;=#]+/;function En(t){let r=t.match(Un);return r?r[0]:""}var xn=/^[^=?&#]+/;function Pn(t){let r=t.match(xn);return r?r[0]:""}var jn=/^[^&#]+/;function Nn(t){let r=t.match(jn);return r?r[0]:""}var It=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[p]=new v(r,e)),n}parseSegment(){let r=mt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ve(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=En(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=mt(this.remaining);i&&(n=i,this.capture(n))}r[Ve(e)]=Ve(n)}parseQueryParam(r){let e=Pn(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Nn(this.remaining);s&&(n=s,this.capture(n))}let i=jr(e),o=jr(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=mt(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Zr(t){return t.segments.length>0?new v([],{[p]:t}):t}function Yr(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Yr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))r[s]=u;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new v(t.segments,r);return $n(e)}function $n(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new v(t.segments.concat(r.segments),r.children)}return t}function K(t){return t instanceof F}function Ln(t,r,e=null,n=null){let i=Xr(t);return Jr(i,r,e,n)}function Xr(t){let r;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(r=u),u}let n=e(t.root),i=Zr(n);return r??i}function Jr(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return yt(i,i,i,e,n);let o=kn(r);if(o.toRoot())return yt(i,i,new v([],{}),e,n);let s=_n(o,i,t),u=s.processChildren?ve(s.segmentGroup,s.index,o.commands):tn(s.segmentGroup,s.index,o.commands);return yt(i,s.segmentGroup,u,e,n)}function He(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Se(t){return typeof t=="object"&&t!=null&&t.outlets}function yt(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let s;t===r?s=e:s=en(t,r,e);let u=Zr(Yr(s));return new F(u,o,i)}function en(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=en(o,r,e)}),new v(t.segments,n)}var We=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&He(n[0]))throw new w(4003,!1);let i=n.find(Se);if(i&&i!==Br(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kn(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new We(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new We(e,r,n)}var ie=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function _n(t,r,e){if(t.isAbsolute)return new ie(r,!0,0);if(!e)return new ie(r,!1,NaN);if(e.parent===null)return new ie(e,!0,0);let n=He(t.commands[0])?0:1,i=e.segments.length-1+n;return zn(e,i,t.numberOfDoubleDots)}function zn(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new ie(n,!1,i-o)}function Fn(t){return Se(t[0])?t[0].outlets:{[p]:t}}function tn(t,r,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return ve(t,r,e);let n=qn(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(t.segments.slice(n.pathIndex),t.children),ve(o,0,i)}else return n.match&&i.length===0?new v(t.segments,{}):n.match&&!t.hasChildren()?At(t,r,e):n.match?ve(t,0,i):At(t,r,e)}function ve(t,r,e){if(e.length===0)return new v(t.segments,{});{let n=Fn(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ve(t.children[p],r,e);return new v(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=tn(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function qn(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],u=e[n];if(Se(u))break;let a=`${u}`,c=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!$r(a,c,s))return o;n+=2}else{if(!$r(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function At(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Se(o)){let a=Bn(o.outlets);return new v(n,a)}if(i===0&&He(e[0])){let a=t.segments[r];n.push(new G(a.path,Nr(e[0]))),i++;continue}let s=Se(o)?o.outlets[p]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&He(u)?(n.push(new G(s,Nr(u))),i+=2):(n.push(new G(s,{})),i++)}return new v(n,{})}function Bn(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=At(new v([],{}),0,n))}),r}function Nr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function $r(t,r,e){return t==e.path&&L(r,e.parameters)}var me="imperative",R=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}(R||{}),U=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ce=class extends U{type=R.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},q=class extends U{urlAfterRedirects;type=R.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},D=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(D||{}),Dt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Dt||{}),z=class extends U{reason;code;type=R.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends U{reason;code;type=R.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},we=class extends U{error;target;type=R.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ge=class extends U{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mt=class extends U{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ot=class extends U{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Tt=class extends U{urlAfterRedirects;state;type=R.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ut=class extends U{urlAfterRedirects;state;type=R.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Et=class{route;type=R.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},xt=class{route;type=R.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Pt=class{snapshot;type=R.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jt=class{snapshot;type=R.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{snapshot;type=R.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$t=class{snapshot;type=R.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var be=class{},ue=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Vn(t,r){return t.providers&&!t._injector&&(t._injector=Rr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function N(t){return t.outlet||p}function Hn(t,r){let e=t.filter(n=>N(n)===r);return e.push(...t.filter(n=>N(n)!==r)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Lt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new et(this.rootInjector)}},et=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Lt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ht(je))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qe=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=kt(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=kt(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=_t(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return _t(r,this._root).map(e=>e.value)}};function kt(t,r){if(t===r.value)return r;for(let e of r.children){let n=kt(t,e);if(n)return n}return null}function _t(t,r){if(t===r.value)return[r];for(let e of r.children){let n=_t(t,e);if(n.length)return n.unshift(r),n}return[]}var A=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ne(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ke=class extends Qe{snapshot;constructor(r,e){super(r),this.snapshot=e,Kt(this,r)}toString(){return this.snapshot.toString()}};function rn(t){let r=Wn(t),e=new M([new G("",{})]),n=new M({}),i=new M({}),o=new M({}),s=new M(""),u=new Y(e,n,o,s,i,p,t,r.root);return u.snapshot=r.root,new Ke(new A(u,[]),r)}function Wn(t){let r={},e={},n={},i="",o=new oe([],r,n,i,e,p,t,null,{});return new Ye("",new A(o,[]))}var Y=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,u,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Oe]))??d(void 0),this.url=r,this.params=e,this.queryParams=n,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(m(r=>ae(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>ae(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ze(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),t.params),data:l(l({},r.data),t.data),resolve:l(l(l(l({},t.data),r.data),i?.data),t._resolvedData)}:n={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&on(i)&&(n.resolve[Oe]=i.title),n}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(r,e,n,i,o,s,u,a,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c}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??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Ye=class extends Qe{url;constructor(r,e){super(e),this.url=r,Kt(this,e)}toString(){return nn(this._root)}};function Kt(t,r){r.value._routerState=t,r.children.forEach(e=>Kt(t,e))}function nn(t){let r=t.children.length>0?` { ${t.children.map(nn).join(", ")} } `:"";return`${t.value}${r}`}function Rt(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,L(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),L(r.params,e.params)||t.paramsSubject.next(e.params),Rn(r.url,e.url)||t.urlSubject.next(e.url),L(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function zt(t,r){let e=L(t.params,r.params)&&bn(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||zt(t.parent,r.parent))}function on(t){return typeof t.title=="string"||t.title===null}var Gn=new P(""),Qn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new te;deactivateEvents=new te;attachEvents=new te;detachEvents=new te;routerOutletData=gr(void 0);parentContexts=g(et);location=g(mr);changeDetector=g(Le);inputBinder=g(tt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)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,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Ft(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ne]})}return t})(),Ft=class t{route;childContexts;parent;outletData;__ngOutletInjector(r){return new t(this.route,this.childContexts,r,this.outletData)}constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Y?this.route:r===et?this.childContexts:r===Gn?this.outletData:this.parent.get(r,e)}},tt=new P(""),Lr=(()=>{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:n}=e,i=xe([n.queryParams,n.params,n.data]).pipe(x(([o,s,u],a)=>(u=l(l(l({},o),s),u),a===0?d(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Er(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();function Kn(t,r,e){let n=Ie(t,r._root,e?e._root:void 0);return new Ke(n,r)}function Ie(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Zn(t,r,e);return new A(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(u=>Ie(t,u)),s}}let n=Yn(r.value),i=r.children.map(o=>Ie(t,o));return new A(n,i)}}function Zn(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ie(t,n,i);return Ie(t,n)})}function Yn(t){return new Y(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var Ae=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},sn="ngNavigationCancelingError";function Xe(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=an(!1,D.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function an(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[sn]=!0,e.cancellationCode=r,e}function Xn(t){return un(t)&&K(t.url)}function un(t){return!!t&&t[sn]}var Jn=(t,r,e,n)=>m(i=>(new qt(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),qt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Rt(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:u})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new $t(o.value.snapshot))}),r.children.length&&this.forwardEvent(new jt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Rt(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Rt(u.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Je=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},se=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ei(t,r,e){let n=t._root,i=r?r._root:null;return ge(n,i,e,[n.value])}function ti(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function le(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!cr(t)?t:r.get(t):n}function ge(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ne(r);return t.children.forEach(s=>{ri(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>ye(u,e.getContext(s),i)),i}function ri(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=ni(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Je(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ge(t,r,u?u.children:null,n,i):ge(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new se(u.outlet.component,s))}else s&&ye(r,u,i),i.canActivateChecks.push(new Je(n)),o.component?ge(t,null,u?u.children:null,n,i):ge(t,null,e,n,i);return i}function ni(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Q(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(t.url,r.url)||!L(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zt(t,r)||!L(t.queryParams,r.queryParams);case"paramsChange":default:return!zt(t,r)}}function ye(t,r,e){let n=ne(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?ye(s,r.children.getContext(o),e):ye(s,null,e):ye(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new se(r.outlet.component,i)):e.canDeactivateChecks.push(new se(null,i)):e.canDeactivateChecks.push(new se(null,i))}function Ue(t){return typeof t=="function"}function ii(t){return typeof t=="boolean"}function oi(t){return t&&Ue(t.canLoad)}function si(t){return t&&Ue(t.canActivate)}function ai(t){return t&&Ue(t.canActivateChild)}function ui(t){return t&&Ue(t.canDeactivate)}function ci(t){return t&&Ue(t.canMatch)}function cn(t){return t instanceof nr||t?.name==="EmptyError"}var Fe=Symbol("INITIAL_VALUE");function ce(){return x(t=>xe(t.map(r=>r.pipe(ee(1),ar(Fe)))).pipe(m(r=>{for(let e of r)if(e!==!0){if(e===Fe)return Fe;if(e===!1||li(e))return e}return!0}),X(r=>r!==Fe),ee(1)))}function li(t){return K(t)||t instanceof Ae}function hi(t,r){return T(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(I(l({},e),{guardsResult:!0})):di(s,n,i,t).pipe(T(u=>u&&ii(u)?fi(n,o,t,r):d(u)),m(u=>I(l({},e),{guardsResult:u})))})}function di(t,r,e,n){return O(t).pipe(T(i=>yi(i.component,i.route,e,r,n)),H(i=>i!==!0,!0))}function fi(t,r,e,n){return O(r).pipe(fe(i=>ir(gi(i.route.parent,n),pi(i.route,n),mi(t,i.path,e),vi(t,i.route,e))),H(i=>i!==!0,!0))}function pi(t,r){return t!==null&&r&&r(new Nt(t)),d(!0)}function gi(t,r){return t!==null&&r&&r(new Pt(t)),d(!0)}function vi(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return d(!0);let i=n.map(o=>at(()=>{let s=Te(r)??e,u=le(o,s),a=si(u)?u.canActivate(r,t):_(s,()=>u(r,t));return W(a).pipe(H())}));return d(i).pipe(ce())}function mi(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>ti(s)).filter(s=>s!==null).map(s=>at(()=>{let u=s.guards.map(a=>{let c=Te(s.node)??e,h=le(a,c),f=ai(h)?h.canActivateChild(n,t):_(c,()=>h(n,t));return W(f).pipe(H())});return d(u).pipe(ce())}));return d(o).pipe(ce())}function yi(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(u=>{let a=Te(r)??i,c=le(u,a),h=ui(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return W(h).pipe(H())});return d(s).pipe(ce())}function Ri(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=oi(u)?u.canLoad(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}function ln(t){return tr(S(r=>{if(typeof r!="boolean")throw Xe(t,r)}),m(r=>r===!0))}function Si(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=ci(u)?u.canMatch(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}var De=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Me=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function re(t){return de(new De(t))}function Ci(t){return de(new w(4e3,!1))}function wi(t){return de(an(!1,D.GuardRejected))}var Bt=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return d(n);if(i.numberOfChildren>1||!i.children[p])return Ci(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,params:$,data:C,title:B}=i,E=_(o,()=>u({params:$,data:C,queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,title:B}));if(E instanceof F)throw new Me(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Me(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new F(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);n[i]=e[u]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(r,a,n,i)}),new v(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},Vt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function bi(t,r,e,n,i){let o=hn(t,r,e);return o.matched?(n=Vn(r,n),Si(n,r,e,i).pipe(m(s=>s===!0?o:l({},Vt)))):d(o)}function hn(t,r,e){if(r.path==="**")return Ii(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Vt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||yn)(e,t,r);if(!i)return l({},Vt);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.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 Ii(t){return{matched:!0,parameters:t.length>0?Br(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function kr(t,r,e,n){return e.length>0&&Mi(t,e,n)?{segmentGroup:new v(r,Di(n,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Oi(t,e,n)?{segmentGroup:new v(t.segments,Ai(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Ai(t,r,e,n){let i={};for(let o of e)if(rt(t,r,o)&&!n[N(o)]){let s=new v([],{});i[N(o)]=s}return l(l({},n),i)}function Di(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&N(n)!==p){let i=new v([],{});e[N(n)]=i}return e}function Mi(t,r,e){return e.some(n=>rt(t,r,n)&&N(n)!==p)}function Oi(t,r,e){return e.some(n=>rt(t,r,n))}function rt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ti(t,r,e){return r.length===0&&!t.children[e]}var Ht=class{};function Ui(t,r,e,n,i,o,s="emptyOnly"){return new Wt(t,r,e,n,i,s,o).recognize()}var Ei=31,Wt=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new Bt(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:e,rootSnapshot:n})=>{let i=new A(n,e),o=new Ye("",i),s=Ln(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new oe([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(m(n=>({children:n,rootSnapshot:e})),J(n=>{if(n instanceof Me)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof De?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(m(s=>s instanceof A?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return O(o).pipe(fe(s=>{let u=n.children[s],a=Hn(e,s);return this.processSegmentGroup(r,a,u,s,i)}),sr((s,u)=>(s.push(...u),s)),ut(null),or(),T(s=>{if(s===null)return re(n);let u=dn(s);return xi(u),d(u)}))}processSegment(r,e,n,i,o,s,u){return O(e).pipe(fe(a=>this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,o,s,u).pipe(J(c=>{if(c instanceof De)return d(null);throw c}))),H(a=>!!a),J(a=>{if(cn(a))return Ti(n,i,o)?d(new Ht):re(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,o,s,u,a){return N(n)!==s&&(s===p||!rt(i,o,n))?re(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,a):re(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:y}=hn(e,i,o);if(!a)return re(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ei&&(this.allowRedirects=!1));let $=new oe(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(i),N(i),i.component??i._loadedComponent??null,i,zr(i)),C=Ze($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(C.params),$.data=Object.freeze(C.data);let B=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,$,r);return this.applyRedirects.lineralizeSegments(i,B).pipe(T(E=>this.processSegment(r,n,e,E.concat(y),s,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let u=bi(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let h=n._loadedInjector??r,{parameters:f,consumedSegments:y,remainingSegments:$}=a,C=new oe(y,f,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(n),N(n),n.component??n._loadedComponent??null,n,zr(n)),B=Ze(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(B.params),C.data=Object.freeze(B.data);let{segmentGroup:E,slicedSegments:he}=kr(e,y,$,c);if(he.length===0&&E.hasChildren())return this.processChildren(h,c,E,C).pipe(m(Ee=>new A(C,Ee)));if(c.length===0&&he.length===0)return d(new A(C,[]));let mn=N(n)===o;return this.processSegment(h,c,E,he,mn?p:o,!0,C).pipe(m(Ee=>new A(C,Ee instanceof A?[Ee]:[])))}))):re(e)))}getChildConfig(r,e,n){return e.children?d({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):Ri(r,e,n,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(r,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):wi(e))):d({routes:[],injector:r})}};function xi(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Pi(t){let r=t.value.routeConfig;return r&&r.path===""}function dn(t){let r=[],e=new Set;for(let n of t){if(!Pi(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=dn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!e.has(n))}function _r(t){return t.data||{}}function zr(t){return t.resolve||{}}function ji(t,r,e,n,i,o){return T(s=>Ui(t,r,e,n,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>I(l({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function Ni(t,r){return T(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of fn(a))s.add(c);let u=0;return O(s).pipe(fe(a=>o.has(a)?$i(a,n,t,r):(a.data=Ze(a,a.parent,t).resolve,d(void 0))),S(()=>u++),ct(1),T(a=>u===s.size?d(e):k))})}function fn(t){let r=t.children.map(e=>fn(e)).flat();return[t,...r]}function $i(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!on(i)&&(o[Oe]=i.title),Li(o,t,r,n).pipe(m(s=>(t._resolvedData=s,t.data=Ze(t,t.parent,e).resolve,null)))}function Li(t,r,e,n){let i=wt(t);if(i.length===0)return d({});let o={};return O(i).pipe(T(s=>ki(t[s],r,e,n).pipe(H(),S(u=>{if(u instanceof Ae)throw Xe(new Re,u);o[s]=u}))),ct(1),m(()=>o),J(s=>cn(s)?k:de(s)))}function ki(t,r,e,n){let i=Te(r)??n,o=le(t,i),s=o.resolve?o.resolve(r,e):_(i,()=>o(r,e));return W(s)}function St(t){return x(r=>{let e=t(r);return e?O(e).pipe(m(()=>r)):d(r)})}var pn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Oe]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(_i),providedIn:"root"})}return t})(),_i=(()=>{class t extends pn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(ht(xr))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zt=new P("",{providedIn:"root",factory:()=>({})}),zi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Sr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Dr(0,"router-outlet")},dependencies:[Qn],encapsulation:2})}return t})();function Yt(t){let r=t.children&&t.children.map(Yt),e=r?I(l({},t),{children:r}):l({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=zi),e}var Xt=new P(""),Fi=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(gt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=W(e.loadComponent()).pipe(m(gn),S(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Pe(()=>{this.componentLoaders.delete(e)})),i=new ot(n,()=>new V).pipe(it());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return d({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=qi(n,this.compiler,e,this.onLoadEndListener).pipe(Pe(()=>{this.childrenLoaders.delete(n)})),s=new ot(o,()=>new V).pipe(it());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qi(t,r,e,n){return W(t.loadChildren()).pipe(m(gn),T(i=>i instanceof yr||Array.isArray(i)?d(i):O(r.compileModuleAsync(i))),m(i=>{n&&n(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(Xt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yt),injector:o}}))}function Bi(t){return t&&typeof t=="object"&&"default"in t}function gn(t){return Bi(t)?t.default:t}var Jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Vi),providedIn:"root"})}return t})(),Vi=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hi=new P("");var Wi=new P(""),Gi=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new V;transitionAbortSubject=new V;configLoader=g(Fi);environmentInjector=g(je);destroyRef=g(fr);urlSerializer=g(Qt);rootContexts=g(et);location=g(_e);inputBindingEnabled=g(tt,{optional:!0})!==null;titleStrategy=g(pn);options=g(Zt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(Jt);createViewTransition=g(Hi,{optional:!0});navigationErrorHandler=g(Wi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Et(i)),n=i=>this.events.next(new xt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new M({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:me,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>I(l({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{let s=!1,u=!1;return d(o).pipe(x(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),k;this.currentTransition=o,this.currentNavigation={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:this.lastSuccessfulNavigation?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&h!=="reload"){let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),f,Dt.IgnoredSameUrlNavigation)),a.resolve(!1),k}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return d(a).pipe(x(f=>{let y=this.transitions?.getValue();return this.events.next(new Ce(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),y!==this.transitions?.getValue()?k:Promise.resolve(f)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let y=new Ge(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:y,source:$,restoredState:C,extras:B}=a,E=new Ce(f,this.urlSerializer.serialize(y),$,C);this.events.next(E);let he=rn(this.rootComponentType).snapshot;return this.currentTransition=o=I(l({},a),{targetSnapshot:he,urlAfterRedirects:y,extras:I(l({},B),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,d(o)}else{let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),f,Dt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),k}}),S(a=>{let c=new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),hi(this.environmentInjector,a=>this.events.next(a)),S(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Xe(this.urlSerializer,a.guardsResult);let c=new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",D.GuardRejected),!1)),St(a=>{if(a.guards.canActivateChecks.length)return d(a).pipe(S(c=>{let h=new Tt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return d(c).pipe(Ni(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",D.NoDataFromResolver)}}))}),S(c=>{let h=new Ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),St(a=>{let c=h=>{let f=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(h.routeConfig).pipe(S(y=>{h.component=y}),m(()=>{})));for(let y of h.children)f.push(...c(y));return f};return xe(c(a.targetSnapshot.root)).pipe(ut(null),ee(1))}),St(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?O(h).pipe(m(()=>o)):d(o)}),m(a=>{let c=Kn(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),S(()=>{this.events.next(new be)}),Jn(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ee(1),S({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),ur(this.transitionAbortSubject.pipe(S(a=>{throw a}))),Pe(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(this.destroyed)return o.resolve(!1),k;if(u=!0,un(a))this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),Xn(a)?this.events.next(new ue(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new we(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let h=_(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Ae){let{message:f,cancellationCode:y}=Xe(this.urlSerializer,h);this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),f,y)),this.events.next(new ue(h.redirectTo,h.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return k}))}))}cancelNavigationTransition(e,n,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),n,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))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qi(t){return t!==me}var Ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Zi),providedIn:"root"})}return t})(),Gt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Zi=(()=>{class t extends Gt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Yi),providedIn:"root"})}return t})(),Yi=(()=>{class t extends vn{location=g(_e);urlSerializer=g(Qt);options=g(Zt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=g(Jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new F;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=rn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof Ce)this.stateMemento=this.createStateMemento();else if(e instanceof Z)this.rawUrlTree=n.initialUrl;else if(e instanceof Ge){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else e instanceof be?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof z&&(e.code===D.GuardRejected||e.code===D.NoDataFromResolver)?this.restoreHistory(n):e instanceof we?this.restoreHistory(n,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof F?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let o=this.browserPageId,s=l(l({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(i,"",s)}else{let o=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xi(t,r){t.events.pipe(X(e=>e instanceof q||e instanceof z||e instanceof we||e instanceof Z),m(e=>e instanceof q||e instanceof Z?0:(e instanceof z?e.code===D.Redirect||e.code===D.SupersededByNewNavigation:!1)?2:1),X(e=>e!==2),ee(1)).subscribe(()=>{r()})}var Ji={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(Cr);stateManager=g(vn);options=g(Zt,{optional:!0})||{};pendingTasks=g(pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Gi);urlSerializer=g(Qt);location=g(_e);urlHandlingStrategy=g(Jt);_events=new V;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(Ki);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(Xt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(tt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new er;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof z&&n.code!==D.Redirect&&n.code!==D.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof q)this.navigated=!0;else if(n instanceof ue){let s=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Qi(i.source)},s);this.scheduleNavigation(u,me,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ro(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.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),me,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Yt),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:s,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let y=i?i.snapshot:this.routerState.snapshot.root;f=Xr(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Jr(f,e,h,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=K(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,me,null,n)}navigate(e,n={skipLocationChange:!1}){return to(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=l({},Ji):n===!1?i=l({},eo):i=n,K(e))return Pr(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Pr(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((f,y)=>{u=f,a=y});let h=this.pendingTasks.add();return Xi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function to(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}function ro(t){return!(t instanceof be)&&!(t instanceof ue)}var Fr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new V;constructor(e,n,i,o,s,u){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof q&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(K(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:vr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:K(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(j(nt),j(Y),hr("tabindex"),j(pt),j(ft),j(vt))};static \u0275dir=$e({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Mr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Ar("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ke],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ke],replaceUrl:[2,"replaceUrl","replaceUrl",ke],routerLink:"routerLink"},features:[Ne]})}return t})(),Go=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new te;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof q&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(st()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(e).pipe(st()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.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(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),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 n=no(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(j(nt),j(ft),j(pt),j(Le),j(Fr,8))};static \u0275dir=$e({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Or(o,Fr,5),n&2){let s;Tr(s=Ur())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ne]})}return t})();function no(t){return!!t.paths}var io=new P("");function Qo(t,...r){return lr([{provide:Xt,multi:!0,useValue:t},[],{provide:Y,useFactory:oo,deps:[nt]},{provide:br,multi:!0,useFactory:ao},r.map(e=>e.\u0275providers)])}function oo(t){return t.routerState.root}function so(t,r){return{\u0275kind:t,\u0275providers:r}}function ao(){let t=g(dr);return r=>{let e=t.get(Ir);if(r!==e.components[0])return;let n=t.get(nt),i=t.get(uo);t.get(co)===1&&n.initialNavigation(),t.get(lo,null,lt.Optional)?.setUpPreloading(),t.get(io,null,lt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var uo=new P("",{factory:()=>new V}),co=new P("",{providedIn:"root",factory:()=>1});var lo=new P("");function Ko(){return so(8,[Lr,{provide:tt,useExisting:Lr}])}export{Y as a,Qn as b,nt as c,Fr as d,Go as e,Qo as f,Ko as g};
@@ -0,0 +1 @@
1
+ import{b as A}from"./chunk-PPRHD3ZV.js";import{c as I}from"./chunk-LJ3ULEOG.js";import{a as y,c as k}from"./chunk-MCLDJCPW.js";import{C as o,E as m,O as l,S as a,Y as r,d as p,i as h,l as u,p as g,ua as i,y as d}from"./chunk-2M52SFS6.js";var c=class s{#i=i(null);#n=window.self!==window.top;#e=i(this.#n);relayIsEnabled=this.#e.asReadonly();config=this.#i.asReadonly();configLoaded=this.#n?new h:null;isLoading=i(this.#n);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#t(),this.#n&&(this.#e.set(!0),this.parentIframeListner=new AbortController,this.#s("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),n=JSON.parse(t);if(!n?.accessToken||!n?.clientId){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.clientId!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.accessToken!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}console.info("postMessage config set"),this.#i.set(n),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#s("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#s(e){window.parent.postMessage(e,"*")}#t(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#i.set(e)}clearConfig(){this.#i.set(null)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};var f="PROXY_AUTHED_FAKE_TOKEN",b=class s{#i=r(I);#n=r(k);#e=r(A);#s=r(c);#t=i(null);#r=i(!1);token=this.#t.asReadonly();isLoggingOut=this.#r.asReadonly();login(e){return this.#e.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(o(1),l(t=>t.AccessToken&&this.#t.set(t.AccessToken)))}refreshToken(){return this.#s.relayIsEnabled()?(this.#t.set(f),new p(e=>{e.next({AccessToken:f}),e.complete()})):this.#e.postApiV1AuthRefresh().pipe(o(1),l(e=>e.AccessToken&&this.#t.set(e.AccessToken)))}checkProxyAuthed(){let e=new y({"custom-proxy-check":"true"});return this.#n.get("/api/v1/systeminfo",{headers:e}).pipe(g(()=>(this.#t.set(f),!0)),d(()=>u(!1)))}logout(){this.#r.set(!0),this.#e.postApiV1AuthRefreshLogout().pipe(o(1),m(()=>{this.#r.set(!1),this.#t.set(null),this.#i.navigate(["/login"])})).subscribe()}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};export{c as a,f as b,b as c};
@@ -1,2 +1,2 @@
1
- import{Ga as ye,X as pe,e as fe}from"./chunk-VWJ5QJXJ.js";import{$ as ce,E as oe,M as ie,P as A,S as O,V as E,X as v,Y as m,Z as ae,aa as le,d as J,k as re,ka as de,l as V,ma as he,p as x,w as te,ya as ue,z as se}from"./chunk-I7CCITLM.js";import{a as ne}from"./chunk-C6Q5SG76.js";var L=class{},U=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
1
+ import{Ga as ye,X as pe,e as fe}from"./chunk-7IRVNC4S.js";import{$ as ce,E as oe,M as ie,P as A,S as O,V as E,X as v,Y as m,Z as ae,aa as le,d as J,k as re,ka as de,l as V,ma as he,p as x,w as te,ya as ue,z as se}from"./chunk-2M52SFS6.js";import{a as ne}from"./chunk-C6Q5SG76.js";var L=class{},U=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
2
2
  `).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var W=class{encodeKey(e){return me(e)}encodeValue(e){return me(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function De(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var ke=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(r){return encodeURIComponent(r).replace(ke,(e,n)=>xe[n]??e)}function S(r){return`${r}`}var R=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new W,e.fromString){if(e.fromObject)throw new A(2805,!1);this.map=De(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(S):[S(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(S(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(S(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var q=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _e(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ge(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Te(r){return typeof Blob<"u"&&r instanceof Blob}function Ee(r){return typeof FormData<"u"&&r instanceof FormData}function Fe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var _="Content-Type",z="Accept",Q="X-Request-URL",be="text/plain",Pe="application/json",Ne=`${Pe}, ${be}, */*`,F=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(_e(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new q,!this.params)this.params=new R,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ge(this.body)||Te(this.body)||Ee(this.body)||Fe(this.body)?this.body:this.body instanceof R?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Ee(this.body)?null:Te(this.body)?this.body.type||null:ge(this.body)?null:typeof this.body=="string"?be:this.body instanceof R?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Pe:null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((P,h)=>P.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((P,h)=>P.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},C=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},B=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},w=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ae=200,Le=204;function $(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Ue=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof F)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof R?f=s.params:f=new R({fromObject:s.params})),i=new F(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=V(i).pipe(se(a=>this.handler.handle(a)));if(n instanceof F||s.observe==="events")return o;let d=o.pipe(te(a=>a instanceof B));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new A(2806,!1);return a.body}));case"blob":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new A(2807,!1);return a.body}));case"text":return d.pipe(x(a=>{if(a.body!==null&&typeof a.body!="string")throw new A(2808,!1);return a.body}));case"json":default:return d.pipe(x(a=>a.body))}case"response":return d;default:throw new A(2809,!1)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new R().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,$(s,t))}post(n,t,s={}){return this.request("POST",n,$(s,t))}put(n,t,s={}){return this.request("PUT",n,$(s,t))}static \u0275fac=function(t){return new(t||r)(v(L))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),je=/^\)\]\}',?\n/;function ve(r){if(r.url)return r.url;let e=Q.toLocaleLowerCase();return r.headers.get(e)}var Me=new E(""),G=(()=>{class r{fetchImpl=m(K,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(he);handle(n){return new J(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(Y,i=>t.error(new w({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,ne({signal:t},i)));Be(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new w({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ve(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new C({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,M,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:N,value:k}=await c.read();if(N)break;if(I.push(k),l+=k.length,n.reportProgress){M=n.responseType==="text"?(M??"")+(T??=new TextDecoder).decode(k,{stream:!0}):void 0;let ee=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:M});u?u.run(ee):ee()}}});let D=this.concatChunks(I,l);try{let N=o.headers.get(_)??"";y=this.parseBody(n,D,N)}catch(N){s.error(new w({error:N,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ve(o)??n.urlWithParams}));return}}p===0&&(p=y?Ae:0),p>=200&&p<300?(s.next(new B({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new w({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(je,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has(z)||(t[z]=Ne),!n.headers.has(_)){let i=n.detectContentTypeHeader();i!==null&&(t[_]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),K=class{};function Y(){}function Be(r){r.then(Y,Y)}function Se(r,e){return e(r)}function ze(r,e,n){return(t,s)=>le(n,()=>e(t,i=>r(i,s)))}var Z=new E(""),Ce=new E(""),Xe=new E("",{providedIn:"root",factory:()=>!0});var we=(()=>{class r extends L{backend;injector;chain=null;pendingTasks=m(de);contributeToStability=m(Xe);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Z),...this.injector.get(Ce,[])]));this.chain=t.reduceRight((s,i)=>ze(s,i,this.injector),Se)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(oe(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(v(U),v(ce))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var Je=/^\)\]\}',?\n/,Ve=RegExp(`^${Q}:`,"m");function $e(r){return"responseURL"in r&&r.responseURL?r.responseURL:Ve.test(r.getAllResponseHeaders())?r.getResponseHeader(Q):null}var Re=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new A(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?re(t.\u0275loadImpl()):V(null)).pipe(ie(()=>new J(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has(z)||o.setRequestHeader(z,Ne),!n.headers.has(_)){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader(_,c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=$e(o)||n.url;return a=new C({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:M}=f(),u=null;l!==Le&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ae:0);let D=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let N=u;u=u.replace(Je,"");try{u=u!==""?JSON.parse(u):null}catch(k){u=N,D&&(D=!1,u={error:k,text:u})}}D?(i.next(new B({body:u,headers:c,status:l,statusText:T,url:M||void 0})),i.complete()):i.error(new w({error:u,headers:c,status:l,statusText:T,url:M||void 0}))},y=c=>{let{url:l}=f(),T=new w({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},P=!1,h=c=>{P||(i.next(f()),P=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(v(ye))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),Oe=new E(""),Ge="XSRF-TOKEN",We=new E("",{providedIn:"root",factory:()=>Ge}),qe="X-XSRF-TOKEN",Ke=new E("",{providedIn:"root",factory:()=>qe}),X=class{},Ye=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pe(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(v(fe),v(ue),v(We))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Qe(r,e){let n=r.url.toLowerCase();if(!m(Oe)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(X).getToken(),s=m(Ke);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var H=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(H||{});function Ie(r,e){return{\u0275kind:r,\u0275providers:e}}function wn(...r){let e=[Ue,Re,we,{provide:L,useExisting:we},{provide:U,useFactory:()=>m(Me,{optional:!0})??m(Re)},{provide:Z,useValue:Qe,multi:!0},{provide:Oe,useValue:!0},{provide:X,useClass:Ye}];for(let n of r)e.push(...n.\u0275providers);return ae(e)}function Rn(r){return Ie(H.Interceptors,r.map(e=>({provide:Z,useValue:e,multi:!0})))}function bn(){return Ie(H.Fetch,[G,{provide:Me,useExisting:G},{provide:U,useExisting:G}])}export{g as a,B as b,Ue as c,wn as d,Rn as e,bn as f};
@@ -1 +1 @@
1
- import{a as z}from"./chunk-IBBJHMWR.js";import"./chunk-7AU6BKAH.js";import"./chunk-7KVBF3B3.js";import"./chunk-3IMBZVOU.js";import{a as G}from"./chunk-UKAYBL4H.js";import"./chunk-MWZZ2BGA.js";import"./chunk-UFBCQOH4.js";import{b as L}from"./chunk-6FEY72H5.js";import{d as E}from"./chunk-TODNKYG6.js";import"./chunk-CSMWKX44.js";import{a as R,g as f,h as k,k as w,o as X}from"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import"./chunk-YTBB644O.js";import{Ab as x,Bb as $,Cb as e,Db as i,Eb as s,Fb as D,Gb as b,Ob as h,Pb as y,Qb as c,Ra as p,Rb as A,Sb as I,Vb as S,Y as d,eb as O,hc as l,kb as m,kc as B,qb as M,rb as P,tb as u,tc as g,uc as v,yb as F,zb as N}from"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(G);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,w,R,X,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
1
+ import{a as z}from"./chunk-X6SCWL5V.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import{a as G}from"./chunk-AXHB6A4N.js";import"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as L}from"./chunk-PPRHD3ZV.js";import{d as E}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as R,g as f,h as k,k as w,o as X}from"./chunk-UIC2LGAH.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Ab as $,Bb as e,Cb as i,Db as s,Eb as D,Fb as b,Nb as h,Ob as y,Pb as c,Qb as A,Ra as p,Rb as I,Ub as S,Y as d,eb as O,gc as l,jb as m,jc as B,pb as M,qb as P,sb as u,sc as g,tc as v,xb as F,yb as N,zb as x}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(G);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,w,R,X,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
@@ -1,4 +1,4 @@
1
- import{b as xe}from"./chunk-UVM5AF3P.js";import{b as be}from"./chunk-6FEY72H5.js";import{c as ke}from"./chunk-CSMWKX44.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import{Cb as pe,Db as ue,Eb as ge,Oa as oe,Qb as fe,Ra as ae,V as le,Y as q,eb as ce,p as ie,sc as de,tb as he}from"./chunk-I7CCITLM.js";import{a as m,b as z}from"./chunk-C6Q5SG76.js";function F(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R=F();function $e(a){R=a}var E={exec:()=>null};function g(a,e=""){let t=typeof a=="string"?a:a.source,n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(x.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i")},Me=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Oe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ne=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,Re=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ze=g(Re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ge=g(Re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),U=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ze=/^[^\n]+/,X=/(?!\s*\])(?:\\.|[^\[\]\\])+/,He=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",X).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),je=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",W=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fe=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",W).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ce=g(U).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Qe=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ce).getRegex(),V={blockquote:Qe,code:De,def:He,fences:Oe,heading:Ne,hr:v,html:Fe,lheading:ze,list:je,newline:Me,paragraph:Ce,table:E,text:Ze},me=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Ue=z(m({},V),{lheading:Ge,table:me,paragraph:g(U).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()}),Xe=z(m({},V),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(U).replace("hr",v).replace("heading",` *#{1,6} *[^
1
+ import{b as xe}from"./chunk-PNJEVGID.js";import{b as be}from"./chunk-PPRHD3ZV.js";import{c as ke}from"./chunk-C5EHOW7U.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import{Bb as pe,Cb as ue,Db as ge,Oa as oe,Pb as fe,Ra as ae,V as le,Y as q,eb as ce,p as ie,rc as de,sb as he}from"./chunk-2M52SFS6.js";import{a as m,b as z}from"./chunk-C6Q5SG76.js";function F(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R=F();function $e(a){R=a}var E={exec:()=>null};function g(a,e=""){let t=typeof a=="string"?a:a.source,n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(x.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i")},Me=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Oe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ne=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,Re=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ze=g(Re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ge=g(Re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),U=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ze=/^[^\n]+/,X=/(?!\s*\])(?:\\.|[^\[\]\\])+/,He=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",X).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),je=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",W=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fe=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",W).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ce=g(U).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Qe=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ce).getRegex(),V={blockquote:Qe,code:De,def:He,fences:Oe,heading:Ne,hr:v,html:Fe,lheading:ze,list:je,newline:Me,paragraph:Ce,table:E,text:Ze},me=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),Ue=z(m({},V),{lheading:Ge,table:me,paragraph:g(U).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()}),Xe=z(m({},V),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:E,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(U).replace("hr",v).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",ze).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),We=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ve=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_e=/^( {2,}|\\)\n(?!\s*$)/,Je=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,N=/[\p{P}\p{S}]/u,J=/[\s\p{P}\p{S}]/u,Ae=/[^\s\p{P}\p{S}]/u,Ke=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,J).getRegex(),Pe=/(?!~)[\p{P}\p{S}]/u,Ye=/(?!~)[\s\p{P}\p{S}]/u,et=/(?:[^\s\p{P}\p{S}]|~)/u,tt=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Le=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,nt=g(Le,"u").replace(/punct/g,N).getRegex(),st=g(Le,"u").replace(/punct/g,Pe).getRegex(),Ie="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rt=g(Ie,"gu").replace(/notPunctSpace/g,Ae).replace(/punctSpace/g,J).replace(/punct/g,N).getRegex(),it=g(Ie,"gu").replace(/notPunctSpace/g,et).replace(/punctSpace/g,Ye).replace(/punct/g,Pe).getRegex(),lt=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ae).replace(/punctSpace/g,J).replace(/punct/g,N).getRegex(),ot=g(/\\(punct)/,"gu").replace(/punct/g,N).getRegex(),at=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),ct=g(W).replace("(?:-->|$)","-->").getRegex(),ht=g("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ct).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pt=g(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",D).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ee=g(/^!?\[(label)\]\[(ref)\]/).replace("label",D).replace("ref",X).getRegex(),Be=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",X).getRegex(),ut=g("reflink|nolink(?!\\()","g").replace("reflink",Ee).replace("nolink",Be).getRegex(),K={_backpedal:E,anyPunctuation:ot,autolink:at,blockSkip:tt,br:_e,code:Ve,del:E,emStrongLDelim:nt,emStrongRDelimAst:rt,emStrongRDelimUnd:lt,escape:We,link:pt,nolink:Be,punctuation:Ke,reflink:Ee,reflinkSearch:ut,tag:ht,text:Je,url:E},gt=z(m({},K),{link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",D).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D).getRegex()}),H=z(m({},K),{emStrongRDelimAst:it,emStrongLDelim:st,url:g(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ft=z(m({},H),{br:g(_e).replace("{2,}","*").getRegex(),text:g(H.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),M={normal:V,gfm:Ue,pedantic:Xe},L={normal:K,gfm:H,breaks:ft,pedantic:gt},dt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},we=a=>dt[a];function T(a,e){if(e){if(x.escapeTest.test(a))return a.replace(x.escapeReplace,we)}else if(x.escapeTestNoEncode.test(a))return a.replace(x.escapeReplaceNoEncode,we);return a}function ye(a){try{a=encodeURI(a).replace(x.percentDecode,"%")}catch{return null}return a}function Se(a,e){let t=a.replace(x.findPipe,(i,r,l)=>{let o=!1,c=r;for(;--c>=0&&l[c]==="\\";)o=!o;return o?"|":" |"}),n=t.split(x.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(x.slashPipe,"|");return n}function I(a,e,t){let n=a.length;if(n===0)return"";let s=0;for(;s<n&&a.charAt(n-s-1)===e;)s++;return a.slice(0,n-s)}function kt(a,e){if(a.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<a.length;n++)if(a[n]==="\\")n++;else if(a[n]===e[0])t++;else if(a[n]===e[1]&&(t--,t<0))return n;return-1}function Te(a,e,t,n,s){let i=e.href,r=e.title||null,l=a[1].replace(s.other.outputLinkReplace,"$1");if(a[0].charAt(0)!=="!"){n.state.inLink=!0;let o={type:"link",raw:t,href:i,title:r,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,o}return{type:"image",raw:t,href:i,title:r,text:l}}function bt(a,e,t){let n=a.match(t.other.indentCodeCompensation);if(n===null)return e;let s=n[1];return e.split(`
3
3
  `).map(i=>{let r=i.match(t.other.beginningSpace);if(r===null)return i;let[l]=r;return l.length>=s.length?i.slice(s.length):i}).join(`
4
4
  `)}var _=class{options;rules;lexer;constructor(e){this.options=e||R}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(n,`
@@ -0,0 +1,6 @@
1
+ import{g as Xt}from"./chunk-YO6IQOER.js";import{a as Wt,b as zt,o as Z}from"./chunk-2WZR3NHU.js";import{a as Ht}from"./chunk-AYWJL6PH.js";import{a as Kt}from"./chunk-DW725235.js";import"./chunk-DNHLTHLR.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import{a as U}from"./chunk-RTVM3BJK.js";import{a as ft,b as gt,d as Dt,e as St,f as Et,h as Ot,i as xt,k as kt,l as Nt,m as Rt,n as ht,o as yt,p as It,r as $t}from"./chunk-XKAASYKO.js";import{b as Ct}from"./chunk-PPRHD3ZV.js";import{a as ut,c as Tt}from"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as wt,b as vt,d as At,e as Pt,i as Vt,l as bt,n as Mt,r as Gt,s as Bt,x as Lt,y as Ut}from"./chunk-UIC2LGAH.js";import{c as dt}from"./chunk-MCLDJCPW.js";import{ia as Ft}from"./chunk-7IRVNC4S.js";import{Ab as E,Bb as r,Cb as a,Db as u,E as tt,Eb as v,Fb as A,Gb as b,Hb as x,Lc as K,Nb as N,Nc as mt,Ob as R,Pb as M,Qb as q,Ra as o,Rb as j,Sb as H,Tb as g,Ub as s,Xb as y,Y as w,Ya as nt,_b as T,da as C,dc as ot,ea as f,eb as it,ec as at,fc as G,gc as p,hc as V,ia as et,ic as O,jb as F,jc as Q,lc as rt,mc as lt,nc as st,rc as pt,sb as _,sc as _t,tc as B,ua as h,ub as X,vc as L,xb as d,yb as D,zb as S,zc as ct}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";var qt=["formRef"],jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"custom",destinationType:t,oauthField:e}),z=n=>({$implicit:n}),Qt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:t,oauthField:e}),Zt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",destinationType:t,oauthField:e}),Jt=(n,i,t,e)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:e}),Yt=()=>({maxWidth:"700px",width:"100%"});function te(n,i){n&1&&(N(0,3,2),u(1,"spk-icon"),R())}function ee(n,i){n&1&&M(0,3,3)}function ne(n,i){if(n&1){let t=x();N(0,3,1),r(1,"button",19),g("click",function(){C(t);let l=s();return f(l.testDestination())}),F(2,te,2,0)(3,ee,1,0),a(),R()}if(n&2){let t=s();o(),X("success",t.successfulTest()),o(),d(t.successfulTest()?2:3)}}function ie(n,i){if(n&1){let t=x();r(0,"p",25),g("click",function(){C(t);let l=s();return f(l.removeDestinationFormGroup(l.destinationCount()-1))}),N(1,6),u(2,"span",26),R(),a()}}function oe(n,i){if(n&1){let t=x();r(0,"div",32),g("click",function(){let l=C(t).$implicit,c=s(2);return f(c.addDestinationFormGroup(l.key))}),r(1,"h3"),p(2),a(),r(3,"p"),p(4),a()()}if(n&2){let t=i.$implicit;o(2),V(t.displayName),o(2),V(t.description)}}function ae(n,i){if(n&1){let t=x();r(0,"button",33,1),g("click",function(){let l=C(t).$implicit,c=s(2);return f(c.addDestinationFormGroup(l.key))}),p(2),a()}if(n&2){let t=i.$implicit;o(2),O(" ",t.displayName," ")}}function re(n,i){if(n&1&&(r(0,"div",27),S(1,oe,5,2,"div",28,D),a(),r(3,"spk-menu",29)(4,"button",30),M(5,7),a(),v(6,18),S(7,ae,3,1,"button",31,D),A(),a()),n&2){let t=s();o(),E(t.destinationTypeOptionsFocused()),o(2),_("searchable",!0),o(4),E(t.destinationTypeOptionsNotFocused())}}function le(n,i){n&1&&b(0)}function se(n,i){if(n&1&&F(0,le,1,0,"ng-container",38),n&2){let t,e=i.$implicit,l=i.$index;s();let c=G(29),m=s();_("ngTemplateOutlet",c)("ngTemplateOutletContext",B(7,z,L(2,jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function pe(n,i){n&1&&b(0)}function _e(n,i){if(n&1&&F(0,pe,1,0,"ng-container",38),n&2){let t,e=i.$implicit,l=i.$index;s();let c=G(29),m=s();_("ngTemplateOutlet",c)("ngTemplateOutletContext",B(7,z,L(2,Qt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function ce(n,i){if(n&1){let t=x();N(0,8,1),r(1,"button",33,1),g("click",function(){let l=C(t).$implicit,c=s(2);return f(c.addAdvancedFormPair(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function me(n,i){n&1&&b(0)}function Fe(n,i){if(n&1&&F(0,me,1,0,"ng-container",38),n&2){let t,e=i.$implicit,l=i.$index;s();let c=G(29),m=s();_("ngTemplateOutlet",c)("ngTemplateOutletContext",B(7,z,L(2,Zt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function de(n,i){if(n&1){let t=x();N(0,9,1),r(1,"button",33,1),g("click",function(){let l=C(t).$implicit,c=s(2);return f(c.addHttpOption(l,0))}),a(),R()}if(n&2){let t=i.$implicit;o(),q(t.name),j(0)}}function ue(n,i){n&1&&b(0)}function Te(n,i){if(n&1&&F(0,ue,1,0,"ng-container",38),n&2){let t,e=i.$implicit,l=i.$index;s();let c=G(29),m=s();_("ngTemplateOutlet",c)("ngTemplateOutletContext",B(7,z,L(2,Jt,l,e,(t=m.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,m.destinationFormPair().oauthField)))}}function Ce(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function fe(n,i){if(n&1&&(r(0,"app-file-tree",41)(1,"label",48),p(2),F(3,Ce,3,1,"spk-tooltip",49),a(),u(4,"input",50),a()),n&2){let t,e=s().$implicit,l=s(2);_("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function ge(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function De(n,i){if(n&1&&(r(0,"app-file-tree",42)(1,"label",48),p(2),F(3,ge,3,1,"spk-tooltip",49),a(),u(4,"input",50),a()),n&2){let t,e=s().$implicit,l=s(2);_("hideShortcuts",!0)("startingPath",l.getFormFieldValue(0,e.formGroupName,e.formView.name)),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Se(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function Ee(n,i){n&1&&(r(0,"spk-icon",52),p(1,"link"),a())}function Oe(n,i){n&1&&(r(0,"spk-icon",52),p(1,"envelope"),a())}function xe(n,i){n&1&&(r(0,"spk-icon",52),p(1,"textbox"),a())}function ke(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",48),p(2),F(3,Se,3,1,"spk-tooltip",49),a(),u(4,"input",51),F(5,Ee,2,0,"spk-icon",52)(6,Oe,2,0,"spk-icon",52)(7,xe,2,0,"spk-icon",52),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),_("type",e.formView.type==="Email"?"email":"text"),o(),d(e.formView.type==="Path"?5:e.formView.type==="Email"?6:7)}}function Ne(n,i){if(n&1){let t=x();r(0,"span",56),g("click",function(){C(t);let l=s(2).$implicit,c=s(2);return f(c.oauthStartTokenCreation(l.destinationType))}),p(1,"AuthID"),a()}}function Re(n,i){n&1&&(r(0,"spk-icon",52),p(1,"password"),a())}function he(n,i){if(n&1){let t=x();r(0,"spk-icon",57),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye "),a()}}function ye(n,i){if(n&1){let t=x();r(0,"spk-icon",57),g("click",function(){C(t);let l=s(2).$implicit;return f(l.formView.showPassword=!l.formView.showPassword)}),p(1," eye-slash "),a()}}function Ie(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",48),p(2),a(),u(3,"input",53),F(4,Ne,2,0,"span",54)(5,Re,2,0,"spk-icon",52)(6,he,2,0,"spk-icon",55)(7,ye,2,0,"spk-icon",55),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),_("type",e.formView.showPassword?"text":"password"),o(),d(e.oauthField===e.formView.name?4:5),o(2),d(e.formView.showPassword?6:7)}}function $e(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function we(n,i){if(n&1&&(r(0,"spk-option",58),p(1),a()),n&2){let t=i.$implicit;_("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function ve(n,i){if(n&1&&S(0,we,2,3,"spk-option",58,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Ae(n,i){if(n&1&&(r(0,"spk-option",58),p(1),a()),n&2){let t=i.$implicit;_("value",t),o(),V(t)}}function Pe(n,i){if(n&1&&S(0,Ae,2,2,"spk-option",58,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ve(n,i){if(n&1&&(r(0,"spk-select",43)(1,"label",48),p(2),F(3,$e,3,1,"spk-tooltip",49),a(),u(4,"input",50),F(5,ve,2,0)(6,Pe,2,0),a()),n&2){let t,e=s().$implicit;_("hideClearButton",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function be(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function Me(n,i){if(n&1&&(r(0,"spk-option",58),p(1),a()),n&2){let t=i.$implicit;_("value",t.value),o(),Q(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ge(n,i){if(n&1&&S(0,Me,2,3,"spk-option",58,D),n&2){let t=s(2).$implicit,e=s(2);E(t.formView.loadOptions(e.injector)())}}function Be(n,i){if(n&1&&(r(0,"spk-option",58),p(1),a()),n&2){let t=i.$implicit;_("value",t),o(),V(t)}}function Le(n,i){if(n&1&&S(0,Be,2,2,"spk-option",58,D),n&2){let t=s(2).$implicit;E(t.formView.options)}}function Ue(n,i){if(n&1&&(r(0,"spk-select",44)(1,"label",48),p(2),F(3,be,3,1,"spk-tooltip",49),a(),u(4,"input",59),F(5,Ge,2,0)(6,Le,2,0),a()),n&2){let t,e=s().$implicit;_("isFreeText",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name),o(),d(e.formView.loadOptions?5:-1),o(),d(e.formView.options?6:-1)}}function He(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function Ke(n,i){if(n&1&&(r(0,"spk-option",58),p(1),a()),n&2){let t=i.$implicit;_("value",t),o(),V(t)}}function We(n,i){if(n&1&&(r(0,"div",45)(1,"label",48),p(2),F(3,He,3,1,"spk-tooltip",49),a(),r(4,"div",60)(5,"spk-form-field"),u(6,"input",61),r(7,"spk-icon",52),p(8,"resize"),a()(),r(9,"spk-select"),u(10,"label")(11,"input",62),S(12,Ke,2,2,"spk-option",58,D),a()()()),n&2){let t,e=s().$implicit,l=s(2);_("formGroupName",e.formView.name),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(3),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(6),E(l.sizeOptions())}}function ze(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function Xe(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",48),p(2),F(3,ze,3,1,"spk-tooltip",49),a(),u(4,"input",63),r(5,"spk-icon",52),p(6,"numpad"),a()()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function qe(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(r(0,"spk-toggle",46)(1,"label",48),p(2),F(3,qe,3,1,"spk-tooltip",49),a(),u(4,"input",64),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function Qe(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function Ze(n,i){n&1&&(r(0,"spk-option",66),p(1,"None"),a()),n&2&&_("value","None")}function Je(n,i){if(n&1&&(r(0,"spk-option",58),p(1),u(2,"spk-checkbox",67),a()),n&2){let t=s().$implicit;_("value",t),o(),O(" ",t," ")}}function Ye(n,i){if(n&1&&F(0,Ze,2,1,"spk-option",66)(1,Je,3,2,"spk-option",58),n&2){let t=i.$implicit;d(t==="None"?0:1)}}function tn(n,i){if(n&1&&(r(0,"spk-select",47)(1,"label",48),p(2),F(3,Qe,3,1,"spk-tooltip",49),a(),u(4,"input",65),S(5,Ye,2,1,null,null,D),a()),n&2){let t,e=s().$implicit;_("selectMultiple",!0),o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),y("formControlName",e.formView.name),o(),E(e.formView.options)}}function en(n,i){if(n&1&&(r(0,"spk-tooltip",49)(1,"spk-icon"),p(2,"question"),a()()),n&2){let t=s(2).$implicit;_("message",t.formView.longDescription)}}function nn(n,i){if(n&1&&(r(0,"spk-form-field")(1,"label",48),p(2),F(3,en,3,1,"spk-tooltip",49),a(),u(4,"input",50),a()),n&2){let t,e=s().$implicit;o(),T("for","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),o(),O(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),o(),d(e.formView.longDescription?3:-1),o(),T("id","destination-",e.formGroupName,"-",e.index,"-",e.asHttpOptions?"http":"other",""),y("formControlName",e.formView.name)}}function on(n,i){if(n&1){let t=x();r(0,"button",68),g("click",function(){C(t);let l=s().$implicit,c=s(2);return f(c.removeFormView(l.formView,0))}),r(1,"spk-icon"),p(2,"x-circle"),a()()}}function an(n,i){if(n&1&&(r(0,"div",39),v(1,40),F(2,fe,5,17,"app-file-tree",41)(3,De,5,13,"app-file-tree",42)(4,ke,8,13,"spk-form-field")(5,Ie,8,13,"spk-form-field")(6,Ve,7,14,"spk-select",43)(7,Ue,7,14,"spk-select",44)(8,We,14,11,"div",45)(9,Xe,7,11,"spk-form-field")(10,je,5,11,"spk-toggle",46)(11,tn,7,8,"spk-select",47)(12,nn,5,11,"spk-form-field"),A(),F(13,on,3,0,"button",30),a()),n&2){let t=i.$implicit;X("single-field",t.formGroupName!=="advanced"),o(),_("formGroupName",t.formGroupName),o(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),o(11),d(t.formGroupName==="advanced"?13:-1)}}function rn(n,i){if(n&1&&(v(0,20)(1,34),S(2,se,1,9,"ng-container",null,D),S(4,_e,1,9,"ng-container",null,D),r(6,"app-toggle-card",35),v(7,36),N(8,8),r(9,"spk-menu",29)(10,"button",37),u(11,"spk-icon"),a(),v(12,18),S(13,ce,3,1,"button",31,D),A(),a(),R(),A(),S(15,Fe,1,9,"ng-container",null,D),a(),r(17,"app-toggle-card",35),v(18,36),N(19,9),r(20,"spk-menu",29)(21,"button",37),u(22,"spk-icon"),a(),v(23,18),S(24,de,3,1,"button",31,D),A(),a(),R(),A(),S(26,Te,1,9,"ng-container",null,D),a(),F(28,an,14,5,"ng-template",null,2,ct),A()()),n&2){let t=s();o(2),E(t.destinationFormPair().custom),o(2),E(t.destinationFormPair().dynamic),o(2),_("disallowToggle",!0),o(3),_("searchable",!0),o(),_("disabled",t.notSelectedAdvancedFormPair().length===0),o(3),E(t.notSelectedAdvancedFormPair()),o(2),E(t.selectedAdvancedFormPair()),o(2),_("disallowToggle",!0),o(3),_("searchable",!0),o(),_("disabled",t.notSelectedHttpOptions().length===0),o(3),E(t.notSelectedHttpOptions()),o(2),E(t.selectedHttpOptions())}}function ln(n,i){if(n&1){let t=x();r(0,"spk-dialog",69),st("isOpenChange",function(l){C(t);let c=s();return lt(c.targetUrlDialogOpen,l)||(c.targetUrlDialogOpen=l),f(l)}),r(1,"header",70)(2,"h2"),M(3,10),a(),r(4,"spk-alert",71),M(5,11),a()(),r(6,"div",72)(7,"spk-form-field"),u(8,"textarea",73),a()(),r(9,"footer",74)(10,"button",22),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!1))}),p(11,"Cancel"),a(),r(12,"button",75),g("click",function(){C(t);let l=s();return f(l.closeTargetUrlDialog(!0))}),N(13,12),u(14,"spk-icon"),R(),a()()()}if(n&2){let t=s();rt("isOpen",t.targetUrlDialogOpen),_("options",_t(3,Yt)),o(8),_("formControl",t.targetUrlCtrl)}}var sn=["Bytes","KB","MB","GB","TB","PB"],W=new It,vn=(n={destinations:[]})=>W.group({destinations:W.array(n.destinations)}),An=({key:n,customGroup:i,dynamicGroup:t,advancedGroup:e})=>W.group({destinationType:W.control(n),custom:i,dynamic:t,advanced:e}),J=class n{#l=w(Tt);#s=w(ut);#p=w(dt);#t=w(Z);#i=w(Ct);#e=w(Pt);#n=w(Xt);injector=w(et);formRef=nt.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=h(sn);successfulTest=h(!1);destinationTypeOptionsInFocus=h(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=h(zt.map(i=>({key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description})));destinationTypeOptionsFocused=K(()=>{let i=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return i.map(e=>t.find(l=>l.key===e))});destinationTypeOptionsNotFocused=K(()=>{let i=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(e=>!i.includes(e.key))});targetUrlEffect=mt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let i=this.#t.getCurrentTargetUrl();this.#n.updateTargetUrl(i[0])}else this.#n.updateTargetUrl(null)});ngOnInit(){let i=this.#n.destinationTargetUrl();i&&this.#t.updateFieldsFromTargetUrl(i)}getFormFieldValue(i,t,e){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[t]).controls[e].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,t){this.#t.addAdvancedFormPair(i,t)}removeFormView(i,t){this.#t.removeAdvancedFormPair(i,t)}addHttpOption(i,t){this.#t.addHttpOption(i,t)}targetUrlCtrl=new Et;targetUrlInitial=h(null);targetUrlDialogOpen=h(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,e=this.targetUrlInitial();!i||t===e||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let e=this.#t.getCurrentTargetUrl()[i];e&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:e}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:l=>{let c=l.error.error.Error;if(c==="missing-folder"&&this.#e.open(U,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:m=>{m&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:e}}).subscribe()}}),c.startsWith("incorrect-cert:")){let m=c.split("incorrect-cert:")[1];this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
2
+ If this is a self-signed certificate, you can choose to trust this certificate.
3
+ The server reported the certificate hash: ${m}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:k=>{k&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",m)}})}if(c.startsWith("incorrect-host-key:")){let m=c.split('incorrect-host-key:"')[1].split('",')[0],k=c.split('accepted-host-key:"')[1].split('",')[0];k?this.#e.open(U,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
4
+ otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
5
+ Do you want to REPLACE your CURRENT host key ${k}
6
+ with the REPORTED host key: ${m}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}}):this.#e.open(U,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${m}`,confirmText:"Approve",cancelText:"Cancel"},closed:I=>{I&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,m)}})}}})}mapToTargetUrl(i){return Wt(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let t=this.destinationOptions().find(e=>e.Key===i);return t?`${t.DisplayName}`:""}goBack(){this.#n.exit()}next(){this.#l.navigate(["encryption"],{relativeTo:this.#s.parent})}#o=h("https://duplicati-oauth-handler.appspot.com/").asReadonly();#a=h(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#r=h(!1);#_=h(null);keyCreation(){}oauthStartTokenCreation(i){this.#r.set(!0);let t=450,e=600,l=this.#o()+"?type="+i+"&token="+this.#a(),c=screen.width/2-t/2,m=screen.height/2-e/2,k=window.open(l,"_blank","height="+e+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+c+",top="+m);k?.addEventListener("blur",I=>{console.log("event blur",I)}),k?.addEventListener("beforeunload",I=>{console.log("event beforeunload",I),this.#p.get(this.#o()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#a()}}).pipe(tt(()=>this.#r.set(!1))).subscribe({next:P=>{console.log("res",P),P?.authid&&this.#_.set(P.authid)}})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=it({type:n,selectors:[["app-restore-destination"]],viewQuery:function(t,e){t&1&&ot(e.formRef,qt,5),t&2&&at()},features:[pt([Z])],decls:24,vars:6,consts:()=>{let i;i=$localize` Backup placement ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,i=H(i);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let e;e=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let l;l=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let c;c=$localize`Other destinations`;let m;m=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,m=H(m);let k;k=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,k=H(k);let I;I=$localize`Edit target URL`;let P;P=$localize` Be careful, this will overwrite everything you have in your destination. `;let Y;return Y=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],["fieldTemplate",""],i,t,e,l,c,m,k,I,P,Y,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],[3,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[3,"hideClearButton"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"value"],["type","search",3,"id","formControlName"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,e){if(t&1){let l=x();r(0,"form",13,0),g("submit",function(){return C(l),f(e.next())}),r(2,"header")(3,"h3",14),N(4,3),r(5,"div",15),F(6,ne,4,3,"button",16),r(7,"spk-menu")(8,"button",17),u(9,"spk-icon"),a(),v(10,18),r(11,"button",19),g("click",function(){return C(l),f(e.openTargetUrlDialog())}),u(12,"spk-icon"),a(),A(),a()(),R(),a(),F(13,ie,3,0,"p"),a(),F(14,re,9,1)(15,rn,30,6,"ng-container",20),r(16,"div",21)(17,"button",22),g("click",function(){return C(l),f(e.goBack())}),N(18,4),u(19,"spk-icon"),R(),a(),r(20,"button",23),N(21,5),u(22,"spk-icon"),R(),a()()(),F(23,ln,15,4,"spk-dialog",24)}if(t&2){let l;_("formGroup",e.destinationForm),o(6),d(e.destinationCount()>0?6:-1),o(7),d(e.destinationCount()>0?13:-1),o(),d(e.destinationCount()===0?14:-1),o(),d(!((l=e.destinationFormSignal())==null||l.destinations==null)&&l.destinations.length?15:-1),o(8),d(e.targetUrlDialogOpen()?23:-1)}},dependencies:[$t,Ot,gt,xt,ft,Dt,St,kt,Nt,yt,Rt,ht,Ft,bt,Bt,Mt,Vt,Gt,wt,Lt,Ut,At,vt,Kt,Ht],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{vn as createDestinationForm,An as createDestinationFormGroup,J as default};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-6PGJBRJV.js";import"./chunk-6FEY72H5.js";import{a as w,m as D}from"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import{ia as A}from"./chunk-VWJ5QJXJ.js";import{Ab as I,Ac as F,Bb as M,Cb as c,Db as r,Hb as u,Ib as v,Mc as $,Qb as P,Ra as l,Ub as k,Vb as s,Y as y,da as O,ea as x,eb as T,gc as C,hc as p,ic as E,kb as a,tb as d,ua as m,ub as h,uc as _,vb as f,vc as N,yb as g}from"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";var L=e=>({children:e,level:0}),R=e=>({$implicit:e}),V=(e,t)=>({children:e,level:t}),j=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,V,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,j),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,L,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
1
+ import{a as b}from"./chunk-YOP6HOXH.js";import"./chunk-PPRHD3ZV.js";import{a as w,m as D}from"./chunk-UIC2LGAH.js";import"./chunk-MCLDJCPW.js";import{ia as A}from"./chunk-7IRVNC4S.js";import{Ab as M,Bb as c,Cb as r,Gb as u,Hb as v,Lc as $,Pb as P,Ra as l,Tb as k,Ub as s,Y as y,da as O,ea as x,eb as T,fc as C,gc as p,hc as E,jb as a,sb as d,tb as h,tc as _,ua as m,ub as f,uc as N,xb as g,zb as I,zc as F}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";var L=e=>({children:e,level:0}),R=e=>({$implicit:e}),V=(e,t)=>({children:e,level:t}),j=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,V,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,j),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,L,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};