vendor: 4,177 bytes, line 1
1import{a as S,b as $,c as Eu,e as Ir,g as wr,j as p,k as P}from"./chunk-KJ7W2O2B.js";var pN=Ir((s_e,fN)=>{"use strict";var _c=1e3,Ac=_c*60,xc=Ac*60,Us=xc*24,Dz=Us*7,Cz=Us*365.25;fN.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return Iz(t);if(n==="number"&&isFinite(t))return e.long?_z(t):wz(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t));};function Iz(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*Cz;case"weeks":case"week":case"w":return n*Dz;case"days":case"day":case"d":return n*Us;case"hours":case"hour":case"hrs":case"hr":case"h":return n*xc;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ac;case"seconds":case"second":case"secs":case"sec":case"s":return n*_c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return;}}}}function wz(t){var e=Math.abs(t);return e>=Us?Math.round(t/Us)+"d":e>=xc?Math.round(t/xc)+"h":e>=Ac?Math.round(t/Ac)+"m":e>=_c?Math.round(t/_c)+"s":t+"ms";}function _z(t){var e=Math.abs(t);return e>=Us?Lm(t,e,Us,"day"):e>=xc?Lm(t,e,xc,"hour"):e>=Ac?Lm(t,e,Ac,"minute"):e>=_c?Lm(t,e,_c,"second"):t+" ms";}function Lm(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"");}});var mN=Ir((a_e,hN)=>{"use strict";function Az(t){n.debug=n,n.default=n,n.coerce=c,n.disable=s,n.enable=o,n.enabled=a,n.humanize=pN(),n.destroy=u,Object.keys(t).forEach(l=>{n[l]=t[l];}),n.names=[],n.skips=[],n.formatters={};function e(l){let d=0;for(let f=0;f<l.length;f++)d=(d<<5)-d+l.charCodeAt(f),d|=0;return n.colors[Math.abs(d)%n.colors.length];}n.selectColor=e;function n(l){let d,f=null,h,m;function v(...b){if(!v.enabled)return;let T=v,C=Number(new Date()),k=C-(d||C);T.diff=k,T.prev=d,T.curr=C,d=C,b[0]=n.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let j=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(z,pe)=>{if(z==="%%")return"%";j++;let tt=n.formatters[pe];if(typeof tt=="function"){let Bi=b[j];z=tt.call(T,Bi),b.splice(j,1),j--;}return z;}),n.formatArgs.call(T,b),(T.log||n.log).apply(T,b);}return v.namespace=l,v.useColors=n.useColors(),v.color=n.selectColor(l),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(h!==n.namespaces&&(h=n.namespaces,m=n.enabled(l)),m),set:b=>{f=b;}}),typeof n.init=="function"&&n.init(v),v;}function r(l,d){let f=n(this.namespace+(typeof d>"u"?":":d)+l);return f.log=this.log,f;}function o(l){n.save(l),n.namespaces=l,n.names=[],n.skips=[];let d=(typeof l=="string"?l:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?n.skips.push(f.slice(1)):n.names.push(f);}function i(l,d){let f=0,h=0,m=-1,v=0;for(;f<l.length;)if(h<d.length&&(d[h]===l[f]||d[h]==="*"))d[h]==="*"?(m=h,v=f,h++):(f++,h++);else if(m!==-1)h=m+1,v++,f=v;else return!1;for(;h<d.length&&d[h]==="*";)h++;return h===d.length;}function s(){let l=[...n.names,...n.skips.map(d=>"-"+d)].join(",");return n.enable(""),l;}function a(l){for(let d of n.skips)if(i(l,d))return!1;for(let d of n.names)if(i(l,d))return!0;return!1;}function c(l){return l instanceof Error?l.stack||l.message:l;}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n;}hN.exports=Az;});var No=Ir((fn,km)=>{"use strict";fn.formatArgs=Rz;fn.save=Mz;fn.load=Nz;fn.useColors=xz;fn.storage=Oz();fn.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));};})();fn.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function xz(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);}function Rz(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+km.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n));}),t.splice(r,0,e);}fn.log=console.debug||console.log||(()=>{});function Mz(t){try{t?fn.storage.setItem("debug",t):fn.storage.removeItem("debug");}catch(e){}}function Nz(){let t;try{t=fn.storage.getItem("debug")||fn.storage.getItem("DEBUG");}catch(e){}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t;}function Oz(){try{return localStorage;}catch(t){}}km.exports=mN()(fn);var{formatters:Lz}=km.exports;Lz.j=function(t){try{return JSON.stringify(t);}catch(e){return"[UnexpectedJSONParseError]: "+e.message;}};});var gN=Ir(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.cast=Fz;dd.get=Uz;dd.set=Hz;var Pz=2**32;function Fz(t){return t<0?t+Pz:t;}function Uz(t,e){return t>>e&255;}function Hz(t,e,n){return t^(t^n<<e)&255<<e;}});var fd=Ir(J=>{"use strict";var Bz=J&&J.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,o);}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n];}),jz=J&&J.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e});}:function(t,e){t.default=e;}),Vz=J&&J.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Bz(e,t,n);return jz(e,t),e;};Object.defineProperty(J,"__esModule",{value:!0});J.OFFSET_A=J.OFFSET_B=J.OFFSET_G=J.OFFSET_R=void 0;J.newColor=yN;J.from=zz;J.toNumber=Wz;J.getRed=qz;J.getGreen=Yz;J.getBlue=Kz;J.getAlpha=Xz;J.setRed=Zz;J.setGreen=Qz;J.setBlue=Jz;J.setAlpha=e4;var $z=Vz(gN()),{cast:Gz,get:yi,set:Pm}=$z;J.OFFSET_R=24;J.OFFSET_G=16;J.OFFSET_B=8;J.OFFSET_A=0;function yN(t,e,n,r){return(t<<J.OFFSET_R)+(e<<J.OFFSET_G)+(n<<J.OFFSET_B)+(r<<J.OFFSET_A);}function zz(t){return yN(yi(t,J.OFFSET_R),yi(t,J.OFFSET_G),yi(t,J.OFFSET_B),yi(t,J.OFFSET_A));}function Wz(t){return Gz(t);}function qz(t){return yi(t,J.OFFSET_R);}function Yz(t){return yi(t,J.OFFSET_G);}function Kz(t){return yi(t,J.OFFSET_B);}function Xz(t){return yi(t,J.OFFSET_A);}function Zz(t,e){return Pm(t,J.OFFSET_R,e);}function Qz(t,e){return Pm(t,J.OFFSET_G,e);}function Jz(t,e){return Pm(t,J.OFFSET_B,e);}function e4(t,e){return Pm(t,J.OFFSET_A,e);}});var AN=Ir(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.labToXyzd50=d4;Ae.xyzd50ToLab=f4;Ae.oklabToXyzd65=SN;Ae.xyzd65ToOklab=DN;Ae.lchToLab=CN;Ae.labToLch=IN;Ae.displayP3ToXyzd50=p4;
1Ae.xyzd50ToDisplayP3=h4;Ae.proPhotoToXyzd50=m4;Ae.xyzd50ToProPhoto=g4;Ae.adobeRGBToXyzd50=y4;Ae.xyzd50ToAdobeRGB=v4;Ae.rec2020ToXyzd50=E4;Ae.xyzd50ToRec2020=b4;Ae.xyzd50ToD65=wN;Ae.xyzd65ToD50=_N;Ae.xyzd65TosRGBLinear=T4;Ae.xyzd50TosRGBLinear=S4;Ae.srgbLinearToXyzd50=D4;Ae.srgbToXyzd50=C4;Ae.xyzd50ToSrgb=I4;Ae.oklchToXyzd50=w4;Ae.xyzd50ToOklch=_4;var EN=.9642,bN=1,TN=.8251;function mt(t,e){let n=[0,0,0];for(let r=0;r<3;++r)n[r]=t[r][0]*e[0]+t[r][1]*e[1]+t[r][2]*e[2];return n;}var Qr=class{g;a;b;c;d;e;f;constructor(e,n,r=0,o=0,i=0,s=0,a=0){this.g=e,this.a=n,this.b=r,this.c=o,this.d=i,this.e=s,this.f=a;}eval(e){let n=e<0?-1:1,r=e*n;return r<this.d?n*(this.c*r+this.f):n*(Math.pow(this.a*r+this.b,this.g)+this.e);}},Jr={sRGB:new Qr(2.4,1/1.055,.055/1.055,1/12.92,.04045,0,0),sRGB_INVERSE:new Qr(.416667,1.13728,-0,12.92,.0031308,-.0549698,-0),proPhotoRGB:new Qr(1.8,1),proPhotoRGB_INVERSE:new Qr(.555556,1,-0,0,0,0,0),k2Dot2:new Qr(2.2,1),k2Dot2_INVERSE:new Qr(.454545,1),rec2020:new Qr(2.22222,.909672,.0903276,.222222,.0812429,0,0),rec2020_INVERSE:new Qr(.45,1.23439,-0,4.5,.018054,-.0993195,-0)},eo={sRGB:[[.436065674,.385147095,.143066406],[.222488403,.716873169,.06060791],[.013916016,.097076416,.714096069]],sRGB_INVERSE:[[3.134112151374599,-1.6173924597114966,-.4906334036481285],[-.9787872938826594,1.9162795854799963,.0334547139520088],[.07198304248352326,-.2289858493321844,1.4053851325241447]],displayP3:[[.515102,.291965,.157153],[.241182,.692236,.0665819],[-.00104941,.0418818,.784378]],displayP3_INVERSE:[[2.404045155982687,-.9898986932663839,-.3976317191366333],[-.8422283799266768,1.7988505115115485,.016048170293157416],[.04818705979712955,-.09737385156228891,1.2735066448052303]],adobeRGB:[[.60974,.20528,.14919],[.31111,.62567,.06322],[.01947,.06087,.74457]],adobeRGB_INVERSE:[[1.9625385510109137,-.6106892546501431,-.3413827467482388],[-.9787580455521,1.9161624707082339,.03341676594241408],[.028696263137883395,-.1406807819331586,1.349252109991369]],rec2020:[[.673459,.165661,.1251],[.279033,.675338,.0456288],[-.00193139,.0299794,.797162]],rec2020_INVERSE:[[1.647275201661012,-.3936024771460771,-.23598028884792507],[-.6826176165196962,1.647617775014935,.01281626807852422],[.029662725298529837,-.06291668721366285,1.2533964313435522]],xyz:[[1,0,0],[0,1,0],[0,0,1]]};function vN(t){return t*(Math.PI/180);}function t4(t){return t*(180/Math.PI);}function to(t,e,n,r){return[t.eval(e),t.eval(n),t.eval(r)];}var n4=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]],r4=[[.2104542553,.7936177849999999,-.0040720468],[1.9779984951000003,-2.4285922049999997,.4505937099000001],[.025904037099999982,.7827717662,-.8086757660000001]],o4=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],i4=[[1.226879873374156,-.5578149965554814,.2813910501772159],[-.040575762624313734,1.1122868293970596,-.07171106666151703],[-.07637294974672144,-.4214933239627915,1.586924024427242]],s4=[[.7976700747153241,.13519395152800417,.03135596341127167],[.28803902352472205,.7118744007923554,8661179538844252e-20],[2739876695467402e-22,-14405226518969991e-22,.825211112593861]],a4=[[1.3459533710138858,-.25561367037652133,-.051116041522131374],[-.544600415668951,1.5081687311475767,.020535163968720935],[-13975622054109725e-22,2717590904589903e-21,1.2118111696814942]],c4=[[1.0478573189120088,.022907374491829943,-.050162247377152525],[.029570500050499514,.9904755577034089,-.017061518194840468],[-.00924047197558879,.015052921526981566,.7519708530777581]],u4=[[.9555366447632887,-.02306009252137888,.06321844147263304],[-.028315378228764922,1.009951351591575,.021026001591792402],[.012308773293784308,-.02050053471777469,1.3301947294775631]],l4=[[3.2408089365140573,-1.5375788839307314,-.4985609572551541],[-.9692732213205414,1.876110235238969,.041560501141251774],[.05567030990267439,-.2040007921971802,1.0571046720577026]];function d4(t,e,n){let r=(t+16)/116,o=r+e/500,i=r-n/200;function s(a){return a<=.20689655172413793?108/841*(a-16/116):a*a*a;}return o=s(o)*EN,r=s(r)*bN,i=s(i)*TN,[o,r,i];}function f4(t,e,n){function r(a){return a<=.008856451679035631?841/108*a+16/116:Math.pow(a,1/3);}t=r(t/EN),e=r(e/bN),n=r(n/TN);let o=116*e-16,i=500*(t-e),s=200*(e-n);return[o,i,s];}function SN(t,e,n){let o=mt(n4,[t,e,n]);
1return o[0]=o[0]*o[0]*o[0],o[1]=o[1]*o[1]*o[1],o[2]=o[2]*o[2]*o[2],mt(i4,o);}function DN(t,e,n){let o=mt(o4,[t,e,n]);o[0]=Math.pow(o[0],1/3),o[1]=Math.pow(o[1],1/3),o[2]=Math.pow(o[2],1/3);let i=mt(r4,o);return[i[0],i[1],i[2]];}function CN(t,e,n){return n===void 0?[t,0,0]:[t,e*Math.cos(vN(n)),e*Math.sin(vN(n))];}function IN(t,e,n){return[t,Math.sqrt(e*e+n*n),t4(Math.atan2(n,e))];}function p4(t,e,n){let[r,o,i]=to(Jr.sRGB,t,e,n),s=[r,o,i];return mt(eo.displayP3,s);}function h4(t,e,n){let r=[t,e,n],o=mt(eo.displayP3_INVERSE,r);return to(Jr.sRGB_INVERSE,o[0],o[1],o[2]);}function m4(t,e,n){let[r,o,i]=to(Jr.proPhotoRGB,t,e,n);return mt(s4,[r,o,i]);}function g4(t,e,n){let o=mt(a4,[t,e,n]);return to(Jr.proPhotoRGB_INVERSE,o[0],o[1],o[2]);}function y4(t,e,n){let[r,o,i]=to(Jr.k2Dot2,t,e,n),s=[r,o,i];return mt(eo.adobeRGB,s);}function v4(t,e,n){let r=[t,e,n],o=mt(eo.adobeRGB_INVERSE,r);return to(Jr.k2Dot2_INVERSE,o[0],o[1],o[2]);}function E4(t,e,n){let[r,o,i]=to(Jr.rec2020,t,e,n),s=[r,o,i];return mt(eo.rec2020,s);}function b4(t,e,n){let r=[t,e,n],o=mt(eo.rec2020_INVERSE,r);return to(Jr.rec2020_INVERSE,o[0],o[1],o[2]);}function wN(t,e,n){return mt(u4,[t,e,n]);}function _N(t,e,n){return mt(c4,[t,e,n]);}function T4(t,e,n){return mt(l4,[t,e,n]);}function S4(t,e,n){let r=[t,e,n];return mt(eo.sRGB_INVERSE,r);}function D4(t,e,n){let r=[t,e,n];return mt(eo.sRGB,r);}function C4(t,e,n){let[r,o,i]=to(Jr.sRGB,t,e,n),s=[r,o,i];return mt(eo.sRGB,s);}function I4(t,e,n){let r=[t,e,n],o=mt(eo.sRGB_INVERSE,r);return to(Jr.sRGB_INVERSE,o[0],o[1],o[2]);}function w4(t,e,n){let[r,o,i]=CN(t,e,n),[s,a,c]=SN(r,o,i);return _N(s,a,c);}function _4(t,e,n){let[r,o,i]=wN(t,e,n),[s,a,c]=DN(r,o,i);return IN(s,a,c);}});var MN=Ir(Er=>{"use strict";var A4=Er&&Er.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,o);}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n];}),x4=Er&&Er.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e});}:function(t,e){t.default=e;}),R4=Er&&Er.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&A4(e,t,n);return x4(e,t),e;};Object.defineProperty(Er,"__esModule",{value:!0});Er.parse=P4;Er.parseHex=xN;Er.parseColor=RN;var pd=fd(),He=R4(AN()),M4=35,Um=37,N4=103,hd=110,O4=100,L4=101,k4=(()=>{let t="(\\w+)",e="[\\s,\\/]",n="([^\\s,\\/]+)",r=`(?:${e}+${n})`;return new RegExp(`${t}\\( 2 ${e}* 3 ${n} 4 ${r} 5 ${r} 6 ${r}? 7 ${r}? 8 ${e}* 9 \\)`.replace(/\s/g,""));})();function P4(t){return t.charCodeAt(0)===M4?xN(t):RN(t);}function xN(t){let e=0,n=0,r=0,o=255;switch(t.length){case 4:{e=(at(t.charCodeAt(1))<<4)+at(t.charCodeAt(1)),n=(at(t.charCodeAt(2))<<4)+at(t.charCodeAt(2)),r=(at(t.charCodeAt(3))<<4)+at(t.charCodeAt(3));break;}case 7:{e=(at(t.charCodeAt(1))<<4)+at(t.charCodeAt(2)),n=(at(t.charCodeAt(3))<<4)+at(t.charCodeAt(4)),r=(at(t.charCodeAt(5))<<4)+at(t.charCodeAt(6));break;}case 9:{e=(at(t.charCodeAt(1))<<4)+at(t.charCodeAt(2)),n=(at(t.charCodeAt(3))<<4)+at(t.charCodeAt(4)),r=(at(t.charCodeAt(5))<<4)+at(t.charCodeAt(6)),o=(at(t.charCodeAt(7))<<4)+at(t.charCodeAt(8));break;}default:break;}return(0,pd.newColor)(e,n,r,o);}function at(t){return(t&15)+9*(t>>6);}function RN(t){let e=k4.exec(t);if(e===null)throw new Error(`Color.parse(): invalid CSS color: "${t}"`);let n=e[1],r=e[2],o=e[3],i=e[4],s=e[5],a=e[6];switch(n){case"rgb":case"rgba":{let c=HS(r),u=HS(o),l=HS(i),d=s?vi(s):255;return(0,pd.newColor)(c,u,l,d);}case"hsl":case"hsla":{let c=BS(r),u=Fm(o),l=Fm(i),d=s?vi(s):255,f,h,m;if(u===0)f=h=m=Math.round(l*255);else{let v=l<.5?l*(1+u):l+u-l*u,b=2*l-v;f=Math.round(Mc(b,v,c+1/3)*255),h=Math.round(Mc(b,v,c)*255),m=Math.round(Mc(b,v,c-1/3)*255);}return(0,pd.newColor)(f,h,m,d);}case"hwb":{let c=BS(r),u=Fm(o),l=Fm(i),d=s?vi(s):255,f=1,h=.5,m=h<.5?h*(1+f):h+f-h*f,v=2*h-m,b=Math.round(Mc(v,m,c+1/3)*255),T=Math.round(Mc(v,m,c)*255),C=Math.round(Mc(v,m,c-1/3)*255);return b=jS(b,u,l),T=jS(T,u,l),C=jS(C,u,l),(0,pd.newColor)(b,T,C,d);}case"lab":{let c=Ei(r,100),u=Ei(o,125),l=Ei(i,125),d=s?vi(s):255;return jn(d,He.xyzd50ToSrgb(...He.labToXyzd50(c,u,l)));}case"lch":{let c=Ei(r,100),u=Ei(o,150),l=BS(i)*360,d=s?vi(s):255;return jn(d,He.xyzd50ToSrgb(...He.labToXyzd50(...He.lchToLab(c,u,l))));}case"oklab":{let c=Ei(r,1),u=Ei(o,.4),l=Ei(i,.4),d=s?vi(s):255;return jn(d,He.xyzd50ToSrgb(...He.xyzd65ToD50(...He.oklabToXyzd65(c,u,l))));}case"oklch":{let c=Rc(r),u=Rc(o),l=Rc(i),d=s?vi(s):255;return jn(d,He.xyzd50ToSrgb(...He.oklchToXyzd50(c,u,l)));}case"color":{let c=r,u=Rc(o),l=Rc(i),d=Rc(s),f=a?vi(a):255;switch(c){case"srgb":return jn(f,[u,l,d]);case"srgb-linear":return jn(f,He.xyzd50ToSrgb(...He.srgbLinearToXyzd50(u,l,d)));case"display-p3":return jn(f,He.xyzd50ToSrgb(...He.displayP3ToXyzd50(u,l,d)));case"a98-rgb":return jn(f,He.xyzd50ToSrgb(...He.adobeRGBToXyzd50(u,l,d)));case"prophoto-rgb":return jn(f,He.xyzd50ToSrgb(...He.proPhotoToXyzd50(u,l,d)));
9case"rec2020":return jn(f,He.xyzd50ToSrgb(...He.rec2020ToXyzd50(u,l,d)));case"xyz":case"xyz-d65":return jn(f,He.xyzd50ToSrgb(...He.xyzd65ToD50(u,l,d)));case"xyz-d50":return jn(f,He.xyzd50ToSrgb(u,l,d));default:}}default:}throw new Error(`Color.parse(): invalid CSS color: "${t}"`);}function HS(t){return t.charCodeAt(t.length-1)===Um?Math.round(parseFloat(t)/100*255):Math.round(parseFloat(t));}function vi(t){return Math.round(F4(t)*255);}function F4(t){return t.charCodeAt(0)===hd?0:t.charCodeAt(t.length-1)===Um?parseFloat(t)/100:parseFloat(t);}function BS(t){let e=1;switch(t.charCodeAt(t.length-1)){case L4:return 0;case O4:{t.charCodeAt(Math.max(0,t.length-4))===N4?e=400:e=2*Math.PI;break;}case hd:{e=1;break;}default:e=360;}return parseFloat(t)/e;}function Fm(t){return t.charCodeAt(0)===hd?0:parseFloat(t)/100;}function Rc(t){return t.charCodeAt(0)===hd?0:t.charCodeAt(t.length-1)===Um?parseFloat(t)/100:parseFloat(t);}function Ei(t,e){return t.charCodeAt(0)===hd?0:t.charCodeAt(t.length-1)===Um?parseFloat(t)/100*e:parseFloat(t);}function Mc(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t;}function jS(t,e,n){let r=t/255;return r*=1-e-n,r+=e,Math.round(r*255);}function VS(t){return Math.max(0,Math.min(255,t));}function jn(t,e){let n=VS(Math.round(e[0]*255)),r=VS(Math.round(e[1]*255)),o=VS(Math.round(e[2]*255));return(0,pd.newColor)(n,r,o,t);}});var kN=Ir(Tt=>{"use strict";var U4=Tt&&Tt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,o);}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n];}),H4=Tt&&Tt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e});}:function(t,e){t.default=e;}),B4=Tt&&Tt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&U4(e,t,n);return H4(e,t),e;};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.format=void 0;Tt.formatHEXA=NN;Tt.formatHEX=V4;Tt.formatRGBA=$4;Tt.toRGBA=G4;Tt.formatHSLA=z4;Tt.toHSLA=W4;Tt.formatHWBA=q4;Tt.toHWBA=Y4;var j4=B4(fd()),{getRed:bi,getGreen:Ti,getBlue:Si,getAlpha:Bs}=j4,Ze=[0,0,0],Hs=Array.from({length:256}).map((t,e)=>e.toString(16).padStart(2,"0"));Tt.format=NN;function NN(t){return"#"+Hs[bi(t)]+Hs[Ti(t)]+Hs[Si(t)]+Hs[Bs(t)];}function V4(t){return"#"+Hs[bi(t)]+Hs[Ti(t)]+Hs[Si(t)];}function $4(t){return`rgba(${bi(t)} ${Ti(t)} ${Si(t)} / ${Bs(t)/255})`;}function G4(t){return{r:bi(t),g:Ti(t),b:Si(t),a:Bs(t)};}function z4(t){ON(bi(t),Ti(t),Si(t));let e=Ze[0],n=Ze[1],r=Ze[2],o=Bs(t)/255;return`hsla(${e} ${n}% ${r}% / ${o})`;}function W4(t){ON(bi(t),Ti(t),Si(t));let e=Ze[0],n=Ze[1],r=Ze[2],o=Bs(t)/255;return{h:e,s:n,l:r,a:o};}function q4(t){LN(bi(t),Ti(t),Si(t));let e=Ze[0],n=Ze[1],r=Ze[2],o=Bs(t)/255;return`hsla(${e} ${n}% ${r}% / ${o})`;}function Y4(t){LN(bi(t),Ti(t),Si(t));let e=Ze[0],n=Ze[1],r=Ze[2],o=Bs(t)/255;return{h:e,w:n,b:r,a:o};}function ON(t,e,n){t/=255,e/=255,n/=255;let r=Math.max(t,e,n),o=r-Math.min(t,e,n),i=o?r===t?(e-n)/o:r===e?2+(n-t)/o:4+(t-e)/o:0;Ze[0]=60*i<0?60*i+360:60*i,Ze[1]=100*(o?r<=.5?o/(2*r-o):o/(2-(2*r-o)):0),Ze[2]=100*(2*r-o)/2;}function LN(t,e,n){t/=255,e/=255,n/=255;let r=Math.min(t,e,n),o=Math.max(t,e,n),i=1-o;if(o===r){Ze[0]=0,Ze[1]=r,Ze[2]=i;return;}let s=t===r?e-n:e===r?n-t:t-e,a=t===r?3:e===r?5:1;Ze[0]=(a-s/(o-r))/6,Ze[1]=r,Ze[2]=i;}});var FN=Ir(Dn=>{"use strict";var K4=Dn&&Dn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,o);}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n];}),X4=Dn&&Dn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e});}:function(t,e){t.default=e;}),Z4=Dn&&Dn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&K4(e,t,n);return X4(e,t),e;};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.alpha=e8;Dn.darken=t8;Dn.lighten=n8;Dn.blend=r8;Dn.getLuminance=o8;var Q4=Z4(fd()),{getRed:md,getGreen:gd,getBlue:yd,getAlpha:PN,setAlpha:J4,newColor:$S}=Q4;function e8(t,e){return J4(t,Math.round(e*255));}function t8(t,e){let n=md(t),r=gd(t),o=yd(t),i=PN(t),s=1-e;return $S(n*s,r*s,o*s,i);}function n8(t,e){let n=md(t),r=gd(t),o=yd(t),i=PN(t);return $S(n+(255-n)*e,r+(255-r)*e,o+(255-o)*e,i);}function r8(t,e,n,r=1){let o=(c,u)=>Math.round((c**(1/r)*(1-n)+u**(1/r)*n)**r),i=o(md(t),md(e)),s=o(gd(t),gd(e)),a=o(yd(t),yd(e));return $S(i,s,a,255);}function o8(t){let e=md(t)/255,n=gd(t)/255,r=yd(t)/255,o=c=>c<=.03928?c/12.92:((c+.055)/1.055)**2.4,i=o(e),s=o(n),a=o(r);return Math.round((.2126*i+.7152*s+.0722*a)*1e3)/1e3;}});var GS=Ir(no=>{"use strict";var i8=no&&no.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,o);}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n];}),Hm=no&&no.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&i8(e,t,n);};Object.defineProperty(no,"__esModule",{value:!0});Hm(fd(),no);Hm(MN(),no);Hm(kN(),no);Hm(FN(),no);});function V(t){return typeof t=="function";}function ya(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n;}var Vd=ya(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription: 10${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` 11 `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function Gi(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1);}}var Le=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null;}
11unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(V(r))try{r();}catch(i){e=i instanceof Vd?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{tC(i);}catch(s){e=e??[],s instanceof Vd?e=[...e,...s.errors]:e.push(s);}}if(e)throw new Vd(e);}}add(e){var n;if(e&&e!==this)if(this.closed)tC(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e);}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e);}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e;}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Gi(n,e);}remove(e){let{_finalizers:n}=this;n&&Gi(n,e),e instanceof t&&e._removeParent(this);}};Le.EMPTY=(()=>{let t=new Le();return t.closed=!0,t;})();var my=Le.EMPTY;function $d(t){return t instanceof Le||t&&"closed"in t&&V(t.remove)&&V(t.add)&&V(t.unsubscribe);}function tC(t){V(t)?t():t.unsubscribe();}var Kn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var va={setTimeout(t,e,...n){let{delegate:r}=va;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n);},clearTimeout(t){let{delegate:e}=va;return(e?.clearTimeout||clearTimeout)(t);},delegate:void 0};function Gd(t){va.setTimeout(()=>{let{onUnhandledError:e}=Kn;if(e)e(t);else throw t;});}function mn(){}var nC=gy("C",void 0,void 0);function rC(t){return gy("E",void 0,t);}function oC(t){return gy("N",t,void 0);}function gy(t,e,n){return{kind:t,value:e,error:n};}var zi=null;function Ea(t){if(Kn.useDeprecatedSynchronousErrorHandling){let e=!zi;if(e&&(zi={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=zi;if(zi=null,n)throw r;}}else t();}function iC(t){Kn.useDeprecatedSynchronousErrorHandling&&zi&&(zi.errorThrown=!0,zi.error=t);}var Wi=class extends Le{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,$d(e)&&e.add(this)):this.destination=nF;}static create(e,n,r){return new Xn(e,n,r);}next(e){this.isStopped?vy(oC(e),this):this._next(e);}error(e){this.isStopped?vy(rC(e),this):(this.isStopped=!0,this._error(e));}complete(){this.isStopped?vy(nC,this):(this.isStopped=!0,this._complete());}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null);}_next(e){this.destination.next(e);}_error(e){try{this.destination.error(e);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}},eF=Function.prototype.bind;function yy(t,e){return eF.call(t,e);}var Ey=class{constructor(e){this.partialObserver=e;}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e);}catch(r){zd(r);}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e);}catch(r){zd(r);}else zd(e);}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete();}catch(n){zd(n);}}},Xn=class extends Wi{constructor(e,n,r){super();let o;if(V(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Kn.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&yy(e.next,i),error:e.error&&yy(e.error,i),complete:e.complete&&yy(e.complete,i)}):o=e;}this.destination=new Ey(o);}};function zd(t){Kn.useDeprecatedSynchronousErrorHandling?iC(t):Gd(t);}function tF(t){throw t;}function vy(t,e){let{onStoppedNotification:n}=Kn;n&&va.setTimeout(()=>n(t,e));}var nF={closed:!0,next:mn,error:tF,complete:mn};var ba=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Vt(t){return t;}function by(...t){return Ty(t);}function Ty(t){return t.length===0?Vt:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n);};}var q=(()=>{class t{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new t();return r.source=this,r.operator=n,r;}subscribe(n,r,o){let i=oF(n)?n:new Xn(n,r,o);return Ea(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i;}_trySubscribe(n){try{return this._subscribe(n);}catch(r){n.error(r);}}forEach(n,r){return r=sC(r),new r((o,i)=>{let s=new Xn({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);});}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n);}[ba](){return this;}pipe(...n){return Ty(n)(this);}toPromise(n){return n=sC(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));});}}return t.create=e=>new t(e),t;})();function sC(t){var e;return(e=t??Kn.Promise)!==null&&e!==void 0?e:Promise;}function rF(t){return t&&V(t.next)&&V(t.error)&&V(t.complete);}function oF(t){return t&&t instanceof Wi||rF(t)&&$d(t);}var aC=ya(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var Z=(()=>{class t extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null;}lift(n){let r=new Wd(this,this);return r.operator=n,r;}_throwIfClosed(){if(this.closed)throw new aC();}
11next(n){Ea(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Ea(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){Ea(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null;}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0;}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n);}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n);}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?my:(this.currentObservers=null,i.push(n),new Le(()=>{this.currentObservers=null,Gi(i,n);}));}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new q();return n.source=this,n;}}return t.create=(e,n)=>new Wd(e,n),t;})(),Wd=class extends Z{constructor(e,n){super(),this.destination=e,this.source=n;}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e);}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e);}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e);}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:my;}};function _r(t,e){let n=V(t)?t:()=>t,r=o=>o.error(n());return new q(e?o=>e.schedule(r,0,o):r);}function iF(t){return V(t?.lift);}function H(t){return e=>{if(iF(e))return e.lift(function(n){try{return t(n,this);}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type");};}function L(t,e,n,r,o){return new Sy(t,e,n,r,o);}var Sy=class extends Wi{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){e.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){e.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){e.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this));}}};function F(t,e){return H((n,r)=>{let o=0;n.subscribe(L(r,i=>{r.next(t.call(e,i,o++));}));});}var{isArray:sF}=Array,{getPrototypeOf:aF,prototype:cF,keys:uF}=Object;function qd(t){if(t.length===1){let e=t[0];if(sF(e))return{args:e,keys:null};if(lF(e)){let n=uF(e);return{args:n.map(r=>e[r]),keys:n};}}return{args:t,keys:null};}function lF(t){return t&&typeof t=="object"&&aF(t)===cF;}function uC(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);});}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l));}catch(d){s(d);}}function c(l){try{u(r.throw(l));}catch(d){s(d);}}function u(l){l.done?i(l.value):o(l.value).then(a,c);}u((r=r.apply(t,e||[])).next());});}function cC(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t};}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.");}function qi(t){return this instanceof qi?(this.v=t,this):new qi(t);}function lC(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this;},o;function s(h){return function(m){return Promise.resolve(m).then(h,d);};}function a(h,m){r[h]&&(o[h]=function(v){return new Promise(function(b,T){i.push([h,v,b,T])>1||c(h,v);});},m&&(o[h]=m(o[h])));}function c(h,m){try{u(r[h](m));}catch(v){f(i[0][3],v);}}function u(h){h.value instanceof qi?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h);}function l(h){c("next",h);}function d(h){c("throw",h);}function f(h,m){h(m),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function dC(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof cC=="function"?cC(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this;},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value);});};}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a});},s);}}var Ta=t=>t&&typeof t.length=="number"&&typeof t!="function";function Yd(t){return V(t?.then);}function Kd(t){return V(t[ba]);}function Xd(t){return Symbol.asyncIterator&&V(t?.[Symbol.asyncIterator]);}function Zd(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invali
11d object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);}function dF(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator;}var Qd=dF();function Jd(t){return V(t?.[Qd]);}function ef(t){return lC(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield qi(n.read());if(o)return yield qi(void 0);yield yield qi(r);}}finally{n.releaseLock();}});}function tf(t){return V(t?.getReader);}function ee(t){if(t instanceof q)return t;if(t!=null){if(Kd(t))return fF(t);if(Ta(t))return pF(t);if(Yd(t))return hF(t);if(Xd(t))return fC(t);if(Jd(t))return mF(t);if(tf(t))return gF(t);}throw Zd(t);}function fF(t){return new q(e=>{let n=t[ba]();if(V(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable");});}function pF(t){return new q(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete();});}function hF(t){return new q(e=>{t.then(n=>{e.closed||(e.next(n),e.complete());},n=>e.error(n)).then(null,Gd);});}function mF(t){return new q(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete();});}function fC(t){return new q(e=>{yF(t,e).catch(n=>e.error(n));});}function gF(t){return fC(ef(t));}function yF(t,e){var n,r,o,i;return uC(this,void 0,void 0,function*(){try{for(n=dC(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return;}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error;}}e.complete();});}function nf(t){return t&&V(t.schedule);}function Dy(t){return t[t.length-1];}function jo(t){return V(Dy(t))?t.pop():void 0;}function Ar(t){return nf(Dy(t))?t.pop():void 0;}function pC(t,e){return typeof Dy(t)=="number"?t.pop():e;}var{isArray:vF}=Array;function EF(t,e){return vF(e)?t(...e):t(e);}function Sa(t){return F(e=>EF(t,e));}function rf(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{});}function bF(...t){let e=jo(t),{args:n,keys:r}=qd(t),o=new q(i=>{let{length:s}=n;if(!s){i.complete();return;}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;ee(n[l]).subscribe(L(i,f=>{d||(d=!0,u--),a[l]=f;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?rf(r,a):a),i.complete());}));}});return e?o.pipe(Sa(e)):o;}function Te(t,e){return H((n,r)=>{let o=0;n.subscribe(L(r,i=>t.call(e,i,o++)&&r.next(i)));});}function ae(t){return H((e,n)=>{let r=null,o=!1,i;r=e.subscribe(L(n,void 0,void 0,s=>{i=ee(t(s,ae(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));});}var of=class extends Le{constructor(e,n){super();}schedule(e,n=0){return this;}};var bu={setInterval(t,e,...n){let{delegate:r}=bu;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n);},clearInterval(t){let{delegate:e}=bu;return(e?.clearInterval||clearInterval)(t);},delegate:void 0};var Da=class extends of{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1;}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this;}requestAsyncId(e,n,r=0){return bu.setInterval(e.flush.bind(e,this),r);}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&bu.clearInterval(n);}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(e,n){let r=!1,o;try{this.work(e);}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o;}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Gi(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe();}}};var Tu={now(){return(Tu.delegate||Date).now();},delegate:void 0};
11var Ca=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n;}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n);}};Ca.now=Tu.now;var Ia=class extends Ca{constructor(e,n=Ca.now){super(e,n),this.actions=[],this._active=!1;}flush(e){let{actions:n}=this;if(this._active){n.push(e);return;}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r;}}};var Zn=new Ia(Da),hC=Zn;function wa(t,e=Zn){return H((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+t,l=e.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return;}a();}n.subscribe(L(r,u=>{i=u,s=e.now(),o||(o=e.schedule(c,t),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));});}function ke(t,e){return H((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(L(r,c=>{o?.unsubscribe();let u=0,l=i++;ee(t(c,l)).subscribe(o=L(r,d=>r.next(e?e(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));});}var _a={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=_a;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i);});return new Le(()=>n?.(o));},requestAnimationFrame(...t){let{delegate:e}=_a;return(e?.requestAnimationFrame||requestAnimationFrame)(...t);},cancelAnimationFrame(...t){let{delegate:e}=_a;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t);},delegate:void 0};var Ct=class extends Z{constructor(e){super(),this._value=e;}get value(){return this.getValue();}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n;}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r;}next(e){super.next(this._value=e);}};var Pe=class extends Z{constructor(e=1/0,n=1/0,r=Tu){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n);}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e);}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n;}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var sf=class extends Da{constructor(e,n){super(e,n),this.scheduler=e,this.work=n;}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=_a.requestAnimationFrame(()=>e.flush(void 0))));}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(_a.cancelAnimationFrame(n),e._scheduled=void 0);}};var af=class extends Ia{flush(e){this._active=!0;let n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o;}}};var TF=new af(sf);var Ye=new q(t=>t.complete());function Qt(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe();},r);if(t.add(i),!o)return i;}function cf(t,e=0){return H((n,r)=>{n.subscribe(L(r,o=>Qt(r,t,()=>r.next(o),e),()=>Qt(r,t,()=>r.complete(),e),o=>Qt(r,t,()=>r.error(o),e)));});}function uf(t,e=0){return H((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e));});}function mC(t,e){return ee(t).pipe(uf(e),cf(e));}function gC(t,e){return ee(t).pipe(uf(e),cf(e));}function yC(t,e){return new q(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule());});});}function vC(t,e){return new q(n=>{let r;return Qt(n,e,()=>{r=t[Qd](),Qt(n,e,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return;}i?n.complete():n.next(o);},0,!0);}),()=>V(r?.return)&&r.return();});}function lf(t,e){if(!t)throw new Error("Iterable cannot be null");return new q(n=>{Qt(n,e,()=>{let r=t[Symbol.asyncIterator]();Qt(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,!0);});});}function EC(t,e){return lf(ef(t),e);}function bC(t,e){if(t!=null){if(Kd(t))return mC(t,e);if(Ta(t))return yC(t,e);if(Yd(t))return gC(t,e);if(Xd(t))return lf(t,e);if(Jd(t))return vC(t,e);if(tf(t))return EC(t,e);}throw Zd(t);}function me(t,e){return e?bC(t,e):ee(t);}function N(...t){let e=Ar(t);return me(t,e);}function df(t){return!!t&&(t instanceof q||V(t.lift)&&V(t.subscribe));}var Qn=ya(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence";});function SF(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=!1,s;t.subscribe({next:a=>{s=a,i=!0;},error:o,complete:()=>{i?r(s):n?r(e.defaultValue):o(new Qn());}});});}function Jn(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=new Xn({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(e.defaultValue):o(new Qn());}});t.subscribe(i);});}function TC(t){return t instanceof Date&&!isNaN(t);}function ff(...t){let e=Ar(t),n=jo(t),{args:r,keys:o}=qd(t);if(r.length===0)return me([],e);let i=new q(DF(r,e,o?s=>rf(o,s):Vt));return n?i.pipe(Sa(n)):i;}function DF(t,e,n=Vt){return r=>{SC(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)SC(e,()=>{let u=me(t[c],e),l=!1;u.subscribe(L(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);};}function SC(t,e,n){t?Qt(n,t,e):e();}function DC(t,e,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete();},h=v=>u<r?m(v):c.push(v),m=v=>{i&&e.next(v),u++;let b=!1;ee(n(v,l++)).subscribe(L(e,T=>{o?.(T),i?h(T):e.next(T);},()=>
11{b=!0;},void 0,()=>{if(b)try{for(u--;c.length&&u<r;){let T=c.shift();s?Qt(e,s,()=>m(T)):m(T);}f();}catch(T){e.error(T);}}));};return t.subscribe(L(e,h,()=>{d=!0,f();})),()=>{a?.();};}function Ee(t,e,n=1/0){return V(e)?Ee((r,o)=>F((i,s)=>e(r,i,o,s))(ee(t(r,o))),n):(typeof e=="number"&&(n=e),H((r,o)=>DC(r,o,t,n)));}function xr(t=1/0){return Ee(Vt,t);}function CC(){return xr(1);}function Rr(...t){return CC()(me(t,Ar(t)));}function Su(t){return new q(e=>{ee(t()).subscribe(e);});}var CF=["addListener","removeListener"],IF=["addEventListener","removeEventListener"],wF=["on","off"];function Du(t,e,n,r){if(V(n)&&(r=n,n=void 0),r)return Du(t,e,n).pipe(Sa(r));let[o,i]=xF(t)?IF.map(s=>a=>t[s](e,a,n)):_F(t)?CF.map(IC(t,e)):AF(t)?wF.map(IC(t,e)):[];if(!o&&Ta(t))return Ee(s=>Du(s,e,n))(ee(t));if(!o)throw new TypeError("Invalid event target");return new q(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a);});}function IC(t,e){return n=>r=>t[n](e,r);}function _F(t){return V(t.addListener)&&V(t.removeListener);}function AF(t){return V(t.on)&&V(t.off);}function xF(t){return V(t.addEventListener)&&V(t.removeEventListener);}function er(t=0,e,n=hC){let r=-1;return e!=null&&(nf(e)?n=e:r=e),new q(o=>{let i=TC(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i);});}function RF(t=0,e=Zn){return t<0&&(t=0),er(t,t,e);}function MF(...t){let e=Ar(t),n=pC(t,1/0),r=t;return r.length?r.length===1?ee(r[0]):xr(n)(me(r,e)):Ye;}var NF=new q(mn);var{isArray:OF}=Array;function pf(t){return t.length===1&&OF(t[0])?t[0]:t;}function LF(...t){return t=pf(t),t.length===1?ee(t[0]):new q(kF(t));}function kF(t){return e=>{let n=[];for(let r=0;n&&!e.closed&&r<t.length;r++)n.push(ee(t[r]).subscribe(L(e,o=>{if(n){for(let i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null;}e.next(o);})));};}function PF(...t){let e=jo(t),n=pf(t);return n.length?new q(r=>{let o=n.map(()=>[]),i=n.map(()=>!1);r.add(()=>{o=i=null;});for(let s=0;!r.closed&&s<n.length;s++)ee(n[s]).subscribe(L(r,a=>{if(o[s].push(a),o.every(c=>c.length)){let c=o.map(u=>u.shift());r.next(e?e(...c):c),o.some((u,l)=>!u.length&&i[l])&&r.complete();}},()=>{i[s]=!0,!o[s].length&&r.complete();}));return()=>{o=i=null;};}):Ye;}function wC(t){return H((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};e.subscribe(L(n,u=>{r=!0,o=u,i||ee(t(u)).subscribe(i=L(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));});}function FF(t,e=Zn){return wC(()=>er(t,e));}function Cy(t){return H((e,n)=>{let r=[];return e.subscribe(L(n,o=>r.push(o),()=>{n.next(r),n.complete();})),ee(t).subscribe(L(n,()=>{let o=r;r=[],n.next(o);},mn)),()=>{r=null;};});}function _C(t,e,n,r,o){return(i,s)=>{let a=n,c=e,u=0;i.subscribe(L(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),r&&s.next(c);},o&&(()=>{a&&s.next(c),s.complete();})));};}function AC(t,e){return H(_C(t,e,arguments.length>=2,!1,!0));}var UF=(t,e)=>(t.push(e),t);function hf(){return H((t,e)=>{AC(UF,[])(t).subscribe(e);});}function tr(t,e){return V(e)?Ee(t,e,1):Ee(t,1);}function xC(t){return H((e,n)=>{let r=!1;e.subscribe(L(n,o=>{r=!0,n.next(o);},()=>{r||n.next(t),n.complete();}));});}function _n(t){return t<=0?()=>Ye:H((e,n)=>{let r=0;e.subscribe(L(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete());}));});}function RC(){return H((t,e)=>{t.subscribe(L(e,mn));});}function MC(t){return F(()=>t);}function Iy(t,e){return e?n=>Rr(e.pipe(_n(1),RC()),n.pipe(Iy(t))):Ee((n,r)=>ee(t(n,r)).pipe(_n(1),MC(n)));}function HF(t,e=Zn){let n=er(t,e);return Iy(()=>n);}function mf(t,e=Vt){return t=t??BF,H((n,r)=>{let o,i=!0;n.subscribe(L(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s));}));});}function BF(t,e){return t===e;}function NC(t=jF){return H((e,n)=>{let r=!1;e.subscribe(L(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(t())));});}function jF(){return new Qn();}function VF(...t){return e=>Rr(e,N(...t));}function Yi(t){return H((e,n)=>{try{e.subscribe(n);}finally{n.add(t);}});}function Re(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Te((o,i)=>t(o,i,r)):Vt,_n(1),n?xC(e):NC(()=>new Qn()));}function gf(t){return t<=0?()=>Ye:H((e,n)=>{let r=[];e.subscribe(L(n,o=>{r.push(o),t<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));});}function yf(){return H((t,e)=>{let n,r=!1;t.subscribe(L(e,o=>{let i=n;n=o,r&&e.next([i,o]),r=!0;}));});}function ho(t={}){let{connector:e=()=>new Z(),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0;},h=()=>{f(),s=c=void 0,l=d=!1;},m=()=>{let v=s;h(),v?.unsubscribe();};return H((v,b)=>{u++,!d&&!l&&f();let T=c=c??e();b.add(()=>{u--,u===0&&!d&&!l&&(a=wy(m,o));}),T.subscribe(b),!s&&u>0&&(s=new Xn({next:C=>T.next(C),error:C=>{d=!0,f(),a=wy(h,n,C),T.error(C);},complete:()=>{l=!0,f(),a=wy(h,r),T.complete();}}),ee(v).subscribe(s));})(i);};}function wy(t,e,...n){if(e===!0){t();return;}if(e===!1)return;let r=new Xn({next:()=>{r.unsubscribe(),t();}});return ee(e(...n)).subscribe(r);}function An(t,e,n){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:n}=t:r=t??1/0,ho({connector:()=>new Pe(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o});}function $F(t){return Te((e,n)=>t<=n);}function vf(...t){let e=Ar(t);return H((n,r)=>{(e?Rr(t,n,e):Rr(t,n)).subscribe(r);});}function Cu(t){return H((e,n)=>{ee(t).subscribe(L(n,()=>n.complete(),mn)),!n.closed&&e.subscribe(n);});}function vt(t,e,n){let r=V(t)||e||n?{next:t,error:e,complete:n}:t;return r?H((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(L(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;
11a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):Vt;}function OC(t,e){return H((n,r)=>{let{leading:o=!0,trailing:i=!1}=e??{},s=!1,a=null,c=null,u=!1,l=()=>{c?.unsubscribe(),c=null,i&&(h(),u&&r.complete());},d=()=>{c=null,u&&r.complete();},f=m=>c=ee(t(m)).subscribe(L(r,l,d)),h=()=>{if(s){s=!1;let m=a;a=null,r.next(m),!u&&f(m);}};n.subscribe(L(r,m=>{s=!0,a=m,!(c&&!c.closed)&&(o?h():f(m));},()=>{u=!0,!(i&&s&&c&&!c.closed)&&r.complete();}));});}function Ef(t,e=Zn,n){let r=er(t,e);return OC(()=>r,n);}function GF(...t){let e=jo(t);return H((n,r)=>{let o=t.length,i=new Array(o),s=t.map(()=>!1),a=!1;for(let c=0;c<o;c++)ee(t[c]).subscribe(L(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Vt))&&(s=null));},mn));n.subscribe(L(r,c=>{if(a){let u=[c,...i];r.next(e?e(...u):u);}}));});}var Ot=null,bf=!1,_y=1,zF=null,Fe=Symbol("SIGNAL");function O(t){let e=Ot;return Ot=t,e;}function Tf(){return Ot;}var mo={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function go(t){if(bf)throw new Error("");if(Ot===null)return;Ot.consumerOnSignalRead(t);let e=Ot.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=Ot.recomputing;if(r&&(n=e!==void 0?e.nextProducer:Ot.producers,n!==void 0&&n.producer===t)){Ot.producersTail=n,n.lastReadVersion=t.version;return;}let o=t.consumersTail;if(o!==void 0&&o.consumer===Ot&&(!r||WF(o,Ot)))return;let i=xa(Ot),s={producer:t,consumer:Ot,nextProducer:n,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};Ot.producersTail=s,e!==void 0?e.nextProducer=s:Ot.producers=s,i&&UC(t,s);}function LC(){_y++;}function Zi(t){if(!(xa(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===_y)){if(!t.producerMustRecompute(t)&&!Qi(t)){Aa(t);return;}t.producerRecomputeValue(t),Aa(t);}}function Ay(t){if(t.consumers===void 0)return;let e=bf;bf=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||kC(r);}}finally{bf=e;}}function xy(){return Ot?.consumerAllowSignalWrites!==!1;}function kC(t){t.dirty=!0,Ay(t),t.consumerMarkedDirty?.(t);}function Aa(t){t.dirty=!1,t.lastCleanEpoch=_y;}function Nr(t){return t&&PC(t),O(t);}function PC(t){t.producersTail=void 0,t.recomputing=!0;}function yo(t,e){O(e),t&&FC(t);}function FC(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(xa(t))do n=Ry(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0;}}function Qi(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(Zi(n),r!==n.version))return!0;}return!1;}function vo(t){if(xa(t)){let e=t.producers;for(;e!==void 0;)e=Ry(e);}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0;}function UC(t,e){let n=t.consumersTail,r=xa(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)UC(o.producer,o);}function Ry(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:e.consumersTail=o,o!==void 0)
11o.nextConsumer=r;else if(e.consumers=r,!xa(e)){let i=e.producers;for(;i!==void 0;)i=Ry(i);}return n;}function xa(t){return t.consumerIsAlwaysLive||t.consumers!==void 0;}function Iu(t){zF?.(t);}function WF(t,e){let n=e.producersTail;if(n!==void 0){let r=e.producers;do{if(r===t)return!0;if(r===n)break;r=r.nextProducer;}while(r!==void 0);}return!1;}function wu(t,e){return Object.is(t,e);}function _u(t,e){let n=Object.create(qF);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(Zi(n),go(n),n.value===Mr)throw n.error;return n.value;};return r[Fe]=n,Iu(n),r;}var Ki=Symbol("UNSET"),Xi=Symbol("COMPUTING"),Mr=Symbol("ERRORED"),qF=$(S({},mo),{value:Ki,dirty:!0,error:null,equal:wu,kind:"computed",producerMustRecompute(t){return t.value===Ki||t.value===Xi;},producerRecomputeValue(t){if(t.value===Xi)throw new Error("");let e=t.value;t.value=Xi;let n=Nr(t),r,o=!1;try{r=t.computation(),O(null),o=e!==Ki&&e!==Mr&&r!==Mr&&t.equal(e,r);}catch(i){r=Mr,t.error=i;}finally{yo(t,n);}if(o){t.value=e;return;}t.value=r,t.version++;}});function YF(){throw new Error();}var HC=YF;function BC(t){HC(t);}function My(t){HC=t;}var KF=null;function Ny(t,e){let n=Object.create(Au);n.value=t,e!==void 0&&(n.equal=e);let r=()=>jC(n);return r[Fe]=n,Iu(n),[r,s=>Vo(n,s),s=>Sf(n,s)];}function jC(t){return go(t),t.value;}function Vo(t,e){xy()||BC(t),t.equal(t.value,e)||(t.value=e,XF(t));}function Sf(t,e){xy()||BC(t),Vo(t,e(t.value));}var Au=$(S({},mo),{equal:wu,value:void 0,kind:"signal"});function XF(t){t.version++,LC(),Ay(t),KF?.(t);}var Oy=$(S({},mo),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Ly(t){if(t.dirty=!1,t.version>0&&!Qi(t))return;t.version++;let e=Nr(t);try{t.cleanup(),t.fn();}finally{yo(t,e);}}var ky;function Df(){return ky;}function Or(t){let e=ky;return ky=t,e;}var VC=Symbol("NotFound");function Ra(t){return t===VC||t?.name==="\u0275NotFound";}function Py(t,e,n){let r=Object.create(ZF);r.source=t,r.computation=e,n!=null&&(r.equal=n);let i=()=>{if(Zi(r),go(r),r.value===Mr)throw r.error;return r.value;};return i[Fe]=r,Iu(r),i;}function $C(t,e){Zi(t),Vo(t,e),Aa(t);}function GC(t,e){if(Zi(t),t.value===Mr)throw t.error;Sf(t,e),Aa(t);}var ZF=$(S({},mo),{value:Ki,dirty:!0,error:null,equal:wu,kind:"linkedSignal",producerMustRecompute(t){return t.value===Ki||t.value===Xi;},producerRecomputeValue(t){if(t.value===Xi)throw new Error("");let e=t.value;t.value=Xi;let n=Nr(t),r,o=!1;try{let i=t.source(),s=e!==Ki&&e!==Mr,a=s?{source:t.sourceValue,value:e}:void 0;r=t.computation(i,a),t.sourceValue=i,O(null),o=s&&r!==Mr&&t.equal(e,r);}catch(i){r=Mr,t.error=i;}finally{yo(t,n);}if(o){t.value=e;return;}t.value=r,t.version++;}});function zC(t){let e=O(null);try{return t();}finally{O(e);}}var Rf="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",I=class extends Error{code;constructor(e,n){super(Rn(e,n)),this.code=e;}};function QF(t){return`NG0${Math.abs(t)}`;}function Rn(t,e){return`${QF(t)}${e?": "+e:""}`;}var Ke=globalThis;function ge(t){for(let e in t)if(t[e]===ge)return e;throw Error("");}function XC(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n]);}function ku(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(ku).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(` 12`);return r>=0?n.slice(0,r):n;}function Mf(t,e){return t?e?`${t} ${e}`:t:e||"";}var JF=ge({__forward_ref__:ge});function Nf(t){return t.__forward_ref__=Nf,t;}function lt(t){return Ky(t)?t():t;}function Ky(t){return typeof t=="function"&&t.hasOwnProperty(JF)&&t.__forward_ref__===Nf;}function ZC(t,e,n){t!=e&&QC(n,t,e,"==");}function QC(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(r==null?"":` [Expected=> ${n} ${r} ${e} <=Actual]`));}function E(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0};}function Jt(t){return{providers:t.providers||[],imports:t.imports||[]};}function Pu(t){return e1(t,Of);}function Xy(t){return Pu(t)!==null;}function e1(t,e){return t.hasOwnProperty(e)&&t[e]||null;}function t1(t){let e=t?.[Of]??null;return e||null;}function Uy(t){return t&&t.hasOwnProperty(If)?t[If]:null;}var Of=ge({ɵprov:ge}),If=ge({ɵinj:ge}),_=class{_desc;ngMetadataName="InjectionToken";ɵprov;constructor(e,n){this._desc=e,this.ɵprov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.ɵprov=E({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this;}toString(){return`InjectionToken ${this._desc}`;}};function Zy(t){return t&&!!t.ɵproviders;}var Qy=ge({ɵcmp:ge}),Jy=ge({ɵdir:ge}),ev=ge({ɵpipe:ge}),tv=ge({ɵmod:ge}),Ru=ge({ɵfac:ge}),os=ge({__NG_ELEMENT_ID__:ge}),WC=ge({__NG_ENV_ID__:ge});function nv(t){return Lf(t,"@NgModule"),t[tv]||null;}function rr(t){return Lf(t,"@Component"),t[Qy]||null;}function Fu(t){return Lf(t,"@Directive"),t[Jy]||null;}function rv(t){return Lf(t,"@Pipe"),t[ev]||null;}function Lf(t,e){if(t==null)throw new I(-919,!1);}function kt(t){return typeof t=="string"?t:t==null?"":String(t);}var JC=ge({ngErrorCode:ge}),n1=ge({ngErrorMessage:ge}),r1=ge({ngTokenPath:ge});function ov(t,e){return eI("",-200,e);}function kf(t,e){throw new I(-201,!1);}function eI(t,e,n){let r=new I(e,t);return r[JC]=e,r[n1]=t,n&&(r[r1]=n),r;}function o1(t){return t[JC];}var Hy;function tI(){return Hy;}function $t(t){let e=Hy;return Hy=t,e;}function iv(t,e,n){let r=Pu(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;kf(t,"");}var i1={},es=i1,s1="__NG_DI_FLAG__",By=class{injector;constructor(e){this.injector=e;}retrieve(e,n){let r=ts(n)||0;try{return this.injector.get(e,r&8?null:es,r);}catch(o){if(Ra(o))return o;throw o;}}};function a1(t,e=0){let n=Df();if(n===void 0)throw new I(-203,!1);if(n===null)return iv(t,void 0,e);{let r=c1(e),o=n.retrieve(t,r);
12if(Ra(o)){if(r.optional)return null;throw o;}return o;}}function M(t,e=0){return(tI()||a1)(lt(t),e);}function g(t,e){return M(t,ts(e));}function ts(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4);}function c1(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)};}function jy(t){let e=[];for(let n=0;n<t.length;n++){let r=lt(t[n]);if(Array.isArray(r)){if(r.length===0)throw new I(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=u1(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}e.push(M(o,i));}else e.push(M(r));}return e;}function u1(t){return t[s1];}function $o(t,e){let n=t.hasOwnProperty(Ru);return n?t[Ru]:null;}function nI(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1;}return!0;}function rI(t){return t.flat(Number.POSITIVE_INFINITY);}function Pf(t,e){t.forEach(n=>Array.isArray(n)?Pf(n,e):e(n));}function sv(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n);}function Uu(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0];}function oI(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n;}function iI(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--;}t[e]=n,t[e+1]=r;}}function Hu(t,e,n){let r=Na(t,e);return r>=0?t[r|1]=n:(r=~r,iI(t,r,e,n)),r;}function Ff(t,e){let n=Na(t,e);if(n>=0)return t[n|1];}function Na(t,e){return l1(t,e,1);}function l1(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1;}return~(o<<n);}var or={},It=[],bo=new _(""),av=new _("",-1),cv=new _(""),Mu=class{get(e,n=es){if(n===es){let o=eI("",-201);throw o.name="\u0275NotFound",o;}return n;}};function To(t){return{ɵproviders:t};}function sI(...t){return{ɵproviders:Uf(!0,t),ɵfromNgModule:!0};}function Uf(t,...e){let n=[],r=new Set(),o,i=s=>{n.push(s);};return Pf(e,s=>{let a=s;wf(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&aI(o,i),n;}function aI(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];uv(o,i=>{e(i,r);});}}function wf(t,e,n,r){if(t=lt(t),!t)return!1;let o=null,i=Uy(t),s=!i&&rr(t);if(!i&&!s){let c=t.ngModule;if(i=Uy(c),i)o=c;else return!1;}else{if(s&&!s.standalone)return!1;o=t;}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)wf(u,e,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Pf(i.imports,l=>{wf(l,e,n,r)&&(u||=[],u.push(l));}),u!==void 0&&aI(u,e);}if(!a){let u=$o(o)||(()=>new o());e({provide:o,useFactory:u,deps:It},o),e({provide:cv,useValue:o,multi:!0},o),e({provide:bo,useValue:()=>M(o),multi:!0},o);}let c=i.providers;if(c!=null&&!a){let u=t;uv(c,l=>{e(l,u);});}}else return!1;return o!==t&&t.providers!==void 0;}function uv(t,e){for(let n of t)Zy(n)&&(n=n.ɵproviders),Array.isArray(n)?uv(n,e):e(n);}var d1=ge({provide:String,useValue:ge});function cI(t){return t!==null&&typeof t=="object"&&d1 in t;}function f1(t){return!!(t&&t.useExisting);}function p1(t){return!!(t&&t.useFactory);}function ns(t){return typeof t=="function";}function uI(t){return!!t.useClass;}var Bu=new _(""),Cf={},qC={},Fy;function Oa(){return Fy===void 0&&(Fy=new Mu()),Fy;}var Ie=class{},rs=class extends Ie{parent;source;scopes;records=new Map();_ngOnDestroyHooks=new Set();_onDestroyHooks=[];get destroyed(){return this._destroyed;}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,$y(e,s=>this.processProvider(s)),this.records.set(av,Ma(void 0,this)),o.has("environment")&&this.records.set(Ie,Ma(void 0,this));let i=this.records.get(Bu);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cv,It,{self:!0}));}retrieve(e,n){let r=ts(n)||0;try{return this.get(e,es,r);}catch(o){if(Ra(o))return o;throw o;}}destroy(){xu(this),this._destroyed=!0;let e=O(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),O(e);}}onDestroy(e){return xu(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e);}runInContext(e){xu(this);let n=Or(this),r=$t(void 0),o;try{return e();}finally{Or(n),$t(r);}}get(e,n=es,r){if(xu(this),e.hasOwnProperty(WC))return e[WC](this);let o=ts(r),i,s=Or(this),a=$t(void 0);try{if(!(o&4)){let u=this.records.get(e);
12if(u===void 0){let l=v1(e)&&Pu(e);l&&this.injectableDefInScope(l)?u=Ma(Vy(e),Cf):u=null,this.records.set(e,u);}if(u!=null)return this.hydrate(e,u,o);}let c=o&2?Oa():this.parent;return n=o&8&&n===es?null:n,c.get(e,n);}catch(c){let u=o1(c);throw u===-200||u===-201?new I(u,null):c;}finally{$t(a),Or(s);}}resolveInjectorInitializers(){let e=O(null),n=Or(this),r=$t(void 0),o;try{let i=this.get(bo,It,{self:!0});for(let s of i)s();}finally{Or(n),$t(r),O(e);}}toString(){return"R3Injector[...]";}processProvider(e){e=lt(e);let n=ns(e)?e:lt(e&&e.provide),r=m1(e);if(!ns(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Ma(void 0,Cf,!0),o.factory=()=>jy(o.multi),this.records.set(n,o)),n=e,o.multi.push(e);}this.records.set(n,r);}hydrate(e,n,r){let o=O(null);try{if(n.value===qC)throw ov("");return n.value===Cf&&(n.value=qC,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&y1(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value;}finally{O(o);}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=lt(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n);}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Vy(t){let e=Pu(t),n=e!==null?e.factory:$o(t);if(n!==null)return n;if(t instanceof _)throw new I(-204,!1);if(t instanceof Function)return h1(t);throw new I(-204,!1);}function h1(t){if(t.length>0)throw new I(-204,!1);let n=t1(t);return n!==null?()=>n.factory(t):()=>new t();}function m1(t){if(cI(t))return Ma(void 0,t.useValue);{let e=lv(t);return Ma(e,Cf);}}function lv(t,e,n){let r;if(ns(t)){let o=lt(t);return $o(o)||Vy(o);}else if(cI(t))r=()=>lt(t.useValue);else if(p1(t))r=()=>t.useFactory(...jy(t.deps||[]));else if(f1(t))r=(o,i)=>M(lt(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=lt(t&&(t.useClass||t.provide));if(g1(t))r=()=>new o(...jy(t.deps));else return $o(o)||Vy(o);}return r;}function xu(t){if(t.destroyed)throw new I(-205,!1);}function Ma(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0};}function g1(t){return!!t.deps;}function y1(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function";}function v1(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken";}function $y(t,e){for(let n of t)Array.isArray(n)?$y(n,e):n&&Zy(n)?$y(n.ɵproviders,e):e(n);}function dt(t,e){let n;t instanceof rs?(xu(t),n=t):n=new By(t);let r,o=Or(n),i=$t(void 0);try{return e();}finally{Or(o),$t(i);}}function dv(){return tI()!==void 0||Df()!=null;}var ir=0,A=1,G=2,rt=3,Mn=4,Pt=5,is=6,La=7,Be=8,Xe=9,sr=10,ne=11,ka=12,fv=13,ss=14,wt=15,Wo=16,as=17,Lr=18,kr=19,pv=20,Eo=21,Hf=22,Go=23,gn=24,cs=25,Pr=26,oe=27,lI=1,qo=6,Yo=7,ju=8,us=9,Ue=10;function So(t){return Array.isArray(t)&&typeof t[lI]=="object";}function ar(t){return Array.isArray(t)&&t[lI]===!0;}function hv(t){return(t.flags&4)!==0;}function Do(t){return t.componentOffset>-1;}function Pa(t){return(t.flags&1)===1;}function cr(t){return!!t.template;}function Fa(t){return(t[G]&512)!==0;}function Fr(t){return(t[G]&256)===256;}var mv="svg",dI="math";function en(t){for(;Array.isArray(t);)t=t[ir];return t;}function Ua(t,e){return en(e[t]);}function yn(t,e){return en(e[t.index]);}function Ha(t,e){return t.data[e];}function Ba(t,e){return t[e];}function Vu(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r;}function Nn(t,e){let n=e[t];return So(n)?n:n[ir];}function fI(t){return(t[G]&4)===4;}function Bf(t){return(t[G]&128)===128;}function pI(t){return ar(t[rt]);}function tn(t,e){return e==null?null:t[e];}function gv(t){t[as]=0;}function yv(t){t[G]&1024||(t[G]|=1024,Bf(t)&&ls(t));}function vv(t,e){for(;t>0;)e=e[ss],t--;return e;}function $u(t){return!!(t[G]&9216||t[gn]?.dirty);}function jf(t){t[sr].changeDetectionScheduler?.notify(8),t[G]&64&&(t[G]|=1024),$u(t)&&ls(t);}function ls(t){t[sr].changeDetectionScheduler?.notify(0);let e=zo(t);for(;e!==null&&!(e[G]&8192||(e[G]|=8192,!Bf(e)));)e=zo(e);}function Gu(t,e){if(Fr(t))throw new I(911,!1);t[Eo]===null&&(t[Eo]=[]),t[Eo].push(e);}function Vf(t,e){if(t[Eo]===null)return;let n=t[Eo].indexOf(e);n!==-1&&t[Eo].splice(n,1);}function zo(t){let e=t[rt];return ar(e)?e[rt]:e;}function Ev(t){return t[La]??=[];}function bv(t){return t.cleanup??=[];}function hI(t,e,n,r){let o=Ev(e);o.push(n),t.firstCreatePass&&bv(t).push(r,o.length-1);}var Q={lFrame:II(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Gy=!1;function mI(){return Q.lFrame.elementDepthCount;}function gI(){Q.lFrame.elementDepthCount++;}function Tv(){Q.lFrame.elementDepthCount--;}function $f(){return Q.bindingsEnabled;}function Sv(){return Q.skipHydrationRootTNode!==null;}function Dv(t){return Q.skipHydrationRootTNode===t;}function Cv(){Q.skipHydrationRootTNode=null;}function w(){return Q.lFrame.lView;}function le(){return Q.lFrame.tView;}function yI(t){return Q.lFrame.contextLView=t,t[Be];}function vI(t){return Q.lFrame.contextLView=null,t;}function Me(){let t=Iv();for(;t!==null&&t.type===64;)t=t.parent;return t;}function Iv(){return Q.lFrame.currentTNode;}function ja(){let t=Q.lFrame,e=t.currentTNode;return t.isParent?e:e.parent;}function Ur(t,e){let n=Q.lFrame;n.currentTNode=t,n.isParent=e;}function wv(){return Q.lFrame.isParent;}function _v(){Q.lFrame.isParent=!1;}function Av(){return Q.lFrame.contextLView;}function xv(){return Gy;}function Nu(t){let e=Gy;return Gy=t,e;}function On(){let t=Q.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e;}function zu(){return Q.lFrame.bindingIndex;}function EI(t){return Q.lFrame.bindingIndex=t;}function ur(){return Q.lFrame.bindingIndex++;}function Va(t){let e=Q.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n;}function bI(){return Q.lFrame.inI18n;}function Rv(t){Q.lFrame.inI18n=t;}function TI(t,e){let n=Q.lFrame;n.bindingIndex=n.bindingRootIndex=t,Gf(e);}function SI(){return Q.lFrame.currentDirectiveIndex;}function Gf(t){Q.lFrame.currentDirectiveIndex=t;}function DI(t){let e=Q.lFrame.currentDirectiveIndex;return e===-1?null:t[e];}function zf(){return Q.lFrame.currentQueryIndex;}function Wu(t){Q.lFrame.currentQueryIndex=t;}function E1(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[Pt]:null;}function Mv(t,e,n){if(n&4){let o=e,i=t;
12for(;o=o.parent,o===null&&!(n&1);)if(o=E1(i),o===null||(i=i[ss],o.type&10))break;if(o===null)return!1;e=o,t=i;}let r=Q.lFrame=CI();return r.currentTNode=e,r.lView=t,!0;}function Wf(t){let e=CI(),n=t[A];Q.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1;}function CI(){let t=Q.lFrame,e=t===null?null:t.child;return e===null?II(t):e;}function II(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e;}function wI(){let t=Q.lFrame;return Q.lFrame=t.parent,t.currentTNode=null,t.lView=null,t;}var Nv=wI;function qf(){let t=wI();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0;}function _I(t){return(Q.lFrame.contextLView=vv(t,Q.lFrame.contextLView))[Be];}function vn(){return Q.lFrame.selectedIndex;}function Ko(t){Q.lFrame.selectedIndex=t;}function ds(){let t=Q.lFrame;return Ha(t.tView,t.selectedIndex);}function AI(){Q.lFrame.currentNamespace=mv;}function xI(){b1();}function b1(){Q.lFrame.currentNamespace=null;}function RI(){return Q.lFrame.currentNamespace;}var MI=!0;function qu(){return MI;}function $a(t){MI=t;}function zy(t,e=null,n=null,r){let o=Ov(t,e,n,r);return o.resolveInjectorInitializers(),o;}function Ov(t,e=null,n=null,r,o=new Set()){let i=[n||It,sI(t)],s;return new rs(i,e||Oa(),s||null,o);}var Ji=class Ji{static create(e,n){if(Array.isArray(e))return zy({name:""},n,e,"");{let r=e.name??"";return zy({name:r},e.parent,e.providers,r);}}};p(Ji,"THROW_IF_NOT_FOUND",es),p(Ji,"NULL",new Mu()),p(Ji,"\u0275prov",E({token:Ji,providedIn:"any",factory:()=>M(av)})),p(Ji,"__NG_ELEMENT_ID__",-1);var ot=Ji,we=new _(""),Gt=(()=>{class t{}return p(t,"__NG_ELEMENT_ID__",T1),p(t,"__NG_ENV_ID__",n=>n),t;})(),_f=class extends Gt{_lView;constructor(e){super(),this._lView=e;}get destroyed(){return Fr(this._lView);}onDestroy(e){let n=this._lView;return Gu(n,e),()=>Vf(n,e);}};function T1(){return new _f(w());}var Lv=!1,NI=new _(""),Hr=(()=>{let e=class e{taskId=0;pendingTasks=new Set();destroyed=!1;pendingTask=new Ct(!1);debugTaskTracker=g(NI,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value;}get hasPendingTasksObservable(){return this.destroyed?new q(r=>{r.next(!1),r.complete();}):this.pendingTask;}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),this.debugTaskTracker?.add(r),r;}has(r){return this.pendingTasks.has(r);}remove(r){this.pendingTasks.delete(r),this.debugTaskTracker?.remove(r),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe();}};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:()=>new e()}));let t=e;return t;})(),Wy=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,dv()&&(this.destroyRef=g(Gt,{optional:!0})??void 0,this.pendingTasks=g(Hr,{optional:!0})??void 0);}emit(e){let n=O(null);try{super.next(e);}finally{O(n);}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof Le&&e.add(a),a;}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});};}},Lt=Wy;function Af(...t){}function kv(t){let e,n;function r(){t=Af;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e);}catch(o){}}return e=setTimeout(()=>{t(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r();})),()=>r();}function OI(t){return queueMicrotask(()=>t()),()=>{t=Af;};}var Pv="isAngularZone",Ou=Pv+"_ID",S1=0,ue=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Lt(!1);onMicrotaskEmpty=new Lt(!1);onStable=new Lt(!1);
12onError=new Lt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Lv}=e;if(typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec())),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,I1(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Pv)===!0;}static assertInAngularZone(){if(!t.isInAngularZone())throw new I(909,!1);}static assertNotInAngularZone(){if(t.isInAngularZone())throw new I(909,!1);}run(e,n,r){return this._inner.run(e,n,r);}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,D1,Af,Af);try{return i.runTask(s,n,r);}finally{i.cancelTask(s);}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r);}runOutsideAngular(e){return this._outer.run(e);}},D1={};function Fv(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null);}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null));}finally{t.isStable=!0;}}}function C1(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){kv(()=>{t.callbackScheduled=!1,qy(t),t.isCheckStableRunning=!0,Fv(t),t.isCheckStableRunning=!1;});}t.scheduleInRootZone?Zone.root.run(()=>{e();}):t._outer.run(()=>{e();}),qy(t);}function I1(t){let e=()=>{C1(t);},n=S1++;t._inner=t._inner.fork({name:"angular",properties:{[Pv]:!0,[Ou]:n,[Ou+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(w1(c))return r.invokeTask(i,s,a,c);try{return YC(t),r.invokeTask(i,s,a,c);}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),KC(t);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return YC(t),r.invoke(i,s,a,c,u);}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_1(c)&&e(),KC(t);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,qy(t),Fv(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)});}function qy(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1;}function YC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null));}function KC(t){t._nesting--,Fv(t);}var Lu=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Lt();onMicrotaskEmpty=new Lt();onStable=new Lt();onError=new Lt();run(e,n,r){return e.apply(n,r);}runGuarded(e,n,r){return e.apply(n,r);}runOutsideAngular(e){return e();}runTask(e,n,r,o){return e.apply(n,r);}};function w1(t){return LI(t,"__ignore_ng_zone__");}function _1(t){return LI(t,"__scheduler_tick__");}function LI(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0;}var xn=class{_console=console;handleError(e){this._console.error("ERROR",e);}},nn=new _("",{factory:()=>{let t=g(ue),e=g(Ie),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r;}):(n??=e.get(xn),n.handleError(r));});};}}),kI={provide:bo,useValue:()=>{let t=g(xn,{optional:!0});},multi:!0};function je(t,e){let[n,r,o]=Ny(t,e?.equal),i=n,s=i[Fe];return i.set=r,i.update=o,i.asReadonly=Yu.bind(i),i;}function Yu(){let t=this[Fe];if(t.readonlyFn===void 0){let e=()=>this();e[Fe]=t,t.readonlyFn=e;}return t.readonlyFn;}var Ga=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r;}}return p(t,"__NG_ELEMENT_ID__",A1),t;})();function A1(){return new Ga(w(),Me());}var nr=class{},za=new _("",{factory:()=>!0});var Yf=new _(""),fs=(()=>{let e=class e{internalPendingTasks=g(Hr);scheduler=g(nr);errorHandler=g(nn);add(){let r=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(r)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(r));};}run(r){let o=this.add();r().catch(this.errorHandler).finally(o);}};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:()=>new e()}));let t=e;return t;})(),Kf=(()=>{let e=class e{};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:()=>new Yy()}));let t=e;return t;})(),Yy=class{dirtyEffectCount=0;queues=new Map();add(e){this.enqueue(e),this.schedule(e);}schedule(e){e.dirty&&this.dirtyEffectCount++;}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--);}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set());let r=this.queues.get(n);r.has(e)||r.add(e);}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0);}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n;}},xf=class{[Fe];constructor(e){this[Fe]=e;}destroy(){this[Fe].destroy();}};function PI(t,e){let n=e?.injector??g(ot),r=e?.manualCleanup!==!0?n.get(Gt):null,o,i=n.get(Ga,null,{optional:!0}),s=n.get(nr);return i!==null?(o=M1(i.view,s,t),r instanceof _f&&r._lView===i.view&&(r=null)):o=N1(t,n.get(Kf),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new xf(o);}var FI=$(S({},Oy),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=Nu(!1);try{Ly(this);}finally{Nu(t);}},cleanup(){if(!this.cleanupFns?.length)return;let t=O(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],O(t);}}}),x1=$(S({},FI),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(vo(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this);}}),R1=$(S({},FI),{consumerMarkedDirty(){this.view[G]|=8192,ls(this.view),this.notifier.notify(13);},destroy(){if(vo(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[Go]?.delete(this);}});function M1(t,e,n){let r=Object.create(R1);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=UI(r,n),t[Go]??=new Set(),t[Go].add(r),r.consumerMarkedDirty(r),r;}function N1(t,e,n){let r=Object.create(x1);
12return r.fn=UI(r,t),r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r;}function UI(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n));};}function pl(t){return{toString:t}.toString();}function H1(t){return typeof t=="function";}function Fw(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r;}var up=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange;}},ni=(()=>{let t=()=>Uw;return t.ngInherit=!0,t;})();function Uw(t){return t.type.prototype.ngOnChanges&&(t.setInput=j1),B1;}function B1(){let t=Bw(this),e=t?.current;if(e){let n=t.previous;if(n===or)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e);}}function j1(t,e,n,r,o){let i=this.declaredInputs[r],s=Bw(t)||V1(t,{previous:or,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new up(u&&u.currentValue,n,c===or),Fw(t,e,o,n);}var Hw="__ngSimpleChanges__";function Bw(t){return t[Hw]||null;}function V1(t,e){return t[Hw]=e;}var HI=[];var fe=function(t,e=null,n){for(let r=0;r<HI.length;r++){let o=HI[r];o(t,e,n);}},ie=function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t;}(ie||{});function $1(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=Uw(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s);}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i));}function jw(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),c&&(t.viewHooks??=[]).push(-n,c),u&&((t.viewHooks??=[]).push(n,u),(t.viewCheckHooks??=[]).push(n,u)),l!=null&&(t.destroyHooks??=[]).push(n,l);}}function tp(t,e,n){Vw(t,e,3,n);}function np(t,e,n,r){(t[G]&3)===n&&Vw(t,e,n,r);}function Uv(t,e){let n=t[G];(n&3)===e&&(n&=16383,n+=1,t[G]=n);}function Vw(t,e,n,r){let o=r!==void 0?t[as]&65535:0,i=r??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],r!=null&&a>=r)break;}else e[c]<0&&(t[as]+=65536),(a<i||i==-1)&&(G1(t,n,e,c),t[as]=(t[as]&4294901760)+c+2),c++;}function BI(t,e){fe(ie.LifecycleHookStart,t,e);let n=O(null);try{e.call(t);}finally{O(n),fe(ie.LifecycleHookEnd,t,e);}}function G1(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[G]>>14<t[as]>>16&&(t[G]&3)===e&&(t[G]+=16384,BI(a,i)):BI(a,i);}var qa=-1,ys=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,o){this.factory=e,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function z1(t){return(t.flags&8)!==0;}function W1(t){return(t.flags&16)!==0;}function q1(t,e,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,i);}else{let i=o,s=n[++r];Y1(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++;}}return r;}function $w(t){return t===3||t===4||t===6;}function Y1(t){return t.charCodeAt(0)===64;}function Xa(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?jI(t,n,o,null,e[++r]):jI(t,n,o,null,
12null));}}return t;}function jI(t,e,n,r,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break;}else if(a>e){s=i-1;break;}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===n){o!==null&&(t[i+1]=o);return;}i++,o!==null&&i++;}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),o!==null&&t.splice(i++,0,o);}function Gw(t){return t!==qa;}function lp(t){return t&32767;}function K1(t){return t>>16;}function dp(t,e){let n=K1(t),r=e;for(;n>0;)r=r[ss],n--;return r;}var Qv=!0;function fp(t){let e=Qv;return Qv=t,e;}var X1=256,zw=X1-1,Ww=5,Z1=0,Br={};function Q1(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(os)&&(r=n[os]),r==null&&(r=n[os]=Z1++);let o=r&zw,i=1<<o;e.data[t+(o>>Ww)]|=i;}function pp(t,e){let n=qw(t,e);if(n!==-1)return n;let r=e[A];r.firstCreatePass&&(t.injectorIndex=e.length,Hv(r.data,t),Hv(e,null),Hv(r.blueprint,null));let o=VE(t,e),i=t.injectorIndex;if(Gw(o)){let s=lp(o),a=dp(o,e),c=a[A].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u];}return e[i+8]=o,i;}function Hv(t,e){t.push(0,0,0,0,0,0,0,0,e);}function qw(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex;}function VE(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=Qw(o),r===null)return qa;if(n++,o=o[ss],r.injectorIndex!==-1)return r.injectorIndex|n<<16;}return qa;}function Jv(t,e,n){Q1(t,e,n);}function J1(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if($w(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===e)return n[o+1];o=o+2;}}}return null;}function Yw(t,e,n){if(n&8||t!==void 0)return t;kf(e,"NodeInjector");}function Kw(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[Xe],i=$t(void 0);try{return o?o.get(e,r,n&8):iv(e,r,n&8);}finally{$t(i);}}return Yw(r,e,n);}function Xw(t,e,n,r=0,o){if(t!==null){if(e[G]&2048&&!(r&2)){let s=rU(t,e,n,r,Br);if(s!==Br)return s;}let i=Zw(t,e,n,r,Br);if(i!==Br)return i;}return Kw(e,n,r,o);}function Zw(t,e,n,r,o){let i=tU(n);if(typeof i=="function"){if(!Mv(e,t,r))return r&1?Yw(o,n,r):Kw(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))kf(n);else return s;}finally{Nv();}}else if(typeof i=="number"){let s=null,a=qw(t,e),c=qa,u=r&1?e[wt][Pt]:null;for((a===-1||r&4)&&(c=a===-1?VE(t,e):e[a+8],c===qa||!$I(r,!1)?a=-1:(s=e[A],a=lp(c),e=dp(c,e)));a!==-1;){let l=e[A];if(VI(i,a,l.data)){let d=eU(a,e,n,s,r,u);if(d!==Br)return d;}c=e[a+8],c!==qa&&$I(r,e[A].data[a+8]===u)&&VI(i,a,e)?(s=l,a=lp(c),e=dp(c,e)):a=-1;}}return o;}function eU(t,e,n,r,o,i){let s=e[A],a=s.data[t+8],c=r==null?Do(a)&&Qv:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=rp(a,s,n,c,u);return l!==null?rl(e,s,l,a,o):Br;}function rp(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,u=t.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let h=d;h<f;h++){let m=s[h];if(h<c&&n===m||h>=c&&m.type===n)return h;}if(o){let h=s[c];if(h&&cr(h)&&h.type===n)return c;}return null;}function rl(t,e,n,r,o){let i=t[n],s=e.data;if(i instanceof ys){let a=i;if(a.resolving)throw ov("");let c=fp(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?$t(a.injectImpl):null,f=Mv(t,r,0);try{i=t[n]=a.factory(void 0,o,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&$1(n,s[n],e);}finally{d!==null&&$t(d),fp(c),a.resolving=!1,Nv();}}return i;}function tU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(os)?t[os]:void 0;return typeof e=="number"?e>=0?e&zw:nU:e;}function VI(t,e,n){let r=1<<t;return!!(n[e+(t>>Ww)]&r);}function $I(t,e){return!(t&2)&&!(t&1&&e);}var hs=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n;}get(e,n,r){return Xw(this._tNode,this._lView,e,ts(r),n);}};function nU(){return new hs(Me(),w());}function ri(t){return pl(()=>{let e=t.prototype.constructor,n=e[Ru]||eE(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[Ru]||eE(o);if(i&&i!==n)return i;
12o=Object.getPrototypeOf(o);}return i=>new i();});}function eE(t){return Ky(t)?()=>{let e=eE(lt(t));return e&&e();}:$o(t);}function rU(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[G]&2048&&!Fa(s);){let a=Zw(i,s,n,r|2,Br);if(a!==Br)return a;let c=i.parent;if(!c){let u=s[pv];if(u){let l=u.get(n,Br,r&-5);if(l!==Br)return l;}c=Qw(s),s=s[ss];}i=c;}return o;}function Qw(t){let e=t[A],n=e.type;return n===2?e.declTNode:n===1?t[Pt]:null;}function hl(t){return J1(Me(),t);}function oU(){return tc(Me(),w());}function tc(t,e){return new Ln(yn(t,e));}var Ln=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n;}}return p(t,"__NG_ELEMENT_ID__",oU),t;})();function Jw(t){return t instanceof Ln?t.nativeElement:t;}function iU(){return this._results[Symbol.iterator]();}var hp=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z();}constructor(e=!1){this._emitDistinctChangesOnly=e;}get(e){return this._results[e];}map(e){return this._results.map(e);}filter(e){return this._results.filter(e);}find(e){return this._results.find(e);}reduce(e,n){return this._results.reduce(e,n);}forEach(e){this._results.forEach(e);}some(e){return this._results.some(e);}toArray(){return this._results.slice();}toString(){return this._results.toString();}reset(e,n){this.dirty=!1;let r=rI(e);(this._changesDetected=!nI(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(e){this._onDirty=e;}setDirty(){this.dirty=!0,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=iU;};function e0(t){return(t.flags&128)===128;}var $E=function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t;}($E||{}),t0=new Map(),sU=0;function aU(){return sU++;}function cU(t){t0.set(t[kr],t);}function tE(t){t0.delete(t[kr]);}var GI="__ngContext__";function Qo(t,e){So(e)?(t[GI]=e[kr],cU(e)):t[GI]=e;}function n0(t){return o0(t[ka]);}function r0(t){return o0(t[Mn]);}function o0(t){for(;t!==null&&!ar(t);)t=t[Mn];return t;}var nE;function GE(t){nE=t;}function zE(){if(nE!==void 0)return nE;if(typeof document<"u")return document;throw new I(210,!1);}var Mp=new _("",{factory:()=>uU}),uU="ng";var Np=new _(""),ml=new _("",{providedIn:"platform",factory:()=>"unknown"}),lU=new _(""),gl=new _("",{factory:()=>g(we).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var i0="r";var WE="di",qE="s";var s0=!1,a0=new _("",{factory:()=>s0});var c0=new _("");var Op=new _("");var Xo=new WeakMap();var Xf=new Map(),rE=class{callbacks=new Set();listener=()=>{for(let e of this.callbacks)e();};};function dU(t){let e=u0(t);return new IntersectionObserver(n=>{for(let r of n)r.isIntersecting&&Xo.has(r.target)&&Xo.get(r.target)?.get(e)?.listener();},t);}function fU(t,e,n,r){let o=u0(r),i=Xo.get(t)?.get(o);Xf.has(o)||Xf.set(o,{observer:n(r),count:0});let s=Xf.get(o);if(!i){i=new rE(),s.observer.observe(t);let a=Xo.get(t);a?a.set(o,i):(a=new Map(),Xo.set(t,a)),a.set(o,i),s.count++;}return i.callbacks.add(e),()=>{if(Xo.get(t)?.has(o)){if(i.callbacks.delete(e),i.callbacks.size===0){s.observer.unobserve(t),s.count--;let a=Xo.get(t);a&&(a.delete(o),a.size===0&&Xo.delete(t));}s.count===0&&(s.observer.disconnect(),Xf.delete(o));}};}function u0(t){return t?`${t.rootMargin}/${typeof t.threshold=="number"?t.threshold:t.threshold?.join(` 13`)}`:"";}var zI=new WeakMap();function pU(t,e){if(t==null||typeof t!="object")return;let n=zI.get(t);n||(n=new WeakSet(),zI.set(t,n)),n.add(e);}var hU=(t,e,n,r)=>{};function mU(t,e,n,r){hU(t,e,n,r);}var l0=new _("");function Lp(t){return(t.flags&32)===32;}var gU=()=>null;function d0(t,e,n=!1){return gU(t,e,n);}function YE(t){return t.get(c0,!1,{optional:!0});}function f0(t,e){let n=t.contentQueries;if(n!==null){let r=O(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=t.data[s];Wu(i),a.contentQueries(2,e[s],s);}}}finally{O(r);}}}function oE(t,e,n){Wu(0);let r=O(null);try{e(t,n);}finally{O(r);}}function KE(t,e,n){if(hv(e)){let r=O(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{O(r);}}}var dr=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t;}(dr||{});var Zf;function yU(){if(Zf===void 0&&(Zf=null,Ke.trustedTypes))try{Zf=Ke.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t});}catch(t){}return Zf;}function kp(t){return yU()?.createHTML(t)||t;}var Qf;function p0(){if(Qf===void 0&&(Qf=null,Ke.trustedTypes))try{Qf=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t});}catch(t){}return Qf;}function WI(t){return p0()?.createHTML(t)||t;}function qI(t){return p0()?.createScriptURL(t)||t;}var Io=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e;}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rf})`;}},iE=class extends Io{getTypeName(){return"HTML";}},sE=class extends Io{getTypeName(){return"Style";}},aE=class extends Io{getTypeName(){return"Script";}},cE=class extends Io{getTypeName(){return"URL";}},uE=class extends Io{getTypeName(){return"ResourceURL";}};function on(t){return t instanceof Io?t.changingThisBreaksApplicationSecurity:t;}function Vr(t,e){let n=h0(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Rf})`);}return n===e;}function h0(t){return t instanceof Io&&t.getTypeName()||null;}function XE(t){return new iE(t);}function ZE(t){return new sE(t);}function QE(t){return new aE(t);}function JE(t){return new cE(t);}function eb(t){return new uE(t);}function m0(t){let e=new dE(t);return vU()?new lE(e):e;}var lE=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e;}
13getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(kp(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n);}catch(n){return null;}}},dE=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=kp(e),n;}};function vU(){try{return!!new window.DOMParser().parseFromString(kp(""),"text/html");}catch(t){return!1;}}var EU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function nc(t){return t=String(t),t.match(EU)?t:"unsafe:"+t;}function $r(t){let e={};for(let n of t.split(","))e[n]=!0;return e;}function rc(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e;}var g0=$r("area,br,col,hr,img,wbr"),y0=$r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),v0=$r("rp,rt"),bU=rc(v0,y0),TU=rc(y0,$r("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),SU=rc(v0,$r("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),fE=rc(g0,TU,SU,bU),tb=$r("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),DU=$r("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),CU=$r("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),pE=rc(tb,DU,CU),IU=$r("script,style,template"),YI=rc(tb,$r("action,formaction,data,codebase")),hE=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let n=e.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=AU(n);continue;}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=_U(n);if(i){n=i;break;}n=o.pop();}}return this.buf.join("");}startElement(e){let n=KI(e).toLowerCase();if(!fE.hasOwnProperty(n))return this.sanitizedSomething=!0,!IU.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!pE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue;}let c=i.value;tb[a]&&(c=nc(c)),this.buf.push(" ",s,'="',XI(c),'"');}return this.buf.push(">"),!0;}endElement(e){let n=KI(e).toLowerCase();fE.hasOwnProperty(n)&&!g0.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(e){this.buf.push(XI(e));}};function wU(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY;}function _U(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw E0(e);return e;}function AU(t){let e=t.firstChild;if(e&&wU(t,e))throw E0(e);return e;}function KI(t){let e=t.nodeName;return typeof e=="string"?e:"FORM";}function E0(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);}var xU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RU=/([^\#-~ |!])/g;function XI(t){return t.replace(/&/g,"&").replace(xU,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";";}).replace(RU,function(e){return"&#"+e.charCodeAt(0)+";";}).replace(/</g,"<").replace(/>/g,">");}var Jf;function Pp(t,e){let n=null;try{Jf=Jf||m0(t);let r=e?String(e):"";n=Jf.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Jf.getInertBodyElement(r);}while(r!==i);let a=new hE().sanitizeChildren(mE(n)||n);return kp(a);}finally{if(n){let r=mE(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function mE(t){return"content"in t&&MU(t)?t.content:null;}function MU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE";}var NU=/^>|^->|<!--|-->|--!>|<!-$/g,OU=/(<|>)/g,LU="\u200B$1\u200B";function kU(t){return t.replace(NU,e=>e.replace(OU,LU));}function b0(t,e){return t.createText(e);}function T0(t,e,n){t.setValue(e,n);}function S0(t,e){return t.createComment(kU(e));}function nb(t,e,n){return t.createElement(e,n);}function vs(t,e,n,r,o){t.insertBefore(e,n,r,o);}function D0(t,e,n){t.appendChild(e,n);}function ZI(t,e,n,r,o){r!==null?vs(t,e,n,r,o):D0(t,e,n);}function rb(t,e,n,r){t.removeChild(null,e,n,r);}function PU(t,e,n){t.setAttribute(e,"style",n);}function FU(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n);}function C0(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&q1(t,e,r),o!==null&&FU(t,e,o),i!==null&&PU(t,e,i);}var kn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t;}(kn||{});function UU(t){let e=ib();return e?WI(e.sanitize(kn.HTML,t)||""):Vr(t,"HTML")?WI(on(t)):Pp(zE(),kt(t));}function I0(t){let e=ib();return e?e.sanitize(kn.URL,t)||"":Vr(t,"URL")?on(t):nc(kt(t));}function w0(t){let e=ib();if(e)return qI(e.sanitize(kn.RESOURCE_URL,t)||"");
13if(Vr(t,"ResourceURL"))return qI(on(t));throw new I(904,!1);}var HU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},script:{src:!0,href:!0,"xlink:href":!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function BU(t,e){return HU[t]?.[e]===!0?w0:I0;}function ob(t,e,n){return BU(e,n)(t);}function ib(){let t=w();return t&&t[sr].sanitizer;}function jU(t){return t.ownerDocument.defaultView;}function VU(t){return t.ownerDocument;}function _0(t){return t instanceof Function?t():t;}function $U(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o;}n=o+1;}}var A0="ng-template";function GU(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&$U(e[o+1].toLowerCase(),n,0)!==-1)return!0;}else if(sb(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===n)return!0;}return!1;}function sb(t){return t.type===4&&t.value!==A0;}function zU(t,e,n){let r=t.type===4&&!n?A0:t.value;return e===r;}function WU(t,e,n){let r=4,o=t.attrs,i=o!==null?KU(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!lr(r)&&!lr(c))return!1;if(s&&lr(c))continue;s=!1,r=c|r&1;continue;}if(!s)if(r&4){if(r=2|r&1,c!==""&&!zU(t,c,n)||c===""&&e.length===1){if(lr(r))return!1;s=!0;}}else if(r&8){if(o===null||!GU(t,o,c,n)){if(lr(r))return!1;s=!0;}}else{let u=e[++a],l=qU(c,o,sb(t),n);if(l===-1){if(lr(r))return!1;s=!0;continue;}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(lr(r))return!1;s=!0;}}}}return lr(r)||s;}function lr(t){return(t&1)===0;}function qU(t,e,n,r){if(e===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue;}else{if(s===4)break;if(s===0){o+=4;continue;}}o+=i?1:2;}return-1;}else return XU(e,t);}function x0(t,e,n=!1){for(let r=0;r<e.length;r++)if(WU(t,e[r],n))return!0;return!1;}function YU(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1];}return null;}function KU(t){for(let e=0;e<t.length;e++){let n=t[e];if($w(n))return e;}return t.length;}function XU(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++;}return-1;}function ZU(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let o=0;o<t.length;o++)if(t[o]!==r[o])continue e;return!0;}}return!1;}function QI(t,e){return t?":not("+e.trim()+")":e;}function QU(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string"){if(r&2){let a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);}else o!==""&&!lr(s)&&(e+=QI(i,o),o=""),r=s,i=i||!lr(r);n++;}return o!==""&&(e+=QI(i,o)),e;}function JU(t){return t.map(QU).join(",");}function eH(t){let e=[],n=[],r=1,o=2;for(;r<t.length;){let i=t[r];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++r]):o===8&&n.push(i);else{if(!lr(o))break;o=i;}r++;}return n.length&&e.push(1,...n),e;}var it={};function ab(t,e,n,r,o,i,s,a,c,u,l){let d=oe+r,f=d+o,h=tH(d,f),m=typeof u=="function"?u():u;return h[A]={type:t,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:l};}function tH(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:it);return n;}function nH(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=ab(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e;}function cb(t,e,n,r,o,i,s,a,c,u,l){let d=e.blueprint.slice();return d[ir]=o,d[G]=r|4|128|8|64|1024,(u!==null||t&&t[G]&2048)&&(d[G]|=2048),gv(d),d[rt]=d[ss]=t,d[Be]=n,d[sr]=s||t&&t[sr],d[ne]=a||t&&t[ne],d[Xe]=c||t&&t[Xe]||null,d[Pt]=i,d[kr]=aU(),d[is]=l,d[pv]=u,d[wt]=e.type==2?t[wt]:d,d;}function rH(t,e,n){let r=yn(e,t),o=nH(n),i=t[sr].rendererFactory,s=ub(t,cb(t,o,null,R0(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s;}function R0(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e;}function yl(t,e,n,r){if(n===0)return-1;let o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o;}function ub(t,e){return t[ka]?t[fv][Mn]=e:t[ka]=e,t[fv]=e,e;}function oH(t=1){M0(le(),w(),vn()+t,!1);}function M0(t,e,n,r){if(!r)if((e[G]&3)===3){let i=t.preOrderCheckHooks;i!==null&&tp(e,i,n);}else{let i=t.preOrderHooks;i!==null&&np(e,i,0,n);}Ko(n);}var Fp=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t;}(Fp||{});function Ya(t,e,n,r){let o=O(null);try{let[i,s,a]=t.inputs[n],c=null;(s&Fp.SignalBased)!==0&&(c=e[i][Fe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,c,r,n,i):Fw(e,c,i,r);}finally{O(o);}}var fr=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t;}(fr||{}),gE;function lb(t,e){return gE(t,e);}function iH(t){gE===void 0&&(gE=t());}var N0=new _("",{factory:()=>!1});var sH=!1,vl=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function O0(t){return t[Xe].get(N0,sH);}function aH(t,e,n){let r=Za.get(t);if(r){for(let o of e)r.classList.push(o);for(let o of n)r.cleanupFns.push(o);}else Za.set(t,{classList:e,cleanupFns:n});}function db(t){let e=Za.get(t);if(e){for(let n of e.cleanupFns)n();Za.delete(t);}ms.delete(t);}var Za=new WeakMap(),ms=new WeakMap(),ol=new WeakMap(),Xu=new WeakSet();function JI(t,e){let n=ol.get(t);if(n&&n.length>0){let r=n.findIndex(o=>o===e);r>-1&&n.splice(r,1);}n?.length===0&&ol.delete(t);}function cH(t,e){let n=ol.get(t);if(!n||n.length===0)return;let r=e.parentNode,o=e.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===e?(n.splice(i,1),Xu.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s));}}
13function L0(t,e){let n=ol.get(t);n?n.includes(e)||n.push(e):ol.set(t,[e]);}function ew(t){let e=t[Pr]??={};return e.enter??=new Map();}function Up(t){let e=t[Pr]??={};return e.leave??=new Map();}function k0(t){let e=typeof t=="function"?t():t,n=Array.isArray(e)?e:null;return typeof e=="string"&&(n=e.trim().split(/\s+/).filter(r=>r)),n;}function uH(t,e){if(!vl)return;let n=Za.get(t);if(n&&n.classList.length>0&&lH(t,n.classList))for(let r of n.classList)e.removeClass(t,r);db(t);}function lH(t,e){for(let n of e)if(t.classList.contains(n))return!0;return!1;}function il(t){return t.composedPath?t.composedPath()[0]:t.target;}function fb(t,e){let n=ms.get(e);return n===void 0?!0:e===il(t)&&(n.animationName!==void 0&&t.animationName===n.animationName||n.propertyName!==void 0&&(n.propertyName==="all"||t.propertyName===n.propertyName));}function P0(t,e,n){let r=t.get(e.index)??{animateFns:[]};r.animateFns.push(n),t.set(e.index,r);}function tw(t,e){if(t)for(let n of t)n();for(let n of e)n();}function nw(t,e){let n=Up(t).get(e.index);n&&(n.resolvers=void 0);}function mp(t){if(!t)return 0;let e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e;}function ps(t,e){return t.getPropertyValue(e).split(",").map(r=>r.trim());}function dH(t){let e=ps(t,"transition-property"),n=ps(t,"transition-duration"),r=ps(t,"transition-delay"),o={propertyName:"",duration:0,animationName:void 0};for(let i=0;i<e.length;i++){let s=mp(r[i])+mp(n[i]);s>o.duration&&(o.propertyName=e[i],o.duration=s);}return o;}function fH(t){let e=ps(t,"animation-name"),n=ps(t,"animation-delay"),r=ps(t,"animation-duration"),o=ps(t,"animation-iteration-count"),i={animationName:"",propertyName:void 0,duration:0};for(let s=0;s<e.length;s++){let a=mp(n[s])+mp(r[s]),c=o[s];a>i.duration&&c!=="infinite"&&(i.animationName=e[s],i.duration=a);}return i;}function F0(t,e){return t!==void 0&&t.duration>e.duration;}function U0(t){return(t.animationName!=null||t.propertyName!=null)&&t.duration>0;}function pH(t,e){let n=getComputedStyle(t),r=fH(n),o=dH(n),i=r.duration>o.duration?r:o;F0(e.get(t),i)||U0(i)&&e.set(t,i);}function H0(t,e,n){if(!n)return;let r=t.getAnimations();return r.length===0?pH(t,e):hH(t,e,r);}function hH(t,e,n){let r={animationName:void 0,propertyName:void 0,duration:0};for(let o of n){let i=o.effect?.getTiming();if(i?.iterations===1/0)continue;let s=typeof i?.duration=="number"?i.duration:0,a=(i?.delay??0)+s,c=o.playbackRate;c!==void 0&&c!==0&&c!==1&&(a/=Math.abs(c));let u,l;o.animationName?l=o.animationName:u=o.transitionProperty,a>=r.duration&&(r={animationName:l,propertyName:u,duration:a});}F0(e.get(t),r)||U0(r)&&e.set(t,r);}var Jo=new Set(),Hp=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t;}(Hp||{}),pr=new _(""),rw=new Set();function Et(t){rw.has(t)||(rw.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}));}var Bp=(()=>{let e=class e{impl=null;execute(){this.impl?.execute();}};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:()=>new e()}));let t=e;return t;})(),pb=[0,1,2,3],hb=(()=>{let e=class e{ngZone=g(ue);scheduler=g(nr);errorHandler=g(xn,{optional:!0});sequences=new Set();deferredRegistrations=new Set();executing=!1;constructor(){g(pr,{optional:!0});}execute(){let r=this.sequences.size>0;r&&fe(ie.AfterRenderHooksStart),this.executing=!0;for(let o of pb)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[o]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let s=i.hooks[o];return s(i.pipelinedValue);},i.snapshot));}catch(s){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(s);}this.executing=!1;for(let o of this.sequences)o.afterRun(),o.once&&(this.sequences.delete(o),o.destroy());for(let o of this.deferredRegistrations)this.sequences.add(o);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),r&&fe(ie.AfterRenderHooksEnd);}register(r){let{view:o}=r;o!==void 0?((o[cs]??=[]).push(r),ls(o),o[G]|=8192):this.executing?this.deferredRegistrations.add(r):this.addSequence(r);}addSequence(r){this.sequences.add(r),this.scheduler.notify(7);}unregister(r){this.executing&&this.sequences.has(r)?(r.erroredOrDestroyed=!0,r.pipelinedValue=void 0,r.once=!0):(this.sequences.delete(r),this.deferredRegistrations.delete(r));}maybeTrace(r,o){return o?o.run(Hp.AFTER_NEXT_RENDER,r):r();}};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:()=>new e()}));let t=e;return t;})(),sl=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,o,i,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[cs];e&&(this.view[cs]=e.filter(n=>n!==this));}};function B0(t,e){let n=e?.injector??g(ot);return Et("NgAfterRender"),j0(t,n,e,!1);}function El(t,e){let n=e?.injector??g(ot);return Et("NgAfterNextRender"),j0(t,n,e,!0);}function mH(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read];}function j0(t,e,n,r){let o=e.get(Bp);o.impl??=e.get(hb);let i=e.get(pr,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(Gt):null,a=e.get(Ga,null,{optional:!0}),c=new sl(o.impl,mH(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c;}var jp=new _("",{factory:()=>({queue:new Set(),isScheduled:!1,scheduler:null,injector:g(Ie)})});function V0(t,e,n){let r=t.get(jp);if(Array.isArray(e))for(let o of e)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t);}function gH(t,e){let n=t.get(jp);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0;}}function yH(t){let e=t.get(jp);e.isScheduled||(El(()=>{e.isScheduled=!1;for(let n of e.queue)n();e.queue.clear();},{injector:e.injector}),e.isScheduled=!0);}function $0(t){let e=t.get(jp);
13e.scheduler=yH,e.scheduler(t);}function G0(t,e){for(let[n,r]of e)V0(t,r.animateFns);}function ow(t,e,n,r){let o=t?.[Pr]?.enter;e!==null&&o&&o.has(n.index)&&G0(r,o);}function Wa(t,e,n,r,o,i,s,a){if(o!=null){let c,u=!1;ar(o)?c=o:So(o)&&(u=!0,o=o[ir]);let l=en(o);t===0&&r!==null?(ow(a,r,i,n),s==null?D0(e,r,l):vs(e,r,l,s||null,!0)):t===1&&r!==null?(ow(a,r,i,n),vs(e,r,l,s||null,!0),cH(i,l)):t===2?(a?.[Pr]?.leave?.has(i.index)&&L0(i,l),Xu.delete(l),iw(a,i,n,d=>{if(Xu.has(l)){Xu.delete(l);return;}rb(e,l,u,d);})):t===3&&(Xu.delete(l),iw(a,i,n,()=>{e.destroyNode(l);})),c!=null&&IH(e,t,n,c,i,r,s);}}function vH(t,e){z0(t,e),e[ir]=null,e[Pt]=null;}function EH(t,e,n,r,o,i){r[ir]=o,r[Pt]=e,$p(t,r,n,1,o,i);}function z0(t,e){e[sr].changeDetectionScheduler?.notify(9),$p(t,e,e[ne],2,null,null);}function bH(t){let e=t[ka];if(!e)return Bv(t[A],t);for(;e;){let n=null;if(So(e))n=e[ka];else{let r=e[Ue];r&&(n=r);}if(!n){for(;e&&!e[Mn]&&e!==t;)So(e)&&Bv(e[A],e),e=e[rt];e===null&&(e=t),So(e)&&Bv(e[A],e),n=e&&e[Mn];}e=n;}}function mb(t,e){let n=t[us],r=n.indexOf(e);n.splice(r,1);}function Vp(t,e){if(Fr(e))return;let n=e[ne];n.destroyNode&&$p(t,e,n,3,null,null),bH(e);}function Bv(t,e){if(Fr(e))return;let n=O(null);try{e[G]&=-129,e[G]|=256,e[gn]&&vo(e[gn]),DH(t,e),SH(t,e),e[A].type===1&&e[ne].destroy();let r=e[Wo];if(r!==null&&ar(e[rt])){r!==e[rt]&&mb(r,e);let o=e[Lr];o!==null&&o.detachView(t);}tE(e);}finally{O(n);}}function iw(t,e,n,r){let o=t?.[Pr];if(o==null||o.leave==null||!o.leave.has(e.index))return r(!1);t&&Jo.add(t[kr]),V0(n,()=>{if(o.leave&&o.leave.has(e.index)){let s=o.leave.get(e.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l);}o.detachedLeaveAnimationFns=void 0;}o.running=Promise.allSettled(a),TH(t,r);}else t&&Jo.delete(t[kr]),r(!1);},o);}function TH(t,e){let n=t[Pr]?.running;if(n){n.then(()=>{t[Pr].running=void 0,Jo.delete(t[kr]),e(!0);});return;}e(!1);}function SH(t,e){let n=t.cleanup,r=e[La];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else{let a=r[n[s+1]];n[s].call(a);}r!==null&&(e[La]=null);let o=e[Eo];if(o!==null){e[Eo]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=e[Go];if(i!==null){e[Go]=null;for(let s of i)s.destroy();}}function DH(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=e[n[r]];if(!(o instanceof ys)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];fe(ie.LifecycleHookStart,a,c);try{c.call(a);}finally{fe(ie.LifecycleHookEnd,a,c);}}else{fe(ie.LifecycleHookStart,o,i);try{i.call(o);}finally{fe(ie.LifecycleHookEnd,o,i);}}}}}function W0(t,e,n){return q0(t,e.parent,n);}function q0(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[ir];if(Do(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===dr.None||o===dr.Emulated)return null;}return yn(r,n);}function Y0(t,e,n){return X0(t,e,n);}function K0(t,e,n){return t.type&40?yn(t,n):null;}var X0=K0,yE;function Z0(t,e){X0=t,yE=e;}function gb(t,e,n,r){let o=W0(t,r,e),i=e[ne],s=r.parent||e[Pt],a=Y0(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)ZI(i,o,n[c],a,!1);else ZI(i,o,n,a,!1);yE!==void 0&&yE(i,r,e,n,o);}function Zu(t,e){if(e!==null){let n=e.type;if(n&3)return yn(e,t);if(n&4)return vE(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Zu(t,r);{let o=t[e.index];return ar(o)?vE(-1,o):en(o);}}else{if(n&128)return Zu(t,e.next);if(n&32)return lb(e,t)()||en(t[e.index]);{let r=Q0(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=zo(t[wt]);return Zu(o,r);}else return Zu(t,e.next);}}}return null;}function Q0(t,e){if(e!==null){let r=t[wt][Pt],o=e.projection;return r.projection[o];}return null;}function vE(t,e){let n=Ue+t+1;if(n<e.length){let r=e[n],o=r[A].firstChild;if(o!==null)return Zu(r,o);}return e[Yo];}function yb(t,e,n,r,o,i,s){for(;n!=null;){let a=r[Xe];if(n.type===128){n=n.next;continue;}let c=r[n.index],u=n.type;if(s&&e===0&&(c&&Qo(en(c),r),n.flags|=2),!Lp(n))if(u&8)yb(t,e,n.child,r,o,i,!1),Wa(e,t,a,o,c,n,i,r);else if(u&32){let l=lb(n,r),d;for(;d=l();)Wa(e,t,a,o,d,n,i,r);Wa(e,t,a,o,c,n,i,r);}else u&16?J0(t,e,r,n,o,i):Wa(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function $p(t,e,n,r,o,i){yb(n,r,t.firstChild,e,o,i,!1);}function CH(t,e,n){let r=e[ne],o=W0(t,n,e),i=n.parent||e[Pt],s=Y0(i,n,e);J0(r,0,e,n,o,s);}function J0(t,e,n,r,o,i){let s=n[wt],c=s[Pt].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Wa(e,t,n[Xe],o,l,r,i,n);}else{let u=c,l=s[rt];e0(r)&&(u.flags|=128),yb(t,e,u,l,o,i,!0);}}function IH(t,e,n,r,o,i,s){let a=r[Yo],c=en(r);a!==c&&Wa(e,t,n,i,a,o,s);for(let u=Ue;u<r.length;u++){let l=r[u];$p(l[A],l,t,e,i,a);}}function wH(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:fr.DashCase;
13o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=fr.Important),t.setStyle(n,r,o,i));}}function e_(t,e,n,r,o){let i=vn(),s=r&2;try{Ko(-1),s&&e.length>oe&&M0(t,e,oe,!1);let a=s?ie.TemplateUpdateStart:ie.TemplateCreateStart;fe(a,o,n),n(r,o);}finally{Ko(i);let a=s?ie.TemplateUpdateEnd:ie.TemplateCreateEnd;fe(a,o,n);}}function Gp(t,e,n){NH(t,e,n),(n.flags&64)===64&&OH(t,e,n);}function oc(t,e,n=yn){let r=e.localNames;if(r!==null){let o=e.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(e,t):t[s];t[o++]=a;}}}function _H(t,e,n,r){let i=r.get(a0,s0)||n===dr.ShadowDom||n===dr.ExperimentalIsolatedShadowDom,s=t.selectRootElement(e,i);return AH(s),s;}function AH(t){xH(t);}var xH=()=>null;function RH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t;}function vb(t,e,n,r,o,i){let s=e[A];if(Sb(t,s,e,n,r)){Do(t)&&MH(e,t.index);return;}t.type&3&&(n=RH(n)),t_(t,e,n,r,o,i);}function t_(t,e,n,r,o,i){if(t.type&3){let s=yn(t,e);r=i!=null?i(r,t.value||"",n):r,o.setProperty(s,n,r);}else t.type&12;}function MH(t,e){let n=Nn(e,t);n[G]&16||(n[G]|=64);}function NH(t,e,n){let r=n.directiveStart,o=n.directiveEnd;Do(n)&&rH(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||pp(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],c=rl(e,t,s,n);if(Qo(c,e),i!==null&&PH(e,s-r,c,a,n,i),cr(a)){let u=Nn(n.index,e);u[Be]=rl(e,t,s,n);}}}function OH(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=SI();try{Ko(i);for(let a=r;a<o;a++){let c=t.data[a],u=e[a];Gf(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&LH(c,u);}}finally{Ko(-1),Gf(s);}}function LH(t,e){t.hostBindings!==null&&t.hostBindings(1,e);}function Eb(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];x0(e,i.selectors,!1)&&(r??=[],cr(i)?r.unshift(i):r.push(i));}return r;}function kH(t,e,n,r,o,i){let s=yn(t,e);bb(e[ne],s,i,t.value,n,r,o);}function bb(t,e,n,r,o,i,s){if(i==null)t.removeAttribute(e,o,n);else{let a=s==null?kt(i):s(i,r||"",o);t.setAttribute(e,o,a,n);}}function PH(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Ya(r,n,c,u);}}function zp(t,e,n,r,o){let i=oe+n,s=e[A],a=o(s,e,t,r,n);e[i]=a,Ur(t,!0);let c=t.type===2;return c?(C0(e[ne],a,t),(mI()===0||Pa(t))&&Qo(a,e),gI()):Qo(a,e),qu()&&(!c||!Lp(t))&&gb(s,e,a,t),t;}function Wp(t){let e=t;return wv()?_v():(e=e.parent,Ur(e,!1)),e;}function Tb(t,e){let n=t[Xe];if(!n)return;let r;try{r=n.get(nn,null);}catch(o){r=null;}r?.(e);}function Sb(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=e.data[u];Ya(d,n[u],l,o),a=!0;}if(i)for(let c of i){let u=n[c],l=e.data[c];Ya(l,u,r,o),a=!0;}return a;}function FH(t,e){let n=Nn(e,t),r=n[A];UH(r,n);let o=n[ir];o!==null&&n[is]===null&&(n[is]=d0(o,n[Xe])),fe(ie.ComponentStart);try{Db(r,n,n[Be]);}finally{fe(ie.ComponentEnd,n[Be]);}}function UH(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n]);}function Db(t,e,n){Wf(e);try{let r=t.viewQuery;r!==null&&oE(1,r,n);let o=t.template;o!==null&&e_(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Lr]?.finishViewCreation(t),t.staticContentQueries&&f0(t,e),t.staticViewQueries&&oE(2,t.viewQuery,n);let i=t.components;i!==null&&HH(e,i);}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r;}finally{e[G]&=-5,qf();}}function HH(t,e){for(let n=0;n<e.length;n++)FH(t,e[n]);}function ic(t,e,n,r){let o=O(null);try{let i=e.tView,a=t[G]&4096?4096:16,c=cb(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=t[e.index];c[Wo]=u;let l=t[Lr];return l!==null&&(c[Lr]=l.createEmbeddedView(i)),Db(i,c,n),c;}finally{O(o);}}function Es(t,e){return!e||e.firstChild===null||e0(t);}function al(t,e,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue;}let i=e[n.index];i!==null&&r.push(en(i)),ar(i)&&n_(i,r);let s=n.type;if(s&8)al(t,e,n.child,r);else if(s&32){let a=lb(n,e),c;for(;c=a();)r.push(c);}else if(s&16){let a=Q0(e,n);if(Array.isArray(a))r.push(...a);else{let c=zo(e[wt]);al(c[A],c,a,r,!0);}}n=o?n.projectionNext:n.next;}return r;}function n_(t,e){for(let n=Ue;n<t.length;n++){let r=t[n],o=r[A].firstChild;o!==null&&al(r[A],r,o,e);}t[Yo]!==t[ir]&&e.push(t[Yo]);}function r_(t){if(t[cs]!==null){for(let e of t[cs])e.impl.addSequence(e);t[cs].length=0;}}var o_=[];function BH(t){return t[gn]??jH(t);}function jH(t){let e=o_.pop()??Object.create($H);return e.lView=t,e;}function VH(t){t.lView[gn]!==t&&(t.lView=null,o_.push(t));}var $H=$(S({},mo),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{ls(t.lView);},consumerOnSignalRead(){this.lView[gn]=this;}});function GH(t){let e=t[gn]??Object.create(zH);return e.lView=t,e;}var zH=$(S({},mo),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=zo(t.lView);for(;e&&!i_(e[A]);)e=zo(e);e&&yv(e);},consumerOnSignalRead(){this.lView[gn]=this;}});function i_(t){return t.type!==2;}function s_(t){if(t[Go]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Go])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[G]&8192);}}var WH=100;function a_(t,e=0){let r=t[sr].rendererFactory,o=!1;o||r.begin?.();try{qH(t,e);}finally{o||r.end?.();}}function qH(t,e){let n=xv();try{Nu(!0),EE(t,e);let r=0;for(;$u(t);){if(r===WH)throw new I(103,!1);r++,EE(t,1);}}finally{Nu(n);}}function YH(t,e,n,r){if(Fr(e))return;let o=e[G],i=!1,s=!1;Wf(e);let a=!0,c=null,u=null;i||(i_(t)?(u=BH(e),c=Nr(u)):Tf()===null?(a=!1,u=GH(e),c=Nr(u)):e[gn]&&(vo(e[gn]),e[gn]=null));try{gv(e),EI(t.bindingStartIndex),n!==null&&e_(t,e,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=t.preOrderCheckHooks;h!==null&&tp(e,h,null);}else{let h=t.preOrderHooks;h!==null&&np(e,h,0,null),Uv(e,0);}if(s||KH(e),s_(e),c_(e,0),t.contentQueries!==null&&f0(t,e),!i)if(l){let h=t.contentCheckHooks;h!==null&&tp(e,h);}else{let h=t.contentHooks;h!==null&&np(e,h,1),Uv(e,1);}ZH(t,e);let d=t.components;d!==null&&l_(e,d,0);let f=t.viewQuery;if(f!==null&&oE(2,f,r),!i)if(l){let h=t.viewCheckHooks;h!==null&&tp(e,h);}else{let h=t.viewHooks;h!==null&&np(e,h,2),Uv(e,2);}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Hf]){for(let h of e[Hf])h();e[Hf]=null;}i||(r_(e),e[G]&=-73);}catch(l){throw i||ls(e),l;}finally{u!==null&&(yo(u,c),a&&VH(u)),qf();}}function c_(t,e){for(let n=n0(t);n!==null;n=r0(n))for(let r=Ue;r<n.length;r++){let o=n[r];u_(o,e);}}function KH(t){for(let e=n0(t);e!==null;e=r0(e)){if(!(e[G]&2))continue;let n=e[us];for(let r=0;r<n.length;r++){let o=n[r];yv(o);}}}function XH(t,e,n){fe(ie.ComponentStart);let r=Nn(e,t);try{u_(r,n);}finally{fe(ie.ComponentEnd,r[Be]);}}function u_(t,e){Bf(t)&&EE(t,e);}function EE(t,e){let r=t[A],o=t[G],i=t[gn],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&Qi(i)),s||=!1,i&&(i.dirty=!1),t[G]&=-9217,s)YH(r,t,r.template,t[Be]);else if(o&8192){let a=O(null);try{s_(t),c_(t,1);let c=r.components;c!==null&&l_(t,c,1),r_(t);}finally{O(a);}}}function l_(t,e,n){for(let r=0;r<e.length;r++)XH(t,e[r],n);}function ZH(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Ko(~o);else{let i=o,s=n[++r],a=n[++r];TI(s,i);let c=e[i];fe(ie.HostBindingsUpdateStart,c);try{a(2,c);}finally{fe(ie.HostBindingsUpdateEnd,c);}}}}finally{Ko(-1);}}function qp(t,e){let n=xv()?64:1088;for(t[sr].changeDetectionScheduler?.notify(e);t;){t[G]|=n;let r=zo(t);
13if(Fa(t)&&!r)return t;t=r;}return null;}function d_(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null];}function f_(t,e){let n=Ue+e;if(n<t.length)return t[n];}function sc(t,e,n,r=!0){let o=e[A];if(QH(o,e,t,n),r){let s=vE(n,t),a=e[ne],c=a.parentNode(t[Yo]);c!==null&&EH(o,t[Pt],a,e,c,s);}let i=e[is];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Cb(t,e){let n=cl(t,e);return n!==void 0&&Vp(n[A],n),n;}function cl(t,e){if(t.length<=Ue)return;let n=Ue+e,r=t[n];if(r){let o=r[Wo];o!==null&&o!==t&&mb(o,r),e>0&&(t[n-1][Mn]=r[Mn]);let i=Uu(t,Ue+e);vH(r[A],r);let s=i[Lr];s!==null&&s.detachView(i[A]),r[rt]=null,r[Mn]=null,r[G]&=-129;}return r;}function QH(t,e,n,r){let o=Ue+r,i=n.length;r>0&&(n[o-1][Mn]=e),r<i-Ue?(e[Mn]=n[o],sv(n,Ue+r,e)):(n.push(e),e[Mn]=null),e[rt]=n;let s=e[Wo];s!==null&&n!==s&&p_(s,e);let a=e[Lr];a!==null&&a.insertView(t),jf(e),e[G]|=128;}function p_(t,e){let n=t[us],r=e[rt];if(So(r))t[G]|=2;else{let o=r[rt][wt];e[wt]!==o&&(t[G]|=2);}n===null?t[us]=[e]:n.push(e);}var ei=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[A];return al(n,e,n.firstChild,[]);}constructor(e,n){this._lView=e,this._cdRefInjectingView=n;}get context(){return this._lView[Be];}set context(e){this._lView[Be]=e;}get destroyed(){return Fr(this._lView);}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[rt];if(ar(e)){let n=e[ju],r=n?n.indexOf(this):-1;r>-1&&(cl(e,r),Uu(n,r));}this._attachedToViewContainer=!1;}Vp(this._lView[A],this._lView);}onDestroy(e){Gu(this._lView,e);}markForCheck(){qp(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[G]&=-129;}reattach(){jf(this._lView),this._lView[G]|=128;}detectChanges(){this._lView[G]|=1024,a_(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0;}detachFromAppRef(){this._appRef=null;let e=Fa(this._lView),n=this._lView[Wo];n!==null&&!e&&mb(n,this._lView),z0(this._lView[A],this._lView);}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=e;let n=Fa(this._lView),r=this._lView[Wo];r!==null&&!n&&p_(r,this._lView),jf(this._lView);}};var jr=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null;}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r);}createEmbeddedViewImpl(n,r,o){let i=ic(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new ei(i);}}return p(t,"__NG_ELEMENT_ID__",JH),t;})();function JH(){return Yp(Me(),w());}function Yp(t,e){return t.type&4?new jr(e,t,tc(t,e)):null;}function h_(t,e,n){let r=e.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return o===null?K0(t,e,n):en(n[o]);}function m_(t,e,n,r,o){let i=e.insertBeforeIndex;if(Array.isArray(i)){let s=r,a=null;if(e.type&3||(a=s,s=o),s!==null&&e.componentOffset===-1)for(let c=1;c<i.length;c++){let u=n[i[c]];vs(t,s,u,a,!1);}}}function Cs(t,e,n,r,o){let i=t.data[e];if(i===null)i=Ib(t,e,n,r,o),bI()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ja();i.injectorIndex=s===null?-1:s.injectorIndex;}return Ur(i,!0),i;}function Ib(t,e,n,r,o){let i=Iv(),s=wv(),a=s?i:i&&i.parent,c=t.data[e]=tB(t,a,n,e,r,o);return eB(t,c,i,s),c;}function eB(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n));}function tB(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Sv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};}function g_(t,e){if(t.push(e),t.length>1)for(let n=t.length-2;n>=0;n--){let r=t[n];y_(r)||nB(r,e)&&rB(r)===null&&oB(r,e.index);}}function y_(t){return!(t.type&64);}function nB(t,e){return y_(e)||t.index>e.index;}function rB(t){let e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e;}function oB(t,e){let n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(Z0(h_,m_),t.insertBeforeIndex=e);}function Qu(t,e){let n=t.data[e];return n===null||typeof n=="string"?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;}function iB(t,e,n){let r=t.data[e];r===null?t.data[e]=n:r.value=n;}function sB(t,e){let n=t.insertBeforeIndex;n===null?(Z0(h_,m_),n=t.insertBeforeIndex=[null,e]):(ZC(Array.isArray(n),!0,"Expecting array here"),n.push(e));}function aB(t,e,n){let r=Ib(t,n,64,null,null);return g_(e,r),r;}function Kp(t,e){let n=e[t.currentCaseLViewIndex];return n===null?n:n<0?~n:n;}function cB(t){return t>>>17;}function uB(t){return(t&131070)>>>1;}function lB(t,e,n){return t|e<<17|n<<1;}function dB(t){return t===-1;}function v_(t,e,n){t.index=0;let r=Kp(e,n);r!==null?t.removes=e.remove[r]:t.removes=It;}function bE(t){if(t.index<t.removes.length){let e=t.removes[t.index++];if(e>0)return t.lView[e];{t.stack.push(t.index,t.removes);let n=~e,r=t.lView[A].data[n];return v_(t,r,t.lView),bE(t);}}else return t.stack.length===0?(t.lView=void 0,null):(t.removes=t.stack.pop(),t.index=t.stack.pop(),bE(t));}function fB(){let t={stack:[],index:-1};function e(n,r){for(t.lView=r;t.stack.length;)t.stack.pop();return v_(t,n.value,r),bE.bind(null,t);}return e;}var pB=()=>{};function hB(t,e,n,r){pB(t,e,n,r);}var mB=()=>{};function gB(t,e,n){mB(t,e,n);}function yB(t){let e=t[qo]??[],r=t[rt][ne],o=[];for(let i of e)i.data[WE]!==void 0?o.push(i):vB(i,r);t[qo]=o;}function vB(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[i0];for(;n<o;){let i=r.nextSibling;rb(e,r,!1),r=i,n++;}}}var EB=()=>null,bB=()=>null;function gp(t,e){return EB(t,e);}function E_(t,e,n){return bB(t,e,n);}var b_=class{},Xp=class{}
13,TE=class{resolveComponentFactory(e){throw new I(917,!1);}},Zv,bl=(Zv=class{},p(Zv,"NULL",new TE()),Zv),bs=class{},oi=(()=>{class t{destroyNode=null;}return p(t,"__NG_ELEMENT_ID__",()=>TB()),t;})();function TB(){let t=w(),e=Me(),n=Nn(e.index,t);return(So(n)?n:t)[ne];}var T_=(()=>{let e=class e{};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:()=>null}));let t=e;return t;})();var op={},Ka=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n;}get(e,n,r){let o=this.injector.get(e,op,r);return o!==op||n===op?o:this.parentInjector.get(e,n,r);}};function yp(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=Mf(o,a);else if(i==2){let c=a,u=e[++s];r=Mf(r,c+": "+u+";");}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o;}function se(t,e=0){let n=w();if(n===null)return M(t,e);let r=Me();return Xw(r,n,lt(t),e);}function wb(){let t="invalid";throw new Error(t);}function S_(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break;}CB(t,e,n,a,i,c,u);}i!==null&&r!==null&&SB(n,r,i);}function SB(t,e,n){let r=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=n[e[o+1]];if(i==null)throw new I(-301,!1);r.push(e[o],i);}}function DB(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index);}function CB(t,e,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let h=r[f];c===null&&cr(h)&&(c=h,DB(t,n,f)),Jv(pp(n,e),t,h.type);}RB(n,t.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h);}let u=!1,l=!1,d=yl(t,e,a,null);a>0&&(n.directiveToIndex=new Map());for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=Xa(n.mergedAttrs,h.hostAttrs),wB(t,n,e,d,h),xB(d,h,o),s!==null&&s.has(h)){let[v,b]=s.get(h);n.directiveToIndex.set(h.type,[d,v+n.directiveStart,b+n.directiveStart]);}else(i===null||!i.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let m=h.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),u=!0),!l&&(m.ngOnChanges||m.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),l=!0),d++;}IB(t,n,i);}function IB(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))sw(0,e,o,r),sw(1,e,o,r),cw(e,r,!1);else{let i=n.get(o);aw(0,e,i,r),aw(1,e,i,r),cw(e,r,!0);}}}function sw(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[i]??=[],s[i].push(r),D_(e,i);}}function aw(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),D_(e,s);}}function D_(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16);}function cw(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||sb(t)){t.initialInputs??=[],t.initialInputs.push(null);return;}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue;}else if(c===5){a+=2;continue;}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===e){s??=[],s.push(c,r[a+1]);break;}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===e){s??=[],s.push(u[l+1],r[a+1]);break;}}a+=2;}t.initialInputs??=[],t.initialInputs.push(s);}function wB(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=$o(o.type,!0)),s=new ys(i,cr(o),se,null);t.blueprint[r]=s,n[r]=s,_B(t,e,r,yl(t,n,o.hostVars,it),o);}function _B(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;AB(s)!=a&&s.push(a),s.push(n,r,i);}}function AB(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n;}return 0;}function xB(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;cr(e)&&(n[""]=t);}}function RB(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e;}function _b(t,e,n,r,o,i,s,a){let c=e[A],u=c.consts,l=tn(u,s),d=Cs(c,t,n,r,l);return i&&S_(c,e,d,tn(u,a),o),d.mergedAttrs=Xa(d.mergedAttrs,d.attrs),d.attrs!==null&&yp(d,d.attrs,!1),d.mergedAttrs!==null&&yp(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d;}function Ab(t,e){jw(t,e),hv(e)&&t.queries.elementEnd(e);}function C_(t,e,n,r,o,i){let s=e.consts,a=tn(s,o),c=Cs(e,t,n,r,a);if(c.mergedAttrs=Xa(c.mergedAttrs,c.attrs),i!=null){let u=tn(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&yp(c,c.attrs,!1),c.mergedAttrs!==null&&yp(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c;}function xb(t){return Zp(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1;}function I_(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value);}}function Zp(t){return t!==null&&(typeof t=="function"||typeof t=="object");}function ii(t,e,n){return t[e]=n;}function Qp(t,e){return t[e];}function _t(t,e,n){if(n===it)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0);}function Qa(t,e,n,r){let o=_t(t,e,n);return _t(t,e+1,r)||o;}function Rb(t,e,n,r,o){let i=Qa(t,e,n,r);return _t(t,e+2,o)||i;}function Tl(t,e,n,r,o,i){let s=Qa(t,e,n,r);return Qa(t,e+2,o,i)||s;}function gs(t,e,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&pU(o,i);let s=Do(t)?Nn(t.index,e):e;qp(s,5);let a=e[Be],c=uw(e,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=uw(e,a,u,o)&&c,u=u.__ngNextListenerFn__;return c;};}function uw(t,e,n,r){let o=O(null);try{return fe(ie.OutputStart,e,n),n(r)!==!1;}catch(i){return Tb(t,i),!1;}finally{fe(ie.OutputEnd,e,n),O(o);}}function Mb(t,e,n,r,o,i,s,a){let c=Pa(t),u=!1,l=null;if(!r&&c&&(l=NB(e,n,i,t.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0;}else{let d=yn(t,n),f=r?r(d):d;mU(n,f,i,a),r||(a.__ngNativeEl__=d);let h=o.listen(f,i,a);if(!MB(i)){let m=r?v=>r(en(v[t.index])):t.index;w_(m,e,n,i,a,h,!1);}}return u;}function MB(t){return t.startsWith("animation")||t.startsWith("transition");}function NB(t,e,n,r){let o=t.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=e[La],c=o[i+2];return a&&a.length>c?a[c]:null;}typeof s=="string"&&(i+=2);}return null;}function w_(t,e,n,r,o,i,s){let a=e.firstCreatePass?bv(e):null,c=Ev(n),u=c.length;c.push(o,i),a&&a.push(r,t,u,(u+1)*(s?-1:1));}function vp(t,e,n,r,o,i){let s=e[n],a=e[A],u=a.data[n].outputs[r],d=s[u].subscribe(i);w_(t.index,a,e,o,i,d,!0);}function OB(){LB();}function LB(){let t=w(),e=le(),n=Me();if(e.firstCreatePass&&FB(e,n),n.controlDirectiveIndex===-1)return;Et("NgSignalForms");let r=t[n.controlDirectiveIndex];e.data[n.controlDirectiveIndex].controlDef.create(r,new Ep(t,e,n));}function kB(){PB();}function PB(){let t=w(),e=le(),n=ds();if(n.controlDirectiveIndex===-1)return;let r=e.data[n.controlDirectiveIndex].controlDef,o=t[n.controlDirectiveIndex];r.update(o,new Ep(t,e,n));}var Ep=class{lView;tView;tNode;hasPassThrough;constructor(e,n,r){this.lView=e,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0;}get descriptor(){return`<${this.tNode.value}>`;}listenToCustomControlOutput(e,n){__(this.tView.data[this.tNode.customControlIndex],e)&&vp(this.tNode,this.lView,this.tNode.customControlIndex,e,e,gs(this.tNode,this.lView,n));}listenToCustomControlModel(e){let n=this.tNode.flags&1024?"valueChange":"checkedChange";vp(this.tNode,this.lView,this.tNode.customControlIndex,n,n,gs(this.tNode,this.lView,e));}listenToDom(e,n){Mb(this.tNode,this.tView,this.lView,void 0,this.lView[ne],e,n,gs(this.tNode,this.lView,n));}
13setInputOnDirectives(e,n){let r=this.tNode.inputs?.[e],o=this.tNode.hostDirectiveInputs?.[e];if(!r&&!o)return!1;if(r)for(let i of r){let s=this.tView.data[i],a=this.lView[i];Ya(s,a,e,n);}if(o)for(let i=0;i<o.length;i+=2){let s=o[i],a=o[i+1],c=this.tView.data[s],u=this.lView[s];Ya(c,u,a,n);}return!0;}setCustomControlModelInput(e){let n=this.lView[this.tNode.customControlIndex],r=this.tView.data[this.tNode.customControlIndex],o=this.tNode.flags&1024?"value":"checked";Ya(r,n,o,e);}customControlHasInput(e){return this.tNode.customControlIndex===-1?!1:this.tView.data[this.tNode.customControlIndex].inputs[e]!=null;}};function FB(t,e,n){for(let o=e.directiveStart;o<e.directiveEnd;o++)if(t.data[o].controlDef){e.controlDirectiveIndex=o;break;}if(e.controlDirectiveIndex===-1)return;let r=t.data[e.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(e.inputs?.[r.passThroughInput]?.length??0)>1){e.flags|=4096;return;}UB(t,e);}function UB(t,e){for(let n=e.directiveStart;n<e.directiveEnd;n++){let r=t.data[n];if(lw(r,"value")){e.flags|=1024,e.customControlIndex=n;return;}if(lw(r,"checked")){e.flags|=2048,e.customControlIndex=n;return;}}}function lw(t,e){return HB(t,e)&&__(t,e+"Change");}function HB(t,e){return e in t.inputs;}function __(t,e){return e in t.outputs;}var SE=Symbol("BINDING");function A_(t){return t.debugInfo?.className||t.type.name||null;}var bp=class extends bl{ngModule;constructor(e){super(),this.ngModule=e;}resolveComponentFactory(e){let n=rr(e);return new ti(n,this.ngModule);}};function BB(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&Fp.SignalBased)!==0};return o&&(i.transform=o),i;});}function jB(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}));}function VB(t,e,n){let r=e instanceof Ie?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Ka(n,r):n;}function $B(t){let e=t.get(bs,null);if(e===null)throw new I(407,!1);let n=t.get(T_,null),r=t.get(nr,null),o=t.get(pr,null,{optional:!0});return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o};}function GB(t,e){let n=x_(t);return nb(e,n,n==="svg"?mv:n==="math"?dI:null);}function x_(t){return(t.selectors[0][0]||"div").toLowerCase();}var ti=class extends Xp{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=BB(this.componentDef.inputs),this.cachedInputs;}get outputs(){return this.cachedOutputs??=jB(this.componentDef.outputs),this.cachedOutputs;}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=JU(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n;}create(e,n,r,o,i,s){fe(ie.DynamicComponentStart);let a=O(null);try{let c=this.componentDef,u=VB(c,o||this.ngModule,e),l=$B(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(A_(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s);}finally{O(a);}}createComponentRef(e,n,r,o,i,s){let a=this.componentDef,c=zB(o,a,s,i),u=e.rendererFactory.createRenderer(null,a),l=o?_H(u,o,a.encapsulation,n):GB(a,u),d=s?.some(dw)||i?.some(m=>typeof m!="function"&&m.bindings.some(dw)),f=cb(null,c,null,512|R0(a),null,null,e,u,n,null,d0(l,n,!0));f[oe]=l,Wf(f);let h=null;try{let m=_b(oe,f,2,"#host",()=>c.directiveRegistry,!0,0);C0(u,l,m),Qo(l,f),Gp(c,f,m),KE(c,m,f),Ab(c,m),r!==void 0&&qB(m,this.ngContentSelectors,r),h=Nn(m.index,f),f[Be]=h[Be],Db(c,f,null);}catch(m){throw h!==null&&tE(h),tE(f),m;}finally{fe(ie.DynamicComponentEnd),qf();}return new Tp(this.componentType,f,!!d);}};function zB(t,e,n,r){let o=t?["ng-version","21.2.11"]:eH(e.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[SE].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[SE].requiredVars;let h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f));}}let c=[e];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=Fu(d);c.push(f);}return ab(0,null,WB(i,s),1,a,c,null,null,null,[o],null);}function WB(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();
13if(n&2&&e)for(let r of e)r.update();};}function dw(t){let e=t[SE].kind;return e==="input"||e==="twoWay";}var Tp=class extends b_{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ha(n[A],oe),this.location=tc(this._tNode,n),this.instance=Nn(this._tNode.index,n)[Be],this.hostView=this.changeDetectorRef=new ei(n,void 0),this.componentType=e;}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map(),this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView,i=Sb(r,o[A],o,e,n);this.previousInputValues.set(e,n);let s=Nn(r.index,o);qp(s,1);}get injector(){return new hs(this._tNode,this._rootLView);}destroy(){this.hostView.destroy();}onDestroy(e){this.hostView.onDestroy(e);}};function qB(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var Gr=(()=>{class t{}return p(t,"__NG_ELEMENT_ID__",YB),t;})();function YB(){let t=Me();return R_(t,w());}var DE=class t extends Gr{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r;}get element(){return tc(this._hostTNode,this._hostLView);}get injector(){return new hs(this._hostTNode,this._hostLView);}get parentInjector(){let e=VE(this._hostTNode,this._hostLView);if(Gw(e)){let n=dp(e,this._hostLView),r=lp(e),o=n[A].data[r+8];return new hs(o,n);}else return new hs(null,this._hostLView);}clear(){for(;this.length>0;)this.remove(this.length-1);}get(e){let n=fw(this._lContainer);return n!==null&&n[e]||null;}get length(){return this._lContainer.length-Ue;}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=gp(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Es(this._hostTNode,s)),a;}createComponent(e,n,r,o,i,s,a){let c=e&&!H1(e),u;if(c)u=n;else{let b=n||{};u=b.index,r=b.injector,o=b.projectableNodes,i=b.environmentInjector||b.ngModuleRef,s=b.directives,a=b.bindings;}let l=c?e:new ti(rr(e)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let T=(c?d:this.parentInjector).get(Ie,null);T&&(i=T);}let f=rr(l.componentType??{}),h=gp(this._lContainer,f?.id??null),m=h?.firstChild??null,v=l.create(d,o,m,i,s,a);return this.insertImpl(v.hostView,u,Es(this._hostTNode,h)),v;}insert(e,n){return this.insertImpl(e,n,!0);}insertImpl(e,n,r){let o=e._lView;if(pI(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[rt],u=new t(c,c[Pt],c[rt]);u.detach(u.indexOf(e));}}let i=this._adjustIndex(n),s=this._lContainer;return sc(s,o,i,r),e.attachToViewContainerRef(),sv(jv(s),i,e),e;}move(e,n){return this.insert(e,n);}indexOf(e){let n=fw(this._lContainer);return n!==null?n.indexOf(e):-1;}remove(e){let n=this._adjustIndex(e,-1),r=cl(this._lContainer,n);r&&(Uu(jv(this._lContainer),n),Vp(r[A],r));}detach(e){let n=this._adjustIndex(e,-1),r=cl(this._lContainer,n);return r&&Uu(jv(this._lContainer),n)!=null?new ei(r):null;}_adjustIndex(e,n=0){return e??this.length+n;}};function fw(t){return t[ju];}function jv(t){return t[ju]||(t[ju]=[]);}function R_(t,e){let n,r=e[t.index];return ar(r)?n=r:(n=d_(r,e,null,t),e[t.index]=n,ub(e,n)),XB(n,e,t,r),new DE(n,t,e);}function KB(t,e){let n=t[ne],r=n.createComment(""),o=yn(e,t),i=n.parentNode(o);return vs(n,i,r,n.nextSibling(o),!1),r;}var XB=QB,ZB=()=>!1;function M_(t,e,n){return ZB(t,e,n);}function QB(t,e,n,r){if(t[Yo])return;let o;n.type&8?o=en(r):o=KB(e,n),t[Yo]=o;}var CE=class t{queryList;matches=null;constructor(e){this.queryList=e;}clone(){return new t(this.queryList);}setDirty(){this.queryList.setDirty();}},IE=class t{queries;constructor(e=[]){this.queries=e;}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new t(o);}return null;}insertView(e){this.dirtyQueriesWithMatches(e);}detachView(e){this.dirtyQueriesWithMatches(e);}finishViewCreation(e){this.dirtyQueriesWithMatches(e);}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)Ob(e,n).matches!==null&&this.queries[n].setDirty();}},Sp=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=rj(e):this.predicate=e;}},wE=class t{queries;constructor(e=[]){this.queries=e;}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n);}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e);}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new t(n):null;}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n);}getByIndex(e){return this.queries[e];}get length(){return this.queries.length;}track(e){this.queries.push(e);}},_E=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n;}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n);}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1);}template(e,n){this.elementStart(e,n);}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null;}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1);}return this._appliesToNextNode;}matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(e,n,JB(n,i)),this.matchTNodeWithReadOption(e,n,rp(n,e,i,!1,!1));}else r===jr?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,rp(n,e,r,!1,!1));}
13matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null){if(o===Ln||o===Gr||o===jr&&n.type&4)this.addMatch(n.index,-2);else{let i=rp(n,e,o,!1,!1);i!==null&&this.addMatch(n.index,i);}}else this.addMatch(n.index,r);}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n);}};function JB(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];}return null;}function ej(t,e){return t.type&11?tc(t,e):t.type&4?Yp(t,e):null;}function tj(t,e,n,r){return n===-1?ej(e,t):n===-2?nj(t,e,r):rl(t,t[A],n,e);}function nj(t,e,n){if(n===Ln)return tc(e,t);if(n===jr)return Yp(e,t);if(n===Gr)return R_(e,t);}function N_(t,e,n,r){let o=e[Lr].queries[r];if(o.matches===null){let i=t.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(tj(e,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches;}function AE(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=N_(t,e,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=e[-c];for(let d=Ue;d<l.length;d++){let f=l[d];f[Wo]===f[rt]&&AE(f[A],f,u,r);}if(l[us]!==null){let d=l[us];for(let f=0;f<d.length;f++){let h=d[f];AE(h[A],h,u,r);}}}}}return r;}function Nb(t,e){return t[Lr].queries[e].queryList;}function O_(t,e,n){let r=new hp((n&4)===4);return hI(t,e,r,r.destroy),(e[Lr]??=new IE()).queries.push(new CE(r))-1;}function L_(t,e,n){let r=le();return r.firstCreatePass&&(P_(r,new Sp(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),O_(r,w(),e);}function k_(t,e,n,r){let o=le();if(o.firstCreatePass){let i=Me();P_(o,new Sp(e,n,r),i.index),oj(o,t),(n&2)===2&&(o.staticContentQueries=!0);}return O_(o,w(),n);}function rj(t){return t.split(",").map(e=>e.trim());}function P_(t,e,n){t.queries===null&&(t.queries=new wE()),t.queries.track(new _E(e,n));}function oj(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e);}function Ob(t,e){return t.queries.getByIndex(e);}function F_(t,e){let n=t[A],r=Ob(n,e);return r.crossesNgTemplate?AE(n,t,e,[]):N_(n,t,r,e);}function Lb(t,e,n){let r,o=_u(()=>{r._dirtyCounter();let i=ij(r,t);if(e&&i===void 0)throw new I(-951,!1);return i;});return r=o[Fe],r._dirtyCounter=je(0),r._flatValue=void 0,o;}function kb(t){return Lb(!0,!1,t);}function Pb(t){return Lb(!0,!0,t);}function Fb(t){return Lb(!1,!1,t);}function U_(t,e){let n=t[Fe];n._lView=w(),n._queryIndex=e,n._queryList=Nb(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function ij(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[G]&4)return e?void 0:It;let o=Nb(n,r),i=F_(n,r);return o.reset(i,Jw),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue;}var Ts=class{},Jp=class{};var Dp=class extends Ts{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new bp(this);constructor(e,n,r,o=!0){super(),this.ngModuleType=e,this._parent=n;let i=nv(e);this._bootstrapComponents=_0(i.bootstrap),this._r3Injector=Ov(e,n,[{provide:Ts,useValue:this},{provide:bl,useValue:this.componentFactoryResolver},...r],ku(e),new Set(["environment"])),o&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector;}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null;}onDestroy(e){this.destroyCbs.push(e);}},Cp=class extends Jp{moduleType;constructor(e){super(),this.moduleType=e;}create(e){return new Dp(this.moduleType,e,[]);}};var ul=class extends Ts{injector;componentFactoryResolver=new bp(this);instance=null;constructor(e){super();let n=new rs([...e.providers,{provide:Ts,useValue:this},{provide:bl,useValue:this.componentFactoryResolver}],e.parent||Oa(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers();}
13destroy(){this.injector.destroy();}onDestroy(e){this.injector.onDestroy(e);}};function Is(t,e,n=null){return new ul({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector;}var sj=(()=>{let e=class e{_injector;cachedInjectors=new Map();constructor(r){this._injector=r;}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Uf(!1,r.type),i=o.length>0?Is([o],this._injector,""):null;this.cachedInjectors.set(r,i);}return this.cachedInjectors.get(r);}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy();}finally{this.cachedInjectors.clear();}}};p(e,"\u0275prov",E({token:e,providedIn:"environment",factory:()=>new e(M(Ie))}));let t=e;return t;})();function ac(t){return pl(()=>{let e=H_(t),n=$(S({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===$E.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(sj).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||dr.Emulated,styles:t.styles||It,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Et("NgStandalone"),B_(n);let r=t.dependencies;return n.directiveDefs=pw(r,aj),n.pipeDefs=pw(r,rv),n.id=lj(n),n;});}function aj(t){return rr(t)||Fu(t);}function En(t){return pl(()=>({type:t.type,bootstrap:t.bootstrap||It,declarations:t.declarations||It,imports:t.imports||It,exports:t.exports||It,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}));}function cj(t,e){if(t==null)return or;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Fp.None,c=null),n[i]=[r,a,c],e[i]=s;}return n;}function uj(t){if(t==null)return or;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e;}function sn(t){return pl(()=>{let e=H_(t);return B_(e),e;});}function si(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null};}function H_(t){let e={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||or,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||It,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:cj(t.inputs,e),outputs:uj(t.outputs),debugInfo:null};}function B_(t){t.features?.forEach(e=>e(t));}function pw(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let o of n){let i=e(o);i!==null&&r.push(i);}return r;}:null;}function lj(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e;}function dj(t){return e=>{e.controlDef={create:(n,r)=>{n?.ɵngControlCreate(r);},update:(n,r)=>{n?.ɵngControlUpdate?.(r);},passThroughInput:t};};}function fj(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.resolveHostDirectives=pj,n.hostDirectives=r?t.map(xE):[t]):r?n.hostDirectives.unshift(...t.map(xE)):n.hostDirectives.unshift(t);};return e.ngInherit=!0,e;}function pj(t){let e=[],n=!1,r=null,o=null;for(let i=0;i<t.length;i++){let s=t[i];if(s.hostDirectives!==null){let a=e.length;r??=new Map(),o??=new Map(),j_(s,e,r),o.set(s,[a,e.length-1]);}i===0&&cr(s)&&(n=!0,e.push(s));}for(let i=n?1:0;i<t.length;i++)e.push(t[i]);return[e,r,o];}function j_(t,e,n){if(t.hostDirectives!==null)for(let r of t.hostDirectives)if(typeof r=="function"){let o=r
13();for(let i of o)hw(xE(i),e,n);}else hw(r,e,n);}function hw(t,e,n){let r=Fu(t.directive);hj(r.declaredInputs,t.inputs),j_(r,e,n),n.set(r,t),e.push(r);}function xE(t){return typeof t=="function"?{directive:lt(t),inputs:or,outputs:or}:{directive:lt(t.directive),inputs:mw(t.inputs),outputs:mw(t.outputs)};}function mw(t){if(t===void 0||t.length===0)return or;let e={};for(let n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e;}function hj(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o;}}function mj(t){return Object.getPrototypeOf(t.prototype).constructor;}function V_(t){let e=mj(t.type),n=!0,r=[t];for(;e;){let o;if(cr(t))o=e.ɵcmp||e.ɵdir;else{if(e.ɵcmp)throw new I(903,!1);o=e.ɵdir;}if(o){if(n){r.push(o);let s=t;s.inputs=Vv(t.inputs),s.declaredInputs=Vv(t.declaredInputs),s.outputs=Vv(t.outputs);let a=o.hostBindings;a&&bj(t,a);let c=o.viewQuery,u=o.contentQueries;if(c&&vj(t,c),u&&Ej(t,u),gj(t,o),XC(t.outputs,o.outputs),cr(o)&&o.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(t),a===V_&&(n=!1);}}e=Object.getPrototypeOf(e);}yj(r);}function gj(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n]);}}function yj(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Xa(o.hostAttrs,n=Xa(n,o.hostAttrs));}}function Vv(t){return t===or?{}:t===It?[]:t;}function vj(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o);}:t.viewQuery=e;}function Ej(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i);}:t.contentQueries=e;}function bj(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o);}:t.hostBindings=e;}function $_(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=Xa(t.mergedAttrs,t.attrs);let l=t.tView=ab(2,t,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),l.queries=n.queries.embeddedTView(t));}a&&(t.flags|=a),Ur(t,!1);let c=Sj(n,e,t,r);qu()&&gb(n,e,c,t),Qo(c,e);let u=d_(c,e,c,t);e[r+oe]=u,ub(e,u),M_(u,t,e);}function Tj(t,e,n,r,o,i,s,a,c,u,l){let d=n+oe,f;return e.firstCreatePass?(f=Cs(e,d,4,s||null,a||null),$f()&&S_(e,t,f,tn(e.consts,u),Eb),jw(e,f)):f=e.data[d],$_(f,t,e,n,r,o,i,c),Pa(f)&&Gp(e,t,f),u!=null&&oc(t,f,l),f;}function Ss(t,e,n,r,o,i,s,a,c,u,l){let d=n+oe,f;if(e.firstCreatePass){if(f=Cs(e,d,4,s||null,a||null),u!=null){let h=tn(e.consts,u);f.localNames=[];for(let m=0;m<h.length;m+=2)f.localNames.push(h[m],-1);}}else f=e.data[d];return $_(f,t,e,n,r,o,i,c),u!=null&&oc(t,f,l),f;}function G_(t,e,n,r,o,i,s,a){let c=w(),u=le(),l=tn(u.consts,i);return Tj(c,u,t,e,n,r,o,l,void 0,s,a),G_;}function z_(t,e,n,r,o,i,s,a){let c=w(),u=le(),l=tn(u.consts,i);return Ss(c,u,t,e,n,r,o,l,void 0,s,a),z_;}var Sj=Dj;function Dj(t,e,n,r){return $a(!0),e[ne].createComment("");}var rn=function(t){return t[t.NOT_STARTED=0]="NOT_STARTED",t[t.IN_PROGRESS=1]="IN_PROGRESS",t[t.COMPLETE=2]="COMPLETE",t[t.FAILED=3]="FAILED",t;}(rn||{}),gw=0,Cj=1,Ve=function(t){return t[t.Placeholder=0]="Placeholder",t[t.Loading=1]="Loading",t[t.Complete=2]="Complete",t[t.Error=3]="Error",t;}(Ve||{}),ll=function(t){return t[t.Initial=-1]="Initial",t;}(ll||{}),Ij=0,cc=1;var wj=4,_j=5,Aj=6,xj=7,$v=8,Rj=9,Ub=function(t){return t[t.Manual=0]="Manual",t[t.Playthrough=1]="Playthrough",t;}(Ub||{});function W_(t,e,n){let r=Y_(t);e[r]===null&&(e[r]=[]),e[r].push(n);}function ip(t,e){let n=Y_(t),r=e[n];if(r!==null){for(let o of r)o();e[n]=null;}}function q_(t){ip(1,t),ip(0,t),ip(2,t);}function Y_(t){let e=wj;return t===1?e=_j:t===2&&(e=Rj),e;}function eh(t){return t+1;}function ws(t,e){let n=t[A],r=eh(e.index);return t[r];}function Mj(t,e,n){let r=t[A],o=eh(e);t[o]=n;}function uc(t,e){let n=eh(e.index);return t.data[n];}function Nj(t,e,n){let r=eh(e);t.data[r]=n;}function Oj(t,e,n){let r=e[A],o=uc(r,n);switch(t){case Ve.Complete:return o.primaryTmplIndex;case Ve.Loading:return o.loadingTmplIndex;case Ve.Error:return o.errorTmplIndex;case Ve.Placeholder:return o.placeholderTmplIndex;default:return null;}}function yw(t,e){return e===Ve.Placeholder?t.placeholderBlockConfig?.[gw]??null:e===Ve.Loading?t.loadingBlockConfig?.[gw]??null:null;}function Lj(t){return t.loadingBlockConfig?.[Cj]??null;}function vw(t,e){if(!t||t.length===0)return e;let n=new Set(t);for(let r of e)n.add(r);return t.length===n.size?t:Array.from(n);}function kj(t,e){let n=e.primaryTmplIndex+oe;return Ha(t,n);}function Pj(t,e,n,r){let o=n.get(ue);return fU(t,()=>o.run(e),i=>o.runOutsideAngular(()=>dU(i)),r);}function Fj(t,e,n){return n==null?t:n>=0?vv(n,t):t[e.index][Ue]??null;}function Uj(t,e){return Ua(oe+e,t);}function Hj(t,e,n,r,o,i,s,a){let c=t[Xe],u=c.get(ue),l;function d(){if(Fr(t)){l.destroy();return;}let f=ws(t,e),h=f[cc];if(h!==ll.Initial&&h!==Ve.Placeholder){l.destroy();return;}let m=Fj(t,e,r);
13if(!m||(l.destroy(),Fr(m)))return;let v=Uj(m,n),b=o(v,()=>{u.run(()=>{t!==m&&Vf(m,b),i();});},c,a);t!==m&&Gu(m,b),W_(s,f,b);}l=B0({read:d},{injector:c});}var Bj=(()=>{let e=class e{cachedInjectors=new Map();getOrCreateInjector(r,o,i,s){if(!this.cachedInjectors.has(r)){let a=i.length>0?Is(i,o,s):null;this.cachedInjectors.set(r,a);}return this.cachedInjectors.get(r);}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy();}finally{this.cachedInjectors.clear();}}};p(e,"\u0275prov",E({token:e,providedIn:"environment",factory:()=>new e()}));let t=e;return t;})();var K_=new _("");function Gv(t,e,n){return t.get(Bj).getOrCreateInjector(e,t,n,"");}function jj(t,e,n){if(t instanceof Ka){let o=t.injector,i=t.parentInjector,s=Gv(i,e,n);return new Ka(o,s);}let r=t.get(Ie);if(r!==t){let o=Gv(r,e,n);return new Ka(t,o);}return Gv(t,e,n);}function Zo(t,e,n,r=!1){let o=n[rt],i=o[A];if(Fr(o))return;let s=ws(o,e),a=s[cc],c=s[xj];if(!(c!==null&&t<c)&&Ew(a,t)&&Ew(s[Ij]??-1,t)){let u=uc(i,e),d=!r&&!0&&(Lj(u)!==null||yw(u,Ve.Loading)!==null||yw(u,Ve.Placeholder))?Gj:$j;try{d(t,s,n,e,o);}catch(f){Tb(o,f);}}}function Vj(t,e){let n=t[qo]?.findIndex(o=>o.data[qE]===e[cc])??-1;return{dehydratedView:n>-1?t[qo][n]:null,dehydratedViewIx:n};}function $j(t,e,n,r,o){fe(ie.DeferBlockStateStart);let i=Oj(t,o,r);if(i!==null){e[cc]=t;let s=o[A],a=i+oe,c=Ha(s,a),u=0;Cb(n,u);let l;if(t===Ve.Complete){let m=uc(s,r),v=m.providers;v&&v.length>0&&(l=jj(o[Xe],m,v));}let{dehydratedView:d,dehydratedViewIx:f}=Vj(n,e),h=ic(o,c,null,{injector:l,dehydratedView:d});if(sc(n,h,u,Es(c,d)),qp(h,2),f>-1&&n[qo]?.splice(f,1),(t===Ve.Complete||t===Ve.Error)&&Array.isArray(e[$v])){for(let m of e[$v])m();e[$v]=null;}}fe(ie.DeferBlockStateEnd);}function Ew(t,e){return t<e;}function X_(t,e){let n=t[e.index];Zo(Ve.Placeholder,e,n);}function bw(t,e,n){t.loadingPromise.then(()=>{t.loadingState===rn.COMPLETE?Zo(Ve.Complete,e,n):t.loadingState===rn.FAILED&&Zo(Ve.Error,e,n);});}var Gj=null;var th=(()=>{let e=class e{log(r){console.log(r);}warn(r){console.warn(r);}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"platform"}));let t=e;return t;})();function Hb(t){return typeof t=="function"&&t[Fe]!==void 0;}function Bb(t){return Hb(t)&&typeof t.set=="function";}function zj(){return Et("Chrome DevTools profiling"),()=>{};}var nh=new _(""),rh=new _(""),Sl=(()=>{let e=class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(r,o,i){this._ngZone=r,this.registry=o,dv()&&(this._destroyRef=g(Gt,{optional:!0})??void 0),jb||(Q_(i),i.addToWindow(o)),this._watchAngularEvents(),r.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone");});}_watchAngularEvents(){let r=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1;}}),o=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady();});}}));this._destroyRef?.onDestroy(()=>{r.unsubscribe(),o.unsubscribe();});}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks;}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb();}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(r)?(clearTimeout(o.timeoutId),!1):!0);}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[];}addCallback(r,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r();},o)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:i});}whenStable(r,o,i){if(i&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,o,i),this._runCallbacksIfReady();}registerApplication(r){this.registry.registerApplication(r,this);}unregisterApplication(r){this.registry.unregisterApplication(r);}findProviders(r,o,i){return[];}};p(e,"\u0275fac",function(o){return new(o||e)(M(ue),M(Z_),M(rh));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),Z_=(()=>{let e=class e{_applications=new Map();registerApplication(r,o){this._applications.set(r,o);}unregisterApplication(r){this._applications.delete(r);}unregisterAllApplications(){this._applications.clear();}getTestability(r){return this._applications.get(r)||null;}getAllTestabilities(){return Array.from(this._applications.values());}getAllRootElements(){return Array.from(this._applications.keys());}findTestabilityInTree(r,o=!0){return jb?.findTestabilityInTree(this,r,o)??null;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"platform"}));let t=e;return t;})();function Q_(t){jb=t;}var jb;function _s(t){return!!t&&typeof t.then=="function";}function oh(t){return!!t&&typeof t.subscribe=="function";}
13var Vb=new _("");function ih(t){return To([{provide:Vb,multi:!0,useValue:t}]);}var $b=(()=>{let e=class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o;});appInits=g(Vb,{optional:!0})??[];injector=g(ot);constructor(){}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=dt(this.injector,i);if(_s(s))r.push(s);else if(oh(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u});});r.push(a);}}let o=()=>{this.done=!0,this.resolve();};Promise.all(r).then(()=>{o();}).catch(i=>{this.reject(i);}),r.length===0&&o(),this.initialized=!0;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),Dl=new _("");function J_(){My(()=>{let t="";throw new I(600,t);});}function eA(t){return t.isBoundToModule;}var Wj=10;var zr=(()=>{let e=class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(nn);afterRenderManager=g(Bp);zonelessEnabled=g(za);
13rootEffectScheduler=g(Kf);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set();autoDetectTestViews=new Set();includeAllTestViews=!1;afterTick=new Z();get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views];}get destroyed(){return this._destroyed;}componentTypes=[];components=[];internalPendingTask=g(Hr);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(F(r=>!r));}constructor(){g(pr,{optional:!0});}whenStable(){let r;return new Promise(o=>{r=this.isStable.subscribe({next:i=>{i&&o();}});}).finally(()=>{r.unsubscribe();});}_injector=g(Ie);_rendererFactory=null;get injector(){return this._injector;}bootstrap(r,o){return this.bootstrapImpl(r,o);}bootstrapImpl(r,o,i=ot.NULL){return this._injector.get(ue).run(()=>{fe(ie.BootstrapComponentStart);let a=r instanceof Xp;if(!this._injector.get($b).done){let v="";throw new I(405,v);}let u;a?u=r:u=this._injector.get(bl).resolveComponentFactory(r),this.componentTypes.push(u.componentType);let l=eA(u)?void 0:this._injector.get(Ts),d=o||u.selector,f=u.create(i,[],d,l),h=f.location.nativeElement,m=f.injector.get(nh,null);return m?.registerApplication(h),f.onDestroy(()=>{this.detachView(f.hostView),Ju(this.components,f),m?.unregisterApplication(h);}),this._loadComponent(f),fe(ie.BootstrapComponentEnd,f),f;});}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){fe(ie.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Hp.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw fe(ie.ChangeDetectionEnd),new I(101,!1);let r=O(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,O(r),this.afterTick.next(),fe(ie.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bs,null,{optional:!0}));let r=0;for(;this.dirtyFlags!==0&&r++<Wj;){fe(ie.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{fe(ie.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let r=!1;if(this.dirtyFlags&7){let o=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!o&&!$u(i))continue;let s=o&&!this.zonelessEnabled?0:1;a_(i,s),r=!0;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return;}r||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:r})=>$u(r))){this.dirtyFlags|=2;return;}else this.dirtyFlags&=-8;}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this);}detachView(r){let o=r;Ju(this._views,o),o.detachFromAppRef();}_loadComponent(r){this.attachView(r.hostView);try{this.tick();}catch(i){this.internalErrorHandler(i);}this.components.push(r),this._injector.get(Dl,[]).forEach(i=>i(r));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy());}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[];}}onDestroy(r){return this._destroyListeners.push(r),()=>Ju(this._destroyListeners,r);}destroy(){if(this._destroyed)throw new I(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy();}get viewCount(){return this._views.length;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function Ju(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1);}function Gb(){let t,e;return{promise:new Promise((r,o)=>{t=r,e=o;}),resolve:t,reject:e};}function tA(t,e,n){let r=e[Xe],o=e[A];if(t.loadingState!==rn.NOT_STARTED)return t.loadingPromise??Promise.resolve();let i=ws(e,n),s=kj(o,t);t.loadingState=rn.IN_PROGRESS,ip(1,i);let a=t.dependencyResolverFn,c=r.get(fs).add();return a?(t.loadingPromise=Promise.allSettled(a()).then(u=>{let l=!1,d=null,f=[],h=[];for(let m=0;m<u.length;m++){let v=u[m];if(v.status==="fulfilled"){let b=v.value,T=rr(b)||Fu(b);if(T)f.push(T);else{let C=rv(b);C&&h.push(C);}}else{l=!0,d=v.reason instanceof Error?v.reason:new Error(String(v.reason));break;}}if(l){if(t.loadingState=rn.FAILED,t.errorTmplIndex===null){let v="",b=new I(-750,v);Tb(e,b);}}else{t.loadingState=rn.COMPLETE;let m=s.tView;if(f.length>0){m.directiveRegistry=vw(m.directiveRegistry,f);let v=f.map(T=>T.type),b=Uf(!1,...v);t.providers=b;}h.length>0&&(m.pipeRegistry=vw(m.pipeRegistry,h));}}),t.loadingPromise.finally(()=>{t.loadingPromise=null,c();})):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=rn.COMPLETE,c();}),t.loadingPromise);}function qj(t,e){return e[Xe].get(K_,null,{optional:!0})?.behavior!==Ub.Manual;}function nA(t,e,n){let r=e[A],o=e[n.index];if(!qj(t,e))return;let i=ws(e,n),s=uc(r,n);switch(q_(i),s.loadingState){case rn.NOT_STARTED:Zo(Ve.Loading,n,o),tA(s,e,n),s.loadingState===rn.IN_PROGRESS&&bw(s,n,o);break;case rn.IN_PROGRESS:Zo(Ve.Loading,n,o),bw(s,n,o);break;case rn.COMPLETE:Zo(Ve.Complete,n,o);break;case rn.FAILED:Zo(Ve.Error,n,o);break;default:}}function rA(t,e,n){return t===0?Tw(e,n):t===2?!Tw(e,n):!0;}function Yj(t){return t!=null&&(t&1)===1;}function Tw(t,e){let n=t[Xe],r=uc(t[A],e),o=YE(n),i=Yj(r.flags),a=ws(t,e)[Aj]!==null;return!(i&&a&&o);}function Kj(t,e,n,r,o,i,s,a,c,u){let l=w(),d=le(),f=t+oe,h=Ss(l,d,t,null,0,0),m=l[Xe],v=YE(m);if(d.firstCreatePass){Et("NgDefer");let z={primaryTmplIndex:e,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:rn.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:u??0};c?.(d,z,a,s),Nj(d,f,z);}let b=l[f];M_(b,h,l);let T=null,C=null;if(b[qo]?.length>0){let z=b[qo][0].data;C=z[WE]??null,T=z[qE];}let k=[null,ll.Initial,null,null,null,null,C,T,null,null];Mj(l,f,k);let j=null;C!==null&&v&&(j=m.get(l0),j.add(C,{lView:l,tNode:h,lContainer:b}));let W=()=>{q_(k),C!==null&&j?.cleanup([C]);};W_(0,k,()=>Vf(l,W)),Gu(l,W);}function Xj(t){let e=w(),n=ds();if(!rA(0,e,n))return;let r=ur();if(_t(e,r,t)){let o=O(null);try{let i=!!t,a=ws(e,n)[cc];i===!1&&a===ll.Initial?X_(e,n):i===!0&&(a===ll.Initial||a===Ve.Placeholder)&&nA(0,e,n);}finally{O(o);}}}function Zj(t,e,n){let r=w(),o=Me();rA(0,r,o)&&(X_(r,o),Hj(r,o,t,e,Pj,()=>nA(0,r,o),0,n));}function sh(t,e,n,r){let o=w(),i=ur();if(_t(o,i,e)){let s=le(),a=ds();kH(a,o,t,e,n,r);}return sh;}function sp(t){if(Et("NgAnimateEnter"),!vl)return sp;let e=w();if(O0(e))return sp;let n=Me(),r=e[Xe].get(ue);return P0(ew(e),n,()=>Qj(e,n,t,r)),$0(e[Xe]),G0(e[Xe],ew(e)),sp;}function Qj(t,e,n,r){let o=yn(e,t),i=t[ne],s=k0(n),a=[],c=!1,u=d=>{if(il(d)!==o)return;let f=d instanceof AnimationEvent?"animationend":"transitionend";r.runOutsideAngular(()=>{i.listen(o,f,l);});},l=d=>{il(d)===o&&(fb(d,o)&&(c=!0),Jj(d,o,i));};if(s&&s.length>0){r.runOutsideAngular(()=>{a.push(i.listen(o,"animationstart",u)),a.push(i.listen(o,"transitionstart",u));}),aH(o,s,a);for(let d of s)i.addClass(o,d);r.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(!c&&(H0(o,ms,vl),!ms.has(o))){for(let d of s)i.removeClass(o,d);db(o);}});});}}function Jj(t,e,n){let r=Za.get(e);if(!(il(t)!==e||!r)&&fb(t,e)){t.stopPropagation();for(let o of r.classList)n.removeClass(e,o);db(e);}}function ap(t){if(Et("NgAnimateLeave"),!vl)return ap;let e=w();if(O0(e))return ap;let r=Me(),o=e[Xe].get(ue);return P0(Up(e),r,()=>e2(e,r,t,o)),$0(e[Xe]),ap;}function e2(t,e,n,r){let{promise:o,resolve:i}=Gb(),s=yn(e,t),a=t[ne];Jo.add(t[kr]),(Up(t).get(e.index).resolvers??=[]).push(i);let c=k0(n);return c&&c.length>0?t2(s,e,t,c,a,r):i(),{promise:o,resolve:i};}function t2(t,e,n,r,o,i){uH(t,o);let s=[],a=Up(n).get(e.index)?.resolvers,c,u=!1,l=d=>{if(!(il(d)!==t&&d.type!=="animation-fallback")&&(d.type==="animation-fallback"||fb(d,t))){if(u=!0,c&&clearTimeout(c),d.type!=="animation-fallback"&&d.stopPropagation(),ms.delete(t),JI(e,t),Array.isArray(e.projection))for(let h of r)o.removeClass(t,h);tw(a,s),nw(n,e);}};i.runOutsideAngular(()=>{s.push(o.listen(t,"animationend",l)),s.push(o.listen(t,"transitionend",l));}),L0(e,t);for(let d of r)o.addClass(t,d);i.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(u)return;H0(t,ms,vl);let d=ms.get(t);d?(c=setTimeout(()=>{l(new CustomEvent("animation-fallback"));},d.duration+50),s.push(()=>clearTimeout(c))):(JI(e,t),tw(a,s),nw(n,e));});});}function n2(){return w()[wt][Be];}var RE=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),o=Math.max(e,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(e,n){this.attach(n,this.detach(e));}};function zv(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0;}function r2(t,e,n,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(e)){O(r);let u=e.length-1;for(O(null);s<=a&&s<=u;){let l=t.at(s),d=e[s],f=zv(s,l,s,d,n);if(f!==0){f<0&&t.updateValue(s,d),s++;continue;}let h=t.at(a),m=e[u],v=zv(a,h,u,m,n);if(v!==0){v<0&&t.updateValue(a,m),a--,u--;continue;}let b=n(s,l),T=n(a,h),C=n(s,d);if(Object.is(C,T)){let k=n(u,m);Object.is(k,b)?(t.swap(s,a),t.updateValue(a,m),u--,a--):t.move(a,s),t.updateValue(s,d),s++;continue;}if(o??=new Ip(),i??=Dw(t,s,a,n),ME(t,o,s,C))t.updateValue(s,d),s++,a++;else if(i.has(C))o.set(b,t.detach(s)),a--;else{let k=t.create(s,e[s]);t.attach(s,k),s++,a++;}}for(;s<=u;)Sw(t,o,n,s,e[s]),s++;}else if(e!=null){O(r);let u=e[Symbol.iterator]();O(null);let l=u.next();for(;!l.done&&s<=a;){let d=t.at(s),f=l.value,h=zv(s,d,s,f,n);if(h!==0)h<0&&t.updateValue(s,f),s++,l=u.next();
13else{o??=new Ip(),i??=Dw(t,s,a,n);let m=n(s,f);if(ME(t,o,s,m))t.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(m))t.attach(s,t.create(s,f)),s++,a++,l=u.next();else{let v=n(s,d);o.set(v,t.detach(s)),a--;}}}for(;!l.done;)Sw(t,o,n,t.length,l.value),l=u.next();}for(;s<=a;)t.destroy(t.detach(a--));o?.forEach(u=>{t.destroy(u);});}function ME(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1;}function Sw(t,e,n,r,o){if(ME(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i);}}function Dw(t,e,n,r){let o=new Set();for(let i=e;i<=n;i++)o.add(r(i,t.at(i)));return o;}var Ip=class{kvMap=new Map();_vMap=void 0;has(e){return this.kvMap.has(e);}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0;}get(e){return this.kvMap.get(e);}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map());let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(e,n);}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),e(r,n);}}};function o2(t,e,n,r,o,i,s,a){Et("NgControlFlow");let c=w(),u=le(),l=tn(u.consts,i);return Ss(c,u,t,e,n,r,o,l,256,s,a),zb;}function zb(t,e,n,r,o,i,s,a){Et("NgControlFlow");let c=w(),u=le(),l=tn(u.consts,i);return Ss(c,u,t,e,n,r,o,l,512,s,a),zb;}function i2(t,e){Et("NgControlFlow");let n=w(),r=ur(),o=n[r]!==it?n[r]:-1,i=o!==-1?wp(n,oe+o):void 0,s=0;if(_t(n,r,t)){let a=O(null);try{if(i!==void 0&&Cb(i,s),t!==-1){let c=oe+t,u=wp(n,c),l=kE(n[A],c),d=E_(u,l,n),f=ic(n,l,e,{dehydratedView:d});sc(u,f,s,Es(l,d));}}finally{O(a);}}else if(i!==void 0){let a=f_(i,s);a!==void 0&&(a[Be]=e);}}var NE=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-Ue;}};function s2(t){return t;}function a2(t,e){return e;}var OE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r;}};function c2(t,e,n,r,o,i,s,a,c,u,l,d,f){Et("NgControlFlow");let h=w(),m=le(),v=c!==void 0,b=w(),T=a?s.bind(b[wt][Be]):s,C=new OE(v,T);b[oe+t]=C,Ss(h,m,t+1,e,n,r,o,tn(m.consts,i),256),v&&Ss(h,m,t+2,c,u,l,d,tn(m.consts,f),512);}var LE=class extends RE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-Ue;}at(e){return this.getLView(e)[Be].$implicit;}attach(e,n){let r=n[is];this.needsIndexUpdate||=e!==this.length,sc(this.lContainer,n,e,Es(this.templateTNode,r)),l2(this.lContainer,e);}detach(e){return this.needsIndexUpdate||=e!==this.length-1,d2(this.lContainer,e),f2(this.lContainer,e);}create(e,n){let r=gp(this.lContainer,this.templateTNode.tView.ssrId);return ic(this.hostLView,this.templateTNode,new NE(this.lContainer,n,e),{dehydratedView:r});}destroy(e){Vp(e[A],e);}updateValue(e,n){this.getLView(e)[Be].$implicit=n;}reset(){this.needsIndexUpdate=!1;}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Be].$index=e;}getLView(e){return p2(this.lContainer,e);}};function u2(t){let e=O(null),n=vn();try{let r=w(),o=r[A],i=r[n],s=n+1,a=wp(r,s);if(i.liveCollection===void 0){let u=kE(o,s);i.liveCollection=new LE(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(r2(c,t,i.trackByFn,e),c.updateIndexes(),i.hasEmptyBlock){let u=ur(),l=c.length===0;if(_t(r,u,l)){let d=n+2,f=wp(r,d);if(l){let h=kE(o,d),m=E_(f,h,r),v=ic(r,h,void 0,{dehydratedView:m});sc(f,v,0,Es(h,m));}else o.firstUpdatePass&&yB(f),Cb(f,0);}}}finally{O(e);}}function wp(t,e){return t[e];}function l2(t,e){if(t.length<=Ue)return;let n=Ue+e,r=t[n],o=r?r[Pr]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Xe];gH(i,o),Jo.delete(r[kr]),o.detachedLeaveAnimationFns=void 0;}}function d2(t,e){if(t.length<=Ue)return;let n=Ue+e,r=t[n],o=r?r[Pr]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function f2(t,e){return cl(t,e);}function p2(t,e){return f_(t,e);}function kE(t,e){return Ha(t,e);}function oA(t,e,n){let r=w(),o=ur();if(_t(r,o,e)){let i=le(),s=ds();vb(s,r,t,e,r[ne],n);}return oA;}function PE(t,e,n,r,o){Sb(e,t,n,o?"class":"style",r);}function _p(t,e,n,r){let o=w(),i=o[A],s=t+oe,a=i.firstCreatePass?_b(s,o,2,e,Eb,$f(),n,r):i.data[s];if(Do(a)){let c=o[sr].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOff
13set];return c.componentCreate(A_(u),()=>(Cw(t,e,o,a,r),_p));}}return Cw(t,e,o,a,r),_p;}function Cw(t,e,n,r,o){if(zp(r,n,t,e,sA),Pa(r)){let i=n[A];Gp(i,n,r),KE(i,r,n);}o!=null&&oc(n,r);}function Wb(){let t=le(),e=Me(),n=Wp(e);return t.firstCreatePass&&Ab(t,n),Dv(n)&&Cv(),Tv(),n.classesWithoutHost!=null&&z1(n)&&PE(t,n,w(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&W1(n)&&PE(t,n,w(),n.stylesWithoutHost,!1),Wb;}function ah(t,e,n,r){return _p(t,e,n,r),Wb(),ah;}function qb(t,e,n,r){let o=w(),i=o[A],s=t+oe,a=i.firstCreatePass?C_(s,i,2,e,n,r):i.data[s];return zp(a,o,t,e,sA),r!=null&&oc(o,a),qb;}function Yb(){let t=Me(),e=Wp(t);return Dv(e)&&Cv(),Tv(),Yb;}function iA(t,e,n,r){return qb(t,e,n,r),Yb(),iA;}var sA=(t,e,n,r,o)=>($a(!0),nb(e[ne],r,RI()));function Kb(t,e,n){let r=w(),o=r[A],i=t+oe,s=o.firstCreatePass?_b(i,r,8,"ng-container",Eb,$f(),e,n):o.data[i];if(zp(s,r,t,"ng-container",lA),Pa(s)){let a=r[A];Gp(a,r,s),KE(a,s,r);}return n!=null&&oc(r,s),Kb;}function ch(){let t=le(),e=Me(),n=Wp(e);return t.firstCreatePass&&Ab(t,n),ch;}function aA(t,e,n){return Kb(t,e,n),ch(),aA;}function Xb(t,e,n){let r=w(),o=r[A],i=t+oe,s=o.firstCreatePass?C_(i,o,8,"ng-container",e,n):o.data[i];return zp(s,r,t,"ng-container",lA),n!=null&&oc(r,s),Xb;}function cA(){let t=Me(),e=Wp(t);return ch;}function uA(t,e,n){return Xb(t,e,n),cA(),uA;}var lA=(t,e,n,r,o)=>($a(!0),S0(e[ne],""));function h2(){return w();}function dA(t,e,n){let r=w(),o=ur();if(_t(r,o,e)){let i=le(),s=ds();t_(s,r,t,e,r[ne],n);}return dA;}var Ku=void 0;function m2(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5;}var g2=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ku,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ku,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Ku,Ku,Ku],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",m2],el={};function Zb(t,e,n){typeof e!="string"&&(n=e,e=t[Se.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),el[e]=t,n&&(el[e][Se.ExtraData]=n);}function Ft(t){let e=y2(t),n=Iw(e);if(n)return n;let r=e.split("-")[0];if(n=Iw(r),n)return n;if(r==="en")return g2;throw new I(701,!1);}function Qb(t){return Ft(t)[Se.PluralCase];}function Iw(t){return t in el||(el[t]=Ke.ng&&Ke.ng.common&&Ke.ng.common.locales&&Ke.ng.common.locales[t]),el[t];}var Se=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t;}(Se||{});function y2(t){return t.toLowerCase().replace(/_/g,"-");}var v2=["zero","one","two","few","many"];function E2(t,e){let n=Qb(e)(parseInt(t,10)),r=v2[n];return r!==void 0?r:"other";}var Cl="en-US";var fA={marker:"element"},pA={marker:"ICU"},Co=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t;}(Co||{}),hA=Cl;function mA(t){typeof t=="string"&&(hA=t.toLowerCase().replace(/_/g,"-"));}function b2(){return hA;}var dl=0,tl=0;function T2(t){t&&(dl=dl|1<<Math.min(tl,31)),tl++;}function S2(t,e,n){if(tl>0){let r=t.data[n],o=Array.isArray(r)?r:r.update,i=zu()-tl-1;yA(t,e,o,i,dl);}dl=0,tl=0;}function D2(t,e,n){let r=t[ne];switch(n){case Node.COMMENT_NODE:return S0(r,e);case Node.TEXT_NODE:return b0(r,e);case Node.ELEMENT_NODE:return nb(r,e,null);}}var cp=(t,e,n,r)=>($a(!0),D2(t,n,r));function C2(t,e,n,r){let o=t[ne];for(let i=0;i<e.length;i++){let s=e[i++],a=e[i],c=(s&Co.COMMENT)===Co.COMMENT,u=(s&Co.APPEND_EAGERLY)===Co.APPEND_EAGERLY,l=s>>>Co.SHIFT,d=t[l],f=!1;
13d===null&&(d=t[l]=cp(t,l,a,c?Node.COMMENT_NODE:Node.TEXT_NODE),f=qu()),u&&n!==null&&f&&vs(o,n,d,r,!1);}}function gA(t,e,n,r){let o=n[ne],i=null,s;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="string"){let u=e[++a];n[u]===null&&(n[u]=cp(n,u,c,Node.TEXT_NODE));}else if(typeof c=="number")switch(c&1){case 0:let u=cB(c);i===null&&(i=u,s=o.parentNode(r));let l,d;if(u===i?(l=r,d=s):(l=null,d=en(n[u])),d!==null){let v=uB(c),b=n[v];vs(o,d,b,l,!1);let T=Qu(t,v);if(T!==null&&typeof T=="object"){let C=Kp(T,n);C!==null&&gA(t,T.create[C],n,n[T.anchorIdx]);}}break;case 1:let f=c>>>1,h=e[++a],m=e[++a];bb(o,Ua(f,n),null,null,h,m,null);break;default:}else switch(c){case pA:let u=e[++a],l=e[++a];if(n[l]===null){let h=n[l]=cp(n,l,u,Node.COMMENT_NODE);Qo(h,n);}break;case fA:let d=e[++a],f=e[++a];if(n[f]===null){let h=n[f]=cp(n,f,d,Node.ELEMENT_NODE);Qo(h,n);}break;default:}}}function yA(t,e,n,r,o){for(let i=0;i<n.length;i++){let s=n[i],a=n[++i];if(s&o){let c="";for(let u=i+1;u<=i+a;u++){let l=n[u];if(typeof l=="string")c+=l;else if(typeof l=="number")if(l<0)c+=kt(e[r-l]);else{let d=l>>>2;switch(l&3){case 1:let f=n[++u],h=n[++u],m=t.data[d];typeof m=="string"?bb(e[ne],e[d],null,m,f,c,h):vb(m,e,f,c,e[ne],h);break;case 0:let v=e[d];v!==null&&T0(e[ne],v,c);break;case 2:I2(t,Qu(t,d),e,c);break;case 3:ww(t,Qu(t,d),r,e);break;}}}}else{let c=n[i+1];if(c>0&&(c&3)===3){let u=c>>>2,l=Qu(t,u);e[l.currentCaseLViewIndex]<0&&ww(t,l,r,e);}}i+=a;}}function ww(t,e,n,r){let o=r[e.currentCaseLViewIndex];if(o!==null){let i=dl;o<0&&(o=r[e.currentCaseLViewIndex]=~o,i=-1),yA(t,r,e.update[o],n,i);}}function I2(t,e,n,r){let o=w2(e,r);if(Kp(e,n)!==o&&(vA(t,e,n),n[e.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let s=n[e.anchorIdx];s&&gA(t,e.create[o],n,s),gB(n,e.anchorIdx,o);}}function vA(t,e,n){let r=Kp(e,n);if(r!==null){let o=e.remove[r];for(let i=0;i<o.length;i++){let s=o[i];if(s>0){let a=Ua(s,n);a!==null&&rb(n[ne],a);}else vA(t,Qu(t,~s),n);}}}function w2(t,e){let n=t.cases.indexOf(e);if(n===-1)switch(t.type){case 1:{let r=E2(e,b2());n=t.cases.indexOf(r),n===-1&&r!=="other"&&(n=t.cases.indexOf("other"));break;}case 0:{n=t.cases.indexOf("other");break;}}return n===-1?null:n;}var Ap=/�(\d+):?\d*�/gi;var _2=/�(\d+)�/,EA=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,nl="\uFFFD",A2=/�\/?\*(\d+:\d+)�/gi,x2=/�(\/?[#*]\d+):?\d*�/gi,R2=/\uE500/g;function M2(t){return t.replace(R2," ");}function N2(t,e,n,r,o,i){let s=ja(),a=[],c=[],u=[[]],l=[[]];o=L2(o,i);let d=M2(o).split(x2);for(let f=0;f<d.length;f++){let h=d[f];if((f&1)===0){let m=UE(h);for(let v=0;v<m.length;v++){let b=m[v];if((v&1)===0){let T=b;T!==""&&O2(l[0],t,s,u[0],a,c,n,T);}else{let T=b;if(typeof T!="object")throw new Error(`Unable to parse ICU expression in "${o}" message.`);let k=bA(t,s,u[0],n,a,"",!0).index;SA(l[0],t,n,c,e,T,k);}}}else{let m=h.charCodeAt(0)===47,v=h.charCodeAt(m?1:0),b=oe+Number.parseInt(h.substring(m?2:1));if(m)u.shift(),l.shift(),Ur(ja(),!1);else{let T=aB(t,u[0],b);u.unshift([]),Ur(T,!0);let C={kind:2,index:b,children:[],type:v===35?0:1};l[0].push(C),l.unshift(C.children);}}}t.data[r]={create:a,update:c,ast:l[0],parentTNodeIndex:e};}function bA(t,e,n,r,o,i,s){let a=yl(t,r,1,null),c=a<<Co.SHIFT,u=ja();e===u&&(u=null),u===null&&(c|=Co.APPEND_EAGERLY),s&&(c|=Co.COMMENT,iH(fB)),o.push(c,i===null?"":i);let l=Ib(t,a,s?32:1,i===null?"":i,null);g_(n,l);let d=l.index;return Ur(l,!1),u!==null&&e!==u&&sB(u,d),l;}function O2(t,e,n,r,o,i,s,a){let c=a.match(Ap),l=bA(e,n,r,s,o,c?null:a,!1).index;c&&FE(i,a,l,null,0,null),t.push({kind:0,index:l});}function FE(t,e,n,r,o,i){let s=t.length,a=s+1;t.push(null,null);let c=s+2,u=e.split(Ap),l=0;for(let d=0;d<u.length;d++){let f=u[d];if(d&1){let h=o+parseInt(f,10);t.push(-1-h),l=l|TA(h);}else f!==""&&t.push(f);}return t.push(n<<2|(r?1:0)),r&&t.push(r,i),t[s]=l,t[a]=t.length-c,l;}function TA(t){return 1<<Math.min(t,31);}function _w(t){let e,n="",r=0,o=!1,i;for(;(e=A2.exec(t))!==null;)o?e[0]===`${nl}/*${i}${nl}`&&(r=e.index,o=!1):(n+=t.substring(r,e.index+e[0].length),i=e[1],o=!0);return n+=t.slice(r),n;}function L2(t,e){if(dB(e))return _w(t);{let n=t.indexOf(`:${e}${nl}`)+2+e.toString().length,r=t.search(new RegExp(`${nl}\\/\\*\\d+:${e}${nl}`));return _w(t.substring(n,r));}}function SA(t,e,n,r,o,i,s){let a=0,c={type:i.type,currentCaseLViewIndex:yl(e,n,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};U2(r,i,s),iB(e,s,c);let u=i.values,l=[];for(let d=0;d<u.length;d++){let f=u[d],h=[];for(let v=0;v<f.length;v++){let b=f[v];if(typeof b!="string"){let T=h.push(b)-1;f[v]=`<!--\uFFFD${T}\uFFFD-->`;}}let m=[];l.push(m),a=P2(m,e,c,n,r,o,i.cases[d],f.join(""),h)|a;}a&&H2(r,a,s),t.push({kind:3,index:s,cases:l,currentCaseLViewIndex:c.currentCaseLViewIndex});}function k2(t){let e=[],n=[],r=1,o=0;t=t.replace(EA,function(s,a,c){return c==="select"?r=0:r=1,o=parseInt(a.slice(1),10),"";});let i=UE(t);for(let s=0;s<i.length;){let a=i[s++].trim();r===1&&(a=a.replace(/\s*(?:=)?(\w+)\s*/,"$1")),a.length&&e.push(a);let c=UE(i[s++]);e.length>n.length&&n.push(c);}return{type:r,mainBinding:o,cases:e,values:n};}function UE(t){if(!t)return[];let e=0,n=[],r=[],o=/[{}]/g;o.lastIndex=0;let i;for(;i=o.exec(t);){let a=i.index;if(i[0]=="}"){if(n.pop(),n.length==0){let c=t.substring(e,a);EA.test(c)?r.push(k2(c)):r.push(c),e=a+1;}}else{if(n.length==0){let c=t.substring(e,a);r.push(c),e=a+1;}n.push("{");}}let s=t.substring(e);return r.push(s),r;}function P2(t,e,n,r,o,i,s,a,c){let u=[],l=[],d=[];n.cases.push(s),n.create.push(u),n.remove.push(l),n.update.push(d);let h=m0(zE()).getInertBodyElement(a),m=mE(h)||h;return m?DA(t,e,n,r,o,u,l,d,m,i,c,0):0;}function DA(t,e,n,r,o,i,s,a,c,u,l,d){let f=0,h=c.firstChild;for(;h;){let m=yl(e,r,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:let v=h,b=v.tagName.toLowerCase();if(fE.hasOwnProperty(b)){Wv(i,fA,b,u,m),e.data[m]=b;let j=v.attributes;for(let z=0;z<j.length;z++){let pe=j.item(z),tt=pe.name.toLowerCase();!!pe.value.match(Ap)?pE.hasOwnProperty(tt)&&FE(a,pe.value,m,pe.name,0,YI[tt]?nc:null):pE[tt]&&(YI[tt]?xw(i,m,pe.name,"unsafe:blocked"):xw(i,m,pe.name,pe.value));}let W={kind:1,index:m,children:[]};t.push(W),f=DA(W.children,e,n,r,o,i,s,a,h,m,l,d+1)|f,Aw(s,m,d);}break;case Node.TEXT_NODE:let T=h.textContent||"",C=T.match(Ap);Wv(i,null,C?"":T,u,m),Aw(s,m,d),C&&(f=FE(a,T,m,null,0,null)|f),t.push({kind:0,index:m});break;case Node.COMMENT_NODE:let k=_2.exec(h.textContent||"");if(k){let j=parseInt(k[1],10),W=l[j];Wv(i,pA,"",u,m),SA(t,e,r,o,u,W,m),F2(s,m,d);}break;}h=h.nextSibling;}return f;}function Aw(t,e,n){n===0&&t.push(e);}function F2(t,e,n){n===0&&(t.push(~e),t.push(e));}function U2(t,e,n){t.push(TA(e.mainBinding),2,-1-e.mainBinding,n<<2|2);}function H2(t,e,n){t.push(e,1,n<<2|3);}function Wv(t,e,n,r,o){e!==null&&t.push(e),t.push(n,o,lB(0,r,o));}function xw(t,e,n,r){t.push(e<<1|1,n,r);}var Rw=0,B2=/\[(�.+?�?)\]/,j2=/\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g,V2=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,$2=/{([A-Z0-9_]+)}/g,G2=/�I18N_EXP_(ICU(_\d+)?)�/g,z2=/\/\*/,W2=/\d+\:(\d+)/;function q2(t,e={}){let n=t;if(B2.test(t)){let r={},o=[Rw];n=n.replace(j2,(i,s,a)=>{let c=s||a,u=r[c]||[];if(u.length||(c.split("|").forEach(v=>{let b=v.match(W2),T=b?parseInt(b[1],10):Rw,C=z2.test(v);u.push([T,C,v]);}),r[c]=u),!u.length)throw new Error(`i18n postprocess: unmatched placeholder - ${c}`);let l=o[o.length-1],d=0;for(let v=0;v<u.length;v++)if(u[v][0]===l){d=v;break;}let[f,h,m]=u[d];return h?o.pop():l!==f&&o.push(f),u.splice(d,1),m;});}return Object.keys(e).length&&(n=n.replace(V2,(r,o,i,s,a,c)=>e.hasOwnProperty(i)?`${o}${e[i]}${c}`:r),n=n.replace($2,(r,o)=>e.hasOwnProperty(o)?e[o]:r),n=n.replace(G2,(r,o)=>{if(e.hasOwnProperty(o)){let i=e[o];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return i.shift();}return r;})),n;}function CA(t,e,n=-1){let r=le(),o=w(),i=oe+t,s=tn(r.consts,e),a=ja();if(r.firstCreatePass&&N2(r,a===null?0:a.index,o,i,s,n),r.type===2){let f=o[wt];f[G]|=32;}else o[G]|=32;let c=r.data[i],u=a===o[Pt]?null:a,l=q0(r,u,o),d=a&&a.type&8?o[a.index]:null;hB(o,i,a,n),C2(o,c.create,l,d),Rv(!0);}function IA(){Rv(!1);}function Y2(t,e,n){CA(t,e,n),IA();}function wA(t){let e=w();return T2(_t(e,ur(),t)),wA;}function K2(t){S2(le(),w(),t+oe);}function X2(t,e={}){return q2(t,e);}function uh(t,e,n){let r=w(),o=le(),i=Me();return AA(o,r,r[ne],i,t,e,n),uh;}function _A(t,e,n){let r=w(),o=le(),i=Me();return(i.type&3||n)&&Mb(i,o,r,n,r[ne],t,e,gs(i,r,e)),_A;}function AA(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=gs(r,e,i),Mb(r,t,e,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let f=l[d],h=l[d+1];c??=gs(r,e,i),vp(r,e,f,h,o,c);}if(u&&u.length)for(let d of u)c??=gs(r,e,i),vp(r,e,d,o,o,c);}}function Z2(t=1){return _I(t);}function Q2(t,e){let n=null,r=YU(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue;}if(r===null?x0(t,i,!0):ZU(r,i))return o;}return n;}function lh(t){let e=w()[wt][Pt];if(!e.projection){let n=t?t.length:1,r=e.projection=oI(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?Q2(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function dh(t,e=0,n,r,o,i){let s=w(),a=le(),c=r?t+1:null;c!==null&&Ss(s,a,c,r,o,i,null,n);let u=Cs(a,oe+t,16,null,n||null);u.projection===null&&(u.projection=e),_v();let d=!s[is]||Sv();s[wt][Pt].projection[u.projection]===null&&c!==null?J2(s,a,c):d&&!Lp(u)&&CH(a,s,u);}function J2(t,e,n){let r=oe+n,o=e.data[r],i=t[r],s=gp(i,o.tView.ssrId),a=ic(t,o,void 0,{dehydratedView:s});
13sc(i,a,0,Es(o,s));}function fh(t,e,n,r){return k_(t,e,n,r),fh;}function xA(t,e,n){return L_(t,e,n),xA;}function Jb(t){let e=w(),n=le(),r=zf();Wu(r+1);let o=Ob(n,r);if(t.dirty&&fI(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=F_(e,r);t.reset(i,Jw),t.notifyOnChanges();}return!0;}return!1;}function eT(){return Nb(w(),zf());}function RA(t,e,n,r,o){return U_(e,k_(t,n,r,o)),RA;}function MA(t,e,n,r){return U_(t,L_(e,n,r)),MA;}function eV(t=1){Wu(zf()+t);}function tV(t){let e=Av();return Ba(e,oe+t);}function ep(t,e){return t<<17|e<<2;}function Ds(t){return t>>17&32767;}function nV(t){return(t&2)==2;}function rV(t,e){return t&131071|e<<17;}function HE(t){return t|2;}function Ja(t){return(t&131068)>>2;}function qv(t,e){return t&-131069|e<<2;}function oV(t){return(t&1)===1;}function BE(t){return t|1;}function iV(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=Ds(s),c=Ja(s);t[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Na(d,l)>0)&&(u=!0);}else l=n;if(o){if(c!==0){let f=Ds(t[a+1]);t[r+1]=ep(f,a),f!==0&&(t[f+1]=qv(t[f+1],r)),t[a+1]=rV(t[a+1],r);}else t[r+1]=ep(a,0),a!==0&&(t[a+1]=qv(t[a+1],r)),a=r;}else t[r+1]=ep(c,0),a===0?a=r:t[c+1]=qv(t[c+1],r),c=r;u&&(t[r+1]=HE(t[r+1])),Mw(t,l,r,!0),Mw(t,l,r,!1),sV(e,l,t,r,i),s=ep(a,c),i?e.classBindings=s:e.styleBindings=s;}function sV(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Na(i,e)>=0&&(n[r+1]=BE(n[r+1]));}function Mw(t,e,n,r){let o=t[n+1],i=e===null,s=r?Ds(o):Ja(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],u=t[s+1];aV(c,e)&&(a=!0,t[s+1]=r?BE(u):HE(u)),s=r?Ds(u):Ja(u);}a&&(t[n+1]=r?HE(o):BE(o));}function aV(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Na(t,e)>=0:!1;}var ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function NA(t){return t.substring(ft.key,ft.keyEnd);}function cV(t){return t.substring(ft.value,ft.valueEnd);}function uV(t){return kA(t),OA(t,ec(t,0,ft.textEnd));}function OA(t,e){let n=ft.textEnd;return n===e?-1:(e=ft.keyEnd=dV(t,ft.key=e,n),ec(t,e,n));}function lV(t){return kA(t),LA(t,ec(t,0,ft.textEnd));}function LA(t,e){let n=ft.textEnd,r=ft.key=ec(t,e,n);return n===r?-1:(r=ft.keyEnd=fV(t,r,n),r=Nw(t,r,n,58),r=ft.value=ec(t,r,n),r=ft.valueEnd=pV(t,r,n),Nw(t,r,n,59));}function kA(t){ft.key=0,ft.keyEnd=0,ft.value=0,ft.valueEnd=0,ft.textEnd=t.length;}function ec(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e;}function dV(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e;}function fV(t,e,n){let r;for(;e<n&&((r=t.charCodeAt(e))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)e++;return e;}function Nw(t,e,n,r){return e=ec(t,e,n),e<n&&e++,e;}function pV(t,e,n){let r=-1,o=-1,i=-1,s=e,a=s;for(;s<n;){let c=t.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=Ow(t,c,s,n):e===s-4&&i===85&&o===82&&r===76&&c===40?a=s=Ow(t,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33;}return a;}function Ow(t,e,n,r){let o=-1,i=n;for(;i<r;){let s=t.charCodeAt(i++);if(s==e&&o!==92)return i;s==92&&o===92?o=0:o=s;}throw new Error();}function PA(t,e,n){return UA(t,e,n,!1),PA;}function FA(t,e){return UA(t,e,null,!0),FA;}function hV(t){HA(VA,mV,t,!1);}function mV(t,e){for(let n=lV(e);n>=0;n=LA(e,n))VA(t,NA(e),cV(e));}function gV(t){HA(DV,yV,t,!0);}function yV(t,e){for(let n=uV(e);n>=0;n=OA(e,n))Hu(t,NA(e),!0);}function UA(t,e,n,r){let o=w(),i=le(),s=Va(2);if(i.firstUpdatePass&&jA(i,t,s,r),e!==it&&_t(o,s,e)){let a=i.data[vn()];$A(i,a,o,o[ne],t,o[s+1]=IV(e,n),r,s);}}function HA(t,e,n,r){let o=le(),i=Va(2);o.firstUpdatePass&&jA(o,null,i,r);let s=w();if(n!==it&&_t(s,i,n)){let a=o.data[vn()];if(GA(a,r)&&!BA(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Mf(c,n||"")),PE(o,a,s,n,r);}else CV(o,a,s,s[ne],s[i+1],s[i+1]=SV(t,e,n),r,i);}}function BA(t,e){return e>=t.expandoStartIndex;}function jA(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[vn()],s=BA(t,n);GA(i,r)&&e===null&&!s&&(e=!1),e=vV(o,i,e,r),iV(o,i,e,n,s,r);}}function vV(t,e,n,r){let o=DI(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=Yv(null,t,e,n,r),n=fl(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=Yv(o,t,e,n,r),i===null){let c=EV(t,e,r);c!==void 0&&Array.isArray(c)&&(c=Yv(null,t,e,c[1],r),c=fl(c,e.attrs,r),bV(t,e,r,c));}else i=TV(t,e,r);}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n;}function EV(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Ja(r)!==0)return t[Ds(r)];}function bV(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[Ds(o)]=r;}function TV(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=fl(r,s,n);}return fl(r,e.attrs,n);}function Yv(t,e,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;
13for(a===-1?a=n.directiveStart:a++;a<s&&(i=e[a],r=fl(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r;}function fl(t,e,n){let r=n?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Hu(t,s,n?!0:e[++i]));}return t===void 0?null:t;}function SV(t,e,n){if(n==null||n==="")return It;let r=[],o=on(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(o instanceof Set)for(let i of o)t(r,i,!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r;}function VA(t,e,n){Hu(t,e,on(n));}function DV(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&Hu(t,r,n);}function CV(t,e,n,r,o,i,s,a){o===it&&(o=It);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,m=null,v;l===d?(c+=2,u+=2,f!==h&&(m=d,v=h)):d===null||l!==null&&l<d?(c+=2,m=l):(u+=2,m=d,v=h),m!==null&&$A(t,e,n,r,m,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function $A(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,u=c[a+1],l=oV(u)?Lw(c,e,n,o,Ja(u),s):void 0;if(!xp(l)){xp(i)||nV(u)&&(i=Lw(c,null,n,o,a,s));let d=Ua(vn(),n);wH(r,s,d,o,i);}}function Lw(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let c=t[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[o+1];f===it&&(f=d?It:void 0);let h=d?Ff(f,r):l===r?f:void 0;if(u&&!xp(h)&&(h=Ff(c,r)),xp(h)&&(a=h,s))return a;let m=t[o+1];o=s?Ds(m):Ja(m);}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=Ff(c,r));}return a;}function xp(t){return t!==void 0;}function IV(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ku(on(t)))),t;}function GA(t,e){return(t.flags&(e?8:16))!==0;}function wV(t,e=""){let n=w(),r=le(),o=t+oe,i=r.firstCreatePass?Cs(r,o,1,e,null):r.data[o],s=_V(r,n,i,e);n[o]=s,qu()&&gb(r,n,s,i),Ur(i,!1);}var _V=(t,e,n,r)=>($a(!0),b0(e[ne],r));function zA(t,e,n,r=""){return _t(t,ur(),n)?e+kt(n)+r:it;}function AV(t,e,n,r,o,i=""){let s=zu(),a=Qa(t,s,n,o);return Va(2),a?e+kt(n)+r+kt(o)+i:it;}function xV(t,e,n,r,o,i,s,a=""){let c=zu(),u=Rb(t,c,n,o,s);return Va(3),u?e+kt(n)+r+kt(o)+i+kt(s)+a:it;}function RV(t,e,n,r,o,i,s,a,c,u=""){let l=zu(),d=Tl(t,l,n,o,s,c);return Va(4),d?e+kt(n)+r+kt(o)+i+kt(s)+a+kt(c)+u:it;}function WA(t){return tT("",t),WA;}function tT(t,e,n){let r=w(),o=zA(r,t,e,n);return o!==it&&ph(r,vn(),o),tT;}function qA(t,e,n,r,o){let i=w(),s=AV(i,t,e,n,r,o);return s!==it&&ph(i,vn(),s),qA;}function YA(t,e,n,r,o,i,s){let a=w(),c=xV(a,t,e,n,r,o,i,s);return c!==it&&ph(a,vn(),c),YA;}function KA(t,e,n,r,o,i,s,a,c){let u=w(),l=RV(u,t,e,n,r,o,i,s,a,c);return l!==it&&ph(u,vn(),l),KA;}function ph(t,e,n){let r=Ua(e,t);T0(t[ne],r,n);}function XA(t,e,n){Bb(e)&&(e=e());let r=w(),o=ur();if(_t(r,o,e)){let i=le(),s=ds();vb(s,r,t,e,r[ne],n);}return XA;}function MV(t,e){let n=Bb(t);return n&&t.set(e),n;}function ZA(t,e){let n=w(),r=le(),o=Me();return AA(r,n,n[ne],o,t,e),ZA;}var QA={};function JA(t){Et("NgLet");let e=le(),n=w(),r=t+oe,o=Cs(e,r,128,null,null);return Ur(o,!1),Vu(e,n,r,QA),JA;}function NV(t){let e=le(),n=w(),r=vn();return Vu(e,n,r,t),t;}function OV(t){let e=Av(),n=Ba(e,oe+t);if(n===QA)throw new I(314,!1);return n;}function LV(t){return _t(w(),ur(),t)?kt(t):it;}function kV(t,e,n=""){return zA(w(),t,e,n);}function kw(t,e,n){let r=le();r.firstCreatePass&&ex(e,r.data,r.blueprint,cr(t),n);}function ex(t,e,n,r,o){if(t=lt(t),Array.isArray(t))for(let i=0;i<t.length;i++)ex(t[i],e,n,r,o);else{let i=le(),s=w(),a=Me(),c=ns(t)?t:lt(t.provide),u=lv(t),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(ns(t)||!t.multi){let h=new ys(u,o,se,null),m=Xv(c,e,o?l:l+f,d);m===-1?(Jv(pp(a,s),i,c),Kv(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[m]=h,s[m]=h);}else{let h=Xv(c,e,l+f,d),m=Xv(c,e,l,l+f),v=h>=0&&n[h],b=m>=0&&n[m];if(o&&!b||!o&&!v){Jv(pp(a,s),i,c);let T=UV(o?FV:PV,n.length,o,r,u,t);!o&&b&&(n[m].providerFactory=T),Kv(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(T),s.push(T);}else{let T=tx(n[o?m:h],u,!o&&r);Kv(i,t,h>-1?h:m,T);}!o&&r&&b&&n[m].componentProviders++;}}}function Kv(t,e,n,r){let o=ns(e),i=uI(e);if(o||i){let c=(i?lt(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function tx(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1;}function Xv(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1;}function PV(t,e,n,r,o){return jE(this.multi,[]);}function FV(t,e,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=rl(r,r[A],this.providerFactory.index,o);s=c.slice(0,a),jE(i,s);for(let u=a;u<c.length;u++)s.push(c[u]);}else s=[],jE(i,s);return s;}function jE(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r());}return e;}function UV(t,e,n,r,o,i){let s=new ys(t,n,se,null);return s.multi=[],s.index=e,s.componentProviders=0,tx(s,o,r&&!n),s;}function HV(t,e){return n=>{n.providersResolver=(r,o)=>kw(r,o?o(t):t,!1),e&&(n.viewProvidersResolver=(r,o)=>kw(r,o?o(e):e,!0));};}function BV(t,e){let n=On()+t,r=w();return r[n]===it?ii(r,n,e()):Qp(r,n);}function jV(t,e,n){return nx(w(),On(),t,e,n);}function VV(t,e,n,r){return rx(w(),On(),t,e,n,r);}function $V(t,e,n,r,o){return ox(w(),On(),t,e,n,r,o);}function GV(t,e,n,r,o,i,s){return YV(w(),On(),t,e,n,r,o,i);}function zV(t,e,n,r,o,i,s){let a=On()+t,c=w(),u=Tl(c,a,n,r,o,i);return _t(c,a+4,s)||u?ii(c,a+5,e(n,r,o,i,s)):Qp(c,a+5);}function WV(t,e,n,r,o,i,s,a){let c=On()+t,u=w(),l=Tl(u,c,n,r,o,i);return Qa(u,c+4,s,a)||l?ii(u,c+6,e(n,r,o,i,s,a)):Qp(u,c+6);}function qV(t,e,n,r,o,i,s,a,c){let u=On()+t,l=w(),d=Tl(l,u,n,r,o,i);return Rb(l,u+4,s,a,c)||d?ii(l,u+7,e(n,r,o,i,s,a,c)):Qp(l,u+7);}function hh(t,e){let n=t[e];return n===it?void 0:n;}function nx(t,e,n,r,o,i){let s=e+n;return _t(t,s,o)?ii(t,s+1,i?r.call(i,o):r(o)):hh(t,s+1);}function rx(t,e,n,r,o,i,s){let a=e+n;return Qa(t,a,o,i)?ii(t,a+2,s?r.call(s,o,i):r(o,i)):hh(t,a+2);}function ox(t,e,n,r,o,i,s,a){let c=e+n;
13return Rb(t,c,o,i,s)?ii(t,c+3,a?r.call(a,o,i,s):r(o,i,s)):hh(t,c+3);}function YV(t,e,n,r,o,i,s,a,c){let u=e+n;return Tl(t,u,o,i,s,a)?ii(t,u+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):hh(t,u+4);}function KV(t,e){let n=le(),r,o=t+oe;n.firstCreatePass?(r=XV(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=$o(r.type,!0)),s,a=$t(se);try{let c=fp(!1),u=i();return fp(c),Vu(n,w(),o,u),u;}finally{$t(a);}}function XV(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r;}}function ZV(t,e,n){let r=t+oe,o=w(),i=Ba(o,r);return nT(o,r)?nx(o,On(),e,i.transform,n,i):i.transform(n);}function QV(t,e,n,r){let o=t+oe,i=w(),s=Ba(i,o);return nT(i,o)?rx(i,On(),e,s.transform,n,r,s):s.transform(n,r);}function JV(t,e,n,r,o){let i=t+oe,s=w(),a=Ba(s,i);return nT(s,i)?ox(s,On(),e,a.transform,n,r,o,a):a.transform(n,r,o);}function nT(t,e){return t[A].data[e].pure;}function e$(t,e){return Yp(t,e);}var Rp=class{ngModuleFactory;componentFactories;constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n;}},rT=(()=>{let e=class e{compileModuleSync(r){return new Cp(r);}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r));}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=nv(r),s=_0(i.declarations).reduce((a,c)=>{let u=rr(c);return u&&a.push(new ti(u)),a;},[]);return new Rp(o,s);}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r));}clearCache(){}clearCacheFor(r){}getModuleId(r){}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();var ix=(()=>{let e=class e{applicationErrorHandler=g(nn);appRef=g(zr);taskService=g(Hr);ngZone=g(ue);zonelessEnabled=g(za);tracing=g(pr,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Le();angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ou):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Yf,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let r=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(r);return;}this.switchToMicrotaskScheduler(),this.taskService.remove(r);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let r=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r);});});}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 0:{this.appRef.dirtyFlags|=2;break;}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break;}case 6:{this.appRef.dirtyFlags|=2;break;}case 12:{this.appRef.dirtyFlags|=16;break;}case 13:{this.appRef.dirtyFlags|=2;break;}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?OI:kv;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()));}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ou+this.angularZoneId));}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return;}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(o){this.applicationErrorHandler(o);}finally{this.taskService.remove(r),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r);}}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function sx(){return[{provide:nr,useExisting:ix},{provide:ue,useClass:Lu},{provide:za,useValue:!0}];}function t$(){return typeof $localize<"u"&&$localize.locale||Cl;}var an=new _("",{factory:()=>g(an,{optional:!0,skipSelf:!0})||t$()});var Il=class{destroyed=!1;listeners=null;errorHandler=g(xn,{optional:!0});destroyRef=g(Gt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null;});}subscribe(e){if(this.destroyed)throw new I(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let n=this.listeners?.indexOf(e);n!==void 0&&n!==-1&&this.listeners?.splice(n,1);}};}emit(e){if(this.destroyed){console.warn(Rn(953,!1));return;}if(this.listeners===null)return;let n=O(null);try{for(let r of this.listeners)try{r(e);}catch(o){this.errorHandler?.handleError(o);}}finally{O(n);}}};function n$(t){return t.destroyRef;}function _e(t){return zC(t);}function wl(t,e){return _u(t,e?.equal);}var r$=t=>t;function oT(t,e){if(typeof t=="function"){let n=Py(t,r$,e?.equal);return ax(n,e?.debugName);}else{let n=Py(t.source,t.computation,t.equal);
13return ax(n,t.debugName);}}function ax(t,e){let n=t[Fe],r=t;return r.set=o=>$C(n,o),r.update=o=>GC(n,o),r.asReadonly=Yu.bind(t),r;}var vh=Symbol("InputSignalNode#UNSET"),vx=$(S({},Au),{transformFn:void 0,applyValueToInputSignal(t,e){Vo(t,e);}});function Ex(t,e){let n=Object.create(vx);n.value=t,n.transformFn=e?.transform;function r(){if(go(n),n.value===vh){let o=null;throw new I(-950,o);}return n.value;}return r[Fe]=n,r;}var gh=class{attributeName;constructor(e){this.attributeName=e;}__NG_ELEMENT_ID__=()=>hl(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`;}};function Pfe(t){return new Il();}function cx(t,e){return Ex(t,e);}function d$(t){return Ex(vh,t);}var bx=(cx.required=d$,cx);function ux(t,e){return kb(e);}function f$(t,e){return Pb(e);}var Ffe=(ux.required=f$,ux);function Ufe(t,e){return Fb(e);}function lx(t,e){return kb(e);}function p$(t,e){return Pb(e);}var Hfe=(lx.required=p$,lx);function Bfe(t,e){return Fb(e);}function Tx(t,e){let n=Object.create(vx),r=new Il();n.value=t;function o(){return go(n),dx(n.value),n.value;}return o[Fe]=n,o.asReadonly=Yu.bind(o),o.set=i=>{n.equal(n.value,i)||(Vo(n,i),r.emit(i));},o.update=i=>{dx(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o;}function dx(t){if(t===vh)throw new I(952,!1);}function fx(t,e){return Tx(t,e);}function h$(t){return Tx(vh,t);}var jfe=(fx.required=h$,fx);var m$=(()=>{let e=class e{zone=g(ue);changeDetectionScheduler=g(nr);applicationRef=g(zr);applicationErrorHandler=g(nn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(r){this.applicationErrorHandler(r);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),g$=new _("",{factory:()=>!1});function y$({ngZoneFactory:t,scheduleInRootZone:e}){return t??=()=>new ue($(S({},Sx()),{scheduleInRootZone:e})),[{provide:za,useValue:!1},{provide:ue,useFactory:t},{provide:bo,multi:!0,useFactory:()=>{let n=g(m$,{optional:!0});return()=>n.initialize();}},{provide:bo,multi:!0,useFactory:()=>{let n=g(v$);return()=>{n.initialize();};}},{provide:Yf,useValue:e??Lv}];}function Vfe(t){let e=t?.scheduleInRootZone,n=y$({ngZoneFactory:()=>{let r=Sx(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&Et("NgZone_CoalesceEvent"),new ue(r);},scheduleInRootZone:e});return To([{provide:g$,useValue:!0},n]);}function Sx(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1};}var v$=(()=>{let e=class e{subscription=new Le();initialized=!1;zone=g(ue);pendingTasks=g(Hr);initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ue.assertInAngularZone(),r??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();var sT=new _(""),E$=new _("");function _l(t){return!t.moduleRef;}function b$(t){let e=_l(t)?t.r3Injector:t.moduleRef.injector,n=e.get(ue);return n.run(()=>{_l(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(nn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),_l(t)){let i=()=>e.destroy(),s=t.platformInjector.get(sT);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(sT);s.add(i),t.moduleRef.onDestroy(()=>{Ju(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i);});}return S$(r,n,()=>{let i=e.get(Hr),s=i.add(),a=e.get($b);
13return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(an,Cl);if(mA(c||Cl),!e.get(E$,!0))return _l(t)?e.get(zr):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(_l(t)){let l=e.get(zr);return t.rootComponent!==void 0&&l.bootstrap(t.rootComponent),l;}else return T$?.(t.moduleRef,t.allPlatformModules),t.moduleRef;}).finally(()=>{i.remove(s);});});});}var T$;function S$(t,e,n){try{let r=n();return _s(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o;}):r;}catch(r){throw e.runOutsideAngular(()=>t(r)),r;}}var mh=null;function D$(t=[],e){return ot.create({name:e,providers:[{provide:Bu,useValue:"platform"},{provide:sT,useValue:new Set([()=>mh=null])},...t]});}function C$(t=[]){if(mh)return mh;let e=D$(t);return mh=e,J_(),I$(e),e;}function I$(t){let e=t.get(Np,null);dt(t,()=>{e?.forEach(n=>n());});}var w$=1e4;var $fe=w$-1e3;var As=(()=>{class t{}return p(t,"__NG_ELEMENT_ID__",_$),t;})();function _$(t){return A$(Me(),w(),(t&16)===16);}function A$(t,e,n){if(Do(t)&&!n){let r=Nn(t.index,e);return new ei(r,r);}else if(t.type&175){let r=e[wt];return new ei(r,e);}return null;}var aT=class{supports(e){return xb(e);}create(e){return new cT(e);}},x$=(t,e)=>e,cT=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||x$;}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n);}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<px(r,o,i)?n:r,a=px(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let f=0;f<u;f++){let h=f<i.length?i[f]:i[f]=0,m=h+f;l<=m&&m<u&&(i[f]=h+1);}let d=s.previousIndex;i[d]=l-u;}}a!==c&&e(s,a,c);}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n);}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n);}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n);}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n);}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n);}diff(e){if(e==null&&(e=[]),!xb(e))throw new I(900,!1);return this.check(e)?this:null;}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next;}else o=0,I_(e,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++;}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty;}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null;}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null;}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new uT(n,r),i,o)),e;}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e;}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n;}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null);}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e;}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e;}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e;}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new yh()),this._linkedRecords.put(e),e.currentIndex=r,e;}_remove(e){return this._addToRemovals(this._unlink(e));}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e;}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e;}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new yh()),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e;}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e;}},uT=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,n){this.item=e,this.trackById=n;}},lT=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e);}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null;}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null;}},yh=class{map=new Map();put(e){let n=e.trackById,r=this.map.get(n);r||(r=new lT(),this.map.set(n,r)),r.add(e);}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null;}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e;}get isEmpty(){return this.map.size===0;}clear(){this.map.clear();}};function px(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o;}var dT=class{supports(e){return e instanceof Map||Zp(e);}create(){return new fT();}},fT=class{_records=new Map();_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null;}forEachItem(e){let n;for(n=this._mapHead;n!==null;n=n._next)e(n);}forEachPreviousItem(e){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)e(n);}forEachChangedItem(e){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)e(n);}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n);}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n);}diff(e){if(!e)e=new Map();else if(!(e instanceof Map||Zp(e)))throw new I(900,!1);return this.check(e)?this:null;}check(e){this._reset();let n=this._mapHead;
13if(this._appendAfter=null,this._forEach(e,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i);}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null;}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty;}_insertBeforeOrAppend(e,n){if(e){let r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e;}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null;}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o;}let r=new pT(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r;}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null;}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e));}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e);}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e);}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r));}},pT=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e;}};function hx(){return new mT([new aT()]);}var mT=(()=>{let e=class e{factories;constructor(r){this.factories=r;}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i);}return new e(r);}static extend(r){return{provide:e,useFactory:()=>{let o=g(e,{optional:!0,skipSelf:!0});return e.create(r,o||hx());}};}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new I(901,!1);}};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:hx}));let t=e;return t;})();function mx(){return new Eh([new dT()]);}var Eh=(()=>{let e=class e{factories;constructor(r){this.factories=r;}static create(r,o){if(o){let i=o.factories.slice();r=r.concat(i);}return new e(r);}static extend(r){return{provide:e,useFactory:()=>{let o=g(e,{optional:!0,skipSelf:!0});return e.create(r,o||mx());}};}find(r){let o=this.factories.find(i=>i.supports(r));if(o)return o;throw new I(901,!1);}};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:mx}));let t=e;return t;})();var Dx=(()=>{let e=class e{constructor(r){}};p(e,"\u0275fac",function(o){return new(o||e)(M(zr));}),p(e,"\u0275mod",En({type:e})),p(e,"\u0275inj",Jt({}));let t=e;return t;})();function Cx(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;fe(ie.BootstrapApplicationStart);try{let i=o?.injector??C$(r),s=[sx(),kI,...(n||[])],a=new ul({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return b$({r3Injector:a.injector,platformInjector:i,rootComponent:e});}catch(i){return Promise.reject(i);}finally{fe(ie.BootstrapApplicationEnd);}}function Al(t){return typeof t=="boolean"?t:t!=null&&t!=="false";}function R$(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e;}var iT=Symbol("NOT_SET"),Ix=new Set(),M$=$(S({},Au),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:iT,cleanup:null,consumerMarkedDirty(){
13if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0;}this.sequence.scheduler.notify(7);},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==iT&&!Qi(this))return this.signal;try{for(let o of this.cleanup??Ix)o();}finally{this.cleanup?.clear();}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=Nr(this),r;try{r=this.userFn.apply(null,e);}finally{yo(this,n);}return(this.value===iT||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal;}}),hT=class extends sl{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(e,n,r,o,i,s=null){super(e,[void 0,void 0,void 0,void 0],r,!1,i.get(Gt),s),this.scheduler=o;for(let a of pb){let c=n[a];if(c===void 0)continue;let u=Object.create(M$);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=!0,u.signal=()=>(go(u),u.value),u.signal[Fe]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set()).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();super.destroy();for(let e of this.nodes)if(e)try{for(let n of e.cleanup??Ix)n();}finally{vo(e);}}};function Gfe(t,e){let n=e?.injector??g(ot),r=n.get(nr),o=n.get(Bp),i=n.get(pr,null,{optional:!0});o.impl??=n.get(hb);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get(Ga,null,{optional:!0}),c=new hT(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c;}function zfe(t,e){let n=rr(t),r=e.elementInjector||Oa();return new ti(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector,e.directives,e.bindings);}function wx(t){let e=rr(t);if(!e)return null;let n=new ti(e);return{get selector(){return n.selector;},get type(){return n.componentType;},get inputs(){return n.inputs;},get outputs(){return n.outputs;},get ngContentSelectors(){return n.ngContentSelectors;},get isStandalone(){return e.standalone;},get isSignal(){return e.signals;}};}var _x=null;function hr(){return _x;}function gT(t){_x??=t;}var xl=class{},wo=(()=>{let e=class e{historyGo(r){throw new Error("");}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>g(Ax),providedIn:"platform"}));let t=e;return t;})(),yT=new _(""),Ax=(()=>{let e=class e extends wo{_location;_history;_doc=g(we);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return hr().getBaseHref(this._doc);}onPopState(r){let o=hr().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r);}onHashChange(r){let o=hr().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r);}get href(){return this._location.href;}get protocol(){return this._location.protocol;}get hostname(){return this._location.hostname;}get port(){return this._location.port;}get pathname(){return this._location.pathname;}get search(){return this._location.search;}get hash(){return this._location.hash;}set pathname(r){this._location.pathname=r;}pushState(r,o,i){this._history.pushState(r,o,i);}replaceState(r,o,i){this._history.replaceState(r,o,i);}forward(){this._history.forward();}back(){this._history.back();}historyGo(r=0){this._history.go(r);}getState(){return this._history.state;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>new e(),providedIn:"platform"}));let t=e;return t;})();function bh(t,e){return t?e?t.endsWith("/")?e.startsWith("/")?t+e.slice(1):t+e:e.startsWith("/")?t+e:`${t}/${e}`:t:e;}function xx(t){let e=t.search(/#|\?|$/);return t[e-1]==="/"?t.slice(0,e-1)+t.slice(e):t;}function mr(t){return t&&t[0]!=="?"?`?${t}`:t;}var gr=(()=>{let e=class e{historyGo(r){throw new Error("");}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>g(Sh),providedIn:"root"}));let t=e;return t;})(),Th=new _(""),Sh=(()=>{let e=class e extends gr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(r,o){super(),this._platformLocation=r,this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??g(we).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.on
13HashChange(r));}getBaseHref(){return this._baseHref;}prepareExternalUrl(r){return bh(this._baseHref,r);}path(r=!1){let o=this._platformLocation.pathname+mr(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o;}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+mr(s));this._platformLocation.pushState(r,o,a);}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+mr(s));this._platformLocation.replaceState(r,o,a);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState();}historyGo(r=0){this._platformLocation.historyGo?.(r);}};p(e,"\u0275fac",function(o){return new(o||e)(M(wo),M(Th,8));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();var ai=(()=>{let e=class e{_subject=new Z();_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(r){this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=L$(xx(Rx(o))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(r=!1){return this.normalize(this._locationStrategy.path(r));}getState(){return this._locationStrategy.getState();}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+mr(o));}normalize(r){return e.stripTrailingSlash(O$(this._basePath,Rx(r)));}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r);}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+mr(o)),i);}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+mr(o)),i);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(r=0){this._locationStrategy.historyGo?.(r);}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state);}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);};}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o));}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o??void 0,complete:i??void 0});}};p(e,"normalizeQueryParams",mr),p(e,"joinWithSlash",bh),p(e,"stripTrailingSlash",xx),p(e,"\u0275fac",function(o){return new(o||e)(M(gr));}),p(e,"\u0275prov",E({token:e,factory:()=>N$(),providedIn:"root"}));let t=e;return t;})();function N$(){return new ai(M(gr));}function O$(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e;}function Rx(t){return t.replace(/\/index.html$/,"");}function L$(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n;}return t;}var wT=(()=>{let e=class e extends gr{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(r,o){super(),this._platformLocation=r,o!=null&&(this._baseHref=o);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r));}getBaseHref(){return this._baseHref;}path(r=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o;}prepareExternalUrl(r){let o=bh(this._baseHref,r);return o.length>0?"#"+o:o;}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+mr(s))||this._platformLocation.pathname;this._platformLocation.pushState(r,o,a);}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+mr(s))||this._platformLocation.pathname;this._platformLocation.replaceState(r,o,a);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState();}historyGo(r=0){this._platformLocation.historyGo?.(r);}};p(e,"\u0275fac",function(o){return new(o||e)(M(wo),M(Th,8));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})();var _T=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scie
13ntific=3]="Scientific",t;}(_T||{});var Ut=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t;}(Ut||{}),ye=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t;}(ye||{}),cn=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t;}(cn||{}),un={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Fx(t){return Ft(t)[Se.LocaleId];}function Ux(t,e,n){let r=Ft(t),o=[r[Se.DayPeriodsFormat],r[Se.DayPeriodsStandalone]],i=Pn(o,e);return Pn(i,n);}function Hx(t,e,n){let r=Ft(t),o=[r[Se.DaysFormat],r[Se.DaysStandalone]],i=Pn(o,e);return Pn(i,n);}function Bx(t,e,n){let r=Ft(t),o=[r[Se.MonthsFormat],r[Se.MonthsStandalone]],i=Pn(o,e);return Pn(i,n);}function jx(t,e){let r=Ft(t)[Se.Eras];return Pn(r,e);}function Rl(t,e){let n=Ft(t);return Pn(n[Se.DateFormat],e);}function Ml(t,e){let n=Ft(t);return Pn(n[Se.TimeFormat],e);}function Nl(t,e){let r=Ft(t)[Se.DateTimeFormat];return Pn(r,e);}function Wr(t,e){let n=Ft(t),r=n[Se.NumberSymbols][e];if(typeof r>"u"){if(e===un.CurrencyDecimal)return n[Se.NumberSymbols][un.Decimal];if(e===un.CurrencyGroup)return n[Se.NumberSymbols][un.Group];}return r;}function Vx(t,e){return Ft(t)[Se.NumberFormats][e];}function $x(t){if(!t[Se.ExtraData])throw new I(2303,!1);}function Gx(t){let e=Ft(t);return $x(e),(e[Se.ExtraData][2]||[]).map(r=>typeof r=="string"?vT(r):[vT(r[0]),vT(r[1])]);}function zx(t,e,n){let r=Ft(t);$x(r);let o=[r[Se.ExtraData][0],r[Se.ExtraData][1]],i=Pn(o,e)||[];return Pn(i,n)||[];}function k$(t){return Ft(t)[Se.Directionality];}function Pn(t,e){for(let n=e;n>-1;n--)if(typeof t[n]<"u")return t[n];throw new I(2304,!1);}function vT(t){let[e,n]=t.split(":");return{hours:+e,minutes:+n};}var P$=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Dh={},F$=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Wx(t,e,n,r){let o=W$(t);e=_o(n,e)||e;let s=[],a;for(;e;)if(a=F$.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l;}else{s.push(e);break;}let c=o.getTimezoneOffset();r&&(c=Yx(r,c),o=z$(o,r));let u="";return s.forEach(l=>{let d=$$(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u;}function Ah(t,e,n){let r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r;}function _o(t,e){let n=Fx(t);if(Dh[n]??={},Dh[n][e])return Dh[n][e];let r="";switch(e){case"shortDate":r=Rl(t,cn.Short);break;case"mediumDate":r=Rl(t,cn.Medium);break;case"longDate":r=Rl(t,cn.Long);break;case"fullDate":r=Rl(t,cn.Full);break;case"shortTime":r=Ml(t,cn.Short);break;case"mediumTime":r=Ml(t,cn.Medium);break;case"longTime":r=Ml(t,cn.Long);break;case"fullTime":r=Ml(t,cn.Full);break;case"short":let o=_o(t,"shortTime"),i=_o(t,"shortDate");r=Ch(Nl(t,cn.Short),[o,i]);break;case"medium":let s=_o(t,"mediumTime"),a=_o(t,"mediumDate");r=Ch(Nl(t,cn.Medium),[s,a]);break;case"long":let c=_o(t,"longTime"),u=_o(t,"longDate");r=Ch(Nl(t,cn.Long),[c,u]);break;case"full":let l=_o(t,"fullTime"),d=_o(t,"fullDate");r=Ch(Nl(t,cn.Full),[l,d]);break;}return r&&(Dh[n][e]=r),r;}function Ch(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return e!=null&&r in e?e[r]:n;})),t;}function yr(t,e,n="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.slice(s.length-e)),i+s;}function U$(t,e){return yr(t,3).substring(0,e);}function st(t,e,n=0,r=!1,o=!1){return function(i,s){let a=H$(t,i);if((n>0||a>-n)&&(a+=n),t===3)a===0&&n===-12&&(a=12);else if(t===6)return U$(a,e);let c=Wr(s,un.MinusSign);return yr(a,e,c,r,o);};}function H$(t,e){switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();case 3:return e.getHours();case 4:return e.getMinutes();case 5:return e.getSeconds();case 6:return e.getMilliseconds();case 7:return e.getDay();default:throw new I(2301,!1);}}function De(t,e,n=Ut.Format,r=!1){return function(o,i){return B$(o,i,t,e,n,r);};}function B$(t,e,n,r,o,i){switch(n){case 2:return Bx(e,o,r)[t.getMonth()];case 1:return Hx(e,o,r)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(i){let u=Gx(e),l=zx(e,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,m]=f,v=s>=h.hours&&a>=h.minutes,b=s<m.hours||s===m.hours&&a<m.minutes;if(h.hours<m.hours){if(v&&b)return!0;}else if(v||b)return!0;}else if(f.hours===s&&f.minutes===a)return!0;return!1;});if(d!==-1)return l[d];}return Ux(e,o,r)[s<12?0:1];case 3:return jx(e,r)[t.getFullYear()<=0?0:1];default:let c=n;throw new I(2302,!1);}}function Ih(t){return function(e,n,r){let o=-1*r,i=Wr(n,un.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+yr(s,2,i)+yr(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+yr(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+yr(s,2,i)+":"+yr(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+yr(s,2,i)+":"+yr(Math.abs(o%60),2,i);default:throw new I(2310,!1);}};}var j$=0,_h=4;function V$(t){let e=Ah(t,j$,1).getDay();return Ah(t,0,1+(e<=_h?_h:_h+7)-e);}function qx(t){let e=t.getDay(),n=e===0?-3:_h-e;return Ah(t.getFullYear(),t.getMonth(),t.getDate()+n);}function ET(t,e=!1){return function(n,r){let o;if(e){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7);}else{let i=qx(n),s=V$(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return yr(o,t,Wr(r,un.MinusSign));};}function wh(t,e=!1){return function(n,r){let i=qx(n).getFullYear();return yr(i,t,Wr(r,un.MinusSign),e);};}var bT={};function $$(t){if(bT[t])return bT[t];let e;switch(t){case"G":case"GG":case"GGG":e=De(3,ye.Abbreviated);break;case"GGGG":e=De(3,ye.Wide);break;case"GGGGG":e=De(3,ye.Narrow);break;case"y":e=st(0,1,0,!1,!0);break;case"yy":e=st(0,2,0,!0,!0);break;case"yyy":e=st(0,3,0,!1,!0);break;case"yyyy":e=st(0,4,0,!1,!0);break;case"Y":e=wh(1);break;case"YY":e=wh(2,!0);break;case"YYY":e=wh(3);break;case"YYYY":e=wh(4);break;case"M":case"L":e=st(1,1,1);break;case"MM":case"LL":e=st(1,2,1);break;case"MMM":e=De(2,ye.Abbreviated);break;case"MMMM":e=De(2,ye.Wide);break;case"MMMMM":e=De(2,ye.Narrow);break;case"LLL":e=De(2,ye.Abbreviated,Ut.Standalone);break;case"LLLL":e=De(2,ye.Wide,Ut.Standalone);break;case"LLLLL":e=De(2,ye.Narrow,Ut.Standalone);break;case"w":e=ET(1);break;case"ww":e=ET(2);break;case"W":e=ET(1,!0);break;case"d":e=st(2,1);break;case"dd":e=st(2,2);break;case"c":case"cc":e=st(7,1);break;case"ccc":e=De(1,ye.Abbreviated,Ut.Standalone);break;case"cccc":e=De(1,ye.Wide,Ut.Standalone);break;case"ccccc":e=De(1,ye.Narrow,Ut.Standalone);break;case"cccccc":e=De(1,ye.Short,Ut.Standalone);break;case"E":case"EE":case"EEE":e=De(1,ye.Abbreviated);break;case"EEEE":e=De(1,ye.Wide);break;case"EEEEE":e=De(1,ye.Narrow);break;case"EEEEEE":e=De(1,ye.Short);break;case"a":case"aa":case"aaa":e=De(0,ye.Abbreviated);break;case"aaaa":e=De(0,ye.Wide);break;case"aaaaa":e=De(0,ye.Narrow);break;
13case"b":case"bb":case"bbb":e=De(0,ye.Abbreviated,Ut.Standalone,!0);break;case"bbbb":e=De(0,ye.Wide,Ut.Standalone,!0);break;case"bbbbb":e=De(0,ye.Narrow,Ut.Standalone,!0);break;case"B":case"BB":case"BBB":e=De(0,ye.Abbreviated,Ut.Format,!0);break;case"BBBB":e=De(0,ye.Wide,Ut.Format,!0);break;case"BBBBB":e=De(0,ye.Narrow,Ut.Format,!0);break;case"h":e=st(3,1,-12);break;case"hh":e=st(3,2,-12);break;case"H":e=st(3,1);break;case"HH":e=st(3,2);break;case"m":e=st(4,1);break;case"mm":e=st(4,2);break;case"s":e=st(5,1);break;case"ss":e=st(5,2);break;case"S":e=st(6,1);break;case"SS":e=st(6,2);break;case"SSS":e=st(6,3);break;case"Z":case"ZZ":case"ZZZ":e=Ih(0);break;case"ZZZZZ":e=Ih(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Ih(1);break;case"OOOO":case"ZZZZ":case"zzzz":e=Ih(2);break;default:return null;}return bT[t]=e,e;}function Yx(t,e){t=t.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n;}function G$(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t;}function z$(t,e,n){let o=t.getTimezoneOffset(),i=Yx(e,o);return G$(t,-1*(i-o));}function W$(t){if(Mx(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return Ah(o,i-1,s);}let n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(P$))return q$(r);}let e=new Date(t);if(!Mx(e))throw new I(2311,!1);return e;}function q$(t){let e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,c,u),e;}function Mx(t){return t instanceof Date&&!isNaN(t.valueOf());}var Y$=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nx=22,xh=".",Ol="0",K$=";",X$=",",TT="#";function Z$(t,e,n,r,o,i,s=!1){let a="",c=!1;if(!isFinite(t))a=Wr(n,un.Infinity);else{let u=eG(t);s&&(u=J$(u));let l=e.minInt,d=e.minFrac,f=e.maxFrac;if(i){let C=i.match(Y$);if(C===null)throw new I(2306,!1);let k=C[1],j=C[3],W=C[5];k!=null&&(l=ST(k)),j!=null&&(d=ST(j)),W!=null?f=ST(W):j!=null&&d>f&&(f=d);}tG(u,d,f);let h=u.digits,m=u.integerLen,v=u.exponent,b=[];for(c=h.every(C=>!C);m<l;m++)h.unshift(0);for(;m<0;m++)h.unshift(0);m>0?b=h.splice(m,h.length):(b=h,h=[0]);let T=[];for(h.length>=e.lgSize&&T.unshift(h.splice(-e.lgSize,h.length).join(""));h.length>e.gSize;)T.unshift(h.splice(-e.gSize,h.length).join(""));h.length&&T.unshift(h.join("")),a=T.join(Wr(n,r)),b.length&&(a+=Wr(n,o)+b.join("")),v&&(a+=Wr(n,un.Exponential)+"+"+v);}return t<0&&!c?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a;}function Kx(t,e,n){let r=Vx(e,_T.Decimal),o=Q$(r,Wr(e,un.MinusSign));return Z$(t,o,e,un.Group,un.Decimal,n);}function Q$(t,e="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(K$),o=r[0],i=r[1],s=o.indexOf(xh)!==-1?o.split(xh):[o.substring(0,o.lastIndexOf(Ol)+1),o.substring(o.lastIndexOf(Ol)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(TT));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Ol?n.minFrac=n.maxFrac=l+1:d===TT?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(X$);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(TT);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n;}function J$(t){if(t.digits[0]===0)return t;let e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(e===0?t.digits.push(0,0):e===1&&t.digits.push(0),t.integerLen+=2),t;}function eG(t){let e=Math.abs(t)+"",n=0,r,o,i,s,a;for((o=e.indexOf(xh))>-1&&(e=e.replace(xh,"")),(i=e.search(/e/i))>0?(o<0&&(o=i),o+=+e.slice(i+1),e=e.substring(0,i)):o<0&&(o=e.length),i=0;e.charAt(i)===Ol;i++);if(i===(a=e.length))r=[0],o=1;else{for(a--;e.charAt(a)===Ol;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(e.charAt(i));}return o>Nx&&(r=r.splice(0,Nx-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o};}function tG(t,e,n){if(e>n)throw new I(2307,!1);let r=t.digits,o=r.length-t.integerLen,i=Math.min(Math.max(e,o),n),s=i+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else{o=Math.max(0,o),t.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=e+t.integerLen,l=r.reduceRight(function(d,f,h,m){return f=f+d,m[h]=f<10?f:f-10,
13c&&(m[h]===0&&h>=u?m.pop():c=!1),f>=10?1:0;},0);l&&(r.unshift(l),t.integerLen++);}function ST(t){let e=parseInt(t);if(isNaN(e))throw new I(2305,!1);return e;}var DT=/\s+/,Ox=[],nG=(()=>{let e=class e{_ngEl;_renderer;initialClasses=Ox;rawClass;stateMap=new Map();constructor(r,o){this._ngEl=r,this._renderer=o;}set klass(r){this.initialClasses=r!=null?r.trim().split(DT):Ox;}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(DT):r;}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let o of r)this._updateState(o,!0);else if(r!=null)for(let o of Object.keys(r))this._updateState(o,!!r[o]);this._applyStateDiff();}_updateState(r,o){let i=this.stateMap.get(r);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(r,{enabled:o,changed:!0,touched:!0});}_applyStateDiff(){for(let r of this.stateMap){let o=r[0],i=r[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1;}}_toggleClass(r,o){r=r.trim(),r.length>0&&r.split(DT).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i);});}};p(e,"\u0275fac",function(o){return new(o||e)(se(Ln),se(oi));}),p(e,"\u0275dir",sn({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}}));let t=e;return t;})();var Rh=class{$implicit;ngForOf;index;count;constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o;}get first(){return this.index===0;}get last(){return this.index===this.count-1;}get even(){return this.index%2===0;}get odd(){return!this.even;}},Xx=(()=>{let e=class e{_viewContainer;_template;_differs;set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0;}set ngForTrackBy(r){this._trackByFn=r;}get ngForTrackBy(){return this._trackByFn;}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i;}set ngForTemplate(r){r&&(this._template=r);}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;!this._differ&&r&&(this._differ=this._differs.find(r).create(this.ngForTrackBy));}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r);}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Rh(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let c=o.get(s);o.move(c,a),Lx(c,i);}});for(let i=0,s=o.length;i<s;i++){let c=o.get(i).context;c.index=i,c.count=s,c.ngForOf=this._ngForOf;}r.forEachIdentityChange(i=>{let s=o.get(i.currentIndex);Lx(s,i);});}static ngTemplateContextGuard(r,o){return!0;}};p(e,"\u0275fac",function(o){return new(o||e)(se(Gr),se(jr),se(mT));}),p(e,"\u0275dir",sn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}));let t=e;return t;})();function Lx(t,e){t.context.$implicit=e.item;}var rG=(()=>{let e=class e{_viewContainer;_context=new Mh();_thenTemplateRef=null;_elseTemplateRef=null;
13_thenViewRef=null;_elseViewRef=null;constructor(r,o){this._viewContainer=r,this._thenTemplateRef=o;}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView();}set ngIfThen(r){kx(r,!1),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView();}set ngIfElse(r){kx(r,!1),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView();}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)));}static ngTemplateContextGuard(r,o){return!0;}};p(e,"ngIfUseIfTypeGuard"),p(e,"ngTemplateGuard_ngIf"),p(e,"\u0275fac",function(o){return new(o||e)(se(Gr),se(jr));}),p(e,"\u0275dir",sn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}));let t=e;return t;})(),Mh=class{$implicit=null;ngIf=null;};function kx(t,e){if(t&&!t.createEmbeddedView)throw new I(2020,!1);}var oG=(()=>{let e=class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(r,o,i){this._ngEl=r,this._differs=o,this._renderer=i;}set ngStyle(r){this._ngStyle=r,!this._differ&&r&&(this._differ=this._differs.find(r).create());}ngDoCheck(){if(this._differ){let r=this._differ.diff(this._ngStyle);r&&this._applyChanges(r);}}_setStyle(r,o){let[i,s]=r.split("."),a=i.indexOf("-")===-1?void 0:fr.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a);}_applyChanges(r){r.forEachRemovedItem(o=>this._setStyle(o.key,null)),r.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),r.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue));}};p(e,"\u0275fac",function(o){return new(o||e)(se(Ln),se(Eh),se(oi));}),p(e,"\u0275dir",sn({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}));let t=e;return t;})(),iG=(()=>{let e=class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(ot);constructor(r){this._viewContainerRef=r;}ngOnChanges(r){if(this._shouldRecreateView(r)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return;}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0;}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector;}_createContextForwardProxy(){return new Proxy({},{set:(r,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(r,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i);}});}};p(e,"\u0275fac",function(o){return new(o||e)(se(Gr));}),p(e,"\u0275dir",sn({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ni]}));let t=e;return t;})();function Ll(t,e){return new I(2100,!1);}var CT=class{createSubscription(e,n,r){return _e(()=>e.subscribe({next:n,error:r}));}dispose(e){_e(()=>e.unsubscribe());}},IT=class{createSubscription(e,n,r){return e.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}};}dispose(e){e.unsubscribe();}},sG=new IT(),aG=new CT(),cG=(()=>{let e=class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g(nn);constructor(r){this._ref=r;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r);}finally{this.markForCheckOnValueUpdate=!0;}return this._latestValue;}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue;}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,o=>this._updateLatestValue(r,o),o=>this.applicationErrorHandler(o));}_selectStrategy(r){if(_s(r))return sG;if(oh(r))return aG;throw Ll(e,r);}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(r,o){r===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}};p(e,"\u0275fac",function(o){return new(o||e)(se(As,16));}),p(e,"\u0275pipe",si({name:"async",type:e,pure:!1}));let t=e;return t;})();var uG=(()=>{let e=class e{transform(r){return r==null?null:(lG(e,r),r.toUpperCase());}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275pipe",si({name:"uppercase",type:e,pure:!0}));let t=e;return t;})();function lG(t,e){if(typeof e!="string")throw Ll(t,e);}var dG="mediumDate",Zx=new _(""),Qx=new _(""),AT=(()=>{let e=class e{locale;defaultTimezone;defaultOptions;constructor(r,o,i){this.locale=r,this.defaultTimezone=o,this.defaultOptions=i;}transform(r,o,i,s){if(r==null||r===""||r!==r)return null;try{let a=o??this.defaultOptions?.dateFormat??dG,c=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Wx(r,a,s||this.locale,c);}catch(a){throw Ll(e,a.message);}}};p(e,"\u0275fac",function(o){return new(o||e)(se(an,16),se(Zx,24),se(Qx,24));}),p(e,"\u0275pipe",si({name:"date",type:e,pure:!0}));let t=e;return t;})();function fG(t,e){return{key:t,value:e};}var pG=(()=>{let e=class e{differs;constructor(r){this.differs=r;}differ;keyValues=[];compareFn=Px;transform(r,o=Px){if(!r||!(r instanceof Map)&&typeof r!="object")return null;this.differ??=this.differs.find(r).create();let i=this.differ.diff(r),s=o!==this.compareFn;
13return i&&(this.keyValues=[],i.forEachItem(a=>{this.keyValues.push(fG(a.key,a.currentValue));})),(i||s)&&(o&&this.keyValues.sort(o),this.compareFn=o),this.keyValues;}};p(e,"\u0275fac",function(o){return new(o||e)(se(Eh,16));}),p(e,"\u0275pipe",si({name:"keyvalue",type:e,pure:!1}));let t=e;return t;})();function Px(t,e){let n=t.key,r=e.key;if(n===r)return 0;if(n==null)return 1;if(r==null)return-1;if(typeof n=="string"&&typeof r=="string")return n<r?-1:1;if(typeof n=="number"&&typeof r=="number")return n-r;if(typeof n=="boolean"&&typeof r=="boolean")return n<r?-1:1;let o=String(n),i=String(r);return o==i?0:o<i?-1:1;}var hG=(()=>{let e=class e{_locale;constructor(r){this._locale=r;}transform(r,o,i){if(!mG(r))return null;i||=this._locale;try{let s=gG(r);return Kx(s,i,o);}catch(s){throw Ll(e,s.message);}}};p(e,"\u0275fac",function(o){return new(o||e)(se(an,16));}),p(e,"\u0275pipe",si({name:"number",type:e,pure:!0}));let t=e;return t;})();function mG(t){return!(t==null||t===""||t!==t);}function gG(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new I(2309,!1);return t;}var yG=(()=>{let e=class e{transform(r,o,i){if(r==null)return null;if(!(typeof r=="string"||Array.isArray(r)))throw Ll(e,r);return r.slice(o,i);}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275pipe",si({name:"slice",type:e,pure:!1}));let t=e;return t;})();var kl=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275mod",En({type:e})),p(e,"\u0275inj",Jt({}));let t=e;return t;})();function Pl(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i);}return null;}var xs=class{};function she(t,e,n){return Zb(t,e,n);}var RT="browser",vG="server";function ahe(t){return t===RT;}function che(t){return t===vG;}var Fl=(()=>{let e=class e{};p(e,"\u0275prov",E({token:e,providedIn:"root",factory:()=>new xT(g(we),window)}));let t=e;return t;})(),xT=class{document;window;offset=()=>[0,0];constructor(e,n){this.document=e,this.window=n;}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e;}getScrollPosition(){return[this.window.scrollX,this.window.scrollY];}scrollToPosition(e,n){this.window.scrollTo($(S({},n),{left:e[0],top:e[1]}));}scrollToAnchor(e,n){let r=EG(this.document,e);r&&(this.scrollToElement(r,n),r.focus({preventScroll:!0}));}setHistoryScrollRestoration(e){try{this.window.history.scrollRestoration=e;}catch(n){console.warn(Rn(2400,!1));}}scrollToElement(e,n){let r=e.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo($(S({},n),{left:o-s[0],top:i-s[1]}));}};function EG(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s;}o=r.nextNode();}}return null;}var zt=class t{headers;normalizedNames=new Map();lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map(),e.split(` 14`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map(),e.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map(),Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}: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 t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e
14=>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 t();return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?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 r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let o=(e.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break;}}addHeaderEntry(e,n){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o);}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)));}};var NT=class{defaultValue;constructor(e){this.defaultValue=e;}},Oh=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();}},Lh=class{encodeKey(e){return Jx(e);}encodeValue(e){return Jx(e);}decodeKey(e){return decodeURIComponent(e);}decodeValue(e){return decodeURIComponent(e);}};function TG(t,e){let n=new Map();return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c);}),n;}var SG=/%(\d[a-f0-9])/gi,DG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Jx(t){return encodeURIComponent(t).replace(SG,(e,n)=>DG[n]??e);}function Nh(t){return`${t}`;}var ln=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new Lh(),e.fromString){if(e.fromObject)throw new I(2805,!1);this.map=TG(e.fromString,this.encoder);}else e.fromObject?(this.map=new Map(),Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],o=Array.isArray(r)?r.map(Nh):[Nh(r)];this.map.set(n,o);})):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(r=>{let o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"});}):n.push({param:r,value:o,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(r=>n+"="+this.encoder.encodeValue(r)).join("&");}).filter(e=>e!=="").join("&");}clone(e){let n=new t({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(Nh(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],o=r.indexOf(Nh(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param);}else{this.map.delete(e.param);break;}}}),this.cloneFrom=this.updates=null);}};function CG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0;}}function eR(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer;}function tR(t){return typeof Blob<"u"&&t instanceof Blob;}function nR(t){return typeof FormData<"u"&&t instanceof FormData;}function IG(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams;}var rR="Content-Type",oR="Accept",sR="text/plain",aR="application/json",wG=`${aR}, ${sR}, */*`,lc=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(e,n,r,o){this.url=n,this.method=e.toUpperCase();let i;if(CG(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new I(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new zt(),this.context??=new Oh(),!this.params)this.params=new ln(),this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s;}}}serializeBody(){return this.body===null?null:typeof this.body=="str
14ing"||eR(this.body)||tR(this.body)||nR(this.body)||IG(this.body)?this.body:this.body instanceof ln?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||nR(this.body)?null:tR(this.body)?this.body.type||null:eR(this.body)?null:typeof this.body=="string"?sR:this.body instanceof ln?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?aR:null;}clone(e={}){let n=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,i=e.keepalive??this.keepalive,s=e.priority||this.priority,a=e.cache||this.cache,c=e.mode||this.mode,u=e.redirect||this.redirect,l=e.credentials||this.credentials,d=e.referrer||this.referrer,f=e.integrity||this.integrity,h=e.referrerPolicy||this.referrerPolicy,m=e.transferCache??this.transferCache,v=e.timeout??this.timeout,b=e.body!==void 0?e.body:this.body,T=e.withCredentials??this.withCredentials,C=e.reportProgress??this.reportProgress,k=e.headers||this.headers,j=e.params||this.params,W=e.context??this.context;return e.setHeaders!==void 0&&(k=Object.keys(e.setHeaders).reduce((z,pe)=>z.set(pe,e.setHeaders[pe]),k)),e.setParams&&(j=Object.keys(e.setParams).reduce((z,pe)=>z.set(pe,e.setParams[pe]),j)),new t(n,r,b,{params:j,headers:k,context:W,reportProgress:C,responseType:o,withCredentials:T,transferCache:m,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:h});}},Ao=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t;}(Ao||{}),fc=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(e,n=200,r="OK"){this.headers=e.headers||new zt(),this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.redirected=e.redirected,this.responseType=e.responseType,this.ok=this.status>=200&&this.status<300;}},kh=class t extends fc{constructor(e={}){super(e);}type=Ao.ResponseHeader;clone(e={}){return new t({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});}},Ul=class t extends fc{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null;}type=Ao.Response;clone(e={}){return new t({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,redirected:e.redirected??this.redirected,responseType:e.responseType??this.responseType});}},dc=class extends fc{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;}},_G=200,AG=204;var xG=new _("");var RG=/^\)\]\}',?\n/;var OT=(()=>{let e=class e{xhrFactory;tracingService=g(pr,{optional:!0});constructor(r){this.xhrFactory=r;}maybePropagateTrace(r){return this.tracingService?.propagate?this.tracingService.propagate(r):r;}handle(r){if(r.method==="JSONP")throw new I(-2800,!1);let o=this.xhrFactory;return N(null).pipe(ke(()=>new q(s=>{let a=o.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((T,C)=>a.setRequestHeader(T,C.join(","))),r.headers.has(oR)||a.setRequestHeader(oR,wG),!r.headers.has(rR)){let T=r.detectContentTypeHeader();T!==null&&a.setRequestHeader(rR,T);}if(r.timeout&&(a.timeout=r.timeout),r.responseType){let T=r.responseType.toLowerCase();a.responseType=T!=="json"?T:"text";}let c=r.serializeBody(),u=null,l=()=>{if(u!==null)return u;let T=a.statusText||"OK",C=new zt(a.getAllResponseHeaders()),k=a.responseURL||r.url;return u=new kh({headers:C,status:a.status,statusText:T,url:k}),u;},d=this.maybePropagateTrace(()=>{let{headers:T,status:C,statusText:k,url:j}=l(),W=null;C!==AG&&(W=typeof a.response>"u"?a.responseText:a.response),C===0&&(C=W?_G:0);let z=C>=200&&C<300;if(r.responseType==="json"&&typeof W=="string"){let pe=W;W=W.replace(RG,"");try{W=W!==""?JSON.parse(W):null;}catch(tt){W=pe,z&&(z=!1,W={error:tt,text:W});}}z?(s.next(new Ul({body:W,headers:T,status:C,statusText:k,url:j||void 0})),s.complete()):s.error(new dc({error:W,headers:T,status:C,statusText:k,url:j||void 0}));}),f=this.maybePropagateTrace(T=>{let{url:C}=l(),k=new dc({error:T,status:a.status||0,statusText:a.statusText||"Unknown Error",url:C||void 0});s.error(k);}),h=f;r.timeout&&(h=this.maybePropagateTrace(T=>{let{url:C}=l(),k=new dc({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:C||void 0});s.error(k);}));let m=!1,v=this.maybePropagateTrace(T=>{m||(s.next(l()),m=!0);let C={type:Ao.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(C.total=T.total),r.responseType==="text"&&a.responseText&&(C.partialText=a.responseText),s.next(C);}),b=this.maybePropagateTrace(T=>{let C={type:Ao.UploadProgress,loaded:T.loaded};T.lengthComputable&&(C.total=T.total),s.next(C);});return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",h),a.addEventListener("abort",f),r.reportProgress&&(a.addEventListener("progress",v),c!==null&&a.upload&&a.upload.addEventListener("progress",b)),a.send(c),s.next({type:Ao.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",v),c!==null&&a.upload&&a.upload.removeEventListener("progress",b)),a.readyState!==a.DONE&&a.abort();};})));}};p(e,"\u0275fac",function(o){return new(o||e)(M(xs));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function cR(t,e){return e(t);}function MG(t,e){return(n,r)=>e.intercept(n,{handle:o=>t(o,r)});}function NG(t,e,n){return(r,o)=>dt(n,()=>e(r,i=>t(i,o)));}var uR=new _(""),Fh=new _("",{factory:()=>[]}),lR=new _(""),LT=new _("",{factory:()=>!0});function OG(){let t=null;return(e,n)=>{t===null&&(t=(g(uR,{optional:!0})??[]).reduceRight(MG,cR));let r=g(fs);if(g(LT)){let i=r.add();return t(e,n).pipe(Yi(i));}else return t(e,n);};}var kT=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:function(o){let i=null;return o?i=new(o||e)():i=M(OT),i;},providedIn:"root"}));let t=e;return t;})();var Ph=(()=>{let e=class e{backend;injector;chain=null;pendingTasks=g(fs);contributeToStability=g(LT);constructor(r,o){this.backend=r,this.injector=o;}handle(r){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Fh),...this.injector.get(lR,[])]));this.chain=o.reduceRight((i,s)=>NG(i,s,this.injector),cR);}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(r,i=>this.backend.handle(i)).pipe(Yi(o));}else return this.chain(r,o=>this.backend.handle(o));}};p(e,"\u0275fac",function(o){return new(o||e)(M(kT),M(Ie));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),PT=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:function(o){let i=null;return o?i=new(o||e)():i=M(Ph),i;},providedIn:"root"}));let t=e;return t;})();function MT(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy};}var Fn=(()=>{let e=class e{handler;constructor(r){this.handler=r;}request(r,o,i={}){let s;if(r instanceof lc)s=r;else{let u;i.headers instanceof zt?u=i.headers:u=new zt(i.headers);let l;i.params&&(i.params instanceof ln?l=i.params:l=new ln({fromObject:i.params})),s=new lc(r,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout});}let a=N(s).pipe(tr(u=>this.handler.handle(u)));if(r instanceof lc||i.observe==="events")return a;let c=a.pipe(Te(u=>u instanceof Ul));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(F(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new I(2806,!1);return u.body;}));case"blob":return c.pipe(F(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new I(2807,!1);return u.body;}));case"text":return c.pipe(F(u=>{if(u.body!==null&&typeof u.body!="string")throw new I(2808,!1);return u.body;}));default:return c.pipe(F(u=>u.body));}case"response":return c;default:throw new I(2809,!1);}}delete(r,o={}){return this.request("DELETE",r,o);}get(r,o={}){return this.request("GET",r,o);}head(r,o={}){return this.request("HEAD",r,o);}jsonp(r,o){return this.request("JSONP",r,{params:new ln().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"});}options(r,o={}){return this.request("OPTIONS",r,o);}patch(r,o,i={}){return this.request("PATCH",r,MT(i,o));}post(r,o,i={}){return this.request("POST",r,MT(i,o));}put(r,o,i={}){return this.request("PUT",r,MT(i,o));}};p(e,"\u0275fac",function(o){return new(o||e)(M(PT));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();var LG=new _("",{factory:()=>!0}),kG="XSRF-TOKEN",PG=new _("",{factory:()=>kG}),FG="X-XSRF-TOKEN",UG=new _("",{factory:()=>FG}),HG=(()=>{let e=class e{cookieName=g(PG);doc=g(we);lastCookieString="";lastToken=null;parseCount=0;getToken(){let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=Pl(r,this.cookieName),this.lastCookieString=r),this.lastToken;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),dR=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:function(o){let i=null;return o?i=new(o||e)():i=M(HG),i;},providedIn:"root"}));let t=e;return t;})();function BG(t,e){if(!g(LG)||t.method==="GET"||t.method==="HEAD")return e(t);try{let o=g(wo).href,{origin:i}=new URL(o),{origin:s}=new URL(t.url,i);if(i!==s)return e(t);}catch(o){return e(t);}let n=g(dR).getToken(),r=g(UG);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t);}var Uh=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t;}(Uh||{});function fR(t,e){return{ɵkind:t,ɵproviders:e};}function pR(...t){let e=[Fn,Ph,{provide:PT,useExisting:Ph},{provide:kT,useFactory:()=>g(xG,{optional:!0})??g(OT)},{provide:Fh,useValue:BG,multi:!0}];for(let n of t)e.push(...n.ɵproviders);return To(e);}function jG(t){return fR(Uh.Interceptors,t.map(e=>({provide:Fh,useValue:e,multi:!0})));}var iR=new _("");function hR(){return fR(Uh.LegacyInterceptors,[{provide:iR,useFactory:OG},{provide:Fh,useExisting:iR,multi:!0}]);}var VG=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275mod",En({type:e})),p(e,"\u0275inj",Jt({providers:[pR(hR())]}));let t=e;return t;})();var Hl=class{_doc;constructor(e){this._doc=e;}manager;},Hh=(()=>{let e=class e extends Hl{constructor(r){super(r);}supports(r){return!0;}addEventListener(r,o,i,s){return r.addEventListener(o,i,s),()=>this.removeEventListener(r,o,i,s);}removeEventListener(r,o,i,s){return r.removeEventListener(o,i,s);}}
14;p(e,"\u0275fac",function(o){return new(o||e)(M(we));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),Vh=new _(""),BT=(()=>{let e=class e{_zone;_plugins;_eventNameToPlugin=new Map();constructor(r,o){this._zone=o,r.forEach(a=>{a.manager=this;});let i=r.filter(a=>!(a instanceof Hh));this._plugins=i.slice().reverse();let s=r.find(a=>a instanceof Hh);s&&this._plugins.push(s);}addEventListener(r,o,i,s){return this._findPluginFor(o).addEventListener(r,o,i,s);}getZone(){return this._zone;}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new I(5101,!1);return this._eventNameToPlugin.set(r,o),o;}};p(e,"\u0275fac",function(o){return new(o||e)(M(Vh),M(ue));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),FT="ng-app-id";function mR(t){for(let e of t)e.remove();}function gR(t,e){let n=e.createElement("style");return n.textContent=t,n;}function $G(t,e,n,r){let o=t.head?.querySelectorAll(`style[${FT}="${e}"],link[${FT}="${e}"]`);if(o)for(let i of o)i.removeAttribute(FT),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});}function HT(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n;}var jT=(()=>{let e=class e{doc;appId;nonce;inline=new Map();external=new Map();hosts=new Set();constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,$G(r,o,this.inline,this.external),this.hosts.add(r.head);}addStyles(r,o){for(let i of r)this.addUsage(i,this.inline,gR);o?.forEach(i=>this.addUsage(i,this.external,HT));}removeStyles(r,o){for(let i of r)this.removeUsage(i,this.inline);o?.forEach(i=>this.removeUsage(i,this.external));}addUsage(r,o,i){let s=o.get(r);s?s.usage++:o.set(r,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,i(r,this.doc)))});}removeUsage(r,o){let i=o.get(r);i&&(i.usage--,i.usage<=0&&(mR(i.elements),o.delete(r)));}ngOnDestroy(){for(let[,{elements:r}]of[...this.inline,...this.external])mR(r);this.hosts.clear();}addHost(r){this.hosts.add(r);for(let[o,{elements:i}]of this.inline)i.push(this.addElement(r,gR(o,this.doc)));for(let[o,{elements:i}]of this.external)i.push(this.addElement(r,HT(o,this.doc)));}removeHost(r){this.hosts.delete(r);}addElement(r,o){return this.nonce&&o.setAttribute("nonce",this.nonce),r.appendChild(o);}};p(e,"\u0275fac",function(o){return new(o||e)(M(we),M(Mp),M(gl,8),M(ml));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),UT={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},VT=/%COMP%/g;var vR="%COMP%",GG=`_nghost-${vR}`,zG=`_ngcontent-${vR}`,WG=!0,qG=new _("",{factory:()=>WG});function YG(t){return zG.replace(VT,t);}function KG(t){return GG.replace(VT,t);}function ER(t,e){return e.map(n=>n.replace(VT,t));}var $T=(()=>{let e=class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map();defaultRenderer;constructor(r,o,i,s,a,c,u=null,l=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.defaultRenderer=new Bl(r,a,c,this.tracingService);}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;let i=this.getOrCreateRenderer(r,o);return i instanceof jh?i.applyToHost(r):i instanceof jl&&i.applyStyles(),i;}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.tracingService;switch(o.encapsulation){case dr.Emulated:s=new jh(u,l,o,this.appId,d,a,c,f);break;case dr.ShadowDom:return new Bh(u,r,o,a,c,this.nonce,f,l);case dr.ExperimentalIsolatedShadowDom:return new Bh(u,r,o,a,c,this.nonce,f);default:s=new jl(u,l,o,d,a,c,f);break;}i.set(o.id,s);}return s;}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(r){this.rendererByCompId.delete(r);}};p(e,"\u0275fac",function(o){return new(o||e)(M(BT),M(jT),M(Mp),M(qG),M(we),M(ue),M(gl),M(pr,8));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),Bl=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,n,r,o){this.eventManager=e,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(e,n){return n?this.doc.createElementNS(UT[n]||n,e):this.doc.createElement(e);}createComment(e){return this.doc.createComment(e);}createText(e){return this.doc.createTextNode(e);}appendChild(e,n){(yR(e)?e.content:e).appendChild(n);}insertBefore(e,n,r){e&&(yR(e)?e.content:e).insertBefore(n,r);}removeChild(e,n){n.remove();}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new I(-5104,!1);return n||(r.textContent=""),r;}parentNode(e){return e.parentNode;}nextSibling(e){return e.nextSibling;}setAttribute(e,n,r,o){if(o){n=o+":"+n;let i=UT[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r);}else e.setAttribute(n,r);}removeAttribute(e,n,r){if(r){let o=UT[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`);}else e.removeAttribute(n);}addClass(e,n){e.classList.add(n);}removeClass(e,n){e.classList.remove(n);}setStyle(e,n,r,o){o&(fr.DashCase|fr.Important)?e.style.setProperty(n,r,o&fr.Important?"important":""):e.style[n]=r;}removeStyle(e,n,r){r&fr.DashCase?e.style.removeProperty(n):e.style[n]="";}setProperty(e,n,r){e!=null&&(e[n]=r);}setValue(e,n){e.nodeValue=n;}listen(e,n,r,o){if(typeof e=="string"&&(e=hr().getGlobalEventTarget(this.doc,e),!e))throw new I(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,n,i)
14),this.eventManager.addEventListener(e,n,i,o);}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;e(n)===!1&&n.preventDefault();};}};function yR(t){return t.tagName==="TEMPLATE"&&t.content!==void 0;}var Bh=class extends Bl{hostEl;sharedStylesHost;shadowRoot;constructor(e,n,r,o,i,s,a,c){super(e,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=ER(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f);}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=HT(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f);}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e;}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n);}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r);}removeChild(e,n){return super.removeChild(null,n);}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)));}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},jl=class extends Bl{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,n,r,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?ER(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Jo.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},jh=class extends jl{contentAttr;hostAttr;constructor(e,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(e,n,r,i,s,a,c,u),this.contentAttr=YG(u),this.hostAttr=KG(u);}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"");}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r;}};var $h=class t extends xl{supportsDOMEvents=!0;static makeCurrent(){gT(new t());}onAndCancel(e,n,r,o){return e.addEventListener(n,r,o),()=>{e.removeEventListener(n,r,o);};}dispatchEvent(e,n){e.dispatchEvent(n);}remove(e){e.remove();}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e);}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle");}getDefaultDocument(){return document;}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE;}isShadowRoot(e){return e instanceof DocumentFragment;}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null;}getBaseHref(e){let n=XG();return n==null?null:ZG(n);}resetBaseElement(){Vl=null;}getUserAgent(){return window.navigator.userAgent;}getCookie(e){return Pl(document.cookie,e);}},Vl=null;function XG(){return Vl=Vl||document.head.querySelector("base"),Vl?Vl.getAttribute("href"):null;}function ZG(t){return new URL(t,document.baseURI).pathname;}var Gh=class{addToWindow(e){Ke.getAngularTestability=(r,o=!0)=>{let i=e.findTestabilityInTree(r,o);if(i==null)throw new I(5103,!1);return i;},Ke.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ke.getAllAngularRootElements=()=>e.getAllRootElements();let n=r=>{let o=Ke.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r();};o.forEach(a=>{a.whenStable(s);});};Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]),Ke.frameworkStabilizers.push(n);}findTestabilityInTree(e,n,r){if(n==null)return null;let o=e.getTestability(n);return o??(r?hr().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null);}},QG=(()=>{let e=class e{build(){return new XMLHttpRequest();}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),bR=["alt","control","meta","shift"],JG={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},e3={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},TR=(()=>{let e=class e extends Hl{constructor(r){super(r);}supports(r){return e.parseEventName(r)!=null;}addEventListener(r,o,i,s){let a=e.parseEventName(o),c=e.eventCallback(a.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>
14hr().onAndCancel(r,a.domEventName,c,s));}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),bR.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".");}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u;}static matchEventFullKeyCode(r,o){let i=JG[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),bR.forEach(a=>{if(a!==i){let c=e3[a];c(r)&&(s+=a+".");}}),s+=i,s===o);}static eventCallback(r,o,i){return s=>{e.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s));};}static _normalizeKey(r){return r==="esc"?"escape":r;}};p(e,"\u0275fac",function(o){return new(o||e)(M(we));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})();function t3(t,e,n){return P(this,null,function*(){let r=S({rootComponent:t},n3(e,n));return Cx(r);});}function n3(t,e){return{platformRef:e?.platformRef,appProviders:[...SR,...(t?.providers??[])],platformProviders:s3};}function r3(){$h.makeCurrent();}function o3(){return new xn();}function i3(){return GE(document),document;}var s3=[{provide:ml,useValue:RT},{provide:Np,useValue:r3,multi:!0},{provide:we,useFactory:i3}];var a3=[{provide:rh,useClass:Gh},{provide:nh,useClass:Sl},{provide:Sl,useClass:Sl}],SR=[{provide:Bu,useValue:"root"},{provide:xn,useFactory:o3},{provide:Vh,useClass:Hh,multi:!0},{provide:Vh,useClass:TR,multi:!0},$T,jT,BT,{provide:bs,useExisting:$T},{provide:xs,useClass:QG},[]],c3=(()=>{let e=class e{constructor(){}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275mod",En({type:e})),p(e,"\u0275inj",Jt({providers:[...SR,...a3],imports:[kl,Dx]}));let t=e;return t;})();var DR=(()=>{let e=class e{_doc;_dom;constructor(r){this._doc=r,this._dom=hr();}addTag(r,o=!1){return r?this._getOrCreateElement(r,o):null;}addTags(r,o=!1){return r?r.reduce((i,s)=>(s&&i.push(this._getOrCreateElement(s,o)),i),[]):[];}getTag(r){return r&&this._doc.querySelector(`meta[${r}]`)||null;}getTags(r){if(!r)return[];let o=this._doc.querySelectorAll(`meta[${r}]`);return o?[].slice.call(o):[];}updateTag(r,o){if(!r)return null;o=o||this._parseSelector(r);let i=this.getTag(o);return i?this._setMetaElementAttributes(r,i):this._getOrCreateElement(r,!0);}removeTag(r){this.removeTagElement(this.getTag(r));}removeTagElement(r){r&&this._dom.remove(r);}_getOrCreateElement(r,o=!1){if(!o){let a=this._parseSelector(r),c=this.getTags(a).filter(u=>this._containsAttributes(r,u))[0];if(c!==void 0)return c;}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(r,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i;}_setMetaElementAttributes(r,o){return Object.keys(r).forEach(i=>o.setAttribute(this._getMetaKeyMap(i),r[i])),o;}_parseSelector(r){let o=r.name?"name":"property";return`${o}="${r[o]}"`;}_containsAttributes(r,o){return Object.keys(r).every(i=>o.getAttribute(this._getMetaKeyMap(i))===r[i]);}_getMetaKeyMap(r){return u3[r]||r;}};p(e,"\u0275fac",function(o){return new(o||e)(M(we));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),u3={httpEquiv:"http-equiv"},zh=(()=>{let e=class e{_doc;constructor(r){this._doc=r;}getTitle(){return this._doc.title;}setTitle(r){this._doc.title=r||"";}};p(e,"\u0275fac",function(o){return new(o||e)(M(we));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function l3(t,e){if(typeof COMPILED>"u"||!COMPILED){let n=Ke.ng=Ke.ng||{};n[t]=e;}}var GT=class{msPerTick;numTicks;constructor(e,n){this.msPerTick=e,this.numTicks=n;}},zT=class{appRef;constructor(e){this.appRef=e.injector.get(zr);}timeChangeDetection(e){let n=e&&e.record,r="Change Detection";n&&"profile"in console&&typeof console.profile=="function"&&console.profile(r);let o=performance.now(),i=0;for(;i<5||performance.now()-o<500;)this.appRef.tick(),i++;let s=performance.now();n&&"profileEnd"in console&&typeof console.profileEnd=="function"&&console.profileEnd(r);let a=(s-o)/i;return console.log(`ran ${i} change detection cycles`),console.log(`${a.toFixed(2)} ms per check`),new GT(a,i);}},d3="profiler";function Tme(t){return l3(d3,new zT(t)),t;}var f3=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:function(o){let i=null;return o?i=new(o||e)():i=M(p3),i;},providedIn:"root"}));let t=e;return t;})(),p3=(()=>{let e=class e extends f3{_doc;constructor(r){super(),this._doc=r;}sanitize(r,o){if(o==null)return null;switch(r){case kn.NONE:return o;case kn.HTML:return Vr(o,"HTML")?on(o):Pp(this._doc,String(o)).toString();case kn.STYLE:return Vr(o,"Style")?on(o):o;case kn.SCRIPT:if(Vr(o,"Script"))return on(o);throw new I(5200,!1);
14case kn.URL:return Vr(o,"URL")?on(o):nc(String(o));case kn.RESOURCE_URL:if(Vr(o,"ResourceURL"))return on(o);throw new I(5201,!1);default:throw new I(5202,!1);}}bypassSecurityTrustHtml(r){return XE(r);}bypassSecurityTrustStyle(r){return ZE(r);}bypassSecurityTrustScript(r){return QE(r);}bypassSecurityTrustUrl(r){return JE(r);}bypassSecurityTrustResourceUrl(r){return eb(r);}};p(e,"\u0275fac",function(o){return new(o||e)(M(we));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();var X="primary",td=Symbol("RouteTitle"),XT=class{params;constructor(e){this.params=e||{};}has(e){return Object.prototype.hasOwnProperty.call(this.params,e);}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n;}return null;}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n];}return[];}get keys(){return Object.keys(this.params);}};function Ms(t){return new XT(t);}function WT(t,e,n){for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return!1;}return!0;}function RR(t,e,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.length<t.length))return null;let c={},u=t.slice(0,r.length);return WT(r,u,c)?{consumed:u,posParams:c}:null;}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>t.length||n.pathMatch==="full"&&e.hasChildren()&&n.path!=="**")return null;let a={};return!WT(i,t.slice(0,i.length),a)||!WT(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a};}function Zh(t){return new Promise((e,n)=>{t.pipe(Re()).subscribe({next:r=>e(r),error:r=>n(r)});});}function m3(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!qr(t[n],e[n]))return!1;return!0;}function qr(t,e){let n=t?ZT(t):void 0,r=e?ZT(e):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!MR(t[o],e[o]))return!1;return!0;}function ZT(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)];}function MR(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let n=[...t].sort(),r=[...e].sort();return n.every((o,i)=>r[i]===o);}else return t===e;}function g3(t){return t.length>0?t[t.length-1]:null;}function Os(t){return df(t)?t:_s(t)?me(Promise.resolve(t)):N(t);}function NR(t){return df(t)?Zh(t):Promise.resolve(t);}var y3={exact:LR,subset:kR},OR={exact:v3,subset:E3,ignored:()=>!0},dS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ql={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fS(t,e,n){let r=t instanceof Wt?t:e.parseUrl(t);return wl(()=>QT(e.lastSuccessfulNavigation()?.finalUrl??new Wt(),r,S(S({},ql),n)));}function QT(t,e,n){return y3[n.paths](t.root,e.root,n.matrixParams)&&OR[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment);}function v3(t,e){return qr(t,e);}function LR(t,e,n){if(!Rs(t.segments,e.segments)||!Yh(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!LR(t.children[r],e.children[r],n))return!1;return!0;}function E3(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>MR(t[n],e[n]));}function kR(t,e,n){return PR(t,e,e.segments,n);}function PR(t,e,n,r){if(t.segments.length>n.length){let o=t.segments.slice(0,n.length);return!(!Rs(o,n)||e.hasChildren()||!Yh(o,n,r));}else if(t.segments.length===n.length){if(!Rs(t.segments,n)||!Yh(t.segments,n,r))return!1;for(let o in e.children)if(!t.children[o]||!kR(t.children[o],e.children[o],r))return!1;return!0;}else{let o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!Rs(t.segments,o)||!Yh(t.segments,o,r)||!t.children[X]?!1:PR(t.children[X],e,i,r);}}function Yh(t,e,n){return e.every((r,o)=>OR[n](t[o].parameters,r.parameters));}var Wt=class{root;queryParams;fragment;_queryParamMap;constructor(e=new he([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=Ms(this.queryParams),this._queryParamMap;}toString(){return S3.serialize(this);}},he=class{segments;children;parent=null;constructor(e,n){this.segments=e,this.children=n,Object.values(n).forEac
14h(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0;}get numberOfChildren(){return Object.keys(this.children).length;}toString(){return Kh(this);}},ci=class{path;parameters;_parameterMap;constructor(e,n){this.path=e,this.parameters=n;}get parameterMap(){return this._parameterMap??=Ms(this.parameters),this._parameterMap;}toString(){return UR(this);}};function b3(t,e){return Rs(t,e)&&t.every((n,r)=>qr(n.parameters,e[r].parameters));}function Rs(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path);}function T3(t,e){let n=[];return Object.entries(t.children).forEach(([r,o])=>{r===X&&(n=n.concat(e(o,r)));}),Object.entries(t.children).forEach(([r,o])=>{r!==X&&(n=n.concat(e(o,r)));}),n;}var fi=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>new Ro(),providedIn:"root"}));let t=e;return t;})(),Ro=class{parse(e){let n=new eS(e);return new Wt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment());}serialize(e){let n=`/${$l(e.root,!0)}`,r=I3(e.queryParams),o=typeof e.fragment=="string"?`#${D3(e.fragment)}`:"";return`${n}${r}${o}`;}},S3=new Ro();function Kh(t){return t.segments.map(e=>UR(e)).join("/");}function $l(t,e){if(!t.hasChildren())return Kh(t);if(e){let n=t.children[X]?$l(t.children[X],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==X&&r.push(`${o}:${$l(i,!1)}`);}),r.length>0?`${n}(${r.join("//")})`:n;}else{let n=T3(t,(r,o)=>o===X?[$l(t.children[X],!1)]:[`${o}:${$l(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[X]!=null?`${Kh(t)}/${n[0]}`:`${Kh(t)}/(${n.join("//")})`;}}function FR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",");}function Wh(t){return FR(t).replace(/%3B/gi,";");}function D3(t){return encodeURI(t);}function JT(t){return FR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&");}function Xh(t){return decodeURIComponent(t);}function CR(t){return Xh(t.replace(/\+/g,"%20"));}function UR(t){return`${JT(t.path)}${C3(t.parameters)}`;}function C3(t){return Object.entries(t).map(([e,n])=>`;${JT(e)}=${JT(n)}`).join("");}function I3(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Wh(n)}=${Wh(o)}`).join("&"):`${Wh(n)}=${Wh(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:"";}var w3=/^[^\/()?;#]+/;function qT(t){let e=t.match(w3);return e?e[0]:"";}var _3=/^[^\/()?;=#]+/;function A3(t){let e=t.match(_3);return e?e[0]:"";}var x3=/^[^=?&#]+/;function R3(t){let e=t.match(x3);return e?e[0]:"";}var M3=/^[^&#]+/;function N3(t){let e=t.match(M3);return e?e[0]:"";}var eS=class{url;remaining;constructor(e){this.url=e,this.remaining=e;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new he([],{}):new he([],this.parseChildren());}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e;}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null;}parseChildren(e=0){if(e>50)throw new I(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,e));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,e)),(n.length>0||Object.keys(r).length>0)&&(o[X]=new he(n,r)),o;}parseSegment(){let e=qT(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(e),new ci(Xh(e),this.parseMatrixParams());}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e;}parseParam(e){let n=A3(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=qT(this.remaining);o&&(r=o,this.capture(r));}e[Xh(n)]=Xh(r);}parseQueryParam(e){let n=R3(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=N3(this.remaining);s&&(r=s,this.capture(r));}let o=CR(n),i=CR(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i);}else e[o]=i;}parseParens(e,n){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=qT(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=X);let a=this.parseChildren(n+1);r[s??X]=Object.keys(a).length===1&&a[X]?a[X]:new he([],a),this.consumeOptional("//");}return r;}peekStartsWith(e){return this.remaining.startsWith(e);}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1;}capture(e){if(!this.consumeOptional(e))throw new I(4011,!1);}};function HR(t){return t.segments.length>0?new he([],{[X]:t}):t;}function BR(t){let e={};for(let[r,o]of Object.entries(t.children)){let i=BR(o);if(r===X&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[r]=i);}let n=new he(t.segments,e);return O3(n);}function O3(t){if(t.numberOfChildren===1&&t.children[X]){let e=t.children[X];return new he(t.segments.concat(e.segments),e.children);}return t;}function ui(t){return t instanceof Wt;}function jR(t,e,n=null,r=null,o=new Ro()){let i=VR(t);return $R(i,e,n,r,o);}function VR(t){let e;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u;}let a=new he(i.url,s);return i===t&&(e=a),a;}let r=n(t.root),o=HR(r);return e??o;}function $R(t,e,n,r,o){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return YT(i,i,i,n,r,o);let s=L3(e);if(s.toRoot())return YT(i,i,new he([],{}),n,r,o);let a=k3(s,i,t),c=a.processChildren?zl(a.segmentGroup,a.index,s.commands):zR(a.segmentGroup,a.index,s.commands);return YT(i,a.segmentGroup,c,n,r,o);}function Qh(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath;}function Yl(t){return typeof t=="object"&&t!=null&&t.outlets;}function IR(t,e,n){t||="\u0275";let r=new Wt();return r.queryParams={[t]:e},n.parse(n.serialize(r)).queryParams[t];}function YT(t,e,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>IR(u,d,i)):IR(u,l,i);let a;t===e?a=n:a=GR(t,e,n);let c=HR(BR(a));return new Wt(c,s,o);}function GR(t,e,n){let r={};
14return Object.entries(t.children).forEach(([o,i])=>{i===e?r[o]=n:r[o]=GR(i,e,n);}),new he(t.segments,r);}var Jh=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Qh(r[0]))throw new I(4003,!1);let o=r.find(Yl);if(o&&o!==g3(r))throw new I(4004,!1);}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/";}};function L3(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Jh(!0,0,t);let e=0,n=!1,r=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u;}),[...o,{outlets:a}];}if(i.segmentPath)return[...o,i.segmentPath];}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?e++:a!=""&&o.push(a));}),o):[...o,i];},[]);return new Jh(n,e,r);}var hc=class{segmentGroup;processChildren;index;constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r;}};function k3(t,e,n){if(t.isAbsolute)return new hc(e,!0,0);if(!n)return new hc(e,!1,NaN);if(n.parent===null)return new hc(n,!0,0);let r=Qh(t.commands[0])?0:1,o=n.segments.length-1+r;return P3(n,o,t.numberOfDoubleDots);}function P3(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new I(4005,!1);o=r.segments.length;}return new hc(r,!1,o-i);}function F3(t){return Yl(t[0])?t[0].outlets:{[X]:t};}function zR(t,e,n){if(t??=new he([],{}),t.segments.length===0&&t.hasChildren())return zl(t,e,n);let r=U3(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let i=new he(t.segments.slice(0,r.pathIndex),{});return i.children[X]=new he(t.segments.slice(r.pathIndex),t.children),zl(i,0,o);}else return r.match&&o.length===0?new he(t.segments,{}):r.match&&!t.hasChildren()?tS(t,e,n):r.match?zl(t,0,o):tS(t,e,n);}function zl(t,e,n){if(n.length===0)return new he(t.segments,{});{let r=F3(n),o={};if(Object.keys(r).some(i=>i!==X)&&t.children[X]&&t.numberOfChildren===1&&t.children[X].segments.length===0){let i=zl(t.children[X],e,n);return new he(t.segments,i.children);}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=zR(t.children[i],e,s));}),Object.entries(t.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s);}),new he(t.segments,o);}}function U3(t,e,n){let r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(r>=n.length)return i;let s=t.segments[o],a=n[r];if(Yl(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!_R(c,u,s))return i;r+=2;}else{if(!_R(c,{},s))return i;r++;}o++;}return{match:!0,pathIndex:o,commandIndex:r};}function tS(t,e,n){let r=t.segments.slice(0,e),o=0;for(;o<n.length;){let i=n[o];if(Yl(i)){let c=H3(i.outlets);return new he(r,c);}if(o===0&&Qh(n[0])){let c=t.segments[e];r.push(new ci(c.path,wR(n[0]))),o++;continue;}let s=Yl(i)?i.outlets[X]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Qh(a)?(r.push(new ci(s,wR(a))),o+=2):(r.push(new ci(s,{})),o++);}return new he(r,{});}function H3(t){let e={};return Object.entries(t).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=tS(new he([],{}),0,r));}),e;}function wR(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e;}function _R(t,e,n){return t==n.path&&qr(e,n.parameters);}var mc="imperative",pt=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;}(pt||{}),Tn=class{id;url;constructor(e,n){this.id=e,this.url=n;}},li=class extends Tn{type=pt.NavigationStart;navigationTrigger;restoredState;constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o;}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`;}},At=class extends Tn{urlAfterRedirects;type=pt.NavigationEnd;constructor(e,n,r){super(e,n),this.urlAfterRedirects=r;}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;}},Ht=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromRe
14solver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t;}(Ht||{}),yc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t;}(yc||{}),dn=class extends Tn{reason;code;type=pt.NavigationCancel;constructor(e,n,r,o){super(e,n),this.reason=r,this.code=o;}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`;}};function WR(t){return t instanceof dn&&(t.code===Ht.Redirect||t.code===Ht.SupersededByNewNavigation);}var Un=class extends Tn{reason;code;type=pt.NavigationSkipped;constructor(e,n,r,o){super(e,n),this.reason=r,this.code=o;}},Ns=class extends Tn{error;target;type=pt.NavigationError;constructor(e,n,r,o){super(e,n),this.error=r,this.target=o;}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;}},Kl=class extends Tn{urlAfterRedirects;state;type=pt.RoutesRecognized;constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o;}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},em=class extends Tn{urlAfterRedirects;state;type=pt.GuardsCheckStart;constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o;}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},tm=class extends Tn{urlAfterRedirects;state;shouldActivate;type=pt.GuardsCheckEnd;constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i;}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;}},nm=class extends Tn{urlAfterRedirects;state;type=pt.ResolveStart;constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o;}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},rm=class extends Tn{urlAfterRedirects;state;type=pt.ResolveEnd;constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o;}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},om=class{route;type=pt.RouteConfigLoadStart;constructor(e){this.route=e;}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`;}},im=class{route;type=pt.RouteConfigLoadEnd;constructor(e){this.route=e;}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`;}},sm=class{snapshot;type=pt.ChildActivationStart;constructor(e){this.snapshot=e;}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},am=class{snapshot;type=pt.ChildActivationEnd;constructor(e){this.snapshot=e;}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},cm=class{snapshot;type=pt.ActivationStart;constructor(e){this.snapshot=e;}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},um=class{snapshot;type=pt.ActivationEnd;constructor(e){this.snapshot=e;}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},di=class{routerEvent;position;anchor;scrollBehavior;type=pt.Scroll;constructor(e,n,r,o){this.routerEvent=e,this.position=n,this.anchor=r,this.scrollBehavior=o;}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`;}},vc=class{},Xl=class{},Ec=class{url;navigationBehaviorOptions;constructor(e,n){this.url=e,this.navigationBehaviorOptions=n;}};function B3(t){return!(t instanceof vc)&&!(t instanceof Ec)&&!(t instanceof Xl);}var lm=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector;}constructor(e){this.rootInjector=e,this.children=new Ls(this.rootInjector);}},Ls=(()=>{let e=class e{rootInjector;contexts=new Map();constructor(r){this.rootInjector=r;}onChildOutletCreated(r,o){let i=this.getOrCreateContext(r);i.outlet=o,this.contexts.set(r,i);}onChildOutletDestroyed(r){let o=this.getContext(r);o&&(o.outlet=null,o.attachRef=null);}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map(),r;}onOutletReAttached(r){this.contexts=r;}getOrCreateContext(r){let o=this.getContext(r);return o||(o=new lm(this.rootInjector),this.contexts.set(r,o)),o;}getContext(r){return this.contexts.get(r)||null;}};p(e,"\u0275fac",function(o){return new(o||e)(M(Ie));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),dm=class{_root;constructor(e){this._root=e;}get root(){return this._root.value;}
14parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null;}children(e){let n=nS(e,this._root);return n?n.children.map(r=>r.value):[];}firstChild(e){let n=nS(e,this._root);return n&&n.children.length>0?n.children[0].value:null;}siblings(e){let n=rS(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e);}pathFromRoot(e){return rS(e,this._root).map(n=>n.value);}};function nS(t,e){if(t===e.value)return e;for(let n of e.children){let r=nS(t,n);if(r)return r;}return null;}function rS(t,e){if(t===e.value)return[e];for(let n of e.children){let r=rS(t,n);if(r.length)return r.unshift(e),r;}return[];}var bn=class{value;children;constructor(e,n){this.value=e,this.children=n;}toString(){return`TreeNode(${this.value})`;}};function pc(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e;}var Zl=class extends dm{snapshot;constructor(e,n){super(e),this.snapshot=n,hS(this,e);}toString(){return this.snapshot.toString();}};function qR(t,e){let n=j3(t,e),r=new Ct([new ci("",{})]),o=new Ct({}),i=new Ct({}),s=new Ct({}),a=new Ct(""),c=new Yr(r,o,s,a,i,X,t,n.root);return c.snapshot=n.root,new Zl(new bn(c,[]),n);}function j3(t,e){let n={},r={},o={},s=new bc([],n,o,"",r,X,t,null,{},e);return new Ql("",new bn(s,[]));}var Yr=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,n,r,o,i,s,a,c){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(F(u=>u[td]))??N(void 0),this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i;}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(F(e=>Ms(e))),this._paramMap;}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(F(e=>Ms(e))),this._queryParamMap;}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`;}};function pS(t,e,n="emptyOnly"){let r,{routeConfig:o}=t;return e!==null&&(n==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:S(S({},e.params),t.params),data:S(S({},e.data),t.data),resolve:S(S(S(S({},t.data),e.data),o?.data),t._resolvedData)}:r={params:S({},t.params),data:S({},t.data),resolve:S(S({},t.data),t._resolvedData??{})},o&&KR(o)&&(r.resolve[td]=o.title),r;}var bc=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[td];}constructor(e,n,r,o,i,s,a,c,u,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l;}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??=Ms(this.params),this._paramMap;}get queryParamMap(){return this._queryParamMap??=Ms(this.queryParams),this._queryParamMap;}toString(){let e=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`;}},Ql=class extends dm{url;constructor(e,n){super(n),this.url=e,hS(this,n);}toString(){return YR(this._root);}};function hS(t,e){e.value._routerState=t,e.children.forEach(n=>hS(t,n));}function YR(t){let e=t.children.length>0?` { ${t.children.map(YR).join(", ")} } `:"";return`${t.value}${e}`;}function KT(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,qr(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),qr(e.params,n.params)||t.paramsSubject.next(n.params),m3(e.url,n.url)||t.urlSubject.next(n.url),qr(e.data,n.data)||t.dataSubject.next(n.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function oS(t,e){let n=qr(t.params,e.params)&&b3(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||oS(t.parent,e.parent));}function KR(t){return typeof t.title=="string"||t.title===null;}var XR=new _(""),mS=(()=>{let e=class e{activated=null;get activatedComponentRef(){return this.activated;}_activatedRoute=null;name=X;activateEvents=new Lt();deactivateEvents=new Lt();attachEvents=new Lt();detachEvents=new Lt();routerOutletData=bx();parentContexts=g(Ls);location=g(Gr);changeDetector=g(As);inputBinder=g(nd,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(r){if(r.name){let{firstChange:o,previousValue:i}=r.name;if(o)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(r){return this.parentContexts.getContext(r)?.outlet===this;}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector));}get isActivated(){return!!this.activated;}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance;}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute;}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{};}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r;}attach(r,o){this.activated=r,this._activatedRoute=o,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance);}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r);}}activateWith(r,o){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=r;let i=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new iS(r,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275dir",sn({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ni]}));let t=e;return t;})(),iS=class{route;childContexts;parent;outletData;constructor(e,n,r,o){this.route=e,this.childContexts=n,this.parent=r,this.outletData=o;}get(e,n){return e===Yr?this.route:e===Ls?this.childContexts:e===XR?this.outletData:this.parent.get(e,n);}},nd=new _(""),gS=(()=>{let e=class e{outletDataSubscriptions=new Map();bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r);}unsubscribeFromRouteData(r){this.outletDataSubscriptions.get(r)?.unsubscribe(),this.outletDataSubscriptions.delete(r);}subscribeToRouteData(r){let{activatedRoute:o}=r,i=ff([o.queryParams,o.params,o.data]).pipe(ke(([s,a,c],u)=>(c=S(S(S({},s),a),c),u===0?N(c):Promise.resolve(c)))).subscribe(s=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(r);return;}let a=wx(o.component);if(!a){this.unsubscribeFromRouteData(r);return;}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,s[c]);});this.outletDataSubscriptions.set(r,i);}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),yS=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275cmp",ac({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(o,i){o&1&&ah(0,"router-outlet");},dependencies:[mS],encapsulation:2}));let t=e;return t;})();function vS(t){let e=t.children&&t.children.map(vS),n=e?$(S({},t),{children:e}):S({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==X&&(n.component=yS),n;}function V3(t,e,n){let r=Jl(t,e._root,n?n._root:void 0);return new Zl(r,e);}function Jl(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let o=$3(t,e,n);return new bn(r,o);}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Jl(t,a)),s;}}let r=G3(e.value),o=e.children.map(i=>Jl(t,i));return new bn(r,o);}}function $3(t,e,n){return e.children.map(r=>{for(let o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Jl(t,r,o);return Jl(t,r);});}function G3(t){return new Yr(new Ct(t.url),new Ct(t.params),new Ct(t.queryParams),new Ct(t.fragment),new Ct(t.data),t.outlet,t.component,t);}var Tc=class{redirectTo;navigationBehaviorOptions;constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n;}},ZR="ngNavigationCancelingError";function fm(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=ui(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=QR(!1,Ht.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o;}function QR(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[ZR]=!0,n.cancellationCode=e,n;}function z3(t){return JR(t)&&ui(t.url);}function JR(t){return!!t&&t[ZR];}var sS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,n,r,o,i){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i;}activate(e){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),KT(this.futureState.root),this.activateChildRoutes(n,r,e);}deactivateChildRoutes(e,n,r){let o=pc(n);
14e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s];}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r);});}deactivateRoutes(e,n,r){let o=e.value,i=n?n.value:null;if(o===i){if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children);}else this.deactivateChildRoutes(e,n,r);}else i&&this.deactivateRouteAndItsChildren(n,r);}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n);}detachAndStoreRouteSubtree(e,n){let r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=pc(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a});}}deactivateRouteAndOutlet(e,n){let r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=pc(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null);}activateChildRoutes(e,n,r){let o=pc(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new um(i.value.snapshot));}),e.children.length&&this.forwardEvent(new am(e.value.snapshot));}activateRoutes(e,n,r){let o=e.value,i=n?n.value:null;if(KT(o),o===i){if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children);}else this.activateChildRoutes(e,n,r);}else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),KT(a.route.value),this.activateChildRoutes(e,null,s.children);}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children);}else this.activateChildRoutes(e,null,r);}},pm=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1];}},gc=class{component;route;constructor(e,n){this.component=e,this.route=n;}};function W3(t,e,n){let r=t._root,o=e?e._root:null;return Gl(r,o,n,[r.value]);}function q3(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e};}function Dc(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!Xy(t)?t:e.get(t):r;}function Gl(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=pc(e);return t.children.forEach(s=>{Y3(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet];}),Object.entries(i).forEach(([s,a])=>Wl(a,n.getContext(s),o)),o;}function Y3(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=K3(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new pm(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Gl(t,e,a?a.children:null,r,o):Gl(t,e,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new gc(a.outlet.component,s));}else s&&Wl(e,a,o),o.canActivateChecks.push(new pm(r)),i.component?Gl(t,null,a?a.children:null,r,o):Gl(t,null,n,r,o);return o;}function K3(t,e,n){if(typeof n=="function")return dt(e._environmentInjector,()=>n(t,e));switch(n){case"pathParamsChange":return!Rs(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Rs(t.url,e.url)||!qr(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!oS(t,e)||!qr(t.queryParams,e.queryParams);default:return!oS(t,e);}}function Wl(t,e,n){let r=pc(t),o=t.value;Object.entries(r).forEach(([i,s])=>{o.component?e?Wl(s,e.children.getContext(i),n):Wl(s,null,n):Wl(s,e,n);}),o.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new gc(e.outlet.component,o)):n.canDeactivateChecks.push(new gc(null,o)):n.canDeactivateChecks.push(new gc(null,o));}function rd(t){return typeof t=="function";}function X3(t){return typeof t=="boolean";}function Z3(t){return t&&rd(t.canLoad);}function Q3(t){return t&&rd(t.canActivate);}function J3(t){return t&&rd(t.canActivateChild);}function e5(t){return t&&rd(t.canDeactivate);}function t5(t){return t&&rd(t.canMatch);}function eM(t){return t instanceof Qn||t?.name==="EmptyError";}var qh=Symbol("INITIAL_VALUE");function Sc(){return ke(t=>ff(t.map(e=>e.pipe(_n(1),vf(qh)))).pipe(F(e=>{for(let n of e)if(n!==!0){if(n===qh)return qh;if(n===!1||n5(n))return n;}return!0;}),Te(e=>e!==qh),_n(1)));}function n5(t){return ui(t)||t instanceof Tc;}function tM(t){return t.aborted?N(void 0).pipe(_n(1)):new q(e=>{let n=()=>
14{e.next(),e.complete();};return t.addEventListener("abort",n),()=>t.removeEventListener("abort",n);});}function nM(t){return Cu(tM(t));}function r5(t){return Ee(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=e;return i.length===0&&o.length===0?N($(S({},e),{guardsResult:!0})):o5(i,n,r).pipe(Ee(s=>s&&X3(s)?i5(n,o,t):N(s)),F(s=>$(S({},e),{guardsResult:s})));});}function o5(t,e,n){return me(t).pipe(Ee(r=>l5(r.component,r.route,n,e)),Re(r=>r!==!0,!0));}function i5(t,e,n){return me(e).pipe(tr(r=>Rr(a5(r.route.parent,n),s5(r.route,n),u5(t,r.path),c5(t,r.route))),Re(r=>r!==!0,!0));}function s5(t,e){return t!==null&&e&&e(new cm(t)),N(!0);}function a5(t,e){return t!==null&&e&&e(new sm(t)),N(!0);}function c5(t,e){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return N(!0);let r=n.map(o=>Su(()=>{let i=e._environmentInjector,s=Dc(o,i),a=Q3(s)?s.canActivate(e,t):dt(i,()=>s(e,t));return Os(a).pipe(Re());}));return N(r).pipe(Sc());}function u5(t,e){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(i=>q3(i)).filter(i=>i!==null).map(i=>Su(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Dc(a,c),l=J3(u)?u.canActivateChild(n,t):dt(c,()=>u(n,t));return Os(l).pipe(Re());});return N(s).pipe(Sc());}));return N(o).pipe(Sc());}function l5(t,e,n,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return N(!0);let i=o.map(s=>{let a=e._environmentInjector,c=Dc(s,a),u=e5(c)?c.canDeactivate(t,e,n,r):dt(a,()=>c(t,e,n,r));return Os(u).pipe(Re());});return N(i).pipe(Sc());}function d5(t,e,n,r,o){let i=e.canLoad;if(i===void 0||i.length===0)return N(!0);let s=i.map(a=>{let c=Dc(a,t),u=Z3(c)?c.canLoad(e,n):dt(t,()=>c(e,n)),l=Os(u);return o?l.pipe(nM(o)):l;});return N(s).pipe(Sc(),rM(r));}function rM(t){return by(vt(e=>{if(typeof e!="boolean")throw fm(t,e);}),F(e=>e===!0));}function f5(t,e,n,r,o,i){let s=e.canMatch;if(!s||s.length===0)return N(!0);let a=s.map(c=>{let u=Dc(c,t),l=t5(u)?u.canMatch(e,n,o):dt(t,()=>u(e,n,o));return Os(l).pipe(nM(i));});return N(a).pipe(Sc(),rM(r));}var xo=class t extends Error{segmentGroup;constructor(e){super(),this.segmentGroup=e||null,Object.setPrototypeOf(this,t.prototype);}},ed=class t extends Error{urlTree;constructor(e){super(),this.urlTree=e,Object.setPrototypeOf(this,t.prototype);}};function p5(t){throw new I(4e3,!1);}function h5(t){throw QR(!1,Ht.GuardRejected);}var aS=class{urlSerializer;urlTree;constructor(e,n){this.urlSerializer=e,this.urlTree=n;}lineralizeSegments(e,n){return P(this,null,function*(){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[X])throw p5(`${e.redirectTo}`);o=o.children[X];}});}applyRedirectCommands(e,n,r,o,i){return P(this,null,function*(){let s=yield m5(n,o,i);if(s instanceof Wt)throw new ed(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),e,r);if(s[0]==="/")throw new ed(a);return a;});}applyRedirectCreateUrlTree(e,n,r,o){let i=this.createSegmentGroup(e,n.root,r,o);return new Wt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment);}createQueryParams(e,n){let r={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a];}else r[o]=i;}),r;}createSegmentGroup(e,n,r,o){let i=this.createSegments(e,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,r,o);}),new he(i,s);}createSegments(e,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,r));}findPosParam(e,n,r){let o=r[n.path.substring(1)];if(!o)throw new I(4001,!1);return o;}findOrReturn(e,n){let r=0;for(let o of n){if(o.path===e.path)return n.splice(r),o;r++;}return e;}};function m5(t,e,n){if(typeof t=="string")return Promise.resolve(t);let r=t;return Zh(Os(dt(n,()=>r(e))));}function g5(t,e){return t.providers&&!t._injector&&(t._injector=Is(t.providers,e,`Route: ${t.path}`)),t._injector??e;}function vr(t){return t.outlet||X;}function y5(t,e){let n=t.filter(r=>vr(r)===e);return n.push(...t.filter(r=>vr(r)!==e)),n;}var cS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oM(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap};}function v5(t,e,n,r,o,i,s){let a=iM(t,e,n);if(!a.matched)return N(a);let c=oM(i(a));return r=g5(e,r),f5(r,e,n,o,c,s).pipe(F(u=>u===!0?a:S({},cS)));}function iM(t,e,n){if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?S({},cS):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(e.matcher||RR)(n,t,e);if(!o)return S({},cS);let i={};Object.entries(o.posParams??{}
14).forEach(([a,c])=>{i[a]=c.path;});let s=o.consumed.length>0?S(S({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}};}function AR(t,e,n,r,o){return n.length>0&&T5(t,n,r,o)?{segmentGroup:new he(e,b5(r,new he(n,t.children))),slicedSegments:[]}:n.length===0&&S5(t,n,r)?{segmentGroup:new he(t.segments,E5(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new he(t.segments,t.children),slicedSegments:n};}function E5(t,e,n,r){let o={};for(let i of n)if(mm(t,e,i)&&!r[vr(i)]){let s=new he([],{});o[vr(i)]=s;}return S(S({},r),o);}function b5(t,e){let n={};n[X]=e;for(let r of t)if(r.path===""&&vr(r)!==X){let o=new he([],{});n[vr(r)]=o;}return n;}function T5(t,e,n,r){return n.some(o=>!mm(t,e,o)||!(vr(o)!==X)?!1:!(r!==void 0&&vr(o)===r));}function S5(t,e,n){return n.some(r=>mm(t,e,r));}function mm(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path==="";}function D5(t,e,n){return e.length===0&&!t.children[n];}var uS=class{};function C5(t,e,n,r,o,i,s="emptyOnly",a){return P(this,null,function*(){return new lS(t,e,n,r,o,s,i,a).recognize();});}var I5=31,lS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,n,r,o,i,s,a,c){this.injector=e,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new aS(this.urlSerializer,this.urlTree);}noMatchError(e){return new I(4002,`'${e.segmentGroup}'`);}recognize(){return P(this,null,function*(){let e=AR(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=yield this.match(e),o=new bn(r,n),i=new Ql("",o),s=jR(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s};});}match(e){return P(this,null,function*(){let n=new bc([],Object.freeze({}),Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),X,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,e,X,n),rootSnapshot:n};}catch(r){if(r instanceof ed)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof xo?this.noMatchError(r):r;}});}processSegmentGroup(e,n,r,o,i){return P(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(e,n,r,i);let s=yield this.processSegment(e,n,r,r.segments,o,!0,i);return s instanceof bn?[s]:[];});}processChildren(e,n,r,o){return P(this,null,function*(){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=y5(n,c),d=yield this.processSegmentGroup(e,l,u,c,o);s.push(...d);}let a=sM(s);return w5(a),a;});}processSegment(e,n,r,o,i,s,a){return P(this,null,function*(){for(let c of n)try{return yield this.processSegmentAgainstRoute(c._injector??e,n,c,r,o,i,s,a);}catch(u){if(u instanceof xo||eM(u))continue;throw u;}if(D5(r,o,i))return new uS();throw new xo(r);});}processSegmentAgainstRoute(e,n,r,o,i,s,a,c){return P(this,null,function*(){if(vr(r)!==s&&(s===X||!mm(o,i,r)))throw new xo(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(e,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(e,o,n,r,i,s,c);throw new xo(o);});}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s,a){return P(this,null,function*(){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=iM(n,o,i);if(!c)throw new xo(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>I5&&(this.allowRedirects=!1));let h=this.createSnapshot(e,o,i,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let m=yield this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,oM(h),e),v=yield this.applyRedirects.lineralizeSegments(o,m);return this.processSegment(e,r,n,v.concat(f),s,!1,a);});}createSnapshot(e,n,r,o,i){let s=new bc(r,o,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,A5(n),vr(n),n.component??n._loadedComponent??null,n,x5(n),e),a=pS(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s;}matchSegmentAgainstRoute(e,n,r,o,i,s){return P(this,null,function*(){if(this.abort
14Signal.aborted)throw new Error(this.abortSignal.reason);let a=k=>this.createSnapshot(e,r,k.consumedSegments,k.parameters,s),c=yield Zh(v5(n,r,o,e,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new xo(n);e=r._injector??e;let{routes:u}=yield this.getChildConfig(e,r,o),l=r._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,m=this.createSnapshot(e,r,f,d,s),{segmentGroup:v,slicedSegments:b}=AR(n,f,h,u,i);if(b.length===0&&v.hasChildren()){let k=yield this.processChildren(l,u,v,m);return new bn(m,k);}if(u.length===0&&b.length===0)return new bn(m,[]);let T=vr(r)===i,C=yield this.processSegment(l,u,v,b,T?X:i,!0,m);return new bn(m,C instanceof bn?[C]:[]);});}getChildConfig(e,n,r){return P(this,null,function*(){if(n.children)return{routes:n.children,injector:e};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(e).injector),{routes:n._loadedRoutes,injector:n._loadedInjector};}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Zh(d5(e,n,r,this.urlSerializer,this.abortSignal))){let i=yield this.configLoader.loadChildren(e,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i;}throw h5(n);}return{routes:[],injector:e};});}};function w5(t){t.sort((e,n)=>e.value.outlet===X?-1:n.value.outlet===X?1:e.value.outlet.localeCompare(n.value.outlet));}function _5(t){let e=t.value.routeConfig;return e&&e.path==="";}function sM(t){let e=[],n=new Set();for(let r of t){if(!_5(r)){e.push(r);continue;}let o=e.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):e.push(r);}for(let r of n){let o=sM(r.children);e.push(new bn(r.value,o));}return e.filter(r=>!n.has(r));}function A5(t){return t.data||{};}function x5(t){return t.resolve||{};}function R5(t,e,n,r,o,i,s){return Ee(a=>P(null,null,function*(){let{state:c,tree:u}=yield C5(t,e,n,r,a.extractedUrl,o,i,s);return $(S({},a),{targetSnapshot:c,urlAfterRedirects:u});}));}function M5(t){return Ee(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return N(e);let o=new Set(r.map(a=>a.route)),i=new Set();for(let a of o)if(!i.has(a))for(let c of aM(a))i.add(c);let s=0;return me(i).pipe(tr(a=>o.has(a)?N5(a,n,t):(a.data=pS(a,a.parent,t).resolve,N(void 0))),vt(()=>s++),gf(1),Ee(a=>s===i.size?N(e):Ye));});}function aM(t){let e=t.children.map(n=>aM(n)).flat();return[t,...e];}function N5(t,e,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!KR(r)&&(o[td]=r.title),Su(()=>(t.data=pS(t,t.parent,n).resolve,O5(o,t,e).pipe(F(i=>(t._resolvedData=i,t.data=S(S({},t.data),i),null)))));}function O5(t,e,n){let r=ZT(t);if(r.length===0)return N({});let o={};return me(r).pipe(Ee(i=>L5(t[i],e,n).pipe(Re(),vt(s=>{if(s instanceof Tc)throw fm(new Ro(),s);o[i]=s;}))),gf(1),F(()=>o),ae(i=>eM(i)?Ye:_r(i)));}function L5(t,e,n){let r=e._environmentInjector,o=Dc(t,r),i=o.resolve?o.resolve(e,n):dt(r,()=>o(e,n));return Os(i);}function xR(t){return ke(e=>{let n=t(e);return n?me(n).pipe(F(()=>e)):N(e);});}var ES=(()=>{let e=class e{buildTitle(r){let o,i=r.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===X);return o;}getResolvedTitleForRoute(r){return r.data[td];}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>g(cM),providedIn:"root"}));let t=e;return t;})(),cM=(()=>{let e=class e extends ES{title;constructor(r){super(),this.title=r;}updateTitle(r){let o=this.buildTitle(r);o!==void 0&&this.title.setTitle(o);}};p(e,"\u0275fac",function(o){return new(o||e)(M(zh));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),pi=new _("",{factory:()=>({})}),ks=new _(""),gm=(()=>{let e=class e{componentLoaders=new WeakMap();childrenLoaders=new WeakMap();onLoadStartListener;onLoadEndListener;compiler=g(rT);loadComponent(r,o){return P(this,null,function*(){if(this.componentLoaders.get(o))return this.componentLoaders.get(o);if(o._loadedComponent)return Promise.resolve(o._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(o);let i=P(this,null,function*(){try{let s=yield NR(dt(r,()=>o.loadComponent())),a=yield dM(lM(s));return this.onLoadEndListener&&this.onLoadEndListener(o),o._loadedComponent=a,a;}finally{this.componentLoaders.delete(o);}});return this.componentLoaders.set(o,i),i;});}
14loadChildren(r,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return Promise.resolve({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let i=P(this,null,function*(){try{let s=yield uM(o,this.compiler,r,this.onLoadEndListener);return o._loadedRoutes=s.routes,o._loadedInjector=s.injector,o._loadedNgModuleFactory=s.factory,s;}finally{this.childrenLoaders.delete(o);}});return this.childrenLoaders.set(o,i),i;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function uM(t,e,n,r){return P(this,null,function*(){let o=yield NR(dt(n,()=>t.loadChildren())),i=yield dM(lM(o)),s;i instanceof Jp||Array.isArray(i)?s=i:s=yield e.compileModuleAsync(i),r&&r(t);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(n).injector,l=s,c=a.get(ks,[],{optional:!0,self:!0}).flat()),{routes:c.map(vS),injector:a,factory:l};});}function k5(t){return t&&typeof t=="object"&&"default"in t;}function lM(t){return k5(t)?t.default:t;}function dM(t){return P(this,null,function*(){return t;});}var ym=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>g(P5),providedIn:"root"}));let t=e;return t;})(),P5=(()=>{let e=class e{shouldProcessUrl(r){return!0;}extract(r){return r;}merge(r,o){return r;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),bS=new _(""),TS=new _("");function fM(t,e,n){let r=t.get(TS),o=t.get(we);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u;}),a=o.startViewTransition(()=>(i(),F5(t)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&dt(t,()=>c({transition:a,from:e,to:n})),s;}function F5(t){return new Promise(e=>{El({read:()=>setTimeout(e)},{injector:t});});}var U5=()=>{},SS=new _(""),vm=(()=>{let e=class e{currentNavigation=je(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=je(null);events=new Z();transitionAbortWithErrorSubject=new Z();configLoader=g(gm);environmentInjector=g(Ie);destroyRef=g(Gt);urlSerializer=g(fi);rootContexts=g(Ls);location=g(ai);inputBindingEnabled=g(nd,{optional:!0})!==null;titleStrategy=g(ES);options=g(pi,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(ym);createViewTransition=g(bS,{optional:!0});navigationErrorHandler=g(SS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0;}transitions;afterPreactivation=()=>N(void 0);rootComponentType=null;destroyed=!1;constructor(){let r=i=>this.events.next(new om(i)),o=i=>this.events.next(new im(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=r,this.destroyRef.onDestroy(()=>{this.destroyed=!0;});}complete(){this.transitions?.complete();}handleNavigationRequest(r){let o=++this.navigationId;_e(()=>{this.transitions?.next($(S({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:o,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(r){return this.transitions=new Ct(null),this.transitions.pipe(Te(o=>o!==null),ke(o=>{let i=!1,s=new AbortController(),a=()=>!i&&this.currentTransition?.id===o.id;return N(o).pipe(ke(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Ht.SupersededByNewNavigation),Ye;this.currentTransition=o;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:u?$(S({},u),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:c.routesRecognizeHandler,beforeActivateHandler:c.beforeActivateHandler});
14let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&d!=="reload")return this.events.next(new Un(c.id,this.urlSerializer.serialize(c.rawUrl),"",yc.IgnoredSameUrlNavigation)),c.resolve(!1),Ye;if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return N(c).pipe(ke(f=>(this.events.next(new li(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?Ye:Promise.resolve(f))),R5(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),vt(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=f.urlAfterRedirects,h)),this.events.next(new Xl());}),ke(f=>me(o.routesRecognizeHandler.deferredHandle??N(void 0)).pipe(F(()=>f))),vt(()=>{let f=new Kl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:m,restoredState:v,extras:b}=c,T=new li(f,this.urlSerializer.serialize(h),m,v);this.events.next(T);let C=qR(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=o=$(S({},c),{targetSnapshot:C,urlAfterRedirects:h,extras:$(S({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(k=>(k.finalUrl=h,k)),N(o);}else return this.events.next(new Un(c.id,this.urlSerializer.serialize(c.extractedUrl),"",yc.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ye;}),F(c=>{let u=new em(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);return this.events.next(u),this.currentTransition=o=$(S({},c),{guards:W3(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o;}),r5(c=>this.events.next(c)),ke(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw fm(this.urlSerializer,c.guardsResult);let u=new tm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);if(this.events.next(u),!a())return Ye;if(!c.guardsResult)return this.cancelNavigationTransition(c,"",Ht.GuardRejected),Ye;if(c.guards.canActivateChecks.length===0)return N(c);let l=new nm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);if(this.events.next(l),!a())return Ye;let d=!1;return N(c).pipe(M5(this.paramsInheritanceStrategy),vt({next:()=>{d=!0;let f=new rm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);},complete:()=>{d||this.cancelNavigationTransition(c,"",Ht.NoDataFromResolver);}}));}),xR(c=>{let u=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let h=d._environmentInjector;f.push(this.configLoader.loadComponent(h,d.routeConfig).then(m=>{d.component=m;}));}for(let h of d.children)f.push(...u(h));return f;},l=u(c.targetSnapshot.root);return l.length===0?N(c):me(Promise.all(l).then(()=>c));}),xR(()=>this.afterPreactivation()),ke(()=>{let{currentSnapshot:c,targetSnapshot:u}=o,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?me(l).pipe(F(()=>o)):N(o);}),_n(1),ke(c=>{let u=V3(r.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);this.currentTransition=o=c=$(S({},c),{targetRouterState:u}),this.currentNavigation.update(d=>(d.targetRouterState=u,d)),this.events.next(new vc());let l=o.beforeActivateHandler.deferredHandle;return l?me(l.then(()=>c)):N(c);}),vt(c=>{new sS(r.routeReuseStrategy,o.targetRouterState,o.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),a()&&(i=!0,this.currentNavigation.update(u=>(u.abort=U5,u)),this.lastSuccessfulNavigation.set(_e(this.currentNavigation)),this.events.next(new At(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0));}
14),Cu(tM(s.signal).pipe(Te(()=>!i&&!o.targetRouterState),vt(()=>{this.cancelNavigationTransition(o,s.signal.reason+"",Ht.Aborted);}))),vt({complete:()=>{i=!0;}}),Cu(this.transitionAbortWithErrorSubject.pipe(vt(c=>{throw c;}))),Yi(()=>{s.abort(),i||this.cancelNavigationTransition(o,"",Ht.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ae(c=>{if(i=!0,this.destroyed)return o.resolve(!1),Ye;if(JR(c))this.events.next(new dn(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),z3(c)?this.events.next(new Ec(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let u=new Ns(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let l=dt(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Tc){let{message:d,cancellationCode:f}=fm(this.urlSerializer,l);this.events.next(new dn(o.id,this.urlSerializer.serialize(o.extractedUrl),d,f)),this.events.next(new Ec(l.redirectTo,l.navigationBehaviorOptions));}else throw this.events.next(u),c;}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l);}}return Ye;}));}));}cancelNavigationTransition(r,o,i){let s=new dn(r.id,this.urlSerializer.serialize(r.extractedUrl),o,i);this.events.next(s),r.resolve(!1);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString();}isUpdatedBrowserUrl(){let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),o=_e(this.currentNavigation),i=o?.targetBrowserUrl??o?.extractedUrl;return r.toString()!==i?.toString()&&!o?.extras.skipLocationChange;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function H5(t){return t!==mc;}var pM=new _("");var hM=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>g(B5),providedIn:"root"}));let t=e;return t;})(),hm=class{shouldDetach(e){return!1;}store(e,n){}shouldAttach(e){return!1;}retrieve(e){return null;}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig;}shouldDestroyInjector(e){return!0;}},B5=(()=>{let e=class e extends hm{};p(e,"\u0275fac",(()=>{let r;return function(i){return(r||(r=ri(e)))(i||e);};})()),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),Em=(()=>{let e=class e{urlSerializer=g(fi);options=g(pi,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(ai);urlHandlingStrategy=g(ym);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Wt();getCurrentUrlTree(){return this.currentUrlTree;}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree;}createBrowserPath({finalUrl:r,initialUrl:o,targetBrowserUrl:i}){let s=r!==void 0?this.urlHandlingStrategy.merge(r,o):o,a=i??s;return a instanceof Wt?this.urlSerializer.serialize(a):a;}routerUrlState(r){return r?.targetBrowserUrl===void 0||r?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(r.finalUrl)};}commitTransition({targetRouterState:r,finalUrl:o,initialUrl:i}){o&&r?(this.currentUrlTree=o,this.rawUrlTree=this.urlHandlingStrategy.merge(o,i),this.routerState=r):this.rawUrlTree=i;}routerState=qR(null,g(Ie));getRouterState(){return this.routerState;}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento;}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState};}restoredState(){return this.location.getState();}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:()=>g(j5),providedIn:"root"}));let t=e;return t;})(),j5=(()=>{let e=class e extends Em{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId;}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(o=>{o.type==="popstate"&&setTimeout(()=>{r(o.url,o.state,"popstate",{replaceUrl:!0});});});}handleRouterEvent(r,o){r instanceof li?this.updateStateMemento():r instanceof Un?this.commitTransition(o):r instanceof Kl?this.urlUpdateStrategy==="eager"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(o),o)):r instanceof vc?(this.commitTransition(o),this.urlUpdateStrategy==="deferred"&&!o.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(o),o)):r instanceof dn&&!WR(r)?this.restoreHistory(o):r instanceof Ns?this.restoreHistory(o,!0):r instanceof At&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId);}setBrowserUrl(r,o){let{extras:i,id:s}=o,{replaceUrl:a,state:c}=i;
14if(this.location.isCurrentPathEqualTo(r)||a){let u=this.browserPageId,l=S(S({},c),this.generateNgRouterState(s,u,o));this.location.replaceState(r,"",l);}else{let u=S(S({},c),this.generateNgRouterState(s,this.browserPageId+1,o));this.location.go(r,"",u);}}restoreHistory(r,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.getCurrentUrlTree()===r.finalUrl&&s===0&&(this.resetInternalState(r),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(o&&this.resetInternalState(r),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:r}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(r,o,i){return this.canceledNavigationResolution==="computed"?S({navigationId:r,ɵrouterPageId:o},this.routerUrlState(i)):S({navigationId:r},this.routerUrlState(i));}};p(e,"\u0275fac",(()=>{let r;return function(i){return(r||(r=ri(e)))(i||e);};})()),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function bm(t,e){t.events.pipe(Te(n=>n instanceof At||n instanceof dn||n instanceof Ns||n instanceof Un),F(n=>n instanceof At||n instanceof Un?0:(n instanceof dn?n.code===Ht.Redirect||n.code===Ht.SupersededByNewNavigation:!1)?2:1),Te(n=>n!==2),_n(1)).subscribe(()=>{e();});}var ht=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree();}get rawUrlTree(){return this.stateManager.getRawUrlTree();}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(th);stateManager=g(Em);options=g(pi,{optional:!0})||{};pendingTasks=g(Hr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(vm);urlSerializer=g(fi);location=g(ai);urlHandlingStrategy=g(ym);injector=g(Ie);_events=new Z();get events(){return this._events;}get routerState(){return this.stateManager.getRouterState();}navigated=!1;routeReuseStrategy=g(hM);injectorCleanup=g(pM,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(ks,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(nd,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:r=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new Le();subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=_e(this.navigationTransitions.currentNavigation);if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof dn&&o.code!==Ht.Redirect&&o.code!==Ht.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof At)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(o instanceof Ec){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=S({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||H5(i.source)},a);this.scheduleNavigation(c,mc,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}B3(o)&&this._events.next(o);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(r);}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),mc,this.stateManager.restoredState(),{replaceUrl:!0});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,o,i,s)=>{this.navigateToSyncWithBrowser(r,i,o,s);});}navigateToSyncWithBrowser(r,o,i,s){let a=i?.navigationId?i:null,c=i?.ɵrouterUrl??r;if(i?.ɵrouterUrl&&(s=$(S({},s),{browserUrl:r})),i){let l=S({},i);delete l.navigationId,delete l.ɵrouterPageId,delete l.ɵrouterUrl,Object.keys(l).length!==0&&(s.state=l);}let u=this.parseUrl(c);this.scheduleNavigation(u,o,a,s).catch(l=>{this.disposed||this.injector.get(nn)(l);});}get url(){return this.serializeUrl(this.currentUrlTree);}getCurrentNavigation(){return _e(this.navigationTransitions.currentNavigation);}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation;}resetConfig(r){this.config=r.map(vS),this.navigated=!1;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe();}createUrlTree(r,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=S(S({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null;}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=VR(h);}
14catch(h){(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),f=this.currentUrlTree.root;}return $R(f,r,d,l??null,this.urlSerializer);}navigateByUrl(r,o={skipLocationChange:!1}){let i=ui(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,mc,null,o);}navigate(r,o={skipLocationChange:!1}){return V5(r),this.navigateByUrl(this.createUrlTree(r,o),o);}serializeUrl(r){return this.urlSerializer.serialize(r);}parseUrl(r){try{return this.urlSerializer.parse(r);}catch(o){return this.console.warn(Rn(4018,!1)),this.urlSerializer.parse("/");}}isActive(r,o){let i;if(o===!0?i=S({},dS):o===!1?i=S({},ql):i=S(S({},ql),o),ui(r))return QT(this.currentUrlTree,r,i);let s=this.parseUrl(r);return QT(this.currentUrlTree,s,i);}removeEmptyProps(r){return Object.entries(r).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{});}scheduleNavigation(r,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h;});let d=this.pendingTasks.add();return bm(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
14),l.catch(Promise.reject.bind(Promise));}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();function V5(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new I(4008,!1);}var $5=(()=>{let e=class e{router=g(ht);stateManager=g(Em);fragment=je("");queryParams=je({});path=je("");serializer=g(fi);constructor(){this.updateState(),this.router.events?.subscribe(r=>{r instanceof At&&this.updateState();});}updateState(){let{fragment:r,root:o,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(r),this.queryParams.set(i),this.path.set(this.serializer.serialize(new Wt(o)));}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),Tm=(()=>{let e=class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new gh("href"),{optional:!0});reactiveHref=oT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return _e(this.reactiveHref);}set href(r){this.reactiveHref.set(r);}set target(r){this._target.set(r);}get target(){return _e(this._target);}_target=je(void 0);set queryParams(r){this._queryParams.set(r);}get queryParams(){return _e(this._queryParams);}_queryParams=je(void 0,{equal:()=>!1});set fragment(r){this._fragment.set(r);}get fragment(){return _e(this._fragment);}_fragment=je(void 0);set queryParamsHandling(r){this._queryParamsHandling.set(r);}get queryParamsHandling(){return _e(this._queryParamsHandling);}_queryParamsHandling=je(void 0);set state(r){this._state.set(r);}get state(){return _e(this._state);}_state=je(void 0,{equal:()=>!1});set info(r){this._info.set(r);}get info(){return _e(this._info);}_info=je(void 0,{equal:()=>!1});set relativeTo(r){this._relativeTo.set(r);}get relativeTo(){return _e(this._relativeTo);}_relativeTo=je(void 0);set preserveFragment(r){this._preserveFragment.set(r);}get preserveFragment(){return _e(this._preserveFragment);}_preserveFragment=je(!1);set skipLocationChange(r){this._skipLocationChange.set(r);}get skipLocationChange(){return _e(this._skipLocationChange);}_skipLocationChange=je(!1);set replaceUrl(r){this._replaceUrl.set(r);}get replaceUrl(){return _e(this._replaceUrl);}_replaceUrl=je(!1);isAnchorElement;onChanges=new Z();applicationErrorHandler=g(nn);options=g(pi,{optional:!0});reactiveRouterState=g($5);constructor(r,o,i,s,a,c){this.router=r,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=c;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r);}ngOnChanges(r){this.onChanges.next(this);}routerLinkInput=je(null);set routerLink(r){r==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(ui(r)?this.routerLinkInput.set(r):this.routerLinkInput.set(Array.isArray(r)?r:[r]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(r,o,i,s,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(r!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u)?.catch(l=>{this.applicationErrorHandler(l);}),!this.isAnchorElement;}ngOnDestroy(){}applyAttributeValue(r,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,r,o):i.removeAttribute(s,r);}_urlTree=wl(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let r=i=>i==="preserve"||i==="merge";(r(this._queryParamsHandling())||r(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let o=this.routerLinkInput();return o===null||!this.router.createUrlTree?null:ui(o)?o:this.router.createUrlTree(o,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()});},{equal:(r,o)=>this.computeHref(r)===this.computeHref(o)});get urlTree(){return _e(this._urlTree);}computeHref(r){return r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r))??"":null;}};p(e,"\u0275fac",function(o){return new(o||e)(se(ht),se(Yr),hl("tabindex"),se(oi),se(Ln),se(gr));}),p(e,"\u0275dir",sn({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(o,i){o&1&&uh("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey);}),o&2&&sh("href",i.reactiveHref(),ob)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Al],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Al],replaceUrl:[2,"replaceUrl","replaceUrl",Al],routerLink:"routerLink"},features:[ni]}));let t=e;return t;})(),G5=(()=>{let e=class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive;}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Lt();link=g(Tm,{optional:!0});constructor(r,o,i,s){this.router=r,this.element=o,this.renderer=i,this.cdr=s,this.routerEventsSubscription=r.events.subscribe(a=>{a instanceof At&&this.update();});}ngAfterContentInit(){N(this.links.changes,N(null)).pipe(xr()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let r=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=me(r).pipe(xr()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update();});}set routerLinkActive(r){let o=Array.isArray(r)?r:r.split(" ");this.classes=o.filter(i=>!!i);}ngOnChanges(r){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();
14this.classes.forEach(o=>{r?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o);}),r&&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!==r&&(this._isActive=r,this.cdr.markForCheck(),this.isActiveChange.emit(r));});}isLinkActive(r){let o=z5(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?S({},dS):S({},ql);return i=>{let s=i.urlTree;return s?_e(fS(s,r,o)):!1;};}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r);}};p(e,"\u0275fac",function(o){return new(o||e)(se(ht),se(Ln),se(oi),se(As));}),p(e,"\u0275dir",sn({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&fh(s,Tm,5),o&2){let a;Jb(a=eT())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ni]}));let t=e;return t;})();function z5(t){let e=t;return!!(e.paths||e.matrixParams||e.queryParams||e.fragment);}var od=class{};var mM=(()=>{let e=class e{router;injector;preloadingStrategy;loader;subscription;constructor(r,o,i,s){this.router=r,this.injector=o,this.preloadingStrategy=i,this.loader=s;}setUpPreloading(){this.subscription=this.router.events.pipe(Te(r=>r instanceof At),tr(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config);}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(r,o){let i=[];for(let s of o){s.providers&&!s._injector&&(s._injector=Is(s.providers,r,""));let a=s._injector??r;s._loadedNgModuleFactory&&!s._loadedInjector&&(s._loadedInjector=s._loadedNgModuleFactory.create(a).injector);let c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes));}return me(i).pipe(xr());}preloadConfig(r,o){return this.preloadingStrategy.preload(o,()=>{if(r.destroyed)return N(null);let i;o.loadChildren&&o.canLoad===void 0?i=me(this.loader.loadChildren(r,o)):i=N(null);let s=i.pipe(Ee(a=>a===null?N(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,o._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??r,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(r,o);return me([s,a]).pipe(xr());}else return s;});}};p(e,"\u0275fac",function(o){return new(o||e)(M(ht),M(Ie),M(od),M(gm));}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),CS=new _(""),gM=(()=>{let e=class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=mc;restoredId=0;store={};urlSerializer=g(fi);zone=g(ue);viewportScroller=g(Fl);transitions=g(vm);constructor(r){this.options=r,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled";}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof li?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof At?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof Un&&r.code===yc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment));});}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{if(!(r instanceof di)||r.scrollBehavior==="manual")return;let o={behavior:"instant"};r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],o):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position,o):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);});}scheduleScrollEvent(r,o){let i=_e(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>P(this,null,function*(){yield new Promise(s=>{setTimeout(s),typeof requestAnimationFrame<"u"&&requestAnimationFrame(s);}),this.zone.run(()=>{this.transitions.events.next(new di(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,o,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}};p(e,"\u0275fac",function(o){wb();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})();function W5(t,...e){return To([{provide:ks,multi:!0,useValue:t},[],{provide:Yr,useFactory:yM},{provide:Dl,multi:!0,useFactory:vM},e.map(n=>n.ɵproviders)]);}function yM(){return g(ht).routerState.root;}function Cc(t,e){return{ɵkind:t,ɵproviders:e};}function q5(t={}){return Cc(4,[{provide:CS,useFactory:()=>new gM(t)}]);}function vM(){let t=g(ot);return e=>{let n=t.get(zr);if(e!==n.components[0])return;let r=t.get(ht),o=t.get(EM);t.get(IS)===1&&r.initialNavigation(),t.get(SM,null,{optional:!0})?.setUpPreloading(),t.get(CS,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe());};}var EM=new _("",{factory:()=>new Z()}),IS=new _("",{factory:()=>1});function bM(){let t=[{provide:Op,useValue:!0},{provide:IS,useValue:0},ih(()=>{let e=g(ot);return e.get(yT,Promise.resolve()).then(()=>new Promise(r=>{let o=e.get(ht),i=e.get(EM);bm(o,()=>{r(!0);}),e.get(vm).afterPreactivation=()=>(r(!0),i.closed?N(void 0):i),o.initialNavigation();}));})];return Cc(2,t);}function TM(){let t=[ih(()=>{g(ht).setUpLocationChangeListener();}),{provide:IS,useValue:2}];return Cc(3,t);}var SM=new _("");function DM(t){return Cc(0,[{provide:SM,useExisting:mM},{provide:od,useExisting:t}]);}function CM(){return Cc(8,[gS,{provide:nd,useExisting:gS}]);}function IM(t){Et("NgRouterViewTransitions");let e=[{provide:bS,useValue:fM},{provide:TS,useValue:S({skipNextTransition:!!t?.skipInitialTransition},t)}];return Cc(9,e);}var wM=[ai,{provide:fi,useClass:Ro},ht,Ls,{provide:Yr,useFactory:yM},gm,[]],Y5=(()=>{let e=class e{constructor(){}static forRoot(r,o){return{ngModule:e,providers:[wM,[],{provide:ks,multi:!0,useValue:r},[],o?.errorHandler?{provide:SS,useValue:o.errorHandler}:[],{provide:pi,useValue:o||{}},o?.useHash?X5():Z5(),K5(),o?.preloadingStrategy?DM(o.preloadingStrategy).ɵproviders:[],o?.initialNavigation?Q5(o):[],o?.bindToComponentInputs?CM().ɵproviders:[],o?.enableViewTransitions?IM().ɵproviders:[],J5()]};}static forChild(r){return{ngModule:e,providers:[{provide:ks,multi:!0,useValue:r}]};}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275mod",En({type:e})),p(e,"\u0275inj",Jt({}));let t=e;return t;})();function K5(){return{provide:CS,useFactory:()=>{let t=g(Fl),e=g(pi);return e.scrollOffset&&t.setOffset(e.scrollOffset),new gM(e);}};}function X5(){return{provide:gr,useClass:wT};}function Z5(){return{provide:gr,useClass:Sh};}function Q5(t){return[t.initialNavigation==="disabled"?TM().ɵproviders:[],t.initialNavigation==="enabledBlocking"?bM().ɵproviders:[]];}var DS=new _("");function J5(){return[{provide:DS,useFactory:vM},{provide:Dl,multi:!0,useExisting:DS}];}var _M={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"}},semantic:{transitionDuration:"0",focusRing:{width:"0",style:"none",color:"transparent",offset:"0"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"var(--primary-50)",100:"var(--primary-100)",200:"var(--primary-200)",300:"var(--primary-300)",400:"var(--primary-400)",500:"var(--primary-500)",600:"var(--primary-600)",700:"var(--primary-700)",800:"var(--primary-800)",900:"var(--primary-900)",950:"var(--primary-950)"},formField:{paddingX:"var(--input-x-padding)",paddingY:"var(--input-y-padding)",borderRadius:"var(--input-border-radius)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},list:{padding:"0.5rem 0",gap:"0",header:{padding:"0.5rem 1rem 0.5rem 1rem"},option:{padding:"0.5rem 1rem",borderRadius:"0"},optionGroup:{padding:"0.5rem 1rem",fontWeight:"600"}}
14,content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.5rem 0",gap:"0"},item:{padding:"0.5rem 1rem",borderRadius:"0",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 1rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"1rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.5rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.3)"},navigation:{shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"var(--bg-secondary-0)",50:"var(--bg-secondary-50)",100:"var(--bg-secondary-100)",200:"var(--bg-secondary-200)",300:"var(--bg-secondary-300)",400:"var(--bg-secondary-400)",500:"var(--bg-secondary-500)",600:"var(--bg-secondary-600)",700:"var(--bg-secondary-700)",800:"var(--bg-secondary-800)",900:"var(--bg-secondary-900)",950:"var(--bg-secondary-950)"},primary:{color:"{primary.500}",contrastColor:"var(--on-primary)",hoverColor:"{primary.600}",activeColor:"{primary.700}
14"},highlight:{background:"var(--primary)",focusBackground:"var(--primary)",color:"var(--on-primary)",focusColor:"var(--on-primary)"},focusRing:{shadow:"0 0 0 0.2rem var(--fg-100)"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"var(--input-bg)",disabledBackground:"inherit",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.0}",borderColor:"var(--input-border-color)",hoverBorderColor:"var(--input-border-color)",focusBorderColor:"var(--input-border-color)",invalidBorderColor:"var(--red)",color:"var(--input-fg)",disabledColor:"var(--fg-300)",placeholderColor:"var(--input-placeholder-color)",invalidPlaceholderColor:"var(--red)",floatLabelColor:"var(--fg-300)",floatLabelFocusColor:"var(--primary)",floatLabelActiveColor:"var(--fg)",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"var(--fg-300)",shadow:"none"},text:{color:"var(--fg)",hoverColor:"var(--fg)",mutedColor:"var(--fg)",hoverMutedColor:"var(--fg)"},content:{background:"var(--bg)",hoverBackground:"var(--bg)",borderColor:"var(--input-border-color)",color:"var(--fg)",hoverColor:"var(--fg)"},overlay:{select:{background:"var(--bg)",borderColor:"var(--input-border-color)",color:"var(--fg)"},popover:{background:"var(--bg)",borderColor:"var(--input-border-color)",color:"var(--fg)"},modal:{background:"var(--bg)",borderColor:"var(--input-border-color)",color:"var(--fg)"}},list:{option:{focusBackground:"var(--bg-secondary-450)",selectedBackground:"var(--bg-secondary-500)",selectedFocusBackground:"var(--bg-secondary-500)",color:"{text.color}",focusColor:"{text.color}",selectedColor:"{text.color}",selectedFocusColor:"{text.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"var(--bg-secondary-500)",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}}}}};var AM={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}
14",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}}}};var xM={root:{borderRadius:"3px",width:"18px",height:"18px",background:"var(--bg)",checkedBackground:"var(--primary)",checkedHoverBackground:"var(--primary)",disabledBackground:"var(--bg)",filledBackground:"var(--primary)",borderColor:"var(--fg-100)",hoverBorderColor:"var(--fg)",focusBorderColor:"var(--fg)",checkedBorderColor:"var(--primary)",checkedHoverBorderColor:"var(--primary)",checkedFocusBorderColor:"var(--primary)",checkedDisabledBorderColor:"var(--fg-100)",invali
14dBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"0.2s",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"14px",color:"{form.field.color}",checkedColor:"var(--on-primary)",checkedHoverColor:"var(--on-primary)",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}};var RM={root:{borderRadius:"4px",paddingX:"15px",paddingY:"2px",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"var(--input-bg-550)",color:"var(--fg)"},icon:{color:"var(--fg)"},removeIcon:{color:"var(--fg)"}}}};var MM={root:{transitionDuration:"{transition.duration}"},preview:{width:"100%",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"var(--bg-secondary-400)",borderColor:"var(--bg-secondary-450)"},handle:{color:"var(--fg)"}}}};var NM={root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{datatable.border.color}",borderWidth:"0",padding:"0.5rem 0 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},headerCell:{selectedBackground:"var(--bg)",borderColor:"{datatable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"var(--fg-200)",gap:"0.5rem",padding:"10px 0.25rem 10px 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},columnTitle:{fontWeight:"normal"},row:{background:"{content.background}",hoverBackground:"var(--bg-secondary-350)",selectedBackground:"{content.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{content.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"transparent",padding:"5px 2px 5px 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},footerCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},columnFooter:{fontWeight:"700"},footer:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},dropPoint:{color:"var(--border-primary)"},columnResizer:{width:"0.5rem"},resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"var(--bg-secondary-450)"},header:{background:"var(--bg)",color:"var(--fg)"},headerCell:{background:"var(--bg)",hoverBackground:"var(--bg-secondary-400)",color:"var(--fg-200)"},footer:{background:"var(--bg)",color:"{text.color}"},footerCell:{background:"var(--bg)",color:"{text.color}"}
14,row:{stripedBackground:"var(--bg-secondary-350)"},bodyCell:{selectedBorderColor:"transparent"}}}};var OM={root:{transitionDuration:"{transition.duration}"},panel:{background:"var(--bg-secondary-400)",borderColor:"{content.border.color}",color:"var(--fg)",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"var(--bg-secondary-400)",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.75rem 0"},title:{gap:"0.5rem",fontWeight:"700"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"var(--bg-secondary-500)",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"var(--bg-secondary-500)",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.25rem 0 0 0"},weekDay:{padding:"0.375rem",fontWeight:"700",color:"{content.color}"},date:{hoverBackground:"var(--bg-secondary-500)",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"var(--fg)",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"auto",height:"1.75rem",borderRadius:"3px",padding:"0.15rem",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},monthView:{margin:"0.25rem 0 0 0"},month:{padding:"0.5rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.75rem 0 0 0"},year:{padding:"0.5rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"var(--bg-secondary-400)",hoverBackground:"var(--bg-secondary-500)",activeBackground:"var(--primary)",color:"var(--fg)",hoverColor:"var(--fg)",activeColor:"var(--on-primary)"},today:{background:"var(--bg-secondary-600)",color:"var(--fg)"}}}};var LM={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"var(--input-border-radius)"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}};var kM={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}
14",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}};var PM={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"var(--bg-secondary-400)",selectedBackground:"{overlay.select.background}",selectedFocusBackground:"var(--bg-secondary-400)",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{overlay.select.color}",selectedFocusColor:"{overlay.select.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}};var FM={root:{padding:"5px 0",gap:"10px",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"var(--bg-secondary-400)",selectedBackground:"var(--bg-secondary-450)",color:"var(--fg)",hoverColor:"var(--fg)",selectedColor:" var(--fg)",width:"34px",height:"34px",borderRadius:"100%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"var(--fg-300)"},jumpToPageInput:{maxWidth:"2.5rem"}};var UM={root:{background:"{form.field.background}
14",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"}};var HM={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"0 0 0 6px",transitionDuration:"{transition.duration}"},icon:{size:"1.25rem"},content:{padding:"10px",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{root:{blur:"1.5px"},info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.500}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.500}",color:"{green.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.500}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.500}",color:"{red.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}}},secondary:{background:"{surface.100}",borderColor:"{surface.500}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}
14",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}}},contrast:{background:"{surface.900}",borderColor:"{primary.color}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}}}}}};var zge=$(S({},_M),{components:{select:UM,inputchips:LM,chip:RM,colorpicker:MM,datepicker:OM,inputtext:kM,toast:HM,autocomplete:AM,multiselect:PM,checkbox:xM,datatable:NM,paginator:FM}});function ez(t){let e=Math.floor(Math.abs(t));return e===0||e===1?1:5;}var Yge=["oc",[["a. m.","p. m."],void 0,void 0],void 0,[["dg","dl","dm","dc","dj","dv","ds"],["dg.","dl.","dm.","dc.","dj.","dv.","ds."],["dimenge","diluns","dimars","dim\xE8cres","dij\xF2us","divendres","dissabte"],["dg.","dl.","dm.","dc.","dj.","dv.","ds."]],void 0,[["GN","FB","M\xC7","AB","MA","JN","JL","AG","ST","OC","NV","DC"],["de gen.","de febr.","de mar\xE7","d\u2019abr.","de mai","de junh","de jul.","d\u2019ag.","de set.","d\u2019oct.","de nov.","de dec."],["de geni\xE8r","de febri\xE8r","de mar\xE7","d\u2019abril","de mai","de junh","de julhet","d\u2019ag\xF2st","de setembre","d\u2019oct\xF2bre","de novembre","de decembre"]],[["GN","FB","M\xC7","AB","MA","JN","JL","AG","ST","OC","NV","DC"],["gen.","febr.","mar\xE7","abr.","mai","junh","jul.","ag.","set.","oct.","nov.","dec."],["geni\xE8r","febri\xE8r","mar\xE7","abril","mai","junh","julhet","ag\xF2st","setembre","oct\xF2bre","novembre","decembre"]],[["aC","dC"],void 0,["abans J\xE8sus-Crist","apr\xE8p J\xE8sus-Crist"]],1,[6,0],["d/M/yy","d MMM y","d MMMM 'de' y","EEEE, d MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} 'a' 'les' {0}",void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","#,##0.00 \xA4","#E0"],"EUR","\u20AC","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"\xA5"],COP:["$CO","$"],CYP:["\xA3CY"],EGP:[void 0,"\xA3E"],FJD:["$FJ","$"],FKP:["\xA3FK","\xA3"],FRF:["F"],GBP:["\xA3GB","\xA3"],GIP:["\xA3GI","\xA3"],HKD:[void 0,"$"],IEP:["\xA3IE"],ILP:["\xA3IL"],ITL:["\u20A4IT"],JPY:[void 0,"\xA5"],KMF:[void 0,"FC"],LBP:["\xA3LB","\xA3L"],MTP:["\xA3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",ez];var Xge={PUBLIC:1,UNLISTED:2,PRIVATE:3};var Aye={FILE_SYSTEM:0,OBJECT_STORAGE:1};var Jye={PENDING:1,PROCESSING:2,COMPLETED:3,ERRORED:4};var tve={PENDING:1,PROCESSING:2,COMPLETED:3,ERRORED:4};var pve={PODCAST:"xml",RSS:"xml",ATOM:"atom",JSON:"json"},hve={VIDEOS:"videos",PODCAST:"podcast"};var xt={CONTINUE_100:100,SWITCHING_PROTOCOLS_101:101,OK_200:200,CREATED_201:201,ACCEPTED_202:202,NO_CONTENT_204:204,RESET_CONTENT_205:205,PARTIAL_CONTENT_206:206,MULTIPLE_CHOICES_300:300,MOVED_PERMANENTLY_301:301,FOUND_302:302,SEE_OTHER_303:303,NOT_MODIFIED_304:304,TEMPORARY_REDIRECT_307:307,PERMANENT_REDIRECT_308:308,BAD_REQUEST_400:400,UNAUTHORIZED_401:401,PAYMENT_REQUIRED_402:402,FORBIDDEN_403:403,NOT_FOUND_404:404,METHOD_NOT_ALLOWED_405:405,NOT_ACCEPTABLE_406:406,REQUEST_TIMEOUT_408:408,CONFLICT_409:409,GONE_410:410,LENGTH_REQUIRED_411:411,PRECONDITION_FAILED_412:412,PAYLOAD_TOO_LARGE_413:413,URI_TOO_LONG_414:414,UNSUPPORTED_MEDIA_TYPE_415:415,RANGE_NOT_SATISFIABLE_416:416,EXPECTATION_FAILED_417:417,I_AM_A_TEAPOT_418:418,UNPROCESSABLE_ENTITY_422:422,LOCKED_423:423,TOO_MANY_REQUESTS_429:429,REQUEST_HEADER_FIELDS_TOO_LARGE_431:431,UNAVAILABLE_FOR_LEGAL_REASONS_451:451,INTERNAL_SERVER_ERROR_500:500,NOT_IMPLEMENTED_501:501,BAD_GATEWAY_502:502,SERVICE_UNAVAILABLE_503:503,GATEWAY_TIMEOUT_504:504,HTTP_VERSION_NOT_SUPPORTED_505:505,INSUFFICIENT_STORAGE_507:507};var Mo={VIOLENT_OR_REPULSIVE:1,HATEFUL_OR_ABUSIVE:2,SPAM_OR_MISLEADING:3,PRIVACY:4,RIGHTS:5,SERVER_RULES:6,THUMBNAILS:7,CAPTIONS:8};var wve={PENDING:1,REJECTED:2,ACCEPTED:3};var tz={"filter:api.trending-videos.videos.list.params":!0,"filter:api.trending-videos.videos.list.result":!0,"filter:api.most-liked-videos.videos.list.params":!0,"filter:api.most-liked-videos.videos.list.result":!0,"filter:api.local-videos.videos.list.params":!0,"filter:api.local-videos.videos.list.result":!0,"filter:api.recently-added-videos.videos.list.params":!0,"filter:api.recently-added-videos.videos.list.result":!0,"filter:api.browse-videos.videos.list.params":!0,"filter:api.browse-videos.videos.list.result":!0,"filter:api.user-sub
14scriptions-videos.videos.list.params":!0,"filter:api.user-subscriptions-videos.videos.list.result":!0,"filter:api.video-watch.video.get.params":!0,"filter:api.video-watch.video.get.result":!0,"filter:api.video-watch.video-playlist-elements.get.params":!0,"filter:api.video-watch.video-playlist-elements.get.result":!0,"filter:api.video-watch.video-threads.list.params":!0,"filter:api.video-watch.video-threads.list.result":!0,"filter:api.video-watch.video-thread-replies.list.params":!0,"filter:api.video-watch.video-thread-replies.list.result":!0,"filter:api.search.videos.list.params":!0,"filter:api.search.videos.list.result":!0,"filter:api.search.video-channels.list.params":!0,"filter:api.search.video-channels.list.result":!0,"filter:api.search.video-playlists.list.params":!0,"filter:api.search.video-playlists.list.result":!0,"filter:api.signup.registration.create.params":!0,"filter:api.my-library.video-playlist-elements.list.params":!0,"filter:api.my-library.video-playlist-elements.list.result":!0,"filter:internal.video-watch.player.build-options.params":!0,"filter:internal.video-watch.player.build-options.result":!0,"filter:internal.video-watch.player.load-options.params":!0,"filter:internal.video-watch.player.load-options.result":!0,"filter:internal.common.svg-icons.get-content.params":!0,"filter:internal.common.svg-icons.get-content.result":!0,"filter:left-menu.links.create.result":!0,"filter:upload.messages.create.result":!0,"filter:login.instance-about-plugin-panels.create.result":!0,"filter:signup.instance-about-plugin-panels.create.result":!0,"filter:share.video-embed-code.build.params":!0,"filter:share.video-embed-code.build.result":!0,"filter:share.video-playlist-embed-code.build.params":!0,"filter:share.video-playlist-embed-code.build.result":!0,"filter:share.video-embed-url.build.params":!0,"filter:share.video-embed-url.build.result":!0,"filter:share.video-playlist-embed-url.build.params":!0,"filter:share.video-playlist-embed-url.build.result":!0,"filter:share.video-url.build.params":!0,"filter:share.video-url.build.result":!0,"filter:share.video-playlist-url.build.params":!0,"filter:share.video-playlist-url.build.result":!0,"filter:video-watch.video-plugin-metadata.result":!0,"filter:internal.player.videojs.options.result":!0,"filter:internal.player.p2p-media-loader.options.result":!0,"filter:admin-users-list.bulk-actions.create.result":!0,"filter:admin-video-comments-list.actions.create.result":!0,"filter:admin-video-comments-list.bulk-actions.create.result":!0,"filter:user-moderation.actions.create.result":!0,"filter:admin-abuse-list.actions.create.result":!0},nz={"action:application.init":!0,"action:video-watch.init":!0,"action:video-watch.video.loaded":!0,"action:video-watch.player.loaded":!0,"action:video-watch.video-threads.loaded":!0,"action:video-watch.video-thread-replies.loaded":!0,"action:video-channel-create.init":!0,"action:video-channel-update.init":!0,"action:video-channel-update.video-channel.loaded":!0,"action:video-channel-videos.init":!0,"action:video-channel-videos.video-channel.loaded":!0,"action:video-channel-videos.videos.loaded":!0,"action:video-channel-playlists.init":!0,"action:video-channel-playlists.video-channel.loaded":!0,"action:video-channel-playlists.playlists.loaded":!0,"action:video-edit.init":!0,"action:video-edit.form.updated":!0,"action:login.init":!0,"action:search.init":!0,"action:router.navigation-end":!0,"action:signup.register.init":!0,"action:admin-plugin-settings.init":!0,"action:video-upload.init":!0,"action:video-url-import.init":!0,"action:video-torrent-import.init":!0,"action:go-live.init":!0,"action:auth-user.logged-in":!0,"action:auth-user.logged-out":!0,"action:auth-user.information-loaded":!0,"action:modal.video-download.shown":!0,"action:modal.share.shown":!0,"action:embed.player.loaded":!0},BM=Object.assign({},tz,nz);var rz={"filter:api.videos.list.params":!0,"filter:api.videos.list.result":!0,"filter:api.video-playlist.videos.list.params":!0,"filter:api.video-playlist.videos.list.result":!0,"filter:api.accounts.videos.list.params":!0,"filter:api.accounts.videos.list.result":!0,"filter:api.video-channels.videos.list.params":!0,"filter:api.video-channels.videos.list.result":!0,"filter:api.user.me.videos.list.params":!0,"filter:api.user.me.videos.list.result":!0,"filter:api.overviews.videos.list.params":!0,"filter:api.overviews.videos.list.result":!0,"filter:api.user.me.subscription-vi
14deos.list.params":!0,"filter:api.user.me.subscription-videos.list.result":!0,"filter:api.search.videos.local.list.params":!0,"filter:api.search.videos.local.list.result":!0,"filter:api.search.videos.index.list.params":!0,"filter:api.search.videos.index.list.result":!0,"filter:api.search.video-channels.local.list.params":!0,"filter:api.search.video-channels.local.list.result":!0,"filter:api.search.video-channels.index.list.params":!0,"filter:api.search.video-channels.index.list.result":!0,"filter:api.search.video-playlists.local.list.params":!0,"filter:api.search.video-playlists.local.list.result":!0,"filter:api.search.video-playlists.index.list.params":!0,"filter:api.search.video-playlists.index.list.result":!0,"filter:api.video.get.result":!0,"filter:api.video-channels.list.params":!0,"filter:api.video-channels.list.result":!0,"filter:api.video-channel.get.result":!0,"filter:api.video.upload.accept.result":!0,"filter:api.live-video.create.accept.result":!0,"filter:api.video.pre-import-url.accept.result":!0,"filter:api.video.pre-import-torrent.accept.result":!0,"filter:api.video.post-import-url.accept.result":!0,"filter:api.video.post-import-torrent.accept.result":!0,"filter:api.video.update-file.accept.result":!0,"filter:api.video.user-import.accept.result":!0,"filter:api.video-thread.create.accept.result":!0,"filter:api.video-comment-reply.create.accept.result":!0,"filter:api.video.upload.video-attribute.result":!0,"filter:api.video.import-url.video-attribute.result":!0,"filter:api.video.import-torrent.video-attribute.result":!0,"filter:api.video.live.video-attribute.result":!0,"filter:api.video.user-import.video-attribute.result":!0,"filter:api.video-threads.list.params":!0,"filter:api.video-threads.list.result":!0,"filter:api.video-thread-comments.list.params":!0,"filter:api.video-thread-comments.list.result":!0,"filter:api.server.stats.get.result":!0,"filter:video.auto-blacklist.result":!0,"filter:api.user.signup.allowed.result":!0,"filter:api.user.signup.requires-approval.result":!0,"filter:api.user.request-signup.allowed.result":!0,"filter:api.download.video.allowed.result":!0,"filter:api.download.generated-video.allowed.result":!0,"filter:api.download.torrent.allowed.result":!0,"filter:html.embed.video.allowed.result":!0,"filter:html.embed.video-playlist.allowed.result":!0,"filter:html.client.json-ld.result":!0,"filter:job-queue.process.params":!0,"filter:job-queue.process.result":!0,"filter:transcoding.manual.resolutions-to-transcode.result":!0,"filter:transcoding.auto.resolutions-to-transcode.result":!0,"filter:activity-pub.remote-video-comment.create.accept.result":!0,"filter:activity-pub.activity.context.build.result":!0,"filter:activity-pub.video.json-ld.build.result":!0,"filter:feed.podcast.rss.create-custom-xmlns.result":!0,"filter:feed.podcast.channel.create-custom-tags.result":!0,"filter:feed.podcast.video-playlist.create-custom-tags.result":!0,"filter:feed.podcast.video.create-custom-tags.result":!0,"filter:api.user.me.get.result":!0,"filter:oauth.password-grant.get-user.params":!0,"filter:api.email-verification.ask-send-verify-email.body":!0,"filter:api.users.ask-reset-password.body":!0,"filter:email.subject.result":!0,"filter:email.template-path.result":!0,"filter:notifier.notification.enabled.result":!0,"filter:feed.videos.list.result":!0},oz={"action:application.listening":!0,"action:notifier.notification.created":!0,"action:api.video.updated":!0,"action:api.video.deleted":!0,"action:api.video.uploaded":!0,"action:api.video.viewed":!0,"action:api.video.file-updated":!0,"action:api.video-channel.created":!0,"action:api.video-channel.updated":!0,"action:api.video-channel.deleted":!0,"action:api.live-video.created":!0,"action:live.video.state.updated":!0,"action:api.video-thread.created":!0,"action:api.video-comment-reply.created":!0,"action:api.video-comment.deleted":!0,"action:api.video-caption.created":!0,"action:api.video-caption.deleted":!0,"action:api.user.blocked":!0,"action:api.user.unblocked":!0,"action:api.user.registered":!0,"action:api.user.requested-registration":!0,"action:api.user.created":!0,"action:api.user.deleted":!0,"action:api.user.updated":!0,"action:api.user.oauth2-got-token":!0,"action:api.video-playlist-element.created":!0,"action:activity-pub.remote-video.created":!0,"action:activity-pub.remote-video.updated":!0},AEe=Object.assign({},rz,oz);var Ps={STATIC:1,ACTION:2,FILTER:3};var id={PLUGIN:1,THEME:2};var QEe={PENDING:1,PROCESSING:2,COMPLETED:3,ERRORED:4,WAITING_FOR_PARENT_JOB:5,CANCELLED:6,PARENT_ERRORED:7,PARENT_CANCELLED:8,COMPLETING:9};var Nbe={MAX_FILE_SIZE_REACHED:"max_file_size_reached",QUOTA_REACHED:"quota_reached",DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS:"does_not_respect_follow_constraints",LIVE_NOT_ENABLED:"live_not_enabled",LIVE_NOT_ALLOWING_REPLAY:"live_not_allowing_replay",LIVE_CONFLICTING_PERMANENT_AND_SAVE_REPLAY:"live_conflicting_permanent_and_save_replay",MAX_INSTANCE_LIVES_LIMIT_REACHED:"max_instance_lives_limit_reached",MAX_USER_LIVES_LIMIT_REACHED:"max_user_lives_limit_reached",INCORRECT_FILES_IN_TORRENT:"incorrect_files_in_torrent",COMMENT_NOT_ASSOCIATED_TO_VIDEO:"comment_not_associated_to_video",INVALID_GRANT:"invalid_grant",MISSING_TWO_FACTOR:"missing_two_factor",TOO_LONG_PASSWORD:"too_long_password",INVALID_TWO_FACTOR:"invalid_two_factor",ACCOUNT_BLOCKED:"account_blocked",EMAIL_NOT_VERIFIED:"email_not_verified",ACCOUNT_WAITING_FOR_APPROVAL:"account_waiting_for_approval",ACCOUNT_APPROVAL_REJECTED:"account_approval_rejected",RUNNER_JOB_NOT_IN_PROCESSING_STATE:"runner_job_not_in_processing_state",RUNNER_JOB_NOT_IN_PENDING_STATE:"runner_job_not_in_pending_state",UNKNOWN_RUNNER_TOKEN:"unknown_runner_token",VIDEO_REQUIRES_PASSWORD:"video_requires_password",INCORRECT_VIDEO_PASSWORD:"incorrect_video_password",VIDEO_ALREADY_BEING_TRANSCODED:"video_already_being_transcoded",VIDEO_ALREADY_BEING_TRANSCRIBED:"video_already_being_transcribed",VIDEO_ALREADY_HAS_CAPTIONS:"video_already_has_captions",MAX_USER_VIDEO_QUOTA_EXCEEDED_FOR_USER_EXPORT:"max_user_video_quota_exceeded_for_user_export",CURRENT_PASSWORD_IS_INVALID:"current_password_is_invali
14d"},Obe={INVALID_GRANT:"invalid_grant",INVALID_CLIENT:"invalid_client",INVALID_TOKEN:"invalid_token"};var nTe={PENDING:1,REJECTED:2,ACCEPTED:3};var jM={NONE:0,BYPASS_VIDEO_AUTO_BLACKLIST:1};var dTe={NONE:0,CHANNEL_COLLABORATION:1};var pTe={NONE:0,WEB:1,EMAIL:2};var mTe={NEW_VIDEO_FROM_SUBSCRIPTION:1,NEW_COMMENT_ON_MY_VIDEO:2,NEW_ABUSE_FOR_MODERATORS:3,BLACKLIST_ON_MY_VIDEO:4,UNBLACKLIST_ON_MY_VIDEO:5,MY_VIDEO_PUBLISHED:6,MY_VIDEO_IMPORT_SUCCESS:7,MY_VIDEO_IMPORT_ERROR:8,NEW_USER_REGISTRATION:9,NEW_FOLLOW:10,COMMENT_MENTION:11,VIDEO_AUTO_BLACKLIST_FOR_MODERATORS:12,NEW_INSTANCE_FOLLOWER:13,AUTO_INSTANCE_FOLLOWING:14,ABUSE_STATE_CHANGE:15,ABUSE_NEW_MESSAGE:16,NEW_PLUGIN_VERSION:17,NEW_PEERTUBE_VERSION:18,MY_VIDEO_STUDIO_EDITION_FINISHED:19,NEW_USER_REGISTRATION_REQUEST:20,NEW_LIVE_FROM_SUBSCRIPTION:21,MY_VIDEO_TRANSCRIPTION_GENERATED:22,INVITED_TO_COLLABORATE_TO_CHANNEL:23,ACCEPTED_TO_COLLABORATE_TO_CHANNEL:24,REFUSED_TO_COLLABORATE_TO_CHANNEL:25,VIDEO_OWNERSHIP_CHANGED_REQUEST:26,VIDEO_OWNERSHIP_CHANGED_ACCEPTED:27,VIDEO_OWNERSHIP_CHANGED_REJECTED:28,CHANNEL_OWNERSHIP_CHANGED_REQUEST:29,CHANNEL_OWNERSHIP_CHANGED_ACCEPTED:30,CHANNEL_OWNERSHIP_CHANGED_REJECTED:31};var bt={ALL:0,MANAGE_USERS:1,MANAGE_SERVER_FOLLOW:2,MANAGE_LOGS:3,MANAGE_DEBUG:4,MANAGE_SERVER_REDUNDANCY:5,MANAGE_ABUSES:6,MANAGE_JOBS:7,MANAGE_CONFIGURATION:8,MANAGE_INSTANCE_CUSTOM_PAGE:9,MANAGE_ACCOUNTS_BLOCKLIST:10,MANAGE_SERVERS_BLOCKLIST:11,MANAGE_VIDEO_BLACKLIST:12,MANAGE_ANY_VIDEO_CHANNEL:13,REMOVE_ANY_VIDEO:14,REMOVE_ANY_VIDEO_PLAYLIST:15,MANAGE_ANY_VIDEO_COMMENT:16,UPDATE_ANY_VIDEO:17,UPDATE_ANY_VIDEO_PLAYLIST:18,GET_ANY_LIVE:19,SEE_ALL_VIDEOS:20,SEE_ALL_COMMENTS:21,CHANGE_VIDEO_OWNERSHIP:22,MANAGE_PLUGINS:23,MANAGE_VIDEOS_REDUNDANCIES:24,MANAGE_VIDEO_FILES:25,RUN_VIDEO_TRANSCODING:26,MANAGE_VIDEO_IMPORTS:27,MANAGE_REGISTRATIONS:28,MANAGE_RUNNERS:29,MANAGE_USER_EXPORTS:30,MANAGE_USER_IMPORTS:31,MANAGE_INSTANCE_WATCHED_WORDS:32,MANAGE_INSTANCE_AUTO_TAGS:33};var Hn={ADMINISTRATOR:0,MODERATOR:1,USER:2};var BTe={MANUAL:1,AUTO_BEFORE_PUBLISHED:2};var KTe={PENDING:1,REJECTED:2,ACCEPTED:3};var nSe={PENDING:1,ACCEPTED:2,REJECTED:3};var Sm={ENABLED:1,DISABLED:2,REQUIRES_APPROVAL:3};
14var bSe={BAD_SOCKET_HEALTH:1,DURATION_EXCEEDED:2,QUOTA_EXCEEDED:3,FFMPEG_ERROR:4,BLACKLISTED:5,RUNNER_JOB_ERROR:6,RUNNER_JOB_CANCEL:7,UNKNOWN_ERROR:8,INVALID_INPUT_VIDEO_STREAM:9};var SSe={DEFAULT:1,HIGH_LATENCY:2,SMALL_LATENCY:3};var Y={H_NOVIDEO:0,H_144P:144,H_240P:240,H_360P:360,H_480P:480,H_720P:720,H_1080P:1080,H_1440P:1440,H_4K:2160};var GSe={PENDING:1,SUCCESS:2,FAILED:3,REJECTED:4,CANCELLED:5,PROCESSING:6};var ZSe={REGULAR:0,DELETED:1,PRIVATE:2,UNAVAILABLE:3};var JSe={REGULAR:1,WATCH_LATER:2};var xDe={WAITING_FIRST_RUN:1,PROCESSING:2,SYNCED:3,FAILED:4};var FDe={ALL_ALLOWED:1,ALLOWLIST:2,REMOTE_RESTRICTIONS:3};var Dm={NONE:0,VIOLENT:1,EXPLICIT_SEX:2},GDe={violent:Dm.VIOLENT,explicitSex:Dm.EXPLICIT_SEX},zDe={[Dm.VIOLENT]:"violent",[Dm.EXPLICIT_SEX]:"explicitSex"};var YDe={"CC-BY":1,"CC-BY-SA":2,"CC-BY-ND":3,"CC-BY-NC":4,"CC-BY-NC-SA":5,"CC-BY-NC-ND":6,CC0:7,PDM:8,ALL_RIGHTS_RESERVED:9};var qt={PUBLIC:1,UNLISTED:2,PRIVATE:3,INTERNAL:4,PASSWORD_PROTECTED:5};var ZDe={NONE:0,NOT_PUBLISHED_STATE:1,BLACKLISTED:2,BLOCKED_OWNER:4,FILES:8,CAPTIONS:16,SOURCE:32,AUTOMATIC_TAGS:64,TAGS:128};var sd={PUBLISHED:1,TO_TRANSCODE:2,TO_IMPORT:3,WAITING_FOR_LIVE:4,LIVE_ENDED:5,TO_MOVE_TO_EXTERNAL_STORAGE:6,TRANSCODING_FAILED:7,TO_MOVE_TO_EXTERNAL_STORAGE_FAILED:8,TO_EDIT:9,TO_MOVE_TO_FILE_SYSTEM:10,TO_MOVE_TO_FILE_SYSTEM_FAILED:11,TO_IMPORT_FAILED:12};var VM={HLS:1};function uIe(t){return GM(t,new Date());}function lIe(t){let e=new Date();return e.setDate(e.getDate()-1),GM(t,e);}function dIe(t){let e=new Date();return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear();}function fIe(t){return zM(new Date(),t)<=30;}function pIe(t){return zM(new Date(),t)<=7;}var $M="(\\d+[h:])?(\\d+[m:])?\\d+s?";function iz(t){if(!t)return 0;if(typeof t=="number")return Math.floor(t);let e=new RegExp("^((?<hours>\\d+)h)?((?<minutes>\\d+)m)?((?<seconds>\\d+)s?)?$"),n=t.match(e);if(n){let s=parseInt(n.groups.hours||"0",10),a=parseInt(n.groups.minutes||"0",10),c=parseInt(n.groups.seconds||"0",10);return s*3600+a*60+c;}let r=t.split(":").reverse(),o={0:1,1:60,2:3600},i=0;for(let s=0;s<r.length;s++){if(o[s]===void 0)return 0;let a=parseInt(r[s],10);if(isNaN(a))return 0;i+=o[s]*a;}return i;}function wS(t){let e,n="short",r;typeof t=="number"?e=t:(e=t.seconds,n=t.format??"short",r=t.symbol);let o="";if(e===0&&n!=="full")return"0s";e=Math.round(e);let i=d=>n==="locale-string"?d.toLocaleString():d,s=r||"h",a=r||"m",c=n==="full"?"":"s",u=Math.floor(e/3600);u>=1&&u<10&&n==="full"?o="0"+u+s:u>=1?o=i(u)+s:n==="full"&&(o="00"+s),e%=3600;let l=Math.floor(e/60);return l>=1&&l<10&&n==="full"?o+="0"+l+a:l>=1?o+=i(l)+a:n==="full"&&(o+="00"+a),e%=60,e>=1&&e<10&&n==="full"?o+="0"+e+c:e>=1?o+=i(e)+c:n==="full"&&(o+="00"),o;}function hIe(t){let e=Math.round(t||0),n=String(Math.floor(e/36e5)).padStart(2,"0"),r=String(Math.floor(e%36e5/6e4)).padStart(2,"0"),o=String(Math.floor(e%6e4/1e3)).padStart(2,"0"),i=String(e%1e3).padStart(3,"0");return`${n}:${r}:${o}.${i}`;}function GM(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate();}function zM(t,e){return(t.getTime()-e.getTime())/864e5;}var vIe={violentOrRepulsive:Mo.VIOLENT_OR_REPULSIVE,hatefulOrAbusive:Mo.HATEFUL_OR_ABUSIVE,spamOrMisleading:Mo.SPAM_OR_MISLEADING,privacy:Mo.PRIVACY,rights:Mo.RIGHTS,serverRules:Mo.SERVER_RULES,thumbnails:Mo.THUMBNAILS,captions:Mo.CAPTIONS};function Cm(t){return Array.isArray(t)?t:t==null?[]:[t];}function Im(t,e,n){return[...t].sort((r,o)=>{let i=n?r[e][n]:r[e],s=n?o[e][n]:o[e];return i<s?-1:i===s?0:1;});}function WM(t,e){let n;for(let r of t)(!n||n[e]<r[e])&&(n=r);return n;}function qM(t,e){let n;for(let r of t)(!n||n[e]>r[e])&&(n=r);return n;}function DIe(t,e){return Math.floor(Math.random()*(e-t)+t);}function YM(t,e,n){return t?_S(t.filter(r=>r.aspectRatio===n),e):null;}function _S(t,e){if(!e)throw new Error("Invalid width to find appropriate image");if(!t||t.length===0)return;let n;for(let r of t)r.width>=e&&(!n||r.width<n.width)&&(n=r);return n||WM(t,"width");}function AIe(t,e){let n={};for(let r of e)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n;}function xIe(t,e){let n={},r=new Set(e);
14for(let[o,i]of Object.entries(t))r.has(o)||(n[o]=i);return n;}function wm(t){return Object.keys(t);}function KM(t,e){return Object.keys(t).filter(n=>e.includes(n));}function RIe(t){return Object.assign(Object.create(Object.getPrototypeOf(t)),t);}function MIe(t){return t!=null;}function sz(t,e){if(t===e||t===void 0&&e===void 0)return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null)return!1;let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!sz(t[o],e[o]))return!1;return!0;}function AS(t){return t&&typeof t.then=="function";}function XM(t){return t&&typeof t.catch=="function";}function FIe(t){let{baseUrl:e,videoFiles:n,videoUUID:r,videoFileToken:o,extension:i=""}=t,s=`${e}/download/videos/generate/${r}${i}?`;return s+=n.map(a=>"videoFileIds="+a).join("&"),o&&(s+=`&videoFileToken=${o}`),s;}function UIe(t,e){return(e??window.location.origin)+az(t);}function az(t){return"/w/p/"+t.shortUUID;}function cz(t){return"/w/"+t.shortUUID;}function ZM(t,e){return(e??window.location.origin)+cz(t);}function uz(t){return"/video-playlists/embed/"+(t.shortUUID||t.uuid);}function HIe(t,e){return(e??window.location.origin)+uz(t);}function lz(t){return"/videos/embed/"+(t.shortUUID||t.uuid);}function BIe(t,e){return(e??window.location.origin)+lz(t);}function QM(t){let{url:e}=t,n=new URLSearchParams();if(t.startTime!==void 0&&t.startTime!==null){let r=Math.floor(t.startTime);n.set("start",wS(r));}if(t.stopTime){let r=Math.floor(t.stopTime);n.set("stop",wS(r));}return t.subtitle&&n.set("subtitle",t.subtitle),t.loop===!0&&n.set("loop","1"),t.autoplay===!0&&n.set("autoplay","1"),t.muted===!0&&n.set("muted","1"),t.title===!1&&n.set("title","0"),t.warningTitle===!1&&n.set("warningTitle","0"),t.controls===!1&&n.set("controls","0"),t.controlBar===!1&&n.set("controlBar","0"),t.peertubeLink===!1&&n.set("peertubeLink","0"),t.p2p!==void 0&&n.set("p2p",t.p2p?"1":"0"),t.api!==void 0&&n.set("api",t.api?"1":"0"),t.version!==void 0&&n.set("v",t.version+""),JM(e,n);}function jIe(t){let{url:e}=t,n=new URLSearchParams();return t.playlistPosition&&n.set("playlistPosition",""+t.playlistPosition),JM(e,n);}function JM(t,e){let n=!1;return e.forEach(()=>{n=!0;}),n?t+"?"+e.toString():t;}function $Ie(t,e){return t.startsWith(e+"-")?-1:e.startsWith(t+"-")?1:t.localeCompare(e,void 0,{numeric:!0,sensitivity:"case",caseFirst:"upper"});}var dz={"en-US":"English",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ca-ES":"Catal\xE0","cs-CZ":"\u010Ce\u0161tina","de-DE":"Deutsch","el-GR":"\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",eo:"Esperanto","es-ES":"Espa\xF1ol","eu-ES":"Euskara","fa-IR":"\u0641\u0627\u0631\u0633\u06CC","fi-FI":"Suomi","fr-FR":"Fran\xE7ais",gd:"G\xE0idhlig","gl-ES":"Galego",hr:"Hrvatski","hu-HU":"Magyar",is:"\xCDslenska","it-IT":"Italiano","ja-JP":"\u65E5\u672C\u8A9E",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8 \u10D4\u10DC\u10D0",kab:"Taqbaylit","ko-KR":"\uD55C\uAD6D\uC5B4","nb-NO":"Norsk bokm\xE5l","nl-NL":"Nederlands",nn:"Norsk nynorsk",oc:"Occitan","pl-PL":"Polski","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103","ru-RU":"P\u0443\u0441\u0441\u043A\u0438\u0439","sk-SK":"Sloven\u010Dina",sq:"Shqip","sv-SE":"Svenska","th-TH":"\u0E44\u0E17\u0E22",tok:"Toki Pona","tr-TR":"T\xFCrk\xE7e","uk-UA":"\u0443\u043A\u0440\u0430\u0457\u0301\u043D\u0441\u044C\u043A\u0430 \u043C\u043E\u0301\u0432\u0430","vi-VN":"Ti\u1EBFng Vi\u1EC7t","zh-Hans-CN":"\u7B80\u4F53\u4E2D\u6587\uFF08\u4E2D\u56FD\uFF09","zh-Hant-TW":"\u7E41\u9AD4\u4E2D\u6587\uFF08\u53F0\u7063\uFF09"},eN={"ar-001":"ar",ca:"ca-ES",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",es:"es-ES",eu:"eu-ES",fa:"fa-IR",fi:"fi-FI",fr:"fr-FR",gl:"gl-ES",hu:"hu-HU",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nb:"nb-NO",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sk:"sk-SK",sv:"sv-SE",th:"th-TH",tr:"tr-TR",uk:"uk-UA",vi:"vi-VN","zh-CN":"zh-Hans-CN","zh-Hans":"zh-Hans-CN","zh-Hant":"zh-Hant-TW","zh-TW":"zh-Hant-TW",zh:"zh-Hans-CN"},fz=Object.keys(dz).concat(Object.keys(eN));function pz(){return"en-US";}function _m(t){return hi(t)===hi(pz());}function Am(t,e){return e?.[t]?e[t]:t;}var hz=fz.map(t=>"/"+t);function rwe(t){return hz.includes(t);}function hi(t){return t&&(eN[t]||t);}function owe(t){return t.includes("-")===!1?t:t.split("-")[0];}function tN(t){return t.startsWith("filter:")?Ps.FILTER:t.startsWith("action:")?Ps.ACTION:Ps.STATIC;}function nN(t){return P(this,null,function*(){let{handler:e,hookType:n,result:r,params:o,onError:i}=t;try{if(n===Ps.FILTER){let a=e(r,o);return AS(a)?yield a:a;}
14let s=e(o);if(n===Ps.STATIC){AS(s)&&(yield s);return;}if(n===Ps.ACTION){XM(s)&&s.catch(a=>i(a));return;}}catch(s){i(s);}return r;});}function rN(t,e){return t+`/plugins/${e.name}/${e.version}/auth/${e.authName}`;}function xS(){return["a","p","span","br","strong","em","ul","ol","li"];}function RS(){return["http","https"];}function MS(){return["href","class","target","rel"];}var xm=["linkify","autolink","emphasis","link","newline","entity","list"],NS=xm.concat(["html_inline","html_block"]),oN=xm.concat(["image"]),OS=NS.concat(["image"]),LS=OS.concat(["block","inline","heading","paragraph"]);function Ic(t){let{url:e,title:n}=t;return{url:`${e}/feeds/videos.xml`,title:n};}function ywe(t){let{url:e,titles:n,channel:r}=t;return[{url:mz(e,r),title:n.channelPodcastFeed},{url:`${e}/feeds/videos.xml?videoChannelId=${r.id}`,title:n.channelVideosFeed},Ic({url:e,title:n.instanceVideosFeed})];}function vwe(t){let{url:e,titles:n,video:r}=t;return r.privacy!==qt.PUBLIC?[Ic({url:e,title:n.instanceVideosFeed})]:[{url:`${e}/feeds/video-comments.xml?videoId=${r.uuid}`,title:n.videoCommentsFeed},Ic({url:e,title:n.instanceVideosFeed})];}function mz(t,e){return`${t}/feeds/podcast/videos.xml?videoChannelId=${e.id}`;}function Ewe(t){let{url:e,titles:n,playlist:r}=t;return[{url:gz(e,r),title:n.playlistPodcastFeed},Ic({url:e,title:n.instanceVideosFeed})];}function gz(t,e){return`${t}/feeds/podcast/videos.xml?playlistId=${e.id}`;}var wwe={[Hn.USER]:"User",[Hn.MODERATOR]:"Moderator",[Hn.ADMINISTRATOR]:"Administrator"},yz={[Hn.ADMINISTRATOR]:[bt.ALL],[Hn.MODERATOR]:[bt.MANAGE_VIDEO_BLACKLIST,bt.MANAGE_ABUSES,bt.MANAGE_ANY_VIDEO_CHANNEL,bt.REMOVE_ANY_VIDEO,bt.REMOVE_ANY_VIDEO_PLAYLIST,bt.MANAGE_ANY_VIDEO_COMMENT,bt.UPDATE_ANY_VIDEO,bt.SEE_ALL_VIDEOS,bt.MANAGE_ACCOUNTS_BLOCKLIST,bt.MANAGE_SERVERS_BLOCKLIST,bt.MANAGE_USERS,bt.SEE_ALL_COMMENTS,bt.MANAGE_REGISTRATIONS,bt.MANAGE_INSTANCE_WATCHED_WORDS,bt.MANAGE_INSTANCE_AUTO_TAGS],[Hn.USER]:[]};function Rm(t,e){let n=yz[t];return n.includes(bt.ALL)||n.includes(e);}var Mwe={[Y.H_NOVIDEO]:0,[Y.H_144P]:.02,[Y.H_240P]:.02,[Y.H_360P]:.02,[Y.H_480P]:.02,[Y.H_720P]:.02,[Y.H_1080P]:.02,[Y.H_1440P]:.02,[Y.H_4K]:.02},Nwe={[Y.H_NOVIDEO]:0,[Y.H_144P]:.19,[Y.H_240P]:.17,[Y.H_360P]:.15,[Y.H_480P]:.12,[Y.H_720P]:.11,[Y.H_1080P]:.1,[Y.H_1440P]:.09,[Y.H_4K]:.08},Owe={[Y.H_NOVIDEO]:0,[Y.H_144P]:.32,[Y.H_240P]:.29,[Y.H_360P]:.26,[Y.H_480P]:.22,[Y.H_720P]:.19,[Y.H_1080P]:.17,[Y.H_1440P]:.16,[Y.H_4K]:.14};function Fwe(){return[qt.PUBLIC,qt.INTERNAL,qt.PRIVATE,qt.UNLISTED,qt.PASSWORD_PROTECTED];}function Uwe(t){let e=t.files||[],n=vz(t);return n&&Array.isArray(n.files)?e.concat(n.files):e;}function vz(t){return Array.isArray(t.streamingPlaylists)?t.streamingPlaylists.find(e=>e.type===VM.HLS):null;}var Hwe=new Set([Y.H_NOVIDEO,Y.H_144P,Y.H_240P,Y.H_360P,Y.H_480P,Y.H_720P,Y.H_1080P,Y.H_1440P,Y.H_4K]),Bwe={3840:Y.H_4K,1920:Y.H_1080P,1280:Y.H_720P,854:Y.H_480P,640:Y.H_360P,426:Y.H_240P,256:Y.H_144P};function jwe(t,e){return e&&e>=50?t+e:t;}function Gwe(t){return new Set([sd.PUBLISHED,sd.TO_MOVE_TO_EXTERNAL_STORAGE_FAILED,sd.TO_MOVE_TO_FILE_SYSTEM_FAILED,sd.TRANSCODING_FAILED]).has(t);}var Zwe=new RegExp(`^(${$M})\\s`);function Jwe(t){let e=0;if(!t)return e;for(let n of t)e=(e<<5)-e+n.charCodeAt(0),e|=0;return e;}var mi=new Map();function iN(t){return new Proxy(t,{set:function(e,n,r){return Object.prototype.hasOwnProperty.call(ad,n)?t[n]=r:t.setItem(n,r),!0;},get:function(e,n){if(typeof t[n]=="function")return t[n];if(mi.has(n))return t.getItem(n);}});}var ad=class{getItem(e){let n=String(e);return mi.has(e)?String(mi.get(n)):null;}setItem(e,n){mi.set(String(e),String(n));}removeItem(e){mi.delete(e);}clear(){mi.clear();}key(e){if(arguments.length===0)throw new TypeError('Failed to execute "key" on "Storage": 1 argument required, but only 0 present.');return Array.from(mi.keys())[e];}get length(){return mi.size;}},Bn,cd;function sN(){let t=new ad(),e=new ad();Bn=iN(t),cd=iN(e);}try{Bn=localStorage,cd=sessionStorage;}catch(t){sN();}(!Bn||!cd)&&sN();var x={ID:"id",USERNAME:"username",ROLE:"role",EMAIL:"email",NSFW_POLICY:"nsfw_policy",NSFW_FLAGS_DISPLAYED:"nsfw_flags_displayed",NSFW_FLAGS_HIDDEN:"nsfw_flags_hidden",NSFW_FLAGS_WARNED:"nsfw_flags_warned",NSFW_FLAGS_BLURRED:"nsfw_flags_blurred",P2P_ENABLED:"peertube-videojs-webtorrent_enabled",AUTO_PLAY_VIDEO:"auto_play_video",AUTO_PLAY_NEXT_VIDEO:"auto_play_next_video",AUTO_PLAY_VIDEO_PLAYLIST:"auto_play_video_playlist",THEME:"theme",LAST_ACTIVE_THEME:"last_active_theme",VIDEO_LANGUAGES:"video_languages"},Kr={ACCESS_TOKEN:"access_token",REFRESH_TOKEN:"refresh_token",TOKEN_TYPE:"token_type"};var Xr=class t{accessToken;refreshToken;tokenType;constructor(e){e&&(this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,e.tokenType==="bearer"?this.tokenType="Bearer":this.tokenType=e.tokenType);}static getUserTokens(e){let n=e.getItem(Kr.ACCESS_TOKEN),r=e.getItem(Kr.REFRESH_TOKEN),o=e.getItem(Kr.TOKEN_TYPE);return!n||!r||!o?null:new t({accessToken:n,refreshToken:r,tokenType:o});}static saveToLocalStorage(e,n){e.setItem(Kr.ACCESS_TOKEN,n.accessToken),e.setItem(Kr.REFRESH_TOKEN,n.refreshToken),e.setItem(Kr.TOKEN_TYPE,n.tokenType);}static flushLocalStorage(e){e.removeItem(Kr.ACCESS_TOKEN),e.removeItem(Kr.REFRESH_TOKEN),e.removeItem(Kr.TOKEN_TYPE);}};var kS=class{hooks=[];info(e,n){this.runHooks("info",e,n),n?console.log(e,n):console.log(e);}warn(e,n){this.runHooks("warn",e,n),this.clientWarn(e,n);}
14clientWarn(e,n){n?console.warn(e,n):console.warn(e);}error(e,n){this.runHooks("error",e,n),this.clientError(e,n);}clientError(e,n){n?console.error(e,n):console.error(e);}addHook(e,n){this.hooks.push({level:e,hook:n});}registerServerSending(e){this.addHook("warn",(n,r)=>this.sendClientLog(e,this.buildServerLogPayload("warn",n,r))),this.addHook("error",(n,r)=>this.sendClientLog(e,this.buildServerLogPayload("error",n,r)));}sendClientLog(e,n){if(!n)return;let r=new Headers({Accept:"application/json","Content-Type":"application/json"});try{let o=Xr.getUserTokens(Bn);o&&r.set("Authorization",`${o.tokenType} ${o.accessToken}`);}catch(o){console.error("Cannot set tokens to client log sender.",{err:o});}fetch(e+"/api/v1/server/logs/client",{headers:r,method:"POST",body:JSON.stringify(n)}).catch(o=>console.error("Cannot send client warn/error to server.",o));}buildServerLogPayload(e,n,r){return n?{message:this.buildMessageServerLogPayload(n),userAgent:navigator.userAgent,url:window.location.href,level:e,stackTrace:this.buildStackServerLogPayload(n,r),meta:this.buildMetaServerLogPayload(r)}:null;}buildMessageServerLogPayload(e){return typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e);}buildStackServerLogPayload(e,n){if(e instanceof Error)return this.buildStack(e);if(n instanceof Error)return this.buildStack(n);if(n?.err instanceof Error)return this.buildStack(n.err);}buildMetaServerLogPayload(e){if(!e||e instanceof Error)return;let n;try{n=JSON.stringify(e,(r,o)=>{if(r!=="err")return o;});}catch(r){console.error("Cannot stringify meta.",r);}return n;}runHooks(e,n,r){for(let o of this.hooks)o.level===e&&o.hook(n,r);}buildStack(e){return`${e.message} 15${e.stack||""}`;}},B=window.logger||new kS();window.logger=B;var re={production:!0,hmr:!1,apiUrl:"",originServerUrl:"",embedUrl:""};var Zr=class t extends Error{alreadyNotified;constructor(e,n){super(e),this.name="PeerTubeReconnectError",this.alreadyNotified=n,Object.setPrototypeOf(this,t.prototype);}},wc=class t extends Error{status;body;headers;url;constructor(e,n){super(e),this.name="HTTPError",this.status=n.status,this.body=n.body,this.headers=n.headers,this.url=n.url,Object.setPrototypeOf(this,t.prototype);}};function Ez(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0;}function PS(t,e,n=new WeakSet()){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let r=Array.isArray(t),o=Array.isArray(e),i,s,a;if(r&&o){if(s=t.length,s!=e.length)return!1;for(i=s;i--!==0;)if(!PS(t[i],e[i],n))return!1;return!0;}if(r!=o)return!1;let c=t instanceof Date,u=e instanceof Date;if(c!=u)return!1;if(c&&u)return t.getTime()==e.getTime();let l=t instanceof RegExp,d=e instanceof RegExp;if(l!=d)return!1;if(l&&d)return t.toString()==e.toString();let f=Object.keys(t);if(s=f.length,s!==Object.keys(e).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,f[i]))return!1;for(i=s;i--!==0;)if(a=f[i],!PS(t[a],e[a],n))return!1;return!0;}function bz(t,e){return PS(t,e);}function uN(t){return typeof t=="function"&&"call"in t&&"apply"in t;}function Nm(t){return!Ez(t);}function Mm(t,e){if(!t||!e)return null;try{let n=t[e];if(Nm(n))return n;}catch(n){}if(Object.keys(t).length){if(uN(e))return e(t);if(e.indexOf(".")===-1)return t[e];{let n=e.split("."),r=t;for(let o=0,i=n.length;o<i;++o){if(r==null)return null;r=r[n[o]];}return r;}}return null;}function FS(t,e,n){return n?Mm(t,n)===Mm(e,n):bz(t,e);}function _0e(t,e){if(t!=null&&e&&e.length){for(let n of e)if(FS(t,n))return!0;}return!1;}function Tz(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0);}function A0e(t,e){let n=-1;if(Nm(t))try{n=t.findLastIndex(e);}catch(r){n=t.lastIndexOf([...t].reverse().find(e));}return n;}function aN(t,...e){return uN(t)?t(...e):t;}function lN(t,e=!0){return typeof t=="string"&&(e||t!=="");}function cN(t){return lN(t)?t.replace(/(-|_)/g,"").toLowerCase():t;}function Sz(t,e="",n={}){let r=cN(e).split("."),o=r.shift();if(o){if(Tz(t)){let i=Object.keys(t).find(s=>cN(s)===o)||"";return Sz(aN(t[i],n),r.join("."),n);}return;}return aN(t,n);}function x0e(t,e=!0){return Array.isArray(t)&&(e||t.length!==0);}function R0e(t){return t instanceof Date;}function M0e(t){return Nm(t)&&!isNaN(t);}function N0e(t=""){return Nm(t)&&t.length===1&&!!t.match(/\S| /);}function O0e(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n;}return!1;}function L0e(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim();}
15function Sn(t){if(t&&/[\xC0-\xFF\u0100-\u017E]/.test(t)){let e={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in e)t=t.replace(e[n],n);}return t;}function k0e(t){return lN(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t;}function P0e(t){return t==="auto"?0:typeof t=="number"?t:Number(t.replace(/[^\d.]/g,"").replace(",","."))*1e3;}var dN=["*"];var j0e=(()=>{class t{}return p(t,"STARTS_WITH","startsWith"),p(t,"CONTAINS","contains"),p(t,"NOT_CONTAINS","notContains"),p(t,"ENDS_WITH","endsWith"),p(t,"EQUALS","equals"),p(t,"NOT_EQUALS","notEquals"),p(t,"IN","in"),p(t,"LESS_THAN","lt"),p(t,"LESS_THAN_OR_EQUAL_TO","lte"),p(t,"GREATER_THAN","gt"),p(t,"GREATER_THAN_OR_EQUAL_TO","gte"),p(t,"BETWEEN","between"),p(t,"IS","is"),p(t,"IS_NOT","isNot"),p(t,"BEFORE","before"),p(t,"AFTER","after"),p(t,"DATE_IS","dateIs"),p(t,"DATE_IS_NOT","dateIsNot"),p(t,"DATE_BEFORE","dateBefore"),p(t,"DATE_AFTER","dateAfter"),t;})(),V0e=(()=>{class t{}return p(t,"AND","and"),p(t,"OR","or"),t;})(),$0e=(()=>{let e=class e{filter(r,o,i,s,a){let c=[];if(r)for(let u of r)for(let l of o){let d=Mm(u,l);if(this.filters[s](d,i,a)){c.push(u);break;}}return c;}filters={startsWith:(r,o,i)=>{if(o==null||o.trim()==="")return!0;if(r==null)return!1;let s=Sn(o.toString()).toLocaleLowerCase(i);return Sn(r.toString()).toLocaleLowerCase(i).slice(0,s.length)===s;},contains:(r,o,i)=>{if(o==null||typeof o=="string"&&o.trim()==="")return!0;if(r==null)return!1;let s=Sn(o.toString()).toLocaleLowerCase(i);return Sn(r.toString()).toLocaleLowerCase(i).indexOf(s)!==-1;},notContains:(r,o,i)=>{if(o==null||typeof o=="string"&&o.trim()==="")return!0;if(r==null)return!1;let s=Sn(o.toString()).toLocaleLowerCase(i);return Sn(r.toString()).toLocaleLowerCase(i).indexOf(s)===-1;},endsWith:(r,o,i)=>{if(o==null||o.trim()==="")return!0;if(r==null)return!1;let s=Sn(o.toString()).toLocaleLowerCase(i),a=Sn(r.toString()).toLocaleLowerCase(i);return a.indexOf(s,a.length-s.length)!==-1;},equals:(r,o,i)=>o==null||typeof o=="string"&&o.trim()===""?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()===o.getTime():r==o?!0:Sn(r.toString()).toLocaleLowerCase(i)==Sn(o.toString()).toLocaleLowerCase(i),notEquals:(r,o,i)=>o==null||typeof o=="string"&&o.trim()===""?!1:r==null?!0:r.getTime&&o.getTime?r.getTime()!==o.getTime():r==o?!1:Sn(r.toString()).toLocaleLowerCase(i)!=Sn(o.toString()).toLocaleLowerCase(i),in:(r,o)=>{if(o==null||o.length===0)return!0;for(let i=0;i<o.length;i++)if(FS(r,o[i]))return!0;return!1;},between:(r,o)=>o==null||o[0]==null||o[1]==null?!0:r==null?!1:r.getTime?o[0].getTime()<=r.getTime()&&r.getTime()<=o[1].getTime():o[0]<=r&&r<=o[1],lt:(r,o,i)=>o==null?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()<o.getTime():r<o,lte:(r,o,i)=>o==null?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()<=o.getTime():r<=o,gt:(r,o,i)=>o==null?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()>o.getTime():r>o,gte:(r,o,i)=>o==null?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()>=o.getTime():r>=o,is:(r,o,i)=>this.filters.equals(r,o,i),isNot:(r,o,i)=>this.filters.notEquals(r,o,i),before:(r,o,i)=>this.filters.lt(r,o,i),after:(r,o,i)=>this.filters.gt(r,o,i),dateIs:(r,o)=>o==null?!0:r==null?!1:r.toDateString()===o.toDateString(),dateIsNot:(r,o)=>o==null?!0:r==null?!1:r.toDateString()!==o.toDateString(),dateBefore:(r,o)=>o==null?!0:r==null?!1:r.getTime()<o.getTime(),dateAfter:(r,o)=>o==null?!0:r==null?!1:(r.setHours(0,0,0,0),r.getTime()>o.getTime())};register(r,o){this.filters[r]=o;}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})(),Om=(()=>{let e=class e{messageSource=new Z();clearSource=new Z();
15messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(r){r&&this.messageSource.next(r);}addAll(r){r&&r.length&&this.messageSource.next(r);}clear(r){this.clearSource.next(r||null);}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac}));let t=e;return t;})(),G0e=(()=>{let e=class e{clickSource=new Z();parentDragSource=new Z();clickObservable=this.clickSource.asObservable();parentDragObservable=this.parentDragSource.asObservable();add(r){r&&this.clickSource.next(r);}emitParentDrag(r){this.parentDragSource.next(r);}};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275prov",E({token:e,factory:e.ɵfac,providedIn:"root"}));let t=e;return t;})();var z0e=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275cmp",ac({type:e,selectors:[["p-header"]],standalone:!1,ngContentSelectors:dN,decls:1,vars:0,template:function(o,i){o&1&&(lh(),dh(0));},encapsulation:2}));let t=e;return t;})(),W0e=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275cmp",ac({type:e,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:dN,decls:1,vars:0,template:function(o,i){o&1&&(lh(),dh(0));},encapsulation:2}));let t=e;return t;})(),q0e=(()=>{let e=class e{template;type;name;constructor(r){this.template=r;}getType(){return this.name;}};p(e,"\u0275fac",function(o){return new(o||e)(se(jr));}),p(e,"\u0275dir",sn({type:e,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}}));let t=e;return t;})(),Y0e=(()=>{let e=class e{};p(e,"\u0275fac",function(o){return new(o||e)();}),p(e,"\u0275mod",En({type:e})),p(e,"\u0275inj",Jt({imports:[kl]}));let t=e;return t;})(),K0e=(()=>{class t{}return p(t,"STARTS_WITH","startsWith"),p(t,"CONTAINS","contains"),p(t,"NOT_CONTAINS","notContains"),p(t,"ENDS_WITH","endsWith"),p(t,"EQUALS","equals"),p(t,"NOT_EQUALS","notEquals"),p(t,"NO_FILTER","noFilter"),p(t,"LT","lt"),p(t,"LTE","lte"),p(t,"GT","gt"),p(t,"GTE","gte"),p(t,"IS","is"),p(t,"IS_NOT","isNot"),p(t,"BEFORE","before"),p(t,"AFTER","after"),p(t,"CLEAR","clear"),p(t,"APPLY","apply"),p(t,"MATCH_ALL","matchAll"),p(t,"MATCH_ANY","matchAny"),p(t,"ADD_RULE","addRule"),p(t,"REMOVE_RULE","removeRule"),p(t,"ACCEPT","accept"),p(t,"REJECT","reject"),p(t,"CHOOSE","choose"),p(t,"UPLOAD","upload"),p(t,"CANCEL","cancel"),p(t,"PENDING","pending"),p(t,"FILE_SIZE_TYPES","fileSizeTypes"),p(t,"DAY_NAMES","dayNames"),p(t,"DAY_NAMES_SHORT","dayNamesShort"),p(t,"DAY_NAMES_MIN","dayNamesMin"),p(t,"MONTH_NAMES","monthNames"),p(t,"MONTH_NAMES_SHORT","monthNamesShort"),p(t,"FIRST_DAY_OF_WEEK","firstDayOfWeek"),p(t,"TODAY","today"),p(t,"WEEK_HEADER","weekHeader"),p(t,"WEAK","weak"),p(t,"MEDIUM","medium"),p(t,"STRONG","strong"),p(t,"PASSWORD_PROMPT","passwordPrompt"),p(t,"EMPTY_MESSAGE","emptyMessage"),p(t,"EMPTY_FILTER_MESSAGE","emptyFilterMessage"),p(t,"SHOW_FILTER_MENU","showFilterMenu"),p(t,"HIDE_FILTER_MENU","hideFilterMenu"),p(t,"SELECTION_MESSAGE","selectionMessage"),p(t,"ARIA","aria"),p(t,"SELECT_COLOR","selectColor"),p(t,"BROWSE_FILES","browseFiles"),t;})();var Fs=class Fs{messageService=g(Om);TIMEOUT=5e3;info(e,n,r,o){return n||(n="Info"),B.info(`${n}: ${e}`),this.notify({severity:"info",text:e,title:n,timeout:r,sticky:o});}error(e,n,r,o){return n||(n="Error"),B.error(`${n}: ${e}`),this.notify({severity:"error",text:e,title:n,timeout:r,sticky:o});}success(e,n,r,o){return n||(n="Success"),B.info(`${n}: ${e}`),this.notify({severity:"success",text:e,title:n,timeout:r,sticky:o});}handleError(e){if(!(e instanceof Zr&&e.alreadyNotified)){if(e instanceof wc){let n=`Backend returned code ${e.status}, errorMessage is: ${e.message}`;e.status===xt.NOT_FOUND_404?B.clientError(n):B.error(n,{url:e.url});}else B.error(e.message,e);return this.notify({severity:"error",text:e.message,title:"Error"});}}notify(e){let{severity:n,text:r,title:o,timeout:i,sticky:s}=e;this.messageService.add({severity:n,summary:o,detail:r,closable:!0,life:i||this.TIMEOUT,sticky:s});}};p(Fs,"\u0275fac",function(n){return new(n||Fs)();}),p(Fs,"\u0275prov",E({token:Fs,factory:Fs.ɵfac}));var gi=Fs;var US=[{max:1024,type:"B"},{max:1048576,type:"KB"},{max:1073741824,type:"MB"},{max:10995116e5,type:"GB"},{max:0x4000000000000,type:"TB"}];function c_e(t,e){let n=US.find(i=>t<i.max)||US[US.length-1],r=t/(n.max/1024);return`${e===void 0?r:kz(r,e)} ${n.type}`;}function kz(t,e){if(e<=0)return Math.round(t);let n=10**e;return Math.round(t*n)/n;}function f_e(t){return new Promise(e=>{let n=new FileReader();n.onerror=r=>B.error("Cannot read input file.",r),n.onloadend=()=>e(n.result),n.readAsDataURL(t);});}function p_e(t,e,n){return YM(t,e,n)?.fileUrl||"";}
15function h_e(t,e){return _S(t,e)?.fileUrl||"";}function ud(t,e){return t==="true"?!0:t==="false"?!1:e;}function ld(t,e){if(!t)return e;let n=parseInt(t,10);return isNaN(n)?e:n;}var br=wr(GS());var UN=wr(No());var zS=(0,UN.default)("peertube:theme"),Bm=class{configVariablesStyle;colorPaletteStyle;configuredCSSVariables=new Set();configCSSVariableMap={primaryColor:"--primary",onPrimaryColor:"--on-primary",foregroundColor:"--fg",backgroundColor:"--bg",backgroundSecondaryColor:"--bg-secondary",menuForegroundColor:"--menu-fg",menuBackgroundColor:"--menu-bg",menuBorderRadius:"--menu-border-radius",headerForegroundColor:"--header-fg",headerBackgroundColor:"--header-bg",inputBorderRadius:"--input-border-radius"};defaultConfigValue;getCSSConfigValue(e){let n=this.configCSSVariableMap[e];return getComputedStyle(document.documentElement).getPropertyValue(n);}injectConfigVariables(e){let{currentTheme:n,config:r}=e;if(this.configVariablesStyle||(this.configVariablesStyle=document.createElement("style"),this.configVariablesStyle.setAttribute("type","text/css"),this.configVariablesStyle.dataset.ptStyleId="config-variables",document.head.appendChild(this.configVariablesStyle)),this.configuredCSSVariables.clear(),this.configVariablesStyle.textContent="",!this.isUsingDefaultTheme({currentTheme:n,config:r}))return;let o=getComputedStyle(document.documentElement),i="";this.defaultConfigValue={};for(let[s,a]of Object.entries(r.customization)){let c=this.configCSSVariableMap[s];if(this.defaultConfigValue[s]=o.getPropertyValue(c),!!a){if(!c){B.error(`Unknown UI config variable "${s}" with value "${a}"`);continue;}i+=` ${c}: ${a}; 16`,this.configuredCSSVariables.add(c);}}i&&(this.configVariablesStyle.textContent=`:root[data-pt-theme=${n}] { 17${i} }`);}injectTheme(e,n){let r=this.getHeadElement(),o=[];for(let i of e.css){let s=document.createElement("link"),a=n+`/themes/${e.name}/${e.version}/css/${i}`;s.setAttribute("href",a),s.setAttribute("rel","alternate stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("title",e.name),s.setAttribute("disabled",""),r.appendChild(s),o.push(s);}return o;}loadThemeStyle(e){let n=document.getElementsByTagName("link");for(let r=0;r<n.length;r++){let o=n[r];o.getAttribute("rel").includes("style")&&o.getAttribute("title")&&(o.disabled=o.getAttribute("title")!==e,o.disabled?o.onload=void 0:o.onload=()=>this._injectColorPalette());}document.documentElement.dataset.ptTheme=e;}injectColorPalette(e,n=0){if(n>100)B.error("Too many iteration when checking color palette injection. The theme may be missing the --is-dark CSS variable");else if(!this.canInjectCoreColorPalette())return setTimeout(()=>this.injectColorPalette(e,n+1),Math.floor(n/10));return zS("Update color palette",e.config),this.injectConfigVariables(e),this._injectColorPalette();}removeThemeLink(e){this.getHeadElement().removeChild(e);}isUsingDefaultTheme(e){let{currentTheme:n,config:r}=e;return n===r.default?!0:r.default==="default"?r.builtIn.some(o=>o.name===n):!1;}canInjectCoreColorPalette(){let n=getComputedStyle(document.documentElement).getPropertyValue("--is-dark");return n==="0"||n==="1";}_injectColorPalette(){try{this.colorPaletteStyle||(this.colorPaletteStyle=document.createElement("style"),this.colorPaletteStyle.setAttribute("type","text/css"),this.colorPaletteStyle.dataset.ptStyleId="color-palette",document.head.appendChild(this.colorPaletteStyle));let e="",n=getComputedStyle(document.documentElement);this.colorPaletteStyle.textContent="";let r=()=>this.isDarkTheme({fg:n.getPropertyValue("--fg")||n.getPropertyValue("--mainForegroundColor"),bg:n.getPropertyValue("--bg")||n.getPropertyValue("--mainBackgroundColor"),isDarkVar:n.getPropertyValue("--is-dark")}),o=s=>this.isDarkTheme({fg:n.getPropertyValue(`--${s}-fg`),bg:n.getPropertyValue(`--${s}-bg`),isDarkVar:n.getPropertyValue(`--is-${s}-dark`)}),i=[{prefix:"primary",invertIfDark:!0,step:5,darkTheme:r},{prefix:"on-primary",invertIfDark:!0,step:5,darkTheme:r},{prefix:"bg-secondary",invertIfDark:!0,step:5,darkTheme:r},{prefix:"fg",invertIfDark:!0,fallbacks:{"--fg-300":"--greyForegroundColor"},step:5,darkTheme:r},{prefix:"input-bg",invertIfDark:!0,step:5,darkTheme:r},{prefix:"menu-fg",invertIfDark:!0,step:5,darkTheme:()=>
17o("menu")},{prefix:"menu-bg",invertIfDark:!0,step:5,darkTheme:()=>o("menu")},{prefix:"header-fg",invertIfDark:!0,step:5,darkTheme:()=>o("header")},{prefix:"header-bg",invertIfDark:!0,step:5,darkTheme:()=>o("header")}];for(let{prefix:s,invertIfDark:a,step:c,darkTheme:u,fallbacks:l={}}of i){let d=n.getPropertyValue("--"+s),f=a&&u()?-1:1;if(!d){console.error(`Cannot create palette of nonexistent "--${s}" CSS documentElement variable`);continue;}let h=(0,br.toHSLA)((0,br.parse)(d.trim()));zS(`Theme main variable --${s}: ${d} -> ${this.toHSLStr(h)}`);let m=[{id:500,key:`--${s}-500`,value:this.toHSLStr(h)}];for(let v of[-1,1]){let b=S({},h);for(let T=1;T<=9;T++){let C=500+50*T*v,k=`--${s}-${C}`,j=this.configuredCSSVariables.has(`--${s}`)?"0":n.getPropertyValue(k);if(!j||j==="0"){let W=this.buildNewLuminance(b,v*c,f),z=$(S({},b),{l:W}),pe=this.toHSLStr(z),tt=l[k]?`var(${l[k]}, ${pe})`:pe;m.push({id:C,key:k,value:tt}),b=z,zS(`Injected theme palette ${k} -> ${tt}`);}else b=(0,br.toHSLA)((0,br.parse)(j));}}for(let{key:v,value:b}of Im(m,"id"))e+=` ${v}: ${b}; 18`;e&&(document.documentElement.classList.add("color-palette"),this.colorPaletteStyle.textContent=`:root.color-palette { 19${e} }`);}document.documentElement.dataset.bsTheme=r()?"dark":"";}catch(e){B.error("Cannot inject color palette",e);}}buildNewLuminance(e,n,r){return Math.max(Math.min(100,Math.round(e.l+n*-1*r)),0);}toHSLStr(e){return`hsl(${Math.round(e.h)} ${Math.round(e.s)}% ${Math.round(e.l)}% / ${Math.round(e.a)})`;}isDarkTheme(e){let{fg:n,bg:r,isDarkVar:o}=e;if(o==="1")return!0;if(n&&r)try{if((0,br.getLuminance)((0,br.parse)(r))<(0,br.getLuminance)((0,br.parse)(n)))return!0;}catch(i){console.error("Cannot parse deprecated CSS variables",i);}return!1;}getHeadElement(){return document.getElementsByTagName("head")[0];}};var HN=wr(No());var WS=(0,HN.default)("peertube:plugins"),Oo=class t{hooks={};scopes={};loadedScripts={};loadedScopes=[];loadingScopes={};pluginsLoaded={common:new Pe(1),"admin-plugin":new Pe(1),search:new Pe(1),"video-watch":new Pe(1),signup:new Pe(1),login:new Pe(1),"video-edit":new Pe(1),embed:new Pe(1),"my-library":new Pe(1),"video-channel":new Pe(1),"my-account":new Pe(1),"admin-users":new Pe(1),"admin-comments":new Pe(1),moderation:new Pe(1)};doAction;peertubeHelpersFactory;onFormFields;onSettingsScripts;onClientRoute;backendUrl;constructor(e){this.doAction=e.doAction,this.peertubeHelpersFactory=e.peertubeHelpersFactory,this.onFormFields=e.onFormFields,this.onSettingsScripts=e.onSettingsScripts,this.onClientRoute=e.onClientRoute,this.backendUrl=e.backendUrl;}static getPluginPathPrefix(e){return e?"/themes":"/plugins";}static getDefaultLoginHref(e,n){if(n?.client.menu.login.redirectOnSingleExternalAuth!==!0)return;let r=n.plugin.registeredExternalAuths;if(r.length===1)return rN(e,r[0]);}loadPluginsList(e){for(let n of e.plugin.registered)this.addPlugin(n);}runHook(e,n,r){return P(this,null,function*(){if(!this.hooks[e])return yield n;let o=tN(e),i=yield n;for(let s of this.hooks[e])B.info(`Running hook ${e} of plugin ${s.plugin.name}`),i=yield nN({handler:s.handler,hookType:o,result:i,params:r,onError:a=>{B.error(`Cannot run hook ${e} of script ${s.clientScript.script} of plugin ${s.plugin.name}`,a);}});return i;});}ensurePluginsAreLoaded(e){this.loadPluginsByScope(e);let n=this.pluginsLoaded[e].asObservable().pipe(Re(),An());return Jn(n);}reloadLoadedScopes(){return P(this,null,function*(){for(let e of this.loadedScopes)yield this.loadPluginsByScope(e,!0);});}addPlugin(e,n=!1){let r=t.getPluginPathPrefix(n);for(let o of Object.keys(e.clientScripts)){let i=e.clientScripts[o];for(let s of i.scopes)this.scopes[s]||(this.scopes[s]=[]),this.scopes[s].push({plugin:e,clientScript:{script:`${r}/${e.name}/${e.version}/client-scripts/${i.script}`,scopes:i.scopes},pluginType:n?id.THEME:id.PLUGIN,isTheme:n}),this.loadedScripts[i.script]=!1;}}removePlugin(e){for(let n of Object.keys(this.scopes))this.scopes[n]=this.scopes[n].filter(r=>r.plugin.name!==e.name);}loadPluginsByScope(e,n=!1){return P(this,null,function*(){if(!this.loadingScopes[e]&&!(!n&&this.loadedScopes.includes(e))){this.loadingScopes[e]=!0,WS("Loading scope %s",e);try{n||this.loadedScopes.push(e);let r=this.scopes[e];if(!Array.isArray(r)){this.loadingScopes[e]=!1,this.pluginsLoaded[e].next(!0),WS("Nothing to load for scope %s",e);return;}let o=[];for(let i of r){let s=i.clientScript;this.loadedScripts[s.script]||(o.push(this.loadPlugin(i)),this.loadedScripts[s.script]=!0);}yield Promise.all(o),this.pluginsLoaded[e].next(!0),this.loadingScopes[e]=!1,WS("Scope %s loaded",e);}catch(r){B.error(`Cannot load plugins by scope ${e}`,r);}}});}loadPlugin(e){let{plugin:n,clientScript:r}=e,o=d=>{if(BM[d.target]!==!0){B.error(`Unknown hook ${d.target} of plugin ${n.name}. Skipping.`);return;}this.hooks[d.target]||(this.hooks[d.target]=[]),this.hooks[d.target].push({plugin:n,clientScript:r,target:d.target,handler:d.handler,priority:d.priority||0});},i=(d,f)=>{if(!this.onFormFields)throw new Error("Video field registration is not supported");return this.onFormFields(e,d,f);},s=d=>
19{if(!this.onSettingsScripts)throw new Error("Registering settings script is not supported");return this.onSettingsScripts(e,d);},a=d=>{if(!this.onClientRoute)throw new Error("Registering client route is not supported");return this.onClientRoute(d);},c=this.doAction,u=this.peertubeHelpersFactory(e);B.info(`Loading script ${r.script} of plugin ${n.name}`);let l=(this.backendUrl||window.location.origin)+r.script;return s8(l).then(d=>d.register({doAction:c,registerHook:o,registerVideoField:i,registerSettingsScript:s,registerClientRoute:a,peertubeHelpers:u})).then(()=>this.sortHooksByPriority()).catch(d=>B.error(`Cannot import or register plugin ${e.plugin.name}`,d));}sortHooksByPriority(){for(let e of Object.keys(this.hooks))this.hooks[e].sort((n,r)=>r.priority-n.priority);}};function s8(t){return P(this,null,function*(){try{return new Function(`return import('${t}')`)();}catch(e){return B.info("Fallback to import polyfill"),new Promise((n,r)=>{let o="$importModule$"+Math.random().toString(32).slice(2),i=document.createElement("script"),s=()=>{delete window[o],i.onerror=null,i.onload=null,i.remove(),URL.revokeObjectURL(i.src),i.src="";};i.defer=!0,i.type="module",i.onerror=()=>{r(new Error(`Failed to import: ${t}`)),s();},i.onload=()=>{n(window[o]),s();};let a=`import * as m from "${t}"; window.${o} = m;`,c=new Blob([a],{type:"text/javascript"});i.src=URL.createObjectURL(c),document.head.appendChild(i);});}});}function qS(t){return t.charAt(0).toUpperCase()+t.slice(1);}function q_e(t){return t?t.split(` 20`).filter(e=>e&&e.length!==0):[];}function BN(t){let e=[];for(let n of Object.keys(t))e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&");}function K_e(t,e){let n=new URL(t),r=new URL(e);return n.hostname==="localhost"&&r.hostname==="localhost"?!0:n.origin===r.origin;}function rAe(t){let{embedUrl:e,embedTitle:n,aspectRatio:r,responsive:o=!1}=t,i=document.createElement("iframe");if(i.title=n,i.width=o?"100%":"560",i.height=o?"100%":"315",i.src=e,i.style.border="0",i.allow="fullscreen",i.sandbox.add("allow-same-origin","allow-scripts","allow-popups","allow-forms"),o){let s=document.createElement("div");return s.style.position="relative",s.style.paddingTop=r?(1/r*100).toFixed(2)+"%":"56.25%",i.style.position="absolute",i.style.inset="0",s.appendChild(i),s.outerHTML;}return i.outerHTML;}function oAe(t,e,n){return t.isLocal&&e.tracker.enabled===!1||a8()?!1:n;}function iAe(t,e){return new Set([qt.PRIVATE,qt.INTERNAL]).has(t.privacy.id)||t.privacy.id===qt.PASSWORD_PROTECTED&&!e;}function sAe(t){return new Set([qt.PRIVATE,qt.INTERNAL,qt.PASSWORD_PROTECTED]).has(t.privacy.id);}function aAe(t,e,n){return t.nsfw===!1?!1:n?(n.nsfwFlagsWarned&t.nsfwFlags)!==0||(n.nsfwFlagsBlurred&t.nsfwFlags)!==0?!0:(n.nsfwFlagsDisplayed&t.nsfwFlags)!==0||(n.nsfwFlagsHidden&t.nsfwFlags)!==0?!1:n.nsfwPolicy==="warn"||n.nsfwPolicy==="blur":e.instance.defaultNSFWPolicy==="warn"||e.instance.defaultNSFWPolicy==="blur";}function cAe(t,e,n){return t.nsfw===!1?!1:n?(n.nsfwFlagsBlurred&t.nsfwFlags)!==0?!0:(n.nsfwFlagsWarned&t.nsfwFlags)!==0||(n.nsfwFlagsDisplayed&t.nsfwFlags)!==0||(n.nsfwFlagsHidden&t.nsfwFlags)!==0?!1:n.nsfwPolicy==="blur":e.instance.defaultNSFWPolicy==="blur";}function uAe(t,e,n){return t.nsfw===!1?!1:n?(n.nsfwFlagsHidden&t.nsfwFlags)!==0?!0:(n.nsfwFlagsBlurred&t.nsfwFlags)!==0||(n.nsfwFlagsWarned&t.nsfwFlags)!==0||(n.nsfwFlagsDisplayed&t.nsfwFlags)!==0?!1:n.nsfwPolicy==="do_not_list":e.instance.defaultNSFWPolicy==="do_not_list";}function a8(){return!(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection);}var _Ae="pop state dismiss";function jm(t,e){let n=e&&e.cache?e.cache:h8,r=e&&e.serializer?e.serializer:f8;return(e&&e.strategy?e.strategy:u8)(t,{cache:n,serializer:r});}function c8(t){return t==null||typeof t=="number"||typeof t=="boolean";}function jN(t,e,n,r){let o=c8(r)?r:n(r),i=e.get(o);return typeof i>"u"&&(i=t.call(this,r),e.set(o,i)),i;}function VN(t,e,n){let r=Array.prototype.slice.call(arguments,3),o=n(r),i=e.get(o);return typeof i>"u"&&(i=t.apply(this,r),e.set(o,i)),i;}function YS(t,e,n,r,o){return n.bind(e,t,r,o);}function u8(t,e){let n=t.length===1?jN:VN;return YS(t,this,n,e.cache.create(),e.serializer);}function l8(t,e){return YS(t,this,VN,e.cache.create(),e.serializer);}function d8(t,e){return YS(t,this,jN,e.cache.create(),e.serializer);}var f8=function(){return JSON.stringify(arguments);},p8=class{constructor(){this.cache=Object.create(null);}get(t){return this.cache[t];}set(t,e){this.cache[t]=e;}},h8={create:function(){return new p8();}}
20,Vm={variadic:l8,monadic:d8};var m8=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function WN(t){let e={};return t.replace(m8,n=>{let r=n.length;switch(n[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");}return"";}),e;}var g8=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qN(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");let e=t.split(g8).filter(r=>r.length>0),n=[];for(let r of e){let o=r.split("/");if(o.length===0)throw new Error("Invalid number skeleton");let[i,...s]=o;for(let a of s)if(a.length===0)throw new Error("Invalid number skeleton");n.push({stem:i,options:s});}return n;}function y8(t){return t.replace(/^(.*?)-/,"");}var $N=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,YN=/^(@+)?(\+|#+)?[rs]?$/g,v8=/(\*)(0+)|(#+)(0+)|(0+)/g,KN=/^(0+)$/;function GN(t){let e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(YN,function(n,r,o){return typeof o!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):o==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),"";}),e;}function XN(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"};}}function E8(t){let e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){let n=t.slice(0,2);if(n==="+!"?(e.signDisplay="always",t=t.slice(2)):n==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!KN.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length;}return e;}function zN(t){let e={},n=XN(t);return n||e;}function ZN(t){let e={};for(let n of t){switch(n.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=n.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=y8(n.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;
20case"scientific":e=S($(S({},e),{notation:"scientific"}),n.options.reduce((i,s)=>S(S({},i),zN(s)),{}));continue;case"engineering":e=S($(S({},e),{notation:"engineering"}),n.options.reduce((i,s)=>S(S({},i),zN(s)),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(v8,function(i,s,a,c,u,l){if(s)e.minimumIntegerDigits=a.length;else{if(c&&u)throw new Error("We currently do not support maximum integer digits");if(l)throw new Error("We currently do not support exact integer digits");}return"";});continue;}if(KN.test(n.stem)){e.minimumIntegerDigits=n.stem.length;continue;}if($N.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace($N,function(s,a,c,u,l,d){return c==="*"?e.minimumFractionDigits=a.length:u&&u[0]==="#"?e.maximumFractionDigits=u.length:l&&d?(e.minimumFractionDigits=l.length,e.maximumFractionDigits=l.length+d.length):(e.minimumFractionDigits=a.length,e.maximumFractionDigits=a.length),"";});let i=n.options[0];i==="w"?e=$(S({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=S(S({},e),GN(i)));continue;}if(YN.test(n.stem)){e=S(S({},e),GN(n.stem));continue;}let r=XN(n.stem);r&&(e=S(S({},e),r));let o=E8(n.stem);o&&(e=S(S({},e),o));}return e;}var de=function(t){return t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",t;}({}),$e=function(t){return t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag",t;}({}),Gm=function(t){return t[t.number=0]="number",t[t.dateTime=1]="dateTime",t;}({});function ZS(t){return t.type===$e.literal;}function eO(t){return t.type===$e.argument;}function QS(t){return t.type===$e.number;}function JS(t){return t.type===$e.date;}function eD(t){return t.type===$e.time;}function tD(t){return t.type===$e.select;}function nD(t){return t.type===$e.plural;}function tO(t){return t.type===$e.pound;}function rD(t){return t.type===$e.tag;}function oD(t){return!!(t&&typeof t=="object"&&t.type===Gm.number);}function zm(t){return!!(t&&typeof t=="object"&&t.type===Gm.dateTime);}var nO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$m={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
20:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function b8(t,e){let n="";for(let r=0;r<t.length;r++){let o=t.charAt(r);if(o==="j"){let i=0;for(;r+1<t.length&&t.charAt(r+1)===o;)i++,r++;let s=1+(i&1),a=i<2?1:3+(i>>1),c="a",u=T8(e);for((u=="H"||u=="k")&&(a=0);a-->0;)n+=c;for(;s-->0;)n=u+n;}else o==="J"?n+="H":n+=o;}return n;}function T8(t){let e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle");}let n=t.language,r;return n!=="root"&&(r=t.maximize().region),($m[r||""]||$m[n||""]||$m[`${n}-001`]||$m["001"])[0];}var S8=new RegExp(`^${nO.source}*`),D8=new RegExp(`${nO.source}*$`);function ce(t,e){return{start:t,end:e};}var C8=!!Object.fromEntries,I8=!!String.prototype.trimStart,w8=!!String.prototype.trimEnd,QN=C8?Object.fromEntries:function(e){let n={};for(let[r,o]of e)n[r]=o;return n;},_8=I8?function(e){return e.trimStart();}:function(e){return e.replace(S8,"");},A8=w8?function(e){return e.trimEnd();}:function(e){return e.replace(D8,"");},JN=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");function x8(t,e){return JN.lastIndex=e,JN.exec(t)[1]??"";}var R8=class{constructor(t,e={}){this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons;}
20parse(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1);}parseMessage(t,e,n){let r=[];for(;!this.isEOF();){let o=this.char();if(o===123){let i=this.parseArgument(t,n);if(i.err)return i;r.push(i.val);}else{if(o===125&&t>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){let i=this.clonePosition();this.bump(),r.push({type:$e.pound,location:ce(i,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(de.UNMATCHED_CLOSING_TAG,ce(this.clonePosition(),this.clonePosition()));}else if(o===60&&!this.ignoreTag&&KS(this.peek()||0)){let i=this.parseTag(t,e);if(i.err)return i;r.push(i.val);}else{let i=this.parseLiteral(t,e);if(i.err)return i;r.push(i.val);}}}return{val:r,err:null};}parseTag(t,e){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$e.literal,value:`<${r}/>`,location:ce(n,this.clonePosition())},err:null};if(this.bumpIf(">")){let o=this.parseMessage(t+1,e,!0);if(o.err)return o;let i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!KS(this.char()))return this.error(de.INVALID_TAG,ce(s,this.clonePosition()));let a=this.clonePosition();return r!==this.parseTagName()?this.error(de.UNMATCHED_CLOSING_TAG,ce(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:r,children:i,location:ce(n,this.clonePosition())},err:null}:this.error(de.INVALID_TAG,ce(s,this.clonePosition())));}else return this.error(de.UNCLOSED_TAG,ce(n,this.clonePosition()));}else return this.error(de.INVALID_TAG,ce(n,this.clonePosition()));}parseTagName(){let t=this.offset();for(this.bump();!this.isEOF()&&N8(this.char());)this.bump();return this.message.slice(t,this.offset());}parseLiteral(t,e){let n=this.clonePosition(),r="";for(;;){let i=this.tryParseQuote(e);if(i){r+=i;continue;}let s=this.tryParseUnquoted(t,e);if(s){r+=s;continue;}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue;}break;}let o=ce(n,this.clonePosition());return{val:{type:$e.literal,value:r,location:o},err:null};}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!M8(this.peek()||0))?(this.bump(),"<"):null;}tryParseQuote(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null;}this.bump();let e=[this.char()];for(this.bump();!this.isEOF();){let n=this.char();if(n===39){if(this.peek()===39)e.push(39),this.bump();else{this.bump();break;}}else e.push(n);this.bump();}return String.fromCodePoint(...e);}tryParseUnquoted(t,e){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(e==="plural"||e==="selectordinal")||n===125&&t>0?null:(this.bump(),String.fromCodePoint(n));}parseArgument(t,e){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,ce(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(de.EMPTY_ARGUMENT,ce(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(de.MALFORMED_ARGUMENT,ce(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,ce(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$e.argument,value:r,location:ce(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,ce(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(de.MALFORMED_ARGUMENT,ce(n,this.clonePosition()));}}parseIdentifierIfPossible(){let t=this.clonePosition(),e=this.offset(),n=x8(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:ce(t,this.clonePosition())};}parseArgumentOptions(t,e,n,r){let o=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(de.EXPECT_ARGUMENT_TYPE,ce(o,s));case"number":case"date":case"time":{this.bumpSpace();let a=null;if(this.bumpIf(",")){this.bumpSpace();let l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;let f=A8(d.val);if(f.length===0)return this.error(de.EXPECT_ARGUMENT_STYLE,ce(this.clonePosition(),this.clonePosition()));a={style:f,styleLocation:ce(l,this.clonePosition())};}let c=this.tryParseArgumentClose(r);if(c.err)return c;let u=ce(r,this.clonePosition());if(a&&a.style.startsWith("::")){let l=_8(a.style.slice(2));if(i==="number"){let d=this.parseNumberSkeletonFromString(l,a.styleLocation);return d.err?d:{val:{type:$e.number,value:n,location:u,style:d.val},err:null};}else{if(l.length===0)return this.error(de.EXPECT_DATE_TIME_SKELETON,u);let d=l;this.locale&&(d=b8(l,this.locale));let f={type:Gm.dateTime,pattern:d,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?WN(d):{}};return{val:{type:i==="date"?$e.date:$e.time,value:n,location:u,style:f},err:null};}}return{val:{type:i==="number"?$e.number:i==="date"?$e.date:$e.time,value:n,location:u,style:a?.style??null},err:null};}
20case"plural":case"selectordinal":case"select":{let a=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(de.EXPECT_SELECT_ARGUMENT_OPTIONS,ce(a,S({},a)));this.bumpSpace();let c=this.parseIdentifierIfPossible(),u=0;if(i!=="select"&&c.value==="offset"){if(!this.bumpIf(":"))return this.error(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce(this.clonePosition(),this.clonePosition()));this.bumpSpace();let h=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,de.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=h.val;}let l=this.tryParsePluralOrSelectOptions(t,i,e,c);if(l.err)return l;let d=this.tryParseArgumentClose(r);if(d.err)return d;let f=ce(r,this.clonePosition());return i==="select"?{val:{type:$e.select,value:n,options:QN(l.val),location:f},err:null}:{val:{type:$e.plural,value:n,options:QN(l.val),offset:u,pluralType:i==="plural"?"cardinal":"ordinal",location:f},err:null};}default:return this.error(de.INVALID_ARGUMENT_TYPE,ce(o,s));}}tryParseArgumentClose(t){return this.isEOF()||this.char()!==125?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,ce(t,this.clonePosition())):(this.bump(),{val:!0,err:null});}parseSimpleArgStyleIfPossible(){let t=0,e=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(de.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ce(n,this.clonePosition()));this.bump();break;}case 123:t+=1,this.bump();break;case 125:if(t>0)t-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break;default:this.bump();break;}return{val:this.message.slice(e.offset,this.offset()),err:null};}parseNumberSkeletonFromString(t,e){let n=[];try{n=qN(t);}catch(r){return this.error(de.INVALID_NUMBER_SKELETON,e);}return{val:{type:Gm.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?ZN(n):{}},err:null};}tryParsePluralOrSelectOptions(t,e,n,r){let o=!1,i=[],s=new Set(),{value:a,location:c}=r;for(;;){if(a.length===0){let f=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){let h=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_SELECTOR,de.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=ce(f,this.clonePosition()),a=this.message.slice(f.offset,this.offset());}else break;}if(s.has(a))return this.error(e==="select"?de.DUPLICATE_SELECT_ARGUMENT_SELECTOR:de.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);a==="other"&&(o=!0),this.bumpSpace();let u=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:de.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ce(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(t+1,e,n);if(l.err)return l;let d=this.tryParseArgumentClose(u);if(d.err)return d;i.push([a,{value:l.val,location:ce(u,this.clonePosition())}]),s.add(a),this.bumpSpace(),{value:a,location:c}=this.parseIdentifierIfPossible();}return i.length===0?this.error(e==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR:de.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(de.MISSING_OTHER_CLAUSE,ce(this.clonePosition(),this.clonePosition())):{val:i,err:null};}tryParseDecimalInteger(t,e){let n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);let o=!1,i=0;for(;!this.isEOF();){let a=this.char();if(a>=48&&a<=57)o=!0,i=i*10+(a-48),this.bump();else break;}let s=ce(r,this.clonePosition());return o?(i*=n,Number.isSafeInteger(i)?{val:i,err:null}:this.error(e,s)):this.error(t,s);}offset(){return this.position.offset;}isEOF(){return this.offset()===this.message.length;}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column};}char(){let t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");let e=this.message.codePointAt(t);if(e===void 0)throw Error(`Offset ${t} is at invalid UTF-16 code unit boundary`);return e;}error(t,e){return{val:null,err:{kind:t,message:this.message,location:e}};}bump(){if(this.isEOF())return;let t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}bumpIf(t){if(this.message.startsWith(t,this.offset())){for(let e=0;e<t.length;e++)this.bump();return!0;}return!1;}bumpUntil(t){let e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1);}bumpTo(t){if(this.offset()>t)throw Error(`targetOffset ${t} must be greater than or equal to the current offset ${this.offset()}`);for(t=Math.min(t,this.message.length);;){let e=this.offset();if(e===t)break;
20if(e>t)throw Error(`targetOffset ${t} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break;}}bumpSpace(){for(;!this.isEOF()&&O8(this.char());)this.bump();}peek(){if(this.isEOF())return null;let t=this.char(),e=this.offset();return this.message.charCodeAt(e+(t>=65536?2:1))??null;}};function KS(t){return t>=97&&t<=122||t>=65&&t<=90;}function M8(t){return KS(t)||t===47;}function N8(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039;}function O8(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233;}function XS(t){t.forEach(e=>{if(delete e.location,tD(e)||nD(e))for(let n in e.options)delete e.options[n].location,XS(e.options[n].value);else QS(e)&&oD(e.style)||(JS(e)||eD(e))&&zm(e.style)?delete e.style.location:rD(e)&&XS(e.children);});}function rO(t,e={}){e=S({shouldParseSkeletons:!0,requiresOtherClause:!0},e);let n=new R8(t,e).parse();if(n.err){let r=SyntaxError(de[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r;}return e?.captureLocation||XS(n.val),n.val;}var qm=function(t){return t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API",t;}({}),Ym=class extends Error{constructor(t,e,n){super(t),this.code=e,this.originalMessage=n;}toString(){return`[formatjs Error: ${this.code}] ${this.message}`;}},oO=class extends Ym{constructor(t,e,n,r){super(`Invalid values for "${t}": "${e}". Options are "${Object.keys(n).join('", "')}"`,qm.INVALID_VALUE,r);}},L8=class extends Ym{constructor(t,e,n){super(`Value for "${t}" must be of type ${e}`,qm.INVALID_VALUE,n);}},k8=class extends Ym{constructor(t,e){super(`The intl string context variable "${t}" was not provided to the string "${e}"`,qm.MISSING_VALUE,e);}},Cn=function(t){return t[t.literal=0]="literal",t[t.object=1]="object",t;}({});function P8(t){return t.length<2?t:t.reduce((e,n)=>{let r=e[e.length-1];return!r||r.type!==Cn.literal||n.type!==Cn.literal?e.push(n):r.value+=n.value,e;},[]);}function F8(t){return typeof t=="function";}function Wm(t,e,n,r,o,i,s){if(t.length===1&&ZS(t[0]))return[{type:Cn.literal,value:t[0].value}];let a=[];for(let c of t){if(ZS(c)){a.push({type:Cn.literal,value:c.value});continue;}if(tO(c)){typeof i=="number"&&a.push({type:Cn.literal,value:n.getNumberFormat(e).format(i)});continue;}let{value:u}=c;if(!(o&&u in o))throw new k8(u,s);let l=o[u];if(eO(c)){(!l||typeof l=="string"||typeof l=="number"||typeof l=="bigint")&&(l=typeof l=="string"||typeof l=="number"||typeof l=="bigint"?String(l):""),a.push({type:typeof l=="string"?Cn.literal:Cn.object,value:l});continue;}if(JS(c)){let d=typeof c.style=="string"?r.date[c.style]:zm(c.style)?c.style.parsedOptions:void 0;a.push({type:Cn.literal,value:n.getDateTimeFormat(e,d).format(l)});continue;}if(eD(c)){let d=typeof c.style=="string"?r.time[c.style]:zm(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:Cn.literal,value:n.getDateTimeFormat(e,d).format(l)});continue;}if(QS(c)){let d=typeof c.style=="string"?r.number[c.style]:oD(c.style)?c.style.parsedOptions:void 0;if(d&&d.scale){let f=d.scale||1;if(typeof l=="bigint"){if(!Number.isInteger(f))throw new TypeError(`Cannot apply fractional scale ${f} to bigint value. Scale must be an integer when formatting bigint.`);l=l*BigInt(f);}else l=l*f;}a.push({type:Cn.literal,value:n.getNumberFormat(e,d).format(l)});continue;}if(rD(c)){let{children:d,value:f}=c,h=o[f];if(!F8(h))throw new L8(f,"function",s);let m=h(Wm(d,e,n,r,o,i).map(v=>v.value));Array.isArray(m)||(m=[m]),a.push(...m.map(v=>({type:typeof v=="string"?Cn.literal:Cn.object,value:v})));}if(tD(c)){let d=l,f=(Object.prototype.hasOwnProperty.call(c.options,d)?c.options[d]:void 0)||c.options.other;if(!f)throw new oO(c.value,l,Object.keys(c.options),s);a.push(...Wm(f.value,e,n,r,o));continue;}if(nD(c)){let d=`=${l}`,f=Object.prototype.hasOwnProperty.call(c.options,d)?c.options[d]:void 0;if(!f){if(!Intl.PluralRules)throw new Ym(`Intl.PluralRules is not available in this environment. 21Try polyfilling it using "@formatjs/intl-pluralrules" 22`,qm.MISSING_INTL_API,s);let m=typeof l=="bigint"?Number(l):l,v=n.getPluralRules(e,{type:c.pluralType}).select(m-(c.offset||0));f=(Object.prototype.hasOwnProperty.call(c.options,v)?c.options[v]:void 0)||c.options.other;}if(!f)throw new oO(c.value,l,Object.keys(c.options),s);let h=typeof l=="bigint"?Number(l):l;a.push(...Wm(f.value,e,n,r,o,h-(c.offset||0)));continue;}}return P8(a);}function U8(t,e){return e?S(S(S({},t),e),Object.keys(t).reduce((n,r)=>(n[r]=S(S({},t[r]),e[r]),n),{})):t;}function H8(t,e){return e?Object.keys(t).reduce((n,r)=>(n[r]=U8(t[r],e[r]),n),S({},t)):t;}function iD(t){return{create(){return{get(e){return t[e];},set(e,n){t[e]=n;}};}};}function B8(t={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:jm((...e)=>new Intl.NumberFormat(...e),{cache:iD(t.number),strategy:Vm.variadic}),getDateTimeFormat:jm((...e)=>new Intl.DateTimeFormat(...e),{cache:iD(t.dateTime),strategy:Vm.variadic}),getPluralRules:jm((...e)=>new Intl.PluralRules(...e),{cache:iD(t.pluralRules),strategy:Vm.variadic})};}var j8=(()=>{var e;return e=class{constructor(r,o=e.defaultLocale,i,s){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=a=>{let c=this.formatToParts(a);if(c.length===1)return c[0].value;let u=c.reduce((l,d)=>(!l.length||d.type!==Cn.literal||typeof l[l.length-1]!="string"?l.push(d.value):l[l.length-1]+=d.value,l),[]);return u.length<=1?u[0]||"":u;},this.formatToParts=a=>Wm(this.ast,this.locales,this.formatters,this.formats,a,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=o,this.resolvedLocale=e.resolveLocale(o),typeof r=="string"){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let a=Eu(s||{},[]);this.ast=e.__parse(r,$(S({},a),{locale:this.resolvedLocale}));}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=H8(e.formats,i),this.formatters=s&&s.formatters||B8(this.formatterCache);}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale;}},e.memoizedDefaultLocale=null,e.resolveLocale=r=>{if(typeof Intl.Locale>"u")return;let o=Intl.NumberFormat.supportedLocalesOf(r);return o.length>0?new Intl.Locale(o[0]):new Intl.Locale(typeof r=="string"?r:r[0]);},e.__parse=rO,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e;})(),iO=j8;function Km(){return re.production===!1&&window.location.search==="?lang=fr";}function Xm(){return"fr-FR";}var sO=new Map(),aO=new Set(),V8="String translation error";function YAe(t,e){try{let n=sO.get(t);return n||(n=new iO(t,$localize.locale),sO.set(t,n)),n.format(e);}catch(n){return aO.has(t)||B.warn(`Cannot format ICU ${t}.`,n),aO.add(t),V8;}}var $8=typeof global=="object"&&global&&global.Object===Object&&global,Zm=$8;var G8=typeof self=="object"&&self&&self.Object===Object&&self,z8=Zm||G8||Function("return this")(),Ge=z8;var W8=Ge.Symbol,St=W8;var cO=Object.prototype,q8=cO.hasOwnProperty,Y8=cO.toString,vd=St?St.toStringTag:void 0;function K8(t){var e=q8.call(t,vd),n=t[vd];try{t[vd]=void 0;var r=!0;}catch(i){}var o=Y8.call(t);return r&&(e?t[vd]=n:delete t[vd]),o;}var uO=K8;var X8=Object.prototype,Z8=X8.toString;function Q8(t){return Z8.call(t);}var lO=Q8;
22var J8="[object Null]",eW="[object Undefined]",dO=St?St.toStringTag:void 0;function tW(t){return t==null?t===void 0?eW:J8:dO&&dO in Object(t)?uO(t):lO(t);}var Yt=tW;function nW(t){return t!=null&&typeof t=="object";}var Qe=nW;var rW="[object Symbol]";function oW(t){return typeof t=="symbol"||Qe(t)&&Yt(t)==rW;}var Di=oW;function iW(t,e){for(var n=-1,r=t==null?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o;}var Nc=iW;var sW=Array.isArray,Ne=sW;var aW=1/0,fO=St?St.prototype:void 0,pO=fO?fO.toString:void 0;function hO(t){if(typeof t=="string")return t;if(Ne(t))return Nc(t,hO)+"";if(Di(t))return pO?pO.call(t):"";var e=t+"";return e=="0"&&1/t==-aW?"-0":e;}var Ed=hO;var cW=/\s/;function uW(t){for(var e=t.length;e--&&cW.test(t.charAt(e)););return e;}var mO=uW;var lW=/^\s+/;function dW(t){return t&&t.slice(0,mO(t)+1).replace(lW,"");}var gO=dW;function fW(t){var e=typeof t;return t!=null&&(e=="object"||e=="function");}var ve=fW;var yO=NaN,pW=/^[-+]0x[0-9a-f]+$/i,hW=/^0b[01]+$/i,mW=/^0o[0-7]+$/i,gW=parseInt;function yW(t){if(typeof t=="number")return t;if(Di(t))return yO;if(ve(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ve(e)?e+"":e;}if(typeof t!="string")return t===0?t:+t;t=gO(t);var n=hW.test(t);return n||mW.test(t)?gW(t.slice(2),n?2:8):pW.test(t)?yO:+t;}var bd=yW;var vO=1/0,vW=17976931348623157e292;function EW(t){if(!t)return t===0?t:0;if(t=bd(t),t===vO||t===-vO){var e=t<0?-1:1;return e*vW;}return t===t?t:0;}var EO=EW;function bW(t){var e=EO(t),n=e%1;return e===e?n?e-n:e:0;}var bO=bW;function TW(t){return t;}var Oc=TW;var SW="[object AsyncFunction]",DW="[object Function]",CW="[object GeneratorFunction]",IW="[object Proxy]";function wW(t){if(!ve(t))return!1;var e=Yt(t);return e==DW||e==CW||e==SW||e==IW;}var Lc=wW;var _W=Ge["__core-js_shared__"],Qm=_W;var TO=function(){var t=/[^.]+$/.exec(Qm&&Qm.keys&&Qm.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:"";}();function AW(t){return!!TO&&TO in t;}var SO=AW;var xW=Function.prototype,RW=xW.toString;function MW(t){if(t!=null){try{return RW.call(t);}catch(e){}try{return t+"";}catch(e){}}return"";}var Lo=MW;var NW=/[\\^$.*+?()[\]{}|]/g,OW=/^\[object .+?Constructor\]$/,LW=Function.prototype,kW=Object.prototype,PW=LW.toString,FW=kW.hasOwnProperty,UW=RegExp("^"+PW.call(FW).replace(NW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HW(t){if(!ve(t)||SO(t))return!1;var e=Lc(t)?UW:OW;return e.test(Lo(t));}var DO=HW;function BW(t,e){return t?.[e];}var CO=BW;function jW(t,e){var n=CO(t,e);return DO(n)?n:void 0;}var pn=jW;var VW=pn(Ge,"WeakMap"),Jm=VW;var IO=Object.create,$W=function(){function t(){}return function(e){if(!ve(e))return{};if(IO)return IO(e);t.prototype=e;var n=new t();return t.prototype=void 0,n;};}(),wO=$W;function GW(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);}return t.apply(e,n);}var _O=GW;function zW(){}var AO=zW;function WW(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e;}var eg=WW;var qW=800,YW=16,KW=Date.now;function XW(t){var e=0,n=0;return function(){var r=KW(),o=YW-(r-n);if(n=r,o>0){if(++e>=qW)return arguments[0];}else e=0;return t.apply(void 0,arguments);};}var xO=XW;function ZW(t){return function(){return t;};}var RO=ZW;var QW=function(){try{var t=pn(Object,"defineProperty");return t({},"",{}),t;}catch(e){}}(),kc=QW;var JW=kc?function(t,e){return kc(t,"toString",{configurable:!0,enumerable:!1,value:RO(e),writable:!0});}:Oc,MO=JW;var e6=xO(MO),tg=e6;function t6(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t;}var NO=t6;function n6(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1;}var OO=n6;function r6(t){return t!==t;}var LO=r6;function o6(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1;}var kO=o6;function i6(t,e,n){return e===e?kO(t,e,n):OO(t,LO,n);}var PO=i6;function s6(t,e){var n=t==null?0:t.length;return!!n&&PO(t,e,0)>-1;}var FO=s6;var a6=9007199254740991,c6=/^(?:0|[1-9]\d*)$/;function u6(t,e){var n=typeof t;return e=e??a6,!!e&&(n=="number"||n!="symbol"&&c6.test(t))&&t>-1&&t%1==0&&t<e;}var Ci=u6;function l6(t,e,n){e=="__proto__"&&kc?kc(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n;}var Ii=l6;function d6(t,e){return t===e||t!==t&&e!==e;}var ro=d6;var f6=Object.prototype,p6=f6.hasOwnProperty;function h6(t,e,n){var r=t[e];(!(p6.call(t,e)&&ro(r,n))||n===void 0&&!(e in t))&&Ii(t,e,n);}var Pc=h6;function m6(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;c===void 0&&(c=t[a]),o?Ii(n,a,c):Pc(n,a,c);}return n;}var Vn=m6;var UO=Math.max;function g6(t,e,n){return e=UO(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=UO(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),_O(t,this,a);};}var ng=g6;function y6(t,e){return tg(ng(t,e,Oc),t+"");}var HO=y6;var v6=9007199254740991;function E6(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=v6;}var Fc=E6;function b6(t){return t!=null&&Fc(t.length)&&!Lc(t);}var wi=b6;function T6(t,e,n){if(!ve(n))return!1;var r=typeof e;return(r=="number"?wi(n)&&Ci(e,n.length):r=="string"&&e in n)?ro(n[e],t):!1;}var BO=T6;function S6(t){return HO(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(o--,i):void 0,s&&BO(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r,i);}return e;});}var rg=S6;var D6=Object.prototype;function C6(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||D6;return t===n;}var Uc=C6;function I6(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r;}var jO=I6;var w6="[object Arguments]";function _6(t){return Qe(t)&&Yt(t)==w6;}var sD=_6;var VO=Object.prototype,A6=VO.hasOwnProperty,x6=VO.propertyIsEnumerable,R6=sD(function(){return arguments;}())?sD:function(t){return Qe(t)&&A6.call(t,"callee")&&!x6.call(t,"callee");},ko=R6;function M6(){return!1;}var $O=M6;var WO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,GO=WO&&typeof module=="object"&&module&&!module.nodeType&&module,N6=GO&&GO.exports===WO,zO=N6?Ge.Buffer:void 0,O6=zO?zO.isBuffer:void 0,L6=O6||$O,Po=L6;var k6="[object Arguments]",P6="[object Array]",F6="[object Boolean]",U6="[object Date]",H6="[object Error]",B6="[object Function]",j6="[object Map]",V6="[object Number]",$6="[object Object]",G6="[object RegExp]",z6="[object Set]",W6="[object String]",q6="[object WeakMap]",Y6="[object ArrayBuffer]",K6="[object DataView]",X6="[object Float32Array]",Z6="[object Float64Array
22]",Q6="[object Int8Array]",J6="[object Int16Array]",e9="[object Int32Array]",t9="[object Uint8Array]",n9="[object Uint8ClampedArray]",r9="[object Uint16Array]",o9="[object Uint32Array]",xe={};xe[X6]=xe[Z6]=xe[Q6]=xe[J6]=xe[e9]=xe[t9]=xe[n9]=xe[r9]=xe[o9]=!0;xe[k6]=xe[P6]=xe[Y6]=xe[F6]=xe[K6]=xe[U6]=xe[H6]=xe[B6]=xe[j6]=xe[V6]=xe[$6]=xe[G6]=xe[z6]=xe[W6]=xe[q6]=!1;function i9(t){return Qe(t)&&Fc(t.length)&&!!xe[Yt(t)];}var qO=i9;function s9(t){return function(e){return t(e);};}var _i=s9;var YO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Td=YO&&typeof module=="object"&&module&&!module.nodeType&&module,a9=Td&&Td.exports===YO,aD=a9&&Zm.process,c9=function(){try{var t=Td&&Td.require&&Td.require("util").types;return t||aD&&aD.binding&&aD.binding("util");}catch(e){}}(),$n=c9;var KO=$n&&$n.isTypedArray,u9=KO?_i(KO):qO,Hc=u9;var l9=Object.prototype,d9=l9.hasOwnProperty;function f9(t,e){var n=Ne(t),r=!n&&ko(t),o=!n&&!r&&Po(t),i=!n&&!r&&!o&&Hc(t),s=n||r||o||i,a=s?jO(t.length,String):[],c=a.length;for(var u in t)(e||d9.call(t,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ci(u,c)))&&a.push(u);return a;}var og=f9;function p9(t,e){return function(n){return t(e(n));};}var ig=p9;var h9=ig(Object.keys,Object),XO=h9;var m9=Object.prototype,g9=m9.hasOwnProperty;function y9(t){if(!Uc(t))return XO(t);var e=[];for(var n in Object(t))g9.call(t,n)&&n!="constructor"&&e.push(n);return e;}var ZO=y9;function v9(t){return wi(t)?og(t):ZO(t);}var oo=v9;function E9(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e;}var QO=E9;var b9=Object.prototype,T9=b9.hasOwnProperty;function S9(t){if(!ve(t))return QO(t);var e=Uc(t),n=[];for(var r in t)r=="constructor"&&(e||!T9.call(t,r))||n.push(r);return n;}var JO=S9;function D9(t){return wi(t)?og(t,!0):JO(t);}var io=D9;var C9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I9=/^\w*$/;function w9(t,e){if(Ne(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Di(t)?!0:I9.test(t)||!C9.test(t)||e!=null&&t in Object(e);}var Bc=w9;var _9=pn(Object,"create"),Fo=_9;function A9(){this.__data__=Fo?Fo(null):{},this.size=0;}var eL=A9;function x9(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e;}var tL=x9;var R9="__lodash_hash_undefined__",M9=Object.prototype,N9=M9.hasOwnProperty;function O9(t){var e=this.__data__;if(Fo){var n=e[t];return n===R9?void 0:n;}return N9.call(e,t)?e[t]:void 0;}var nL=O9;var L9=Object.prototype,k9=L9.hasOwnProperty;function P9(t){var e=this.__data__;return Fo?e[t]!==void 0:k9.call(e,t);}var rL=P9;var F9="__lodash_hash_undefined__";function U9(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Fo&&e===void 0?F9:e,this;}var oL=U9;function jc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}jc.prototype.clear=eL;jc.prototype.delete=tL;jc.prototype.get=nL;jc.prototype.has=rL;jc.prototype.set=oL;var cD=jc;function H9(){this.__data__=[],this.size=0;}var iL=H9;function B9(t,e){for(var n=t.length;n--;)if(ro(t[n][0],e))return n;return-1;}var Ai=B9;var j9=Array.prototype,V9=j9.splice;function $9(t){var e=this.__data__,n=Ai(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():V9.call(e,n,1),--this.size,!0;}var sL=$9;function G9(t){var e=this.__data__,n=Ai(e,t);return n<0?void 0:e[n][1];}var aL=G9;function z9(t){return Ai(this.__data__,t)>-1;}var cL=z9;function W9(t,e){var n=this.__data__,r=Ai(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this;}var uL=W9;function Vc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}Vc.prototype.clear=iL;Vc.prototype.delete=sL;Vc.prototype.get=aL;Vc.prototype.has=cL;Vc.prototype.set=uL;var xi=Vc;var q9=pn(Ge,"Map"),Ri=q9;function Y9(){this.size=0,this.__data__={hash:new cD(),map:new(Ri||xi)(),string:new cD()};}var lL=Y9;function K9(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null;}var dL=K9;function X9(t,e){var n=t.__data__;return dL(e)?n[typeof e=="string"?"string":"hash"]:n.map;}var Mi=X9;function Z9(t){var e=Mi(this,t).delete(t);return this.size-=e?1:0,e;}var fL=Z9;function Q9(t){return Mi(this,t).get(t);}var pL=Q9;function J9(t){return Mi(this,t).has(t);}var hL=J9;function e7(t,e){var n=Mi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this;}var mL=e7;function $c(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}$c.prototype.clear=lL;$c.prototype.delete=fL;$c.prototype.get=pL;$c.prototype.has=hL;$c.prototype.set=mL;var js=$c;var t7="Expected a function";function uD(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(t7);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s;};return n.cache=new(uD.Cache||js)(),n;}uD.Cache=js;var gL=uD;var n7=500;function r7(t){var e=gL(t,function(r){return n.size===n7&&n.clear(),r;}),n=e.cache;return e;}var yL=r7;var o7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i7=/\\(\\)?/g,s7=yL(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(o7,function(n,r,o,i){e.push(o?i.replace(i7,"$1"):r||n);}),e;}),vL=s7;function a7(t){return t==null?"":Ed(t);}var Uo=a7;function c7(t,e){return Ne(t)?t:Bc(t,e)?[t]:vL(Uo(t));}var Gn=c7;var u7=1/0;function l7(t){if(typeof t=="string"||Di(t))return t;var e=t+"";return e=="0"&&1/t==-u7?"-0":e;}var In=l7;function d7(t,e){e=Gn(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[In(e[n++])];return n&&n==r?t:void 0;}var Ni=d7;function f7(t,e,n){var r=t==null?void 0:Ni(t,e);return r===void 0?n:r;}var EL=f7;function p7(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t;}var Gc=p7;var bL=St?St.isConcatSpreadable:void 0;function h7(t){return Ne(t)||ko(t)||!!(bL&&t&&t[bL]);}var TL=h7;function SL(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=TL),o||(o=[]);++i<s;){var a=t[i];e>0&&n(a)?e>1?SL(a,e-1,n,r,o):Gc(o,a):r||(o[o.length]=a);}return o;}var DL=SL;function m7(t){var e=t==null?0:t.length;return e?DL(t,1):[];}var CL=m7;function g7(t){return tg(ng(t,void 0,CL),t+"");}var sg=g7;var y7=ig(Object.getPrototypeOf,Object),zc=y7;var v7="[object Object]",E7=Function.prototype,b7=Object.prototype,IL=E7.toString,T7=b7.hasOwnProperty,S7=IL.call(Object);function D7(t){if(!Qe(t)||Yt(t)!=v7)return!1;var e=zc(t);if(e===null)return!0;var n=T7.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&IL.call(n)==S7;}var ag=D7;function C7(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i;}var cg=C7;function I7(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:cg(t,e,n);}var ug=I7;var w7="\\ud800-\\udfff",_7="\\u0300-\\u036f",A7="\\ufe20-\\ufe2f",x7="\\u20d0-\\u20ff",R7=_7+A7+x7,M7="\\ufe0e\\ufe0f",N7="\\u200d",O7=RegExp("["+N7+w7+R7+M7+"]");function L7(t){return O7.test(t);}var Oi=L7;function k7(t){return t.split("");}var wL=k7;var _L="\\ud800-\\udfff",P7="\\u0300-\\u036f",F7="\\ufe20-\\ufe2f",U7="\\u20d0-\\u20ff",H7=P7+F7+U7,B7="\\ufe0e\\ufe0f",j7="["+_L+"]",lD="["+H7+"]",dD="\\ud83c[\\udffb-\\udfff]",V7="(?:"+lD+"|"+dD+")",AL="[^"+_L+"]",xL="(?:\\ud83c[\\udde6-\\uddff]){2}",RL="[\\ud800-\\udbff][\\udc00-\\udfff]",$7="\\u200d",ML=V7+"?",NL="["+B7+"]?",G7="(?:"+$7+"(?:"+[AL,xL,RL].join("|")+")"+NL+ML+")*",z7=NL+ML+G7,W7="(?:"+[AL+lD+"?",lD,xL,RL,j7].join("|")+")",q7=RegExp(dD+"(?="+dD+")|"+W7+z7,"g");function Y7(t){return t.match(q7)||[];}var OL=Y7;function K7(t){return Oi(t)?OL(t):wL(t);}var lg=K7;function X7(t){return function(e){e=Uo(e);var n=Oi(e)?lg(e):void 0,r=n?n[0]:e.charAt(0),o=n?ug(n,1).join(""):e.slice(1);return r[t]()+o;};}var LL=X7;function Z7(){this.__data__=new xi(),this.size=0;}var kL=Z7;function Q7(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n;}var PL=Q7;function J7(t){return this.__data__.get(t);}var FL=J7;function eq(t){return this.__data__.has(t);}var UL=eq;var tq=200;function nq(t,e){var n=this.__data__;if(n instanceof xi){var r=n.__data__;if(!Ri||r.length<tq-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new js(r);}return n.set(t,e),this.size=n.size,this;}var HL=nq;function Wc(t){var e=this.__data__=new xi(t);this.size=e.size;}Wc.prototype.clear=kL;Wc.prototype.delete=PL;Wc.prototype.get=FL;Wc.prototype.has=UL;Wc.prototype.set=HL;var so=Wc;function rq(t,e){return t&&Vn(e,oo(e),t);}var BL=rq;function oq(t,e){return t&&Vn(e,io(e),t);}var jL=oq;var zL=typeof exports=="object"&&exports&&!exports.nodeType&&exports,VL=zL&&typeof module=="object"&&module&&!module.nodeType&&module,iq=VL&&VL.exports===zL,$L=iq?Ge.Buffer:void 0,GL=$L?$
22L.allocUnsafe:void 0;function sq(t,e){if(e)return t.slice();var n=t.length,r=GL?GL(n):new t.constructor(n);return t.copy(r),r;}var dg=sq;function aq(t,e){for(var n=-1,r=t==null?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s);}return i;}var WL=aq;function cq(){return[];}var fg=cq;var uq=Object.prototype,lq=uq.propertyIsEnumerable,qL=Object.getOwnPropertySymbols,dq=qL?function(t){return t==null?[]:(t=Object(t),WL(qL(t),function(e){return lq.call(t,e);}));}:fg,qc=dq;function fq(t,e){return Vn(t,qc(t),e);}var YL=fq;var pq=Object.getOwnPropertySymbols,hq=pq?function(t){for(var e=[];t;)Gc(e,qc(t)),t=zc(t);return e;}:fg,pg=hq;function mq(t,e){return Vn(t,pg(t),e);}var KL=mq;function gq(t,e,n){var r=e(t);return Ne(t)?r:Gc(r,n(t));}var hg=gq;function yq(t){return hg(t,oo,qc);}var Sd=yq;function vq(t){return hg(t,io,pg);}var Yc=vq;var Eq=pn(Ge,"DataView"),mg=Eq;var bq=pn(Ge,"Promise"),gg=bq;var Tq=pn(Ge,"Set"),Li=Tq;var XL="[object Map]",Sq="[object Object]",ZL="[object Promise]",QL="[object Set]",JL="[object WeakMap]",ek="[object DataView]",Dq=Lo(mg),Cq=Lo(Ri),Iq=Lo(gg),wq=Lo(Li),_q=Lo(Jm),Vs=Yt;(mg&&Vs(new mg(new ArrayBuffer(1)))!=ek||Ri&&Vs(new Ri())!=XL||gg&&Vs(gg.resolve())!=ZL||Li&&Vs(new Li())!=QL||Jm&&Vs(new Jm())!=JL)&&(Vs=function(t){var e=Yt(t),n=e==Sq?t.constructor:void 0,r=n?Lo(n):"";if(r)switch(r){case Dq:return ek;case Cq:return XL;case Iq:return ZL;case wq:return QL;case _q:return JL;}return e;});var Ho=Vs;var Aq=Object.prototype,xq=Aq.hasOwnProperty;function Rq(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&xq.call(t,"index")&&(n.index=t.index,n.input=t.input),n;}var tk=Rq;var Mq=Ge.Uint8Array,Kc=Mq;function Nq(t){var e=new t.constructor(t.byteLength);return new Kc(e).set(new Kc(t)),e;}var Xc=Nq;function Oq(t,e){var n=e?Xc(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength);}var nk=Oq;var Lq=/\w*$/;function kq(t){var e=new t.constructor(t.source,Lq.exec(t));return e.lastIndex=t.lastIndex,e;}var rk=kq;var ok=St?St.prototype:void 0,ik=ok?ok.valueOf:void 0;function Pq(t){return ik?Object(ik.call(t)):{};}var sk=Pq;function Fq(t,e){var n=e?Xc(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length);}var yg=Fq;var Uq="[object Boolean]",Hq="[object Date]",Bq="[object Map]",jq="[object Number]",Vq="[object RegExp]",$q="[object Set]",Gq="[object String]",zq="[object Symbol]",Wq="[object ArrayBuffer]",qq="[object DataView]",Yq="[object Float32Array]",Kq="[object Float64Array]",Xq="[object Int8Array]",Zq="[object Int16Array]",Qq="[object Int32Array]",Jq="[object Uint8Array]",eY="[object Uint8ClampedArray]",tY="[object Uint16Array]",nY="[object Uint32Array]";function rY(t,e,n){var r=t.constructor;switch(e){case Wq:return Xc(t);case Uq:case Hq:return new r(+t);case qq:return nk(t,n);case Yq:case Kq:case Xq:case Zq:case Qq:case Jq:case eY:case tY:case nY:return yg(t,n);case Bq:return new r();case jq:case Gq:return new r(t);case Vq:return rk(t);case $q:return new r();case zq:return sk(t);}}var ak=rY;function oY(t){return typeof t.constructor=="function"&&!Uc(t)?wO(zc(t)):{};}var vg=oY;var iY="[object Map]";function sY(t){return Qe(t)&&Ho(t)==iY;}var ck=sY;var uk=$n&&$n.isMap,aY=uk?_i(uk):ck,lk=aY;var cY="[object Set]";function uY(t){return Qe(t)&&Ho(t)==cY;}var dk=uY;var fk=$n&&$n.isSet,lY=fk?_i(fk):dk,pk=lY;var dY=1,fY=2,pY=4,hk="[object Arguments]",hY="[object Array]",mY="[object Boolean]",gY="[object Date]",yY="[object Error]",mk="[object Function]",vY="[object GeneratorFunction]",EY="[object Map]",bY="[object Number]",gk="[object Object]",TY="[object RegExp]",SY="[object Set]",DY="[object String]",CY="[object Symbol]",IY="[object WeakMap]",wY="[object ArrayBuffer]",_Y="[object DataView]",AY="[object Float32Array]",xY="[object Float64Array]",RY="[object Int8Array]",MY="[object Int16Array]",NY="[object Int32Array]",OY="[object Uint8Array]",LY="[object Uint8ClampedArray]",kY="[object Uint16Array]",PY="[object Uint32Array]",Ce={};Ce[hk]=Ce[hY]=Ce[wY]=Ce[_Y]=Ce[mY]=Ce[gY]=Ce[AY]=Ce[xY]=Ce[RY]=Ce[MY]=Ce[NY]=Ce[EY]=Ce[bY]=Ce[gk]=Ce[TY]=Ce[SY]=Ce[DY]=Ce[CY]=Ce[OY]=Ce[LY]=Ce[kY]=Ce[PY]=!0;Ce[yY]=Ce[mk]=Ce[IY]=!1;function Eg(t,e,n,r,o,i){var s,a=e&dY,c=e&fY,u=e&pY;if(n&&(s=o?n(t,r,o,i):n(t)),s!==void 0)return s;if(!ve(t))return t;var l=Ne(t);if(l){if(s=tk(t),!a)return eg(t,s);}else{var d=Ho(t),f=d==mk||d==vY;if(Po(t))return dg(t,a);if(d==gk||d==hk||f&&!o){if(s=c||f?{}:vg(t),!a)return c?KL(t,jL(s,t)):YL(t,BL(s,t));}else{if(!Ce[d])return o?t:{};s=ak(t,d,a);}}i||(i=new so());var h=i.get(t);if(h)return h;i.set(t,s),pk(t)?t.forEach(function(b){s.add(Eg(b,e,n,b,t,i));}):lk(t)&&t.forEach(function(b,T){s.set(T,Eg(b,e,n,T,t,i));});var m=u?c?Yc:Sd:c?io:oo,v=l?void 0:m(t);return NO(v||t,function(b,T){v&&(T=b,b=t[T]),Pc(s,T,Eg(b,e,n,T,t,i));}),s;}var yk=Eg;var FY="__lodash_hash_undefined__";function UY(t){return this.__data__.set(t,FY),this;}var vk=UY;function HY(t){return this.__data__.has(t);}var Ek=HY;function bg(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new js();++e<n;)this.add(t[e]);}bg.prototype.add=bg.prototype.push=vk;bg.prototype.has=Ek;var Tg=bg;function BY(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1;}var bk=BY;function jY(t,e){return t.has(e);}var Sg=jY;var VY=1,$Y=2;function GY(t,e,n,r,o,i){var s=n&VY,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var u=i.get(t),l=i.get(e);if(u&&l)return u==e&&l==t;var d=-1,f=!0,h=n&$Y?new Tg():void 0;for(i.set(t,e),i.set(e,t);++d<a;){var m=t[d],v=e[d];if(r)var b=s?r(v,m,d,e,t,i):r(m,v,d,t,e,i);if(b!==void 0){if(b)continue;f=!1;break;}
vendor: 2,356 bytes, line 22
22if(h){if(!bk(e,function(T,C){if(!Sg(h,C)&&(m===T||o(m,T,n,r,i)))return h.push(C);})){f=!1;break;}}else if(!(m===v||o(m,v,n,r,i))){f=!1;break;}}return i.delete(t),i.delete(e),f;}var Dg=GY;function zY(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r];}),n;}var Tk=zY;function WY(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r;}),n;}var Zc=WY;var qY=1,YY=2,KY="[object Boolean]",XY="[object Date]",ZY="[object Error]",QY="[object Map]",JY="[object Number]",eK="[object RegExp]",tK="[object Set]",nK="[object String]",rK="[object Symbol]",oK="[object ArrayBuffer]",iK="[object DataView]",Sk=St?St.prototype:void 0,fD=Sk?Sk.valueOf:void 0;function sK(t,e,n,r,o,i,s){switch(n){case iK:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case oK:return!(t.byteLength!=e.byteLength||!i(new Kc(t),new Kc(e)));case KY:case XY:case JY:return ro(+t,+e);case ZY:return t.name==e.name&&t.message==e.message;case eK:case nK:return t==e+"";case QY:var a=Tk;case tK:var c=r&qY;if(a||(a=Zc),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=YY,s.set(t,e);var l=Dg(a(t),a(e),r,o,i,s);return s.delete(t),l;case rK:if(fD)return fD.call(t)==fD.call(e);}return!1;}var Dk=sK;var aK=1,cK=Object.prototype,uK=cK.hasOwnProperty;function lK(t,e,n,r,o,i){var s=n&aK,a=Sd(t),c=a.length,u=Sd(e),l=u.length;if(c!=l&&!s)return!1;for(var d=c;d--;){var f=a[d];if(!(s?f in e:uK.call(e,f)))return!1;}var h=i.get(t),m=i.get(e);if(h&&m)return h==e&&m==t;var v=!0;i.set(t,e),i.set(e,t);for(var b=s;++d<c;){f=a[d];var T=t[f],C=e[f];if(r)var k=s?r(C,T,f,e,t,i):r(T,C,f,t,e,i);if(!(k===void 0?T===C||o(T,C,n,r,i):k)){v=!1;break;}b||(b=f=="constructor");}if(v&&!b){var j=t.constructor,W=e.constructor;j!=W&&"constructor"in t&&"constructor"in e&&!(typeof j=="function"&&j instanceof j&&typeof W=="function"&&W instanceof W)&&(v=!1);}return i.delete(t),i.delete(e),v;}var Ck=lK;var dK=1,Ik="[object Arguments]",wk="[object Array]",Cg="[object Object]",fK=Object.prototype,_k=fK.hasOwnProperty;function pK(t,e,n,r,o,i){var s=Ne(t),a=Ne(e),c=s?wk:Ho(t),u=a?wk:Ho(e);c=c==Ik?Cg:c,u=u==Ik?Cg:u;var l=c==Cg,d=u==Cg,f=c==u;if(f&&Po(t)){if(!Po(e))return!1;s=!0,l=!1;}if(f&&!l)return i||(i=new so()),s||Hc(t)?Dg(t,e,n,r,o,i):Dk(t,e,c,n,r,o,i);if(!(n&dK)){var h=l&&_k.call(t,"__wrapped__"),m=d&&_k.call(e,"__wrapped__");
22if(h||m){var v=h?t.value():t,b=m?e.value():e;return i||(i=new so()),o(v,b,n,r,i);}}return f?(i||(i=new so()),Ck(t,e,n,r,o,i)):!1;}var Ak=pK;function xk(t,e,n,r,o){return t===e?!0:t==null||e==null||!Qe(t)&&!Qe(e)?t!==t&&e!==e:Ak(t,e,n,r,xk,o);}var Ig=xk;var hK=1,mK=2;function gK(t,e,n,r){var o=n.length,i=o,s=!r;if(t==null)return!i;for(t=Object(t);o--;){var a=n[o];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1;}for(;++o<i;){a=n[o];var c=a[0],u=t[c],l=a[1];if(s&&a[2]){if(u===void 0&&!(c in t))return!1;}else{var d=new so();if(r)var f=r(u,l,c,t,e,d);if(!(f===void 0?Ig(l,u,hK|mK,r,d):f))return!1;}}return!0;}var Rk=gK;function yK(t){return t===t&&!ve(t);}var wg=yK;function vK(t){for(var e=oo(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,wg(o)];}return e;}var Mk=vK;function EK(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n));};}var _g=EK;function bK(t){var e=Mk(t);return e.length==1&&e[0][2]?_g(e[0][0],e[0][1]):function(n){return n===t||Rk(n,t,e);};}var Nk=bK;function TK(t,e){return t!=null&&e in Object(t);}var Ok=TK;function SK(t,e,n){e=Gn(e,t);for(var r=-1,o=e.length,i=!1;++r<o;){var s=In(e[r]);if(!(i=t!=null&&n(t,s)))break;t=t[s];}return i||++r!=o?i:(o=t==null?0:t.length,!!o&&Fc(o)&&Ci(s,o)&&(Ne(t)||ko(t)));}var Lk=SK;function DK(t,e){return t!=null&&Lk(t,e,Ok);}var Ag=DK;var CK=1,IK=2;function wK(t,e){return Bc(t)&&wg(e)?_g(In(t),e):function(n){var r=EL(n,t);return r===void 0&&r===e?Ag(n,t):Ig(e,r,CK|IK);};}var kk=wK;function _K(t){return function(e){return e?.[t];};}var xg=_K;function AK(t){return function(e){return Ni(e,t);};}var Pk=AK;function xK(t){return Bc(t)?xg(In(t)):Pk(t);}var Fk=xK;function RK(t){return typeof t=="function"?t:t==null?Oc:typeof t=="object"?Ne(t)?kk(t[0],t[1]):Nk(t):Fk(t);}var Qc=RK;function MK(t){return function(e,n,r){for(var o=-1,i=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++o];if(n(i[c],c,i)===!1)break;}return e;};}var Uk=MK;var NK=Uk(),Rg=NK;function OK(t,e){return t&&Rg(t,e,oo);}var Hk=OK;var LK=function(){return Ge.Date.now();},Mg=LK;var kK="Expected a function",PK=Math.max,FK=Math.min;function UK(t,e,n){var r,o,i,s,a,c,u=0,l=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(kK);e=bd(e)||0,ve(n)&&(l=!!n.leading,d="maxWait"in n,i=d?PK(bd(n.maxWait)||0,e):i,f="trailing"in n?!!n.trailing:f);function h(z){var pe=r,tt=o;return r=o=void 0,u=z,s=t.apply(tt,pe),s;}function m(z){return u=z,a=setTimeout(T,e),l?h(z):s;}function v(z){var pe=z-c,tt=z-u,Bi=e-pe;return d?FK(Bi,i-tt):Bi;}function b(z){var pe=z-c,tt=z-u;return c===void 0||pe>=e||pe<0||d&&tt>=i;}function T(){var z=Mg();if(b(z))return C(z);a=setTimeout(T,v(z));}function C(z){return a=void 0,f&&r?h(z):(r=o=void 0,s);}function k(){a!==void 0&&clearTimeout(a),u=0,r=c=o=a=void 0;}function j(){return a===void 0?s:C(Mg());}function W(){var z=Mg(),pe=b(z);if(r=arguments,o=this,c=z,pe){if(a===void 0)return m(c);if(d)return clearTimeout(a),a=setTimeout(T,e),h(c);}return a===void 0&&(a=setTimeout(T,e)),s;}return W.cancel=k,W.flush=j,W;}var HK=UK;function BK(t,e,n){(n!==void 0&&!ro(t[e],n)||n===void 0&&!(e in t))&&Ii(t,e,n);}var Dd=BK;function jK(t){return Qe(t)&&wi(t);}var Bk=jK;function VK(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e];}var Cd=VK;function $K(t){return Vn(t,io(t));}var jk=$K;function GK(t,e,n,r,o,i,s){var a=Cd(t,n),c=Cd(e,n),u=s.get(c);if(u){Dd(t,n,u);return;}var l=i?i(a,c,n+"",t,e,s):void 0,d=l===void 0;if(d){var f=Ne(c),h=!f&&Po(c),m=!f&&!h&&Hc(c);l=c,f||h||m?Ne(a)?l=a:Bk(a)?l=eg(a):h?(d=!1,l=dg(c,!0)):m?(d=!1,l=yg(c,!0)):l=[]:ag(c)||ko(c)?(l=a,ko(a)?l=jk(a):(!ve(a)||Lc(a))&&(l=vg(c))):d=!1;}d&&(s.set(c,l),o(l,c,r,i,s),s.delete(c)),Dd(t,n,l);}var Vk=GK;function $k(t,e,n,r,o){t!==e&&Rg(e,function(i,s){if(o||(o=new so()),ve(i))Vk(t,e,s,n,$k,r,o);else{var a=r?r(Cd(t,s),i,s+"",t,e,o):void 0;a===void 0&&(a=i),Dd(t,s,a);}},io);}var Ng=$k;var zK=rg(function(t,e,n,r){Ng(t,e,n,r);}),j1e=zK;function WK(t,e,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1;}var Gk=WK;function qK(t){var e=t==null?0:t.length;return e?t[e-1]:void 0;}var zk=qK;function YK(t,e){return e.length<2?t:Ni(t,cg(e,0,-1));}var Wk=YK;var KK="[object RegExp]";function XK(t){return Qe(t)&&Yt(t)==KK;}var qk=XK;var Yk=$n&&$n.isRegExp,ZK=Yk?_i(Yk):qk,Kk=ZK;var QK=LL("toLowerCase"),JK=QK;function eX(t,e){var n={};return e=Qc(e,3),Hk(t,function(r,o,i){Ii(n,o,e(r,o,i));}),n;}var tX=eX;var nX=rg(function(t,e,n){Ng(t,e,n);}),uUe=nX;var rX=Object.prototype,oX=rX.hasOwnProperty;function iX(t,e){e=Gn(e,t);var n=-1,r=e.length;if(!r)return!0;for(;++n<r;){var o=In(e[n]);if(o==="__proto__"&&!oX.call(t,"__proto__")||(o==="constructor"||o==="prototype")&&n<r-1)return!1;}var i=Wk(t,e);return i==null||delete i[In(zk(e))];}var Xk=iX;function sX(t){return ag(t)?void 0:t;}var Zk=sX;var aX=1,cX=2,uX=4,lX=sg(function(t,e){var n={};if(t==null)return n;var r=!1;e=Nc(e,function(i){return i=Gn(i,t),r||(r=i.length>1),i;}),Vn(t,Yc(t),n),r&&(n=yk(n,aX|cX|uX,Zk));for(var o=e.length;o--;)Xk(n,e[o]);return n;}),dX=lX;function fX(t,e,n,r){if(!ve(t))return t;e=Gn(e,t);for(var o=-1,i=e.length,s=i-1,a=t;a!=null&&++o<i;){var c=In(e[o]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(o!=s){var l=a[c];u=r?r(l,c,a):void 0,u===void 0&&(u=ve(l)?l:Ci(e[o+1])?[]:{});}Pc(a,c,u),a=a[c];}return t;}var Qk=fX;function pX(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var s=e[r],a=Ni(t,s);n(a,s)&&Qk(i,Gn(s,t),a);}return i;}var Og=pX;function hX(t,e){if(t==null)return{};var n=Nc(Yc(t),function(r){return[r];});return e=Qc(e),Og(t,n,function(r,o){return e(r,o[0]);});}var mX=hX;var gX=xg("length"),Jk=gX;var tP="\\ud800-\\udfff",yX="\\u0300-\\u036f",vX="\\ufe20-\\ufe2f",EX="\\u20d0-\\u20ff",bX=yX+vX+EX,TX="\\ufe0e\\ufe0f",SX="["+tP+"]",pD="["+bX+"]",hD="\\ud83c[\\udffb-\\udfff]",DX="(?:"+pD+"|"+hD+")",nP="[^"+tP+"]",rP="(?:\\ud83c[\\udde6-\\uddff]){2}",oP="[\\ud800-\\udbff][\\udc00-\\udfff]",CX="\\u200d",iP=DX+"?",sP="["+TX+"]?",IX="(?:"+CX+"(?:"+[nP,rP,oP].join("|")+")"+sP+iP+")*",wX=sP+iP+IX,_X="(?:"+[nP+pD+"?",pD,rP,oP,SX].join("|")+")",eP=Reg
22Exp(hD+"(?="+hD+")|"+_X+wX,"g");function AX(t){for(var e=eP.lastIndex=0;eP.test(t);)++e;return e;}var aP=AX;function xX(t){return Oi(t)?aP(t):Jk(t);}var cP=xX;function RX(t,e){return Og(t,e,function(n,r){return Ag(t,r);});}var uP=RX;var MX=sg(function(t,e){return t==null?{}:uP(t,e);}),NX=MX;var OX=30,LX="...",kX=/\w*$/;function PX(t,e){var n=OX,r=LX;if(ve(e)){var o="separator"in e?e.separator:o;n="length"in e?bO(e.length):n,r="omission"in e?Ed(e.omission):r;}t=Uo(t);var i=t.length;if(Oi(t)){var s=lg(t);i=s.length;}if(n>=i)return t;var a=n-cP(r);if(a<1)return r;var c=s?ug(s,0,a).join(""):t.slice(0,a);if(o===void 0)return c+r;if(s&&(a+=c.length-a),Kk(o)){if(t.slice(a).search(o)){var u,l=c;for(o.global||(o=RegExp(o.source,Uo(kX.exec(o))+"g")),o.lastIndex=0;u=o.exec(l);)var d=u.index;c=c.slice(0,d===void 0?a:d);}}else if(t.indexOf(Ed(o),a)!=a){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f));}return c+r;}var FX=PX;var UX=1/0,HX=Li&&1/Zc(new Li([,-0]))[1]==UX?function(t){return new Li(t);}:AO,lP=HX;var BX=200;function jX(t,e,n){var r=-1,o=FO,i=t.length,s=!0,a=[],c=a;if(n)s=!1,o=Gk;else if(i>=BX){var u=e?null:lP(t);if(u)return Zc(u);s=!1,o=Sg,c=new Tg();}else c=e?[]:a;e:for(;++r<i;){var l=t[r],d=e?e(l):l;if(l=n||l!==0?l:0,s&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;e&&c.push(d),a.push(l);}else o(c,d,n)||(c!==a&&c.push(d),a.push(l));}return a;}var Lg=jX;function VX(t){return t&&t.length?Lg(t):[];}var mD=VX;function $X(t,e){return t&&t.length?Lg(t,Qc(e,2)):[];}var wHe=$X;var GX=0;function zX(t){var e=++GX;return Uo(t)+e;}var WX=zX;function VHe(t){let{notifierObservable:e,time:n,bulkGet:r}=t;return e.pipe(mf(),Cy(e.pipe(wa(n))),Te(o=>o.length!==0),F(o=>mD(o)),ke(o=>r(o).pipe(F(i=>({params:o,response:i})))),ho());}function WHe(t,e){return t.userInformationLoaded.pipe(Re(),F(()=>{let n=t.getUser(),r=n.isCollaboratingToChannels(),o=e.includeCollaborations?[...gD(n.videoChannels,{editor:!1,owner:!0,collaborate:r}),...gD(n.videoChannelCollaborations,{editor:!0,owner:!1,collaborate:r})]:gD(n.videoChannels,{editor:!1,owner:!1,collaborate:r});return Im(o,"updatedAt").reverse();}));}function gD(t,e){let{editor:n,collaborate:r,owner:o}=e;return t.map(i=>({id:i.id,name:i.name,label:i.displayName,support:i.support,editor:n,collaborate:r,owner:o,avatarFileUrl:qX(i),ownerAccountId:i.ownerAccountId,updatedAt:i.updatedAt}));}function qX(t){if(!(!t.avatars||t.avatars.length===0))return qM(t.avatars,"width")?.fileUrl||t.avatars[0].fileUrl;}var yD,vD;function dP(t,e,n="medium"){if(yD||(yD=new AT(t)),vD||(vD=new Intl.DateTimeFormat(t,{hour:"numeric",minute:"numeric",second:"numeric",year:"2-digit",month:"numeric",day:"numeric",fractionalSecondDigits:3})),n==="medium")return yD.transform(e,n);if(n==="precise")return vD.format(e);}function KHe(t){let e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=t%60,o=n>=10?"":"0",i=r>=10?"":"0";return((e>0?e.toString()+":":"")+o+n.toString()+":"+i+r.toString()).replace(/^0/,"");}function fP(t,e){return Object.assign({},t,e);}function ZHe(t,e){let n=t.indexOf(e);n!==-1&&t.splice(n,1);}function QHe(t){if(t)return Array.isArray(t)?t:typeof t=="string"?t.split(","):[t];}function JHe(t){if(t){if(typeof t=="boolean")return t;if(t==="true")return!0;if(t==="false")return!1;if(t==="1")return!0;if(t==="0")return!1;}}function nBe(t,e){return fP(t,{[e]:YX(t[e])});}function YX(t){return t&&t.replace(/\r?\n|\r/g,"<br />");}function oBe(){let t=new Map();return(e,n,r)=>{if(r.value!=null){r.value=KX(r.value,t);return;}throw new Error("Only put a Memoize() decorator on a method accessor.");};}function KX(t,e){return function(...n){if(n.length>1)throw new Error("Simple memoize only support 0 or 1 argument");let r;if(n.length>0){let o=n[0];e.has(o)?r=e.get(o):(r=t.apply(this,n),e.set(o,r));}else e.has(this)?r=e.get(this):(r=t.apply(this,n),e.set(this,r));return r;};}function sBe(t="auto"){window.scrollTo({left:0,top:0,behavior:t});}function aBe(t,e=document.documentElement){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o={top:0,left:0,bottom:0,right:0};return o.top=n.top-r.top,o.left=n.left-r.left,o.top>=0&&o.left>=0&&n.bottom<=r.bottom&&n.right<=r.right;}function cBe(t,e){let n=t.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;return!(Math.floor(100-(n.top>=0?0:n.top)/+-(n.height/1)*100)<e||Math.floor(100-(n.bottom-r)/n.height*100)<e);}function pBe(t){let{err:e,name:n,notifier:r,sticky:o=!1}=t,i="Upload failed",s=XX(n,e);return r&&r.error(s,i,null,o),s;}function hBe(){return{maxAttempts:30,maxDelay:12e4,shouldRetry:(t,e)=>t===xt.SERVICE_UNAVAILABLE_503||(t<400||t>500)&&e<6};}function mBe(t){let e=t.response;console.log(e);let n=e?.detail||"Unknown error";return{error:new Error(n),name:"HttpErrorResponse",message:n,ok:!1,headers:new zt(t.responseHeaders),status:+t.responseStatus,statusText:n,type:Ao.Response,url:t.url};}function XX(t,e){if(e instanceof ErrorEvent)return"The connection was interrupted";if(e.status===xt.UNSUPPORTED_MEDIA_TYPE_415)return"Your "+t+" file format is not supported by your platform.";if(e.status===xt.INTERNAL_SERVER_ERROR_500)return"The server encountered an error.";if(e.status===xt.REQUEST_TIMEOUT_408)return"Your "+t+" file couldn't be transferred before the server proxy timeout.";if(e.status===xt.PAYLOAD_TOO_LARGE_413){let n=e.headers?.get("X-File-Maximum-Size"),r="Your "+t+" file was too large.";return n&&(r+=" Max size is "+n+"."),r;}return e.message;}function pP(){return re.apiUrl||window.location.origin;}function ED(){return re.originServerUrl||window.location.origin;}function ZX(){return re.apiUrl||re.originServerUrl||window.location.origin;}function vBe(){return re.embedUrl||ED();}function bD(){return new URL(ZX()).host;}function QX(t,e,n){let r=e||new FormData(),o;for(let i of Object.keys(t))if(n?o=`${n}[${i}]`:o=i,t[i]!==void 0){if(Array.isArray(t[i])&&t[i].length===0){r.append(i,null);continue;}t[i]!==null&&typeof t[i]=="object"&&!(t[i]instanceof File)?QX(t[i],r,o):r.append(o,t[i]);}return r;}var Jc=class t{id;name;host;url;followingCount;followersCount;createdAt;avatars;isLocal;static CREATE_BY_STRING(e,n,r=!1){let o=bD();return n.trim()===o&&!r?e:e+"@"+n;}static IS_LOCAL(e){let n=bD();return e.trim()===n;}constructor(e){this.id=e.id,this.url=e.url??"",this.name=e.name??"",this.host=e.host??"",this.followingCount=e.followingCount,this.followersCount=e.followersCount,e.createdAt&&(this.createdAt=new Date(e.createdAt.toString())),this.avatars=e.avatars||[],this.isLocal=t.IS_LOCAL(this.host);}};var Id=class extends Jc{displayName;description;updatedAt;nameWithHost;nameWithHostForced;mutedByUser;mutedByInstance;mutedServerByUser;mutedServerByInstance;userId;static GET_DEFAULT_AVATAR_URL(e){return e&&e<=48?`${window.location.origin}/client/assets/images/default-avatar-account-48x48.png`:`${window.location.origin}/client/assets/images/default-avatar-account.png`;}constructor(e){super(e),this.displayName=e.displayName,this.description=e.description,this.userId=e.userId,this.nameWithHost=Jc.CREATE_BY_STRING(this.name,this.host),this.nameWithHostForced=Jc.CREATE_BY_STRING(this.name,this.host,!0),e.updatedAt&&(this.updatedAt=new Date(e.updatedAt.toString())),this.mutedByUser=!1,this.mutedByInstance=!1,this.mutedServerByUser=!1,this.mutedServerByInstance=!1;}updateAvatar(e){this.avatars=e;}resetAvatar(){this.avatars=[];}updateBlockStatus(e){this.mutedByInstance=e.accounts[this.nameWithHostForced].blockedByServer,this.mutedByUser=e.accounts[this.nameWithHostForced].blockedByUser,this.mutedServerByUser=e.hosts[this.host].blockedByUser,this.mutedServerByInstance=e.hosts[this.host].blockedByServer;}};var eu=class{id;username;email;pendingEmail;emailVerified;emailPublic;nsfwPolicy;nsfwFlagsDisplayed;nsfwFlagsHidden;nsfwFlagsWarned;nsfwFlagsBlurred;adminFlags;autoPlayVideo;autoPlayNextVideo;autoPlayNextVideoPlaylist;p2pEnabled;videosHistoryEnabled;videoLanguages;role;videoQuota;videoQuotaDaily;videoQuotaUsed;videoQuotaUsedDaily;videosCount;videoCommentsCount;abusesCount;abusesAcceptedCount;abusesCreatedCount;theme;account;notificationSettings;videoChannels;blocked;blockedReason;noInstanceConfigWarningModal;noWelcomeModal;noAccountSetupWarningModal;pluginAuth;lastLoginDate;twoFactorEnabled;language;newFeaturesInfoRead;createdAt;constructor(e){let o=e,{account:n}=o,r=Eu(o,["account"]);Object.assign(this,r),n!==void 0&&(this.account=new Id(n));}
22hasRight(e){return Rm(this.role.id,e);}patch(e){for(let n of wm(e))this[n]=e[n];e.account!==void 0&&(this.account=new Id(e.account));}updateAccountAvatar(e){e?this.account.updateAvatar(e):this.account.resetAvatar();}hasUploadDisabled(){return this.videoQuota===0||this.videoQuotaDaily===0;}isAutoBlocked(e){return e.autoBlacklist.videos.ofUsers.enabled!==!0?!1:this.role.id===Hn.USER&&this.adminFlags!==jM.BYPASS_VIDEO_AUTO_BLACKLIST;}};var wd=class extends eu{oauthTokens;specialPlaylists;videoChannelCollaborations;constructor(e,n){super(e),this.oauthTokens=new Xr(n),this.specialPlaylists=e.specialPlaylists,this.videoChannelCollaborations=e.videoChannelCollaborations;}getAccessToken(){return this.oauthTokens.accessToken;}getRefreshToken(){return this.oauthTokens.refreshToken;}getTokenType(){return this.oauthTokens.tokenType;}refreshTokens(e,n){this.oauthTokens.accessToken=e,this.oauthTokens.refreshToken=n;}hasRight(e){return Rm(this.role.id,e);}canManageUser(e){return this.role.id===Hn.ADMINISTRATOR?!0:e.role.id===Hn.USER;}isCollaboratingToChannels(){return this.videoChannelCollaborations.length!==0;}isEditorOfChannel(e){return e?this.videoChannelCollaborations.some(n=>n.id===e.id):!1;}isOwnerOfChannel(e){return e?this.videoChannels.some(n=>n.id===e.id):!0;}};function dje(t){return t.totalItems===0?!1:t.totalItems?t.totalItems/t.itemsPerPage>t.currentPage:!0;}function fje(t,e=1){t.totalItems-=e,t.itemsRemoved||(t.itemsRemoved=0),t.itemsRemoved+=e;}function pje(t){t.currentPage=1,t.itemsRemoved=0;}var $s=class $s{localeId=g(an);router=g(ht);applyToResultListData(e,n,r=[]){let o=e.data;return{total:e.total,data:o.map(i=>n.apply(this,[i,...r]))};}convertResultListDateToHuman(e,n=["createdAt"],r){return this.applyToResultListData(e,this.convertDateToHuman.bind(this),[n,r]);}convertDateToHuman(e,n,r){return n.forEach(o=>{e[o]&&(e[o]=dP(this.localeId,new Date(e[o]),r));}),e;}redirectTo404IfNotFound(e,n,r=[xt.NOT_FOUND_404]){return e?.status&&r.includes(e.status)&&this.router.navigate(["/404"],{state:{type:n,obj:e},skipLocationChange:!0}),_r(()=>e);}handleError(e){let n=this.buildErrorMessage(e),r={message:n,status:void 0,body:void 0,headers:e.headers};return e.status&&(r.status=e.status,r.body=e.error),_r(()=>e instanceof Zr?e:e.status?new wc(n,{status:e.status,body:r.body,headers:r.headers,url:e.url}):e);}buildErrorMessage(e){return e.status!==void 0?this.buildServerErrorMessage(e):e.error instanceof Error?e.error.detail||e.error.title:typeof e.error=="string"?e.error:typeof e=="string"?e:e.message||e.detail||"Unknown error";}buildServerErrorMessage(e){if(e.error?.errors){let n=e.error.errors;return Object.keys(n).map(r=>n[r].msg).join(". ");}if(e.status===xt.PAYLOAD_TOO_LARGE_413)return"Media is too large for the server. Please contact you administrator if you want to increase the limit size.";if(e.status===xt.TOO_MANY_REQUESTS_429){let n=e.headers.get("retry-after");if(n){let r=Math.floor(parseInt(n,10)/60);return"Too many attempts, please try again after "+r+" minutes.";}return"Too many attempts, please try again later.";}return e.status===xt.INTERNAL_SERVER_ERROR_500?"Server error. Please retry later.":e.status===xt.BAD_GATEWAY_502?"Server is unavailable. Please retry later.":e.error?.error||e.error?.detail||e.error?.title||"Unknown server error";}};p($s,"\u0275fac",function(n){return new(n||$s)();}),p($s,"\u0275prov",E({token:$s,factory:$s.ɵfac}));var zn=$s;var Gs=class Gs{addRestGetParams(e,n,r){let o=e;return n!==void 0&&(o=o.set("start",n.start.toString()).set("count",n.count.toString())),r!==void 0&&(o=o.set("sort",this.buildSortString(r))),o;}buildSortString(e){return typeof e=="string"?e:(e.order===1?"":"-")+e.field;}addArrayParams(e,n,r){for(let o of r)e=e.append(n,o);return e;}addObjectParams(e,n){for(let r of Object.keys(n)){let o=n[r];o!=null&&(Array.isArray(o)?e=this.addArrayParams(e,r,o):e=e.set(r,o));}return e;}componentToRestPagination(e){let{currentPage:n,itemsPerPage:r,itemsRemoved:o=0}=e;return{start:Math.max(0,(n-1)*r-o),count:r};}};p(Gs,"\u0275fac",function(n){return new(n||Gs)();}),p(Gs,"\u0275prov",E({token:Gs,factory:Gs.ɵfac}));var kg=Gs;var ao=class ao{authHttp=g(Fn);restExtractor=g(zn);getScopedTokens(){return this.authHttp.get(ao.BASE_SCOPED_TOKENS_URL).pipe(ae(e=>this.restExtractor.handleError(e)));}renewScopedTokens(){return this.authHttp.post(ao.BASE_SCOPED_TOKENS_URL,{}).pipe(ae(e=>this.restExtractor.handleError(e)));}}
22;p(ao,"BASE_SCOPED_TOKENS_URL",re.apiUrl+"/api/v1/users/scoped-tokens"),p(ao,"\u0275fac",function(n){return new(n||ao)();}),p(ao,"\u0275prov",E({token:ao,factory:ao.ɵfac}));var Pg=ao;var zs=class zs{showConfirm=new Z();confirmResponse=new Z();confirm(e,n="",r={}){return this.showConfirm.next({type:"confirm",title:n,message:e,confirmButtonText:r.confirmButtonText,moreInfo:r.moreInfo,cancelButtonText:r.cancelButtonText}),Jn(this.extractConfirmed(this.confirmResponse.asObservable()));}confirmWithPassword(e){let{message:n,title:r="",confirmButtonText:o,errorMessage:i}=e;this.showConfirm.next({type:"confirm-password",title:r,message:n,confirmButtonText:o,errorMessage:i});let s=this.confirmResponse.asObservable().pipe(F(({confirmed:a,value:c})=>({confirmed:a,password:c})));return Jn(s);}confirmWithExpectedInput(e,n,r,o="",i){return this.showConfirm.next({type:"confirm-expected-input",title:o,message:e,inputLabel:n,expectedInputValue:r,confirmButtonText:i}),Jn(this.extractConfirmed(this.confirmResponse.asObservable()));}extractConfirmed(e){return e.pipe(F(({confirmed:n})=>n));}};p(zs,"\u0275fac",function(n){return new(n||zs)();}),p(zs,"\u0275prov",E({token:zs,factory:zs.ɵfac}));var tu=zs;var Tr=class t{constructor(e,n,r){this.combo=e;this.callback=n;this.description=r;this.combo=Cm(e),this.description=r||"";}formattedHotkey;static symbolize(e){let n={command:"\u2318",shift:"\u21E7",left:"\u2190",right:"\u2192",up:"\u2191",down:"\u2193",return:"\u23CE",backspace:"\u232B"},r=e.split("+");for(let o=0;o<r.length;o++)r[o]==="mod"&&(window.navigator?.platform.includes("Mac")?r[o]="command":r[o]="ctrl"),r[o]=n[r[o]]||r[o];return r.join(" + ");}get formatted(){if(!this.formattedHotkey){let e=[...this.combo];for(let n=0;n<e.length;n++)e[n]=t.symbolize(e[n]);this.formattedHotkey=e;}return this.formattedHotkey;}};var yP=wr(No());var JX=["Shift","Meta","Alt","Control"],hP=typeof navigator=="object"?navigator.platform:"",mP=/Mac|iPod|iPhone|iPad/.test(hP),eZ=mP?"Meta":"Control",tZ=hP==="Win32"?["Control","Alt"]:mP?["Alt"]:[];function TD(t,e){return typeof t.getModifierState=="function"&&(t.getModifierState(e)||tZ.includes(e)&&t.getModifierState("AltGraph"));}function nZ(t){return t.trim().split(" ").map(function(e){var n=e.split(/\b\+/),r=n.pop(),o=r.match(/^\((.+)\)$/);return o&&(r=new RegExp("^"+o[1]+"$")),[n=n.map(function(i){return i==="$mod"?eZ:i;}),r];});}function rZ(t,e){var n=e[0],r=e[1];return!((r instanceof RegExp?!r.test(t.key)&&!r.test(t.code):r.toUpperCase()!==t.key.toUpperCase()&&r!==t.code)||n.find(function(o){return!TD(t,o);})||JX.find(function(o){return!n.includes(o)&&r!==o&&TD(t,o);}));}function oZ(t,e){var n;e===void 0&&(e={});var r=(n=e.timeout)!=null?n:1e3,o=Object.keys(t).map(function(a){return[nZ(a),t[a]];}),i=new Map(),s=null;return function(a){a instanceof KeyboardEvent&&(o.forEach(function(c){var u=c[0],l=c[1],d=i.get(u)||u;rZ(a,d[0])?d.length>1?i.set(u,d.slice(1)):(i.delete(u),l(a)):TD(a,a.key)||i.delete(u);}),s&&clearTimeout(s),s=setTimeout(i.clear.bind(i),r));};}function gP(t,e,n){var r=n===void 0?{}:n,o=r.event,i=o===void 0?"keydown":o,s=r.capture,a=oZ(e,{timeout:r.timeout});return t.addEventListener(i,a,s),function(){t.removeEventListener(i,a,s);};}var SD=(0,yP.default)("peertube:hotkeys"),Ws=class Ws{zone=g(ue);cheatSheetToggle=new Z();hotkeys=[];preventInNode=new Set(["INPUT","SELECT","TEXTAREA"]);preventInRole=new Set(["combobox"]);disabled=!1;removeTinyKeysStore=new Map();constructor(){this.initCheatSheet();}initCheatSheet(){SD("Init hotkeys"),this.add([new Tr(["?","Shift+?"],()=>this.cheatSheetToggle.next(void 0),"Show / hide this help menu"),new Tr("escape",()=>this.cheatSheetToggle.next(!1),"Hide this help menu")]);}add(e){if(Array.isArray(e))return e.map(n=>this.add(n));this.remove(e),this.hotkeys.push(e);for(let n of e.combo)SD("Adding hotkey "+e.formatted),this.zone.runOutsideAngular(()=>{let r=gP(window,{[n]:o=>{if(this.disabled)return;let i=o.target,s=i.nodeName.toUpperCase();i.isContentEditable||this.preventInNode.has(s)||this.preventInRole.has(i.getAttribute("role"))||this.zone.run(()=>{e.callback.apply(this,[o,n])===!1&&(o.preventDefault(),o.stopPropagation());});}});this.removeTinyKeysStore.has(e)||this.removeTinyKeysStore.set(e,[]),this.removeTinyKeysStore.get(e).push(r);});return e;}remove(e){if(Array.isArray(e)){for(let r of e)this.remove(r);return;}this.hotkeys=this.hotkeys.filter(r=>r!==e);let n=this.removeTinyKeysStore.get(e);if(n){SD("Removing hotkey "+e.formatted);for(let r of n)r();}this.removeTinyKeysStore.delete(e);}getHotkeys(){return this.hotkeys;}disableHotkeys(){this.disabled=!0;}enableHotkeys(){this.disabled=!1;}};p(Ws,"\u0275fac",function(n){return new(n||Ws)();}),p(Ws,"\u0275prov",E({token:Ws,factory:Ws.ɵfac}));var nu=Ws;var CP=wr(No());var vP=wr(No());var iZ=(0,vP.default)("peertube:routing:CanComponentDeactivate"),qs=class qs{confirmService=g(tu);canDeactivate(e){let n=e.canDeactivate();if(iZ("Checking if component can deactivate",n),n.canDeactivate)return!0;let r=n.text||"All unsaved data will be lost, are you sure you want to leave this page?";return this.confirmService.confirm(r,"Warning",{confirmButtonText:"Stay on page",cancelButtonText:"Leave page"}).then(o=>!o);}};p(qs,"\u0275fac",function(n){return new(n||qs)();}),p(qs,"\u0275prov",E({token:qs,factory:qs.ɵfac}));var Fg=qs;var bP=wr(No());var Ys=class Ys{isNavigatingBack=!1;};p(Ys,"\u0275fac",function(n){return new(n||Ys)();}),p(Ys,"\u0275prov",E({token:Ys,factory:Ys.ɵfac,providedIn:"root"}));var Ug=Ys;var Hg=(0,bP.default)("peertube:router:CustomReuseStrategy"),Ks=class Ks{routerStatus=g(Ug);storedRouteHandles=new Map();recentlyUsed;MAX_SIZE=2;shouldDetach(e){return this.isReuseEnabled(e);}store(e,n){if(!n)return;let r=this.generateKey(e);this.recentlyUsed=r,Hg(`Storing component ${r} to reuse later.`);let o=n.componentRef;o.instance.disableForReuse(),o.changeDetectorRef.detectChanges(),this.storedRouteHandles.set(r,n),this.gb();}shouldAttach(e){let n=this.generateKey(e),r=this.routerStatus.isNavigatingBack,o=!!n&&r===!0&&this.isReuseEnabled(e)&&this.storedRouteHandles.has(n);return n&&Hg(`Should attach ${n}? Answer: ${o}`,{isNavigatingBack:r}),o;}retrieve(e){if(!this.isReuseEnabled(e))return;let n=this.generateKey(e);this.recentlyUsed=n,Hg(`Reusing component ${n}.`);let r=this.storedRouteHandles.get(n);return r&&(r.componentRef.instance.enabledForReuse(),r);}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig&&e.routeConfig?.data?.reloadOnSameNavigation!==!0;}gb(){this.storedRouteHandles.size>
22=this.MAX_SIZE&&this.storedRouteHandles.forEach((e,n)=>{n!==this.recentlyUsed&&(Hg(`Removing stored component ${n}`),e.componentRef.destroy(),this.storedRouteHandles.delete(n));});}generateKey(e){let n=e.data.reuse;if(n)return n.key+JSON.stringify(e.queryParams);}isReuseEnabled(e){return e.data.reuse?.enabled;}};p(Ks,"\u0275fac",function(n){return new(n||Ks)();}),p(Ks,"\u0275prov",E({token:Ks,factory:Ks.ɵfac}));var EP=Ks;var TP=wr(No());var Je=class Je{http=g(Fn);localeId=g(an);configReloaded=new Z();localeObservable;videoLicensesObservable;videoCategoriesObservable;videoPrivaciesObservable;videoPlaylistPrivaciesObservable;videoLanguagesObservable;videoTextLanguagesObservable;configObservable;configLoaded=!1;config;htmlConfig;loadHTMLConfig(){try{this.loadHTMLConfigLocally();}catch(e){return re.production!==!1&&B.error("Cannot load config locally. Fallback to API."),this.getConfig();}}getServerVersionAndCommit(){let e=this.config.serverVersion,n=this.config.serverCommit||"",r=e;return n&&(r+="..."+n),r;}resetConfig(){return this.configLoaded=!1,this.configObservable=void 0,this.getConfig({isReset:!0});}getConfig(e={}){return this.configLoaded?N(this.config):(this.configObservable||(this.configObservable=this.http.get(Je.BASE_CONFIG_URL).pipe(vt(n=>{this.config=n,this.htmlConfig=n,this.configLoaded=!0;}),vt(n=>{e.isReset&&this.configReloaded.next(n);}),ho())),this.configObservable);}getHTMLConfig(){return this.htmlConfig;}isRemoteRunnersEnabled(){let e=this.getHTMLConfig();return e.transcoding.remoteRunners.enabled||e.live.transcoding.remoteRunners.enabled||e.videoStudio.remoteRunners.enabled||e.videoTranscription.remoteRunners.enabled||e.storyboards.remoteRunners.enabled;}getCommentPolicies(){return N([{id:Sm.DISABLED,label:"Comments are disabled"},{id:Sm.ENABLED,label:"Comments are enabled",description:"Comments may require approval depending on your auto tag policies"},{id:Sm.REQUIRES_APPROVAL,label:"Any new comment requires approval"}]);}getVideoCategories(){return this.videoCategoriesObservable||(this.videoCategoriesObservable=this.loadAttributeEnum({baseUrl:Je.BASE_VIDEO_URL,attributeName:"categories",sort:!0})),this.videoCategoriesObservable.pipe(Re());}getVideoLicences(){return this.videoLicensesObservable||(this.videoLicensesObservable=this.loadAttributeEnum({baseUrl:Je.BASE_VIDEO_URL,attributeName:"licences"})),this.videoLicensesObservable.pipe(Re());}getVideoLanguages(){return this.videoLanguagesObservable||(this.videoLanguagesObservable=this.loadAttributeEnum({baseUrl:Je.BASE_VIDEO_URL,attributeName:"languages",sort:!0})),this.videoLanguagesObservable.pipe(Re());}getVideoTextLanguages(){return this.videoTextLanguagesObservable||(this.videoTextLanguagesObservable=this.loadAttributeEnum({baseUrl:Je.BASE_VIDEO_URL,attributeName:"languages",query:{scope:"subtitle"},sort:!0})),this.videoTextLanguagesObservable.pipe(Re());}getVideoPrivacies(){return this.videoPrivaciesObservable||(this.videoPrivaciesObservable=this.loadAttributeEnum({baseUrl:Je.BASE_VIDEO_URL,attributeName:"privacies"})),this.videoPrivaciesObservable.pipe(Re());}getVideoPlaylistPrivacies(){return this.videoPlaylistPrivaciesObservable||(this.videoPlaylistPrivaciesObservable=this.loadAttributeEnum({baseUrl:Je.BASE_VIDEO_PLAYLIST_URL,attributeName:"privacies"})),this.videoPlaylistPrivaciesObservable.pipe(Re());}getServerLocale(){if(!this.localeObservable){let e=Km()?Xm():hi(this.localeId);_m(e)?this.localeObservable=N({}).pipe(An()):this.localeObservable=this.http.get(Je.BASE_LOCALE_URL+e+"/server.json").pipe(An());}return this.localeObservable.pipe(Re());}getServerStats(){return this.http.get(Je.BASE_STATS_URL);}loadAttributeEnum(e){let{baseUrl:n,attributeName:r,query:o,sort:i=!1}=e;return this.getServerLocale().pipe(ke(s=>this.http.get(n+r,{params:o}).pipe(F(a=>({data:a,translations:s})))),F(({data:s,translations:a})=>{let c=Object.keys(s).map(u=>{let l=s[u];return{id:r==="languages"?u:parseInt(u,10),label:Am(l,a)};});return i===!0&&c.sort((u,l)=>u.label.localeCompare(l.label)),c;}),An());}loadHTMLConfigLocally(){let e=window.PeerTubeServerConfig;if(!e)throw new Error("Could not find PeerTubeServerConfig in HTML");this.htmlConfig=JSON.parse(e);}};p(Je,"BASE_CONFIG_URL",re.apiUrl+"/api/v1/config/"),p(Je,"BASE_VIDEO_URL",re.apiUrl+"/api/v1/videos/"),p(Je,"BASE_VIDEO_PLAYLIST_URL",re.apiUrl+"/api/v1/video-playlists/"),p(Je,"BASE_LOCALE_URL",re.apiUrl+"/client/locales/"),p(Je,"BASE_STATS_URL",re.apiUrl+"/api/v1/server/stats"),p(Je,"\u0275fac",function(n){return new(n||Je)();}),p(Je,"\u0275prov",E({token:Je,factory:Je.ɵfac}));var Bt=Je;var ru=class ru{instance;watch(e){return ru.storageSub.asObservable().pipe(Te(n=>e?e.includes(n):!0));}getItem(e){return this.instance.getItem(e);}setItem(e,n,r=!0){this.instance.setItem(e,n),r&&ru.storageSub.next(e);}removeItem(e,n=!0){this.instance.removeItem(e),n&&ru.storageSub.next(e);}};p(ru,"storageSub",new Z());var Bg=ru,ki=class ki extends Bg{instance=Bn;};p(ki,"\u0275fac",(()=>{let e;return function(r){return(e||(e=ri(ki)))(r||ki);};})()),p(ki,"\u0275prov",E({token:ki,factory:ki.ɵfac}));var co=ki,Pi=class Pi extends Bg{instance=cd;};p(Pi,"\u0275fac",(()=>{let e;return function(r){return(e||(e=ri(Pi)))(r||Pi);};})()),p(Pi,"\u0275prov",E({token:Pi,factory:Pi.ɵfac}));var ou=Pi;var _d=(0,TP.default)("peertube:router:RedirectService"),Rt=class Rt{router=g(ht);serverService=g(Bt);storage=g(ou);previousUrl;currentUrl;latestSessionUrl;redirectingToHomepage=!1;defaultTrendingAlgorithm=Rt.INIT_DEFAULT_TRENDING_ALGORITHM;defaultRoute=Rt.INIT_DEFAULT_ROUTE;init(){let e=this.serverService.getHTMLConfig();e.instance.defaultClientRoute&&(this.defaultRoute=e.instance.defaultClientRoute),e.trending.videos.algorithms.default&&(this.defaultTrendingAlgorithm=e.trending.videos.algorithms.default),this.latestSessionUrl=this.storage.getItem(Rt.SESSION_STORAGE_LATEST_SESSION_URL_KEY),this.storage.removeItem(Rt.SESSION_STORAGE_LATEST_SESSION_URL_KEY),_d("Lo
22aded latest session URL %s",this.latestSessionUrl),this.currentUrl=this.router.url,this.router.events.subscribe(n=>{if(n instanceof At||n instanceof dn){if(["/401","/404"].includes(n.url))return;this.previousUrl=this.currentUrl,this.currentUrl=n.url,_d("Previous URL is %s, current URL is %s",this.previousUrl,this.currentUrl),_d("Setting %s as latest URL in session storage.",this.currentUrl),this.storage.setItem(Rt.SESSION_STORAGE_LATEST_SESSION_URL_KEY,this.currentUrl);}});}getDefaultRoute(){return this.defaultRoute.split("?")[0];}getDefaultRouteQuery(){return this.router.parseUrl(this.defaultRoute).queryParams;}getDefaultTrendingSort(){let e=this.defaultTrendingAlgorithm;switch(e){case"most-viewed":return"-trending";case"most-liked":return"-likes";case"best":return"-hot";default:return"-"+e;}}redirectToLatestSessionRoute(e={}){return this.doRedirect(this.latestSessionUrl,e);}redirectToPreviousRoute(e={}){return this.doRedirect(this.previousUrl,e);}getPreviousUrl(){return this.previousUrl;}redirectToHomepage(e={}){let{skipLocationChange:n=!1,reloadTab:r=!1}=e;if(!this.redirectingToHomepage){if(r){window.location.href=this.defaultRoute;return;}this.redirectingToHomepage=!0,B.info(`Redirecting to default route ${this.defaultRoute}...`,{skipLocationChange:n}),this.router.navigateByUrl(this.defaultRoute,{skipLocationChange:n,state:{trigger:this.router.currentNavigation()?.trigger}}).then(()=>this.redirectingToHomepage=!1).catch(o=>(this.redirectingToHomepage=!1,B.error(`Cannot navigate to ${this.defaultRoute}, resetting default route to ${Rt.INIT_DEFAULT_ROUTE}`,o),this.defaultRoute=Rt.INIT_DEFAULT_ROUTE,this.router.navigateByUrl(this.defaultRoute,{skipLocationChange:n})));}}redirectToLogin(){let e=Oo.getDefaultLoginHref(re.apiUrl,this.serverService.getHTMLConfig());e?window.location.href=e:this.router.navigate(["/login"]);}replaceBy401(e){this.router.navigate(["/401"],{state:{obj:e},skipLocationChange:!0});}doRedirect(e,n={}){let{reloadTab:r=!1}=n;if(_d("Redirecting on %s",e),this.isValidRedirection(e)){if(r){window.location.href=e;return;}return this.router.navigateByUrl(e);}return _d(`${e} is not a valid redirection, redirecting to homepage`),this.redirectToHomepage(n);}isValidRedirection(e){let n=["/verify-account","/reset-password","/login"];return!e||e==="/"?!1:n.every(r=>!e.startsWith(r));}};p(Rt,"SESSION_STORAGE_LATEST_SESSION_URL_KEY","redirect-latest-session-url"),p(Rt,"INIT_DEFAULT_ROUTE","/videos/browse"),p(Rt,"INIT_DEFAULT_TRENDING_ALGORITHM","most-viewed"),p(Rt,"\u0275fac",function(n){return new(n||Rt)();}),p(Rt,"\u0275prov",E({token:Rt,factory:Rt.ɵfac}));var uo=Rt;var Xs=class Xs{auth=g(ze);redirectService=g(uo);canActivate(e,n){if(this.auth.isLoggedIn()===!0)return!0;let r=new Error("");return r.status=401,this.redirectService.replaceBy401(r),!1;}canActivateChild(e,n){return this.canActivate(e,n);}};p(Xs,"\u0275fac",function(n){return new(n||Xs)();}),p(Xs,"\u0275prov",E({token:Xs,factory:Xs.ɵfac}));var jg=Xs;var Zs=class Zs{titleService=g(zh);meta=g(DR);server=g(Bt);config;constructor(){this.config=this.server.getHTMLConfig();}update(e){this.setTitle(e.title);}setTitle(e){let n="";e&&(n+=`${e} - `),n+=this.config.instance.name,this.titleService.setTitle(n);}setDescription(e){this.meta.updateTag({name:"description",content:e||this.config.instance.shortDescription});}revertMetaTags(){this.setTitle(),this.setDescription(),this.setRSSFeeds([Ic({url:ED(),title:`${this.config.instance.name} - Videos feed`})]);}setRSSFeeds(e){let n=document.getElementsByTagName("head")[0];n.querySelectorAll('link[rel="alternate"]').forEach(r=>n.removeChild(r));for(let r of e){let o=document.createElement("link");o.rel="alternate",o.type="application/rss+xml",o.title=r.title,o.href=r.url,n.appendChild(o);}}};p(Zs,"\u0275fac",function(n){return new(n||Zs)();}),p(Zs,"\u0275prov",E({token:Zs,factory:Zs.ɵfac}));var iu=Zs;var Qs=class Qs{meta=g(iu);canActivate(e){let n=e.data?.meta;return n&&this.meta.update(n),!0;}canActivateChild(e){return this.canActivate(e);}};p(Qs,"\u0275fac",function(n){return new(n||Qs)();}),p(Qs,"\u0275prov",E({token:Qs,factory:Qs.ɵfac}));var Vg=Qs;var Js=class Js{router=g(ht);getNavigationEndEvents(){return this.router.events.pipe(Te(e=>e instanceof At));}getScrollEvents(){return this.router.events.pipe(Te(e=>e instanceof di));}hasRouteSetting(e){return!!(this.getRouteSetting()&e);}silentNavigate(e,n,r){let o=this.getRouteSetting()??0;return o|=2,this.router.navigate(e,{queryParams:n,relativeTo:r,state:{routeSetting:o}});}getRouteSetting(){return this.router.currentNavigation()?.extras?.state?.routeSetting;}};p(Js,"\u0275fac",function(n){return new(n||Js)();}),p(Js,"\u0275prov",E({token:Js,factory:Js.ɵfac}));var Fi=Js;var ea=class ea{preload(e,n){return e.data?.preload?typeof e.data.preload=="number"?er(e.data.preload).pipe(ke(()=>(e.data.preloaded=!0,n()))):n():N(null);}};p(ea,"\u0275fac",function(n){return new(n||ea)();}),p(ea,"\u0275prov",E({token:ea,factory:ea.ɵfac}));var SP=ea;var DP=wr(No());var Ui=(0,DP.default)("peertube:main:ScrollService"),ta=class ta{viewportScroller=g(Fl);peertubeRouter=g(Fi);resetScroll=!0;enableScrollRestoration(){this.viewportScroller.setHistoryScrollRestoration("manual"),this.consumeScroll(),this.produceScroll();}produceScroll(){this.peertubeRouter.getNavigationEndEvents().pipe(yf()).subscribe(([e,n])=>{try{this.resetScroll=!1;let r=new URL(window.location.origin+e.urlAfterRedirects),o=new URL(window.location.origin+n.urlAfterRedirects);if(r.pathname!==o.pathname){Ui("Schedule reset scroll after pathname change",{previousUrl:r,nextUrl:o}),this.resetScroll=!0;return;}if(this.peertubeRouter.hasRouteSetting(2)){Ui("Do not reset scroll after because router state disabled scroll restore"),this.resetScroll=!1;return;}let i=o.searchParams,s=r.searchParams;i.sort(),s.sort(),i.toString()!==s.toString()&&(Ui("Schedule reset scroll after search params change",{previousUrl:r,nextUrl:o}),this.resetScroll=!0);}catch(r){B.error("Cannot parse URL to check next scroll.",r),this.resetScroll=!0;}});}consumeScroll(){let e;this.peertubeRouter.getScrollEvents().subscribe(n=>{if(e=void 0,n.anchor){Ui("Scroll to anchor.",{e:n,resetScroll:this.resetScroll}),setTimeout(()=>this.viewportScroller.scrollToAnchor(n.anchor));return;}if(n.position){Ui("Scroll to position.",{e:n,resetScroll:this.resetScroll}),this.viewportScroller.scrollToPosition(n.position),n.position[1]>
22document.documentElement.scrollHeight&&(Ui("Could not scroll to position, marking scroll event as unhandled"),e=n);return;}if(this.resetScroll&&!(n.routerEvent instanceof Un))return Ui("Reset scroll.",{e:n,resetScroll:this.resetScroll}),this.viewportScroller.scrollToPosition([0,0]);}),new ResizeObserver(()=>{e&&(e.position[1]>document.documentElement.scrollHeight||(Ui("Can now scroll to position, handling previous scroll event"),this.viewportScroller.scrollToPosition(e.position),e=void 0));}).observe(document.documentElement);}};p(ta,"\u0275fac",function(n){return new(n||ta)();}),p(ta,"\u0275prov",E({token:ta,factory:ta.ɵfac}));var $g=ta;var na=class na{server=g(Bt);resolve(){return this.server.getConfig();}};p(na,"\u0275fac",function(n){return new(n||na)();}),p(na,"\u0275prov",E({token:na,factory:na.ɵfac}));var Gg=na;var ra=class ra{auth=g(ze);redirectService=g(uo);canActivate(e,n){return this.auth.isLoggedIn()===!1?!0:(this.redirectService.redirectToHomepage(),!1);}canActivateChild(e,n){return this.canActivate(e,n);}};p(ra,"\u0275fac",function(n){return new(n||ra)();}),p(ra,"\u0275prov",E({token:ra,factory:ra.ɵfac}));var zg=ra;var oa=class oa{redirectService=g(uo);auth=g(ze);canActivate(e,n){let r=this.auth.getUser();if(r){let i=e.data.userRight;if(r.hasRight(i))return!0;}let o=new Error("");return o.status=403,this.redirectService.replaceBy401(o),!1;}canActivateChild(e,n){return this.canActivate(e,n);}};p(oa,"\u0275fac",function(n){return new(n||oa)();}),p(oa,"\u0275prov",E({token:oa,factory:oa.ɵfac}));var Wg=oa;var ia=class ia{isBroadcastMessageDisplayed=!1;windowInnerWidth;lastFunctionCallTime;cacheForMs=500;constructor(){this.refreshWindowInnerWidth();}isInSmallView(){return this.getWindowInnerWidth()<800;}isInMobileView(){return this.getWindowInnerWidth()<500;}isInMenuOverlayView(){return this.getWindowInnerWidth()<1200;}isInTouchScreen(){return!!("ontouchstart"in window||navigator.msMaxTouchPoints);}getWindowInnerWidth(){return this.cacheWindowInnerWidthExpired()&&this.refreshWindowInnerWidth(),this.windowInnerWidth;}refreshWindowInnerWidth(){this.lastFunctionCallTime=new Date().getTime(),this.windowInnerWidth=window.innerWidth;}cacheWindowInnerWidthExpired(){return this.lastFunctionCallTime?new Date().getTime()>this.lastFunctionCallTime+this.cacheForMs:!0;}};p(ia,"\u0275fac",function(n){return new(n||ia)();}),p(ia,"\u0275prov",E({token:ia,factory:ia.ɵfac}));var su=ia;var sZ=(0,CP.default)("peertube:menu"),lo=class lo{screenService=g(su);localStorageService=g(co);peertubeRouterService=g(Fi);menuCollapsed=!1;menuChangedByUser=!1;constructor(){this.screenService.isInMenuOverlayView()||this.hasMenuCollapsedByUrl(window.location.pathname)?this.setMenuCollapsed(!0):(this.setMenuCollapsed(this.localStorageService.getItem(lo.LS_MENU_COLLAPSED)==="true"),this.menuChangedByUser=this.menuCollapsed),this.handleWindowResize(),this.peertubeRouterService.getNavigationEndEvents().subscribe(e=>{if(this.hasMenuCollapsedByUrl(e.url)||this.hasMenuCollapsedByUrl(e.urlAfterRedirects)){this.collapseByUrl();return;}});}hasMenuCollapsedByUrl(e){let n=["/videos/publish","/videos/manage/","/admin/settings/config","/my-library/video-channels/manage","/my-library/video-channels/create"];for(let r of n)if(e.startsWith(r))return sZ("Menu should be collapsed by URL "+e),!0;return!1;}collapseByUrl(){this.menuCollapsed||this.setMenuCollapsed(!0);}toggleMenu(){this.setMenuCollapsed(!this.menuCollapsed),this.menuChangedByUser=!0,this.localStorageService.setItem(lo.LS_MENU_COLLAPSED,this.menuCollapsed+"");}isCollapsed(){return this.menuCollapsed;}setMenuCollapsed(e){this.menuCollapsed=e,this.menuCollapsed?document.body.classList.remove("menu-open"):document.body.classList.add("menu-open");}onResize(){this.screenService.isInSmallView()&&!this.menuChangedByUser&&this.setMenuCollapsed(!0);}handleWindowResize(){this.screenService.isInTouchScreen()||Du(window,"resize").pipe(wa(200)).subscribe(()=>this.onResize());}};p(lo,"LS_MENU_COLLAPSED","menu-collapsed"),p(lo,"\u0275fac",function(n){return new(n||lo)();}),p(lo,"\u0275prov",E({token:lo,factory:lo.ɵfac}));var qg=lo;var sa=class sa{auth=g(ze);io;
22notificationSubject=new Z();liveVideosSubject=new Z();notificationSocket;liveVideosSocket;getMyNotificationsSocket(){return P(this,null,function*(){return yield this.initNotificationSocket(),this.notificationSubject.asObservable();});}getLiveVideosObservable(){return this.liveVideosSubject.asObservable();}subscribeToLiveVideosSocket(e){return P(this,null,function*(){yield this.initLiveVideosSocket(),this.liveVideosSocket.emit("subscribe",{videoId:e});});}unsubscribeLiveVideos(e){this.liveVideosSocket&&this.liveVideosSocket.emit("unsubscribe",{videoId:e});}dispatchNotificationEvent(e,n){this.notificationSubject.next({type:e,notification:n});}initNotificationSocket(){return P(this,null,function*(){this.notificationSocket||(yield this.importIOIfNeeded(),this.notificationSocket=this.io(re.apiUrl+"/user-notifications",{query:{accessToken:this.auth.getAccessToken()}}),this.notificationSocket.on("new-notification",e=>{this.dispatchNotificationEvent("new",e);}));});}initLiveVideosSocket(){return P(this,null,function*(){if(this.liveVideosSocket)return;yield this.importIOIfNeeded(),this.liveVideosSocket=this.io(re.apiUrl+"/live-videos");let e=["views-change","state-change","force-end"];for(let n of e)this.liveVideosSocket.on(n,r=>{this.dispatchLiveVideoEvent(n,r);});});}importIOIfNeeded(){return P(this,null,function*(){this.io||(this.io=(yield import("./chunk-3XDXNGGN.js")).io);});}dispatchLiveVideoEvent(e,n){this.liveVideosSubject.next({type:e,payload:n});}};p(sa,"\u0275fac",function(n){return new(n||sa)();}),p(sa,"\u0275prov",E({token:sa,factory:sa.ɵfac}));var Yg=sa;var{entries:FP,setPrototypeOf:IP,isFrozen:aZ,getPrototypeOf:cZ,getOwnPropertyDescriptor:uZ}=Object,{freeze:Xt,seal:Wn,create:cu}=Object,{apply:AD,construct:xD}=typeof Reflect<"u"&&Reflect;Xt||(Xt=function(e){return e;});Wn||(Wn=function(e){return e;});AD||(AD=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return e.apply(n,o);});xD||(xD=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new e(...r);});var Ad=ct(Array.prototype.forEach),lZ=ct(Array.prototype.lastIndexOf),wP=ct(Array.prototype.pop),xd=ct(Array.prototype.push),dZ=ct(Array.prototype.splice),Kt=Array.isArray,Nd=ct(String.prototype.toLowerCase),DD=ct(String.prototype.toString),_P=ct(String.prototype.match),au=ct(String.prototype.replace),AP=ct(String.prototype.indexOf),fZ=ct(String.prototype.trim),pZ=ct(Number.prototype.toString),hZ=ct(Boolean.prototype.toString),xP=typeof BigInt>"u"?null:ct(BigInt.prototype.toString),RP=typeof Symbol>"u"?null:ct(Symbol.prototype.toString),We=ct(Object.prototype.hasOwnProperty),Rd=ct(Object.prototype.toString),Mt=ct(RegExp.prototype.test),Kg=mZ(TypeError);function ct(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return AD(t,e,r);};}function mZ(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xD(t,n);};}function te(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nd;if(IP&&IP(t,null),!Kt(e))return t;let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){let i=n(o);i!==o&&(aZ(e)||(e[r]=i),o=i);}t[o]=!0;}return t;}function gZ(t){for(let e=0;e<t.length;e++)We(t,e)||(t[e]=null);return t;}function hn(t){let e=cu(null);for(let[n,r]of FP(t))We(t,n)&&(Kt(r)?e[n]=gZ(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=hn(r):e[n]=r);return e;}function yZ(t){switch(typeof t){case"string":return t;case"number":return pZ(t);case"boolean":return hZ(t);case"bigint":return xP?xP(t):"0";case"symbol":return RP?RP(t):"Symbol()";case"undefined":return Rd(t);case"function":case"object":{if(t===null)return Rd(t);let e=t,n=uu(e,"toString");if(typeof n=="function"){let r=n(e);return typeof r=="string"?r:Rd(r);}return Rd(t);}default:return Rd(t);}}function uu(t,e){for(;t!==null;){let r=uZ(t,e);if(r){if(r.get)return ct(r.get);if(typeof r.value=="function")return ct(r.value);}t=cZ(t);}function n(){return null;}return n;}
22function vZ(t){try{return Mt(t,""),!0;}catch(e){return!1;}}var MP=Xt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),CD=Xt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ID=Xt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),EZ=Xt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wD=Xt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bZ=Xt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),NP=Xt(["#text"]),OP=Xt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),_D=Xt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),LP=Xt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
22subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xg=Xt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),TZ=Wn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SZ=Wn(/<%[\w\W]*|[\w\W]*%>/gm),DZ=Wn(/\$\{[\w\W]*/gm),CZ=Wn(/^data-[\-\w.\u00B7-\uFFFF]+$/),IZ=Wn(/^aria-[\-\w]+$/),UP=Wn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wZ=Wn(/^(?:\w+script|data):/i),_Z=Wn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),HP=Wn(/^html$/i),AZ=Wn(/^[a-z][.\w]*(-[.\w]+)+$/i),kP=Object.freeze({__proto__:null,ARIA_ATTR:IZ,ATTR_WHITESPACE:_Z,CUSTOM_ELEMENT:AZ,DATA_ATTR:CZ,DOCTYPE_NAME:HP,ERB_EXPR:SZ,IS_ALLOWED_URI:UP,IS_SCRIPT_OR_DATA:wZ,MUSTACHE_EXPR:TZ,TMPLIT_EXPR:DZ}),Md={element:1,text:3,progressingInstruction:7,comment:8,document:9},xZ=function(){return typeof window>"u"?null:window;},RZ=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s;},createScriptURL(s){return s;}});}catch(s){return console.warn("TrustedTypes policy "+i+" could not be created."),null;}},PP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};};function BP(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xZ(),e=U=>BP(U);if(e.version="3.4.2",e.removed=[],!t||!t.document||t.document.nodeType!==Md.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t,r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:u,NamedNodeMap:l=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:h}=t,m=c.prototype,v=uu(m,"cloneNode"),b=uu(m,"remove"),T=uu(m,"nextSibling"),C=uu(m,"childNodes"),k=uu(m,"parentNode");if(typeof s=="function"){let U=n.createElement("template");U.content&&U.content.ownerDocument&&(n=U.content.ownerDocument);}let j,W="",{implementation:z,createNodeIterator:pe,createDocumentFragment:tt,getElementsByTagName:Bi}=n,{importNode:VP}=r,jt=PP();e.isSupported=typeof FP=="function"&&typeof k=="function"&&z&&z.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ld,ERB_EXPR:kd,TMPLIT_EXPR:Pd,DATA_ATTR:$P,ARIA_ATTR:GP,IS_SCRIPT_OR_DATA:zP,ATTR_WHITESPACE:RD,CUSTOM_ELEMENT:WP}=kP,{IS_ALLOWED_URI:MD}=kP,gt=null,ND=te({},[...MP,...CD,...ID,...wD,...NP]),Dt=null,OD=te({},[...OP,..._D,...LP,...Xg]),qe=Object.seal(cu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),mu=null,Fd=null,Bo=Object.seal(cu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),LD=!0,ty=!0,kD=!1,PD=!0,ji=!1,gu=!0,Vi=!1,ny=!1,ry=!1,pa=!1,Ud=!1,Hd=!1,FD=!0,UD=!1,HD="user-content-",oy=!0,yu=!1,ha={},Dr=null,iy=te({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),BD=null,jD=te({},["audio","video","img","source","image","track"]),sy=null,VD=te({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bd="http://www.w3.org/1998/Math/MathML",jd="http://www.w3.org/2000/svg",Cr="http://www.w3.org/1999/xhtml",ma=Cr,ay=!1,cy=null,qP=te({},[Bd,jd,Cr],DD),uy=te({},["mi","mo","mn","ms","mtext"]),ly=te({},["annotation-xml"]),YP=te({},["title","style","font","a","script"]),vu=null,KP=["application/xhtml+xml","text/html"],XP="text/html",ut=null,ga=null,ZP=n.createElement("form"),$D=function(y){return y instanceof RegExp||y instanceof Function;},dy=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ga&&ga===y)return;(!y||typeof y!="object")&&(y={}
vendor: 9,542 bytes, line 22
22),y=hn(y),vu=KP.indexOf(y.PARSER_MEDIA_TYPE)===-1?XP:y.PARSER_MEDIA_TYPE,ut=vu==="application/xhtml+xml"?DD:Nd,gt=We(y,"ALLOWED_TAGS")&&Kt(y.ALLOWED_TAGS)?te({},y.ALLOWED_TAGS,ut):ND,Dt=We(y,"ALLOWED_ATTR")&&Kt(y.ALLOWED_ATTR)?te({},y.ALLOWED_ATTR,ut):OD,cy=We(y,"ALLOWED_NAMESPACES")&&Kt(y.ALLOWED_NAMESPACES)?te({},y.ALLOWED_NAMESPACES,DD):qP,sy=We(y,"ADD_URI_SAFE_ATTR")&&Kt(y.ADD_URI_SAFE_ATTR)?te(hn(VD),y.ADD_URI_SAFE_ATTR,ut):VD,BD=We(y,"ADD_DATA_URI_TAGS")&&Kt(y.ADD_DATA_URI_TAGS)?te(hn(jD),y.ADD_DATA_URI_TAGS,ut):jD,Dr=We(y,"FORBID_CONTENTS")&&Kt(y.FORBID_CONTENTS)?te({},y.FORBID_CONTENTS,ut):iy,mu=We(y,"FORBID_TAGS")&&Kt(y.FORBID_TAGS)?te({},y.FORBID_TAGS,ut):hn({}),Fd=We(y,"FORBID_ATTR")&&Kt(y.FORBID_ATTR)?te({},y.FORBID_ATTR,ut):hn({}),ha=We(y,"USE_PROFILES")?y.USE_PROFILES&&typeof y.USE_PROFILES=="object"?hn(y.USE_PROFILES):y.USE_PROFILES:!1,LD=y.ALLOW_ARIA_ATTR!==!1,ty=y.ALLOW_DATA_ATTR!==!1,kD=y.ALLOW_UNKNOWN_PROTOCOLS||!1,PD=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ji=y.SAFE_FOR_TEMPLATES||!1,gu=y.SAFE_FOR_XML!==!1,Vi=y.WHOLE_DOCUMENT||!1,pa=y.RETURN_DOM||!1,Ud=y.RETURN_DOM_FRAGMENT||!1,Hd=y.RETURN_TRUSTED_TYPE||!1,ry=y.FORCE_BODY||!1,FD=y.SANITIZE_DOM!==!1,UD=y.SANITIZE_NAMED_PROPS||!1,oy=y.KEEP_CONTENT!==!1,yu=y.IN_PLACE||!1,MD=vZ(y.ALLOWED_URI_REGEXP)?y.ALLOWED_URI_REGEXP:UP,ma=typeof y.NAMESPACE=="string"?y.NAMESPACE:Cr,uy=We(y,"MATHML_TEXT_INTEGRATION_POINTS")&&y.MATHML_TEXT_INTEGRATION_POINTS&&typeof y.MATHML_TEXT_INTEGRATION_POINTS=="object"?hn(y.MATHML_TEXT_INTEGRATION_POINTS):te({},["mi","mo","mn","ms","mtext"]),ly=We(y,"HTML_INTEGRATION_POINTS")&&y.HTML_INTEGRATION_POINTS&&typeof y.HTML_INTEGRATION_POINTS=="object"?hn(y.HTML_INTEGRATION_POINTS):te({},["annotation-xml"]);let D=We(y,"CUSTOM_ELEMENT_HANDLING")&&y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING=="object"?hn(y.CUSTOM_ELEMENT_HANDLING):cu(null);if(qe=cu(null),We(D,"tagNameCheck")&&$D(D.tagNameCheck)&&(qe.tagNameCheck=D.tagNameCheck),We(D,"attributeNameCheck")&&$D(D.attributeNameCheck)&&(qe.attributeNameCheck=D.attributeNameCheck),We(D,"allowCustomizedBuiltInElements")&&typeof D.allowCustomizedBuiltInElements=="boolean"&&(qe.allowCustomizedBuiltInElements=D.allowCustomizedBuiltInElements),ji&&(ty=!1),Ud&&(pa=!0),ha&&(gt=te({},NP),Dt=cu(null),ha.html===!0&&(te(gt,MP),te(Dt,OP)),ha.svg===!0&&(te(gt,CD),te(Dt,_D),te(Dt,Xg)),ha.svgFilters===!0&&(te(gt,ID),te(Dt,_D),te(Dt,Xg)),ha.mathMl===!0&&(te(gt,wD),te(Dt,LP),te(Dt,Xg))),Bo.tagCheck=null,Bo.attributeCheck=null,We(y,"ADD_TAGS")&&(typeof y.ADD_TAGS=="function"?Bo.tagCheck=y.ADD_TAGS:Kt(y.ADD_TAGS)&&(gt===ND&&(gt=hn(gt)),te(gt,y.ADD_TAGS,ut))),We(y,"ADD_ATTR")&&(typeof y.ADD_ATTR=="function"?Bo.attributeCheck=y.ADD_ATTR:Kt(y.ADD_ATTR)&&(Dt===OD&&(Dt=hn(Dt)),te(Dt,y.ADD_ATTR,ut))),We(y,"ADD_URI_SAFE_ATTR")&&Kt(y.ADD_URI_SAFE_ATTR)&&te(sy,y.ADD_URI_SAFE_ATTR,ut),We(y,"FORBID_CONTENTS")&&Kt(y.FORBID_CONTENTS)&&(Dr===iy&&(Dr=hn(Dr)),te(Dr,y.FORBID_CONTENTS,ut)),We(y,"ADD_FORBID_CONTENTS")&&Kt(y.ADD_FORBID_CONTENTS)&&(Dr===iy&&(Dr=hn(Dr)),te(Dr,y.ADD_FORBID_CONTENTS,ut)),oy&&(gt["#text"]=!0),Vi&&te(gt,["html","head","body"]),gt.table&&(te(gt,["tbody"]),delete mu.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');j=y.TRUSTED_TYPES_POLICY,W=j.createHTML("");}else j===void 0&&(j=RZ(h,o)),j!==null&&typeof W=="string"&&(W=j.createHTML(""));Xt&&Xt(y),ga=y;},GD=te({},[...CD,...ID,...EZ]),zD=te({},[...wD,...bZ]),QP=function(y){let D=k(y);(!D||!D.tagName)&&(D={namespaceURI:ma,tagName:"template"});let R=Nd(y.tagName),be=Nd(D.tagName);return cy[y.namespaceURI]?y.namespaceURI===jd?D.namespaceURI===Cr?R==="svg":D.namespaceURI===Bd?R==="svg"&&(be==="annotation-xml"||uy[be]):!!GD[R]:y.namespaceURI===Bd?D.namespaceURI===Cr?R==="math":D.namespaceURI===jd?R==="math"&&ly[be]:!!zD[R]:y.namespaceURI===Cr?D.namespaceURI===jd&&!ly[be]||D.namespaceURI===Bd&&!uy[be]?!1:!zD[R]&&(YP[R]||!GD[R]):!!(vu==="application/xhtml+xml"&&cy[y.namespaceURI]):!1;},qn=function(y){xd(e.removed,{element:y});try{k(y).removeChild(y);}catch(D){b(y);}},$i=function(y,D){try{xd(e.removed,{attribute:D.getAttributeNode(y),from:D});}catch(R){xd(e.removed,{attribute:null,from:D});}if(D.removeAttribute(y),y==="is")if(pa||Ud)try{qn(D);}catch(R){}else try{D.setAttribute(y,"");}catch(R){}},WD=function(y){let D=null,R=null;if(ry)y="<remove></remove>"+y;else{let nt=_P(y,/^[\r\n\t ]+/);R=nt&&nt[0];}vu==="application/xhtml+xml"&&ma===Cr&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");let be=j?j.createHTML(y):y;if(ma===Cr)try{D=new f().parseFromString(be,vu);}catch(nt){}if(!D||!D.documentElement){D=z.createDocument(ma,"template",null);try{D.documentElement.innerHTML=ay?W:be;}catch(nt){}}let Nt=D.body||D.documentElement;return y&&R&&Nt.insertBefore(n.createTextNode(R),Nt.childNodes[0]||null),ma===Cr?Bi.call(D,Vi?"html":"body")[0]:Vi?D.documentElement:Nt;},qD=function(y){return pe.call(y.ownerDocument||y,y,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null);},fy=function(y){return y instanceof d&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof l)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function");},py=function(y){return typeof a=="function"&&y instanceof a;};function po(U,y,D){Ad(U,R=>{R.call(e,y,D,ga);});}let YD=function(y){let D=null;if(po(jt.beforeSanitizeElements,y,null),fy(y))return qn(y),!0;let R=ut(y.nodeName);if(po(jt.uponSanitizeElement,y,{tagName:R,allowedTags:gt}),gu&&y.hasChildNodes()&&!py(y.firstElementChild)&&Mt(/<[/\w!]/g,y.innerHTML)&&Mt(/<[/\w!]/g,y.textContent)||gu&&y.namespaceURI===Cr&&R==="style"&&py(y.firstElementChild)||y.nodeType===Md.progressingInstruction||gu&&y.nodeType===Md.comment&&Mt(/<[/\w]/g,y.data))return qn(y),!0;if(mu[R]||!(Bo.tagCheck instanceof Function&&Bo.tagCheck(R))&&!gt[R]){if(!mu[R]&&XD(R)&&(qe.tagNameCheck instanceof RegExp&&Mt(qe.tagNameCheck,R)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(R)))return!1;if(oy&&!Dr[R]){let be=k(y)||y.parentNode,Nt=C(y)||y.childNodes;if(Nt&&be){let nt=Nt.length;for(let Zt=nt-1;Zt>=0;--Zt){let wn=v(Nt[Zt],!0);be.insertBefore(wn,T(y));}}}return qn(y),!0;}return y instanceof c&&!QP(y)||(R==="noscript"||R==="noembed"||R==="noframes")&&Mt(/<\/no(script|embed|frames)/i,y.innerHTML)?(qn(y),!0):(ji&&y.nodeType===Md.text&&(D=y.textContent,Ad([Ld,kd,Pd],be=>{D=au(D,be," ");}),y.textContent!==D&&(xd(e.removed,{element:y.cloneNode()}),y.textContent=D)),po(jt.afterSanitizeElements,y,null),!1);},KD=function(y,D,R){if(Fd[D]||FD&&(D==="id"||D==="name")&&(R in n||R in ZP))return!1;let be=Dt[D]||Bo.attributeCheck instanceof Function&&Bo.attributeCheck(D,y);if(!(ty&&!Fd[D]&&Mt($P,D))){if(!(LD&&Mt(GP,D))){if(!be||Fd[D]){if(!(XD(y)&&(qe.tagNameCheck instanceof RegExp&&Mt(qe.tagNameCheck,y)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(y))&&(qe.attributeNameCheck instanceof RegExp&&Mt(qe.attributeNameCheck,D)||qe.attributeNameCheck instanceof Function&&qe.attributeNameCheck(D,y))||D==="is"&&qe.allowCustomizedBuiltInElements&&(qe.tagNameCheck instanceof RegExp&&Mt(qe.tagNameCheck,R)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(R))))return!1;}else if(!sy[D]){if(!Mt(MD,au(R,RD,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&y!=="script"&&AP(R,"data:")===0&&BD[y])){if(!(kD&&!Mt(zP,au(R,RD,"")))){if(R)return!1;}}}}}}return!0;},JP=te({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),XD=function(y){return!JP[Nd(y)]&&Mt(WP,y);},ZD=function(y){po(jt.beforeSanitizeAttributes,y,null);let{attributes:D}=y;if(!D||fy(y))return;let R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Dt,forceKeepAttr:void 0},be=D.length;for(;be--;){let Nt=D[be],{name:nt,namespaceURI:Zt,value:wn}=Nt,Yn=ut(nt),hy=wn,yt=nt==="value"?hy:fZ(hy);if(R.attrName=Yn,R.attrValue=yt,R.keepAttr=!0,R.forceKeepAttr=void 0,po(jt.uponSanitizeAttribute,y,R),yt=R.attrValue,UD&&(Yn==="id"||Yn==="name")&&AP(yt,HD)!==0&&($i(nt,y),yt=HD+yt),gu&&Mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,yt)){$i(nt,y);continue;}if(Yn==="attributename"&&_P(yt,"href")){$i(nt,y);continue;}if(R.forceKeepAttr)continue;if(!R.keepAttr){$i(nt,y);continue;}if(!PD&&Mt(/\/>/i,yt)){$i(nt,y);continue;}ji&&Ad([Ld,kd,Pd],eC=>{yt=au(yt,eC," ");});let JD=ut(y.nodeName);if(!KD(JD,Yn,yt)){$i(nt,y);continue;}if(j&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Zt)switch(h.getAttributeType(JD,Yn)){case"TrustedHTML":{yt=j.createHTML(yt);break;}case"TrustedScriptURL":{yt=j.createScriptURL(yt);break;}}if(yt!==hy)try{Zt?y.setAttributeNS(Zt,nt,yt):y.setAttribute(nt,yt),fy(y)?qn(y):wP(e.removed);}catch(eC){$i(nt,y);}}po(jt.afterSanitizeAttributes,y,null);},QD=function(y){let D=null,R=qD(y);for(po(jt.beforeSanitizeShadowDOM,y,null);D=R.nextNode();)po(jt.uponSanitizeShadowNode,D,null),YD(D),ZD(D),D.content instanceof i&&QD(D.content);po(jt.afterSanitizeShadowDOM,y,null);};return e.sanitize=function(U){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,R=null,be=null,Nt=null;if(ay=!U,ay&&(U="<!-->
22"),typeof U!="string"&&!py(U)&&(U=yZ(U),typeof U!="string"))throw Kg("dirty is not a string, aborting");if(!e.isSupported)return U;if(ny||dy(y),e.removed=[],typeof U=="string"&&(yu=!1),yu){let wn=U.nodeName;if(typeof wn=="string"){let Yn=ut(wn);if(!gt[Yn]||mu[Yn])throw Kg("root node is forbidden and cannot be sanitized in-place");}}else if(U instanceof a)D=WD("<!---->"),R=D.ownerDocument.importNode(U,!0),R.nodeType===Md.element&&R.nodeName==="BODY"||R.nodeName==="HTML"?D=R:D.appendChild(R);else{if(!pa&&!ji&&!Vi&&U.indexOf("<")===-1)return j&&Hd?j.createHTML(U):U;if(D=WD(U),!D)return pa?null:Hd?W:"";}D&&ry&&qn(D.firstChild);let nt=qD(yu?U:D);for(;be=nt.nextNode();)YD(be),ZD(be),be.content instanceof i&&QD(be.content);if(yu)return U;if(pa){if(ji){D.normalize();let wn=D.innerHTML;Ad([Ld,kd,Pd],Yn=>{wn=au(wn,Yn," ");}),D.innerHTML=wn;}if(Ud)for(Nt=tt.call(D.ownerDocument);D.firstChild;)Nt.appendChild(D.firstChild);else Nt=D;return(Dt.shadowroot||Dt.shadowrootmode)&&(Nt=VP.call(r,Nt,!0)),Nt;}let Zt=Vi?D.outerHTML:D.innerHTML;return Vi&>["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&Mt(HP,D.ownerDocument.doctype.name)&&(Zt="<!DOCTYPE "+D.ownerDocument.doctype.name+`> 23`+Zt),ji&&Ad([Ld,kd,Pd],wn=>{Zt=au(Zt,wn," ");}),j&&Hd?j.createHTML(Zt):Zt;},e.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dy(U),ny=!0;},e.clearConfig=function(){ga=null,ny=!1;},e.isValidAttribute=function(U,y,D){ga||dy({});let R=ut(U),be=ut(y);return KD(R,be,D);},e.addHook=function(U,y){typeof y=="function"&&xd(jt[U],y);},e.removeHook=function(U,y){if(y!==void 0){let D=lZ(jt[U],y);return D===-1?void 0:dZ(jt[U],D,1)[0];}return wP(jt[U]);},e.removeHooks=function(U){jt[U]=[];},e.removeAllHooks=function(){jt=PP();},e;}var Od=BP();var fo=class fo{linkifyModule;linkifyHtmlModule;mentionPluginInitialized=!1;linkifyOptions={className:{mention:fo.CLASSNAME+"-mention",url:fo.CLASSNAME+"-url"},formatHref:{mention:e=>pP()+"/services/redirect/actors/"+e.substring(1)}};linkify(e){return P(this,null,function*(){if(!this.linkifyModule){let n=yield Promise.all([import("./chunk-4KR7D5JM.js"),import("./chunk-ULG34577.js").then(r=>r.default)]);this.linkifyModule=n[0],this.linkifyHtmlModule=n[1],this.buildMentionPlugin();}return this.linkifyHtmlModule(e,this.linkifyOptions);});}buildMentionPlugin(){if(this.mentionPluginInitialized)return;let e=this.linkifyModule.createTokenClass("mention",{isLink:!0,toHref(){return"/"+this.toString().slice(1);}});this.linkifyModule.registerPlugin("mention",({scanner:n,parser:r})=>{let{DOT:o,HYPHEN:i,UNDERSCORE:s,AT:a}=n.tokens,{domain:c}=n.tokens.groups,u=r.start.tt(a),l=u.tt(s,e);u.ta(c,l),u.tt(s,l),l.ta(c,l),l.tt(i,l),l.tt(s,l);let d=l.tt(o);d.ta(c,l),d.tt(i,l),d.tt(s,l);let f=l.tt(a);f.ta(c,l),f.tt(i,l),f.tt(s,l);}),this.mentionPluginInitialized=!0;}};p(fo,"CLASSNAME","linkified"),p(fo,"\u0275fac",function(n){return new(n||fo)();}),p(fo,"\u0275prov",E({token:fo,factory:fo.ɵfac}));var lu=fo;var aa=class aa{linkifier=g(lu);simpleDomPurify;enhancedDomPurify;constructor(){this.simpleDomPurify=Od(),this.enhancedDomPurify=Od(),this.addHrefHook(this.simpleDomPurify),this.addHrefHook(this.enhancedDomPurify),this.addCheckSchemesHook(this.simpleDomPurify,RS()),this.addCheckSchemesHook(this.enhancedDomPurify,[...RS(),"mailto"]);}addHrefHook(e){e.addHook("afterSanitizeAttributes",n=>{if("target"in n){n.setAttribute("target","_blank");let r=n.hasAttribute("rel")?n.getAttribute("rel"):"",o=new Set(r.split(" "));o.add("noopener"),o.add("noreferrer"),o.add("ugc"),n.setAttribute("rel",[...o].join(" "));}});}addCheckSchemesHook(e,n){let r=new RegExp(`^(${n.join("|")}):`,"im");e.addHook("afterSanitizeAttributes",o=>{let i=document.createElement("a");o.hasAttribute("href")&&(i.href=o.getAttribute("href"),i.protocol&&!i.protocol.match(r)&&o.removeAttribute("href"));});}convertToBr(e,n=!1){let r=e.replace(/\r?\n/g,"<br />"),o=n?["b","i","u","strong","em"]:[];return Od.sanitize(r,{ALLOWED_TAGS:[...o,"br"]});}removeClassAttributes(e,n={}){let{additionalTags:r=[],additionalAttributes:o=[]}=n;return Od().sanitize(e,{ALLOWED_TAGS:[...xS(),...r],ALLOWED_ATTR:[...MS(),...o].filter(i=>i!=="class"),ALLOW_DATA_ATTR:!0});}toSimpleSafeHtml(e){return this.sanitize(this.simpleDomPurify,this.removeClassAttributes(e));}toSimpleSafeHtmlWithLinks(r){return P(this,arguments,function*(e,n={}){let{allowImages:o=!1}=n,i=o?["img"]:[],s=o?["src","alt"]:[],a=this.removeClassAttributes(e,{additionalTags:i,additionalAttributes:s});return a=yield this.linkifier.linkify(a),this.sanitize(this.simpleDomPurify,a,{additionalTags:i,additionalAttributes:s});});}toCustomPageSafeHtml(r){return P(this,arguments,function*(e,n=[]){let o=yield this.linkifier.linkify(e),i=["div","h1","h2","h3","h4","h5","h6","img"];return this.sanitize(this.enhancedDomPurify,o,{additionalTags:[...i,...n],additionalAttributes:["src","alt","style"]});});}sanitize(e,n,r={}){let{additionalTags:o=[],additionalAttributes:i=[]}=r;return e.sanitize(n,{ALLOWED_TAGS:[...xS(),...o],ALLOWED_ATTR:[...MS(),...i],ALLOW_DATA_ATTR:!0});}};p(aa,"\u0275fac",function(n){return new(n||aa)();}),p(aa,"\u0275prov",E({token:aa,factory:aa.ɵfac}));var du=aa;var ca=class ca{htmlRenderer=g(du);markdownParsers={textMarkdownIt:null,textWithHTMLMarkdownIt:null,enhancedMarkdownIt:null,enhancedWithHTMLMarkdownIt:null,unsafeMarkdownIt:null,customPageMarkdownIt:null};parsersConfig={textMarkdownIt:{rules:xm,breaks:!0,html:!1},textWithHTMLMarkdownIt:{rules:NS,breaks:!0,html:!0,escape:!0},enhancedMarkdownIt:{rules:oN,breaks:!0,html:!1},enhancedWithHTMLMarkdownIt:{rules:OS,breaks:!0,html:!0,escape:!0},unsafeMarkdownIt:{rules:LS,breaks:!0,html:!0,escape:!1},customPageMarkdownIt:{rules:LS,breaks:!1,html:!0,escape:!0}};emojiModule;textMarkdownToHTML(e){let{markdown:n,withHtml:r=!1,withEmoji:o=!1,userGeneratedLinks:i=!0}=e;return r?this.render({name:"textWithHTMLMarkdownIt",markdown:n,withEmoji:o,userGeneratedLinks:i}):this.render({name:"textMarkdownIt",markdown:n,withEmoji:o,userGeneratedLinks:i});}enhancedMarkdownToHTML(e){let{markdown:n,withHtml:r=!1,withEmoji:o=!1,userGeneratedLinks:i=!0}=e;return r?this.render({name:"enhancedWithHTMLMarkdownIt",markdown:n,withEmoji:o,userGeneratedLinks:i}):this.render({name:"enhancedMarkdownIt",markdown:n,withEmoji:o,userGeneratedLinks:i});}markdownToUnsafeHTML(e){return this.render({name:"unsafeMarkdownIt",markdown:e.markdown,withEmoji:!0,userGeneratedLinks:!0});}customPageMarkdownToHTML(e){let{markdown:n,additionalAllowedTags:r}=e;return this.render({name:"customPageMarkdownIt",markdown:n,withEmoji:!0,additionalAllowedTags:r,userGeneratedLinks:!1});}processVideoTimestamps(e,n){return n.replace(/\b((\d{1,2}):)?(\d{1,2}):(\d{1,2})\b/g,function(r,o,i,s,a){let c=3600*+(i||0)+60*+(s||0)+ +(a||0);return`<a class="video-timestamp" href="${QM({url:ZM({shortUUID:e}),startTime:c})}">${r}</a>`;});}
23render(e){return P(this,null,function*(){let{name:n,markdown:r,withEmoji:o,additionalAllowedTags:i,userGeneratedLinks:s}=e;if(!r)return"";let a=this.parsersConfig[n];this.markdownParsers[n]||(this.markdownParsers[n]=yield this.createMarkdownIt(a,{userGeneratedLinks:s}),o&&(this.emojiModule||(this.emojiModule=(yield import("./chunk-4D2BA7ZD.js")).default),this.markdownParsers[n].use(this.emojiModule)));let c=this.markdownParsers[n].render(r);return a.escape?n==="customPageMarkdownIt"?this.htmlRenderer.toCustomPageSafeHtml(c,i):n==="enhancedMarkdownIt"||n==="enhancedWithHTMLMarkdownIt"?this.htmlRenderer.toSimpleSafeHtmlWithLinks(c,{allowImages:!0}):this.htmlRenderer.toSimpleSafeHtmlWithLinks(c):c;});}createMarkdownIt(e,n){return P(this,null,function*(){let r=(yield import("./chunk-QKGLJPM5.js")).default,o=new r("zero",{linkify:!0,breaks:e.breaks,html:e.html});for(let i of e.rules)o.enable(i);return this.setTargetToLinks(o,n),o;});}setTargetToLinks(e,{userGeneratedLinks:n}){let r=e.renderer.rules.link_open||function(o,i,s,a,c){return c.renderToken(o,i,s);};e.renderer.rules.link_open=function(o,i,s,a,c){let u=o[i],l=u.attrIndex("target");l<0?u.attrPush(["target","_blank"]):u.attrs[l][1]="_blank";let d="noopener noreferrer ".concat(n?"ugc":""),f=u.attrIndex("rel");return f<0?u.attrPush(["rel",d]):u.attrs[f][1]=d,r(o,i,s,a,c);};}};p(ca,"\u0275fac",function(n){return new(n||ca)();}),p(ca,"\u0275prov",E({token:ca,factory:ca.ɵfac}));var fu=ca;var Sr=class Sr{authService=g(ze);notifier=g(gi);markdownRenderer=g(fu);server=g(Bt);zone=g(ue);authHttp=g(Fn);restExtractor=g(zn);localeId=g(an);translationsObservable;customModal;formFields={video:[]};settingsScripts={};clientRoutes={};pluginsManager;actions=new Map();constructor(){this.loadTranslations(),this.pluginsManager=new Oo({doAction:this.doAction.bind(this),peertubeHelpersFactory:this.buildPeerTubeHelpers.bind(this),onFormFields:this.onFormFields.bind(this),onSettingsScripts:this.onSettingsScripts.bind(this),onClientRoute:this.onClientRoute.bind(this)});}addAction(e,n){this.actions.set(e,n);}removeAction(e){this.actions.delete(e);}initializePlugins(){return this.pluginsManager.loadPluginsList(this.server.getHTMLConfig()),this.pluginsManager.ensurePluginsAreLoaded("common");}initializeCustomModal(e){this.customModal=e;}runHook(e,n,r){return this.zone.runOutsideAngular(()=>this.pluginsManager.runHook(e,n,r));}ensurePluginsAreLoaded(e){return this.pluginsManager.ensurePluginsAreLoaded(e);}reloadLoadedScopes(){return this.pluginsManager.reloadLoadedScopes();}getPluginsManager(){return this.pluginsManager;}addPlugin(e,n=!1){return this.pluginsManager.addPlugin(e,n);}removePlugin(e){return this.pluginsManager.removePlugin(e);}nameToNpmName(e,n){return(n===id.PLUGIN?"peertube-plugin-":"peertube-theme-")+e;}getRegisteredVideoFormFields(e){return this.formFields.video.filter(n=>n.videoFormOptions.type===e);}getRegisteredSettingsScript(e){return this.settingsScripts[e];}getRegisteredClientRoute(e,n){if(this.clientRoutes[n])return this.clientRoutes[n][e];}getAllRegisteredClientRoutesForParent(e){return this.clientRoutes[e];}getAllRegisteredClientRoutes(){return Object.keys(this.clientRoutes).map(e=>Object.keys(this.clientRoutes[e]).map(n=>e==="/"?n:e+n)).flat();}translateSetting(e,n){return P(this,null,function*(){for(let r of KM(n,["label","html","descriptionHTML"]))n[r]&&(n[r]=yield this.translateBy(e,n[r]));if(Array.isArray(n.options)){let r=[];for(let o of n.options)r.push({value:o.value,label:yield this.translateBy(e,o.label)});n.options=r;}});}translateBy(e,n){let r=this.translationsObservable.pipe(F(o=>o[e]),F(o=>Am(n,o)));return Jn(r);}doAction(e){this.actions.has(e)||B.warn(`Plugin tried to do unknown action: ${e}`);try{return this.actions.get(e)();}catch(n){B.warn(`Cannot run action ${e}`,n);}}onFormFields(e,n,r){this.formFields.video.push({pluginInfo:e,commonOptions:n,videoFormOptions:r});}onSettingsScripts(e,n){this.settingsScripts[e.plugin.npmName]=n;}onClientRoute(e){let n=e.parentRoute||"/",r=e.route.startsWith("/")?e.route:`/${e.route}`;this.clientRoutes[n]||(this.clientRoutes[n]={}),this.clientRoutes[n][r]=e;}buildPeerTubeHelpers(e){let{plugin:n}=e,r=e.plugin.npmName;return{getBaseStaticRoute:()=>{let o=Oo.getPluginPathPrefix(e.isTheme);return re.apiUrl+`${o}/${n.name}/${n.version}/static`;},getBaseRouterRoute:()=>{let o=Oo.getPluginPathPrefix(e.isTheme);return re.apiUrl+`${o}/${n.name}/${n.version}/router`;},getBaseWebSocketRoute:()=>{let o=Oo.getPluginPathPrefix(e.isTheme);return re.apiUrl+`${o}/${n.name}/${n.version}/ws`;},getBasePluginClientPath:()=>"/p",getSettings:()=>{let o=Sr.BASE_PLUGIN_API_URL+"/"+r+"/public-settings",i=this.authHttp.get(o).pipe(F(s=>s.publicSettings),ae(s=>this.restExtractor.handleError(s)));return Jn(i);},getUser:()=>this.authService.getUser(),getServerConfig:()=>{let o=this.server.getConfig().pipe(ae(i=>this.restExtractor.handleError(i)));return Jn(o);},isLoggedIn:()=>this.authService.isLoggedIn(),getAuthHeader:()=>this.authService.isLoggedIn()?{Authorization:this.authService.getRequestHeaderValue()}:void 0,notifier:{info:(o,i,s)=>this.zone.run(()=>this.notifier.info(o,i,s)),error:(o,i,s)=>this.zone.run(()=>
23this.notifier.error(o,i,s)),success:(o,i,s)=>this.zone.run(()=>this.notifier.success(o,i,s))},showModal:o=>{this.zone.run(()=>this.customModal.show(o));},markdownRenderer:{textMarkdownToHTML:o=>this.markdownRenderer.textMarkdownToHTML({markdown:o,userGeneratedLinks:!1}),enhancedMarkdownToHTML:o=>this.markdownRenderer.enhancedMarkdownToHTML({markdown:o,userGeneratedLinks:!1})},translate:o=>this.translateBy(r,o)};}loadTranslations(){let e=Km()?Xm():hi(this.localeId);_m(e)&&(this.translationsObservable=N({}).pipe(An())),this.translationsObservable=this.authHttp.get(Sr.BASE_PLUGIN_URL+"/translations/"+e+".json").pipe(An());}};p(Sr,"BASE_PLUGIN_API_URL",re.apiUrl+"/api/v1/plugins"),p(Sr,"BASE_PLUGIN_URL",re.apiUrl+"/plugins"),p(Sr,"\u0275fac",function(n){return new(n||Sr)();}),p(Sr,"\u0275prov",E({token:Sr,factory:Sr.ɵfac}));var Hi=Sr;var ua=class ua{authService=g(ze);pluginService=g(Hi);constructor(){this.authService.userInformationLoaded.subscribe(()=>this.runAction("action:auth-user.information-loaded","common",{user:this.authService.getUser()})),this.authService.loginChangedSource.subscribe(e=>{e===0?this.runAction("action:auth-user.logged-in","common"):e===1&&this.runAction("action:auth-user.logged-out","common");});}wrapObsFun(e,n,r,o,i){return me(this.pluginService.ensurePluginsAreLoaded(r)).pipe(Ee(()=>this.wrapObjectWithoutScopeLoad(n,o)),ke(s=>e(s)),Ee(s=>this.pluginService.runHook(i,s,n)));}wrapFun(e,n,r,o,i){return P(this,null,function*(){yield this.pluginService.ensurePluginsAreLoaded(r);let s=yield this.wrapObjectWithoutScopeLoad(n,o),a=e(s);return this.pluginService.runHook(i,a,n);});}runAction(e,n,r){setTimeout(()=>{this.pluginService.ensurePluginsAreLoaded(n).then(()=>this.pluginService.runHook(e,void 0,r)).catch(o=>B.error("Fatal hook error.",o));});}wrapObject(e,n,r,o){return P(this,null,function*(){return yield this.pluginService.ensurePluginsAreLoaded(n),this.wrapObjectWithoutScopeLoad(e,r,o);});}wrapObjectWithoutScopeLoad(e,n,r){return this.pluginService.runHook(n,e,r);}};p(ua,"\u0275fac",function(n){return new(n||ua)();}),p(ua,"\u0275prov",E({token:ua,factory:ua.ɵfac}));var Zg=ua;var la=class la{authService=g(ze);server=g(Bt);localStorageService=g(co);constructor(){this.authService.userInformationLoaded.subscribe({next:()=>{let e=this.authService.getUser();this.setLoggedInUser(e),this.setUserInfo(e),this.setTokens(e.oauthTokens);}}),this.authService.loginChangedSource.pipe(Te(e=>e===1)).subscribe({next:()=>{this.flushLoggedInUser(),this.flushUserInfo(),this.flushTokens();}}),this.authService.tokensRefreshed.subscribe({next:()=>{let e=this.authService.getUser();this.setTokens(e.oauthTokens);}});}getLoggedInUser(){if(this.localStorageService.getItem(x.USERNAME))return S({id:parseInt(this.localStorageService.getItem(x.ID),10),username:this.localStorageService.getItem(x.USERNAME),email:this.localStorageService.getItem(x.EMAIL),role:{id:parseInt(this.localStorageService.getItem(x.ROLE),10),label:""}},this.getUserInfo());}setLoggedInUser(e){this.localStorageService.setItem(x.ID,e.id.toString()),this.localStorageService.setItem(x.USERNAME,e.username),this.localStorageService.setItem(x.EMAIL,e.email),this.localStorageService.setItem(x.ROLE,e.role.id.toString());}flushLoggedInUser(){this.localStorageService.removeItem(x.ID),this.localStorageService.removeItem(x.USERNAME),this.localStorageService.removeItem(x.EMAIL),this.localStorageService.removeItem(x.ROLE);}getUserInfo(){let e;try{let s=this.localStorageService.getItem(x.VIDEO_LANGUAGES);e=s&&s!=="undefined"?JSON.parse(s):null;}catch(s){e=null,B.error("Cannot parse desired video languages from localStorage.",s);}let n=this.server.getHTMLConfig(),r=n.instance.defaultNSFWPolicy,o=n.defaults.p2p.webapp.enabled,i=n.defaults.player.autoPlay;return{nsfwPolicy:this.localStorageService.getItem(x.NSFW_POLICY)||r,nsfwFlagsDisplayed:ld(this.localStorageService.getItem(x.NSFW_FLAGS_DISPLAYED),void 0),nsfwFlagsWarned:ld(this.localStorageService.getItem(x.NSFW_FLAGS_WARNED),void 0),nsfwFlagsBlurred:ld(this.localStorageService.getItem(x.NSFW_FLAGS_BLURRED),void 0),nsfwFlagsHidden:ld(this.localStorageService.getItem(x.NSFW_FLAGS_HIDDEN),void 0),p2pEnabled:ud(this.localStorageService.getItem(x.P2P_ENABLED),o),theme:this.localStorageService.getItem(x.THEME)||"instance-default",videoLanguages:e,autoPlayVideo:ud(this.localStorageService.getItem(x.AUTO_PLAY_VIDEO),i),autoPlayNextVideo:ud(this.localStorageService.getItem(x.AUTO_PLAY_NEXT_VIDEO),!1),autoPlayNextVideoPlaylist:ud(this.localStorageService.getItem(x.AUTO_PLAY_VIDEO_PLAYLIST),!0)};}setUserInfo(e){let n={nsfwPolicy:x.NSFW_POLICY,nsfwFlagsDisplayed:x.NSFW_FLAGS_DISPLAYED,nsfwFlagsHidden:x.NSFW_FLAGS_HIDDEN,nsfwFlagsWarned:x.NSFW_FLAGS_WARNED,nsfwFlagsBlurred:x.NSFW_FLAGS_BLURRED,p2pEnabled:x.P2P_ENABLED,autoPlayVideo:x.AUTO_PLAY_VIDEO,autoPlayNextVideo:x.AUTO_PLAY_NEXT_VIDEO,autoPlayNextVideoPlaylist:x.AUTO_PLAY_VIDEO_PLAYLIST,theme:x.THEME,videoLanguages:x.VIDEO_LANGUAGES},r=wm(n).filter(o=>o in e).map(o=>[n[o],e[o]]);for(let[o,i]of r)try{if(i===void 0){this.localStorageService.removeItem(o);continue;}let s=typeof i=="string"?i:JSON.stringify(i);this.localStorageService.setItem(o,s);}catch(s){B.error(`Cannot set ${o}->${i} in localStorage. Likely due to a value impossible to stringify.`,s);}}flushUserInfo(){this.localStorageService.removeItem(x.NSFW_POLICY),this.localStorageService.removeItem(x.NSFW_FLAGS_DISPLAYED),this.localStorageService.removeItem(x.NSFW_FLAGS_WARNED),this.localStorageService.removeItem(x.NSFW_FLAGS_BLURRED),this.localStorageService.removeItem(x.NSFW_FLAGS_HIDDEN),this.localStorageService.removeItem(x.P2P_ENABLED),this.localStorageService.removeItem(x.AUTO_PLAY_VIDEO),this.localStorageService.removeItem(x.AUTO_PLAY_VIDEO_PLAYLIST),this.localStorageService.removeItem(x.THEME),this.localStorageService.removeItem(x.VIDEO_LANGUAGES);}listenUserInfoChange(){return this.localStorageService.watch([x.NSFW_POLICY,x.NSFW_FLAGS_DISPLAYED,x.NSFW_FLAGS_WARNED,x.NSFW_FLAGS_BLURRED,x.NSFW_FLAGS_HIDDEN,x.P2P_ENABLED,x.AUTO_PLAY_VIDEO,x.AUTO_PLAY_NEXT_VIDEO,x.AUTO_PLAY_VIDEO_PLAYLIST,x.THEME,x.VIDEO_LANGUAGES]).pipe(Ef(200),Te(()=>this.authService.isLoggedIn()!==!0));}getTokens(){return Xr.getUserTokens(this.localStorageService);}setTokens(e){Xr.saveToLocalStorage(this.localStorageService,e);}flushTokens(){Xr.flushLocalStorage(this.localStorageService);}};p(la,"\u0275fac",function(n){return new(n||la)();}),p(la,"\u0275prov",E({token:la,factory:la.ɵfac}));var pu=la;var Oe=class Oe{authHttp=g(Fn);authService=g(ze);restExtractor=g(zn);localeId=g(an);userLocalStorageService=g(pu);userCache={};signupInThisSession=!1;getUserWithCache(e){return this.userCache[e]||(this.userCache[e]=this.getUser(e).pipe(An(),ae(n=>(delete this.userCache[e],_r(()=>n))))),this.userCache[e];}getUser(e,n=!1){let r=new ln().append("withStats",n+"");return this.authHttp.get(Oe.BASE_USERS_URL+e,{params:r}).pipe(ae(o=>this.restExtractor.handleError(o)));}setSignupInThisSession(e){this.signupInThisSession=e;}hasSignupInThisSession(){return this.signupInThisSession;}updateMyAnonymousProfile(e){this.userLocalStorageService.setUserInfo(e);}listenAnonymousUpdate(){return this.userLocalStorageService.listenUserInfoChange().pipe(F(()=>this.getAnonymousUser()));}getAnonymousUser(){return new eu($(S({},this.userLocalStorageService.getUserInfo()),{language:hi(this.localeId)}));}getAnonymousOrLoggedUser(){return this.authService.isLoggedIn()?this.authService.userInformationLoaded.pipe(Re(),F(()=>this.authService.getUser())):N(this.getAnonymousUser());}changePassword(e,n){let r=Oe.BASE_USERS_URL+"me",o={currentPassword:e,password:n};return this.authHttp.put(r,o).pipe(ae(i=>this.restExtractor.handleError(i)));}changeEmail(e,n){let r=Oe.BASE_USERS_URL+"me",o={currentPassword:e,email:n};return this.authHttp.put(r,o).pipe(ae(i=>this.restExtractor.handleError(i)));}askSendVerifyEmail(e){let n=Cm(e),r=Oe.BASE_USERS_URL+"ask-send-verify-email";return me(n).pipe(tr(o=>this.authHttp.post(r,{email:o})),hf(),ae(o=>this.restExtractor.handleError(o)));}verifyUserEmail(e){let{userId:n,verificationString:r,isPendingEmail:o}=e,i=`${Oe.BASE_USERS_URL}${n}/verify-email`,s={verificationString:r,isPendingEmail:o};return this.authHttp.post(i,s).pipe(ae(a=>this.restExtractor.handleError(a)));}updateMyProfile(e){let n=Oe.BASE_USERS_URL+"me";return this.authHttp.put(n,e).pipe(ae(r=>this.restExtractor.handleError(r)));}deleteMe(){let e=Oe.BASE_USERS_URL+"me";return this.authHttp.delete(e).pipe(ae(n=>this.restExtractor.handleError(n)));}changeAvatar(e){let n=Oe.BASE_USERS_URL+"me/avatar/pick";return this.authHttp.post(n,e).pipe(ae(r=>this.restExtractor.handleError(r)));}deleteAvatar(){let e=Oe.BASE_USERS_URL+"me/avatar";return this.authHttp.delete(e).pipe(ae(n=>this.restExtractor.handleError(n)));}getMyVideoQuotaUsed(){let e=Oe.BASE_USERS_URL+"me/video-quota-used";return this.authHttp.get(e).pipe(ae(n=>this.restExtractor.handleError(n)));}askResetPassword(e){let n=Oe.BASE_USERS_URL+"/ask-reset-password";return this.authHttp.post(n,{email:e}).pipe(ae(r=>this.restExtractor.handleError(r)));}resetPassword(e,n,r){let o=`${Oe.BASE_USERS_URL}/${e}/reset-password`,i={verificationString:n,password:r};return this.authHttp.post(o,i).pipe(ae(s=>this.restExtractor.handleError(s)));}autocomplete(e){let n=Oe.BASE_USERS_URL+"autocomplete",r=new ln().append("search",e);return this.authHttp.get(n,{params:r}).pipe(ae(o=>this.restExtractor.handleError(o)));}updateInterfaceLanguage(e){let n=Oe.BASE_CLIENT_CONFIG_URL+"update-interface-language",r={language:e};return this.authHttp.post(n,r).pipe(ae(o=>this.restExtractor.handleError(o)));}
23markNewFeatureInfoAsRead(e){let n=Oe.BASE_USERS_URL+"me/new-feature-info/read",r={feature:e};return this.authHttp.post(n,r).pipe(ae(o=>this.restExtractor.handleError(o)));}};p(Oe,"BASE_USERS_URL",re.apiUrl+"/api/v1/users/"),p(Oe,"BASE_CLIENT_CONFIG_URL",re.apiUrl+"/api/v1/client-config/"),p(Oe,"\u0275fac",function(n){return new(n||Oe)();}),p(Oe,"\u0275prov",E({token:Oe,factory:Oe.ɵfac}));var hu=Oe;var Jg=wr(GS());var da=class da{auth=g(ze);userService=g(hu);pluginService=g(Hi);server=g(Bt);localStorageService=g(co);oldThemeName;internalThemes=[];themes=[];themeFromLocalStorage;themeDOMLinksFromLocalStorage=[];serverConfig;themeManager=new Bm();initialize(){this.serverConfig=this.server.getHTMLConfig(),this.internalThemes=this.serverConfig.theme.builtIn.map(n=>n.name),this.loadAndSetFromLocalStorage();let e=this.serverConfig.theme.registered;this.removeThemeFromLocalStorageIfNeeded(e),this.injectThemes(e),this.listenUserTheme();}getDefaultThemeItem(){return{label:"Light (Beige) or Dark (Brown)",id:"default",description:"PeerTube selects the appropriate theme depending on web browser preferences"};}buildAvailableThemes(){return[...this.serverConfig.theme.builtIn.map(e=>e.name==="peertube-core-dark-brown"?{id:e.name,label:"Dark (Brown)"}:e.name==="peertube-core-light-beige"?{id:e.name,label:"Light (Beige)"}:{id:e.name,label:qS(e.name)}),...this.serverConfig.theme.registered.map(e=>({id:e.name,label:qS(e.name)}))];}updateColorPalette(e=this.serverConfig.theme){this.themeManager.injectColorPalette({currentTheme:this.getCurrentThemeName(),config:e});}getCSSConfigValue(e){return this.themeManager.getCSSConfigValue(e);}injectThemes(e,n=!1){this.themes=e,B.info(`Injecting ${this.themes.length} themes.`);for(let r of this.themes){if(n===!1&&this.themeFromLocalStorage?.name===r.name)continue;let o=this.themeManager.injectTheme(r,re.apiUrl);n===!0&&(this.themeDOMLinksFromLocalStorage=[...this.themeDOMLinksFromLocalStorage,...o]);}}getCurrentThemeName(){if(this.themeFromLocalStorage)return this.themeFromLocalStorage.name;let e=this.auth.isLoggedIn()?this.auth.getUser().theme:this.userService.getAnonymousUser().theme;if(e!=="instance-default")return e;let n=this.serverConfig.theme.default;return n!=="default"?n:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"peertube-core-dark-brown":n;}isUsingDefaultTheme(e){return this.themeManager.isUsingDefaultTheme(e);}updateCurrentTheme(){let e=this.getCurrentThemeName();if(this.oldThemeName===e)return;this.oldThemeName&&this.removeThemePlugins(this.oldThemeName),B.info(`Enabling ${e} theme.`),this.themeManager.loadThemeStyle(e);let n=this.getTheme(e);this.internalThemes.includes(e)?(B.info(`Enabling internal theme ${e}`),this.localStorageService.setItem(x.LAST_ACTIVE_THEME,JSON.stringify({name:e}),!1)):n?(B.info(`Adding scripts of theme ${e}`),this.pluginService.addPlugin(n,!0),this.pluginService.reloadLoadedScopes(),this.localStorageService.setItem(x.LAST_ACTIVE_THEME,JSON.stringify(n),!1)):this.localStorageService.removeItem(x.LAST_ACTIVE_THEME,!1),this.themeManager.injectColorPalette({currentTheme:e,config:this.serverConfig.theme}),this.oldThemeName=e;}listenUserTheme(){this.themeFromLocalStorage=void 0,this.themeDOMLinksFromLocalStorage=[],this.auth.isLoggedIn()||(this.updateCurrentTheme(),this.localStorageService.watch([x.THEME]).subscribe(()=>this.updateCurrentTheme())),this.auth.userInformationLoaded.subscribe(()=>this.updateCurrentTheme());}loadAndSetFromLocalStorage(){let e=this.localStorageService.getItem(x.LAST_ACTIVE_THEME);if(e)try{let n=JSON.parse(e);this.themeFromLocalStorage=n,this.internalThemes.includes(this.themeFromLocalStorage.name)||this.injectThemes([n],!0),this.updateCurrentTheme();}catch(n){B.error("Cannot parse last active theme.",n);return;}}removeThemePlugins(e){let n=this.getTheme(e);n&&(B.info(`Removing scripts of old theme ${e}.`),this.pluginService.removePlugin(n));}removeThemeFromLocalStorageIfNeeded(e){if(!this.themeFromLocalStorage||this.internalThemes.includes(this.themeFromLocalStorage.name))return;if(e.find(r=>r.name===this.themeFromLocalStorage.name)?.version!==this.themeFromLocalStorage.version){this.removeThemePlugins(this.themeFromLocalStorage.name),this.oldThemeName=void 0;for(let r of this.themeDOMLinksFromLocalStorage)this.themeManager.removeThemeLink(r);this.themeFromLocalStorage=void 0,this.themeDOMLinksFromLocalStorage=[];}}getTheme(e){return this.themes.find(n=>n.name===e);}formatColorForForm(e){if(!e)return null;try{return(0,Jg.formatHEX)((0,Jg.parse)(e));}catch(n){return B.warn(`Error parsing color value "${e}"`,n),null;}}formatPixelsForForm(e){if(typeof e=="number")return e+"";if(typeof e!="string")return null;let n=parseInt(e.replace(/px$/,""));return isNaN(n)?null:n+"";}};p(da,"\u0275fac",function(n){return new(n||da)();}),p(da,"\u0275prov",E({token:da,factory:da.ɵfac}));var Qg=da;var fa=class fa{searchHidden=!1;
23searchHiddenSubject=new Z();isSearchHidden(){return this.searchHidden;}setSearchHidden(e){this.searchHidden=e,this.searchHiddenSubject.next(e);}getSearchHiddenObs(){return this.searchHiddenSubject.asObservable();}};p(fa,"\u0275fac",function(n){return new(n||fa)();}),p(fa,"\u0275prov",E({token:fa,factory:fa.ɵfac}));var ey=fa;function M5e(){return[ze,Pg,tu,Bt,Qg,qg,ey,jg,Wg,zg,Hi,Zg,du,lu,fu,zn,kg,hu,pu,su,co,ou,uo,gi,Om,Yg,Gg,Fg,Fi,$g,iu,Vg,nu];}var et=class et{http=g(Fn);notifier=g(gi);hotkeysService=g(nu);restExtractor=g(zn);router=g(ht);loginChangedSource;userInformationLoaded=new Pe(1);tokensRefreshed=new Pe(1);loggedInHotkeys;clientId=Bn.getItem(et.LS_OAUTH_CLIENT_KEYS.CLIENT_ID);clientSecret=Bn.getItem(et.LS_OAUTH_CLIENT_KEYS.CLIENT_SECRET);loginChanged;user=null;refreshingTokenObservable;constructor(){this.loginChanged=new Z(),this.loginChangedSource=this.loginChanged.asObservable(),this.loggedInHotkeys=[new Tr("m s",e=>(this.router.navigate(["/videos/subscriptions"]),!1),"Go to my subscriptions"),new Tr("m v",e=>(this.router.navigate(["/my-library/videos"]),!1),"Go to my videos"),new Tr("m i",e=>(this.router.navigate(["/my-library/video-imports"]),!1),"Go to my imports"),new Tr("m c",e=>(this.router.navigate(["/my-library/video-channels"]),!1),"Go to my channels"),new Tr("m p",e=>(this.router.navigate(["/my-library/video-playlists"]),!1),"Go to my playlists")];}buildAuthUser(e,n){this.user=new wd(e,n),this.hotkeysService.add(this.loggedInHotkeys);}loadClientCredentials(){this.http.get(et.BASE_CLIENT_URL).pipe(ae(e=>this.restExtractor.handleError(e))).subscribe({next:e=>{this.clientId=e.client_id,this.clientSecret=e.client_secret,Bn.setItem(et.LS_OAUTH_CLIENT_KEYS.CLIENT_ID,this.clientId),Bn.setItem(et.LS_OAUTH_CLIENT_KEYS.CLIENT_SECRET,this.clientSecret),B.info("Client credentials loaded.");},error:e=>{let n=e.message;e.status===xt.FORBIDDEN_403&&(n="Cannot retrieve OAuth Client credentials: "+e.message+".\nEnsure you have correctly configured PeerTube (config/ directory), in particular the \"webserver\" section."),this.notifier.error(n,"Error",7e3);}});}getRefreshToken(){return this.user===null?null:this.user.getRefreshToken();}getRequestHeaderValue(){let e=this.getAccessToken();return e===null?null:`${this.getTokenType()} ${e}`;}getAccessToken(){return this.user===null?null:this.user.getAccessToken();}getTokenType(){return this.user===null?null:this.user.getTokenType();}getUser(){return this.user;}isLoggedIn(){return!!this.getAccessToken();}login(e){let{username:n,password:r,token:o,otpToken:i}=e,s={client_id:this.clientId,client_secret:this.clientSecret,response_type:"code",grant_type:"password",scope:"upload",username:(n||"").trim(),password:r};o&&Object.assign(s,{externalAuthToken:o});let a=new zt().set("Content-Type","application/x-www-form-urlencoded");return i&&(a=a.set("x-peertube-otp",i)),this.http.post(et.BASE_TOKEN_URL,BN(s),{headers:a}).pipe(F(c=>Object.assign(c,{username:n})),Ee(c=>this.mergeUserInformation(c)),F(c=>this.handleLogin(c)),ae(c=>this.restExtractor.handleError(c)));}logout(){let e=this.getRequestHeaderValue();(e?this.http.post(et.BASE_REVOKE_TOKEN_URL,{},{headers:new zt().set("Authorization",e)}):N({})).subscribe({next:r=>{r.redirectUrl&&(window.location.href=r.redirectUrl);},error:r=>{r instanceof Zr||B.error(r);}}),this.user=null,this.setStatus(1);}refreshAccessToken(){if(this.refreshingTokenObservable)return this.refreshingTokenObservable;if(!this.getAccessToken())return _r(()=>new Zr("You need to reconnect",!0));B.info("Refreshing token...");let e=this.getRefreshToken(),n=new ln().set("refresh_token",e).set("client_id",this.clientId).set("client_secret",this.clientSecret).set("response_type","code").set("grant_type","refresh_token"),r=new zt().set("Content-Type","application/x-www-form-urlencoded");return this.refreshingTokenObservable=this.http.post(et.BASE_TOKEN_URL,n,{headers:r}).pipe(F(o=>this.handleRefreshToken(o)),vt(()=>{this.refreshingTokenObservable=null;}),ae(o=>{throw B.clientError(o.message,o),this.logout(),this.notifier.info("Your authentication has expired, you need to reconnect.",void 0,void 0,!0),this.refreshingTokenObservable=null,new Zr("You need to reconnect",!0);}),ho()),this.refreshingTokenObservable;}refreshUserInformation(){let e={access_token:this.user.getAccessToken(),refresh_token:null,token_type:this.user.getTokenType(),username:this.user.username};this.mergeUserInformation(e).subscribe({next:n=>{this.user.patch(n),this.userInformationLoaded.next(!0);}});}isOTPMissingError(e){return!(e.status!==xt.UNAUTHORIZED_401||e.headers.get("x-peertube-otp")!=="required; app");}mergeUserInformation(e){let n=new zt().set("Authorization",`${e.token_type} ${e.access_token}`);return this.http.get(et.BASE_USER_INFORMATION_URL,{headers:n}).pipe(F(r=>Object.assign(e,r)));}handleLogin(e){let n={accessToken:e.access_token,tokenType:e.token_type,refreshToken:e.refresh_token};this.user=new wd(e,n),this.setStatus(0),this.userInformationLoaded.next(!0);}handleRefreshToken(e){this.user.refreshTokens(e.access_token,e.refresh_token),this.tokensRefreshed.next();}setStatus(e){this.loginChanged.next(e),e===0?this.hotkeysService.add(this.loggedInHotkeys):this.hotkeysService.remove(this.loggedInHotkeys);}};p(et,"BASE_CLIENT_URL",re.apiUrl+"/api/v1/oauth-clients/local"),p(et,"BASE_TOKEN_URL",re.apiUrl+"/api/v1/users/token"),p(et,"BASE_REVOKE_TOKEN_URL",re.apiUrl+"/api/v1/users/revoke-token"),p(et,"BASE_USER_INFORMATION_URL",re.apiUrl+"/api/v1/users/me"),p(et,"LS_OAUTH_CLIENT_KEYS",{CLIENT_ID:"client_id",CLIENT_SECRET:"client_secret"}),p(et,"\u0275fac",function(n){return new(n||et)();}),p(et,"\u0275prov",E({token:et,factory:et.ɵfac}));var ze=et;export{Fe as a,Le as b,q as c,Z as d,Ct as e,Pe as f,TF as g,Ye as h,me as i,N as j,_r as k,SF as l,Jn as m,F as n,ff as o,Ee as p,Rr as q,bF as r,Du as s,er as t,RF as u,MF as v,NF as w,Te as x,LF as y,PF as z,FF as A,ae as B,hf as C,tr as D,wa as E,_n as F,HF as G,mf as H,VF as I,Yi as J,Re as K,yf as L,ho as M,An as N,$F as O,vf as P,ke as Q,Cu as R,vt as S,Ef as T,GF as U,I as V,Rn as W,Nf as X,E as Y,Jt as Z,_,M as $,g as aa,To as ba,sI as ca,Ie as da,dt as ea,yI as fa,vI as ga,AI as ha,xI as ia,ot as ja,we as ka,Gt as la,Lt as ma,ue as na,je as oa,PI as pa,ni as qa,ri as ra,hl as sa,Ln as ta,hp as ua,Mp as va,ml as wa,lU as xa,UU as ya,I0 as za,jU as Aa,VU as Ba,oH as Ca,B0 as Da,El as Ea,jr as Fa,bs as Ga,oi as Ha,se as Ia,OB as Ja,kB as Ka,Gr as La,ac as Ma,En as Na,sn as Oa,si as Pa,dj as Qa,fj as Ra,V_ as Sa,G_ as Ta,z_ as Ua,Hb as Va,zj as Wa,_s as Xa,ih as Ya,zr as Za,Kj as _a,Xj as $a,Zj as ab,sh as bb,sp as cb,ap as db,n2 as eb,o2 as fb,i2 as gb,s2 as hb,a2 as ib,c2 as jb,u2 as kb,oA as lb,_p as mb,Wb as nb,ah as ob,qb as pb,Yb as qb,iA as rb,Kb as sb,ch as tb,aA as ub,Xb as vb,cA as wb,uA as xb,h2 as yb,dA as zb,CA as Ab,IA as Bb,Y2 as Cb,wA as Db,K2 as Eb,X2 as Fb,uh as Gb,_A as Hb,Z2 as Ib,lh as Jb,dh as Kb,fh as Lb,xA as Mb,Jb as Nb,eT as Ob,RA as Pb,MA as Qb,eV as Rb,tV as Sb,PA as Tb,FA as Ub,hV as Vb,gV as Wb,wV as Xb,WA as Yb,tT as Zb,qA as _b,YA as $b,KA as ac,XA as bc,MV as cc,ZA as dc,JA as ec,NV as fc,OV as gc,LV as hc,kV as ic,HV as jc,BV as kc,jV as lc,VV as mc,$V as nc,GV as oc,zV as pc,WV as qc,qV as rc,KV as sc,ZV as tc,QV as uc,JV as vc,e$ as wc,an as xc,n$ as yc,_e as zc,wl as Ac,oT as Bc,Pfe as Cc,bx as Dc,Ffe as Ec,Ufe as Fc,Hfe as Gc,Bfe as Hc,jfe as Ic,Vfe as Jc,As as Kc,Al as Lc,R$ as Mc,Gfe as Nc,zfe as Oc,hr as Pc,wo as Qc,Th as Rc,ai as Sc,k$ as Tc,Kx as Uc,nG as Vc,Xx as Wc,rG as Xc,oG as Yc,iG as Zc,cG as _c,uG as $c,AT as ad,pG as bd,hG as cd,yG as dd,kl as ed,she as fd,ahe as gd,che as hd,Fl as id,zt as jd,NT as kd,Oh as ld,ln as md,lc as nd,uR as od,Fn as pd,pR as qd,jG as rd,VG as sd,$T as td,t3 as ud,c3 as vd,zh as wd,Tme as xd,f3 as yd,ci as zd,li as Ad,At as Bd,em as Cd,om as Dd,im as Ed,Yr as Fd,mS as Gd,Tc as Hd,hM as Id,ht as Jd,Tm as Kd,G5 as Ld,W5 as Md,q5 as Nd,DM as Od,Y5 as Pd,zge as Qd,Yge as Rd,Aye as Sd,Jye as Td,tve as Ud,pve as Vd,hve as Wd,xt as Xd,wve as Yd,id as Zd,QEe as _d,Nbe as $d,Obe as ae,nTe as be,jM as ce,dTe as de,pTe as ee,mTe as fe,bt as ge,Hn as he,BTe as ie,KTe as je,nSe as ke,Sm as le,bSe as me,SSe as ne,Y as oe,GSe as pe,ZSe as qe,Xge as re,JSe as se,xDe as te,FDe as ue,Dm as ve,YDe as we,qt as xe,ZDe as ye,sd as ze,VM as Ae,vIe as Be,Cm as Ce,Im as De,WM as Ee,qM as Fe,DIe as Ge,uIe as He,lIe as Ie,dIe as Je,fIe as Ke,pIe as Le,iz as Me,wS as Ne,hIe as Oe,_S as Pe,AIe as Qe,xIe as Re,wm as Se,RIe as Te,MIe as Ue,sz as Ve,FIe as We,UIe as Xe,az as Ye,cz as Ze,ZM as _e,HIe as $e,BIe as af,QM as bf,jIe as cf,$Ie as df,dz as ef,fz as ff,Am as gf,rwe as hf,hi as if,owe as jf,rN as kf,xm as lf,oN as mf,ywe as nf,vwe as of,Ewe as pf,wwe as qf,Fwe as rf,Uwe as sf,jwe as tf,Gwe as uf,Jwe as vf,_Ae as wf,Bn as xf,cd as yf,B as zf,re as Af,Km as Bf,Xm as Cf,YAe as Df,HK as Ef,j1e as Ff,JK as Gf,tX as Hf,uUe as If,dX as Jf,mX as Kf,NX as Lf,FX as Mf,wHe as Nf,WX as Of,VHe as Pf,WHe as Qf,KHe as Rf,fP as Sf,ZHe as Tf,QHe as Uf,JHe as Vf,nBe as Wf,oBe as Xf,sBe as Yf,aBe as Zf,cBe as _f,pBe as $f,hBe as ag,mBe as bg,pP as cg,ED as dg,ZX as eg,vBe as fg,bD as gg,QX as hg,K_e as ig,Ez as jg,bz as kg,uN as lg,Nm as mg,Mm as ng,FS as og,_0e as pg,Tz as qg,A0e as rg,aN as sg,lN as tg,cN as ug,Sz as vg,x0e as wg,R0e as xg,M0e as yg,N0e as zg,O0e as Ag,L0e as Bg,k0e as Cg,P0e as Dg,j0e as Eg,V0e as Fg,$0e as Gg,Om as Hg,G0e as Ig,z0e as Jg,W0e as Kg,q0e as Lg,Y0e as Mg,K0e as Ng,Jc as Og,Id as Pg,eu as Qg,gi as Rg,c_e as Sg,f_e as Tg,p_e as Ug,h_e as Vg,ud as Wg,No as Xg,Oo as Yg,qS as Zg,q_e as _g,rAe as $g,oAe as ah,iAe as bh,sAe as ch,aAe as dh,cAe as eh,uAe as fh,zn as gh,ze as hh,dje as ih,fje as jh,pje as kh,kg as lh,Pg as mh,tu as nh,Tr as oh,nu as ph,Fg as qh,Ug as rh,EP as sh,Bt as th,co as uh,ou as vh,uo as wh,jg as xh,iu as yh,Vg as zh,Fi as Ah,SP as Bh,$g as Ch,Gg as Dh,zg as Eh,Wg as Fh,su as Gh,qg as Hh,Yg as Ih,du as Jh,fu as Kh,Hi as Lh,Zg as Mh,pu as Nh,hu as Oh,Qg as Ph,ey as Qh,M5e as Rh};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.