1var l$e=Object.create;var f$h=Object.defineProperty,m$d=Object.defineProperties,n$i=Object.getOwnPropertyDescriptor,o$b=Object.getOwnPropertyDescriptors,p$h=Object.getOwnPropertyNames,g$m=Object.getOwnPropertySymbols,q$n=Object.getPrototypeOf,i$c=Object.prototype.hasOwnProperty,k$n=Object.prototype.propertyIsEnumerable;var j$r=(a,b,c)=>b in a?f$h(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,r$d=(a,b)=>{for(var c in b||={})i$c.call(b,c)&&j$r(a,c,b[c]);if(g$m)for(var c of g$m(b))k$n.call(b,c)&&j$r(a,c,b[c]);return a},s$e=(a,b)=>m$d(a,o$b(b));var t$b=a=>b=>{var c=a[b];if(c)return c();throw new Error("Module not found in bundle: "+b)},u$e=a=>typeof a=="symbol"?a:a+"",v$m=(a,b)=>{var c={};for(var d in a)i$c.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$m)for(var d of g$m(a))b.indexOf(d)<0&&k$n.call(a,d)&&(c[d]=a[d]);return c};var w$j=(a,b,c)=>()=>{if(c)throw c[0];try{return a&&(b=a(a=0)),b}catch(d){throw c=[d],d}};var x$o=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}},y$g=(a,b)=>{for(var c in b)f$h(a,c,{get:b[c],enumerable:true});},h$d=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of p$h(b))!i$c.call(a,e)&&e!==c&&f$h(a,e,{get:()=>b[e],enumerable:!(d=n$i(b,e))||d.enumerable});return a},z$q=(a,b,c)=>(h$d(a,b,"default"),c),A$j=(a,b,c)=>(c=a!=null?l$e(q$n(a)):{},h$d(b||!a||!a.__esModule?f$h(c,"default",{value:a,enumerable:true}):c,a)),B$s=a=>h$d(f$h({},"__esModule",{value:true}),a);var Nn$a=()=>{};var Mn$8=function(n){let e=[],t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=i&63|128):(i&64512)===55296&&r+1<n.length&&(n.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(n.charCodeAt(++r)&1023),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128);}return e},yi$4=function(n){let e=[],t=0,r=0;for(;t<n.length;){let i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=n[t++];e[r++]=String.fromCharCode((i&31)<<6|s&63);}else if(i>239&&i<365){let s=n[t++],o=n[t++],a=n[t++],c=((i&7)<<18|(s&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023));}else {let s=n[t++],o=n[t++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63);}}return e.join("")},Un$7={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(n,e){if(!Array.isArray(n))throw Error("encodeByteArray takes an array as a parameter");this.init_();let t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){let s=n[i],o=i+1<n.length,a=o?n[i+1]:0,c=i+2<n.length,u=c?n[i+2]:0,h=s>>2,f=(s&3)<<4|a>>4,d=(a&15)<<2|u>>6,w=u&63;c||(w=64,o||(d=64)),r.push(t[h],t[f],t[d],t[w]);}return r.join("")},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(Mn$8(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):yi$4(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();let t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){let s=t[n.charAt(i++)],a=i<n.length?t[n.charAt(i)]:0;++i;let u=i<n.length?t[n.charAt(i)]:64;++i;let f=i<n.length?t[n.charAt(i)]:64;if(++i,s==null||a==null||u==null||f==null)throw new _t$h;let d=s<<2|a>>4;if(r.push(d),u!==64){let w=a<<4&240|u>>2;if(r.push(w),f!==64){let R=u<<6&192|f;r.push(R);}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n);}}}
1,_t$h=class _t extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError";}},Ti$4=function(n){let e=Mn$8(n);return Un$7.encodeByteArray(e,true)},fe$e=function(n){return Ti$4(n).replace(/\./g,"")},De$e=function(n){try{return Un$7.decodeString(n,!0)}catch(e){console.error("base64Decode failed: ",e);}return null};function wi$5(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var vi$4=()=>wi$5().__FIREBASE_DEFAULTS__,bi$3=()=>{if(typeof process>"u"||typeof process.env>"u")return;let n=process.env.__FIREBASE_DEFAULTS__;if(n)return JSON.parse(n)},Ai$4=()=>{if(typeof document>"u")return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);}catch{return}let e=n&&De$e(n[1]);return e&&JSON.parse(e)},Et$e=()=>{try{return Nn$a()||vi$4()||bi$3()||Ai$4()}catch(n){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);return}},yt$g=n=>Et$e()?.emulatorHosts?.[n],xc$2=n=>{let e=yt$g(n);if(!e)return;let t=e.lastIndexOf(":");if(t<=0||t+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);let r=parseInt(e.substring(t+1),10);return e[0]==="["?[e.substring(1,t-1),r]:[e.substring(0,t),r]},Tt$h=()=>Et$e()?.config,wt$j=n=>Et$e()?.[`_${n}`];var Ne$g=class Ne{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t;});}wrapCallback(e){return (t,r)=>{t?this.reject(t):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,r));}}};function pe$g(n){try{return (n.startsWith("http://")||n.startsWith("https://")?new URL(n).hostname:n).endsWith(".cloudworkstations.dev")}catch{return false}}async function xn$7(n){return (await fetch(n,{credentials:"include"})).ok}function Fc$2(n,e){if(n.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let t={alg:"none",type:"JWT"},r=e||"demo-project",i=n.iat||0,s=n.sub||n.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");let o=r$d({iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},n);return [fe$e(JSON.stringify(t)),fe$e(JSON.stringify(o)),""].join(".")}var he$f={};function Si$4(){let n={prod:[],emulator:[]};for(let e of Object.keys(he$f))he$f[e]?n.emulator.push(e):n.prod.push(e);return n}function Ri$4(n){let e=document.getElementById(n),t=false;return e||(e=document.createElement("div"),e.setAttribute("id",n),t=true),{created:t,element:e}}var Dn$8=false;function Fn$a(n,e){if(typeof window>"u"||typeof document>"u"||!pe$g(window.location.host)||he$f[n]===e||he$f[n]||Dn$8)return;he$f[n]=e;function t(d){return `__firebase__banner__${d}`}let r="__firebase__banner",s=Si$4().prod.length>0;function o(){let d=document.getElementById(r);d&&d.remove();}function a(d){d.style.display="flex",d.style.background="#7faaf0",d.style.position="fixed",d.style.bottom="5px",d.style.left="5px",d.style.padding=".5em",d.style.borderRadius="5px",d.style.alignItems="center";}function c(d,w){d.setAttribute("width","24"),d.setAttribute("id",w),d.setAttribute("height","24"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","none"),d.style.marginLeft="-6px";}function u(){let d=document.createElement("span");return d.style.cursor="pointer",d.style.marginLeft="16px",d.style.fontSize="24px",d.innerHTML=" ×",d.onclick=()=>{Dn$8=true,o();},d}function h(d,w){d.setAttribute("id",w),d.innerText="Learn more",d.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",d.setAttribute("target","__blank"),d.style.paddingLeft="5px",d.style.textDecoration="underline";}function f(){let d=Ri$4(r),w=t("text"),R=document.getElementById(w)||document.createElement("span"),de=t("learnmore"),ke=document.getElementById(de)||document.createElement("a"),ne=t("preprendIcon"),re=document.getElementById(ne)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(d.created){let mt=d.element;a(mt),h(ke,de);let Ei=u();c(re,ne),mt.append(re,R,ke,Ei),document.body.appendChild(mt);}s?(R.innerText="Preview backend disconnected.",re.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 2<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 3</g> 4<defs> 5<clipPath id="clip0_6013_33858"> 6<rect width="24" height="24" fill="white"/> 7</clipPath> 8</defs>`):(re.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 9<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444
912.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 10</g> 11<defs> 12<clipPath id="clip0_6083_34804"> 13<rect width="24" height="24" fill="white"/> 14</clipPath> 15</defs>`,R.innerText="Preview backend running in this workspace."),R.setAttribute("id",w);}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",f):f();}function v$l(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Vn$a(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(v$l())}function Hn$8(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Wn$a(){let n=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof n=="object"&&n.id!==void 0}function Bn$9(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function $n$8(){let n=v$l();return n.indexOf("MSIE ")>=0||n.indexOf("Trident/")>=0}function zn$8(){try{return typeof indexedDB=="object"}catch{return false}}function jn$8(){return new Promise((n,e)=>{try{let t=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(r),n(!0);},i.onupgradeneeded=()=>{t=!1;},i.onerror=()=>{e(i.error?.message||"");};}catch(t){e(t);}})}var Ci$4="FirebaseError",P$f=class n extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name=Ci$4,Object.setPrototypeOf(this,n.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,M$m.prototype.create);}},M$m=class M{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r;}create(e,...t){let r=t[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?Pi$3(s,r):"Error",a=`${this.serviceName}: ${o} (${i}).`;return new P$f(i,a,r)}};function Pi$3(n,e){return n.replace(ki$3,(t,r)=>{let i=e[r];return i!=null?String(i):`<${r}?>`})}var ki$3=/\{\$([^}]+)}/g;function qn$9(n){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e))return false;return true}function $$p(n,e){if(n===e)return true;let t=Object.keys(n),r=Object.keys(e);for(let i of t){if(!r.includes(i))return false;let s=n[i],o=e[i];if(Ln$8(s)&&Ln$8(o)){if(!$$p(s,o))return false}else if(s!==o)return false}for(let i of r)if(!t.includes(i))return false;return true}function Ln$8(n){return n!==null&&typeof n=="object"}function X$k(n){let e=[];for(let[t,r]of Object.entries(n))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(t)+"="+encodeURIComponent(i));}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function ie$h(n){let e={};return n.replace(/^\?/,"").split("&").forEach(r=>{if(r){let[i,s]=r.split("=");e[decodeURIComponent(i)]=decodeURIComponent(s);}}),e}function se$g(n){let e=n.indexOf("?");if(!e)return "";let t=n.indexOf("#",e);return n.substring(e,t>0?t:void 0)}function Gn$a(n,e){let t=new It$e(n,e);return t.subscribe.bind(t)}var It$e=class It{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
15ise.resolve(),this.finalized=false,this.onNoObservers=t,this.task.then(()=>{e(this);}).catch(r=>{this.error(r);});}next(e){this.forEachObserver(t=>{t.next(e);});}error(e){this.forEachObserver(t=>{t.error(e);}),this.close(e);}complete(){this.forEachObserver(e=>{e.complete();}),this.close();}subscribe(e,t,r){let i;if(e===void 0&&t===void 0&&r===void 0)throw new Error("Missing Observer.");Oi$4(e,["next","error","complete"])?i=e:i={next:e,error:t,complete:r},i.next===void 0&&(i.next=gt$g),i.error===void 0&&(i.error=gt$g),i.complete===void 0&&(i.complete=gt$g);let s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete();}catch{}}),this.observers.push(i),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this));}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e);}sendOne(e,t){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{t(this.observers[e]);}catch(r){typeof console<"u"&&console.error&&console.error(r);}});}close(e){this.finalized||(this.finalized=true,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0;}));}};function Oi$4(n,e){if(typeof n!="object"||n===null)return false;for(let t of e)if(t in n&&typeof n[t]=="function")return true;return false}function gt$g(){}function p$g(n){return n&&n._delegate?n._delegate:n}var O$s=class O{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=false,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null;}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};var Q$g="[DEFAULT]";var vt$e=class vt{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map;}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let r=new Ne$g;if(this.instancesDeferred.set(t,r),this.isInitialized(t)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:t});i&&r.resolve(i);}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??false;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(i){if(r)return null;throw i}else {if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Di$4(e))try{this.getOrInitializeService({instanceIdentifier:Q$g});}catch{}for(let[t,r]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(t);try{let s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s);}catch{}}}}clearInstance(e=Q$g){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e);}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>"_delete"in t).map(t=>t._delete())]);}isComponentSet(){return this.component!=null}isInitialized(e=Q$g){return this.instances.has(e)}getOptions(e=Q$g){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[s,o]of this.instancesDeferred.entries()){let a=this.normalizeInstanceIdentifier(s);r===a&&o.resolve(i);}return i}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),i=this.onInitCallbacks.get(r)??new Set;i.add(e),this.onInitCallbacks.set(r,i);let s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e);}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let i of r)try{i(e,t);}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Ni$3(e),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r);}catch{}return r||null}normalizeInstanceIdentifier(e=Q$g){return this.component?this.component.multipleInstances?e:Q$g:e}shouldAutoInitialize(){return !!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function Ni$3(n){return n===Q$g?void 0:n}function Di$4(n){return n.instantiationMode==="EAGER"}var Le$g=class Le{constructor(e){this.name=e,this.providers=new Map;}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e);}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e);}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new vt$e(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}};var g$l=(function(n){return n[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT",n})(g$l||{}),Mi$3={debug:g$l.DEBUG,verbose:g$l.VERBOSE,info:g$l.INFO,warn:g$l.WARN,error:g$l.ERROR,silent:g$l.SILENT},Ui$4=g$l.INFO,xi$4={[g$l.DEBUG]:"log",[g$l.VERBOSE]:"log",[g$l.INFO]:"info",[g$l.WARN]:"warn",[g$l.ERROR]:"error"},Fi$3=(n,e,...t)=>{if(e<n.logLevel)return;let r=new Date().toISOString(),i=xi$4[e];
15if(i)console[i](`[${r}] ${n.name}:`,...t);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)},oe$f=class oe{constructor(e){this.name=e,this._logLevel=Ui$4,this._logHandler=Fi$3,this._userLogHandler=null;}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in g$l))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e;}setLogLevel(e){this._logLevel=typeof e=="string"?Mi$3[e]:e;}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e;}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e;}debug(...e){this._userLogHandler&&this._userLogHandler(this,g$l.DEBUG,...e),this._logHandler(this,g$l.DEBUG,...e);}log(...e){this._userLogHandler&&this._userLogHandler(this,g$l.VERBOSE,...e),this._logHandler(this,g$l.VERBOSE,...e);}info(...e){this._userLogHandler&&this._userLogHandler(this,g$l.INFO,...e),this._logHandler(this,g$l.INFO,...e);}warn(...e){this._userLogHandler&&this._userLogHandler(this,g$l.WARN,...e),this._logHandler(this,g$l.WARN,...e);}error(...e){this._userLogHandler&&this._userLogHandler(this,g$l.ERROR,...e),this._logHandler(this,g$l.ERROR,...e);}};var Vi$3=(n,e)=>e.some(t=>n instanceof t),Kn$a,Jn$9;function Hi$4(){return Kn$a||(Kn$a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Wi$4(){return Jn$9||(Jn$9=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Yn$9=new WeakMap,At$c=new WeakMap,Xn$a=new WeakMap,bt$i=new WeakMap,Rt$g=new WeakMap;function Bi$3(n){let e=new Promise((t,r)=>{let i=()=>{n.removeEventListener("success",s),n.removeEventListener("error",o);},s=()=>{t(N$e(n.result)),i();},o=()=>{r(n.error),i();};n.addEventListener("success",s),n.addEventListener("error",o);});return e.then(t=>{t instanceof IDBCursor&&Yn$9.set(t,n);}).catch(()=>{}),Rt$g.set(e,n),e}function $i$4(n){if(At$c.has(n))return;let e=new Promise((t,r)=>{let i=()=>{n.removeEventListener("complete",s),n.removeEventListener("error",o),n.removeEventListener("abort",o);},s=()=>{t(),i();},o=()=>{r(n.error||new DOMException("AbortError","AbortError")),i();};n.addEventListener("complete",s),n.addEventListener("error",o),n.addEventListener("abort",o);});At$c.set(n,e);}var St$f={get(n,e,t){if(n instanceof IDBTransaction){if(e==="done")return At$c.get(n);if(e==="objectStoreNames")return n.objectStoreNames||Xn$a.get(n);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return N$e(n[e])},set(n,e,t){return n[e]=t,true},has(n,e){return n instanceof IDBTransaction&&(e==="done"||e==="store")?true:e in n}};function Qn$a(n){St$f=n(St$f);}function zi$4(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){let r=n.call(Me$f(this),e,...t);return Xn$a.set(r,e.sort?e.sort():[e]),N$e(r)}:Wi$4().includes(n)?function(...e){return n.apply(Me$f(this),e),N$e(Yn$9.get(this))}:function(...e){return N$e(n.apply(Me$f(this),e))}}function ji$4(n){return typeof n=="function"?zi$4(n):(n instanceof IDBTransaction&&$i$4(n),Vi$3(n,Hi$4())?new Proxy(n,St$f):n)}function N$e(n){if(n instanceof IDBRequest)return Bi$3(n);if(bt$i.has(n))return bt$i.get(n);let e=ji$4(n);return e!==n&&(bt$i.set(n,e),Rt$g.set(e,n)),e}var Me$f=n=>Rt$g.get(n);function er$9(n,e,{blocked:t,upgrade:r,blocking:i,terminated:s}={}){let o=indexedDB.open(n,e),a=N$e(o);return r&&o.addEventListener("upgradeneeded",c=>{r(N$e(o.result),c.oldVersion,c.newVersion,N$e(o.transaction),c);}),t&&o.addEventListener("blocked",c=>t(c.oldVersion,c.newVersion,c)),a.then(c=>{s&&c.addEventListener("close",()=>s()),i&&c.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u));}).catch(()=>{}),a}var qi$5=["get","getKey","getAll","getAllKeys","count"],Gi$4=["put","add","delete","clear"],Ct$i=new Map;function Zn$9(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e=="string"))return;if(Ct$i.get(e))return Ct$i.get(e);let t=e.replace(/FromIndex$/,""),r=e!==t,i=Gi$4.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||qi$5.includes(t)))return;let s=async function(o,...a){let c=this.transaction(o,i?"readwrite":"readonly"),u=c.store;
15return r&&(u=u.index(a.shift())),(await Promise.all([u[t](...a),i&&c.done]))[0]};return Ct$i.set(e,s),s}Qn$a(n=>s$e(r$d({},n),{get:(e,t,r)=>Zn$9(e,t)||n.get(e,t,r),has:(e,t)=>!!Zn$9(e,t)||n.has(e,t)}));var kt$f=class kt{constructor(e){this.container=e;}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(Ki$4(t)){let r=t.getImmediate();return `${r.library}/${r.version}`}else return null}).filter(t=>t).join(" ")}};function Ki$4(n){return n.getComponent()?.type==="VERSION"}var Ot$b="@firebase/app",tr$9="0.14.8";var U$k=new oe$f("@firebase/app"),Ji$5="@firebase/app-compat",Yi$4="@firebase/analytics-compat",Xi$6="@firebase/analytics",Qi$4="@firebase/app-check-compat",Zi$5="@firebase/app-check",es$5="@firebase/auth",ts$5="@firebase/auth-compat",ns$5="@firebase/database",rs$5="@firebase/data-connect",is$5="@firebase/database-compat",ss$5="@firebase/functions",os$5="@firebase/functions-compat",as$4="@firebase/installations",cs$5="@firebase/installations-compat",us$4="@firebase/messaging",ls$4="@firebase/messaging-compat",ds$5="@firebase/performance",hs$5="@firebase/performance-compat",fs$5="@firebase/remote-config",ps$5="@firebase/remote-config-compat",ms$4="@firebase/storage",gs$5="@firebase/storage-compat",_s$5="@firebase/firestore",Is$4="@firebase/ai",Es$4="@firebase/firestore-compat",ys$4="firebase",Ts$5="12.9.0";var Nt$f="[DEFAULT]",ws$4={[Ot$b]:"fire-core",[Ji$5]:"fire-core-compat",[Xi$6]:"fire-analytics",[Yi$4]:"fire-analytics-compat",[Zi$5]:"fire-app-check",[Qi$4]:"fire-app-check-compat",[es$5]:"fire-auth",[ts$5]:"fire-auth-compat",[ns$5]:"fire-rtdb",[rs$5]:"fire-data-connect",[is$5]:"fire-rtdb-compat",[ss$5]:"fire-fn",[os$5]:"fire-fn-compat",[as$4]:"fire-iid",[cs$5]:"fire-iid-compat",[us$4]:"fire-fcm",[ls$4]:"fire-fcm-compat",[ds$5]:"fire-perf",[hs$5]:"fire-perf-compat",[fs$5]:"fire-rc",[ps$5]:"fire-rc-compat",[ms$4]:"fire-gcs",[gs$5]:"fire-gcs-compat",[_s$5]:"fire-fst",[Es$4]:"fire-fst-compat",[Is$4]:"fire-vertex","fire-js":"fire-js",[ys$4]:"fire-js-all"};var Ue$f=new Map,vs$4=new Map,Dt$d=new Map;function nr$9(n,e){try{n.container.addComponent(e);}catch(t){U$k.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t);}}function ce$c(n){let e=n.name;if(Dt$d.has(e))return U$k.debug(`There were multiple attempts to register component ${e}.`),false;Dt$d.set(e,n);for(let t of Ue$f.values())nr$9(t,n);for(let t of vs$4.values())nr$9(t,n);return true}function xt$e(n,e){let t=n.container.getProvider("heartbeat").getImmediate({optional:true});return t&&t.triggerHeartbeat(),n.container.getProvider(e)}function E$m(n){return n==null?false:n.settings!==void 0}var bs$4={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
15d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},z$p=new M$m("app","Firebase",bs$4);var Lt$e=class Lt{constructor(e,t,r){this._isDeleted=false,this._options=r$d({},e),this._config=r$d({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new O$s("app",()=>this,"PUBLIC"));}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e;}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e;}checkDestroyed(){if(this.isDeleted)throw z$p.create("app-deleted",{appName:this._name})}};var ue$a=Ts$5;function As$4(n,e={}){let t=n;typeof e!="object"&&(e={name:e});let r=r$d({name:Nt$f,automaticDataCollectionEnabled:true},e),i=r.name;if(typeof i!="string"||!i)throw z$p.create("bad-app-name",{appName:String(i)});if(t||(t=Tt$h()),!t)throw z$p.create("no-options");let s=Ue$f.get(i);if(s){if($$p(t,s.options)&&$$p(r,s.config))return s;throw z$p.create("duplicate-app",{appName:i})}let o=new Le$g(i);for(let c of Dt$d.values())o.addComponent(c);let a=new Lt$e(t,r,o);return Ue$f.set(i,a),a}function or$8(n=Nt$f){let e=Ue$f.get(n);if(!e&&n===Nt$f&&Tt$h())return As$4();if(!e)throw z$p.create("no-app",{appName:n});return e}function ae$e(n,e,t){let r=ws$4[n]??n;t&&(r+=`-${t}`);let i=r.match(/\s|\//),s=e.match(/\s|\//);if(i||s){let o=[`Unable to register library "${r}" with version "${e}":`];i&&o.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&s&&o.push("and"),s&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),U$k.warn(o.join(" "));return}ce$c(new O$s(`${r}-version`,()=>({library:r,version:e}),"VERSION"));}var Ss$5="firebase-heartbeat-database",Rs$5=1,me$f="firebase-heartbeat-store",Pt$c=null;function ar$9(){return Pt$c||(Pt$c=er$9(Ss$5,Rs$5,{upgrade:(n,e)=>{switch(e){case 0:try{n.createObjectStore(me$f);}catch(t){console.warn(t);}}}}).catch(n=>{throw z$p.create("idb-open",{originalErrorMessage:n.message})})),Pt$c}async function Cs$4(n){try{let t=(await ar$9()).transaction(me$f),r=await t.objectStore(me$f).get(cr$8(n));return await t.done,r}catch(e){if(e instanceof P$f)U$k.warn(e.message);else {let t=z$p.create("idb-get",{originalErrorMessage:e?.message});U$k.warn(t.message);}}}async function rr$a(n,e){try{let r=(await ar$9()).transaction(me$f,"readwrite");await r.objectStore(me$f).put(e,cr$8(n)),await r.done;}catch(t){if(t instanceof P$f)U$k.warn(t.message);else {let r=z$p.create("idb-set",{originalErrorMessage:t?.message});U$k.warn(r.message);}}}function cr$8(n){return `${n.name}!${n.options.appId}`}var Ps$3=1024,ks$4=30,Mt$e=class Mt{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new Ut$f(t),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r));}async triggerHeartbeat(){try{let t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=ir$c();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:t}),this._heartbeatsCache.heartbeats.length>ks$4){let i=Ns$4(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(i,1);}return this._storage.overwrite(this._heartbeatsCache)}catch(e){U$k.warn(e);}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return "";let e=ir$c(),{heartbeatsToSend:t,unsentEntries:r}=Os$4(this._heartbeatsCache.heartbeats),i=fe$e(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return U$k.warn(e),""}}};function ir$c(){return new Date().toISOString().substring(0,10)}function Os$4(n,e=Ps$3){let t=[],r=n.slice();for(let i of n){let s=t.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),sr$9(t)>e){s.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),sr$9(t)>e){t.pop();break}r=r.slice(1);}return {heartbeatsToSend:t,unsentEntries:r}}var Ut$f=class Ut{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck();}async runIndexedDBEnvironmentCheck(){return zn$8()?jn$8().then(()=>
15true).catch(()=>false):false}async read(){if(await this._canUseIndexedDBPromise){let t=await Cs$4(this.app);return t?.heartbeats?t:{heartbeats:[]}}else return {heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){let r=await this.read();return rr$a(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){let r=await this.read();return rr$a(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}};function sr$9(n){return fe$e(JSON.stringify({version:2,heartbeats:n})).length}function Ns$4(n){if(n.length===0)return -1;let e=0,t=n[0].date;for(let r=1;r<n.length;r++)n[r].date<t&&(t=n[r].date,e=r);return e}function Ds$5(n){ce$c(new O$s("platform-logger",e=>new kt$f(e),"PRIVATE")),ce$c(new O$s("heartbeat",e=>new Mt$e(e),"PRIVATE")),ae$e(Ot$b,tr$9,n),ae$e(Ot$b,tr$9,"esm2020"),ae$e("fire-js","");}Ds$5("");function Cr$9(){return {"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}var Pr$7=Cr$9,kr$8=new M$m("auth","Firebase",Cr$9());var $e$f=new oe$f("@firebase/auth");function Ls$4(n,...e){$e$f.logLevel<=g$l.WARN&&$e$f.warn(`Auth (${ue$a}): ${n}`,...e);}function Ve$g(n,...e){$e$f.logLevel<=g$l.ERROR&&$e$f.error(`Auth (${ue$a}): ${n}`,...e);}function S$q(n,...e){throw wn$9(n,...e)}function b$h(n,...e){return wn$9(n,...e)}function Tn$9(n,e,t){let r=s$e(r$d({},Pr$7()),{[e]:t});return new M$m("auth","Firebase",r).create(e,{appName:n.name})}function A$i(n){return Tn$9(n,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Ce$d(n,e,t){let r=t;if(!(e instanceof r))throw r.name!==e.constructor.name&&S$q(n,"argument-error"),Tn$9(n,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function wn$9(n,...e){if(typeof n!="string"){let t=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=n.name),n._errorFactory.create(t,...r)}return kr$8.create(n,...e)}function l$d(n,e,...t){if(!n)throw wn$9(e,...t)}function D$m(n){let e="INTERNAL ASSERTION FAILED: "+n;throw Ve$g(e),new Error(e)}function V$l(n,e){n||D$m(e);}function we$g(){return typeof self<"u"&&self.location?.href||""}function vn$a(){return ur$7()==="http:"||ur$7()==="https:"}function ur$7(){return typeof self<"u"&&self.location?.protocol||null}function Ms$4(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(vn$a()||Wn$a()||"connection"in navigator)?navigator.onLine:true}function Us$4(){if(typeof navigator>"u")return null;let n=navigator;return n.languages&&n.languages[0]||n.language||null}var Z$h=class Z{constructor(e,t){this.shortDelay=e,this.longDelay=t,V$l(t>e,"Short delay should be less than long delay!"),this.isMobile=Vn$a()||Bn$9();}get(){return Ms$4()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function bn$a(n,e){V$l(n.emulator,"Emulator should always be set here");let{url:t}=n.emulator;return e?`${t}${e.startsWith("/")?e.slice(1):e}`:t}var ze$h=class ze{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r);}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;D$m("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;D$m("Could not find Headers implementation, make sure you call FetchProvi
15der.initialize() with an appropriate polyfill");}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;D$m("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");}};var xs$4={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};var Fs$4=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],Vs$4=new Z$h(3e4,6e4);function _$g(n,e){return n.tenantId&&!e.tenantId?s$e(r$d({},e),{tenantId:n.tenantId}):e}async function I$k(n,e,t,r,i={}){return Or$7(n,i,async()=>{let s={},o={};r&&(e==="GET"?o=r:s={body:JSON.stringify(r)});let a=X$k(r$d({key:n.config.apiKey},o)).slice(1),c=await n._getAdditionalHeaders();c["Content-Type"]="application/json",n.languageCode&&(c["X-Firebase-Locale"]=n.languageCode);let u=r$d({method:e,headers:c},s);return Hn$8()||(u.referrerPolicy="no-referrer"),n.emulatorConfig&&pe$g(n.emulatorConfig.host)&&(u.credentials="include"),ze$h.fetch()(await Nr$7(n,n.config.apiHost,t,a),u)})}async function Or$7(n,e,t){n._canInitEmulator=false;let r=r$d(r$d({},xs$4),e);try{let i=new $t$e(n),s=await Promise.race([t(),i.promise]);i.clearNetworkTimeout();let o=await s.json();if("needConfirmation"in o)throw _e$d(n,"account-exists-with-different-credential",o);if(s.ok&&!("errorMessage"in o))return o;{let a=s.ok?o.errorMessage:o.error.message,[c,u]=a.split(" : ");if(c==="FEDERATED_USER_ID_ALREADY_LINKED")throw _e$d(n,"credential-already-in-use",o);if(c==="EMAIL_EXISTS")throw _e$d(n,"email-already-in-use",o);if(c==="USER_DISABLED")throw _e$d(n,"user-disabled",o);let h=r[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(u)throw Tn$9(n,h,u);S$q(n,h);}}catch(i){if(i instanceof P$f)throw i;S$q(n,"network-request-failed",{message:String(i)});}}async function B$r(n,e,t,r,i={}){let s=await I$k(n,e,t,r,i);return "mfaPendingCredential"in s&&S$q(n,"multi-factor-auth-required",{_serverResponse:s}),s}async function Nr$7(n,e,t,r){let i=`${e}${t}?${r}`,s=n,o=s.config.emulator?bn$a(n.config,i):`${n.config.apiScheme}://${i}`;return Fs$4.includes(t)&&(await s._persistenceManagerAvailable,s._getPersistenceType()==="COOKIE")?s._getPersistence()._getFinalTarget(o).toString():o}function Hs$4(n){switch(n){case "ENFORCE":return "ENFORCE";case "AUDIT":return "AUDIT";case "OFF":return "OFF";default:return "ENFORCEMENT_STATE_UNSPECIFIED"}}var $t$e=class $t{clearNetworkTimeout(){clearTimeout(this.timer);}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,r)=>{this.timer=setTimeout(()=>r(b$h(this.auth,"network-request-failed")),Vs$4.get());});}};function _e$d(n,e,t){let r={appName:n.name};t.email&&(r.email=t.email),t.phoneNumber&&(r.phoneNumber=t.phoneNumber);let i=b$h(n,e,r);return i.customData._tokenResponse=t,i}function lr$9(n){return n!==void 0&&n.getResponse!==void 0}function dr$a(n){return n!==void 0&&n.enterprise!==void 0}var je$f=class je{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState;}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return Hs$4(t.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PRO
15VIDER")}};async function Ws$4(n){return (await I$k(n,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}async function Dr$8(n,e){return I$k(n,"GET","/v2/recaptchaConfig",_$g(n,e))}async function Bs$3(n,e){return I$k(n,"POST","/v1/accounts:delete",e)}async function $s$4(n,e){return I$k(n,"POST","/v1/accounts:update",e)}async function qe$d(n,e){return I$k(n,"POST","/v1/accounts:lookup",e)}function Ie$b(n){if(n)try{let e=new Date(Number(n));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function Lr$7(n,e=false){let t=p$g(n),r=await t.getIdToken(e),i=ct$d(r);l$d(i&&i.exp&&i.auth_time&&i.iat,t.auth,"internal-error");let s=typeof i.firebase=="object"?i.firebase:void 0,o=s?.sign_in_provider;return {claims:i,token:r,authTime:Ie$b(Ft$d(i.auth_time)),issuedAtTime:Ie$b(Ft$d(i.iat)),expirationTime:Ie$b(Ft$d(i.exp)),signInProvider:o||null,signInSecondFactor:s?.sign_in_second_factor||null}}function Ft$d(n){return Number(n)*1e3}function ct$d(n){let[e,t,r]=n.split(".");if(e===void 0||t===void 0||r===void 0)return Ve$g("JWT malformed, contained fewer than 3 sections"),null;try{let i=De$e(t);return i?JSON.parse(i):(Ve$g("Failed to decode base64 JWT payload"),null)}catch(i){return Ve$g("Caught error parsing JWT payload as JSON",i?.toString()),null}}function hr$9(n){let e=ct$d(n);return l$d(e,"internal-error"),l$d(typeof e.exp<"u","internal-error"),l$d(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}async function H$m(n,e,t=false){if(t)return e;try{return await e}catch(r){throw r instanceof P$f&&zs$4(r)&&n.auth.currentUser===n&&await n.auth.signOut(),r}}function zs$4({code:n}){return n==="auth/user-disabled"||n==="auth/user-token-expired"}var zt$f=class zt{constructor(e){this.user=e,this.isRunning=false,this.timerId=null,this.errorBackoff=3e4;}_start(){this.isRunning||(this.isRunning=true,this.schedule());}_stop(){this.isRunning&&(this.isRunning=false,this.timerId!==null&&clearTimeout(this.timerId));}getInterval(e){if(e){let t=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),t}else {this.errorBackoff=3e4;let r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=false){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration();},t);}async iteration(){try{await this.user.getIdToken(!0);}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(true);return}this.schedule();}};var ve$f=class ve{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime();}_initializeTime(){this.lastSignInTime=Ie$b(this.lastLoginAt),this.creationTime=Ie$b(this.createdAt);}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime();}toJSON(){return {createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};async function be$f(n){let e=n.auth,t=await n.getIdToken(),r=await H$m(n,qe$d(e,{idToken:t}));l$d(r?.users.length,e,"internal-error");let i=r.users[0];n._notifyReloadListener(i);let s=i.providerUserInfo?.length?Ur$6(i.providerUserInfo):[],o=js$3(n.providerData,s),a=n.isAnonymous,c=!(n.email&&i.passwordHash)&&!o?.length,u=a?c:false,h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||false,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new ve$f(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(n,h);}async function Mr$9(n){let e=p$g(n);await be$f(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e);}function js$3(n,e){return [...n.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function Ur$6(n){return n.map(r=>{var i=r,{providerId:e}=i,t=v$m(i,["providerId"]);return {providerId:e,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}})}async function qs$4(n,e){let t=await Or$7(n,{},async()=>{let r=X$k({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:s}=n.config,o=await Nr$7(n,i,"/v1/token",`key=${s}`),a=await n._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";let c={method:"POST",headers:a,body:r};return n.emulatorConfig&&pe$g(n.emulatorConfig.host)&&(c.credentials="include"),ze$h.fetch()(o,c)});return {accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}}async function Gs$4(n,e){return I$k(n,"POST","/v2/accounts:revokeToken",_$g(n,e))}var Ee$g=class n{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null;}get isExpired(){return !this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){l$d(e.idToken,"internal-error"),l$d(typeof e.idToken<"u","internal-error"),l$d(typeof e.refreshToken<"u","internal-error");
15let t="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):hr$9(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t);}updateFromIdToken(e){l$d(e.length!==0,"internal-error");let t=hr$9(e);this.updateTokensAndExpiration(e,null,t);}async getToken(e,t=false){return !t&&this.accessToken&&!this.isExpired?this.accessToken:(l$d(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null;}async refresh(e,t){let{accessToken:r,refreshToken:i,expiresIn:s}=await qs$4(e,t);this.updateTokensAndExpiration(r,i,Number(s));}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3;}static fromJSON(e,t){let{refreshToken:r,accessToken:i,expirationTime:s}=t,o=new n;return r&&(l$d(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),i&&(l$d(typeof i=="string","internal-error",{appName:e}),o.accessToken=i),s&&(l$d(typeof s=="number","internal-error",{appName:e}),o.expirationTime=s),o}toJSON(){return {refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime;}_clone(){return Object.assign(new n,this.toJSON())}_performRefresh(){return D$m("not implemented")}};function j$q(n,e){l$d(typeof n=="string"||typeof n>"u","internal-error",{appName:e});}var q$m=class n{constructor(s){var o=s,{uid:e,auth:t,stsTokenManager:r}=o,i=v$m(o,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new zt$f(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||false,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||false,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new ve$f(i.createdAt||void 0,i.lastLoginAt||void 0);}async getIdToken(e){let t=await H$m(this,this.stsTokenManager.getToken(this.auth,e));return l$d(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return Lr$7(this,e)}reload(){return Mr$9(this)}_assign(e){this!==e&&(l$d(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(t=>r$d({},t)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager));}_clone(e){let t=new n(s$e(r$d({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){l$d(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null);}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e;}_startProactiveRefresh(){this.proactiveRefresh._start();}_stopProactiveRefresh(){this.proactiveRefresh._stop();}async _updateTokensIfNecessary(e,t=false){let r=false;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=true),t&&await be$f(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this);}async delete(){if(E$m(this.auth.app))return Promise.reject(A$i(this.auth));let e=await this.getIdToken();return await H$m(this,Bs$3(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return s$e(r$d({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>r$d({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){let r=t.displayName??void 0,i=t.email??void 0,s=t.phoneNumber??void 0,o=t.photoURL??void 0,a=t.tenantId??void 0,c=t._redirectEventId??void 0,u=t.createdAt??void 0,h=t.lastLoginAt??void 0,{uid:f,emailVerified:d,isAnonymous:w,providerData:R,stsTokenManager:de}=t;l$d(f&&de,e,"internal-error");let ke=Ee$g.fromJSON(this.name,de);l$d(typeof f=="string",e,"internal-error"),j$q(r,e.name),j$q(i,e.name),l$d(typeof d=="boolean",e,"internal-error"),l$d(typeof w=="boolean",e,"internal-error"),j$q(s,e.name),j$q(o,e.name),j$q(a,e.name),j$q(c,e.name),j$q(u,e.name),j$q(h,e.name);let ne=new n({uid:f,auth:e,email:i,emailVerified:d,displayName:r,isAnonymous:w,photoURL:o,phoneNumber:s,tenantId:a,stsTokenManager:ke,createdAt:u,lastLoginAt:h});return R&&Array.isArray(R)&&(ne.providerData=R.map(re=>r$d({},re))),c&&(ne._redirectEventId=c),ne}static async _fromIdTokenResponse(e,t,r=false){let i=new Ee$g;i.updateFromServerResponse(t);let s=new n({uid:t.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await be$f(s),s}static async _fromGetAccountInfoResponse(e,t,r){let i=t.users[0];l$d(i.localId!==void 0,"internal-error");let s=i.providerUserInfo!==void 0?Ur$6(i.providerUserInfo):[],o=!(i.email&&i.passwordHash)&&!s?.length,a=new Ee$g;a.updateFromIdToken(r);let c=new n({uid:i.localId,auth:e,stsTokenManager:a,isAnonymous:o}),u={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||false,ph
15oneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:s,metadata:new ve$f(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!s?.length};return Object.assign(c,u),c}};var fr$9=new Map;function x$n(n){V$l(n instanceof Function,"Expected a class definition");let e=fr$9.get(n);return e?(V$l(e instanceof n,"Instance stored in cache mismatched with class"),e):(e=new n,fr$9.set(n,e),e)}var Ks$3=(()=>{class n{constructor(){this.type="NONE",this.storage={};}async _isAvailable(){return true}async _set(t,r){this.storage[t]=r;}async _get(t){let r=this.storage[t];return r===void 0?null:r}async _remove(t){delete this.storage[t];}_addListener(t,r){}_removeListener(t,r){}}return n.type="NONE",n})(),jt$g=Ks$3;function He$h(n,e,t){return `firebase:${n}:${e}:${t}`}var Ge$d=class n{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;let{config:i,name:s}=this.auth;this.fullUserKey=He$h(this.userKey,i.apiKey,s),this.fullPersistenceKey=He$h("persistence",i.apiKey,s),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler);}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){let t=await qe$d(this.auth,{idToken:e}).catch(()=>{});return t?q$m._fromGetAccountInfoResponse(this.auth,t,e):null}return q$m._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler);}static async create(e,t,r="authUser"){if(!t.length)return new n(x$n(jt$g),e,r);let i=(await Promise.all(t.map(async u=>{if(await u._isAvailable())return u}))).filter(u=>u),s=i[0]||x$n(jt$g),o=He$h(r,e.config.apiKey,e.name),a=null;for(let u of t)try{let h=await u._get(o);if(h){let f;if(typeof h=="string"){let d=await qe$d(e,{idToken:h}).catch(()=>{});if(!d)break;f=await q$m._fromGetAccountInfoResponse(e,d,h);}else f=q$m._fromJSON(e,h);u!==s&&(a=f),s=u;break}}catch{}let c=i.filter(u=>u._shouldAllowMigration);return !s._shouldAllowMigration||!c.length?new n(s,e,r):(s=c[0],a&&await s._set(o,a.toJSON()),await Promise.all(t.map(async u=>{if(u!==s)try{await u._remove(o);}catch{}})),new n(s,e,r))}};function pr$a(n){let e=n.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return "Opera";if(Hr$6(e))return "IEMobile";if(e.includes("msie")||e.includes("trident/"))return "IE";if(e.includes("edge/"))return "Edge";if(xr$9(e))return "Firefox";if(e.includes("silk/"))return "Silk";if(Br$7(e))return "Blackberry";if($r$7(e))return "Webos";if(Fr$7(e))return "Safari";if((e.includes("chrome/")||Vr$8(e))&&!e.includes("edge/"))return "Chrome";if(Wr$7(e))return "Android";{let t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=n.match(t);if(r?.length===2)return r[1]}return "Other"}function xr$9(n=v$l()){return /firefox\//i.test(n)}function Fr$7(n=v$l()){let e=n.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Vr$8(n=v$l()){return /crios\//i.test(n)}function Hr$6(n=v$l()){return /iemobile/i.test(n)}function Wr$7(n=v$l()){return /android/i.test(n)}function Br$7(n=v$l()){return /blackberry/i.test(n)}function $r$7(n=v$l()){return /webos/i.test(n)}function An$9(n=v$l()){return /iphone|ipad|ipod/i.test(n)||/macintosh/i.test(n)&&/mobile/i.test(n)}function Js$4(n=v$l()){return An$9(n)&&!!window.navigator?.standalone}function Ys$4(){return $n$8()&&document.documentMode===10}function zr$8(n=v$l()){return An$9(n)||Wr$7(n)||$r$7(n)||Br$7(n)||/windows phone/i.test(n)||Hr$6(n)}function jr$7(n,e=[]){let t;switch(n){case "Browser":t=pr$a(v$l());break;case "Worker":t=`${pr$a(v$l())}-${n}`;break;default:t=n;}let r=e.length?e.join(","):"FirebaseCore-web";return `${t}/JsCore/${ue$a}/${r}`}var qt$d=class qt{constructor(e){this.auth=e,this.queue=[];}pushCallback(e,t){let r=s=>new Promise((o,a)=>{try{let c=e(s);o(c);}catch(c){a(c);}});r.onAbort=t,this.queue.push(r);let i=this.queue.length-1;return ()=>{this.queue[i]=()=>Promise.resolve();}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let r of this.queue)await r(e),r.onAbort&&t.push(r.onAbort);}catch(r){t.reverse();for(let i of t)try{i();}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}};async function Xs$3(n,e={}){return I$k(n,"GET","/v2/passwordPolicy",_$g(n,e))}var Qs$3=6,Gt$9=class Gt{constructor(e){let t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??Qs$3,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),t.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),t.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),t.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),t.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??false,this.schemaVersion=e.schemaVersion;}validatePassword(e){let t={isValid:true,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&
15(t.isValid=t.meetsMinPasswordLength??true),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??true),t.isValid&&(t.isValid=t.containsLowercaseLetter??true),t.isValid&&(t.isValid=t.containsUppercaseLetter??true),t.isValid&&(t.isValid=t.containsNumericCharacter??true),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??true),t}validatePasswordLengthOptions(e,t){let r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),i&&(t.meetsMaxPasswordLength=e.length<=i);}validatePasswordCharacterOptions(e,t){this.updatePasswordCharacterOptionsStatuses(t,false,false,false,false);let r;for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r));}updatePasswordCharacterOptionsStatuses(e,t,r,i,s){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=s));}};
15var Kt$e=class Kt{constructor(e,t,r,i){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ke$g(this),this.idTokenSubscription=new Ke$g(this),this.beforeStateQueue=new qt$d(this),this.redirectUser=null,this.isProactiveRefreshEnabled=false,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=true,this._isInitialized=false,this._deleted=false,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=kr$8,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:false},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(s=>this._resolvePersistenceManagerAvailable=s);}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=x$n(t)),this._initializationPromise=this.queue(async()=>{if(!this._deleted&&(this.persistenceManager=await Ge$d.create(this,e),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this);}catch{}await this.initializeCurrentUser(t),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=true);}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,true);}}async initializeCurrentUserFromIdToken(e){try{let t=await qe$d(this,{idToken:e}),r=await q$m._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(r);}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null);}}async initializeCurrentUser(e){if(E$m(this.app)){let s=this.app.settings.authIdToken;return s?new Promise(o=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(o,o));}):this.directlySetCurrentUser(null)}let t=await this.assertedPersistence.getCurrentUser(),r=t,i=false;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let s=this.redirectUser?._redirectEventId,o=r?._redirectEventId,a=await this.tryRedirectSignIn(e);(!s||s===o)&&a?.user&&(r=a.user,i=true);}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r);}catch(s){r=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s));}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return l$d(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0);}catch{await this._setRedirectUser(null);}return t}async reloadAndSetCurrentUserOrClear(e){try{await be$f(e);}catch(t){if(t?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=Us$4();}async _delete(){this._deleted=true;}async updateCurrentUser(e){if(E$m(this.app))return Promise.reject(A$i(this));let t=e?p$g(e):null;return t&&l$d(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=false){if(!this._deleted)return e&&l$d(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners();})}async signOut(){return E$m(this.app)?Promise.reject(A$i(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,true))}setPersistence(e){return E$m(this.app)?Promise.reject(A$i(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(x$n(e));})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){let e=await Xs$3(this),t=new Gt$9(e);this.tenantId===null?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t;}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new M$m("auth","Firebase",e());}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>
15{if(this.currentUser)e();else {let r=this.onAuthStateChanged(()=>{r(),e();},t);}})}async revokeAccessToken(e){if(this.currentUser){let t=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:t};this.tenantId!=null&&(r.tenantId=this.tenantId),await Gs$4(this,r);}}toJSON(){return {apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,t){let r=await this.getOrInitRedirectPersistenceManager(t);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&x$n(e)||this._popupRedirectResolver;l$d(t,this,"argument-error"),this.redirectPersistenceManager=await Ge$d.create(this,[x$n(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser();}return this.redirectPersistenceManager}async _redirectUserForId(e){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners();}_key(){return `${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=true,this.currentUser&&this._currentUser._startProactiveRefresh();}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=false,this.currentUser&&this._currentUser._stopProactiveRefresh();}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser));}registerStateListener(e,t,r,i){if(this._deleted)return ()=>{};let s=typeof t=="function"?t:t.next.bind(t),o=false,a=this._isInitialized?Promise.resolve():this._initializationPromise;if(l$d(a,this,"internal-error"),a.then(()=>{o||s(this.currentUser);}),typeof t=="function"){let c=e.addObserver(t,r,i);return ()=>{o=true,c();}}else {let c=e.addObserver(t);return ()=>{o=true,c();}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser();}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return l$d(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=jr$7(this.config.clientPlatform,this._getFrameworks()));}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){let e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);let t=await this.heartbeatServiceProvider.getImmediate({optional:true})?.getHeartbeatsHeader();t&&(e["X-Firebase-Client"]=t);let r=await this._getAppCheckToken();return r&&(e["X-Firebase-AppCheck"]=r),e}async _getAppCheckToken(){if(E$m(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=await this.appCheckServiceProvider.getImmediate({optional:true})?.getToken();return e?.error&&Ls$4(`Error while retrieving App Check token: ${e.error}`),e?.token}};function T$l(n){return p$g(n)}var Ke$g=class Ke{constructor(e){this.auth=e,this.observer=null,this.addObserver=Gn$a(t=>this.observer=t);}get next(){return l$d(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}};var Pe$e={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Zs$3(n){Pe$e=n;}function Sn$9(n){return Pe$e.loadJS(n)}
15function eo$6(){return Pe$e.recaptchaV2Script}function to$6(){return Pe$e.recaptchaEnterpriseScript}function no$7(){return Pe$e.gapiScript}function qr$7(n){return `__${n}${Math.floor(Math.random()*1e6)}`}var ro$6=500,io$6=6e4,xe$e=1e12,Jt$e=class Jt{constructor(e){this.auth=e,this.counter=xe$e,this._widgets=new Map;}render(e,t){let r=this.counter;return this._widgets.set(r,new Qt$d(e,this.auth.name,t||{})),this.counter++,r}reset(e){let t=e||xe$e;this._widgets.get(t)?.delete(),this._widgets.delete(t);}getResponse(e){let t=e||xe$e;return this._widgets.get(t)?.getResponse()||""}async execute(e){let t=e||xe$e;return this._widgets.get(t)?.execute(),""}},Yt$d=class Yt{constructor(){this.enterprise=new Xt$d;}ready(e){e();}execute(e,t){return Promise.resolve("token")}render(e,t){return ""}},Xt$d=class Xt{ready(e){e();}execute(e,t){return Promise.resolve("token")}render(e,t){return ""}},Qt$d=class Qt{constructor(e,t,r){this.params=r,this.timerId=null,this.deleted=false,this.responseToken=null,this.clickHandler=()=>{this.execute();};let i=typeof e=="string"?document.getElementById(e):e;l$d(i,"argument-error",{appName:t}),this.container=i,this.isVisible=this.params.size!=="invisible",this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler);}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=true,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler);}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=so$5(50);let{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken);}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,t)try{t();}catch{}this.isVisible&&this.execute();},io$6);},ro$6));}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}};function so$5(n){let e=[],t="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let r=0;r<n;r++)e.push(t.charAt(Math.floor(Math.random()*t.length)));return e.join("")}var oo$6="recaptcha-enterprise",ye$g="NO_RECAPTCHA",Je$c=class Je{constructor(e){this.type=oo$6,this.auth=T$l(e);}async verify(e="verify",t=false){async function r(s){if(!t){if(s.tenantId==null&&s._agentRecaptchaConfig!=null)return s._agentRecaptchaConfig.siteKey;if(s.tenantId!=null&&s._tenantRecaptchaConfigs[s.tenantId]!==void 0)return s._tenantRecaptchaConfigs[s.tenantId].siteKey}return new Promise(async(o,a)=>{Dr$8(s,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(c=>{if(c.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else {let u=new je$f(c);return s.tenantId==null?s._agentRecaptchaConfig=u:s._tenantRecaptchaConfigs[s.tenantId]=u,o(u.siteKey)}}).catch(c=>{a(c);});})}function i(s,o,a){let c=window.grecaptcha;dr$a(c)?c.enterprise.ready(()=>{c.enterprise.execute(s,{action:e}).then(u=>{o(u);}).catch(()=>{o(ye$g);});}):a(Error("No reCAPTCHA enterprise script loaded."));}return this.auth.settings.appVerificationDisabledForTesting?new Yt$d().execute("siteKey",{action:"verify"}):new Promise((s,o)=>{r(this.auth).then(a=>{if(!t&&dr$a(window.grecaptcha))i(a,s,o);else {if(typeof window>"u"){o(new Error("RecaptchaVerifier is only supported in browser"));return}let c=to$6();c.length!==0&&(c+=a),Sn$9(c).then(()=>{i(a,s,o);}).catch(u=>{o(u);});}}).catch(a=>{o(a);});})}};async function ge$c(n,e,t,r=false,i=false){let s=new Je$c(n),o;if(i)o=ye$g;else try{o=await s.verify(t);}catch{o=await s.verify(t,true);}let a=r$d({},e);if(t==="mfaSmsEnrollment"||t==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in a){let c=a.phoneEnrollmentInfo.phoneNumber,u=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:c,recaptchaToken:u,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}});}else if("phoneSignInInfo"in a){let c=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:c,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}}
15);}return a}return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function G$l(n,e,t,r,i){if(i==="EMAIL_PASSWORD_PROVIDER")if(n._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){let s=await ge$c(n,e,t,t==="getOobCode");return r(n,s)}else return r(n,e).catch(async s=>{if(s.code==="auth/missing-recaptcha-token"){console.log(`${t} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);let o=await ge$c(n,e,t,t==="getOobCode");return r(n,o)}else return Promise.reject(s)});else if(i==="PHONE_PROVIDER")if(n._getRecaptchaConfig()?.isProviderEnabled("PHONE_PROVIDER")){let s=await ge$c(n,e,t);return r(n,s).catch(async o=>{if(n._getRecaptchaConfig()?.getProviderEnforcementState("PHONE_PROVIDER")==="AUDIT"&&(o.code==="auth/missing-recaptcha-token"||o.code==="auth/invalid-app-credential")){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${t} flow.`);let a=await ge$c(n,e,t,false,true);return r(n,a)}return Promise.reject(o)})}else {let s=await ge$c(n,e,t,false,true);return r(n,s)}else return Promise.reject(i+" provider is not supported.")}async function ao$5(n){let e=T$l(n),t=await Dr$8(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new je$f(t);e.tenantId==null?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,r.isAnyProviderEnabled()&&new Je$c(e).verify();}function Gr$7(n,e){let t=xt$e(n,"auth");if(t.isInitialized()){let i=t.getImmediate(),s=t.getOptions();if($$p(s,e??{}))return i;S$q(i,"already-initialized");}return t.initialize({options:e})}function co$5(n,e){let t=e?.persistence||[],r=(Array.isArray(t)?t:[t]).map(x$n);e?.errorMap&&n._updateErrorMap(e.errorMap),n._initializeWithPersistence(r,e?.popupRedirectResolver);}function Kr$7(n,e,t){let r=T$l(n);
15l$d(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");let i=!!t?.disableWarnings,s=Jr$7(e),{host:o,port:a}=uo$5(e),c=a===null?"":`:${a}`,u={url:`${s}//${o}${c}/`},h=Object.freeze({host:o,port:a,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator){l$d(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),l$d($$p(u,r.config.emulator)&&$$p(h,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=u,r.emulatorConfig=h,r.settings.appVerificationDisabledForTesting=true,pe$g(o)?(xn$7(`${s}//${o}${c}`),Fn$a("Auth",true)):i||lo$5();}function Jr$7(n){let e=n.indexOf(":");return e<0?"":n.substr(0,e+1)}function uo$5(n){let e=Jr$7(n),t=/(\/\/)?([^?#/]+)/.exec(n.substr(e.length));if(!t)return {host:"",port:null};let r=t[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){let s=i[1];return {host:s,port:mr$9(r.substr(s.length+1))}}else {let[s,o]=r.split(":");return {host:s,port:mr$9(o)}}}function mr$9(n){if(!n)return null;let e=Number(n);return isNaN(e)?null:e}function lo$5(){function n(){let e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e);}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",n):n());}var J$p=class J{constructor(e,t){this.providerId=e,this.signInMethod=t;}toJSON(){return D$m("not implemented")}_getIdTokenResponse(e){return D$m("not implemented")}_linkToIdToken(e,t){return D$m("not implemented")}_getReauthenticationResolver(e){return D$m("not implemented")}};async function Yr$8(n,e){return I$k(n,"POST","/v1/accounts:resetPassword",_$g(n,e))}async function ho$5(n,e){return I$k(n,"POST","/v1/accounts:update",e)}async function fo$4(n,e){return I$k(n,"POST","/v1/accounts:signUp",e)}async function po$4(n,e){return I$k(n,"POST","/v1/accounts:update",_$g(n,e))}async function mo$5(n,e){return B$r(n,"POST","/v1/accounts:signInWithPassword",_$g(n,e))}async function ut$h(n,e){return I$k(n,"POST","/v1/accounts:sendOobCode",_$g(n,e))}async function go$5(n,e){return ut$h(n,e)}async function _o$5(n,e){return ut$h(n,e)}async function Io$5(n,e){return ut$h(n,e)}async function Eo$5(n,e){return ut$h(n,e)}async function yo$5(n,e){return B$r(n,"POST","/v1/accounts:signInWithEmailLink",_$g(n,e))}async function To$5(n,e){return B$r(n,"POST","/v1/accounts:signInWithEmailLink",_$g(n,e))}var Ae$f=class n extends J$p{constructor(e,t,r,i=null){super("password",r),this._email=e,this._password=t,this._tenantId=i;}static _fromEmailAndPassword(e,t){return new n(e,t,"password")}static _fromEmailAndCode(e,t,r=null){return new n(e,t,"emailLink",r)}toJSON(){return {email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t=typeof e=="string"?JSON.parse(e):e;if(t?.email&&t?.password){if(t.signInMethod==="password")return this._fromEmailAndPassword(t.email,t.password);if(t.signInMethod==="emailLink")return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case "password":let t={returnSecureToken:true,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return G$l(e,t,"signInWithPassword",mo$5,"EMAIL_PASSWORD_PROVIDER");case "emailLink":return yo$5(e,{email:this._email,oobCode:this._password});default:S$q(e,"internal-error");}}async _linkToIdToken(e,t){switch(this.signInMethod){case "password":let r={idToken:t,returnSecureToken:true,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return G$l(e,r,"signUpPassword",fo$4,"EMAIL_PASSWORD_PROVIDER");case "emailLink":return To$5(e,{idToken:t,email:this._email,oobCode:this._password});default:S$q(e,"internal-error");}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}};async function F$k(n,e){return B$r(n,"POST","/v1/accounts:signInWithIdp",_$g(n,e))}var wo$5="http://localhost",W$r=class n extends J$p{constructor(){super(...arguments),this.pendingToken=null;}static _fromParams(e){let t=new n(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
15(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):S$q("argument-error"),t}toJSON(){return {idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let a=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i}=a,s=v$m(a,["providerId","signInMethod"]);if(!r||!i)return null;let o=new n(r,i);return o.idToken=s.idToken||void 0,o.accessToken=s.accessToken||void 0,o.secret=s.secret,o.nonce=s.nonce,o.pendingToken=s.pendingToken||null,o}_getIdTokenResponse(e){let t=this.buildRequest();return F$k(e,t)}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,F$k(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=false,F$k(e,t)}buildRequest(){let e={requestUri:wo$5,returnSecureToken:true};if(this.pendingToken)e.pendingToken=this.pendingToken;else {let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=X$k(t);}return e}};async function gr$a(n,e){return I$k(n,"POST","/v1/accounts:sendVerificationCode",_$g(n,e))}async function vo$5(n,e){return B$r(n,"POST","/v1/accounts:signInWithPhoneNumber",_$g(n,e))}async function bo$5(n,e){let t=await B$r(n,"POST","/v1/accounts:signInWithPhoneNumber",_$g(n,e));if(t.temporaryProof)throw _e$d(n,"account-exists-with-different-credential",t);return t}var Ao$5={USER_NOT_FOUND:"user-not-found"};async function So$5(n,e){let t=s$e(r$d({},e),{operation:"REAUTH"});return B$r(n,"POST","/v1/accounts:signInWithPhoneNumber",_$g(n,t),Ao$5)}var Ye$f=class n extends J$p{constructor(e){super("phone","phone"),this.params=e;}static _fromVerification(e,t){return new n({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new n({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return vo$5(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return bo$5(e,r$d({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return So$5(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:i}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:i}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){typeof e=="string"&&(e=JSON.parse(e));let{verificationId:t,verificationCode:r,phoneNumber:i,temporaryProof:s}=e;return !r&&!t&&!i&&!s?null:new n({verificationId:t,verificationCode:r,phoneNumber:i,temporaryProof:s})}};function Ro$6(n){switch(n){case "recoverEmail":return "RECOVER_EMAIL";case "resetPassword":return "PASSWORD_RESET";case "signIn":return "EMAIL_SIGNIN";case "verifyEmail":return "VERIFY_EMAIL";case "verifyAndChangeEmail":return "VERIFY_AND_CHANGE_EMAIL";case "revertSecondFactorAddition":return "REVERT_SECOND_FACTOR_ADDITION";default:return null}}function Co$5(n){let e=ie$h(se$g(n)).link,t=e?ie$h(se$g(e)).deep_link_id:null,r=ie$h(se$g(n)).deep_link_id;return (r?ie$h(se$g(r)).link:null)||r||t||e||n}var Se$g=class n{constructor(e){let t=ie$h(se$g(e)),r=t.apiKey??null,i=t.oobCode??null,s=Ro$6(t.mode??null);l$d(r&&i&&s,"argument-error"),this.apiKey=r,this.operation=s,this.code=i,this.continueUrl=t.continueUrl??null,this.languageCode=t.lang??null,this.tenantId=t.tenantId??null;}static parseLink(e){let t=Co$5(e);try{return new n(t)}catch{return null}}};var Rn$8=(()=>{class n{constructor(){this.providerId=n.PROVIDER_ID;}static credential(t,r){return Ae$f._fromEmailAndPassword(t,r)}static credentialWithLink(t,r){let i=Se$g.parseLink(r);return l$d(i,"argument-error"),Ae$f._fromEmailAndCode(t,i.code,i.tenantId)}}n.PROVIDER_ID="password",n.EMAIL_PASSWORD_SIGN_IN_METHOD="password",n.EMAIL_LINK_SIGN_IN_METHOD="emailLink";return n})(),L$m=class L{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={};}setDefaultLanguage(e){this.defaultLanguageCode=e;}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}};var Y$m=class Y extends L$m{constructor(){super(...arguments),this.scopes=[];}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return [...this.scopes]}},Zt$d=class n extends Y$m{static credentialFromJSON(e){let t=typeof e=="string"?JSON.parse(e):e;return l$d("providerId"in t&&"signInMethod"in t,"argument-error"),W$r._fromParams(t)}credential(e){return this._credential(s$e(r$d({},e),{nonce:e.rawNonce}))}_credential(e){return l$d(e.idToken||e.accessToken,"argument-error"),W$r._fromParams(s$e(r$d({}
15,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return n.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return n.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:s,nonce:o,providerId:a}=e;if(!r&&!i&&!t&&!s||!a)return null;try{return new n(a)._credential({idToken:t,accessToken:r,nonce:o,pendingToken:s})}catch{return null}}};var Po$5=(()=>{class n extends Y$m{constructor(){super("facebook.com");}static credential(t){return W$r._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return n.credentialFromTaggedObject(t)}static credentialFromError(t){return n.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch{return null}}}n.FACEBOOK_SIGN_IN_METHOD="facebook.com",n.PROVIDER_ID="facebook.com";return n})(),ko$5=(()=>{class n extends Y$m{constructor(){super("google.com"),this.addScope("profile");}static credential(t,r){return W$r._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:r})}static credentialFromResult(t){return n.credentialFromTaggedObject(t)}static credentialFromError(t){return n.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{oauthIdToken:r,oauthAccessToken:i}=t;if(!r&&!i)return null;try{return n.credential(r,i)}catch{return null}}}n.GOOGLE_SIGN_IN_METHOD="google.com",n.PROVIDER_ID="google.com";return n})(),Oo$5=(()=>{class n extends Y$m{constructor(){super("github.com");}static credential(t){return W$r._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return n.credentialFromTaggedObject(t)}static credentialFromError(t){return n.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch{return null}}}n.GITHUB_SIGN_IN_METHOD="github.com",n.PROVIDER_ID="github.com";return n})(),No$5="http://localhost",Xe$c=class n extends J$p{constructor(e,t){super(e,e),this.pendingToken=t;}_getIdTokenResponse(e){let t=this.buildRequest();return F$k(e,t)}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,F$k(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=false,F$k(e,t)}toJSON(){return {signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){let t=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i,pendingToken:s}=t;return !r||!i||!s||r!==i?null:new n(r,s)}static _create(e,t){return new n(e,t)}buildRequest(){return {requestUri:No$5,returnSecureToken:true,pendingToken:this.pendingToken}}};var Do$5="saml.",en$b=class n extends L$m{constructor(e){l$d(e.startsWith(Do$5),"argument-error"),super(e);}static credentialFromResult(e){return n.samlCredentialFromTaggedObject(e)}static credentialFromError(e){return n.samlCredentialFromTaggedObject(e.customData||{})}static credentialFromJSON(e){let t=Xe$c.fromJSON(e);return l$d(t,"argument-error"),t}static samlCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{pendingToken:t,providerId:r}=e;if(!t||!r)return null;try{return Xe$c._create(r,t)}catch{return null}}};var Lo$5=(()=>{class n extends Y$m{constructor(){super("twitter.com");}static credential(t,r){return W$r._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:r})}static credentialFromResult(t){return n.credentialFromTaggedObject(t)}static credentialFromError(t){return n.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{oauthAccessToken:r,oauthTokenSecret:i}
15=t;if(!r||!i)return null;try{return n.credential(r,i)}catch{return null}}}n.TWITTER_SIGN_IN_METHOD="twitter.com",n.PROVIDER_ID="twitter.com";return n})();async function Xr$7(n,e){return B$r(n,"POST","/v1/accounts:signUp",_$g(n,e))}var k$m=class n{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType;}static async _fromIdTokenResponse(e,t,r,i=false){let s=await q$m._fromIdTokenResponse(e,r,i),o=_r$9(r);return new n({user:s,providerId:o,_tokenResponse:r,operationType:t})}static async _forOperation(e,t,r){await e._updateTokensIfNecessary(r,true);let i=_r$9(r);return new n({user:e,providerId:i,_tokenResponse:r,operationType:t})}};function _r$9(n){return n.providerId?n.providerId:"phoneNumber"in n?"phone":null}async function Mo$5(n){if(E$m(n.app))return Promise.reject(A$i(n));let e=T$l(n);if(await e._initializationPromise,e.currentUser?.isAnonymous)return new k$m({user:e.currentUser,providerId:null,operationType:"signIn"});let t=await Xr$7(e,{returnSecureToken:true}),r=await k$m._fromIdTokenResponse(e,"signIn",t,true);return await e._updateCurrentUser(r.user),r}
15var tn$b=class n extends P$f{constructor(e,t,r,i){super(t.code,t.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,n.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:t.customData._serverResponse,operationType:r};}static _fromErrorAndOperation(e,t,r,i){return new n(e,t,r,i)}};function Qr$7(n,e,t,r){return (e==="reauthenticate"?t._getReauthenticationResolver(n):t._getIdTokenResponse(n)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?tn$b._fromErrorAndOperation(n,s,e,r):s})}function Zr$6(n){return new Set(n.map(({providerId:e})=>e).filter(e=>!!e))}async function Uo$6(n,e){let t=p$g(n);await lt$f(true,t,e);let{providerUserInfo:r}=await $s$4(t.auth,{idToken:await t.getIdToken(),deleteProvider:[e]}),i=Zr$6(r||[]);return t.providerData=t.providerData.filter(s=>i.has(s.providerId)),i.has("phone")||(t.phoneNumber=null),await t.auth._persistUserIfCurrent(t),t}async function ei$8(n,e,t=false){let r=await H$m(n,e._linkToIdToken(n.auth,await n.getIdToken()),t);return k$m._forOperation(n,"link",r)}async function lt$f(n,e,t){await be$f(e);let r=Zr$6(e.providerData),i=n===false?"provider-already-linked":"no-such-provider";l$d(r.has(t)===n,e.auth,i);}async function ti$8(n,e,t=false){let{auth:r}=n;if(E$m(r.app))return Promise.reject(A$i(r));let i="reauthenticate";try{let s=await H$m(n,Qr$7(r,i,e,n),t);l$d(s.idToken,r,"internal-error");let o=ct$d(s.idToken);l$d(o,r,"internal-error");let{sub:a}=o;return l$d(n.uid===a,r,"user-mismatch"),k$m._forOperation(n,i,s)}catch(s){throw s?.code==="auth/user-not-found"&&S$q(r,"user-mismatch"),s}}async function ni$8(n,e,t=false){if(E$m(n.app))return Promise.reject(A$i(n));let r="signIn",i=await Qr$7(n,r,e),s=await k$m._fromIdTokenResponse(n,r,i);return t||await n._updateCurrentUser(s.user),s}async function dt$e(n,e){return ni$8(T$l(n),e)}async function ri$8(n,e){let t=p$g(n);return await lt$f(false,t,e.providerId),ei$8(t,e)}async function xo$5(n,e){return ti$8(p$g(n),e)}async function Fo$5(n,e){return B$r(n,"POST","/v1/accounts:signInWithCustomToken",_$g(n,e))}async function Vo$5(n,e){if(E$m(n.app))return Promise.reject(A$i(n));let t=T$l(n),r=await Fo$5(t,{token:e,returnSecureToken:true}),i=await k$m._fromIdTokenResponse(t,"signIn",r);return await t._updateCurrentUser(i.user),i}var ee$b=class ee{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName;}static _fromServerResponse(e,t){return "phoneInfo"in t?nn$a._fromServerResponse(e,t):"totpInfo"in t?rn$b._fromServerResponse(e,t):S$q(e,"internal-error")}},nn$a=class n extends ee$b{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo;}static _fromServerResponse(e,t){return new n(t)}},rn$b=class n extends ee$b{constructor(e){super("totp",e);}static _fromServerResponse(e,t){return new n(t)}};function ht$f(n,e,t){l$d(t.url?.length>0,n,"invalid-continue-uri"),l$d(typeof t.dynamicLinkDomain>"u"||t.dynamicLinkDomain.length>0,n,"invalid-dynamic-link-domain"),l$d(typeof t.linkDomain>"u"||t.linkDomain.length>0,n,"invalid-hosting-link-domain"),e.continueUrl=t.url,e.dynamicLinkDomain=t.dynamicLinkDomain,e.linkDomain=t.linkDomain,e.canHandleCodeInApp=t.handleCodeInApp,t.iOS&&(l$d(t.iOS.bundleId.length>0,n,"missing-ios-bundle-id"),e.iOSBundleId=t.iOS.bundleId),t.android&&(l$d(t.android.packageName.length>0,n,"missing-android-pkg-name"),e.androidInstallApp=t.android.installApp,e.androidMinimumVersionCode=t.android.minimumVersion,e.androidPackageName=t.android.packageName);}async function Cn$6(n){let e=T$l(n);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy();}async function Ho$5(n,e,t){let r=T$l(n),i={requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"};t&&ht$f(r,i,t),await G$l(r,i,"getOobCode",_o$5,"EMAIL_PASSWORD_PROVIDER");}async function Wo$6(n,e,t){await Yr$8(p$g(n),{oobCode:e,newPassword:t}).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&Cn$6(n),r});}async function Bo$5(n,e){await po$4(p$g(n),{oobCode:e});}async function ii$8(n,e){let t=p$g(n),r=await Yr$8(t,{oobCode:e}),i=r.requestType;switch(l$d(i,t,"internal-error"),i){case "EMAIL_SIGNIN":break;case "VERIFY_AND_CHANGE_EMAIL":l$d(r.newEmail,t,"internal-error");break;case "REVERT_SECOND_FACTOR_ADDITION":l$d(r.mfaInfo,t,"internal-error");default:l$d(r.email,t,"internal-error");}let s=null;return r.mfaInfo&&(s=ee$b._fromServerResponse(T$l(t),r.mfaInfo)),{data:{email:(r.requestType==="VERIFY_AND_CHANGE_EMAIL"?r.newEmail:r.email)||null,previousEmail:(r.requestType==="VERIFY_AND_CHANGE_EMAIL"?r.email:r.newEmail)||null,multiFactorInfo:s},operation:i}}async function $o$6(n,e){let{data:t}=await ii$8(p$g(n),e);return t.email}async function zo$5(n,e,t){if(E$m(n.app))return Promise.reject(A$i(n));let r=T$l(n),o=await G$l(r,{returnSecureToken:true,email:e,password:t,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Xr$7,"EMAIL_PASSWORD_PROVIDER").catch(c=>{throw c.code==="auth/password-does-not-meet-requirements"&&Cn$6(n),c}),a=await k$m._fromIdTokenResponse(r,"signIn",o);return await r._updateCurrentUser(a.user),a}function jo$6(n,e,t){return E$m(n.app)?Promise.reject(A$i(n)):dt$e(p$g(n),Rn$8.credential(e,t)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&Cn$6(n),r})}async function qo$7(n,e,t){let r=T$l(n),i={requestType:"EMAIL_SIGNIN",email:e,clientType:"CLIENT_TYPE_WEB"};function s(o,a){l$d(a.handleCodeInApp,r,"argument-error"),a&&ht$f(r,o,a);}s(i,t),await G$l(r,i,"getOobCode",Io$5,"EMAIL_PASSWORD_PROVIDER");}function Go$6(n,e){return Se$g.parseLink(e)?.operation==="EMAIL_SIGNIN"}async function Ko$7(n,e,t){if(E$m(n.app))return Promise.reject(A$i(n));let r=p$g(n),i=Rn$8.credentialWithLink(e,t||we$g());return l$d(i._tenantId===(r.tenantId||null),r,"tenant-id-mismatch"),dt$e(r,i)}async function Jo$6(n,e){return I$k(n,"POST","/v1/accounts:createAuthUri",_$g(n,e))}async function Yo$6(n,e){let t=vn$a()?we$g():"http://localhost",r={identifier:e,continueUri:t},{signinMethods:i}=await Jo$6(p$g(n),r);return i||[]}async function Xo$7(n,e){let t=p$g(n),i={requestType:"VERIFY_EMAIL",idToken:await n.getIdToken()};e&&ht$f(t.auth,i,e);let{email:s}=await go$5(t.auth,i);s!==n.email&&await n.reload();}async function Qo$7(n,e,t){let r=p$g(n),s={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await n.getIdToken(),newEmail:e};t&&ht$f(r.auth,s,t);let{email:o}=await Eo$5(r.auth,s);o!==n.email&&await n.reload();}async function Zo$6(n,e){return I$k(n,"POST","/v1/accounts:update",e)}async function ea$4(n,{displayName:e,photoURL:t}){if(e===void 0&&t===void 0)return;let r=p$g(n),s={idToken:await r.getIdToken(),displayName:e,photoUrl:t,returnSecureToken:true},o=await H$m(r,Zo$6(r.auth,s));r.displayName=o.displayName||null,r.photoURL=o.photoUrl||null;let a=r.providerData.find(({providerId:c})=>c==="password");a&&(a.displayName=r.displayName,a.photoURL=r.photoURL),await r._updateTokensIfNecessary(o);}function ta$4(n,e){let t=p$g(n);return E$m(t.auth.app)?Promise.reject(A$i(t.auth)):si$7(t,e,null)}function na$3(n,e){return si$7(p$g(n),null,e)}async function si$7(n,e,t){let{auth:r}=n,s={idToken:await n.getIdToken(),returnSecureToken:true};e&&(s.email=e),t&&(s.password=t);let o=await H$m(n,ho$5(r,s));await n._updateTokensIfNecessary(o,true);}function ra$3(n){if(!n)return null;let{providerId:e}=n,t=n.rawUserInfo?JSON.parse(n.rawUserInfo):{},r=n.isNewUser||n.kind==="identitytoolkit#SignupNewUserResponse";if(!e&&n?.idToken){let i=ct$d(n.idToken)?.firebase?.sign_in_provider;if(i){let s=i!=="anonymous"&&i!=="custom"?i:null;return new K$r(r,s)}}if(!e)return null;switch(e){case "facebook.com":return new sn$b(r,t);case "github.com":return new on$a(r,t);case "google.com":return new an$8(r,t);case "twitter.com":return new cn$a(r,t,n.screenName||null);
15case "custom":case "anonymous":return new K$r(r,null);default:return new K$r(r,e,t)}}var K$r=class K{constructor(e,t,r={}){this.isNewUser=e,this.providerId=t,this.profile=r;}},Qe$g=class Qe extends K$r{constructor(e,t,r,i){super(e,t,r),this.username=i;}},sn$b=class sn extends K$r{constructor(e,t){super(e,"facebook.com",t);}},on$a=class on extends Qe$g{constructor(e,t){super(e,"github.com",t,typeof t?.login=="string"?t?.login:null);}},an$8=class an extends K$r{constructor(e,t){super(e,"google.com",t);}},cn$a=class cn extends Qe$g{constructor(e,t,r){super(e,"twitter.com",t,r);}};function ia$3(n){let{user:e,_tokenResponse:t}=n;return e.isAnonymous&&!t?{providerId:null,isNewUser:false,profile:null}:ra$3(t)}function sa$3(n,e){return p$g(n).setPersistence(e)}function oi$8(n,e,t,r){return p$g(n).onIdTokenChanged(e,t,r)}function ai$7(n,e,t){return p$g(n).beforeAuthStateChanged(e,t)}function oa$4(n){return p$g(n).signOut()}function aa$3(n,e){return T$l(n).revokeAccessToken(e)}async function ca$4(n){return p$g(n).delete()}var Ze$j=class n{constructor(e,t,r){this.type=e,this.credential=t,this.user=r;}static _fromIdtoken(e,t){return new n("enroll",e,t)}static _fromMfaPendingCredential(e){return new n("signin",e)}toJSON(){return {multiFactorSession:{[this.type==="enroll"?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(e){if(e?.multiFactorSession){if(e.multiFactorSession?.pendingCredential)return n._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(e.multiFactorSession?.idToken)return n._fromIdtoken(e.multiFactorSession.idToken)}return null}};var un$b=class n{constructor(e,t,r){this.session=e,this.hints=t,this.signInResolver=r;}static _fromError(e,t){let r=T$l(e),i=t.customData._serverResponse,s=(i.mfaInfo||[]).map(a=>ee$b._fromServerResponse(r,a));l$d(i.mfaPendingCredential,r,"internal-error");let o=Ze$j._fromMfaPendingCredential(i.mfaPendingCredential);return new n(o,s,async a=>{let c=await a._process(r,o);delete i.mfaInfo,delete i.mfaPendingCredential;let u=s$e(r$d({},i),{idToken:c.idToken,refreshToken:c.refreshToken});switch(t.operationType){case "signIn":let h=await k$m._fromIdTokenResponse(r,t.operationType,u);return await r._updateCurrentUser(h.user),h;case "reauthenticate":return l$d(t.user,r,"internal-error"),k$m._forOperation(t.user,t.operationType,u);default:S$q(r,"internal-error");}})}async resolveSignIn(e){let t=e;return this.signInResolver(t)}};function ua$4(n,e){let t=p$g(n),r=e;return l$d(e.customData.operationType,t,"argument-error"),l$d(r.customData._serverResponse?.mfaPendingCredential,t,"argument-error"),un$b._fromError(t,r)}function Ir$8(n,e){return I$k(n,"POST","/v2/accounts/mfaEnrollment:start",_$g(n,e))}function la$4(n,e){return I$k(n,"POST","/v2/accounts/mfaEnrollment:start",_$g(n,e))}function da$3(n,e){return I$k(n,"POST","/v2/accounts/mfaEnrollment:finalize",_$g(n,e))}function ha$4(n,e){return I$k(n,"POST","/v2/accounts/mfaEnrollment:withdraw",_$g(n,e))}var ln$a=class n{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload(t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map(r=>ee$b._fromServerResponse(e.auth,r)));});}static _fromUser(e){return new n(e)}async getSession(){return Ze$j._fromIdtoken(await this.user.getIdToken(),this.user)}
15async enroll(e,t){let r=e,i=await this.getSession(),s=await H$m(this.user,r._process(this.user.auth,i,t));return await this.user._updateTokensIfNecessary(s),this.user.reload()}async unenroll(e){let t=typeof e=="string"?e:e.uid,r=await this.user.getIdToken();try{let i=await H$m(this.user,ha$4(this.user.auth,{idToken:r,mfaEnrollmentId:t}));this.enrolledFactors=this.enrolledFactors.filter(({uid:s})=>s!==t),await this.user._updateTokensIfNecessary(i),await this.user.reload();}catch(i){throw i}}},Vt$d=new WeakMap;function fa$3(n){let e=p$g(n);return Vt$d.has(e)||Vt$d.set(e,ln$a._fromUser(e)),Vt$d.get(e)}var et$f="__sak";var tt$d=class tt{constructor(e,t){this.storageRetriever=e,this.type=t;}_isAvailable(){try{return this.storage?(this.storage.setItem(et$f,"1"),this.storage.removeItem(et$f),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(false)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}};var pa$3=1e3,ma$3=10,ga$2=(()=>{class n extends tt$d{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,r)=>this.onStorageEvent(t,r),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=zr$8(),this._shouldAllowMigration=true;}forAllChangedKeys(t){for(let r of Object.keys(this.listeners)){let i=this.storage.getItem(r),s=this.localCache[r];i!==s&&t(r,s,i);}}onStorageEvent(t,r=false){if(!t.key){this.forAllChangedKeys((a,c,u)=>{this.notifyListeners(a,u);});return}let i=t.key;r?this.detachListener():this.stopPolling();let s=()=>{let a=this.storage.getItem(i);!r&&this.localCache[i]===a||this.notifyListeners(i,a);},o=this.storage.getItem(i);Ys$4()&&o!==t.newValue&&t.newValue!==t.oldValue?setTimeout(s,ma$3):s();}notifyListeners(t,r){this.localCache[t]=r;let i=this.listeners[t];if(i)for(let s of Array.from(i))s(r&&JSON.parse(r));}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,r,i)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:r,newValue:i}),true);});},pa$3);}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null);}attachListener(){window.addEventListener("storage",this.boundEventHandler);}detachListener(){window.removeEventListener("storage",this.boundEventHandler);}_addListener(t,r){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(r);}_removeListener(t,r){this.listeners[t]&&(this.listeners[t].delete(r),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling());}async _set(t,r){await super._set(t,r),this.localCache[t]=JSON.stringify(r);}async _get(t){let r=await super._get(t);return this.localCache[t]=JSON.stringify(r),r}async _remove(t){await super._remove(t),delete this.localCache[t];}}return n.type="LOCAL",n})(),ci$7=ga$2;var _a$3=(()=>{class n extends tt$d{constructor(){super(()=>window.sessionStorage,"SESSION");}_addListener(t,r){}_removeListener(t,r){}}return n.type="SESSION",n})(),Pn$8=_a$3;function Ia$2(n){return Promise.all(n.map(async e=>{try{return {fulfilled:!0,value:await e}}catch(t){return {fulfilled:false,reason:t}}}))}var Ea$3=(()=>{class n{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this);}static _getInstance(t){let r=this.receivers.find(s=>s.isListeningto(t));if(r)return r;let i=new n(t);return this.receivers.push(i),i}isListeningto(t){return this.eventTarget===t}async handleEvent(t){let r=t,{eventId:i,eventType:s,data:o}=r.data,a=this.handlersMap[s];if(!a?.size)return;r.ports[0].postMessage({status:"ack",eventId:i,eventType:s});let c=Array.from(a).map(async h=>h(r.origin,o)),u=await Ia$2(c);r.ports[0].postMessage({status:"done",eventId:i,eventType:s,response:u});}_subscribe(t,r){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(r);}_unsubscribe(t,r){this.handlersMap[t]&&r&&this.handlersMap[t].delete(r),(!r||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler);}}n.receivers=[];return n})();function ft$e(n="",e=10){let t="";for(let r=0;r<e;r++)t+=Math.floor(Math.random()*10);return n+t}var dn$b=class dn{constructor(e){this.target=e,this.handlers=new Set;}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e);}async _send(e,t,r=50){let i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let s,o;return new Promise((a,c)=>{let u=ft$e("",20);i.port1.start();let h=setTimeout(()=>{c(new Error("unsupported_event"));},r);o={messageChannel:i,onMessage(f){let d=f;if(d.data.eventId===u)switch(d.data.status){case "ack":clearTimeout(h),s=setTimeout(()=>{c(new Error("timeout"));},3e3);break;case "done":clearTimeout(s),a(d.data.response);break;default:clearTimeout(h),clearTimeout(s),c(new Error("invalid_response"));break}}},this.handlers.add(o),i.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:u,data:t},[i.port2]);}).finally(()=>{o&&this.removeMessageHandler(o);})}};function y$f(){return window}
15function ya$3(n){y$f().location.href=n;}function kn$7(){return typeof y$f().WorkerGlobalScope<"u"&&typeof y$f().importScripts=="function"}async function Ta$3(){if(!navigator?.serviceWorker)return null;try{return (await navigator.serviceWorker.ready).active}catch{return null}}function wa$2(){return navigator?.serviceWorker?.controller||null}function va$2(){return kn$7()?self:null}var ui$6="firebaseLocalStorageDb",ba$3=1,nt$g="firebaseLocalStorage",li$7="fbase_key",te$d=class te{constructor(e){this.request=e;}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result);}),this.request.addEventListener("error",()=>{t(this.request.error);});})}};function pt$f(n,e){return n.transaction([nt$g],e?"readwrite":"readonly").objectStore(nt$g)}function Aa$3(){let n=indexedDB.deleteDatabase(ui$6);return new te$d(n).toPromise()}function hn$a(){let n=indexedDB.open(ui$6,ba$3);return new Promise((e,t)=>{n.addEventListener("error",()=>{t(n.error);}),n.addEventListener("upgradeneeded",()=>{let r=n.result;try{r.createObjectStore(nt$g,{keyPath:li$7});}catch(i){t(i);}}),n.addEventListener("success",async()=>{let r=n.result;r.objectStoreNames.contains(nt$g)?e(r):(r.close(),await Aa$3(),e(await hn$a()));});})}async function Er$9(n,e,t){let r=pt$f(n,true).put({[li$7]:e,value:t});return new te$d(r).toPromise()}async function Sa$3(n,e){let t=pt$f(n,false).get(e),r=await new te$d(t).toPromise();return r===void 0?null:r.value}function yr$9(n,e){let t=pt$f(n,true).delete(e);return new te$d(t).toPromise()}var Ra$2=800,Ca$1=3,Pa$2=(()=>{class n{constructor(){this.type="LOCAL",this._shouldAllowMigration=true,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=false,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{});}async _openDb(){return this.db?this.db:(this.db=await hn$a(),this.db)}async _withRetries(t){let r=0;for(;;)try{let i=await this._openDb();return await t(i)}catch(i){if(r++>Ca$1)throw i;this.db&&(this.db.close(),this.db=void 0);}}async initializeServiceWorkerMessaging(){return kn$7()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Ea$3._getInstance(va$2()),this.receiver._subscribe("keyChanged",async(t,r)=>({keyProcessed:(await this._poll()).includes(r.key)})),this.receiver._subscribe("ping",async(t,r)=>["keyChanged"]);}async initializeSender(){if(this.activeServiceWorker=await Ta$3(),!this.activeServiceWorker)return;this.sender=new dn$b(this.activeServiceWorker);let t=await this.sender._send("ping",{},800);t&&t[0]?.fulfilled&&t[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=true);}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||wa$2()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50);}catch{}}async _isAvailable(){try{if(!indexedDB)return !1;let t=await hn$a();return await Er$9(t,et$f,"1"),await yr$9(t,et$f),!0}catch{}return false}async _withPendingWrite(t){this.pendingWrites++;try{await t();}finally{this.pendingWrites--;}}async _set(t,r){return this._withPendingWrite(async()=>(await this._withRetries(i=>Er$9(i,t,r)),this.localCache[t]=r,this.notifyServiceWorker(t)))}async _get(t){let r=await this._withRetries(i=>Sa$3(i,t));return this.localCache[t]=r,r}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(r=>yr$9(r,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){let t=await this._withRetries(s=>{let o=pt$f(s,false).getAll();return new te$d(o).toPromise()});if(!t)return [];if(this.pendingWrites!==0)return [];let r=[],i=new Set;if(t.length!==0)for(let{fbase_key:s,value:o}of t)i.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(o)&&(this.notifyListeners(s,o),r.push(s));for(let s of Object.keys(this.localCache))this.localCache[s]&&!i.has(s)&&(this.notifyListeners(s,null),r.push(s));return r}notifyListeners(t,r){this.localCache[t]=r;let i=this.listeners[t];if(i)for(let s of Array.from(i))s(r);}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),Ra$2);}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null);}_addListener(t,r){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(r);}_removeListener(t,r){this.listeners[t]&&(this.listeners[t].delete(r),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling();}}return n.type="LOCAL",n})(),di$6=Pa$2;function Tr$9(n,e){return I$k(n,"POST","/v2/accounts/mfaSignIn:start",_$g(n,e))}function ka$3(n,e){return I$k(n,"POST","/v2/accounts/mfaSignIn:finalize",_$g(n,e))}var Ht$e=qr$7("rcb"),Oa$2=new Z$h(3e4,6e4),fn$c=class fn{constructor(){this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!y$f().grecaptcha?.render;}load(e,t=""){return l$d(Na$2(t),e,"argument-error"),this.shouldResolveImmediately(t)&&lr$9(y$f().grecaptcha)?Promise.resolve(y$f().grecaptcha):new Promise((r,i)=>{let s=y$f().setTimeout(()=>{i(b$h(e,"network-request-failed"));},Oa$2.get());y$f()[Ht$e]=()=>{y$f().clearTimeout(s),delete y$f()[Ht$e];let a=y$f().grecaptcha;if(!a||!lr$9(a)){i(b$h(e,"internal-error"));return}let c=a.render;a.render=(u,h)=>{let f=c(u,h);return this.counter++,f},this.hostLanguage=t,r(a);};let o=`${eo$6()}?${X$k({onload:Ht$e,render:"explicit",hl:t})}`;
15Sn$9(o).catch(()=>{clearTimeout(s),i(b$h(e,"internal-error"));});})}clearedOneInstance(){this.counter--;}shouldResolveImmediately(e){return !!y$f().grecaptcha?.render&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}};function Na$2(n){return n.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(n)}var pn$b=class pn{async load(e){return new Jt$e(e)}clearedOneInstance(){}};var Te$h="recaptcha",Da$3={theme:"light",type:"image"},mn$b=class mn{constructor(e,t,r=r$d({},Da$3)){this.parameters=r,this.type=Te$h,this.destroyed=false,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=T$l(e),this.isInvisible=this.parameters.size==="invisible",l$d(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");let i=typeof t=="string"?document.getElementById(t):t;l$d(i,this.auth,"argument-error"),this.container=i,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new pn$b:new fn$c,this.validateStartingState();}async verify(){this.assertNotDestroyed();let e=await this.render(),t=this.getAssertedRecaptcha(),r=t.getResponse(e);return r||new Promise(i=>{let s=o=>{o&&(this.tokenChangeListeners.delete(s),i(o));};this.tokenChangeListeners.add(s),this.isInvisible&&t.execute(e);})}render(){try{this.assertNotDestroyed();}catch(e){return Promise.reject(e)}return this.renderPromise?this.renderPromise:(this.renderPromise=this.makeRenderPromise().catch(e=>{throw this.renderPromise=null,e}),this.renderPromise)}_reset(){this.assertNotDestroyed(),this.widgetId!==null&&this.getAssertedRecaptcha().reset(this.widgetId);}clear(){this.assertNotDestroyed(),this.destroyed=true,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach(e=>{this.container.removeChild(e);});}validateStartingState(){l$d(!this.parameters.sitekey,this.auth,"argument-error"),l$d(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),l$d(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach(r=>r(t)),typeof e=="function")e(t);else if(typeof e=="string"){let r=y$f()[e];typeof r=="function"&&r(t);}}}assertNotDestroyed(){l$d(!this.destroyed,this.auth,"internal-error");}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){let t=document.createElement("div");e.appendChild(t),e=t;}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters);}return this.widgetId}
15async init(){l$d(vn$a()&&!kn$7(),this.auth,"internal-error"),await La$3(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);let e=await Ws$4(this.auth);l$d(e,this.auth,"internal-error"),this.parameters.sitekey=e;}getAssertedRecaptcha(){return l$d(this.recaptcha,this.auth,"internal-error"),this.recaptcha}};function La$3(){let n=null;return new Promise(e=>{if(document.readyState==="complete"){e();return}n=()=>e(),window.addEventListener("load",n);}).catch(e=>{throw n&&window.removeEventListener("load",n),e})}var rt$d=class rt{constructor(e,t){this.verificationId=e,this.onConfirmation=t;}confirm(e){let t=Ye$f._fromVerification(this.verificationId,e);return this.onConfirmation(t)}};async function Ma$3(n,e,t){if(E$m(n.app))return Promise.reject(A$i(n));let r=T$l(n),i=await hi$6(r,e,p$g(t));return new rt$d(i,s=>dt$e(r,s))}async function Ua$2(n,e,t){let r=p$g(n);await lt$f(false,r,"phone");let i=await hi$6(r.auth,e,p$g(t));return new rt$d(i,s=>ri$8(r,s))}async function hi$6(n,e,t){if(!n._getRecaptchaConfig())try{await ao$5(n);}catch{console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.");}try{let r;if(typeof e=="string"?r={phoneNumber:e}:r=e,"session"in r){let i=r.session;if("phoneNumber"in r){l$d(i.type==="enroll",n,"internal-error");let s={idToken:i.credential,phoneEnrollmentInfo:{phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"}};return (await G$l(n,s,"mfaSmsEnrollment",async(u,h)=>{if(h.phoneEnrollmentInfo.captchaResponse===ye$g){l$d(t?.type===Te$h,u,"argument-error");let f=await Wt$g(u,h,t);return Ir$8(u,f)}return Ir$8(u,h)},"PHONE_PROVIDER").catch(u=>Promise.reject(u))).phoneSessionInfo.sessionInfo}else {l$d(i.type==="signin",n,"internal-error");let s=r.multiFactorHint?.uid||r.multiFactorUid;l$d(s,n,"missing-multi-factor-info");let o={mfaPendingCredential:i.credential,mfaEnrollmentId:s,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}};return (await G$l(n,o,"mfaSmsSignIn",async(h,f)=>{if(f.phoneSignInInfo.captchaResponse===ye$g){l$d(t?.type===Te$h,h,"argument-error");let d=await Wt$g(h,f,t);return Tr$9(h,d)}return Tr$9(h,f)},"PHONE_PROVIDER").catch(h=>Promise.reject(h))).phoneResponseInfo.sessionInfo}}else {let i={phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"};return (await G$l(n,i,"sendVerificationCode",async(c,u)=>{if(u.captchaResponse===ye$g){l$d(t?.type===Te$h,c,"argument-error");let h=await Wt$g(c,u,t);return gr$a(c,h)}return gr$a(c,u)},"PHONE_PROVIDER").catch(c=>Promise.reject(c))).sessionInfo}}finally{t?._reset();}}async function Wt$g(n,e,t){l$d(t.type===Te$h,n,"argument-error");let r=await t.verify();l$d(typeof r=="string",n,"argument-error");let i=r$d({},e);if("phoneEnrollmentInfo"in i){let s=i.phoneEnrollmentInfo.phoneNumber,o=i.phoneEnrollmentInfo.captchaResponse,a=i.phoneEnrollmentInfo.clientType,c=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:s,recaptchaToken:r,captchaResponse:o,clientType:a,recaptchaVersion:c}}),i}else if("phoneSignInInfo"in i){let s=i.phoneSignInInfo.captchaResponse,o=i.phoneSignInInfo.clientType,a=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:s,clientType:o,recaptchaVersion:a}}),i}else return Object.assign(i,{recaptchaToken:r}),i}function le$e(n,e){return e?x$n(e):(l$d(n._popupRedirectResolver,n,"argument-error"),n._popupRedirectResolver)}var Re$f=class Re extends J$p{constructor(e){super("custom","custom"),this.params=e;}_getIdTokenResponse(e){return F$k(e,this._buildIdpRequest())}_linkToIdToken(e,t){return F$k(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return F$k(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:true,returnIdpCredential:true};return e&&(t.idToken=e),t}};function xa$3(n){return ni$8(n.auth,new Re$f(n),n.bypassAuthState)}function Fa$2(n){let{auth:e,user:t}=n;return l$d(t,e,"internal-error"),ti$8(t,new Re$f(n),n.bypassAuthState)}async function Va$3(n){let{auth:e,user:t}=n;return l$d(t,e,"internal-error"),ei$8(t,new Re$f(n),n.bypassAuthState)}var it$d=class it{constructor(e,t,r,i,s=false){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t];}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this);}catch(r){this.reject(r);}})}async onAuthEvent(e){let{urlResponse:t,sessionId:r,postBody:i,tenantId:s,error:o,type:a}=e;if(o){this.reject(o);return}let c={auth:this.auth,requestUri:t,sessionId:r,tenantId:s||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(c));}catch(u){this.reject(u);}}onError(e){this.reject(e);}getIdpTask(e){switch(e){case "signInViaPopup":case "signInViaRedirect":return xa$3;case "linkViaPopup":case "linkViaRedirect":return Va$3;case "reauthViaPopup":case "reauthViaRedirect":return Fa$2;default:S$q(this.auth,"internal-error");}}resolve(e){V$l(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp();}reject(e){V$l(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp();}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp();}};var Ha$2=new Z$h(2e3,1e4);async function Wa$2(n,e,t){if(E$m(n.app))return Promise.reject(b$h(n,"operation-not-supported-in-this-environment"));let r=T$l(n);Ce$d(n,e,L$m);let i=le$e(r,t);return new On$8(r,"signInViaPopup",e,i).executeNotNull()}async function Ba$2(n,e,t){let r=p$g(n);if(E$m(r.auth.app))return Promise.reject(b$h(r.auth,"operation-not-supported-in-this-environment"));Ce$d(r.auth,e,L$m);let i=le$e(r.auth,t);return new On$8(r.auth,"reauthViaPopup",e,i,r).executeNotNull()}async function $a$2(n,e,t){let r=p$g(n);Ce$d(r.auth,e,L$m);let i=le$e(r.auth,t);return new On$8(r.auth,"linkViaPopup",e,i,r).executeNotNull()}var On$8=(()=>{class n extends it$d{constructor(t,r,i,s,o){super(t,r,s,o),this.provider=i,this.authWindow=null,this.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=this;}async executeNotNull(){let t=await this.execute();return l$d(t,this.auth,"internal-error"),t}async onExecution(){V$l(this.filter.length===1,"Popup operations only handle one event");let t=ft$e();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(r=>{this.reject(r);}),this.resolver._isIframeWebStorageSupported(this.auth,r=>{r||this.reject(b$h(this.auth,"web-storage-unsupported"));}),this.pollUserCancellation();}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(b$h(this.auth,"cancelled-popup-request"));}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null;}pollUserCancellation(){let t=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(b$h(this.auth,"popup-closed-by-user"));},8e3);return}this.pollId=window.setTimeout(t,Ha$2.get());};t();}}n.currentPopupAction=null;return n})(),za$3="pendingRedirect",We$g=new Map,gn$b=class gn extends it$d{constructor(e,t,r=false){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null;}async execute(){let e=We$g.get(this.auth._key());if(!e){try{let r=await ja$2(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r);}catch(t){e=()=>Promise.reject(t);}We$g.set(this.auth._key(),e);}return this.bypassAuthState||We$g.set(this.auth._key(),()=>Promise.resolve(null)),e()}
15async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null);}}async onExecution(){}cleanUp(){}};async function ja$2(n,e){let t=mi$5(e),r=pi$7(n);if(!await r._isAvailable())return false;let i=await r._get(t)==="true";return await r._remove(t),i}async function fi$5(n,e){return pi$7(n)._set(mi$5(e),"true")}function qa$2(n,e){We$g.set(n._key(),e);}function pi$7(n){return x$n(n._redirectPersistence)}function mi$5(n){return He$h(za$3,n.config.apiKey,n.name)}function Ga$2(n,e,t){return Ka$2(n,e,t)}async function Ka$2(n,e,t){if(E$m(n.app))return Promise.reject(A$i(n));let r=T$l(n);Ce$d(n,e,L$m),await r._initializationPromise;let i=le$e(r,t);return await fi$5(i,r),i._openRedirect(r,e,"signInViaRedirect")}function Ja$2(n,e,t){return Ya$1(n,e,t)}async function Ya$1(n,e,t){let r=p$g(n);Ce$d(r.auth,e,L$m),await r.auth._initializationPromise;let i=le$e(r.auth,t);await lt$f(false,r,e.providerId),await fi$5(i,r.auth);let s=await Qa$2(r);return i._openRedirect(r.auth,e,"linkViaRedirect",s)}async function Xa$2(n,e){return await T$l(n)._initializationPromise,gi$4(n,e,false)}async function gi$4(n,e,t=false){if(E$m(n.app))return Promise.reject(A$i(n));let r=T$l(n),i=le$e(r,e),o=await new gn$b(r,i,t).execute();return o&&!t&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}async function Qa$2(n){let e=ft$e(`${n.uid}:::`);return n._redirectEventId=e,await n.auth._setRedirectUser(n),await n.auth._persistUserIfCurrent(n),e}var Za$2=600*1e3,_n$9=class _n{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=false,this.lastProcessedEventTime=Date.now();}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null);}unregisterConsumer(e){this.consumers.delete(e);}onEvent(e){if(this.hasEventBeenHandled(e))return false;let t=false;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(t=true,this.sendToConsumer(e,r),this.saveEventToCache(e));}),this.hasHandledPotentialRedirect||!ec$2(e)||(this.hasHandledPotentialRedirect=true,t||(this.queuedRedirectEvent=e,t=true)),t}sendToConsumer(e,t){if(e.error&&!_i$4(e)){let r=e.error.code?.split("auth/")[1]||"internal-error";t.onError(b$h(this.auth,r));}else t.onAuthEvent(e);}isEventForConsumer(e,t){let r=t.eventId===null||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=Za$2&&this.cachedEventUids.clear(),this.cachedEventUids.has(wr$8(e))}saveEventToCache(e){this.cachedEventUids.add(wr$8(e)),this.lastProcessedEventTime=Date.now();}};function wr$8(n){return [n.type,n.eventId,n.sessionId,n.tenantId].filter(e=>e).join("-")}function _i$4({type:n,error:e}){return n==="unknown"&&e?.code==="auth/no-auth-event"}function ec$2(n){switch(n.type){case "signInViaRedirect":case "linkViaRedirect":case "reauthViaRedirect":return true;case "unknown":return _i$4(n);default:return false}}async function tc$1(n,e={}){return I$k(n,"GET","/v1/projects",e)}var nc$2=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,rc$2=/^https?/;async function ic$2(n){if(n.config.emulator)return;let{authorizedDomains:e}=await tc$1(n);for(let t of e)try{if(sc$2(t))return}catch{}S$q(n,"unauthorized-domain");}function sc$2(n){let e=we$g(),{protocol:t,hostname:r}=new URL(e);if(n.startsWith("chrome-extension://")){let o=new URL(n);return o.hostname===""&&r===""?t==="chrome-extension:"&&n.replace("chrome-extension://","")===e.replace("chrome-extension://",""):t==="chrome-extension:"&&o.hostname===r}if(!rc$2.test(t))return false;if(nc$2.test(n))return r===n;let i=n.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}var oc$2=new Z$h(3e4,6e4);function vr$a(){let n=y$f().___jsl;if(n?.H){for(let e of Object.keys(n.H))if(n.H[e].r=n.H[e].r||[],n.H[e].L=n.H[e].L||[],n.H[e].r=[...n.H[e].L],n.CP)for(let t=0;t<n.CP.length;t++)n.CP[t]=null;}}function ac$2(n){return new Promise((e,t)=>
15{function r(){vr$a(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext());},ontimeout:()=>{vr$a(),t(b$h(n,"network-request-failed"));},timeout:oc$2.get()});}if(y$f().gapi?.iframes?.Iframe)e(gapi.iframes.getContext());else if(y$f().gapi?.load)r();else {let i=qr$7("iframefcb");return y$f()[i]=()=>{gapi.load?r():t(b$h(n,"network-request-failed"));},Sn$9(`${no$7()}?onload=${i}`).catch(s=>t(s))}}).catch(e=>{throw Be$f=null,e})}var Be$f=null;function cc$2(n){return Be$f=Be$f||ac$2(n),Be$f}var uc$2=new Z$h(5e3,15e3),lc$2="__/auth/iframe",dc$2="emulator/auth/iframe",hc$2={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},fc$2=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function pc$2(n){let e=n.config;l$d(e.authDomain,n,"auth-domain-config-required");let t=e.emulator?bn$a(e,dc$2):`https://${n.config.authDomain}/${lc$2}`,r={apiKey:e.apiKey,appName:n.name,v:ue$a},i=fc$2.get(n.config.apiHost);i&&(r.eid=i);let s=n._getFrameworks();return s.length&&(r.fw=s.join(",")),`${t}?${X$k(r).slice(1)}`}async function mc$2(n){let e=await cc$2(n),t=y$f().gapi;return l$d(t,n,"internal-error"),e.open({where:document.body,url:pc$2(n),messageHandlersFilter:t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:hc$2,dontclear:true},r=>new Promise(async(i,s)=>{await r.restyle({setHideOnLeave:false});let o=b$h(n,"network-request-failed"),a=y$f().setTimeout(()=>{s(o);},uc$2.get());function c(){y$f().clearTimeout(a),i(r);}r.ping(c).then(c,()=>{s(o);});}))}var gc$2={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},_c$2=500,Ic$2=600,Ec$2="_blank",yc$2="http://localhost",st$d=class st{constructor(e){this.window=e,this.associatedEvent=null;}close(){if(this.window)try{this.window.close();}catch{}}};function Tc$2(n,e,t,r=_c$2,i=Ic$2){let s=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),a="",c=s$e(r$d({},gc$2),{width:r.toString(),height:i.toString(),top:s,left:o}),u=v$l().toLowerCase();t&&(a=Vr$8(u)?Ec$2:t),xr$9(u)&&(e=e||yc$2,c.scrollbars="yes");
15let h=Object.entries(c).reduce((d,[w,R])=>`${d}${w}=${R},`,"");if(Js$4(u)&&a!=="_self")return wc$2(e||"",a),new st$d(null);let f=window.open(e||"",a,h);l$d(f,n,"popup-blocked");try{f.focus();}catch{}return new st$d(f)}function wc$2(n,e){let t=document.createElement("a");t.href=n,t.target=e;let r=document.createEvent("MouseEvent");r.initMouseEvent("click",true,true,window,1,0,0,0,0,false,false,false,false,1,null),t.dispatchEvent(r);}var vc$2="__/auth/handler",bc$2="emulator/auth/handler",Ac$2=encodeURIComponent("fac");async function br$a(n,e,t,r,i,s){l$d(n.config.authDomain,n,"auth-domain-config-required"),l$d(n.config.apiKey,n,"invalid-api-key");let o={apiKey:n.config.apiKey,appName:n.name,authType:t,redirectUrl:r,v:ue$a,eventId:i};if(e instanceof L$m){e.setDefaultLanguage(n.languageCode),o.providerId=e.providerId||"",qn$9(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(let[h,f]of Object.entries({}))o[h]=f;}if(e instanceof Y$m){let h=e.getScopes().filter(f=>f!=="");h.length>0&&(o.scopes=h.join(","));}n.tenantId&&(o.tid=n.tenantId);let a=o;for(let h of Object.keys(a))a[h]===void 0&&delete a[h];let c=await n._getAppCheckToken(),u=c?`#${Ac$2}=${encodeURIComponent(c)}`:"";return `${Sc$2(n)}?${X$k(a).slice(1)}${u}`}function Sc$2({config:n}){return n.emulator?bn$a(n,bc$2):`https://${n.authDomain}/${vc$2}`}var Bt$e="webStorageSupport",In$a=class In{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Pn$8,this._completeRedirectFn=gi$4,this._overrideRedirectResult=qa$2;}async _openPopup(e,t,r,i){V$l(this.eventManagers[e._key()]?.manager,"_initialize() not called before _openPopup()");let s=await br$a(e,t,r,we$g(),i);return Tc$2(e,s,ft$e())}
15async _openRedirect(e,t,r,i){await this._originValidation(e);let s=await br$a(e,t,r,we$g(),i);return ya$3(s),new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){let{manager:i,promise:s}=this.eventManagers[t];return i?Promise.resolve(i):(V$l(s,"If manager is not set, promise should be"),s)}let r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t];}),r}async initAndGetManager(e){let t=await mc$2(e),r=new _n$9(e);return t.register("authEvent",i=>(l$d(i?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(Bt$e,{type:Bt$e},i=>{let s=i?.[0]?.[Bt$e];s!==void 0&&t(!!s),S$q(e,"internal-error");},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER);}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=ic$2(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return zr$8()||Fr$7()||An$9()}},Ii$3=In$a,En$a=class En{constructor(e){this.factorId=e;}_process(e,t,r){switch(t.type){case "enroll":return this._finalizeEnroll(e,t.credential,r);case "signin":return this._finalizeSignIn(e,t.credential);default:return D$m("unexpected MultiFactorSessionType")}}};var Rc$2=(()=>{class n{static assertionForEnrollment(t,r){return ot$g._fromSecret(t,r)}static assertionForSignIn(t,r){return ot$g._fromEnrollmentId(t,r)}static async generateSecret(t){let r=t;l$d(typeof r.user?.auth<"u","internal-error");let i=await la$4(r.user.auth,{idToken:r.credential,totpEnrollmentInfo:{}});return at$h._fromStartTotpMfaEnrollmentResponse(i,r.user.auth)}}return n.FACTOR_ID="totp",n})(),ot$g=class n extends En$a{constructor(e,t,r){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=r;}static _fromSecret(e,t){return new n(t,void 0,e)}static _fromEnrollmentId(e,t){return new n(t,e)}async _finalizeEnroll(e,t,r){return l$d(typeof this.secret<"u",e,"argument-error"),da$3(e,{idToken:t,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)})}async _finalizeSignIn(e,t){l$d(this.enrollmentId!==void 0&&this.otp!==void 0,e,"argument-error");let r={verificationCode:this.otp};return ka$3(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r})}},at$h=class n{constructor(e,t,r,i,s,o,a){this.sessionInfo=o,this.auth=a,this.secretKey=e,this.hashingAlgorithm=t,this.codeLength=r,this.codeIntervalSeconds=i,this.enrollmentCompletionDeadline=s;}static _fromStartTotpMfaEnrollmentResponse(e,t){return new n(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return {sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){let r=false;return (Fe$g(e)||Fe$g(t))&&(r=true),r&&(Fe$g(e)&&(e=this.auth.currentUser?.email||"unknownuser"),Fe$g(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}};function Fe$g(n){return typeof n>"u"||n?.length===0}var Ar$9="@firebase/auth",Sr$9="1.12.0";var yn$b=class yn{constructor(e){this.auth=e,this.internalListeners=new Map;}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null);});this.internalListeners.set(e,t),this.updateProactiveRefresh();}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh());}assertAuthConfigured(){l$d(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth");}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh();}};
15function Cc$2(n){switch(n){case "Node":return "node";case "ReactNative":return "rn";case "Worker":return "webworker";case "Cordova":return "cordova";case "WebExtension":return "web-extension";default:return}}function Pc$2(n){ce$c(new O$s("auth",(e,{options:t})=>{let r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;l$d(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});let c={apiKey:o,authDomain:a,clientPlatform:n,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:jr$7(n)},u=new Kt$e(r,i,s,c);return co$5(u,t),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize();})),ce$c(new O$s("auth-internal",e=>{let t=T$l(e.getProvider("auth").getImmediate());return (r=>new yn$b(r))(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),ae$e(Ar$9,Sr$9,Cc$2(n)),ae$e(Ar$9,Sr$9,"esm2020");}var kc$2=300,Oc$2=wt$j("authIdTokenMaxAge")||kc$2,Rr$8=null,Nc$2=n=>async e=>{let t=e&&await e.getIdTokenResult(),r=t&&(new Date().getTime()-Date.parse(t.issuedAtTime))/1e3;if(r&&r>Oc$2)return;let i=t?.token;Rr$8!==i&&(Rr$8=i,await fetch(n,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}));};function Dc$2(n=or$8()){let e=xt$e(n,"auth");if(e.isInitialized())return e.getImmediate();let t=Gr$7(n,{popupRedirectResolver:Ii$3,persistence:[di$6,ci$7,Pn$8]}),r=wt$j("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){let s=new URL(r,location.origin);if(location.origin===s.origin){let o=Nc$2(s.toString());ai$7(t,o,()=>o(t.currentUser)),oi$8(t,a=>o(a));}}let i=yt$g("auth");return i&&Kr$7(t,`http://${i}`),t}function Lc$2(){return document.getElementsByTagName("head")?.[0]??document}Zs$3({loadJS(n){return new Promise((e,t)=>{let r=document.createElement("script");r.setAttribute("src",n),r.onload=e,r.onerror=i=>{let s=b$h("internal-error");s.customData=i,t(s);},r.type="text/javascript",r.charset="UTF-8",Lc$2().appendChild(r);})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});Pc$2("Browser"); 16function Ft$c(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var We$f=Ft$c(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function S$p(e){return typeof e=="function"}var ci$6=Ft$c(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: 17${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` 18 `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function un$a(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var Q$f=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;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(S$p(r))try{r();}catch(i){t=i instanceof ci$6?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Mf$1(i);}catch(s){t=t??[],s instanceof ci$6?t=[...t,...s.errors]:t.push(s);}}if(t)throw new ci$6(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Mf$1(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&un$a(n,t);}remove(t){let{_finalizers:n}=this;n&&un$a(n,t),t instanceof e&&t._removeParent(this);}};Q$f.EMPTY=(()=>{let e=new Q$f;return e.closed=true,e})();var Xa$1=Q$f.EMPTY;function ui$5(e){return e instanceof Q$f||e&&"closed"in e&&S$p(e.remove)&&S$p(e.add)&&S$p(e.unsubscribe)}function Mf$1(e){S$p(e)?e():e.unsubscribe();}var qe$c={Promise:void 0};var Jn$8={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function li$6(e){Jn$8.setTimeout(()=>{throw e});}function Ce$c(){}function Xn$9(e){e();}var dn$a=class dn extends Q$f{constructor(t){super(),this.isStopped=false,t?
18(this.destination=t,ui$5(t)&&t.add(this)):this.destination=WE;}static create(t,n,r){return new Ze$i(t,n,r)}next(t){this.isStopped?nc$1():this._next(t);}error(t){this.isStopped?nc$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?nc$1():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,super.unsubscribe(),this.destination=null);}_next(t){this.destination.next(t);}_error(t){try{this.destination.error(t);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}};var rc$1=class rc{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){di$5(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){di$5(r);}else di$5(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){di$5(n);}}},Ze$i=class Ze extends dn$a{constructor(t,n,r){super();let o;if(S$p(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new rc$1(o);}};function di$5(e){li$6(e);}function zE(e){throw e}function nc$1(e,t){}var WE={closed:true,next:Ce$c,error:zE,complete:Ce$c};function qE$1(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Ze$i({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new We$f);}});e.subscribe(i);})}function oc$1(e){return S$p(e?.lift)}function I$j(e){return t=>{if(oc$1(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function v$k(e,t,n,r,o){return new ic$1(e,t,n,r,o)}var ic$1=class ic extends dn$a{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function st$c(e,t){return I$j((n,r)=>{let o=0;n.subscribe(v$k(r,i=>{r.next(e.call(t,i,o++));}));})}var Of$1=function(){return Of$1=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);}return t},Of$1.apply(this,arguments)};function k0(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function F0(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Ff$1(e,t,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(e,[])).next());})}function L0(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n);}catch(l){u=[6,l],o=0;}finally{r=i=0;}if(u[0]&5)throw u[1];return {value:u[0]?u[1]:void 0,done:true}}}function kf$1(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 5,645 bytes, line 18
18if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function P0(e,t,n){for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function fn$b(e){return this instanceof fn$b?(this.v=e,this):new fn$b(e)}function Lf$1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(h,y){i.push([f,p,h,y])>1||a(f,p);})});}function a(f,p){try{c(r[f](p));}catch(h){d(i[0][3],h);}}function c(f){f.value instanceof fn$b?Promise.resolve(f.value.v).then(u,l):d(i[0][2],f);}function u(f){a("next",f);}function l(f){a("throw",f);}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1]);}}function Pf$1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof kf$1=="function"?kf$1(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[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 er$8=e=>e&&typeof e.length=="number"&&typeof e!="function";function fi$4(e){return S$p(e?.then)}var tr$8=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ne$f(e){return e}function sc$1(...e){return ac$1(e)}function ac$1(e){return e.length===0?ne$f:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var N$d=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=YE(n)?n:new Ze$i(n,r,o);return Xn$9(()=>{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=jf$1(r),new r((o,i)=>{let s=new Ze$i({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)}[tr$8](){return this}pipe(...n){return ac$1(n)(this)}toPromise(n){return n=jf$1(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function jf$1(e){var t;return (t=e??qe$c.Promise)!==null&&t!==void 0?t:Promise}function ZE(e){return e&&S$p(e.next)&&S$p(e.error)&&S$p(e.complete)}function YE(e){return e&&e instanceof dn$a||ZE(e)&&ui$5(e)}function pi$6(e){return S$p(e[tr$8])}function hi$5(e){return Symbol.asyncIterator&&S$p(e?.[Symbol.asyncIterator])}function gi$3(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function QE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi$4=QE();function yi$3(e){return S$p(e?.[mi$4])}function vi$3(e){return Lf$1(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield fn$b(n.read());if(o)return yield fn$b(void 0);yield yield fn$b(r);}}finally{n.releaseLock();}})}function Di$3(e){return S$p(e?.getReader)}function M$l(e){if(e instanceof N$d)return e;if(e!=null){if(pi$6(e))return KE$1(e);if(er$8(e))return JE(e);if(fi$4(e))return XE(e);if(hi$5(e))return Vf$1(e);if(yi$3(e))return eI(e);if(Di$3(e))return tI(e)}throw gi$3(e)}function KE$1(e){return new N$d(t=>{let n=e[tr$8]();if(S$p(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function JE(e){return new N$d(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function XE(e){return new N$d(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,li$6);})}function eI(e){return new N$d(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function Vf$1(e){return new N$d(t=>{nI(e,t).catch(n=>t.error(n));})}function tI(e){return Vf$1(vi$3(e))}function nI(e,t){var n,r,o,i;return Ff$1(this,void 0,void 0,function*(){try{for(n=Pf$1(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.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}}t.complete();})}function pe$f(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function Bf$1(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,f=()=>{d&&!c.length&&!u&&t.complete();},p=y=>u<r?h(y):c.push(y),h=y=>{u++;let w=false;M$l(n(y,l++)).subscribe(v$k(t,A=>{t.next(A);},()=>{w=true;},void 0,()=>{if(w)try{for(u--;c.length&&u<r;){let A=c.shift();s?pe$f(t,s,()=>h(A)):h(A);}f();}catch(A){t.error(A);}}));};return e.subscribe(v$k(t,p,()=>{d=true,f();})),()=>{}}function Ye$e(e,t,n=1/0){return S$p(t)?Ye$e((r,o)=>st$c((i,s)=>t(r,i,o,s))(M$l(e(r,o))),n):(typeof t=="number"&&(n=t),I$j((r,o)=>Bf$1(r,o,e,n)))}var{isArray:rI}=Array;function oI(e,t){return rI(t)?e(...t):e(t)}function Lt$d(e){return st$c(t=>oI(e,t))}var iI=["addListener","removeListener"],sI=["addEventListener","removeEventListener"],aI=["on","off"];function cc$1(e,t,n,r){if(S$p(n)&&(r=n,n=void 0),r)return cc$1(e,t,n).pipe(Lt$d(r));
18let[o,i]=lI(e)?sI.map(s=>a=>e[s](t,a,n)):cI(e)?iI.map(Hf$1(e,t)):uI(e)?aI.map(Hf$1(e,t)):[];if(!o&&er$8(e))return Ye$e(s=>cc$1(s,t,n))(M$l(e));if(!o)throw new TypeError("Invalid event target");return new N$d(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Hf$1(e,t){return n=>r=>e[n](t,r)}function cI(e){return S$p(e.addListener)&&S$p(e.removeListener)}function uI(e){return S$p(e.on)&&S$p(e.off)}function lI(e){return S$p(e.addEventListener)&&S$p(e.removeEventListener)}function Pt$b(e,t){return I$j((n,r)=>{let o=0;n.subscribe(v$k(r,i=>e.call(t,i,o++)&&r.next(i)));})}var pn$a=new N$d(e=>e.complete());function hn$9(e){return e<=0?()=>pn$a:I$j((t,n)=>{let r=0;t.subscribe(v$k(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Ei$3(e){return I$j((t,n)=>{let r=!1;t.subscribe(v$k(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function Ii$2(e=dI){return I$j((t,n)=>{let r=!1;t.subscribe(v$k(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function dI(){return new We$f}function $f$1(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Pt$b((o,i)=>e(o,i,r)):ne$f,hn$9(1),n?Ei$3(t):Ii$2(()=>new We$f))}function $r$6(e=1/0){return Ye$e(ne$f,e)}function Ci$3(){return $r$6(1)}
18function wi$4(e){return e&&S$p(e.schedule)}function uc$1(e){return e[e.length-1]}function jt$f(e){return S$p(uc$1(e))?e.pop():void 0}function Pe$d(e){return wi$4(uc$1(e))?e.pop():void 0}function Uf$1(e,t){return typeof uc$1(e)=="number"?e.pop():t}function Ur$5(e,t=0){return I$j((n,r)=>{n.subscribe(v$k(r,o=>pe$f(r,e,()=>r.next(o),t),()=>pe$f(r,e,()=>r.complete(),t),o=>pe$f(r,e,()=>r.error(o),t)));})}function bi$2(e,t=0){return I$j((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function Gf$1(e,t){return M$l(e).pipe(bi$2(t),Ur$5(t))}function zf$1(e,t){return M$l(e).pipe(bi$2(t),Ur$5(t))}function Wf$1(e,t){return new N$d(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function qf$1(e,t){return new N$d(n=>{let r;return pe$f(n,t,()=>{r=e[mi$4](),pe$f(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>S$p(r?.return)&&r.return()})}function Ti$3(e,t){if(!e)throw new Error("Iterable cannot be null");return new N$d(n=>{pe$f(n,t,()=>{let r=e[Symbol.asyncIterator]();pe$f(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function Zf$1(e,t){return Ti$3(vi$3(e),t)}function Yf$1(e,t){if(e!=null){if(pi$6(e))return Gf$1(e,t);if(er$8(e))return Wf$1(e,t);if(fi$4(e))return zf$1(e,t);if(hi$5(e))return Ti$3(e,t);if(yi$3(e))return qf$1(e,t);if(Di$3(e))return Zf$1(e,t)}throw gi$3(e)}function je$e(e,t){return t?Yf$1(e,t):M$l(e)}function nr$8(...e){return Ci$3()(je$e(e,Pe$d(e)))}function Qf$1(...e){let t=Pe$d(e);return I$j((n,r)=>{(t?nr$8(e,n,t):nr$8(e,n)).subscribe(r);})}function Kf$1(e,t){return I$j((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(v$k(r,c=>{o?.unsubscribe();let u=0,l=i++;M$l(e(c,l)).subscribe(o=v$k(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Jf$1(){return I$j((e,t)=>{let n=null;e._refCount++;let r=v$k(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe();});e.subscribe(r),r.closed||(n=e.connect());})}var lc$1=class lc extends N$d{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,oc$1(t)&&(this.lift=t.lift);}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return (!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe();}connect(){let t=this._connection;if(!t){t=this._connection=new Q$f;let n=this.getSubject();t.add(this.source.subscribe(v$k(n,void 0,()=>{this._teardown(),n.complete();},r=>{this._teardown(),n.error(r);},()=>this._teardown()))),t.closed&&(this._connection=null,t=Q$f.EMPTY);}return t}refCount(){return Jf$1()(this)}};var rr$9={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new Q$f(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=rr$9;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var Xf$1=Ft$c(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var le$d=(()=>{class e extends N$d{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Si$3(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Xf$1}next(n){Xn$9(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Xn$9(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){Xn$9(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,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?Xa$1:(this.currentObservers=null,i.push(n),new Q$f(()=>{this.currentObservers=null,un$a(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new N$d;return n.source=this,n}}return e.create=(t,n)=>new Si$3(t,n),e})(),Si$3=class Si extends le$d{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Xa$1}};var Gr$6=class Gr extends le$d{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var zr$7={now(){return (zr$7.delegate||Date).now()},delegate:void 0};var gn$a=class gn extends le$d{constructor(t=1/0,n=1/0,r=zr$7){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<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 _i$3=class _i extends Q$f{constructor(t,n){super();}schedule(t,n=0){return this}};var Wr$6={setInterval(e,t,...n){let{delegate:r}=Wr$6;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Vt$c=class Vt extends _i$3{constructor(t,n){super(t,n),this.scheduler
18=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Wr$6.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&Wr$6.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,un$a(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var fI=1,dc$1,fc$1={};function ep$2(e){return e in fc$1?(delete fc$1[e],true):false}var tp$2={setImmediate(e){let t=fI++;return fc$1[t]=true,dc$1||(dc$1=Promise.resolve()),dc$1.then(()=>ep$2(t)&&e()),t},clearImmediate(e){ep$2(e);}};var{setImmediate:pI,clearImmediate:hI}=tp$2,qr$6={setImmediate(...e){let{delegate:t}=qr$6;return (t?.setImmediate||pI)(...e)},clearImmediate(e){return (hI)(e)},delegate:void 0};var Mi$2=class Mi extends Vt$c{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=qr$6.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(qr$6.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0));}};var or$7=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};or$7.now=zr$7.now;var Bt$d=class Bt extends or$7{constructor(t,n=or$7.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ni$2=class Ni extends Bt$d{flush(t){this._active=true;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var gI=new Ni$2(Mi$2);var we$f=new Bt$d(Vt$c),pc$1=we$f;var Ai$3=class Ai extends Vt$c{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=rr$9.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(rr$9.cancelAnimationFrame(n),t._scheduled=void 0);}};var xi$3=class xi extends Bt$d{flush(t){this._active=true;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var mI=new xi$3(Ai$3);function yI(...e){let t=Pe$d(e);return je$e(e,t)}function vI(e,t){let n=S$p(e)?e:()=>e,r=o=>o.error(n());return new N$d(r)}function DI(e){return !!e&&(e instanceof N$d||S$p(e.lift)&&S$p(e.subscribe))}function EI(e,t){return new Promise((r,o)=>{let i=false,s;e.subscribe({next:a=>{s=a,i=true;},error:o,complete:()=>{i?r(s):o(new We$f);}});})}function Ri$3(e){return e instanceof Date&&!isNaN(e)}var np$2=Ft$c(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function rp$2(e,t){let{first:n,each:r,with:o=II,scheduler:i=we$f,meta:s=null}=Ri$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return I$j((a,c)=>{let u,l,d=null,f=0,p=h=>{l=pe$f(c,i,()=>{try{u.unsubscribe(),M$l(o({meta:s,lastValue:d,seen:f})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(v$k(c,h=>{l?.unsubscribe(),f++,c.next(d=h),r>0&&p(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!f&&p(n!=null?typeof n=="number"?n:+n-i.now():r);})}function II(e){throw new np$2(e)}var{isArray:CI}=Array,{getPrototypeOf:wI,prototype:bI,keys:TI}=Object;function Oi$3(e){if(e.length===1){let t=e[0];if(CI(t))return {args:t,keys:null};if(SI(t)){let n=TI(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function SI(e){return e&&typeof e=="object"&&wI(e)===bI}function ki$2(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function _I(...e){let t=Pe$d(e),n=jt$f(e),{args:r,keys:o}=Oi$3(e);if(r.length===0)return je$e([],t);let i=new N$d(hc$1(r,t,o?s=>ki$2(o,s):ne$f));return n?i.pipe(Lt$d(n)):i}function hc$1(e,t,n=ne$f){return r=>{op$2(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)op$2(t,()=>{let u=je$e(e[c],t),l=false;u.subscribe(v$k(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function op$2(e,t,n){e?pe$f(n,e,t):t();}function MI(e){return new N$d(t=>{M$l(e()).subscribe(t);})}function NI(...e){let t=jt$f(e),{args:n,keys:r}=Oi$3(e),o=new N$d(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=false;M$l(n[l]).subscribe(v$k(i,f=>{d||(d=true,u--),a[l]=f;},()=>c--,void 0,()=>
18{(!c||!d)&&(u||i.next(r?ki$2(r,a):a),i.complete());}));}});return t?o.pipe(Lt$d(t)):o}function Qe$f(e=0,t,n=pc$1){let r=-1;return t!=null&&(wi$4(t)?n=t:r=t),new N$d(o=>{let i=Ri$3(e)?+e-n.now():e;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 AI(e=0,t=we$f){return e<0&&(e=0),Qe$f(e,e,t)}function xI(...e){let t=Pe$d(e),n=Uf$1(e,1/0),r=e;return r.length?r.length===1?M$l(r[0]):$r$6(n)(je$e(r,t)):pn$a}var RI=new N$d(Ce$c);var{isArray:OI}=Array;function Fi$2(e){return e.length===1&&OI(e[0])?e[0]:e}function kI(...e){return e=Fi$2(e),e.length===1?M$l(e[0]):new N$d(FI(e))}function FI(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r<e.length;r++)n.push(M$l(e[r]).subscribe(v$k(t,o=>{if(n){for(let i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null;}t.next(o);})));}}function ip$2(e){return I$j((t,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();};t.subscribe(v$k(n,u=>{r=!0,o=u,i||M$l(e(u)).subscribe(i=v$k(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function sp$2(e,t=we$f){return ip$2(()=>Qe$f(e,t))}function LI(e){return I$j((t,n)=>{let r=[];return t.subscribe(v$k(n,o=>r.push(o),()=>{n.next(r),n.complete();})),M$l(e).subscribe(v$k(n,()=>{let o=r;r=[],n.next(o);},Ce$c)),()=>{r=null;}})}function gc$1(e){return I$j((t,n)=>{let r=null,o=!1,i;r=t.subscribe(v$k(n,void 0,void 0,s=>{i=M$l(e(s,gc$1(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function ap$2(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(v$k(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function mc$1(...e){let t=jt$f(e);return t?sc$1(mc$1(...e),Lt$d(t)):I$j((n,r)=>{hc$1([n,...Fi$2(e)])(r);})}function PI(...e){return mc$1(...e)}function jI(e,t){return S$p(t)?Ye$e(e,t,1):Ye$e(e,1)}function cp$1(...e){let t=Pe$d(e);return I$j((n,r)=>{Ci$3()(je$e([n,...e],t)).subscribe(r);})}function VI(...e){return cp$1(...e)}function up$1(e,t=we$f){return I$j((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+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(v$k(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function lp$1(){return I$j((e,t)=>{e.subscribe(v$k(t,Ce$c));})}function dp$1(e){return st$c(()=>e)}function yc$1(e,t){return t?n=>nr$8(t.pipe(hn$9(1),lp$1()),n.pipe(yc$1(e))):Ye$e((n,r)=>M$l(e(n,r)).pipe(hn$9(1),dp$1(n)))}function fp$1(e,t=we$f){let n=Qe$f(e,t);return yc$1(()=>n)}function pp$2(e,t=ne$f){return e=e??BI,I$j((n,r)=>{let o,i=!0;n.subscribe(v$k(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function BI(e,t){return e===t}function hp$1(e){return I$j((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function vc$1(e){return e<=0?()=>pn$a:I$j((t,n)=>{let r=[];t.subscribe(v$k(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function HI(e,t){let n=arguments.length>=2;return r=>r.pipe(ne$f,vc$1(1),n?Ei$3(t):Ii$2(()=>new We$f))}function gp$1(){return I$j((e,t)=>{let n,r=!1;e.subscribe(v$k(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function mp$1(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?ne$f:I$j((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(v$k(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let f=()=>{c?(c.unsubscribe(),c=null,u()):l=!0;};if(r!=null){let p=typeof r=="number"?Qe$f(r):M$l(r(d,a)),h=v$k(s,()=>{h.unsubscribe(),f();},()=>{s.complete();});p.subscribe(h);}else f();}else s.error(d);})),l&&(c.unsubscribe(),c=null,u());};u();})}function $I(e){return I$j((t,n)=>{let r,o=!1,i,s=()=>{r=t.subscribe(v$k(n,void 0,void 0,a=>{i||(i=new le$d,M$l(e(i)).subscribe(v$k(n,()=>r?s():o=!0))),i&&i.next(a);})),o&&(r.unsubscribe(),r=null,o=!1,s());};s();})}function yp$1(e,t){return I$j(ap$2(e,t,arguments.length>=2,!0))}function Li$2(e={}){let{connector:t=()=>new le$d,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,f=()=>{a?.unsubscribe(),a=void 0;},p=()=>{f(),s=c=void 0,l=d=false;},h=()=>{let y=s;p(),y?.unsubscribe();};return I$j((y,w)=>{u++,!d&&!l&&f();let A=c=c??t();w.add(()=>{u--,u===0&&!d&&!l&&(a=Dc$1(h,o));}),A.subscribe(w),!s&&u>
180&&(s=new Ze$i({next:V=>A.next(V),error:V=>{d=!0,f(),a=Dc$1(p,n,V),A.error(V);},complete:()=>{l=!0,f(),a=Dc$1(p,r),A.complete();}}),M$l(y).subscribe(s));})(i)}}function Dc$1(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Ze$i({next:()=>{r.unsubscribe(),e();}});return M$l(t(...n)).subscribe(r)}function vp(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,Li$2({connector:()=>new gn$a(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Dp$2(e){return Pt$b((t,n)=>e<=n)}function Pi$2(e){return I$j((t,n)=>{M$l(e).subscribe(v$k(n,()=>n.complete(),Ce$c)),!n.closed&&t.subscribe(n);})}function Ep$1(e,t=false){return I$j((n,r)=>{let o=0;n.subscribe(v$k(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}function Ip$1(e,t,n){let r=S$p(e)||t||n?{next:e,error:t,complete:n}:e;return r?I$j((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(v$k(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!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);}));}):ne$f}function Cp$2(e,t){return I$j((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,c=null,u=!1,l=()=>{c?.unsubscribe(),c=null,i&&(p(),u&&r.complete());},d=()=>{c=null,u&&r.complete();},f=h=>c=M$l(e(h)).subscribe(v$k(r,l,d)),p=()=>{if(s){s=!1;let h=a;a=null,r.next(h),!u&&f(h);}};n.subscribe(v$k(r,h=>{s=!0,a=h,!(c&&!c.closed)&&(o?p():f(h));},()=>{u=!0,!(i&&s&&c&&!c.closed)&&r.complete();}));})}function UI(e,t=we$f,n){let r=Qe$f(e,t);return Cp$2(()=>r,n)}function wp$1(...e){let t=jt$f(e);return I$j((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)M$l(e[c]).subscribe(v$k(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(ne$f))&&(s=null));},Ce$c));n.subscribe(v$k(r,c=>{if(a){let u=[c,...i];r.next(t?t(...u):u);}}));})}var De$d=null,ji$3=false,mn$a=1,K$q=Symbol("SIGNAL");function C$a(e){let t=De$d;return De$d=e,t}function Vi$2(){return De$d}var Ht$d={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Et$d(e){if(ji$3)throw new Error("");if(De$d===null)return;De$d.consumerOnSignalRead(e);let t=De$d.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=De$d.recomputing;if(r&&(n=t!==void 0?t.nextProducer:De$d.producers,n!==void 0&&n.producer===e)){De$d.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=mn$a;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===De$d&&(!r||o.knownValidAtEpoch===mn$a))return;let i=ar$8(De$d),s={producer:e,consumer:De$d,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:mn$a,lastReadVersion:e.version,nextConsumer:void 0};De$d.producersTail=s,t!==void 0?t.nextProducer=s:De$d.producers=s,i&&_p$1(e,s);}function bp$1(){mn$a++;}function Dn$7(e){if(!(ar$8(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===mn$a)){if(!e.producerMustRecompute(e)&&!sr$8(e)){ir$b(e);return}e.producerRecomputeValue(e),ir$b(e);}}function Ec$1(e){if(e.consumers===void 0)return;let t=ji$3;ji$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||zI(r);}}finally{ji$3=t;}}function Ic$1(){return De$d?.consumerAllowSignalWrites!==false}function zI(e){e.dirty=true,Ec$1(e),e.consumerMarkedDirty?.(e);}function ir$b(e){e.dirty=false,e.lastCleanEpoch=mn$a;}function It$d(e){return e&&Tp$1(e),C$a(e)}function Tp$1(e){if(e.producersTail?.knownValidAtEpoch===mn$a){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function $t$d(e,t){C$a(t),e&&Sp$1(e);}function Sp$1(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(ar$8(e))do n=Cc$1(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function sr$8(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Dn$7(n),r!==n.version))return true}return false}function Ut$e(e){if(ar$8(e)){let t=e.producers;for(;t!==void 0;)t=Cc$1(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function _p$1(e,t){let n=e.consumersTail,r=ar$8(e);
18if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)_p$1(o.producer,o);}function Cc$1(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!ar$8(t)){let i=t.producers;for(;i!==void 0;)i=Cc$1(i);}return n}function ar$8(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Yr$7(e,t){return Object.is(e,t)}function Qr$6(e,t){let n=Object.create(WI);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Dn$7(n),Et$d(n),n.value===at$g)throw n.error;return n.value};return r[K$q]=n,r}var yn$a=Symbol("UNSET"),vn$9=Symbol("COMPUTING"),at$g=Symbol("ERRORED"),WI=s$e(r$d({},Ht$d),{value:yn$a,dirty:true,error:null,equal:Yr$7,kind:"computed",producerMustRecompute(e){return e.value===yn$a||e.value===vn$9},producerRecomputeValue(e){if(e.value===vn$9)throw new Error("");let t=e.value;e.value=vn$9;let n=It$d(e),r,o=false;try{r=e.computation(),C$a(null),o=t!==yn$a&&t!==at$g&&r!==at$g&&e.equal(t,r);}catch(i){r=at$g,e.error=i;}finally{$t$d(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function qI(){throw new Error}var Mp$2=qI;function Np$1(e){Mp$2(e);}function wc$1(e){Mp$2=e;}function bc$1(e,t){let n=Object.create(Kr$6);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Ap$1(n);return r[K$q]=n,[r,s=>Gt$8(n,s),s=>Bi$2(n,s)]}function Ap$1(e){return Et$d(e),e.value}function Gt$8(e,t){Ic$1()||Np$1(e),e.equal(e.value,t)||(e.value=t,YI(e));}function Bi$2(e,t){Ic$1()||Np$1(e),Gt$8(e,t(e.value));}var Kr$6=s$e(r$d({},Ht$d),{equal:Yr$7,value:void 0,kind:"signal"});function YI(e){e.version++,bp$1(),Ec$1(e);}var Tc$1=s$e(r$d({},Ht$d),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Sc$1(e){if(e.dirty=false,e.version>0&&!sr$8(e))return;e.version++;let t=It$d(e);try{e.cleanup(),e.fn();}finally{$t$d(e,t);}}var _c$1;function Hi$3(){return _c$1}function ct$c(e){let t=_c$1;return _c$1=e,t}var xp$1=Symbol("NotFound");function cr$7(e){return e===xp$1||e?.name==="\u0275NotFound"}function Mc$1(e,t,n){let r=Object.create(QI);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Dn$7(r),Et$d(r),r.value===at$g)throw r.error;return r.value};return i[K$q]=r,i}function Rp$1(e,t){Dn$7(e),Gt$8(e,t),ir$b(e);}function Op$1(e,t){if(Dn$7(e),e.value===at$g)throw e.error;Bi$2(e,t),ir$b(e);}var QI=s$e(r$d({},Ht$d),{value:yn$a,dirty:true,error:null,equal:Yr$7,kind:"linkedSignal",producerMustRecompute(e){return e.value===yn$a||e.value===vn$9},producerRecomputeValue(e){if(e.value===vn$9)throw new Error("");let t=e.value;e.value=vn$9;let n=It$d(e),r,o=false;try{let i=e.source(),s=t!==yn$a&&t!==at$g,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,C$a(null),o=s&&r!==at$g&&e.equal(t,r);}catch(i){r=at$g,e.error=i;}finally{$t$d(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function kp$1(e){let t=C$a(null);try{return e()}finally{C$a(t);}}var Xr$6=class Xr{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".");}},Vp$2=new Xr$6("22.0.8");var Zi$4="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D$l=class D extends Error{code;constructor(t,n){super(qt$c(t,n)),this.code=t;}};function KI(e){return `NG0${Math.abs(e)}`}function qt$c(e,t){return `${KI(e)}${t?": "+t:""}`}function j$p(e){for(let t in e)if(e[t]===j$p)return t;throw Error("")}function Bp$3(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function oo$5(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(oo$5).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(` 19`);return r>=0?n.slice(0,r):n}function Yi$3(e,t){return e?t?`${e} ${t}`:e:t||""}var JI=j$p({__forward_ref__:j$p});function Qi$3(e){return e.__forward_ref__=Qi$3,e}function re$b(e){return Hc$1(e)?e():e}function Hc$1(e){return typeof e=="function"&&e.hasOwnProperty(JI)&&e.__forward_ref__===Qi$3}function L$l(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function io$5(e){return {providers:e.providers||[],imports:e.imports||[]}}function so$4(e){return eC$1(e,Ki$3)}function XI(e){return so$4(e)!==null}function eC$1(e,t){return e.hasOwnProperty(t)&&e[t]||null}function tC$1(e){let t=e?.[Ki$3]??null;return t||null}function Ac$1(e){return e&&e.hasOwnProperty(Ui$3)?e[Ui$3]:null}var Ki$3=j$p({\u0275prov:j$p}),Ui$3=j$p({\u0275inj:j$p}),b$g=class b{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=L$l({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function $c$1(e){return e&&!!e.\u0275providers}var Uc$1=j$p({\u0275cmp:j$p}),Gc$1=j$p({\u0275dir:j$p}),zc$1=j$p({\u0275pipe:j$p}),Wc$1=j$p({\u0275mod:j$p}),eo$5=j$p({\u0275fac:j$p}),bn$9=j$p({__NG_ELEMENT_ID__:j$p}),Fp$2=j$p({__NG_ENV_ID__:j$p});function Hp$2(e){return Ji$4(e),e[Wc$1]||null}function ut$g(e){return Ji$4(e),e[Uc$1]||null}function ao$4(e){return Ji$4(e),e[Gc$1]||null}function qc$1(e){return Ji$4(e),e[zc$1]||null}function Ji$4(e,t){if(e==null)throw new D$l(-919,false)}function Je$b(e){return typeof e=="string"?e:e==null?"":String(e)}var $p$2=j$p({ngErrorCode:j$p}),nC$1=j$p({ngErrorMessage:j$p});j$p({ngTokenPath:j$p});function Zc$1(e,t){return Up$2("",-200)}function Xi$5(e,t){throw new D$l(-201,false)}function Up$2(e,t,n){let r=new D$l(t,e);return r[$p$2]=t,r[nC$1]=e,r}function oC$1(e){return e[$p$2]}var xc$1;function Gp$2(){return xc$1}function Ee$f(e){let t=xc$1;return xc$1=e,t}function Yc$1(e,t,n){let r=so$4(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Xi$5();}var lt$e=globalThis;var iC$1={},En$9=iC$1,sC$1="__NG_DI_FLAG__",Rc$1=class Rc{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=In$9(n)||0;try{return this.injector.get(t,r&8?null:En$9,r)}catch(o){if(cr$7(o))return o;throw o}}};function aC$1(e,t=0){let n=Hi$3();if(n===void 0)throw new D$l(-203,false);
19if(n===null)return Yc$1(e,void 0,t);{let r=cC$1(t),o=n.retrieve(e,r);if(cr$7(o)){if(r.optional)return null;throw o}return o}}function G$k(e,t=0){return (Gp$2()||aC$1)(re$b(e),t)}function g$k(e,t){return G$k(e,In$9(t))}function In$9(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cC$1(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Oc$1(e){let t=[];for(let n=0;n<e.length;n++){let r=re$b(e[n]);if(Array.isArray(r)){if(r.length===0)throw new D$l(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=uC$1(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(G$k(o,i));}else t.push(G$k(r));}return t}function uC$1(e){return e[sC$1]}function zt$e(e,t){let n=e.hasOwnProperty(eo$5);return n?e[eo$5]:null}function zp$2(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function Wp$2(e){return e.flat(Number.POSITIVE_INFINITY)}function es$4(e,t){e.forEach(n=>Array.isArray(n)?es$4(n,t):t(n));}function Qc$1(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function co$4(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qp$2(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Kc$1(e,t,n){let r=e.length-n;for(;t<r;)e[t]=e[t+n],t++;for(;n--;)e.pop();}function Jc$1(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);
vendor: 17,383 bytes, line 19
19else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function uo$4(e,t,n){let r=dr$9(e,t);return r>=0?e[r|1]=n:(r=~r,Jc$1(e,r,t,n)),r}function ts$4(e,t){let n=dr$9(e,t);if(n>=0)return e[n|1]}function dr$9(e,t){return lC$1(e,t,1)}function lC$1(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var Zt$c={},he$e=[],Tn$8=new b$g(""),lo$4=new b$g("",-1),Xc$1=new b$g(""),lr$8=class lr{get(t,n=En$9){if(n===En$9){let o=Up$2("",-201);throw o.name="\u0275NotFound",o}return n}};function fo$3(e){return {\u0275providers:e}}function Zp$2(...e){return {\u0275providers:ns$4(true,e),\u0275fromNgModule:true}}function ns$4(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return es$4(t,s=>{let a=s;Gi$3(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Yp$2(o,i),n}function Yp$2(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];eu$2(o,i=>{t(i,r);});}}function Gi$3(e,t,n,r){if(e=re$b(e),!e)return false;let o=null,i=Ac$1(e),s=!i&&ut$g(e);if(!i&&!s){let c=e.ngModule;if(i=Ac$1(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Gi$3(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;es$4(i.imports,l=>{Gi$3(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Yp$2(u,t);}if(!a){let u=zt$e(o)||(()=>new o);t({provide:o,useFactory:u,deps:he$e},o),t({provide:Xc$1,useValue:o,multi:true},o),t({provide:Tn$8,useValue:()=>G$k(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;eu$2(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function eu$2(e,t){for(let n of e)$c$1(n)&&(n=n.\u0275providers),Array.isArray(n)?eu$2(n,t):t(n);}var dC$1=j$p({provide:String,useValue:j$p});function Qp$2(e){return e!==null&&typeof e=="object"&&dC$1 in e}function fC$1(e){return !!(e&&e.useExisting)}function pC$1(e){return !!(e&&e.useFactory)}function Cn$5(e){return typeof e=="function"}function Kp$2(e){return !!e.useClass}var tu$1=new b$g(""),$i$3={},Lp$2={},Nc$1;function fr$8(){return Nc$1===void 0&&(Nc$1=new lr$8),Nc$1}var Ae$e=class Ae{},wn$8=class wn extends Ae$e{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Fc$1(t,s=>this.processProvider(s)),this.records.set(lo$4,ur$6(void 0,this)),o.has("environment")&&this.records.set(Ae$e,ur$6(void 0,this));let i=this.records.get(tu$1);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Xc$1,he$e,{self:true}));}retrieve(t,n){let r=In$9(n)||0;try{return this.get(t,En$9,r)}catch(o){if(cr$7(o))return o;throw o}}destroy(){Jr$6(this),this._destroyed=true;let t=C$a(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(),C$a(t);}}onDestroy(t){return Jr$6(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jr$6(this);let n=ct$c(this),r=Ee$f(void 0);try{return t()}finally{ct$c(n),Ee$f(r);}}get(t,n=En$9,r){if(Jr$6(this),t.hasOwnProperty(Fp$2))return t[Fp$2](this);let o=In$9(r),s=ct$c(this),a=Ee$f(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=vC$1(t)&&so$4(t);l&&this.injectableDefInScope(l)?u=ur$6(kc$1(t),$i$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?fr$8():this.parent;return n=o&8&&n===En$9?null:n,c.get(t,n)}catch(c){let u=oC$1(c);throw u===-200||u===-201?new D$l(u,null):c}finally{Ee$f(a),ct$c(s);}}resolveInjectorInitializers(){let t=C$a(null),n=ct$c(this),r=Ee$f(void 0);try{let i=this.get(Tn$8,he$e,{self:!0});for(let s of i)s();}finally{ct$c(n),Ee$f(r),C$a(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$b(t);let n=Cn$5(t)?t:re$b(t&&t.provide),r=gC$1(t);if(!Cn$5(t)&&t.multi===true){let o=this.records.get(n);o||(o=ur$6(void 0,$i$3,true),o.factory=()=>Oc$1(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=C$a(null);try{if(n.value===Lp$2)throw Zc$1("");return n.value===$i$3&&(n.value=Lp$2,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&yC$1(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C$a(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$b(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function kc$1(e){let t=so$4(e),n=t!==null?t.factory:zt$e(e);if(n!==null)return n;if(e instanceof b$g)throw new D$l(-204,false);if(e instanceof Function)return hC$1(e);throw new D$l(-204,false)}function hC$1(e){if(e.length>0)throw new D$l(-204,false);let n=tC$1(e);return n!==null?()=>n.factory(e):()=>new e}function gC$1(e){if(Qp$2(e))return ur$6(void 0,e.useValue);{let t=nu$1(e);return ur$6(t,$i$3)}}function nu$1(e,t,n){let r;if(Cn$5(e)){let o=re$b(e);return zt$e(o)||kc$1(o)}else if(Qp$2(e))r=()=>re$b(e.useValue);else if(pC$1(e))r=()=>e.useFactory(...Oc$1(e.deps||[]));else if(fC$1(e))r=(o,i)=>G$k(re$b(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$b(e&&(e.useClass||e.provide));if(mC$1(e))r=()=>new o(...Oc$1(e.deps));else return zt$e(o)||kc$1(o)}return r}function Jr$6(e){if(e.destroyed)throw new D$l(-205,false)}function ur$6(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function mC$1(e){return !!e.deps}function yC$1(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function vC$1(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Fc$1(e,t){for(let n of e)Array.isArray(n)?Fc$1(n,t):n&&$c$1(n)?Fc$1(n.\u0275providers,t):t(n);}function rs$4(e,t){let n;e instanceof wn$8?(Jr$6(e),n=e):n=new Rc$1(e);let o=ct$c(n),i=Ee$f(void 0);try{return t()}finally{ct$c(o),Ee$f(i);}}function os$4(){return Gp$2()!==void 0||Hi$3()!=null}function DC$1(e){if(!os$4())throw new D$l(-203,false)}var me$e=0,E$l=1,_$f=2,ee$a=3,Ve$f=4,ye$f=5,Ie$a=6,pr$9=7,J$o=8,z$o=9,Xe$b=10,R$h=11,hr$8=12,ru$1=13,Yt$c=14,ae$d=15,Qt$c=16,Sn$8=17,dt$d=18,et$e=19,ou$2=20,wt$i=21,is$4=22,Wt$f=23,xe$d=24,_n$8=25,Be$e=26,O$r=27,iu$1=1,Re$e=6,ft$d=7,po$3=8,Mn$7=9,U$j=10;function He$g(e){return Array.isArray(e)&&typeof e[iu$1]=="object"}function be$e(e){return Array.isArray(e)&&e[iu$1]===true}function su$1(e){return (e.flags&4)!==0}function tt$c(e){return e.componentOffset>-1}function gr$9(e){return (e.flags&1)===1}function $e$e(e){return !!e.template}function Nn$9(e){return (e[_$f]&512)!==0}function Kt$d(e){return (e[_$f]&256)===256}var au$1="svg",Jp$2="math";function Oe$d(e){for(;Array.isArray(e);)e=e[me$e];return e}function cu$2(e){for(;Array.isArray(e);){if(typeof e[iu$1]=="object")return e;e=e[me$e];}return null}function uu$2(e,t){return Oe$d(t[e])}function ce$b(e,t){return Oe$d(t[e.index])}function mr$8(e,t){return e.data[t]}function An$8(e,t){return e[t]}function ho$4(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Ue$e(e,t){let n=t[e];return He$g(n)?n:n[me$e]}function Xp$2(e){return (e[_$f]&4)===4}function ss$4(e){return (e[_$f]&128)===128}function eh$1(e){return be$e(e[ee$a])}function ke$b(e,t){return t==null?null:e[t]}function lu$1(e){e[Sn$8]=0;}function as$3(e){e[_$f]&1024||(e[_$f]|=1024,ss$4(e)&&xn$6(e));}function th$1(e,t){for(;e>0;)t=t[Yt$c],e--;return t}function go$4(e){return !!(e[_$f]&9216||e[xe$d]?.dirty)}function cs$4(e){e[Xe$b].changeDetectionScheduler?.notify(8),e[_$f]&64&&(e[_$f]|=1024),go$4(e)&&xn$6(e);}function xn$6(e){e[Xe$b].changeDetectionScheduler?.notify(0);let t=bt$h(e);for(;t!==null&&!(t[_$f]&8192||(t[_$f]|=8192,!ss$4(t)));)t=bt$h(t);}function mo$4(e,t){if(Kt$d(e))throw new D$l(911,false);e[wt$i]===null&&(e[wt$i]=[]),e[wt$i].push(t);}function du$2(e,t){if(e[wt$i]===null)return;let n=e[wt$i].indexOf(t);n!==-1&&e[wt$i].splice(n,1);}function bt$h(e){let t=e[ee$a];return be$e(t)?t[ee$a]:t}function fu$2(e){return e[pr$9]??=[]}function pu$1(e){return e.cleanup??=[]}function nh$1(e,t,n,r){let o=fu$2(t);o.push(n),e.firstCreatePass&&pu$1(e).push(r,o.length-1);}var x$m={lFrame:hh$1(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Lc$1=false;function rh$1(){return x$m.lFrame.elementDepthCount}function oh$1(){x$m.lFrame.elementDepthCount++;}function hu$2(){x$m.lFrame.elementDepthCount--;}function us$3(){return x$m.bindingsEnabled}function ls$3(){return x$m.skipHydrationRootTNode!==null}function gu$1(e){return x$m.skipHydrationRootTNode===e}function ih$1(e){x$m.skipHydrationRootTNode=e;}function mu$2(){x$m.skipHydrationRootTNode=null;}function m$c(){return x$m.lFrame.lView}function F$j(){return x$m.lFrame.tView}function sh$1(e){return x$m.lFrame.contextLView=e,e[J$o]}function ah$1(e){return x$m.lFrame.contextLView=null,e}function $$o(){let e=yu$1();for(;e!==null&&e.type===64;)e=e.parent;return e}function yu$1(){return x$m.lFrame.currentTNode}function ch$1(){let e=x$m.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Rn$7(e,t){let n=x$m.lFrame;n.currentTNode=e,n.isParent=t;}function vu$2(){return x$m.lFrame.isParent}function Du$2(){x$m.lFrame.isParent=false;}function Eu$2(){return x$m.lFrame.contextLView}function Iu$2(){return Lc$1}function to$5(e){let t=Lc$1;return Lc$1=e,t}function Fe$f(){let e=x$m.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Cu$2(){return x$m.lFrame.bindingIndex}function uh$1(e){return x$m.lFrame.bindingIndex=e}function Ge$c(){return x$m.lFrame.bindingIndex++}function yo$4(e){let t=x$m.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function lh$1(){return x$m.lFrame.inI18n}function dh$1(e,t){let n=x$m.lFrame;n.bindingIndex=n.bindingRootIndex=e,ds$4(t);}function fh$2(){return x$m.lFrame.currentDirectiveIndex}function ds$4(e){x$m.lFrame.currentDirectiveIndex=e;}function wu$1(e){let t=x$m.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function fs$4(){return x$m.lFrame.currentQueryIndex}function vo$4(e){x$m.lFrame.currentQueryIndex=e;}function EC$1(e){let t=e[E$l];return t.type===2?t.declTNode:t.type===1?e[ye$f]:null}function bu$2(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=EC$1(i),o===null||(i=i[Yt$c],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=x$m.lFrame=ph$1();return r.currentTNode=t,r.lView=e,true}function ps$4(e){let t=ph$1(),n=e[E$l];x$m.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function ph$1(){let e=x$m.lFrame,t=e===null?null:e.child;return t===null?hh$1(e):t}function hh$1(e){let t={currentTNode:null,isParent:true,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:false};return e!==null&&(e.child=t),t}function gh$2(){let e=x$m.lFrame;return x$m.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Tu$3=gh$2;function hs$4(){let e=gh$2();e.isParent=true,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0;}function mh(e){return (x$m.lFrame.contextLView=th$1(e,x$m.lFrame.contextLView))[J$o]}function Le$f(){return x$m.lFrame.selectedIndex}function Jt$d(e){x$m.lFrame.selectedIndex=e;}function pt$e(){let e=x$m.lFrame;return mr$8(e.tView,e.selectedIndex)}function yh$1(){x$m.lFrame.currentNamespace=au$1;}function vh$1(){IC$1();}function IC$1(){x$m.lFrame.currentNamespace=null;}function gs$4(){return x$m.lFrame.currentNamespace}var Dh$1=true;function ms$3(){return Dh$1}function St$e(e){Dh$1=e;}function Do$4(){let e,t;return {promise:new Promise((r,o)=>{e=r,t=o;}),resolve:e,reject:t}}function Pc$1(e,t=null,n=null,r){let o=Su$2(e,t,n);return o.resolveInjectorInitializers(),o}function Su$2(e,t=null,n=null,r,o=new Set){let i=[n||he$e,Zp$2(e)];return new wn$8(i,t||fr$8(),null,o)}var oe$e=class e{static THROW_IF_NOT_FOUND=En$9;static NULL=new lr$8;static create(t,n){if(Array.isArray(t))return Pc$1({name:""},n,t);{let r=t.name??"";return Pc$1({name:r},t.parent,t.providers)}}static \u0275prov=L$l({token:e,providedIn:"any",factory:()=>G$k(lo$4)});static __NG_ELEMENT_ID__=-1},Te$g=new b$g(""),de$b=(()=>{class e{static __NG_ELEMENT_ID__=CC$1;static __NG_ENV_ID__=n=>n}return e})(),zi$3=class zi extends de$b{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return Kt$d(this._lView)}onDestroy(t){let n=this._lView;return mo$4(n,t),()=>du$2(n,t)}};function CC$1(){return new zi$3(m$c())}var Eh$1=false,Ih$1=new b$g(""),_t$g=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Gr$6(false);debugTaskTracker=g$k(Ih$1,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new N$d(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new e})}return e})(),jc$1=class jc extends le$d{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,os$4()&&(this.destroyRef=g$k(de$b,{optional:true})??void 0,this.pendingTasks=g$k(_t$g,{optional:true})??void 0);}emit(t){let n=C$a(null);try{super.next(t);}finally{C$a(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;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 t instanceof Q$f&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},Ct$h=jc$1;function Wi$3(...e){}function _u$1(e){let t,n;function r(){e=Wi$3;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch{}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function Ch$1(e){return queueMicrotask(()=>e()),()=>{e=Wi$3;}}var Mu$2="isAngularZone",no$6=Mu$2+"_ID",wC$1=0,ge$b=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Ct$h(false);onMicrotaskEmpty=new Ct$h(false);onStable=new Ct$h(false);onError=new Ct$h(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Eh$1}=t;if(typeof Zone>"u")throw new D$l(908,false);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=false,s.scheduleInRootZone=i,SC$1(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Mu$2)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new D$l(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D$l(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,bC$1,Wi$3,Wi$3);try{return i.runTask(s,n,r)}finally{i.cancelTask(s);}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},bC$1={};function Nu$2(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null);}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null));}finally{e.isStable=true;}}}function TC$1(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){_u$1(()=>{e.callbackScheduled=false,Vc$1(e),e.isCheckStableRunning=true,Nu$2(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Vc$1(e);}function SC$1(e){let t=()=>{TC$1(e);},n=wC$1++;e._inner=e._inner.fork({name:"angular",properties:{[Mu$2]:true,[no$6]:n,[no$6+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(_C$1(c))return r.invokeTask(i,s,a,c);try{return Pp$2(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),jp$2(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Pp$2(e),r.invoke(i,s,a,c,u)}
19finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!MC$1(c)&&t(),jp$2(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Vc$1(e),Nu$2(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Vc$1(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Pp$2(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function jp$2(e){e._nesting--,Nu$2(e);}var ro$5=class ro{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Ct$h;onMicrotaskEmpty=new Ct$h;onStable=new Ct$h;onError=new Ct$h;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function _C$1(e){return wh$1(e,"__ignore_ng_zone__")}function MC$1(e){return wh$1(e,"__scheduler_tick__")}function wh$1(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Tt$g=class Tt{_console=console;handleError(t){this._console.error("ERROR",t);}},Mt$d=new b$g("",{factory:()=>{let e=g$k(ge$b),t=g$k(Ae$e),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Tt$g),n.handleError(r));});}}}),bh$2={provide:Tn$8,useValue:()=>{g$k(Tt$g,{optional:true});},multi:true};function On$7(e,t){let [n,r,o]=bc$1(e,t?.equal),i=n;i[K$q];return i.set=r,i.update=o,i.asReadonly=Eo$4.bind(i),i}function Eo$4(){let e=this[K$q];if(e.readonlyFn===void 0){let t=()=>this();t[K$q]=e,e.readonlyFn=t;}return e.readonlyFn}var Xt$c=new b$g("",{factory:()=>NC$1}),NC$1="ng";var Th$1=new b$g(""),AC$1=new b$g("",{providedIn:"platform",factory:()=>"unknown"}),xC$1=new b$g(""),RC$1=new b$g("",{factory:()=>g$k(Te$g).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),ys$3={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:false,disableImageLazyLoadWarning:false},vs$3=new b$g("",{factory:()=>ys$3});var yr$8=(()=>{class e{static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>{let n=new e;return n.store=Sh$1(g$k(Te$g),g$k(Xt$c)),n}});store={};onSerializeCallbacks={};get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r;}remove(n){delete this.store[n];}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r;}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]();}catch(r){console.warn("Exception in onSerialize callback: ",r);}return JSON.stringify(this.store).replace(/</g,"\\u003C").replace(/\//g,"\\u002F")}}return e})();function Sh$1(e,t){let n=e.getElementById(t+"-state");if(n?.tagName==="SCRIPT"&&n.textContent)try{return JSON.parse(n.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+t,r);}return {}}var vr$9=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=OC$1}return e})();function OC$1(){return new vr$9(m$c(),$$o())}var Ke$f=class Ke{},Io$4=new b$g("",{factory:()=>true});var Au$2=new b$g(""),Ds$4=(()=>{class e{static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new Bc$1})}return e})(),Bc$1=class Bc{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},qi$4=class qi{[K$q];constructor(t){this[K$q]=t;}destroy(){this[K$q].destroy();}};function Es$3(e,t){let n=t?.injector??g$k(oe$e),r=t?.manualCleanup!==true?n.get(de$b):null,o,i=n.get(vr$9,null,{optional:true}),s=n.get(Ke$f);return i!==null?(o=LC$1(i.view,s,e),r instanceof zi$3&&r._lView===i.view&&(r=null)):o=PC$1(e,n.get(Ds$4),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new qi$4(o)}var _h$1=s$e(r$d({},Tc$1),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=to$5(false);try{Sc$1(this);}finally{to$5(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=C$a(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],C$a(e);}}}),kC$1=s$e(r$d({},_h$1),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Ut$e(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),FC$1=s$e(r$d({},_h$1),{consumerMarkedDirty(){this.view[_$f]|=8192,xn$6(this.view),this.notifier.notify(13);},destroy(){if(Ut$e(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Wt$f]?.delete(this);}});function LC$1(e,t,n){let r=Object.create(FC$1);
19return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Mh$1(r,n),e[Wt$f]??=new Set,e[Wt$f].add(r),r.consumerMarkedDirty(r),r}function PC$1(e,t,n){let r=Object.create(kC$1);return r.fn=Mh$1(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Mh$1(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Co$4(e){return typeof e=="function"&&e[K$q]!==void 0}function Is$3(e){return Co$4(e)&&typeof e.set=="function"}var Dr$7=(()=>{class e{internalPendingTasks=g$k(_t$g);scheduler=g$k(Ke$f);errorHandler=g$k(Mt$d);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new e})}return e})();var Cs$3={JSACTION:"jsaction"};function Bo$4(e){return {toString:e}.toString()}var k$l=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(k$l||{}),Ls$3=class Ls{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function Rg$1(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Og$1=null,Ar$8=(()=>{Og$1=Nh$1;let e=()=>Nh$1;return e.ngInherit=true,e})();function zC$1(){return Og$1}function Nh$1(e){return e.type.prototype.ngOnChanges&&(e.setInput=qC$1),WC$1}function WC$1(){let e=kg$1(this),t=e?.current;if(t){let n=e.previous;if(n===Zt$c)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function qC$1(e,t,n,r,o){let i=this.declaredInputs[r],s=kg$1(e)||ZC$1(e,{previous:Zt$c,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ls$3(u&&u.currentValue,n,c===Zt$c),Rg$1(e,t,o,n);}var Gu$2="__ngSimpleChanges__";function kg$1(e){return Object.hasOwn(e,Gu$2)&&e[Gu$2]||null}function ZC$1(e,t){return e[Gu$2]=t}var Ah$1=[];var P$e=function(e,t=null,n){for(let r=0;r<Ah$1.length;r++){let o=Ah$1[r];o(e,t,n);}};function YC$1(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=zC$1()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function Fg$1(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l);}}function Ms$3(e,t,n){Lg$1(e,t,3,n);}function Ns$3(e,t,n,r){(e[_$f]&3)===n&&Lg$1(e,t,n,r);}function xu$2(e,t){let n=e[_$f];(n&3)===t&&(n&=16383,n+=1,e[_$f]=n);}function Lg$1(e,t,n,r){let o=r!==void 0?e[Sn$8]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Sn$8]+=65536),(a<i||i==-1)&&(QC$1(e,n,t,c),e[Sn$8]=(e[Sn$8]&4294901760)+c+2),c++;}function xh$1(e,t){P$e(k$l.LifecycleHookStart,e,t);let n=C$a(null);try{t.call(e);}finally{C$a(n),P$e(k$l.LifecycleHookEnd,e,t);}}function QC$1(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[_$f]>>14<e[Sn$8]>>16&&(e[_$f]&3)===t&&(e[_$f]+=16384,xh$1(a,i)):xh$1(a,i);}var Ir$7=-1,jn$7=class jn{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function KC$1(e){return (e.flags&8)!==0}function JC$1(e){return (e.flags&16)!==0}function XC$1(e,t,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++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];ew$1(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Pg$1(e){return e===3||e===4||e===6}function ew$1(e){return e.charCodeAt(0)===64}function wr$7(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Rh$1(e,n,o,null,t[++r]):Rh$1(e,n,o,null,
vendor: 4,351 bytes, line 19
19null));}}return e}function Rh$1(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function jg$1(e){return e!==Ir$7}function Ps$2(e){return e&32767}function tw$1(e){return e>>16}function js$2(e,t){let n=tw$1(e),r=t;for(;n>0;)r=r[Yt$c],n--;return r}var zu$2=true;function Vs$3(e){let t=zu$2;return zu$2=e,t}var nw$1=256,Vg$1=nw$1-1,Bg$1=5,rw$1=0,ht$e={};function ow$1(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(bn$9)&&(r=n[bn$9]),r==null&&(r=n[bn$9]=rw$1++);let o=r&Vg$1,i=1<<o;t.data[e+(o>>Bg$1)]|=i;}function Bs$2(e,t){let n=Hg$1(e,t);if(n!==-1)return n;let r=t[E$l];r.firstCreatePass&&(e.injectorIndex=t.length,Ru$2(r.data,e),Ru$2(t,null),Ru$2(r.blueprint,null));let o=Nl$1(e,t),i=e.injectorIndex;if(jg$1(o)){let s=Ps$2(o),a=js$2(o,t),c=a[E$l].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Ru$2(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Hg$1(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Nl$1(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=qg$1(o),r===null)return Ir$7;if(n++,o=o[Yt$c],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ir$7}function Wu$2(e,t,n){ow$1(e,t,n);}function iw$1(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Pg$1(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===t)return n[o+1];o=o+2;}}}return null}function $g$1(e,t,n){if(n&8||e!==void 0)return e;Xi$5();}function Ug$1(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[z$o],i=Ee$f(void 0);try{return o?o.get(t,r,n&8):Yc$1(t,r,n&8)}finally{Ee$f(i);}}return $g$1(r,t,n)}function Gg$1(e,t,n,r=0,o){if(e!==null){if(t[_$f]&2048&&!(r&2)){let s=uw$1(e,t,n,r,ht$e);if(s!==ht$e)return s}let i=zg$1(e,t,n,r,ht$e);if(i!==ht$e)return i}return Ug$1(t,n,r,o)}function zg$1(e,t,n,r,o){let i=aw$1(n);if(typeof i=="function"){if(!bu$2(t,e,r))return r&1?$g$1(o,n,r):Ug$1(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Xi$5(n);else return s}finally{Tu$3();}}else if(typeof i=="number"){let s=null,a=Hg$1(e,t),c=Ir$7,u=r&1?t[ae$d][ye$f]:null;for((a===-1||r&4)&&(c=a===-1?Nl$1(e,t):t[a+8],c===Ir$7||!kh$1(r,false)?a=-1:(s=t[E$l],a=Ps$2(c),t=js$2(c,t)));a!==-1;){let l=t[E$l];if(Oh$1(i,a,l.data)){let d=sw$1(a,t,n,s,r,u);if(d!==ht$e)return d}c=t[a+8],c!==Ir$7&&kh$1(r,t[E$l].data[a+8]===u)&&Oh$1(i,a,t)?(s=l,a=Ps$2(c),t=js$2(c,t)):a=-1;}}return o}function sw$1(e,t,n,r,o,i){let s=t[E$l],a=s.data[e+8],c=r==null?tt$c(a)&&zu$2:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=As$3(a,s,n,c,u);return l!==null?Mo$4(t,s,l,a,o):ht$e}function As$3(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let p=d;p<f;p++){let h=s[p];if(p<c&&n===h||p>=c&&h.type===n)return p}if(o){let p=s[c];if(p&&$e$e(p)&&p.type===n)return c}return null}function Mo$4(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof jn$7){let a=i;if(a.resolving)throw Zc$1();let c=Vs$3(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?Ee$f(a.injectImpl):null;bu$2(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&YC$1(n,s[n],t);}finally{d!==null&&Ee$f(d),Vs$3(c),a.resolving=false,Tu$3();}}return i}function aw$1(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(bn$9)?e[bn$9]:void 0;return typeof t=="number"?t>=0?t&Vg$1:cw$1:t}function Oh$1(e,t,n){let r=1<<e;return !!(n[t+(e>>Bg$1)]&r)}function kh$1(e,t){return !(e&2)&&!(e&1&&t)}var tn$a=class tn{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Gg$1(this._tNode,this._lView,t,In$9(r),n)}};function cw$1(){return new tn$a($$o(),m$c())}function Wg$1(e){return Bo$4(()=>{let t=e.prototype.constructor,n=t[eo$5]||qu$2(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[eo$5]||qu$2(o);if(i&&i!==n)return i;
19o=Object.getPrototypeOf(o);}return i=>new i})}function qu$2(e){return Hc$1(e)?()=>{let t=qu$2(re$b(e));return t&&t()}:zt$e(e)}function uw$1(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[_$f]&2048&&!Nn$9(s);){let a=zg$1(i,s,n,r|2,ht$e);if(a!==ht$e)return a;let c=i.parent;if(!c){let u=s[ou$2];if(u){let l=u.get(n,ht$e,r&-5);if(l!==ht$e)return l}c=qg$1(s),s=s[Yt$c];}i=c;}return o}function qg$1(e){let t=e[E$l],n=t.type;return n===2?t.declTNode:n===1?e[ye$f]:null}function Al$1(e){return iw$1($$o(),e)}var lw$1=()=>(typeof requestIdleCallback<"u"?requestIdleCallback:e=>setTimeout(e)).bind(globalThis),dw$1=()=>(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis),Zg$1=new b$g("",{factory:()=>new Zu$2});var Zu$2=class Zu{requestIdleCallback=lw$1();cancelIdleCallback=dw$1();requestOnIdle(t,n){return this.requestIdleCallback(t,n)}cancelOnIdle(t){return this.cancelIdleCallback(t)}};function Wn$9(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function fw$1(){return xr$8($$o(),m$c())}function xr$8(e,t){return new gt$f(ce$b(e,t))}var gt$f=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=fw$1}return e})();function Yg$1(e){return e instanceof gt$f?e.nativeElement:e}function pw$1(){return this._results[Symbol.iterator]()}var Hs$3=class Hs{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new le$d}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Wp$2(t);(this._changesDetected=!zp$2(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(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=pw$1},Qg$1="ngSkipHydration",hw$1="ngskiphydration";function Kg$1(e){let t=e.mergedAttrs;if(t===null)return false;for(let n=0;n<t.length;n+=2){let r=t[n];if(typeof r=="number")return false;if(typeof r=="string"&&r.toLowerCase()===hw$1)return true}return false}function Jg$1(e){return e.hasAttribute(Qg$1)}function $s$3(e){return (e.flags&128)===128}function Xg$1(e){if($s$3(e))return true;let t=e.parent;for(;t;){if($s$3(e)||Kg$1(t))return true;t=t.parent;}return false}var xl$1=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(xl$1||{}),em=new Map,gw$1=0;function mw$1(){return gw$1++}function yw$1(e){em.set(e[et$e],e);}function Yu$2(e){em.delete(e[et$e]);}var Fh$1="__ngContext__";function br$9(e,t){He$g(t)?(e[Fh$1]=t[et$e],yw$1(t)):e[Fh$1]=t;}function tm(e){return rm(e[hr$8])}function nm(e){return rm(e[Ve$f])}function rm(e){for(;e!==null&&!be$e(e);)e=e[Ve$f];return e}var Qu$2;function vw$1(e){Qu$2=e;}function ra$2(){if(Qu$2!==void 0)return Qu$2;if(typeof document<"u")return document;throw new D$l(210,false)}var om="h",im="b",Dw$1="f",Ew$1="n",sm="e",am="t",oa$3="c",Rl$1="x",No$4="r",cm="i",um="n",Ol$1="d";var kl$1="di",Fl$2="s",lm="p";var Ho$4=new b$g(""),dm=false,Ll$1=new b$g("",{factory:()=>dm});var Pl$1=new b$g(""),fm=false,pm=new b$g("",{factory:()=>[]}),jl$2=new b$g(""),Vl$1=new b$g("",{factory:()=>new Map}),Iw$1=new b$g("");var $o$5="ngb";var hm=(e,t,n)=>{let r=e,o=r.__jsaction_fns??new Map,i=o.get(t)??[];i.push(n),o.set(t,i),r.__jsaction_fns=o;},gm=(e,t)=>{let n=e,r=n.getAttribute($o$5)??"",o=t.get(r)??new Set;o.has(n)||o.add(n),t.set(r,o);};var mm=e=>{e.removeAttribute(Cs$3.JSACTION),e.removeAttribute($o$5),e.__jsaction_fns=void 0;},ym$1=new b$g("",{factory:()=>({})}),Ku$2=new WeakMap;function Cw$1(e,t){if(e==null||typeof e!="object")return;let n=Ku$2.get(e);n||(n=new WeakSet,Ku$2.set(e,n)),n.add(t);}function Bl$1(e,t){let n=t?.__jsaction_fns?.get(e.type);if(!(!n||!t?.isConnected)&&!(t&&Ku$2.get(e)?.has(t)))for(let r of n)r(e);}var Ju$2=new Map;function vm(e,t){return Ju$2.set(e,t),()=>Ju$2.delete(e)}var Lh$1=false,Dm$1=(e,t,n,r)=>{};function ww$1(e,t,n,r){Dm$1(e,t,n,r);}function Em$1(){Lh$1||(Dm$1=(e,t,n,r)=>{let o=e[z$o].get(Xt$c);Ju$2.get(o)?.(t,n,r);},Lh$1=true);}var Rr$7=new b$g("");function Uo$5(e){return (e.flags&32)===32}var bw$1="__nghData__",Hl$1=bw$1,Tw$1="__nghDeferData__",Im$1=Tw$1;var xs$3="ngh",Cm="nghm",wm=()=>null;function Sw$1(e,t,n=false){let r=e.getAttribute(xs$3);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,c={};if(r!==""){let l=t.get(yr$8,null,{optional:true});l!==null&&(c=l.get(Hl$1,[])[Number(r)]);}let u={data:c,firstChild:e.firstChild??null};return n&&(u.firstChild=e,ia$2(u,0,e.nextSibling)),a?e.setAttribute(xs$3,a):e.removeAttribute(xs$3),u}function bm(){wm=Sw$1;}function Tm$1(e,t,n=false){return wm(e,t,n)}function Sm$1(e){let t=e._lView;
19return t[E$l].type===2?null:(Nn$9(t)&&(t=t[O$r]),t)}function _w$1(e){return e.textContent?.replace(/\s/gm,"")}function Mw$1(e){let t=ra$2(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=_w$1(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove();}function ia$2(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n;}function Xu$2(e,t){return e.segmentHeads?.[t]??null}function sa$2(e){return e.get(jl$2,false,{optional:true})}function Nw$1(e,t){let n=e.data,r=n[sm]?.[t]??null;return r===null&&n[oa$3]?.[t]&&(r=$l(e,t)),r}function _m(e,t){return e.data[oa$3]?.[t]??null}function $l(e,t){let n=_m(e,t)??[],r=0;for(let o of n)r+=o[No$4]*(o[Rl$1]??1);return r}function Aw$1(e){if(typeof e.disconnectedNodes>"u"){let t=e.data[Ol$1];e.disconnectedNodes=t?new Set(t):null;}return e.disconnectedNodes}function Mm(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[Ol$1];e.disconnectedNodes=n?new Set(n):null;}return !!Aw$1(e)?.has(t)}function aa$2(e,t){let n=e[Ie$a];return n!==null&&!ls$3()&&!Uo$5(t)&&!Mm(n,t.index-O$r)}function xw$1(e,t){let n=t.get(Rr$7),o=t.get(yr$8).get(Im$1,{}),i=false,s=e,a=null,c=[];for(;!i&&s;){i=n.has(s);let u=n.hydrating.get(s);if(a===null&&u!=null){a=u.promise;break}c.unshift(s),s=o[s][lm];}return {parentBlockPromise:a,hydrationQueue:c}}function Ou$2(e){return !!e&&e.nodeType===Node.COMMENT_NODE&&e.textContent?.trim()===Cm}function Ph$1(e){for(;e&&e.nodeType===Node.TEXT_NODE;)e=e.previousSibling;return e}function Nm$1(e){for(let r of e.body.childNodes)if(Ou$2(r))return;let t=Ph$1(e.body.previousSibling);if(Ou$2(t))return;let n=Ph$1(e.head.lastChild);if(!Ou$2(n))throw new D$l(-507,false)}function Am(e,t){let n=e.contentQueries;if(n!==null){let r=C$a(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];vo$4(i),a.contentQueries(2,t[s],s);}}}finally{C$a(r);}}}function el$2(e,t,n){vo$4(0);let r=C$a(null);try{t(e,n);}finally{C$a(r);}}function Ul$1(e,t,n){if(su$1(t)){let r=C$a(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{C$a(r);}}}var Vn$9=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Vn$9||{});var ws$3;function Rw$1(){if(ws$3===void 0&&(ws$3=null,lt$e.trustedTypes))try{ws$3=lt$e.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return ws$3}function Go$5(e){return Rw$1()?.createHTML(e)||e}var bs$3;function xm(){if(bs$3===void 0&&(bs$3=null,lt$e.trustedTypes))try{bs$3=lt$e.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return bs$3}function jh$1(e){return xm()?.createHTML(e)||e}function Vh$1(e){return xm()?.createScriptURL(e)||e}var Nt$e=class Nt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Zi$4})`}},tl$2=class tl extends Nt$e{getTypeName(){return "HTML"}},nl$3=class nl extends Nt$e{getTypeName(){return "Style"}},rl$2=class rl extends Nt$e{getTypeName(){return "Script"}},ol$2=class ol extends Nt$e{getTypeName(){return "URL"}},il$2=class il extends Nt$e{getTypeName(){return "ResourceURL"}};function At$b(e){return e instanceof Nt$e?e.changingThisBreaksApplicationSecurity:e}function ca$3(e,t){let n=Rm$1(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Zi$4})`)}return n===t}function Rm$1(e){return e instanceof Nt$e&&e.getTypeName()||null}function Ow$1(e){return new tl$2(e)}function kw$1(e){return new nl$3(e)}function Fw$1(e){return new rl$2(e)}function Lw$1(e){return new ol$2(e)}function Pw$1(e){return new il$2(e)}function jw$1(e){let t=new al$2(e);return Vw$1()?new sl$2(t):t}var sl$2=class sl{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Go$5(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},al$2=class al{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Go$5(t),n}};function Vw$1(){try{return !!new window.DOMParser().parseFromString(Go$5(""),"text/html")}catch{return false}}var Bw$1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gl$1(e){return e=String(e),e.match(Bw$1)?e:"unsafe:"+e}function xt$d(e){let t={};for(let n of e.split(","))t[n]=true;return t}function zo$4(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Om$1=xt$d("area,br,col,hr,img,wbr"),km$1=xt$d("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Fm$1=xt$d("rp,rt"),Hw$1=zo$4(Fm$1,km$1),$w$1=zo$4(km$1,xt$d("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")),Uw$1=zo$4(Fm$1,xt$d("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")),Bh$1=zo$4(Om$1,$w$1,Uw$1,Hw$1),Lm$1=xt$d("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gw$1=xt$d("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
19olspan,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"),zw$1=xt$d("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"),Ww$1=zo$4(Lm$1,Gw$1,zw$1),qw$1=xt$d("script,style,template"),cl$2=class cl{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=Qw$1(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Yw$1(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Hh$1(t).toLowerCase();if(!Bh$1.hasOwnProperty(n))return this.sanitizedSomething=true,!qw$1.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!Ww$1.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Lm$1[a]&&(c=Gl$1(c)),this.buf.push(" ",s,'="',$h$1(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Hh$1(t).toLowerCase();Bh$1.hasOwnProperty(n)&&!Om$1.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push($h$1(t));}};function Zw$1(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Yw$1(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Pm$1(t);return t}function Qw$1(e){let t=e.firstChild;if(t&&Zw$1(e,t))throw Pm$1(t);return t}function Hh$1(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Pm$1(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Kw$1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jw$1=/([^\#-~ |!])/g;function $h$1(e){return e.replace(/&/g,"&").replace(Kw$1,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Jw$1,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ts$4;function jm$1(e,t){let n=null;try{Ts$4=Ts$4||jw$1(e);let r=t?String(t):"";n=Ts$4.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=Ts$4.getInertBodyElement(r);}while(r!==i);let a=new cl$2().sanitizeChildren(Uh$1(n)||n);return Go$5(a)}finally{if(n){let r=Uh$1(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Uh$1(e){return "content"in e&&Xw$1(e)?e.content:null}function Xw$1(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var eb$1=/^>|^->|<!--|-->|--!>|<!-$/g,tb$1=/(<|>)/g,nb$1="\u200B$1\u200B";function rb$1(e){return e.replace(eb$1,t=>t.replace(tb$1,nb$1))}function Vm$1(e,t){return e.createText(t)}function ob$1(e,t,n){e.setValue(t,n);}function Bm$1(e,t){return e.createComment(rb$1(t))}function zl$1(e,t,n){return e.createElement(t,n)}function Us$3(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Hm$1(e,t,n){e.appendChild(t,n);}function Gh$1(e,t,n,r,o){r!==null?Us$3(e,t,n,r,o):Hm$1(e,t,n);}function ua$3(e,t,n,r){e.removeChild(null,t,n,r);}function $m$1(e){e.textContent="";}function ib$1(e,t,n){e.setAttribute(t,"style",n);}
19function sb$1(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Um$1(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&XC$1(e,t,r),o!==null&&sb$1(e,t,o),i!==null&&ib$1(e,t,i);}function ab$1(e){let t=m$c();e.src="",e.srcdoc=Go$5(""),ua$3(t[R$h],e);}var Wo$5=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(Wo$5||{});function cb$1(e){let t=Wl$1();return t?jh$1(t.sanitize(Wo$5.HTML,e)||""):ca$3(e,"HTML")?jh$1(At$b(e)):jm$1(ra$2(),Je$b(e))}function Gm$1(e){let t=Wl$1();return t?t.sanitize(Wo$5.URL,e)||"":ca$3(e,"URL")?At$b(e):Gl$1(Je$b(e))}function zm$1(e){let t=Wl$1();if(t)return Vh$1(t.sanitize(Wo$5.RESOURCE_URL,e)||"");if(ca$3(e,"ResourceURL"))return Vh$1(At$b(e));throw new D$l(904,false)}var ub$1={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function lb$1(e,t){return ub$1[e.toLowerCase()]?.[t.toLowerCase()]===true?zm$1:Gm$1}function db$1(e,t,n){return lb$1(t,n)(e)}function Wl$1(){let e=m$c();return e&&e[Xe$b].sanitizer}var Ss$4=new Set(["href","xlink:href"]),fb$1={iframe:{sandbox:true,allow:true,allowfullscreen:true,referrerpolicy:true,csp:true,fetchpriority:true,credentialless:true},":svg:animate":{attributename:true,to:Ss$4,values:Ss$4,from:Ss$4},":svg:set":{attributename:true,to:Ss$4},":svg:animatemotion":{attributename:true},":svg:animatetransform":{attributename:true}};function pb$1(e,t,n){let r=t.toLowerCase(),o=n.toLowerCase(),s=Le$f()===-1?null:pt$e();if(s&&s.type!==2)return e;let a=r[0]!==":"&&s?.namespace?`:${s.namespace}:${r}`:r,c=fb$1[a]?.[o];if(!c)return e;let u=m$c();if(s&&r==="iframe"){let f=ce$b(s,u);ab$1(f);}t[0]===":"?t.split(":").pop():t;if(typeof c!="boolean"){if(!s)throw new D$l(-910,false);let f=ce$b(s,u);if(hb$1(f,c))throw new D$l(-910,false);return e}let d=false;throw new D$l(-910,d)}function hb$1(e,t){for(let n of e.getAttributeNames()){if(n.toLowerCase()!=="attributename")continue;let r=e.getAttribute(n);if(r!==null&&t.has(r.toLowerCase()))return r}return null}function gb$1(e){return e.ownerDocument.defaultView}function mb$1(e){return e.ownerDocument}function Wm$1(e){return e.ownerDocument.body}function yb$1(e){return e instanceof Function?e():e}function vb$1(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var qm$1="ng-template";function Db$1(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&vb$1(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(ql$1(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function ql$1(e){return e.type===4&&e.value!==qm$1}function Eb$1(e,t,n){let r=e.type===4&&!n?qm$1:e.value;return t===r}function Ib$1(e,t,n){let r=4,o=e.attrs,i=o!==null?bb$1(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!nt$f(r)&&!nt$f(c))return false;if(s&&nt$f(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Eb$1(e,c,n)||c===""&&t.length===1){if(nt$f(r))return false;s=true;}}else if(r&8){if(o===null||!Db$1(e,o,c,n)){if(nt$f(r))return false;s=true;}}else {let u=t[++a],l=Cb$1(c,o,ql$1(e),n);if(l===-1){if(nt$f(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(nt$f(r))return false;s=true;}}}}return nt$f(r)||s}function nt$f(e){return (e&1)===0}function Cb$1(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return -1}else return Tb$1(t,e)}function Zm$1(e,t,n=false){for(let r=0;r<t.length;r++)if(Ib$1(e,t[r],n))return true;return false}function wb$1(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function bb$1(e){for(let t=0;t<e.length;t++){let n=e[t];if(Pg$1(n))return t}return e.length}function Tb$1(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return -1;if(r===t)return n;n++;}return -1}function Sb$1(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function zh$1(e,t){return e?":not("+t.trim()+")":t}function _b$1(e){let t=e[0],n=1,r=2,o="",i=false;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!nt$f(s)&&(t+=zh$1(i,o),o=""),r=s,i=i||!nt$f(r);n++;}return o!==""&&(t+=zh$1(i,o)),t}function Mb$1(e){return e.map(_b$1).join(",")}function Nb$1(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!nt$f(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var ue$9={},Tr$8=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Tr$8||{}),Ab$1;function Zl$1(e,t){return Ab$1(e,t)}var Ym$1=new b$g("",{factory:()=>false});var xb$1=false,qo$6=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Qm$1(e){return e[z$o].get(Ym$1,xb$1)}
19function Rb$1(e,t,n){let r=Sr$8.get(e);if(r){for(let o of t)r.classList.push(o);for(let o of n)r.cleanupFns.push(o);}else Sr$8.set(e,{classList:t,cleanupFns:n});}function Yl$1(e){let t=Sr$8.get(e);if(t){for(let n of t.cleanupFns)n();Sr$8.delete(e);}Fn$9.delete(e);}var Sr$8=new WeakMap,Fn$9=new WeakMap,Ao$4=new WeakMap;function Km$1(e){return e?e[Yt$c]??e:null}var bo$4=new WeakSet;function Wh$1(e,t){let n=Ao$4.get(e);if(n&&n.length>0){let r=n.findIndex(o=>o.el===t);r>-1&&n.splice(r,1);}n?.length===0&&Ao$4.delete(e);}function Ob$1(e,t,n){let r=Ao$4.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Km$1(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:u}=r[a],l=c.parentNode;c===t?(r.splice(a,1),bo$4.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):l&&o&&l!==o&&(s===null||u===null||s===u)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function Jm$1(e,t,n){let r=Km$1(n),o=Ao$4.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Ao$4.set(e,[{el:t,declarationView:r}]);}function qh$1(e){let t=e[Be$e]??={};return t.enter??=new Map}function la$3(e){let t=e[Be$e]??={};return t.leave??=new Map}function Xm$1(e){let t=typeof e=="function"?e():e,n=Array.isArray(t)?t:null;return typeof t=="string"&&(n=t.trim().split(/\s+/).filter(r=>r)),n}function kb$1(e,t){if(!qo$6)return;let n=Sr$8.get(e);if(n&&n.classList.length>0&&Fb$1(e,n.classList))for(let r of n.classList)t.removeClass(e,r);Yl$1(e);}function Fb$1(e,t){for(let n of t)if(e.classList.contains(n))return true;return false}function xo$4(e){return e.composedPath?e.composedPath()[0]:e.target}function Ql$1(e,t){let n=Fn$9.get(t);return n===void 0?true:t===xo$4(e)&&(n.animationName!==void 0&&e.animationName===n.animationName||n.propertyName!==void 0&&(n.propertyName==="all"||e.propertyName===n.propertyName))}function ey(e,t,n){let r=e.get(t.index)??{animateFns:[]};r.animateFns.push(n),e.set(t.index,r);}function Zh$1(e,t){if(e)for(let n of e)n();for(let n of t)n();}function Yh$1(e,t){let n=la$3(e).get(t.index);n&&(n.resolvers=void 0);}function Gs$3(e){if(!e)return 0;let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function kn$6(e,t){return e.getPropertyValue(t).split(",").map(r=>r.trim())}function Lb$1(e){let t=kn$6(e,"transition-property"),n=kn$6(e,"transition-duration"),r=kn$6(e,"transition-delay"),o={propertyName:"",duration:0,animationName:void 0};for(let i=0;i<t.length;i++){let s=Gs$3(r[i])+Gs$3(n[i]);s>o.duration&&(o.propertyName=t[i],o.duration=s);}return o}function Pb$1(e){let t=kn$6(e,"animation-name"),n=kn$6(e,"animation-delay"),r=kn$6(e,"animation-duration"),o=kn$6(e,"animation-iteration-count"),i={animationName:"",propertyName:void 0,duration:0};for(let s=0;s<t.length;s++){let a=Gs$3(n[s])+Gs$3(r[s]),c=o[s];a>i.duration&&c!=="infinite"&&(i.animationName=t[s],i.duration=a);}return i}function ty(e,t){return e!==void 0&&e.duration>t.duration}function ny(e){return (e.animationName!=null||e.propertyName!=null)&&e.duration>0}function jb$1(e,t){let n=getComputedStyle(e),r=Pb$1(n),o=Lb$1(n),i=r.duration>o.duration?r:o;ty(t.get(e),i)||ny(i)&&t.set(e,i);}function ry(e,t,n){if(!n)return;let r=e.getAnimations();return r.length===0?jb$1(e,t):Vb$1(e,t,r)}function Vb$1(e,t,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});}ty(t.get(e),r)||ny(r)&&t.set(e,r);}var Bn$8=new Set,da$2=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(da$2||{}),qn$8=new b$g(""),Qh$1=new Set;function fe$d(e){Qh$1.has(e)||(Qh$1.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var fa$2=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new e})}return e})(),Kl$1=[0,1,2,3],Jl$1=(()=>{class e{ngZone=g$k(ge$b);
vendor: 22,614 bytes, line 19
19scheduler=g$k(Ke$f);errorHandler=g$k(Tt$g,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g$k(qn$8,{optional:true});}execute(){let n=this.sequences.size>0;n&&P$e(k$l.AfterRenderHooksStart),this.executing=true;for(let r of Kl$1)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&P$e(k$l.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[_n$8]??=[]).push(n),xn$6(r),r[_$f]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(da$2.AFTER_NEXT_RENDER,n):n()}static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ro$5=class Ro{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[_n$8];t&&(this.view[_n$8]=t.filter(n=>n!==this));}};function Xl$1(e,t){let n=t?.injector??g$k(oe$e);return fe$d("NgAfterNextRender"),Hb$1(e,n,t,true)}function Bb$1(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Hb$1(e,t,n,r){let o=t.get(fa$2);o.impl??=t.get(Jl$1);let i=t.get(qn$8,null,{optional:true}),s=n?.manualCleanup!==true?t.get(de$b):null,a=t.get(vr$9,null,{optional:true}),c=new Ro$5(o.impl,Bb$1(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Zo$5=new b$g("",{factory:()=>{let e=g$k(Ae$e),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function oy(e,t,n){let r=e.get(Zo$5);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function $b$1(e,t){let n=e.get(Zo$5);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function Ub$1(e,t){let n=e.get(Zo$5);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function Gb$1(e){let t=e.get(Zo$5);t.isScheduled||(Xl$1(()=>{t.isScheduled=false;for(let n of t.queue)n();t.queue.clear();},{injector:t.injector}),t.isScheduled=true);}function iy(e){let t=e.get(Zo$5);t.scheduler=Gb$1,t.scheduler(e);}function sy(e,t){for(let[n,r]of t)oy(e,r.animateFns);}function Kh$1(e,t,n,r){let o=e?.[Be$e]?.enter;t!==null&&o&&o.has(n.index)&&sy(r,o);}function Jh$1(e,t,n,r){try{n.get(lo$4);}catch{return r(false)}let o=e?.[Be$e];o?.enter?.has(t.index)&&$b$1(n,o.enter.get(t.index).animateFns);let i=zb$1(e,t,o);if(i.size===0){let s=false;if(e){let a=[];pa$2(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Bn$8.add(e[et$e]),oy(n,()=>Wb$1(e,t,o||void 0,i,r),o||void 0);}function zb$1(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E$l].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function Wb$1(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&pa$2(e,t,i),i.length>0){let s=n||e?.[Be$e];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),Zb$1(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Bn$8.delete(e[et$e]),o(true);});}else e&&Bn$8.delete(e[et$e]),o(false);}function pa$2(e,t,n){if(t.type&12){let o=e[t.index];if(be$e(o))for(let i=U$j;i<o.length;i++){let s=o[i];s[E$l].type===2&&qb$1(s,n);}}let r=t.child;for(;r;)pa$2(e,r,n),r=r.next;}function qb$1(e,t){let n=e[Be$e];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E$l].firstChild;for(;r;)pa$2(e,r,t),r=r.next;}function Zb$1(e,t,n){t.then(()=>{e[Be$e]?.running===t&&(e[Be$e].running=void 0,Bn$8.delete(e[et$e])),n(true);});}function Er$8(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;be$e(o)?c=o:He$g(o)&&(u=true,o=o[me$e]);let l=Oe$d(o);e===0&&r!==null?(Kh$1(a,r,i,n),s==null?Hm$1(t,r,l):Us$3(t,r,l,s||null,true)):e===1&&r!==null?(Kh$1(a,r,i,n),Us$3(t,r,l,s||null,true),Ob$1(i,l,a)):e===2?(a?.[Be$e]?.leave?.has(i.index)&&Jm$1(i,l,a),bo$4.delete(l),Jh$1(a,i,n,d=>{if(bo$4.has(l)){bo$4.delete(l);return}ua$3(t,l,u,d);})):e===3&&(bo$4.delete(l),Jh$1(a,i,n,()=>{t.destroyNode(l);})),c!=null&&oT(t,e,n,c,i,r,s);}}function Yb$1(e,t){ay(e,t),t[me$e]=null,t[ye$f]=null;}function Qb$1(e,t,n,r,o,i){r[me$e]=o,r[ye$f]=t,ga$1(e,r,n,1,o,i);}function ay(e,t){t[Xe$b].changeDetectionScheduler?.notify(9),ga$1(e,t,t[R$h],2,null,null);}function Kb$1(e){let t=e[hr$8];if(!t)return ku$2(e[E$l],e);for(;t;){let n=null;if(He$g(t))n=t[hr$8];else {let r=t[U$j];r&&(n=r);}if(!n){for(;t&&!t[Ve$f]&&t!==e;)He$g(t)&&ku$2(t[E$l],t),t=t[ee$a];t===null&&(t=e),He$g(t)&&ku$2(t[E$l],t),n=t&&t[Ve$f];}t=n;}}function ed$1(e,t){let n=e[Mn$7],r=n.indexOf(t);n.splice(r,1);}function ha$3(e,t){if(Kt$d(t))return;let n=t[R$h];n.destroyNode&&ga$1(e,t,n,3,null,null),Kb$1(t);}function ku$2(e,t){if(Kt$d(t))return;let n=C$a(null);try{t[_$f]&=-129,t[_$f]|=256,t[xe$d]&&Ut$e(t[xe$d]),Xb$1(e,t),Jb$1(e,t),t[E$l].type===1&&t[R$h].destroy();let r=t[Qt$c];if(r!==null&&be$e(t[ee$a])){r!==t[ee$a]&&ed$1(r,t);let o=t[dt$d];o!==null&&o.detachView(e);}Yu$2(t);}finally{C$a(n);}}function Jb$1(e,t){let n=e.cleanup,r=t[pr$9];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&&(t[pr$9]=null);let o=t[wt$i];if(o!==null){t[wt$i]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Wt$f];if(i!==null){t[Wt$f]=null;for(let s of i)s.destroy();}}function Xb$1(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof jn$7)){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];P$e(k$l.LifecycleHookStart,a,c);try{c.call(a);}finally{P$e(k$l.LifecycleHookEnd,a,c);}}else {P$e(k$l.LifecycleHookStart,o,i);try{i.call(o);}finally{P$e(k$l.LifecycleHookEnd,o,i);}}}}}function cy(e,t,n){return eT(e,t.parent,n)}function eT(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[me$e];if(tt$c(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Vn$9.None||o===Vn$9.Emulated)return null}return ce$b(r,n)}function uy(e,t,n){return nT(e,t,n)}function tT(e,t,n){return e.type&40?ce$b(e,n):null}var nT=tT;function td$1(e,t,n,r){let o=cy(e,r,t),i=t[R$h],s=r.parent||t[ye$f],a=uy(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Gh$1(i,o,n[c],a,false);else Gh$1(i,o,n,a,false);}function To$4(e,t){if(t!==null){let n=t.type;if(n&3)return ce$b(t,e);if(n&4)return ul$1(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return To$4(e,r);{let o=e[t.index];return be$e(o)?ul$1(-1,o):Oe$d(o)}}else {if(n&128)return To$4(e,t.next);if(n&32)return Zl$1(t,e)()||Oe$d(e[t.index]);{let r=ly(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=bt$h(e[ae$d]);return To$4(o,r)}else return To$4(e,t.next)}}}return null}function ly(e,t){if(t!==null){let r=e[ae$d][ye$f],o=t.projection;return r.projection[o]}return null}function ul$1(e,t){let n=U$j+e+1;if(n<t.length){let r=t[n],o=r[E$l].firstChild;if(o!==null)return To$4(r,o)}return t[ft$d]}function nd$1(e,t,n,r,o,i,s){for(;n!=null;){let a=r[z$o];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&br$9(Oe$d(c),r),n.flags|=2),!Uo$5(n))if(u&8)nd$1(e,t,n.child,r,o,i,false),Er$8(t,e,a,o,c,n,i,r);else if(u&32){let l=Zl$1(n,r),d;for(;d=l();)Er$8(t,e,a,o,d,n,i,r);Er$8(t,e,a,o,c,n,i,r);}else u&16?dy(e,t,r,n,o,i):Er$8(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function ga$1(e,t,n,r,o,i){nd$1(n,r,e.firstChild,t,o,i,false);}function rT(e,t,n){let r=t[R$h],o=cy(e,n,t),i=n.parent||t[ye$f],s=uy(i,n,t);dy(r,0,t,n,o,s);}function dy(e,t,n,r,o,i){let s=n[ae$d],c=s[ye$f].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Er$8(t,e,n[z$o],o,l,r,i,n);}else {let u=c,l=s[ee$a];$s$3(r)&&(u.flags|=128),nd$1(e,t,u,l,o,i,true);}}function oT(e,t,n,r,o,i,s){let a=r[ft$d],c=Oe$d(r);a!==c&&Er$8(t,e,n,i,a,o,s);for(let u=U$j;u<r.length;u++){let l=r[u];ga$1(l[E$l],l,e,t,i,a);}}function iT(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Tr$8.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Tr$8.Important),e.setStyle(n,r,o,i));}}function rd$1(e,t,n,r,o,i,s,a,c,u,l){let d=O$r+r,f=d+o,p=sT(d,f),h=typeof u=="function"?u():u;return p[E$l]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,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:h,incompleteFirstPass:false,ssrId:l}}function sT(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ue$9);return n}function aT(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=rd$1(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function od$1(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[me$e]=o,d[_$f]=r|4|128|8|64|1024,(u!==null||e&&e[_$f]&2048)&&(d[_$f]|=2048),lu$1(d),d[ee$a]=d[Yt$c]=e,d[J$o]=n,d[Xe$b]=s||e&&e[Xe$b],d[R$h]=a||e&&e[R$h],d[z$o]=c||e&&e[z$o]||null,d[ye$f]=i,d[et$e]=mw$1(),d[Ie$a]=l,d[ou$2]=u,d[ae$d]=t.type==2?e[ae$d]:d,d}function cT(e,t,n){let r=ce$b(t,e),o=aT(n),i=e[Xe$b].rendererFactory,s=id$1(e,od$1(e,o,null,fy(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function fy(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function py(e,t,n,r){if(n===0)return -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function id$1(e,t){return e[hr$8]?e[ru$1][Ve$f]=t:e[hr$8]=t,e[ru$1]=t,t}function uT(e=1){hy(F$j(),m$c(),Le$f()+e);}function hy(e,t,n,r){if((t[_$f]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ms$3(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Ns$3(t,i,0,n);}Jt$d(n);}var ma$2=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(ma$2||{});function Hn$7(e,t,n,r){let o=C$a(null);try{let[i,s,a]=e.inputs[n],c=null;(s&ma$2.SignalBased)!==0&&(c=t[i][K$q]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Rg$1(t,c,i,r);}finally{C$a(o);}}function gy(e,t,n,r,o){let i=Le$f(),s=r&2;try{Jt$d(-1),s&&t.length>O$r&&hy(e,t,O$r,!1);let a=s?k$l.TemplateUpdateStart:k$l.TemplateCreateStart;P$e(a,o,n),n(r,o);}finally{Jt$d(i);let a=s?k$l.TemplateUpdateEnd:k$l.TemplateCreateEnd;P$e(a,o,n);}}function ya$2(e,t,n){hT(e,t,n),(n.flags&64)===64&&gT(e,t,n);}function Yo$5(e,t,n=ce$b){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function lT(e,t,n,r){let i=r.get(Ll$1,dm)||n===Vn$9.ShadowDom||n===Vn$9.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return dT(s),s}function dT(e){my(e);}var my=()=>null;function fT(e){Jg$1(e)?$m$1(e):Mw$1(e);}function yy(){my=fT;}function pT(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function vy(e,t,n,r,o,i){let s=t[E$l];if(va$1(e,s,t,n,r)){tt$c(e)&&Dy(t,e.index);return}e.type&3&&(n=pT(n)),sd$1(e,t,n,r,o,i);}function sd$1(e,t,n,r,o,i){if(e.type&3){let s=ce$b(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function Dy(e,t){let n=Ue$e(t,e);n[_$f]&16||(n[_$f]|=64);}function hT(e,t,n){let r=n.directiveStart,o=n.directiveEnd;tt$c(n)&&cT(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Bs$2(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Mo$4(t,e,s,n);if(br$9(c,t),i!==null&&vT(t,s-r,c,a,n,i),$e$e(a)){let u=Ue$e(n.index,t);u[J$o]=Mo$4(t,e,s,n);}}}function gT(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=fh$2();try{Jt$d(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ds$4(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&mT(c,u);}}finally{Jt$d(-1),ds$4(s);}}function mT(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function ad$1(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Zm$1(t,i.selectors,false)&&(r??=[],$e$e(i)?r.unshift(i):r.push(i));}return r}function yT(e,t,n,r,o,i){let s=ce$b(e,t);Ey(t[R$h],s,i,e.value,n,r,o);}function Ey(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Je$b(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function vT(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Hn$7(r,n,c,u);}}function cd$1(e,t,n,r,o){let i=O$r+n,s=t[E$l],a=o(s,t,e,r,n);t[i]=a,Rn$7(e,true);let c=e.type===2;return c?(Um$1(t[R$h],a,e),(rh$1()===0||gr$9(e))&&br$9(a,t),oh$1()):br$9(a,t),ms$3()&&(!c||!Uo$5(e))&&td$1(s,t,a,e),e}function ud$1(e){let t=e;return vu$2()?Du$2():(t=t.parent,Rn$7(t,false)),t}function DT(e,t,n){return (e===null||$e$e(e))&&(n=cu$2(n[t.index])),n[R$h]}function ld$1(e,t){let n=e[z$o];if(!n)return;let r;try{r=n.get(Mt$d,null);}catch{r=null;}r?.(t);}function va$1(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Hn$7(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Hn$7(l,u,r,o),a=true;}return a}function ET(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let f=0;f<d.length;f+=2){let p=d[f];if(p>=a&&p<=c){let h=t.data[p],y=d[f+1];Hn$7(h,n[p],y,i),u=true;}else if(p>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Hn$7(r,n[s],o,i),u=true),u}function IT(e,t){let n=Ue$e(t,e),r=n[E$l];CT(r,n);let o=n[me$e];o!==null&&n[Ie$a]===null&&(n[Ie$a]=Tm$1(o,n[z$o])),P$e(k$l.ComponentStart);try{dd$1(r,n,n[J$o]);}finally{P$e(k$l.ComponentEnd,n[J$o]);}}function CT(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function dd$1(e,t,n){ps$4(t);try{let r=e.viewQuery;r!==null&&el$2(1,r,n);let o=e.template;o!==null&&gy(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[dt$d]?.finishViewCreation(e),e.staticContentQueries&&Am(e,t),e.staticViewQueries&&el$2(2,e.viewQuery,n);let i=e.components;i!==null&&wT(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[_$f]&=-5,hs$4();}}function wT(e,t){for(let n=0;n<t.length;n++)IT(e,t[n]);}function Or$6(e,t,n,r){let o=C$a(null);try{let i=t.tView,a=e[_$f]&4096?4096:16,c=od$1(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Qt$c]=u;let l=e[dt$d];return l!==null&&(c[dt$d]=l.createEmbeddedView(i)),dd$1(i,c,n),c}finally{C$a(o);}}function $n$7(e,t){return !t||t.firstChild===null||$s$3(e)}function Oo$4(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Oe$d(i)),be$e(i)&&Iy(i,r);let s=n.type;if(s&8)Oo$4(e,t,n.child,r);else if(s&32){let a=Zl$1(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=ly(t,n);if(Array.isArray(a))r.push(...a);else {let c=bt$h(t[ae$d]);Oo$4(c[E$l],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Iy(e,t){for(let n=U$j;n<e.length;n++){let r=e[n],o=r[E$l].firstChild;o!==null&&Oo$4(r[E$l],r,o,t);}e[ft$d]!==e[me$e]&&t.push(e[ft$d]);}function Cy(e){if(e[_n$8]!==null){for(let t of e[_n$8])t.impl.addSequence(t);e[_n$8].length=0;}}var wy=[];function bT(e){return e[xe$d]??TT(e)}function TT(e){let t=wy.pop()??Object.create(_T);return t.lView=e,t}function ST(e){e.lView[xe$d]!==e&&(e.lView=null,wy.push(e));}var _T=s$e(r$d({},Ht$d),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{xn$6(e.lView);},consumerOnSignalRead(){this.lView[xe$d]=this;}});function MT(e){let t=e[xe$d]??Object.create(NT);return t.lView=e,t}var NT=s$e(r$d({},Ht$d),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=bt$h(e.lView);for(;t&&!by(t[E$l]);)t=bt$h(t);t&&as$3(t);},consumerOnSignalRead(){this.lView[xe$d]=this;}});function by(e){return e.type!==2}function Ty(e){if(e[Wt$f]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Wt$f])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[_$f]&8192);}}var AT=100;function Sy(e,t=0){let r=e[Xe$b].rendererFactory;r.begin?.();try{xT(e,t);}finally{r.end?.();}}function xT(e,t){let n=Iu$2();try{to$5(!0),ll$2(e,t);let r=0;for(;go$4(e);){if(r===AT)throw new D$l(103,!1);r++,ll$2(e,1);}}finally{to$5(n);}}function RT(e,t,n,r){if(Kt$d(t))return;let o=t[_$f],i=false,s=false;ps$4(t);let a=true,c=null,u=null;(by(e)?(u=bT(t),c=It$d(u)):Vi$2()===null?(a=false,u=MT(t),c=It$d(u)):t[xe$d]&&(Ut$e(t[xe$d]),t[xe$d]=null));try{lu$1(t),uh$1(e.bindingStartIndex),n!==null&&gy(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&Ms$3(t,p,null);}else {let p=e.preOrderHooks;p!==null&&Ns$3(t,p,0,null),xu$2(t,0);}if(s||OT(t),Ty(t),_y(t,0),e.contentQueries!==null&&Am(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&Ms$3(t,p);}else {let p=e.contentHooks;p!==null&&Ns$3(t,p,1),xu$2(t,1);}FT(e,t);let d=e.components;d!==null&&Ny(t,d,0);let f=e.viewQuery;if(f!==null&&el$2(2,f,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&Ms$3(t,p);}else {let p=e.viewHooks;p!==null&&Ns$3(t,p,2),xu$2(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[is$4]){for(let p of t[is$4])p();t[is$4]=null;}i||(Cy(t),t[_$f]&=-73);}catch(l){throw xn$6(t),l}finally{u!==null&&($t$d(u,c),a&&ST(u)),hs$4();}}function _y(e,t){for(let n=tm(e);n!==null;n=nm(n))for(let r=U$j;r<n.length;r++){let o=n[r];My(o,t);}}function OT(e){for(let t=tm(e);t!==null;t=nm(t)){if(!(t[_$f]&2))continue;let n=t[Mn$7];for(let r=0;r<n.length;r++){let o=n[r];as$3(o);}}}function kT(e,t,n){P$e(k$l.ComponentStart);let r=Ue$e(t,e);try{My(r,n);}finally{P$e(k$l.ComponentEnd,r[J$o]);}}function My(e,t){ss$4(e)&&ll$2(e,t);}function ll$2(e,t){let r=e[E$l],o=e[_$f],i=e[xe$d],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&sr$8(i)),s||=false,i&&(i.dirty=false),e[_$f]&=-9217,s)RT(r,e,r.template,e[J$o]);else if(o&8192){let a=C$a(null);try{Ty(e),_y(e,1);let c=r.components;c!==null&&Ny(e,c,1),Cy(e);}finally{C$a(a);}}}function Ny(e,t,n){for(let r=0;r<t.length;r++)kT(e,t[r],n);}function FT(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Jt$d(~o);else {let i=o,s=n[++r],a=n[++r];dh$1(s,i);let c=t[i];P$e(k$l.HostBindingsUpdateStart,c);try{a(2,c);}finally{P$e(k$l.HostBindingsUpdateEnd,c);}}}}finally{Jt$d(-1);}}function fd$1(e,t){let n=Iu$2()?64:1088;for(e[Xe$b].changeDetectionScheduler?.notify(t);e;){e[_$f]|=n;let r=bt$h(e);if(Nn$9(e)&&!r)return e;e=r;}return null}function Ay(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function xy(e,t){let n=U$j+t;if(n<e.length)return e[n]}function kr$7(e,t,n,r=true){let o=t[E$l];if(LT(o,t,e,n),r){let s=ul$1(n,e),a=t[R$h],c=a.parentNode(e[ft$d]);c!==null&&Qb$1(o,e[ye$f],a,t,c,s);}let i=t[Ie$a];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function pd$1(e,t){let n=ko$4(e,t);return n!==void 0&&ha$3(n[E$l],n),n}function ko$4(e,t){if(e.length<=U$j)return;let n=U$j+t,r=e[n];if(r){let o=r[Qt$c];o!==null&&o!==e&&ed$1(o,r),t>0&&(e[n-1][Ve$f]=r[Ve$f]);let i=co$4(e,U$j+t);Yb$1(r[E$l],r);let s=i[dt$d];s!==null&&s.detachView(i[E$l]),r[ee$a]=null,r[Ve$f]=null,r[_$f]&=-129;}return r}function LT(e,t,n,r){let o=U$j+r,i=n.length;r>0&&(n[o-1][Ve$f]=t),r<i-U$j?(t[Ve$f]=n[o],Qc$1(n,U$j+r,t)):(n.push(t),t[Ve$f]=null),t[ee$a]=n;let s=t[Qt$c];s!==null&&n!==s&&Ry(s,t);let a=t[dt$d];a!==null&&a.insertView(e),cs$4(t),t[_$f]|=128;}function Ry(e,t){let n=e[Mn$7],r=t[ee$a];if(He$g(r))e[_$f]|=2;else {let o=r[ee$a][ae$d];t[ae$d]!==o&&(e[_$f]|=2);}n===null?e[Mn$7]=[t]:n.push(t);}var nn$9=class nn{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E$l];return Oo$4(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[J$o]}set context(t){this._lView[J$o]=t;}get destroyed(){return Kt$d(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ee$a];if(be$e(t)){let n=t[po$3],r=n?n.indexOf(this):-1;r>-1&&(ko$4(t,r),co$4(n,r));}this._attachedToViewContainer=false;}ha$3(this._lView[E$l],this._lView);}onDestroy(t){mo$4(this._lView,t);}markForCheck(){fd$1(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[_$f]&=-129;}reattach(){cs$4(this._lView),this._lView[_$f]|=128;}detectChanges(){this._lView[_$f]|=1024,Sy(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D$l(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Nn$9(this._lView),n=this._lView[Qt$c];n!==null&&!t&&ed$1(n,this._lView),ay(this._lView[E$l],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new D$l(902,false);this._appRef=t;let n=Nn$9(this._lView),r=this._lView[Qt$c];r!==null&&!n&&Ry(r,this._lView),cs$4(this._lView);}};
19var rn$a=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=PT;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=Or$6(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new nn$9(i)}}return e})();function PT(){return Da$2($$o(),m$c())}function Da$2(e,t){return e.type&4?new rn$a(t,e,xr$8(e,t)):null}function Zn$8(e,t,n,r,o){let i=e.data[t];if(i===null)i=jT(e,t,n,r,o),lh$1()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ch$1();i.injectorIndex=s===null?-1:s.injectorIndex;}return Rn$7(i,true),i}function jT(e,t,n,r,o){let i=yu$1(),s=vu$2(),a=s?i:i&&i.parent,c=e.data[t]=BT(e,a,n,t,r,o);return VT(e,c,i,s),c}function VT(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function BT(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return ls$3()&&(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,namespace:gs$4(),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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var HT=new RegExp(`^(\\d+)*(${im}|${om})*(.*)`);function $T(e){let t=e.match(HT),[n,r,o,i]=t,s=r?parseInt(r,10):o,a=[];for(let[c,u,l]of i.matchAll(/(f|n)(\d*)/g)){let d=parseInt(l,10)||1;a.push(u,d);}return [s,...a]}function UT(e){return !e.prev&&e.parent?.type===8}function Fu$1(e){return e.index-O$r}function GT(e,t){let n=e.i18nNodes;if(n)return n.get(t)}function Ea$2(e,t,n,r){let o=Fu$1(r),i=GT(e,o);if(i===void 0){let s=e.data[um];if(s?.[o])i=WT(s[o],n);else if(t.firstChild===r)i=e.firstChild;else {let a=r.prev===null,c=r.prev??r.parent;if(UT(r)){let u=Fu$1(r.parent);i=Xu$2(e,u);}else {let u=ce$b(c,n);if(a)i=u.firstChild;else {let l=Fu$1(c),d=Xu$2(e,l);if(c.type===2&&d){let p=$l(e,l)+1;i=Ia$1(p,d);}else i=u.nextSibling;}}}}return i}function Ia$1(e,t){let n=t;for(let r=0;r<e;r++)n=n.nextSibling;return n}function zT(e,t){let n=e;for(let r=0;r<t.length;r+=2){let o=t[r],i=t[r+1];for(let s=0;s<i;s++)switch(o){case Dw$1:n=n.firstChild;break;case Ew$1:n=n.nextSibling;break}}return n}function WT(e,t){let[n,...r]=$T(e),o;if(n===om)o=t[ae$d][me$e];else if(n===im)o=Wm$1(t[ae$d][me$e]);else {let i=Number(n);o=Oe$d(t[i+O$r]);}return zT(o,r)}function ZT(e){let t=e[Ie$a];if(t){let{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){let o=e[R$h];for(let i of r.values())YT(o,n,i);}t.i18nNodes=void 0,t.dehydratedIcuData=void 0;}}function YT(e,t,n){for(let r of n.node.cases[n.case]){let o=t.get(r.index-O$r);o&&ua$3(e,o,false);}}function Ca(e){let t=e[Re$e]??[],r=e[ee$a][R$h],o=[];for(let i of t)i.data[kl$1]!==void 0?o.push(i):ky(i,r);e[Re$e]=o;}function QT(e){let{lContainer:t}=e,n=t[Re$e];if(n===null)return;let o=t[ee$a][R$h];for(let i of n)ky(i,o);}function ky(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[No$4];for(;n<o;){let i=r.nextSibling;ua$3(t,r,false),r=i,n++;}}}function wa$1(e){Ca(e);let t=e[me$e];He$g(t)&&zs$3(t);for(let n=U$j;n<e.length;n++)zs$3(e[n]);}function zs$3(e){ZT(e);let t=e[E$l];for(let n=O$r;n<t.bindingStartIndex;n++)if(be$e(e[n])){let r=e[n];wa$1(r);}else He$g(e[n])&&zs$3(e[n]);}function hd$2(e){let t=e._views;for(let n of t){let r=Sm$1(n);r!==null&&r[me$e]!==null&&(He$g(r)?zs$3(r):wa$1(r));}}function KT(e,t,n,r){e!==null&&(n.cleanup(t),wa$1(e.lContainer),hd$2(r));}function JT(e,t){let n=[];for(let r of t)for(let o=0;o<(r[Rl$1]??1);o++){let i={data:r,firstChild:null};r[No$4]>0&&(i.firstChild=e,e=Ia$1(r[No$4],e)),n.push(i);}return [e,n]}var Fy=()=>null,Ly=()=>null;function Py(){Fy=XT,Ly=eS;}function XT(e,t){return Vy(e,t)?e[Re$e].shift():(Ca(e),null)}function Fo$4(e,t){return Fy(e,t)}
19function eS(e,t,n){if(t.tView.ssrId===null)return null;let r=Fo$4(e,t.tView.ssrId);return n[E$l].firstUpdatePass&&r===null&&tS(n,t),r}function jy(e,t,n){return Ly(e,t,n)}function tS(e,t){let n=t;for(;n;){if(eg$1(e,n))return;if((n.flags&256)===256)break;n=n.prev;}for(n=t.next;n&&(n.flags&512)===512;){if(eg$1(e,n))return;n=n.next;}}function Vy(e,t){let n=e[Re$e];return !t||n===null||n.length===0?false:n[0].data[cm]===t}function eg$1(e,t){let n=t.tView?.ssrId;if(n==null)return false;let r=e[t.index];return be$e(r)&&Vy(r,n)?(Ca(r),true):false}var By=class{},Lo$4=class Lo{},Fr$6=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>nS()}return e})();function nS(){let e=m$c(),t=$$o(),n=Ue$e(t.index,e);return (He$g(n)?n:e)[R$h]}var Hy=(()=>{class e{static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>null})}return e})();function $y(e){return e.debugInfo?.className||e.type.name||null}var Rs$4={},Ln$7=class Ln{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Rs$4,r);return o!==Rs$4||n===Rs$4?o:this.parentInjector.get(t,n,r)}};function gd$1(e){return ba$2(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:false}function Uy(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else {let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value);}}function ba$2(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function sn$a(e,t,n){return e[t]=n}function md$1(e,t){return e[t]}function se$f(e,t,n){if(n===ue$9)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function _r$8(e,t,n,r){let o=se$f(e,t,n);return se$f(e,t+1,r)||o}function Gy(e,t,n,r,o){let i=_r$8(e,t,n,r);return se$f(e,t+2,o)||i}function yd$1(e,t,n,r,o,i){let s=_r$8(e,t,n,r);return _r$8(e,t+2,o,i)||s}function Pn$7(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&Cw$1(o,i);let s=tt$c(e)?Ue$e(e.index,t):t;fd$1(s,5);let a=t[J$o],c=tg$1(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=tg$1(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function tg$1(e,t,n,r){let o=C$a(null);try{return P$e(k$l.OutputStart,t,n),n(r)!==!1}catch(i){return ld$1(e,i),false}finally{P$e(k$l.OutputEnd,t,n),C$a(o);}}function vd$1(e,t,n,r,o,i,s,a){let c=gr$9(e),u=false,l=null;if(!r&&c&&(l=oS(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=ce$b(e,n),f=r?r(d):d;ww$1(n,f,i,a),r||(a.__ngNativeEl__=d);let p=o.listen(f,i,a);if(!rS(i)){let h=r?y=>r(Oe$d(y[e.index])):e.index;zy(h,t,n,i,a,p,false);}}return u}function rS(e){return e.startsWith("animation")||e.startsWith("transition")}function oS(e,t,n,r){let o=e.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=t[pr$9],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function zy(e,t,n,r,o,i,s){let a=t.firstCreatePass?pu$1(t):null,c=fu$2(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function ng$1(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let f=l[d];if(f>=s&&f<=a)c=true,Ws$3(e,t,f,l[d+1],r,o);else if(f>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,Ws$3(e,t,i,r,r,o)),c}function Ws$3(e,t,n,r,o,i){let s=t[n],a=t[E$l],u=a.data[n].outputs[r],d=s[u].subscribe(i);zy(e.index,a,t,o,i,d,true);}function iS(){sS();}function sS(){let e=m$c(),t=F$j(),n=$$o();if(t.firstCreatePass&&uS(t,n),n.controlDirectiveIndex===-1)return;fe$d("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new qs$3(e,t,n));}function aS(){cS();}function cS(){let e=m$c(),t=F$j(),n=pt$e();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new qs$3(e,t,n));}var qs$3=class qs{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,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 nativeElement(){return ce$b(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];ng$1(this.tNode,this.lView,r,t,Pn$7(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];ng$1(this.tNode,this.lView,r,n,Pn$7(this.tNode,this.lView,t));}listenToDom(t,n){vd$1(this.tNode,this.tView,this.lView,void 0,this.lView[R$h],t,n,Pn$7(this.tNode,this.lView,n));}
19setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];Hn$7(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];Hn$7(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";ET(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=rg$1(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=rg$1(i.directive);s!==null&&r.push(...s);}}}return n}};function rg$1(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function uS(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}lS(e,t);}function lS(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(og$1(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(og$1(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[f,p,h]=d;if(c>=p&&c<=h)return t.flags|=o,t.customControlIndex=f,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function og$1(e,t){return dS(e,t)&&fS(e,t+"Change")}function dS(e,t){return t in e.inputs}function fS(e,t){return t in e.outputs}var dl$3=Symbol("BINDING");var Wy=new b$g("");function Zs$2(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Yi$3(o,a);else if(i==2){let c=a,u=t[++s];r=Yi$3(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function q$l(e,t=0){let n=m$c();if(n===null)return G$k(e,t);let r=$$o();return Gg$1(r,n,re$b(e),t)}function pS(){let e="invalid";throw new Error(e)}function qy(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,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}mS(e,t,n,a,i,c,u);}i!==null&&r!==null&&hS(n,r,i);}function hS(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new D$l(-301,false);r.push(t[o],i);}}function gS(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function mS(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let p=r[f];c===null&&$e$e(p)&&(c=p,gS(e,n,f)),Wu$2(Bs$2(n,t),e,p.type);}CS(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let p=r[f];p.providersResolver&&p.providersResolver(p);}let u=false,l=false,d=py(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let p=r[f];if(n.mergedAttrs=wr$7(n.mergedAttrs,p.hostAttrs),vS(e,n,t,d,p),IS(d,p,o),s!==null&&s.has(p)){let[y,w]=s.get(p);n.directiveToIndex.set(p.type,[d,y+n.directiveStart,w+n.directiveStart]);}else (i===null||!i.has(p))&&n.directiveToIndex.set(p.type,d);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let h=p.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}yS(e,n,i);}function yS(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ig$1(0,t,o,r),ig$1(1,t,o,r),ag$1(t,r,false);else {let i=n.get(o);sg$1(0,t,i,r),sg$1(1,t,i,r),ag$1(t,r,true);}}}function ig$1(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Zy(t,i);}}function sg$1(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Zy(t,s);}}function Zy(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}
19function ag$1(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||ql$1(e)){e.initialInputs??=[],e.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===t){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]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function vS(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=zt$e(o.type)),s=new jn$7(i,$e$e(o),q$l,null);e.blueprint[r]=s,n[r]=s,DS(e,t,r,py(e,n,o.hostVars,ue$9),o);}function DS(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;ES(s)!=a&&s.push(a),s.push(n,r,i);}}function ES(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function IS(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;$e$e(t)&&(n[""]=e);}}function CS(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function Dd$1(e,t,n,r,o,i,s,a){let c=t[E$l],u=c.consts,l=ke$b(u,s),d=Zn$8(c,e,n,r,l);return qy(c,t,d,ke$b(u,a),o),d.mergedAttrs=wr$7(d.mergedAttrs,d.attrs),d.attrs!==null&&Zs$2(d,d.attrs,false),d.mergedAttrs!==null&&Zs$2(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function Ed$1(e,t){Fg$1(e,t),su$1(t)&&e.queries.elementEnd(t);}function wS(e,t,n,r,o,i){let s=t.consts,a=ke$b(s,o),c=Zn$8(t,e,n,r,a);if(c.mergedAttrs=wr$7(c.mergedAttrs,c.attrs),i!=null){let u=ke$b(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&Zs$2(c,c.attrs,false),c.mergedAttrs!==null&&Zs$2(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Yy=typeof ShadowRoot<"u",bS=typeof Document<"u";function TS(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ma$2.SignalBased)!==0};return o&&(i.transform=o),i})}function SS(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function _S(e,t,n){let r=t instanceof Ae$e?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ln$7(n,r):n}function MS(e){let t=e.get(Lo$4,null);if(t===null)throw new D$l(407,false);let n=e.get(Hy,null),r=e.get(Ke$f,null),o=e.get(qn$8,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function NS(e,t){let n=Qy(e);return zl$1(t,n,n==="svg"?au$1:n==="math"?Jp$2:null)}function AS(e){if(e?.toLowerCase()==="script")throw new D$l(905,false)}function Qy(e){return (e.selectors[0][0]||"div").toLowerCase()}var Un$6=class Un{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=TS(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=SS(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Mb$1(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){P$e(k$l.DynamicComponentStart);let a=C$a(null);try{let c=this.componentDef,u=_S(c,o||this.ngModule,t),l=MS(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate($y(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{C$a(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=xS(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?lT(u,o,a.encapsulation,n):NS(a,u);AS(l?.tagName);let d=n.get(Wy,null),f=RS(l,()=>n.get(Te$g,null)??ra$2());d&&d.addHost(f);
19let p=s?.some(cg$1)||i?.some(w=>typeof w!="function"&&w.bindings.some(cg$1)),h=od$1(null,c,null,512|fy(a),null,null,t,u,n,null,Tm$1(l,n,true));d&&Yy&&f instanceof ShadowRoot&&mo$4(h,()=>{d.removeHost(f);}),h[O$r]=l,ps$4(h);let y=null;try{let w=Dd$1(O$r,h,2,"#host",()=>c.directiveRegistry,!0,0);Um$1(u,l,w),br$9(l,h),ya$2(c,h,w),Ul$1(c,w,h),Ed$1(c,w),r!==void 0&&kS(w,this.ngContentSelectors,r),y=Ue$e(w.index,h),h[J$o]=y[J$o],dd$1(c,h,null);}catch(w){throw y!==null&&Yu$2(y),Yu$2(h),w}finally{P$e(k$l.DynamicComponentEnd),hs$4();}return new Ys$3(this.componentType,h,!!p)}};function xS(e,t,n,r){let o=e?["ng-version","22.0.8"]:Nb$1(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[dl$3].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[dl$3].requiredVars;let p=l+1;f.create&&(f.targetIdx=p,(i??=[]).push(f)),f.update&&(f.targetIdx=p,(s??=[]).push(f));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=ao$4(d);c.push(f);}return rd$1(0,null,OS(i,s),1,a,c,null,null,null,[o],null)}function RS(e,t){let n=e.getRootNode?.();return bS&&n instanceof Document?n.head:n&&Yy&&n instanceof ShadowRoot?n:t().head}function OS(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function cg$1(e){let t=e[dl$3].kind;return t==="input"||t==="twoWay"}var Ys$3=class Ys extends By{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=mr$8(n[E$l],O$r),this.location=xr$8(this._tNode,n),this.instance=Ue$e(this._tNode.index,n)[J$o],this.hostView=this.changeDetectorRef=new nn$9(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;va$1(r,o[E$l],o,t,n);this.previousInputValues.set(t,n);let s=Ue$e(r.index,o);fd$1(s,1);}get injector(){return new tn$a(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function kS(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var Rt$f=(()=>{class e{static __NG_ELEMENT_ID__=FS}return e})();function FS(){let e=$$o();return Ky(e,m$c())}var fl$2=class e extends Rt$f{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return xr$8(this._hostTNode,this._hostLView)}get injector(){return new tn$a(this._hostTNode,this._hostLView)}get parentInjector(){let t=Nl$1(this._hostTNode,this._hostLView);if(jg$1(t)){let n=js$2(t,this._hostLView),r=Ps$2(t),o=n[E$l].data[r+8];return new tn$a(o,n)}else return new tn$a(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=ug$1(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-U$j}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Fo$4(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$n$7(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new Un$6(ut$g(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let A=this.parentInjector.get(Ae$e,null);A&&(i=A);}let f=ut$g(l.componentType??{}),p=Fo$4(this._lContainer,f?.id??null),h=p?.firstChild??null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,$n$7(this._hostTNode,p)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(eh$1(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[ee$a],u=new e(c,c[ye$f],c[ee$a]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return kr$7(s,o,i,r),t.attachToViewContainerRef(),Qc$1(Lu$2(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ug$1(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ko$4(this._lContainer,n);r&&(co$4(Lu$2(this._lContainer),n),ha$3(r[E$l],r));}detach(t){let n=this._adjustIndex(t,-1),r=ko$4(this._lContainer,n);return r&&co$4(Lu$2(this._lContainer),n)!=null?new nn$9(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ug$1(e){return e[po$3]}function Lu$2(e){return e[po$3]||(e[po$3]=[])}function Ky(e,t){let n,r=t[e.index];return be$e(r)?n=r:(n=Ay(r,t,null,e),t[e.index]=n,id$1(t,n)),Jy(n,t,e,r),new fl$2(n,e,t)}function LS(e,t){let n=e[R$h],r=n.createComment(""),o=ce$b(t,e),i=n.parentNode(o);return Us$3(n,i,r,n.nextSibling(o),false),r}var Jy=ev$1,Id$1=()=>false;function Xy(e,t,n){return Id$1(e,t,n)}function ev$1(e,t,n,r){if(e[ft$d])return;let o;n.type&8?o=Oe$d(r):o=LS(t,n),e[ft$d]=o;}function PS(e,t,n){if(e[ft$d]&&e[Re$e])return true;let r=n[Ie$a],o=t.index-O$r;if(!r||Xg$1(t)||Mm(r,o))return false;let s=Xu$2(r,o),a=r.data[oa$3]?.[o];if(a===void 0)return false;let[c,u]=JT(s,a);return e[ft$d]=c,e[Re$e]=u,true}function jS(e,t,n,r){Id$1(e,n,t)||ev$1(e,t,n,r);}function tv$1(){Jy=jS,Id$1=PS;}var pl$1=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},hl$1=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.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 e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)wd$1(t,n).matches!==null&&this.queries[n].setDirty();}},Qs$2=class Qs{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=US(t):this.predicate=t;}},gl$1=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},ml$2=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}
vendor: 1,713 bytes, line 19
19matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,VS(n,i)),this.matchTNodeWithReadOption(t,n,As$3(n,t,i,false,false));}else r===rn$a?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,As$3(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===gt$f||o===Rt$f||o===rn$a&&n.type&4)this.addMatch(n.index,-2);else {let i=As$3(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function VS(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function BS(e,t){return e.type&11?xr$8(e,t):e.type&4?Da$2(e,t):null}function HS(e,t,n,r){return n===-1?BS(t,e):n===-2?$S(e,t,r):Mo$4(e,e[E$l],n,t)}function $S(e,t,n){if(n===gt$f)return xr$8(t,e);if(n===rn$a)return Da$2(t,e);if(n===Rt$f)return Ky(t,e)}function nv$1(e,t,n,r){let o=t[dt$d].queries[r];if(o.matches===null){let i=e.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(HS(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function yl$1(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=nv$1(e,t,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=t[-c];for(let d=U$j;d<l.length;d++){let f=l[d];f[Qt$c]===f[ee$a]&&yl$1(f[E$l],f,u,r);}if(l[Mn$7]!==null){let d=l[Mn$7];for(let f=0;f<d.length;f++){let p=d[f];yl$1(p[E$l],p,u,r);}}}}}return r}function Cd$1(e,t){return e[dt$d].queries[t].queryList}
19function rv$1(e,t,n){let r=new Hs$3((n&4)===4);return nh$1(e,t,r,r.destroy),(t[dt$d]??=new hl$1).queries.push(new pl$1(r))-1}function ov$1(e,t,n){let r=F$j();return r.firstCreatePass&&(sv$1(r,new Qs$2(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),rv$1(r,m$c(),t)}function iv$1(e,t,n,r){let o=F$j();if(o.firstCreatePass){let i=$$o();sv$1(o,new Qs$2(t,n,r),i.index),GS(o,e),(n&2)===2&&(o.staticContentQueries=true);}return rv$1(o,m$c(),n)}function US(e){return e.split(",").map(t=>t.trim())}function sv$1(e,t,n){e.queries===null&&(e.queries=new gl$1),e.queries.track(new ml$2(t,n));}function GS(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function wd$1(e,t){return e.queries.getByIndex(t)}function av$1(e,t){let n=e[E$l],r=wd$1(n,t);return r.crossesNgTemplate?yl$1(n,e,t,[]):nv$1(n,e,r,t)}function bd$1(e,t,n){let r,o=Qr$6(()=>{r._dirtyCounter();let i=zS(r,e);if(t&&i===void 0)throw new D$l(-951,false);return i});return r=o[K$q],r._dirtyCounter=On$7(0),r._flatValue=void 0,o}function Td$1(e){return bd$1(true,false)}function Sd(e){return bd$1(true,true)}function _d$1(e){return bd$1(false,false)}function cv$1(e,t){let n=e[K$q];n._lView=m$c(),n._queryIndex=t,n._queryList=Cd$1(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function zS(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[_$f]&4)return t?void 0:he$e;let o=Cd$1(n,r),i=av$1(n,r);return o.reset(i,Yg$1),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Qo$6(e){return !!e&&typeof e.then=="function"}function Ta$2(e){return !!e&&typeof e.subscribe=="function"}var on$9=class on{},uv$1=class uv{};function Md$1(e,t){return new Po$4(e,t??null,[])}var Po$4=class Po extends on$9{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Hp$2(t);this._bootstrapComponents=yb$1(i.bootstrap),this._r3Injector=Su$2(t,n,[{provide:on$9,useValue:this},...r],oo$5(t),new Set(["environment"])),o&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null;}onDestroy(t){this.destroyCbs.push(t);}},Ks$2=class Ks extends uv$1{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Po$4(this.moduleType,t,[])}};var jo$5=class jo extends on$9{injector;instance=null;constructor(t){super();let n=new wn$8([...t.providers,{provide:on$9,useValue:this}],t.parent||fr$8(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function Nd$1(e,t,n=null){return new jo$5({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var WS=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=ns$4(false,n.type),o=r.length>0?Nd$1([r],this._injector,""):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=L$l({token:e,providedIn:"environment",factory:()=>new e(G$k(Ae$e))})}return e})();function qS(e){return Bo$4(()=>{let t=lv$1(e),n=s$e(r$d({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==xl$1.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(WS).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||Vn$9.Emulated,styles:e.styles||he$e,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&fe$d("NgStandalone"),dv$1(n);
19let r=e.dependencies;return n.directiveDefs=lg$1(r,ZS),n.pipeDefs=lg$1(r,qc$1),n.id=KS(n),n})}function ZS(e){return ut$g(e)||ao$4(e)}function Sa$2(e){return Bo$4(()=>({type:e.type,bootstrap:e.bootstrap||he$e,declarations:e.declarations||he$e,imports:e.imports||he$e,exports:e.exports||he$e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function YS(e,t){if(e==null)return Zt$c;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[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=ma$2.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function QS(e){if(e==null)return Zt$c;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function mt$d(e){return Bo$4(()=>{let t=lv$1(e);return dv$1(t),t})}function Yn$8(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function lv$1(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Zt$c,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||he$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:YS(e.inputs,t),outputs:QS(e.outputs),debugInfo:null}}function dv$1(e){e.features?.forEach(t=>t(e));}function lg$1(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function KS(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var Ad$1=new b$g("");function JS(e){return fo$3([{provide:Ad$1,multi:true,useValue:e}])}var xd$1=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g$k(Ad$1,{optional:true})??[];injector=g$k(oe$e);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=rs$4(this.injector,o);if(Qo$6(i))n.push(i);else if(Ta$2(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})}return e})();function XS(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function e_$1(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=t_$1,n.hostDirectives=r?e.map(vl$1):[e]):r?n.hostDirectives.unshift(...e.map(vl$1)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function t_$1(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,fv$1(s,t,r,e),o.set(s,[a,t.length-1]);}i===0&&$e$e(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return r!==null&&r.forEach((i,s)=>{n_$1(s.declaredInputs,i.inputs);}),[t,r,o]}function fv$1(e,t,n,r){if(e.hostDirectives!==null)for(let o of e.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)dg$1(vl$1(s),t,n,r);}else dg$1(o,t,n,r);}function dg$1(e,t,n,r){let o=ao$4(e.directive);if(fv$1(o,t,n,r),n.has(o)){let i=n.get(o);fg$1(i,e.inputs,"input"),fg$1(i,e.outputs,"output");}else r.includes(o)||(n.set(o,e),t.push(o));}function fg$1(e,t,n){let r=n==="input"?e.inputs:e.outputs;Object.keys(t).forEach(o=>{let i=t[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i);});}function vl$1(e){return typeof e=="function"?{directive:re$b(e),inputs:{},outputs:{}}:{directive:re$b(e.directive),inputs:pg$1(e.inputs),outputs:pg$1(e.outputs)}}function pg$1(e){let t={};if(e!==void 0&&e.length>0)for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function n_$1(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o;}}function r_$1(e){return Object.getPrototypeOf(e.prototype).constructor}function pv$1(e){let t=r_$1(e.type),n=true,r=[e];for(;t;){let o;if($e$e(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new D$l(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;
19s.inputs=Pu$2(e.inputs),s.declaredInputs=Pu$2(e.declaredInputs),s.outputs=Pu$2(e.outputs);let a=o.hostBindings;a&&c_$1(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&s_$1(e,c),u&&a_$1(e,u),o_$1(e,o),Bp$3(e.outputs,o.outputs),$e$e(o)&&o.data.animation){let l=e.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(e),a===pv$1&&(n=false);}}t=Object.getPrototypeOf(t);}i_$1(r);}function o_$1(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function i_$1(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=wr$7(o.hostAttrs,n=wr$7(n,o.hostAttrs));}}function Pu$2(e){return e===Zt$c?{}:e===he$e?[]:e}function s_$1(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function a_$1(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function c_$1(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function hv$1(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=wr$7(e.mergedAttrs,e.attrs);let l=e.tView=rd$1(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),Rn$7(e,false);let c=yv$1(n,t,e,r);ms$3()&&td$1(n,t,c,e),br$9(c,t);let u=Ay(c,t,c,e);t[r+O$r]=u,id$1(t,u),Xy(u,e,t);}function u_$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+O$r,f;return t.firstCreatePass?(f=Zn$8(t,d,4,s||null,a||null),qy(t,e,f,ke$b(t.consts,u),ad$1),Fg$1(t,f)):f=t.data[d],hv$1(f,e,t,n,r,o,i,c),gr$9(f)&&ya$2(t,e,f),u!=null&&Yo$5(e,f,l),f}function Gn$9(e,t,n,r,o,i,s,a,c,u,l){let d=n+O$r,f;if(t.firstCreatePass){if(f=Zn$8(t,d,4,s||null,a||null),u!=null){let p=ke$b(t.consts,u);f.localNames=[];for(let h=0;h<p.length;h+=2)f.localNames.push(p[h],-1);}}else f=t.data[d];return hv$1(f,e,t,n,r,o,i,c),u!=null&&Yo$5(e,f,l),f}function gv$1(e,t,n,r,o,i,s,a){let c=m$c(),u=F$j(),l=ke$b(u.consts,i);return u_$1(c,u,e,t,n,r,o,l,void 0,s,a),gv$1}function mv$1(e,t,n,r,o,i,s,a){let c=m$c(),u=F$j(),l=ke$b(u.consts,i);return Gn$9(c,u,e,t,n,r,o,l,void 0,s,a),mv$1}var yv$1=vv$1;function vv$1(e,t,n,r){return St$e(true),t[R$h].createComment("")}function l_$1(e,t,n,r){let o=!aa$2(t,n);St$e(o);let i=t[Ie$a]?.data[am]?.[r]??null;if(i!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=i),o)return vv$1(e,t);let s=t[Ie$a],a=Ea$2(s,e,t,n);ia$2(s,r,a);let c=$l(s,r);return Ia$1(c,a)}function Dv$1(){yv$1=l_$1;}var Se$f=(function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e})(Se$f||{}),hg$1=0,d_$1=1,X$j=(function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e})(X$j||{}),Js$3=(function(e){return e[e.Initial=-1]="Initial",e})(Js$3||{}),f_$1=0,Lr$6=1;var p_$1=4,h_$1=5,g_$1=6,m_$1=7,Cr$8=8,y_$1=9,Rd$1=(function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e})(Rd$1||{});function Ev$1(e,t,n){let r=Cv$1(e);t[r]===null&&(t[r]=[]),t[r].push(n);}function Os$3(e,t){let n=Cv$1(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null;}}function Iv$1(e){Os$3(1,e),Os$3(0,e),Os$3(2,e);}function Cv$1(e){let t=p_$1;return e===1?t=h_$1:e===2&&(t=y_$1),t}function _a$2(e){return e+1}function Ot$a(e,t){e[E$l];let r=_a$2(t.index);return e[r]}function v_$1(e,t,n){e[E$l];let o=_a$2(t);e[o]=n;}function Pr$6(e,t){let n=_a$2(t.index);return e.data[n]}function D_$1(e,t,n){let r=_a$2(t);e.data[r]=n;}function E_$1(e,t,n){let r=t[E$l],o=Pr$6(r,n);switch(e){case X$j.Complete:return o.primaryTmplIndex;case X$j.Loading:return o.loadingTmplIndex;case X$j.Error:return o.errorTmplIndex;case X$j.Placeholder:return o.placeholderTmplIndex;default:return null}}function gg$1(e,t){return t===X$j.Placeholder?e.placeholderBlockConfig?.[hg$1]??null:t===X$j.Loading?e.loadingBlockConfig?.[hg$1]??null:null}function I_$1(e){return e.loadingBlockConfig?.[d_$1]??null}function mg$1(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function C_$1(e,t){let n=t.primaryTmplIndex+O$r;return mr$8(e,n)}var w_$1=(()=>{class e{cachedInjectors=new Map;
19getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?Nd$1(o,r,i):null;this.cachedInjectors.set(n,s);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=L$l({token:e,providedIn:"environment",factory:()=>new e})}return e})();function b_$1(e){return (t,n)=>T_$1(e,t,n)}function T_$1(e,t,n){let r=n.get(wv$1),o=n.get(ge$b),i=()=>r.remove(t);return r.add(e,t,o),i}var wv$1=(()=>{class e{executingCallbacks=false;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(n,r,o){let i=this.executingCallbacks?this.deferred:this.current;this.addToQueue(i,Date.now()+n,r),this.scheduleTimer(o);}remove(n){let{current:r,deferred:o}=this;this.removeFromQueue(r,n)===-1&&this.removeFromQueue(o,n),r.length===0&&o.length===0&&this.clearTimeout();}addToQueue(n,r,o){let i=n.length;for(let s=0;s<n.length;s+=2)if(n[s]>r){i=s;break}Jc$1(n,i,r,o);}removeFromQueue(n,r){let o=-1;for(let i=0;i<n.length;i+=2)if(n[i+1]===r){o=i;break}return o>-1&&Kc$1(n,o,2),o}scheduleTimer(n){let r=()=>{this.clearTimeout(),this.executingCallbacks=true;let i=[...this.current],s=Date.now();for(let c=0;c<i.length;c+=2){let u=i[c],l=i[c+1];if(u<=s)l();else break}let a=-1;for(let c=0;c<this.current.length&&this.current[c]<=s;c+=2)a=c+1;if(a>=0&&Kc$1(this.current,0,a+1),this.executingCallbacks=false,this.deferred.length>0){for(let c=0;c<this.deferred.length;c+=2){let u=this.deferred[c],l=this.deferred[c+1];this.addToQueue(this.current,u,l);}this.deferred.length=0;}this.scheduleTimer(n);};if(this.current.length>0){let i=Date.now(),s=this.current[0];if(this.timeoutId===null||this.invokeTimerAt&&this.invokeTimerAt-s>16){this.clearTimeout();let a=Math.max(s-i,16);this.invokeTimerAt=s,this.timeoutId=n.runOutsideAngular(()=>setTimeout(()=>n.run(r),a));}}}clearTimeout(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null);}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0;}static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new e})}return e})();var bv$1=new b$g("");function ju$2(e,t,n){return e.get(w_$1).getOrCreateInjector(t,e,n,"")}function S_$1(e,t,n){if(e instanceof Ln$7){let o=e.injector,i=e.parentInjector,s=ju$2(i,t,n);return new Ln$7(o,s)}let r=e.get(Ae$e);if(r!==e){let o=ju$2(r,t,n);return new Ln$7(e,o)}return ju$2(e,t,n)}function en$a(e,t,n,r=false){let o=n[ee$a],i=o[E$l];if(Kt$d(o))return;let s=Ot$a(o,t),a=s[Lr$6],c=s[m_$1];if(!(c!==null&&e<c)&&yg$1(a,e)&&yg$1(s[f_$1]??-1,e)){let u=Pr$6(i,t),d=!r&&true&&(I_$1(u)!==null||gg$1(u,X$j.Loading)!==null||gg$1(u,X$j.Placeholder))?N_$1:M_$1;try{d(e,s,n,t,o);}catch(f){ld$1(o,f);}}}function __$1(e,t){let n=e[Re$e]?.findIndex(o=>o.data[Fl$2]===t[Lr$6])??-1;return {dehydratedView:n>-1?e[Re$e][n]:null,dehydratedViewIx:n}}function M_$1(e,t,n,r,o){P$e(k$l.DeferBlockStateStart);let i=E_$1(e,o,r);if(i!==null){t[Lr$6]=e;let s=o[E$l],a=i+O$r,c=mr$8(s,a),u=0;pd$1(n,u);let l;if(e===X$j.Complete){let h=Pr$6(s,r),y=h.providers;y&&y.length>0&&(l=S_$1(o[z$o],h,y));}let{dehydratedView:d,dehydratedViewIx:f}=__$1(n,t),p=Or$6(o,c,null,{injector:l,dehydratedView:d});if(kr$7(n,p,u,$n$7(c,d)),as$3(p),f>-1&&n[Re$e]?.splice(f,1),(e===X$j.Complete||e===X$j.Error)&&Array.isArray(t[Cr$8])){for(let h of t[Cr$8])h();t[Cr$8]=null;}}P$e(k$l.DeferBlockStateEnd);}function yg$1(e,t){return e<t}function Tv$1(e,t){let n=e[t.index];en$a(X$j.Placeholder,t,n);}function vg$1(e,t,n){e.loadingPromise.then(()=>{e.loadingState===Se$f.COMPLETE?en$a(X$j.Complete,t,n):e.loadingState===Se$f.FAILED&&en$a(X$j.Error,t,n);});}var N_$1=null;function Sv$1(e,t){return t[z$o].get(bv$1,null,{optional:true})?.behavior!==Rd$1.Manual}var A_$1=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var _v$1=new b$g(""),Mv$1=new b$g(""),Nv$1=new b$g("USE_PENDING_TASKS",{providedIn:"root",factory:()=>typeof Zone>"u"}),x_$1=(()=>{class e{_ngZone;registry;_isZoneStable=true;_callbacks=[];_taskTrackingZone=null;_destroyRef;pendingTasksInternal=g$k(_t$g);_usePendingTasks=g$k(Nv$1);constructor(n,r,o){this._ngZone=n,this.registry=r,os$4()&&(this._destroyRef=g$k(de$b,{optional:true})??void 0),Od$1||(xv$1(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone");});}_watchAngularEvents(){let n=this._ngZone.onUnstable.subscribe({next:()=>
19{this._isZoneStable=false;}}),r,o;this._ngZone.runOutsideAngular(()=>{this._usePendingTasks&&(r=this.pendingTasksInternal.hasPendingTasksObservable.subscribe(()=>{this.isStable()&&this._ngZone.runOutsideAngular(()=>{this._runCallbacksIfReady();});})),o=this._ngZone.onStable.subscribe({next:()=>{ge$b.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=true,this._runCallbacksIfReady();});}});}),this._destroyRef?.onDestroy(()=>{n.unsubscribe(),r?.unsubscribe(),o.unsubscribe();});}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks&&(!this._usePendingTasks||!this.pendingTasksInternal.hasPendingTasks)}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb();}});else {let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),false):true);}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n();},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o});}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady();}registerApplication(n){this.registry.registerApplication(n,this);}unregisterApplication(n){this.registry.unregisterApplication(n);}findProviders(n,r,o){return []}static \u0275fac=function(r){return new(r||e)(G$k(ge$b),G$k(Av$1),G$k(Mv$1))};static \u0275prov=L$l({token:e,factory:e.\u0275fac})}return e})(),Av$1=(()=>{class e{_applications=new Map;registerApplication(n,r){this._applications.set(n,r);}unregisterApplication(n){this._applications.delete(n);}unregisterAllApplications(){this._applications.clear();}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=true){return Od$1?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function xv$1(e){Od$1=e;}var Od$1,Ko$6=new b$g("");function Rv$1(){wc$1(()=>{let e="";throw new D$l(600,e)});}var R_$1=10;var yt$f=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g$k(Mt$d);afterRenderManager=g$k(fa$2);zonelessEnabled=g$k(Io$4);
19rootEffectScheduler=g$k(Ds$4);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new le$d;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g$k(_t$g);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(st$c(n=>!n))}constructor(){g$k(qn$8,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g$k(Ae$e);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=oe$e.NULL){return this._injector.get(ge$b).run(()=>{if(P$e(k$l.BootstrapComponentStart),!this._injector.get(xd$1).done){let A="";throw new D$l(405,A)}let a=ut$g(n),c=this._injector.get(on$9),u=new Un$6(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:f}=O_$1(r),p=l||u.selector,h=u.create(o,[],p,c.injector,d,f),y=h.location.nativeElement,w=h.injector.get(_v$1,null);return w?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),So$4(this.components,h),w?.unregisterApplication(y);}),this._loadComponent(h),P$e(k$l.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){P$e(k$l.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(da$2.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw P$e(k$l.ChangeDetectionEnd),new D$l(101,false);let n=C$a(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,C$a(n),this.afterTick.next(),P$e(k$l.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Lo$4,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<R_$1;){P$e(k$l.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{P$e(k$l.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!go$4(o))continue;let i=r&&!this.zonelessEnabled?0:1;Sy(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>go$4(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;So$4(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(Ko$6,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>So$4(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D$l(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})}return e})();function O_$1(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function So$4(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function k_$1(e,t,n){let r=t.get(L_$1),o=()=>r.remove(e);return r.add(e,n),o}function F_$1(e){return (t,n)=>k_$1(t,n,e)}var L_$1=(()=>{class e{buckets=new Map;callbackBucket=new Map;applicationRef=g$k(yt$f);ngZone=g$k(ge$b);idleService=g$k(Zg$1);add(n,r){let o=Dg$1(r);this.callbackBucket.set(n,o);let i=this.buckets.get(o);i==null&&(i={idleId:null,queue:new Set},this.buckets.set(o,i)),i.queue.add(n),this.scheduleBucket(i,r);}remove(n){let r=this.callbackBucket.get(n);if(r===void 0)return;this.callbackBucket.delete(n);let o=this.buckets.get(r);o&&(o.queue.delete(n),o.queue.size===0&&(this.cancelBucket(o),this.buckets.delete(r)));}scheduleBucket(n,r){if(n.idleId!==null)return;let o=Dg$1(r),i=s=>{this.cancelBucket(n);for(let a of n.queue)if(a(),this.applicationRef._tick(),n.queue.delete(a),this.callbackBucket.delete(a),s&&s.timeRemaining()===0&&!s.didTimeout)break;n.queue.size>0?this.scheduleBucket(n,r):this.buckets.delete(o);};n.idleId=this.idleService.requestOnIdle(s=>this.ngZone.run(()=>i(s)),r);}cancelBucket(n){n.idleId!==null&&(this.idleService.cancelOnIdle(n.idleId),n.idleId=null);}ngOnDestroy(){for(let n of this.buckets.values())this.cancelBucket(n);this.buckets.clear(),this.callbackBucket.clear();}static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new e})}return e})();
19function Dg$1(e){return !e||e.timeout==null?"":`${e.timeout}`}function Ov$1(e){let t=m$c(),n=$$o();if(Tv$1(t,n),!Sv$1(0,t))return;let r=t[z$o],o=Ot$a(t,n),i=e(()=>kd$1(0,t,n),r);Ev$1(0,o,i);}function kv$1(e,t,n){let r=t[z$o],o=t[E$l];if(e.loadingState!==Se$f.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=Ot$a(t,n),s=C_$1(o,e);e.loadingState=Se$f.IN_PROGRESS,Os$3(1,i);let a=e.dependencyResolverFn,c=r.get(Dr$7).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(u=>{let l=false,f=[],p=[];for(let h=0;h<u.length;h++){let y=u[h];if(y.status==="fulfilled"){let w=y.value,A=ut$g(w)||ao$4(w);if(A)f.push(A);else {let V=qc$1(w);V&&p.push(V);}}else {l=true,y.reason instanceof Error?y.reason:new Error(String(y.reason));break}}if(l){if(e.loadingState=Se$f.FAILED,e.errorTmplIndex===null){let y="",w=new D$l(-750,y);ld$1(t,w);}}else {e.loadingState=Se$f.COMPLETE;let h=s.tView;if(f.length>0){h.directiveRegistry=mg$1(h.directiveRegistry,f);let y=f.map(A=>A.type),w=ns$4(false,...y);e.providers=w;}p.length>0&&(h.pipeRegistry=mg$1(h.pipeRegistry,p));}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c();})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=Se$f.COMPLETE,c();}),e.loadingPromise)}function kd$1(e,t,n){let r=t[E$l],o=t[n.index];if(!Sv$1(e,t))return;let i=Ot$a(t,n),s=Pr$6(r,n);switch(Iv$1(i),s.loadingState){case Se$f.NOT_STARTED:en$a(X$j.Loading,n,o),kv$1(s,t,n),s.loadingState===Se$f.IN_PROGRESS&&vg$1(s,n,o);break;case Se$f.IN_PROGRESS:en$a(X$j.Loading,n,o),vg$1(s,n,o);break;case Se$f.COMPLETE:en$a(X$j.Complete,n,o);break;case Se$f.FAILED:en$a(X$j.Error,n,o);break;}}async function Fv$1(e,t,n){let r=e.get(Rr$7);if(r.hydrating.has(t))return;let{parentBlockPromise:i,hydrationQueue:s}=xw$1(t,e);if(s.length===0)return;i!==null&&s.shift(),V_$1(r,s),i!==null&&await i;let a=s[0];r.has(a)?await Eg$1(e,s,n):r.awaitParentBlock(a,async()=>await Eg$1(e,s,n));}async function Eg$1(e,t,n){let r=e.get(Rr$7),o=r.hydrating,i=e.get(_t$g),s=i.add();for(let c=0;c<t.length;c++){let u=t[c],l=r.get(u);if(l!=null){if(await H_$1(l),await B_$1(e),P_$1(l)){QT(l),Ig$1(t.slice(c),r);break}o.get(u).resolve();}else {j_$1(c,t,r),Ig$1(t.slice(c),r);break}}let a=t[t.length-1];await o.get(a)?.promise,i.remove(s),n&&n(t),KT(r.get(a),t,r,e.get(yt$f));}function P_$1(e){return Ot$a(e.lView,e.tNode)[Lr$6]===X$j.Error}function j_$1(e,t,n){let r=e-1,o=r>-1?n.get(t[r]):null;o&&wa$1(o.lContainer);}function Ig$1(e,t){let n=t.hydrating;for(let r in e)n.get(r)?.reject();t.cleanup(e);}function V_$1(e,t){for(let n of t)e.hydrating.set(n,Do$4());}function B_$1(e){return new Promise(t=>Xl$1(t,{injector:e}))}async function H_$1(e){let{tNode:t,lView:n}=e,r=Ot$a(n,t);return new Promise(o=>{$_$1(r,o),kd$1(2,n,t);})}function $_$1(e,t){Array.isArray(e[Cr$8])||(e[Cr$8]=[]),e[Cr$8].push(t);}function Fd$1(e,t,n){return Cg$1(t,n)}function U_$1(e){return e!=null&&(e&1)===1}function Cg$1(e,t){let n=e[z$o],r=Pr$6(e[E$l],t),o=sa$2(n),i=U_$1(r.flags),a=Ot$a(e,t)[g_$1]!==null;return !(i&&a&&o)}function G_$1(e,t,n,r,o,i,s,a,c,u){let l=m$c(),d=F$j(),f=e+O$r,p=Gn$9(l,d,e,null,0,0),h=l[z$o],y=sa$2(h);if(d.firstCreatePass){fe$d("NgDefer");let Dt={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:Se$f.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:0};D_$1(d,f,Dt);}let w=l[f];Xy(w,p,l);let A=null,V=null;if(w[Re$e]?.length>0){let Dt=w[Re$e][0].data;V=Dt[kl$1]??null,A=Dt[Fl$2];}let it=[null,Js$3.Initial,null,null,null,null,V,A,null,null];v_$1(l,f,it);let cn=null;V!==null&&y&&(cn=h.get(Rr$7),cn.add(V,{lView:l,tNode:p,lContainer:w}
19));let Hr=()=>{Iv$1(it),V!==null&&cn?.cleanup([V]);};Ev$1(0,it,()=>du$2(l,Hr)),mo$4(l,Hr);}function z_$1(e){let t=m$c(),n=pt$e();if(!Fd$1(0,t,n))return;let r=Ge$c();if(se$f(t,r,e)){let o=C$a(null);try{let i=!!e,a=Ot$a(t,n)[Lr$6];i===!1&&a===Js$3.Initial?Tv$1(t,n):i===!0&&(a===Js$3.Initial||a===X$j.Placeholder)&&kd$1(0,t,n);}finally{C$a(o);}}}function W_$1(e){let t=m$c(),n=$$o();Fd$1(0,t,n)&&Ov$1(F_$1({timeout:e}));}function q_$1(e){let t=m$c(),n=$$o();Fd$1(0,t,n)&&Ov$1(b_$1(e));}function Lv$1(e,t){let n=m$c(),r=Ge$c();if(se$f(n,r,t)){let o=F$j(),i=pt$e();if(va$1(i,o,n,e,t))tt$c(i)&&Dy(n,i.index);else {let a=ce$b(i,n);Ey(n[R$h],a,null,i.value,e,t,null);}}return Lv$1}function Pv$1(e,t,n,r){let o=m$c(),i=Ge$c();if(se$f(o,i,t)){F$j();let a=pt$e();yT(a,o,e,t,n,r);}return Pv$1}function ks$3(e){if(fe$d("NgAnimateEnter"),!qo$6)return ks$3;let t=m$c();if(Qm$1(t))return ks$3;let n=$$o(),r=t[z$o].get(ge$b);return ey(qh$1(t),n,()=>Z_$1(t,n,e,r)),iy(t[z$o]),sy(t[z$o],qh$1(t)),ks$3}function Z_$1(e,t,n,r){let o=ce$b(t,e),i=e[R$h],s=Xm$1(n),a=[],c=false,u=d=>{if(xo$4(d)!==o)return;let f=d instanceof AnimationEvent?"animationend":"transitionend";r.runOutsideAngular(()=>{i.listen(o,f,l);});},l=d=>{xo$4(d)===o&&(Ql$1(d,o)&&(c=true),Y_$1(d,o,i));};if(s&&s.length>0){r.runOutsideAngular(()=>{a.push(i.listen(o,"animationstart",u)),a.push(i.listen(o,"transitionstart",u));}),Rb$1(o,s,a);for(let d of s)i.addClass(o,d);r.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(!c&&(ry(o,Fn$9,qo$6),!Fn$9.has(o))){for(let d of s)i.removeClass(o,d);Yl$1(o);}}
19);});}}function Y_$1(e,t,n){let r=Sr$8.get(t);if(!(xo$4(e)!==t||!r)&&Ql$1(e,t)){e.stopPropagation();for(let o of r.classList)n.removeClass(t,o);Yl$1(t);}}function Fs$3(e){if(fe$d("NgAnimateLeave"),!qo$6)return Fs$3;let t=m$c();if(Qm$1(t))return Fs$3;let r=$$o(),o=t[z$o].get(ge$b);return ey(la$3(t),r,()=>Q_$1(t,r,e,o)),iy(t[z$o]),Fs$3}function Q_$1(e,t,n,r){let{promise:o,resolve:i}=Do$4(),s=ce$b(t,e),a=e[R$h];Bn$8.add(e[et$e]),(la$3(e).get(t.index).resolvers??=[]).push(i);let c=Xm$1(n);return c&&c.length>0?K_$1(s,t,e,c,a,r):i(),{promise:o,resolve:i}}function K_$1(e,t,n,r,o,i){kb$1(e,o);let s=[],a=la$3(n).get(t.index)?.resolvers,c,u=false,l=d=>{if(!(xo$4(d)!==e&&d.type!=="animation-fallback")&&(d.type==="animation-fallback"||Ql$1(d,e))){if(u=true,c&&clearTimeout(c),d.type!=="animation-fallback"&&d.stopPropagation(),Fn$9.delete(e),Wh$1(t,e),Array.isArray(t.projection))for(let p of r)o.removeClass(e,p);Zh$1(a,s),Yh$1(n,t);}};i.runOutsideAngular(()=>{s.push(o.listen(e,"animationend",l)),s.push(o.listen(e,"transitionend",l));}),Jm$1(t,e);for(let d of r)o.addClass(e,d);i.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(u)return;ry(e,Fn$9,qo$6);let d=Fn$9.get(e);d?(c=setTimeout(()=>{l(new CustomEvent("animation-fallback"));},d.duration+50),s.push(()=>clearTimeout(c))):(Wh$1(t,e),Zh$1(a,s),Yh$1(n,t));});});}function J_$1(){return m$c()[ae$d][J$o]}var Dl$1=class Dl{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,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(t,n){this.attach(n,this.detach(t));}};function Vu$2(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function X_$1(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){C$a(r);let u=t.length-1;for(C$a(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=Vu$2(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let p=e.at(a),h=t[u],y=Vu$2(a,p,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let w=n(s,l),A=n(a,p),V=n(s,d);if(Object.is(V,A)){let it=n(u,h);Object.is(it,w)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Xs$2,i??=bg$1(e,s,a,n),El$1(e,o,s,V))e.updateValue(s,d),s++,a++;else if(i.has(V))o.set(w,e.detach(s)),a--;else {let it=e.create(s,t[s]);e.attach(s,it),s++,a++;}}for(;s<=u;)wg$1(e,o,n,s,t[s]),s++;}else if(t!=null){C$a(r);let u=t[Symbol.iterator]();C$a(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,p=Vu$2(s,d,s,f,n);if(p!==0)p<0&&e.updateValue(s,f),s++,l=u.next();else {o??=new Xs$2,i??=bg$1(e,s,a,n);let h=n(s,f);if(El$1(e,o,s,h))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else {let y=n(s,d);o.set(y,e.detach(s)),a--;}}}for(;!l.done;)wg$1(e,o,n,e.length,l.value),l=u.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u);});}function El$1(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function wg$1(e,t,n,r,o){if(El$1(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function bg$1(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Xs$2=class Xs{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);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(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function eM$1(e,t,n,r,o,i,s,a){fe$d("NgControlFlow");let c=m$c(),u=F$j(),l=ke$b(u.consts,i);return Gn$9(c,u,e,t,n,r,o,l,256,s,a),Ld$1}function Ld$1(e,t,n,r,o,i,s,a){fe$d("NgControlFlow");let c=m$c(),u=F$j(),l=ke$b(u.consts,i);return Gn$9(c,u,e,t,n,r,o,l,512,s,a),Ld$1}function tM$1(e,t){fe$d("NgControlFlow");let n=m$c(),r=Ge$c(),o=n[r]!==ue$9?n[r]:-1,i=o!==-1?ea$3(n,O$r+o):void 0,s=0;if(se$f(n,r,e)){let a=C$a(null);try{if(i!==void 0&&pd$1(i,s),e!==-1){let c=O$r+e,u=ea$3(n,c),l=bl$1(n[E$l],c),d=jy(u,l,n),f=Or$6(n,l,t,{dehydratedView:d});kr$7(u,f,s,$n$7(l,d));}}finally{C$a(a);}}else if(i!==void 0){let a=xy(i,s);a!==void 0&&(a[J$o]=t);}}var Il$1=class Il{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-U$j}};function nM(e){return e}function rM(e,t){return t}var Cl$1=class Cl{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function oM(e,t,n,r,o,i,s,a,c,u,l,d,f){fe$d("NgControlFlow");let p=m$c(),h=F$j(),y=c!==void 0,w=m$c(),A=a?s.bind(w[ae$d][J$o]):s,V=new Cl$1(y,A);w[O$r+e]=V,Gn$9(p,h,e+1,t,n,r,o,ke$b(h.consts,i),256),y&&Gn$9(p,h,e+2,c,u,l,d,ke$b(h.consts,f),512);}var wl$1=class wl extends Dl$1{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-U$j}at(t){return this.getLView(t)[J$o].$implicit}attach(t,n){let r=n[Ie$a];this.needsIndexUpdate||=t!==this.length,kr$7(this.lContainer,n,t,$n$7(this.templateTNode,r)),sM(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,aM(this.lContainer,t),cM(this.lContainer,t)}create(t,n){let r=Fo$4(this.lContainer,this.templateTNode.tView.ssrId);return Or$6(this.hostLView,this.templateTNode,new Il$1(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ha$3(t[E$l],t);}updateValue(t,n){this.getLView(t)[J$o].$implicit=n;}reset(){this.needsIndexUpdate=false;}
19updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[J$o].$index=t;}getLView(t){return uM(this.lContainer,t)}};function iM(e){let t=C$a(null),n=Le$f();try{let r=m$c(),o=r[E$l],i=r[n],s=n+1,a=ea$3(r,s);if(i.liveCollection===void 0){let u=bl$1(o,s);i.liveCollection=new wl$1(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(X_$1(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Ge$c(),l=c.length===0;if(se$f(r,u,l)){let d=n+2,f=ea$3(r,d);if(l){let p=bl$1(o,d),h=jy(f,p,r),y=Or$6(r,p,void 0,{dehydratedView:h});kr$7(f,y,0,$n$7(p,h));}else o.firstUpdatePass&&Ca(f),pd$1(f,0);}}}finally{C$a(t);}}function ea$3(e,t){return e[t]}function sM(e,t){if(e.length<=U$j)return;let n=U$j+t,r=e[n],o=r?r[Be$e]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[z$o];Ub$1(i,o),Bn$8.delete(r[et$e]),o.detachedLeaveAnimationFns=void 0;}}function aM(e,t){if(e.length<=U$j)return;let n=U$j+t,r=e[n],o=r?r[Be$e]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function cM(e,t){return ko$4(e,t)}function uM(e,t){return xy(e,t)}function bl$1(e,t){return mr$8(e,t)}function jv$1(e,t,n){let r=m$c(),o=Ge$c();if(se$f(r,o,t)){F$j();let s=pt$e();vy(s,r,e,t,r[R$h],n);}return jv$1}function Tl$1(e,t,n,r,o){va$1(t,e,n,o?"class":"style",r);}function ta$3(e,t,n,r){let o=m$c(),i=o[E$l],s=e+O$r,a=i.firstCreatePass?Dd$1(s,o,2,t,ad$1,us$3(),n,r):i.data[s];if(tt$c(a)){let c=o[Xe$b].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate($y(u),()=>(Tg$1(e,t,o,a,r),ta$3))}}return Tg$1(e,t,o,a,r),ta$3}function Tg$1(e,t,n,r,o){if(cd$1(r,n,e,t,Bd$1),gr$9(r)){let i=n[E$l];ya$2(i,n,r),Ul$1(i,r,n);}o!=null&&Yo$5(n,r);}function Pd$1(){let e=F$j(),t=$$o(),n=ud$1(t);return e.firstCreatePass&&Ed$1(e,n),gu$1(n)&&mu$2(),hu$2(),n.classesWithoutHost!=null&&KC$1(n)&&Tl$1(e,n,m$c(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&JC$1(n)&&Tl$1(e,n,m$c(),n.stylesWithoutHost,false),Pd$1}function Vv$1(e,t,n,r){return ta$3(e,t,n,r),Pd$1(),Vv$1}function jd$1(e,t,n,r){let o=m$c(),i=o[E$l],s=e+O$r,a=i.firstCreatePass?wS(s,i,2,t,n,r):i.data[s];return cd$1(a,o,e,t,Bd$1),r!=null&&Yo$5(o,a),jd$1}function Vd$1(){let e=$$o(),t=ud$1(e);return gu$1(t)&&mu$2(),hu$2(),Vd$1}function Bv$1(e,t,n,r){return jd$1(e,t,n,r),Vd$1(),Bv$1}var Bd$1=(e,t,n,r,o)=>(St$e(true),zl$1(t[R$h],r,gs$4()));function lM(e,t,n,r,o){let i=!aa$2(t,n);if(St$e(i),i)return zl$1(t[R$h],r,gs$4());let s=t[Ie$a],a=Ea$2(s,e,t,n);return _m(s,o)&&ia$2(s,o,a.nextSibling),s&&(Kg$1(n)||Jg$1(a))&&tt$c(n)&&(ih$1(n),$m$1(a)),a}function Hv$1(){Bd$1=lM;}function Hd$1(e,t,n){let r=m$c(),o=r[E$l],i=e+O$r,s=o.firstCreatePass?Dd$1(i,r,8,"ng-container",ad$1,us$3(),t,n):o.data[i];if(cd$1(s,r,e,"ng-container",Uv$1),gr$9(s)){let a=r[E$l];ya$2(a,r,s),Ul$1(a,s,r);}return n!=null&&Yo$5(r,s),Hd$1}function $d$1(){let e=F$j(),t=$$o(),n=ud$1(t);return e.firstCreatePass&&Ed$1(e,n),$d$1}function $v$1(e,t,n){return Hd$1(e,t,n),$d$1(),$v$1}var Uv$1=(e,t,n,r,o)=>(St$e(true),Bm$1(t[R$h],""));function dM(e,t,n,r,o){let i,s=!aa$2(t,n);if(St$e(s),s)return Bm$1(t[R$h],"");let a=t[Ie$a],c=Ea$2(a,e,t,n),u=Nw$1(a,o);return ia$2(a,o,c),i=Ia$1(u,c),i}function Gv$1(){Uv$1=dM;}function fM(){return m$c()}function zv$1(e,t,n){let r=m$c(),o=Ge$c();if(se$f(r,o,t)){F$j();let s=pt$e();sd$1(s,r,e,t,r[R$h],n);}return zv$1}function Wv$1(e,t,n){let r=m$c(),o=Ge$c();if(se$f(r,o,t)){let i=F$j(),s=pt$e(),a=wu$1(i.data),c=DT(a,s,r);sd$1(s,r,e,t,c,n);}return Wv$1}var wo$4=void 0;function pM(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var hM=["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"]],wo$4,[["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"]],wo$4,[["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}
19, {0}",wo$4,wo$4,wo$4],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",pM],_o$4=Object.create(null);function Ud$1(e,t,n){typeof t!="string"&&(n=t,t=e[W$q.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),_o$4[t]=e,n&&(_o$4[t][W$q.ExtraData]=n);}function _e$c(e){let t=gM(e),n=Sg$1(t);if(n)return n;let r=t.split("-")[0];if(n=Sg$1(r),n)return n;if(r==="en")return hM;throw new D$l(701,false)}function Sg$1(e){if(!(e in _o$4)){let t=lt$e.ng&<$e.ng.common&<$e.ng.common.locales&<$e.ng.common.locales[e];return t!==void 0&&(_o$4[e]=t),t}return _o$4[e]}var W$q={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function gM(e){return e.toLowerCase().replace(/_/g,"-")}var Jo$5="en-US";function qv$1(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function Zv$1(e,t,n){let r=m$c(),o=F$j(),i=$$o();return Qv$1(o,r,r[R$h],i,e,t,n),Zv$1}function Yv$1(e,t,n){let r=m$c(),o=F$j(),i=$$o();return (i.type&3||n)&&vd$1(i,o,r,n,r[R$h],e,t,Pn$7(i,r,t)),Yv$1}function Qv$1(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Pn$7(r,t,i),vd$1(r,e,t,s,n,o,i,c)&&(a=false)),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],p=l[d+1];c??=Pn$7(r,t,i),Ws$3(r,t,f,p,o,c);}if(u&&u.length)for(let d of u)c??=Pn$7(r,t,i),Ws$3(r,t,d,o,o,c);}}function yM(e=1){return mh(e)}function vM(e,t){let n=null,r=wb$1(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Zm$1(e,i,true):Sb$1(r,i))return o}return n}function DM(e){let t=m$c()[ae$d][ye$f];if(!t.projection){let n=e?e.length:1,r=t.projection=qp$2(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?vM(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function EM(e,t=0,n,r,o,i){let s=m$c(),a=F$j(),c=r?e+1:null;c!==null&&Gn$9(s,a,c,r,o,i,null,n);let u=Zn$8(a,O$r+e,16,null,n||null);u.projection===null&&(u.projection=t),Du$2();let d=!s[Ie$a]||ls$3();s[ae$d][ye$f].projection[u.projection]===null&&c!==null?IM(s,a,c):d&&!Uo$5(u)&&rT(a,s,u);}function IM(e,t,n){let r=O$r+n,o=t.data[r],i=e[r],s=Fo$4(i,o.tView.ssrId),a=Or$6(e,o,void 0,{dehydratedView:s});kr$7(i,a,0,$n$7(o,s));}function Kv$1(e,t,n,r){return iv$1(e,t,n,r),Kv$1}function Jv$1(e,t,n){return ov$1(e,t,n),Jv$1}function CM(e){let t=m$c(),n=F$j(),r=fs$4();vo$4(r+1);let o=wd$1(n,r);if(e.dirty&&Xp$2(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=av$1(t,r);e.reset(i,Yg$1),e.notifyOnChanges();}return true}return false}function wM(){return Cd$1(m$c(),fs$4())}function Xv$1(e,t,n,r,o){return cv$1(t,iv$1(e,n,r,o)),Xv$1}function eD(e,t,n,r){return cv$1(e,ov$1(t,n,r)),eD}function bM(e=1){vo$4(fs$4()+e);}function TM(e){let t=Eu$2();return An$8(t,O$r+e)}function _s$4(e,t){return e<<17|t<<2}function zn$7(e){return e>>17&32767}function SM(e){return (e&2)==2}function _M(e,t){return e&131071|t<<17}function Sl$1(e){return e|2}function Mr$8(e){return (e&131068)>>2}function Bu$2(e,t){return e&-131069|t<<2}function MM(e){return (e&1)===1}function _l$1(e){return e|1}function NM(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=zn$7(s),c=Mr$8(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||dr$9(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let f=zn$7(e[a+1]);e[r+1]=_s$4(f,a),f!==0&&(e[f+1]=Bu$2(e[f+1],r)),e[a+1]=_M(e[a+1],r);}else e[r+1]=_s$4(a,0),a!==0&&(e[a+1]=Bu$2(e[a+1],r)),a=r;else e[r+1]=_s$4(c,0),a===0?a=r:e[c+1]=Bu$2(e[c+1],r),c=r;u&&(e[r+1]=Sl$1(e[r+1])),_g$1(e,l,r,true),_g$1(e,l,r,false),AM(t,l,e,r,i),s=_s$4(a,c),i?t.classBindings=s:t.styleBindings=s;}function AM(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&dr$9(i,t)>=0&&(n[r+1]=_l$1(n[r+1]));}function _g$1(e,t,n,r){let o=e[n+1],i=t===null,s=r?zn$7(o):Mr$8(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];xM(c,t)&&(a=true,e[s+1]=r?_l$1(u):Sl$1(u)),s=r?zn$7(u):Mr$8(u);}a&&(e[n+1]=r?Sl$1(o):_l$1(o));}function xM(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?dr$9(e,t)>=0:false}var ie$g={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
vendor: 1,618 bytes, line 19
19;function tD(e){return e.substring(ie$g.key,ie$g.keyEnd)}function RM(e){return e.substring(ie$g.value,ie$g.valueEnd)}function OM(e){return oD(e),nD(e,Nr$6(e,0,ie$g.textEnd))}function nD(e,t){let n=ie$g.textEnd;return n===t?-1:(t=ie$g.keyEnd=FM(e,ie$g.key=t,n),Nr$6(e,t,n))}function kM(e){return oD(e),rD(e,Nr$6(e,0,ie$g.textEnd))}function rD(e,t){let n=ie$g.textEnd,r=ie$g.key=Nr$6(e,t,n);return n===r?-1:(r=ie$g.keyEnd=LM(e,r,n),r=Mg$1(e,r,n),r=ie$g.value=Nr$6(e,r,n),r=ie$g.valueEnd=PM(e,r,n),Mg$1(e,r,n))}function oD(e){ie$g.key=0,ie$g.keyEnd=0,ie$g.value=0,ie$g.valueEnd=0,ie$g.textEnd=e.length;}function Nr$6(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function FM(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function LM(e,t,n){let r;for(;t<n&&((r=e.charCodeAt(t))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function Mg$1(e,t,n,r){return t=Nr$6(e,t,n),t<n&&t++,t}function PM(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s<n;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=Ng$1(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=Ng$1(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33;}return a}function Ng$1(e,t,n,r){let o=-1,i=n;for(;i<r;){let s=e.charCodeAt(i++);if(s==t&&o!==92)return i;s==92&&o===92?o=0:o=s;}throw new Error}function Ma$2(e,t,n){return sD(e,t,n,false),Ma$2}function iD(e,t){return sD(e,t,null,true),iD}function jM(e){aD(lD,VM,e,false);}function VM(e,t){for(let n=kM(t);n>=0;n=rD(t,n))lD(e,tD(t),RM(t));}function BM(e){aD(qM,HM,e,true);}function HM(e,t){for(let n=OM(t);n>=0;n=nD(t,n))uo$4(e,tD(t),true);}function sD(e,t,n,r){let o=m$c(),i=F$j(),s=yo$4(2);
19if(i.firstUpdatePass&&uD(i,e,s,r),t!==ue$9&&se$f(o,s,t)){let a=i.data[Le$f()];dD(i,a,o,o[R$h],e,o[s+1]=YM(t,n),r,s);}}function aD(e,t,n,r){let o=F$j(),i=yo$4(2);o.firstUpdatePass&&uD(o,null,i,r);let s=m$c();if(n!==ue$9&&se$f(s,i,n)){let a=o.data[Le$f()];if(fD(a,r)&&!cD(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Yi$3(c,n||"")),Tl$1(o,a,s,n,r);}else ZM(o,a,s,s[R$h],s[i+1],s[i+1]=WM(e,t,n),r,i);}}function cD(e,t){return t>=e.expandoStartIndex}function uD(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Le$f()],s=cD(e,n);fD(i,r)&&t===null&&!s&&(t=false),t=$M(o,i,t,r),NM(o,i,t,n,s,r);}}function $M(e,t,n,r){let o=wu$1(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Hu$2(null,e,t,n,r),n=Vo$4(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Hu$2(o,e,t,n,r),i===null){let c=UM(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Hu$2(null,e,t,c[1],r),c=Vo$4(c,t.attrs,r),GM(e,t,r,c));}else i=zM(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function UM(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Mr$8(r)!==0)return e[zn$7(r)]}function GM(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[zn$7(o)]=r;}function zM(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Vo$4(r,s,n);}return Vo$4(r,t.attrs,n)}function Hu$2(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Vo$4(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Vo$4(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),uo$4(e,s,n?true:t[++i]));}return e===void 0?null:e}function WM(e,t,n){if(n==null||n==="")return he$e;let r=[],o=At$b(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function lD(e,t,n){uo$4(e,t,At$b(n));}function qM(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&uo$4(e,r,n);}function ZM(e,t,n,r,o,i,s,a){o===ue$9&&(o=he$e);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,p=u<i.length?i[u+1]:void 0,h=null,y;l===d?(c+=2,u+=2,f!==p&&(h=d,y=p)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,y=p),h!==null&&dD(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function dD(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=MM(u)?Ag$1(c,t,n,o,Mr$8(u),s):void 0;if(!na$2(l)){na$2(i)||SM(u)&&(i=Ag$1(c,null,n,o,a,s));let d=uu$2(Le$f(),n);iT(r,s,d,o,i);}}function Ag$1(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[o+1];f===ue$9&&(f=d?he$e:void 0);let p=d?ts$4(f,r):l===r?f:void 0;if(u&&!na$2(p)&&(p=ts$4(c,r)),na$2(p)&&(a=p,s))return a;let h=e[o+1];o=s?zn$7(h):Mr$8(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ts$4(c,r));}return a}function na$2(e){return e!==void 0}function YM(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=oo$5(At$b(e)))),e}function fD(e,t){return (e.flags&(t?8:16))!==0}function QM(e,t=""){let n=m$c(),r=F$j(),o=e+O$r,i=r.firstCreatePass?Zn$8(r,o,1,t,null):r.data[o],s=pD(r,n,i,t);n[o]=s,ms$3()&&td$1(r,n,s,i),Rn$7(i,false);}var pD=(e,t,n,r)=>(St$e(true),Vm$1(t[R$h],r));function KM(e,t,n,r){let o=!aa$2(t,n);if(St$e(o),o)return Vm$1(t[R$h],r);let i=t[Ie$a];return Ea$2(i,e,t,n)}function hD(){pD=KM;}function gD(e,t,n,r=""){return se$f(e,Ge$c(),n)?t+Je$b(n)+r:ue$9}function mD(e,t,n,r,o,i=""){let s=Cu$2(),a=_r$8(e,s,n,o);return yo$4(2),a?t+Je$b(n)+r+Je$b(o)+i:ue$9}function JM(e,t,n,r,o,i,s,a=""){let c=Cu$2(),u=Gy(e,c,n,o,s);return yo$4(3),u?t+Je$b(n)+r+Je$b(o)+i+Je$b(s)+a:ue$9}function yD(e){return Gd$1("",e),yD}function Gd$1(e,t,n){let r=m$c(),o=gD(r,e,t,n);return o!==ue$9&&zd$1(r,Le$f(),o),Gd$1}function vD(e,t,n,r,o){let i=m$c(),s=mD(i,e,t,n,r,o);return s!==ue$9&&zd$1(i,Le$f(),s),vD}function DD(e,t,n,r,o,i,s){let a=m$c(),c=JM(a,e,t,n,r,o,i,s);return c!==ue$9&&zd$1(a,Le$f(),c),DD}function zd$1(e,t,n){let r=uu$2(t,e);ob$1(e[R$h],r,n);}function ED(e,t,n){Is$3(t)&&(t=t());let r=m$c(),o=Ge$c();if(se$f(r,o,t)){F$j();let s=pt$e();vy(s,r,e,t,r[R$h],n);}return ED}function XM(e,t){let n=Is$3(e);return n&&e.set(t),n}function ID(e,t){let n=m$c(),r=F$j(),o=$$o();return Qv$1(r,n,n[R$h],o,e,t),ID}var CD={};function wD(e){fe$d("NgLet");let t=F$j(),n=m$c(),r=e+O$r,o=Zn$8(t,r,128,null,null);return Rn$7(o,false),ho$4(t,n,r,CD),wD}function eN(e){let t=F$j(),n=m$c(),r=Le$f();return ho$4(t,n,r,e),e}function tN(e){let t=Eu$2(),n=An$8(t,O$r+e);
19if(n===CD)throw new D$l(314,false);return n}function nN(e){return se$f(m$c(),Ge$c(),e)?Je$b(e):ue$9}function rN(e,t,n=""){return gD(m$c(),e,t,n)}function oN(e,t,n,r,o=""){return mD(m$c(),e,t,n,r,o)}function xg$1(e,t,n){let r=F$j();r.firstCreatePass&&bD(t,r.data,r.blueprint,$e$e(e),n);}function bD(e,t,n,r,o){if(e=re$b(e),Array.isArray(e))for(let i=0;i<e.length;i++)bD(e[i],t,n,r,o);else {let i=F$j(),s=m$c(),a=$$o(),c=Cn$5(e)?e:re$b(e.provide),u=nu$1(e),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(Cn$5(e)||!e.multi){let p=new jn$7(u,o,q$l,null),h=Uu$1(c,t,o?l:l+f,d);h===-1?(Wu$2(Bs$2(a,s),i,c),$u$1(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[h]=p,s[h]=p);}else {let p=Uu$1(c,t,l+f,d),h=Uu$1(c,t,l,l+f),y=p>=0&&n[p],w=h>=0&&n[h];if(o&&!w||!o&&!y){Wu$2(Bs$2(a,s),i,c);let A=aN(o?sN:iN,n.length,o,r,u);!o&&w&&(n[h].providerFactory=A),$u$1(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(A),s.push(A);}else {let A=TD(n[o?h:p],u,!o&&r);$u$1(i,e,p>-1?p:h,A);}!o&&r&&w&&n[h].componentProviders++;}}}function $u$1(e,t,n,r){let o=Cn$5(t),i=Kp$2(t);if(o||i){let c=(i?re$b(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.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 TD(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Uu$1(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function iN(e,t,n,r,o){return Ml$1(this.multi,[])}function sN(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Mo$4(r,r[E$l],this.providerFactory.index,o);s=c.slice(0,a),Ml$1(i,s);for(let u=a;u<c.length;u++)s.push(c[u]);}else s=[],Ml$1(i,s);return s}function Ml$1(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function aN(e,t,n,r,o,i){let s=new jn$7(e,n,q$l,null);return s.multi=[],s.index=t,s.componentProviders=0,TD(s,o,r&&!n),s}function cN(e,t){return n=>{n.providersResolver=(r,o)=>xg$1(r,o?o(e):e,false),t&&(n.viewProvidersResolver=(r,o)=>xg$1(r,o?o(t):t,true));}}var uN=()=>null;function SD(){return uN()}function dN(e,t){let n=Fe$f()+e,r=m$c();return r[n]===ue$9?sn$a(r,n,t()):md$1(r,n)}function fN(e,t,n){return MD(m$c(),Fe$f(),e,t,n)}function pN(e,t,n,r){return ND(m$c(),Fe$f(),e,t,n,r)}function hN(e,t,n,r,o){return AD(m$c(),Fe$f(),e,t,n,r,o)}function gN(e,t,n,r,o,i,s){return xD(m$c(),Fe$f(),e,t,n,r,o,i)}function mN(e,t,n,r,o,i,s){let a=Fe$f()+e,c=m$c(),u=yd$1(c,a,n,r,o,i);return se$f(c,a+4,s)||u?sn$a(c,a+5,t(n,r,o,i,s)):md$1(c,a+5)}function yN(e,t,n,r,o,i,s,a){let c=Fe$f()+e,u=m$c(),l=yd$1(u,c,n,r,o,i);return _r$8(u,c+4,s,a)||l?sn$a(u,c+6,t(n,r,o,i,s,a)):md$1(u,c+6)}function vN(e,t,n){return DN(m$c(),Fe$f(),e,t,n)}function Xo$6(e,t){let n=e[t];return n===ue$9?void 0:n}function MD(e,t,n,r,o,i){let s=t+n;return se$f(e,s,o)?sn$a(e,s+1,i?r.call(i,o):r(o)):Xo$6(e,s+1)}function ND(e,t,n,r,o,i,s){let a=t+n;return _r$8(e,a,o,i)?sn$a(e,a+2,s?r.call(s,o,i):r(o,i)):Xo$6(e,a+2)}function AD(e,t,n,r,o,i,s,a){let c=t+n;return Gy(e,c,o,i,s)?sn$a(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):Xo$6(e,c+3)}function xD(e,t,n,r,o,i,s,a,c){let u=t+n;return yd$1(e,u,o,i,s,a)?sn$a(e,u+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):Xo$6(e,u+4)}function DN(e,t,n,r,o,i){let s=t+n,a=false;for(let c=0;c<o.length;c++)se$f(e,s++,o[c])&&(a=true);return a?sn$a(e,s,r.apply(i,o)):Xo$6(e,s)}function EN(e,t){let n=F$j(),r,o=e+O$r;n.firstCreatePass?(r=IN(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=zt$e(r.type)),a=Ee$f(q$l);try{let c=Vs$3(!1),u=i();return Vs$3(c),ho$4(n,m$c(),o,u),u}finally{Ee$f(a);}}function IN(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function CN(e,t,n){let r=e+O$r,o=m$c(),i=An$8(o,r);return Na$1(o,r)?MD(o,Fe$f(),t,i.transform,n,i):i.transform(n)}function wN(e,t,n,r){let o=e+O$r,i=m$c(),s=An$8(i,o);return Na$1(i,o)?ND(i,Fe$f(),t,s.transform,n,r,s):s.transform(n,r)}function bN(e,t,n,r,o){let i=e+O$r,s=m$c(),a=An$8(s,i);return Na$1(s,i)?AD(s,Fe$f(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function TN(e,t,n,r,o,i){let s=e+O$r,a=m$c(),c=An$8(a,s);return Na$1(a,s)?xD(a,Fe$f(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}
19function Na$1(e,t){return e[E$l].data[t].pure}function SN(e,t){return Da$2(e,t)}var RD=(()=>{class e{applicationErrorHandler=g$k(Mt$d);appRef=g$k(yt$f);taskService=g$k(_t$g);ngZone=g$k(ge$b);zonelessEnabled=g$k(Io$4);tracing=g$k(qn$8,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new Q$f;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(no$6):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g$k(Au$2,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3: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 r=this.useMicrotaskScheduler?Ch$1:_u$1;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(no$6+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 n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})}return e})();function _N(){return fe$d("NgZoneless"),fo$3([...Wd$1(),[]])}function Wd$1(){return [{provide:Ke$f,useExisting:RD},{provide:ge$b,useClass:ro$5},{provide:Io$4,useValue:true}]}var MN=(()=>{class e{compileModuleSync(n){return new Ks$2(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})}return e})();function NN(){return typeof $localize<"u"&&$localize.locale||Jo$5}var jr$6=new b$g("",{factory:()=>g$k(jr$6,{optional:true,skipSelf:true})||NN()});var ei$7=class ei{destroyed=false;listeners=null;errorHandler=g$k(Tt$g,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g$k(de$b);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new D$l(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(qt$c(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=C$a(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&AN(this.listeners)),C$a(n),this.isEmitting=false;}}};function AN(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}var xN=new b$g("");function qd$1(e,t){return Qr$6(e,t?.equal)}function Qn$9(e){return kp$1(e)}var RN=e=>e;function ON(e,t){if(typeof e=="function"){let n=Mc$1(e,RN,t?.equal);return OD(n)}else {let n=Mc$1(e.source,e.computation,e.equal);return OD(n,e.debugName)}}function OD(e,t){let n=e[K$q],r=e;return r.set=o=>Rp$1(n,o),r.update=o=>Op$1(n,o),r.asReadonly=Eo$4.bind(e),r}var Jd$1={JSACTION:"__jsaction",OWNER:"__owner"},PD={};function kN(e){return e[Jd$1.JSACTION]}function kD(e,t){e[Jd$1.JSACTION]=t;}function FN(e){return PD[e]}function LN(e,t){PD[e]=t;}var T$k={CLICK:"click",CLICKMOD:"clickmod",FOCUS:"focus",BLUR:"blur",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",ERROR:"error",LOAD:"load",TOGGLE:"toggle"},PN=[T$k.MOUSEENTER,T$k.MOUSELEAVE,"pointerenter","pointerleave"],jN=[T$k.FOCUS,T$k.BLUR,T$k.ERROR,T$k.LOAD,T$k.TOGGLE],Xd$1=e=>jN.indexOf(e)>=0;function VN(e){return e===T$k.MOUSEENTER?T$k.MOUSEOVER:e===T$k.MOUSELEAVE?T$k.MOUSEOUT:e===T$k.POINTERENTER?T$k.POINTEROVER:e===T$k.POINTERLEAVE?T$k.POINTEROUT:e}function BN(e,t,n,r){let o=false;Xd$1(t)&&(o=true);let i=typeof r=="boolean"?{capture:o,passive:r}:o;return e.addEventListener(t,n,i),{eventType:t,handler:n,capture:o,passive:r}}function HN(e,t){if(e.removeEventListener){let n=typeof t.passive=="boolean"?{capture:t.capture}:t.capture;e.removeEventListener(t.eventType,t.handler,n);}else e.detachEvent&&e.detachEvent(`on${t.eventType}`,t.handler);}function $N(e){e.preventDefault?e.preventDefault():e.returnValue=false;}var FD=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent);function UN(e){return e.which===2||e.which==null&&e.button===4}function GN(e){return FD&&e.metaKey||!FD&&e.ctrlKey||UN(e)||e.shiftKey}function zN(e,t,n){let r=e.relatedTarget;return (e.type===T$k.MOUSEOVER&&t===T$k.MOUSEENTER||e.type===T$k.MOUSEOUT&&t===T$k.MOUSELEAVE||e.type===T$k.POINTEROVER&&t===T$k.POINTERENTER||e.type===T$k.POINTEROUT&&t===T$k.POINTERLEAVE)&&(!r||r!==n&&!n.contains(r))}function WN(e,t){let n={};for(let r in e){if(r==="srcElement"||r==="target")continue;let o=r,i=e[o];typeof i!="function"&&(n[o]=i);}return e.type===T$k.MOUSEOVER?n.type=T$k.MOUSEENTER:e.type===T$k.MOUSEOUT?n.type=T$k.MOUSELEAVE:e.type===T$k.POINTEROVER?n.type=T$k.POINTERENTER:n.type=T$k.POINTERLEAVE,n.target=n.srcElement=t,n.bubbles=false,n._originalEvent=e,n}var Oa$1=class Oa{element;handlerInfos=[];constructor(t){this.element=t;}addEventListener(t,n,r){this.handlerInfos.push(BN(this.element,t,n(this.element),r));}cleanUp(){for(let t=0;t<this.handlerInfos.length;t++)HN(this.element,this.handlerInfos[t]);this.handlerInfos=[];}},qN={EVENT_ACTION_SEPARATOR:":"};function an$7(e){return e.eventType}function ef$1(e,t){e.eventType=t;}function xa$2(e){return e.event}function jD(e,t){e.event=t;}function VD(e){return e.targetElement}function BD(e,t){e.targetElement=t;}function HD(e){return e.eic}function ZN(e,t){e.eic=t;}function YN(e){return e.timeStamp}function QN(e,t){e.timeStamp=t;}function Ra$1(e){return e.eia}function $D(e,t,n){e.eia=[t,n];}function Zd$1(e){e.eia=void 0;}function Aa$2(e){return e[1]}function KN(e){return e.eirp}function UD(e,t){e.eirp=t;}function GD(e){return e.eir}function zD$1(e,t){e.eir=t;}function WD(e){return {eventType:e.eventType,event:e.event,targetElement:e.targetElement,eic:e.eic,eia:e.eia,timeStamp:e.timeStamp,eirp:e.eirp,eiack:e.eiack,eir:e.eir}}function JN(e,t,n,r,o,i,s,a){return {eventType:e,event:t,targetElement:n,eic:r,timeStamp:o,eia:i,eirp:s,eiack:a}}var Yd$1=class e{eventInfo;constructor(t){this.eventInfo=t;}getEventType(){return an$7(this.eventInfo)}setEventType(t){ef$1(this.eventInfo,t);}getEvent(){return xa$2(this.eventInfo)}setEvent(t){jD(this.eventInfo,t);}getTargetElement(){return VD(this.eventInfo)}setTargetElement(t){BD(this.eventInfo,t);}getContainer(){return HD(this.eventInfo)}setContainer(t){ZN(this.eventInfo,t);}getTimestamp(){return YN(this.eventInfo)}setTimestamp(t){QN(this.eventInfo,t);}getAction(){let t=Ra$1(this.eventInfo);if(t)return {name:t[0],element:t[1]}}setAction(t){if(!t){Zd$1(this.eventInfo);return}$D(this.eventInfo,t.name,t.element);}getIsReplay(){return KN(this.eventInfo)}setIsReplay(t){UD(this.eventInfo,t);}getResolved(){return GD(this.eventInfo)}setResolved(t){zD$1(this.eventInfo,t);}clone(){return new e(WD(this.eventInfo))}},XN={},eA=/\s*;\s*/,tA=T$k.CLICK,Qd$1=class Qd{a11yClickSupport=false;clickModSupport=true;syntheticMouseEventSupport;updateEventInfoForA11yClick=void 0;preventDefaultForA11yClick=void 0;populateClickOnlyAction=void 0;constructor({syntheticMouseEventSupport:t=false,clickModSupport:n=true}={}){this.syntheticMouseEventSupport=t,this.clickModSupport=n;}resolveEventType(t){this.clickModSupport&&an$7(t)===T$k.CLICK&&GN(xa$2(t))?ef$1(t,T$k.CLICKMOD):this.a11yClickSupport&&this.updateEventInfoForA11yClick(t);}resolveAction(t){GD(t)||(this.populateAction(t,VD(t)),zD$1(t,true));}resolveParentAction(t){let n=Ra$1(t),r=n&&Aa$2(n);Zd$1(t);let o=r&&this.getParentNode(r);o&&this.populateAction(t,o);}populateAction(t,n){let r=n;for(;r&&r!==HD(t)&&(r.nodeType===Node.ELEMENT_NODE&&this.populateActionOnElement(r,t),!Ra$1(t));)r=this.getParentNode(r);let o=Ra$1(t);if(o&&(this.a11yClickSupport&&this.preventDefaultForA11yClick(t),this.syntheticMouseEventSupport&&(an$7(t)===T$k.MOUSEENTER||an$7(t)===T$k.MOUSELEAVE||an$7(t)===T$k.POINTERENTER||an$7(t)===T$k.POINTERLEAVE)))if(zN(xa$2(t),an$7(t),Aa$2(o))){let i=WN(xa$2(t),Aa$2(o));jD(t,i),BD(t,Aa$2(o));}else Zd$1(t);}getParentNode(t){let n=t[Jd$1.OWNER];if(n)return n;let r=t.parentNode;return r?.nodeName==="#document-fragment"?r?.host??null:r}populateActionOnElement(t,n){let r=this.parseActions(t),o=r[an$7(n)];o!==void 0&&$D(n,o,t),this.a11yClickSupport&&this.populateClickOnlyAction(t,n,r);}parseActions(t){let n=kN(t);if(!n){let r=t.getAttribute(Cs$3.JSACTION);if(!r)n=XN,kD(t,n);else {if(n=FN(r),!n){n={};let o=r.split(eA);for(let i=0;i<o.length;i++){let s=o[i];if(!s)continue;let a=s.indexOf(qN.EVENT_ACTION_SEPARATOR),c=a!==-1,u=c?s.substr(0,a).trim():tA,l=c?s.substr(a+1).trim():s;n[u]=l;}LN(r,n);}
19kD(t,n);}}return n}addA11yClickSupport(t,n,r){this.a11yClickSupport=true,this.updateEventInfoForA11yClick=t,this.preventDefaultForA11yClick=n,this.populateClickOnlyAction=r;}},qD=(function(e){return e[e.I_AM_THE_JSACTION_FRAMEWORK=0]="I_AM_THE_JSACTION_FRAMEWORK",e})(qD||{}),Kd$1=class Kd{dispatchDelegate;actionResolver;eventReplayer;eventReplayScheduled=false;replayEventInfoWrappers=[];constructor(t,{actionResolver:n,eventReplayer:r}={}){this.dispatchDelegate=t,this.actionResolver=n,this.eventReplayer=r;}dispatch(t){let n=new Yd$1(t);this.actionResolver?.resolveEventType(t),this.actionResolver?.resolveAction(t);let r=n.getAction();if(r&&nA(r.element,n)&&$N(n.getEvent()),this.eventReplayer&&n.getIsReplay()){this.scheduleEventInfoWrapperReplay(n);return}this.dispatchDelegate(n);}scheduleEventInfoWrapperReplay(t){this.replayEventInfoWrappers.push(t),!this.eventReplayScheduled&&(this.eventReplayScheduled=true,Promise.resolve().then(()=>{this.eventReplayScheduled=false,this.eventReplayer(this.replayEventInfoWrappers);}));}};function nA(e,t){return e.tagName==="A"&&(t.getEventType()===T$k.CLICK||t.getEventType()===T$k.CLICKMOD)}var ZD=Symbol.for("propagationStopped"),tf$1={REPLAY:101};var rA="`preventDefault` called during event replay.";var oA="`composedPath` called during event replay.",ka$2=class ka{dispatchDelegate;clickModSupport;actionResolver;dispatcher;constructor(t,n=true){this.dispatchDelegate=t,this.clickModSupport=n,this.actionResolver=new Qd$1({clickModSupport:n}),this.dispatcher=new Kd$1(r=>{this.dispatchToDelegate(r);},{actionResolver:this.actionResolver});}dispatch(t){this.dispatcher.dispatch(t);}dispatchToDelegate(t){for(t.getIsReplay()&&aA(t),iA(t);t.getAction();){if(cA(t),Xd$1(t.getEventType())&&t.getAction().element!==t.getTargetElement()||(this.dispatchDelegate(t.getEvent(),t.getAction().name),sA(t)))return;this.actionResolver.resolveParentAction(t.eventInfo);}}};function iA(e){let t=e.getEvent(),n=e.getEvent().stopPropagation.bind(t),r=()=>{t[ZD]=true,n();};Kn$9(t,"stopPropagation",r),Kn$9(t,"stopImmediatePropagation",r);}function sA(e){return !!e.getEvent()[ZD]}function aA(e){let t=e.getEvent(),n=e.getTargetElement(),r=t.preventDefault.bind(t);Kn$9(t,"target",n),Kn$9(t,"eventPhase",tf$1.REPLAY),Kn$9(t,"preventDefault",()=>{throw r(),new Error(rA+"")}),Kn$9(t,"composedPath",()=>{throw new Error(oA+"")});}function cA(e){let t=e.getEvent(),n=e.getAction()?.element;n&&Kn$9(t,"currentTarget",n,{configurable:true});}function Kn$9(e,t,n,{configurable:r=false}={}){Object.defineProperty(e,t,{value:n,configurable:r});}function YD(e,t){e.ecrd(n=>{t.dispatch(n);},qD.I_AM_THE_JSACTION_FRAMEWORK);}function uA(e){return e?.q??[]}function lA(e){e&&(LD(e.c,e.et,e.h),LD(e.c,e.etc,e.h,true));}function LD(e,t,n,r){for(let o=0;o<t.length;o++)e.removeEventListener(t[o],n,r);}var dA=false,QD=(()=>{class e{static MOUSE_SPECIAL_SUPPORT=dA;containerManager;eventHandlers={};browserEventTypeToExtraEventTypes={};dispatcher=null;queuedEventInfos=[];constructor(n){this.containerManager=n;}handleEvent(n,r,o){let i=JN(n,r,r.target,o,Date.now());this.handleEventInfo(i);}handleEventInfo(n){if(!this.dispatcher){UD(n,true),this.queuedEventInfos?.push(n);return}this.dispatcher(n);}addEvent(n,r,o){if(n in this.eventHandlers||!this.containerManager||PN.indexOf(n)>=0)return;let i=(a,c,u)=>{this.handleEvent(a,c,u);};this.eventHandlers[n]=i;let s=VN(r||n);if(s!==n){let a=this.browserEventTypeToExtraEventTypes[s]||[];a.push(n),this.browserEventTypeToExtraEventTypes[s]=a;}this.containerManager.addEventListener(s,a=>c=>{i(n,c,a);},o);}replayEarlyEvents(n=window._ejsa){n&&(this.replayEarlyEventInfos(n.q),lA(n),delete window._ejsa);}replayEarlyEventInfos(n){for(let r=0;r<n.length;r++){let o=n[r],i=this.getEventTypesForBrowserEventType(o.eventType);for(let s=0;s<i.length;s++){let a=WD(o);ef$1(a,i[s]),this.handleEventInfo(a);}}}getEventTypesForBrowserEventType(n){let r=[];return this.eventHandlers[n]&&r.push(n),this.browserEventTypeToExtraEventTypes[n]&&r.push(...this.browserEventTypeToExtraEventTypes[n]),r}handler(n){return this.eventHandlers[n]}cleanUp(){this.containerManager?.cleanUp(),this.containerManager=null,this.eventHandlers={},this.browserEventTypeToExtraEventTypes={},this.dispatcher=null,this.queuedEventInfos=[];}registerDispatcher(n,r){this.ecrd(n,r);}ecrd(n,r){if(this.dispatcher=n,this.queuedEventInfos?.length){for(let o=0;o<this.queuedEventInfos.length;o++)this.handleEventInfo(this.queuedEventInfos[o]);this.queuedEventInfos=null;}}}return e})();function KD(e,t=window){return uA(t._ejsas?.[e])}function nf$1(e,t=window){t._ejsas&&(t._ejsas[e]=void 0);}var ja$1=Symbol("InputSignalNode#UNSET"),lE=s$e(r$d({},Kr$6),{transformFn:void 0,applyValueToInputSignal(e,t){Gt$8(e,t);}});function dE(e,t){let n=Object.create(lE);n.value=e,n.transformFn=t?.transform;function r(){if(Et$d(n),n.value===ja$1){let o=null;throw new D$l(-950,o)}return n.value}return r[K$q]=n,r}var JD=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Al$1(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function K8(e){return vA(e)?e.default:e}function vA(e){return e&&typeof e=="object"&&"default"in e}function J8(e){return new ei$7}function XD(e,t){return dE(e,t)}function DA(e){return dE(ja$1,e)}var X8=(XD.required=DA,XD);function fE(e,t){let n=Object.create(lE),r=new ei$7;n.value=e;function o(){return Et$d(n),eE(n.value),n.value}return o[K$q]=n,o.asReadonly=Eo$4.bind(o),o.set=i=>{n.equal(n.value,i)||(Gt$8(n,i),r.emit(i));},o.update=i=>{eE(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function eE(e){if(e===ja$1)throw new D$l(952,false)}function tE(e,t){return fE(e)}function EA(e){return fE(ja$1)}var e3=(tE.required=EA,tE);function nE(e,t){return Td$1()}function IA(e,t){return Sd()}var t3=(nE.required=IA,nE);function n3(e,t){return _d$1()}function rE(e,t){return Td$1()}function CA(e,t){return Sd()}var r3=(rE.required=CA,rE);function o3(e,t){return _d$1()}var i3=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(G$k(yt$f))};static \u0275mod=Sa$2({type:e});static \u0275inj=io$5({})}return e})();var Fa$1=new WeakSet,oE="";function iE(e){return e.get(Pl$1,fm)}function wA(){let e=[{provide:Pl$1,useFactory:()=>{let t=true;{let n=g$k(Xt$c);t=!!window._ejsas?.[n];}return t&&fe$d("NgEventReplay"),t}}];return e.push({provide:Tn$8,useValue:()=>{let t=g$k(yt$f),{injector:n}=t;if(!Fa$1.has(t)){let r=g$k(Vl$1);if(iE(n)){Em$1();let o=n.get(Xt$c),i=vm(o,(s,a,c)=>{s.nodeType===Node.ELEMENT_NODE&&(hm(s,a,c),gm(s,r));});t.onDestroy(i);}}},multi:true},{provide:Ko$6,useFactory:()=>{let t=g$k(yt$f),{injector:n}=t;return ()=>{if(!iE(n)||Fa$1.has(t))return;Fa$1.add(t);let r=n.get(Xt$c);t.onDestroy(()=>{Fa$1.delete(t),nf$1(r);}),t.whenStable().then(()=>
19{if(t.destroyed)return;let o=n.get(ym$1);bA(o,n);let i=n.get(Vl$1);i.get(oE)?.forEach(mm),i.delete(oE);let s=o.instance;sa$2(n)?t.onDestroy(()=>s.cleanUp()):s.cleanUp();});}},multi:true}),e}var bA=(e,t)=>{let n=t.get(Xt$c),r=window._ejsas[n],o=e.instance=new QD(new Oa$1(r.c));for(let a of r.et)o.addEvent(a);for(let a of r.etc)o.addEvent(a);let i=KD(n);o.replayEarlyEventInfos(i),nf$1(n);let s=new ka$2(a=>{TA(t,a,a.currentTarget);});YD(o,s);};function TA(e,t,n){let r=(n&&n.getAttribute($o$5))??"";/d\d+/.test(r)?SA(r,e,t,n):t.eventPhase===tf$1.REPLAY&&Bl$1(t,n);}function SA(e,t,n,r){let o=t.get(pm);o.push({event:n,currentTarget:r}),Fv$1(t,e,_A(o));}function _A(e){return t=>{let n=new Set(t),r=[];for(let{event:o,currentTarget:i}of e){let s=i.getAttribute($o$5);n.has(s)?Bl$1(o,i):r.push({event:o,currentTarget:i});}e.length=0,e.push(...r);}}var sE=false;function NA(){sE||(sE=true,bm(),Hv$1(),hD(),Gv$1(),Dv$1(),tv$1(),Py(),yy());}function AA(e){return e.whenStable()}function s3(){let e=[{provide:Ho$4,useFactory:()=>{let t=true;return t=!!g$k(yr$8,{optional:true})?.get(Hl$1,null),t&&fe$d("NgHydration"),t}},{provide:Tn$8,useValue:()=>{let t=g$k(Te$g);g$k(Ho$4)&&(Nm$1(t),NA());},multi:true}];return e.push({provide:Ll$1,useFactory:()=>g$k(Ho$4)},{provide:Ko$6,useFactory:()=>{let t=g$k(Ke$f);if(g$k(Ho$4)){let n=g$k(yt$f);return ()=>{AA(n).then(()=>{n.destroyed||(hd$2(n),t.notify(7));});}}return ()=>{}},multi:true}),fo$3(e)}function a3(){let e=[wA(),{provide:jl$2,useValue:true},{provide:Rr$7,useFactory:SD}];return e.push({provide:Ko$6,useFactory:()=>{g$k(oe$e);g$k(Te$g);return ()=>{}},multi:true}),e}var of=class{supports(t){return gd$1(t)}create(t){return new sf$1(t)}},xA=(e,t)=>t,sf$1=class sf{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(t){this._trackByFn=t||xA;}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n);}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<aE(r,o,i)?n:r,a=aE(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 p=f<i.length?i[f]:i[f]=0,h=p+f;l<=h&&h<u&&(i[f]=p+1);}let d=s.previousIndex;i[d]=l-u;}}a!==c&&t(s,a,c);}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n);}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n);}diff(t){if(t==null&&(t=[]),!gd$1(t))throw new D$l(900,false);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=false,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=true):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next;}else o=0,Uy(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=true):(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=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null;}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.
19item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new af$1(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Pa$1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Pa$1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},af$1=class af{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(t,n){this.item=t,this.trackById=n;}},cf$1=class cf{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t);}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Pa$1=class Pa{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new cf$1,this.map.set(n,r)),r.add(t);}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear();}};function aE(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var uf$1=class uf{supports(t){return t instanceof Map||ba$2(t)}create(){return new lf$1}},lf$1=class lf{_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(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n);}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n);}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;
vendor: 4,449 bytes, line 19
19n=n._nextAdded)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||ba$2(t)))throw new D$l(900,false);return this.check(t)?this:null}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(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(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);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 df$1(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null;}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t));}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t);}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t);}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r));}},df$1=class df{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t;}};function cE(){return new hf$1([new of])}var hf$1=(()=>{class e{factories;static \u0275prov=L$l({token:e,providedIn:"root",factory:cE});constructor(n){this.factories=n;}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=g$k(e,{optional:true,skipSelf:true});return e.create(n,r||cE())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new D$l(901,false)}}return e})();function uE(){return new gf$1([new uf$1])}var gf$1=(()=>{class e{static \u0275prov=L$l({token:e,providedIn:"root",factory:uE});factories;constructor(n){this.factories=n;}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=g$k(e,{optional:true,skipSelf:true});return e.create(n,r||uE())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new D$l(901,false)}}return e})(),Va$2=(()=>{class e{static __NG_ELEMENT_ID__=RA}return e})();function RA(e){return OA($$o(),m$c(),(e&16)===16)}function OA(e,t,n){if(tt$c(e)&&!n){let r=Ue$e(e.index,t);return new nn$9(r,r)}else if(e.type&175){let r=t[ae$d];return new nn$9(r,t)}return null}var ff$1=new b$g(""),kA=new b$g("");function ti$7(e){return !e.moduleRef}function FA(e){let t=ti$7(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ge$b);return n.run(()=>{ti$7(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Mt$d),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),ti$7(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ff$1);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ff$1);s.add(i),e.moduleRef.onDestroy(()=>{So$4(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return PA(r,n,()=>{let i=t.get(_t$g),s=i.add(),a=t.get(xd$1);
19return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(jr$6,Jo$5);if(qv$1(c||Jo$5),!t.get(kA,!0))return ti$7(e)?t.get(yt$f):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ti$7(e)){let l=t.get(yt$f);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return LA?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var LA;function PA(e,t,n){try{let r=n();return Qo$6(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var La$2=null;function jA(e=[],t){return oe$e.create({name:t,providers:[{provide:tu$1,useValue:"platform"},{provide:ff$1,useValue:new Set([()=>La$2=null])},...e]})}function VA(e=[]){if(La$2)return La$2;let t=jA(e);return La$2=t,Rv$1(),BA(t),t}function BA(e){let t=e.get(Th$1,null);rs$4(e,()=>{t?.forEach(n=>n());});}function u3(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;P$e(k$l.BootstrapApplicationStart);try{let i=o?.injector??VA(r),s=[Wd$1(),bh$2,...n||[]],a=new jo$5({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return FA({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{P$e(k$l.BootstrapApplicationEnd);}}function ni$7(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function mf$1(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var rf=Symbol("NOT_SET"),pE=new Set,HA=s$e(r$d({},Kr$6),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:rf,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==rf&&!sr$8(this))return this.signal;try{for(let o of this.cleanup??pE)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=It$d(this),r;try{r=this.userFn.apply(null,t);}finally{$t$d(this,n);}return (this.value===rf||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),pf$1=class pf extends Ro$5{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(de$b),s),this.scheduler=o;for(let a of Kl$1){let c=n[a];if(c===void 0)continue;let u=Object.create(HA);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(Et$d(u),u.value),u.signal[K$q]=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 t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??pE)n();}finally{Ut$e(t);}}};function l3(e,t){let n=g$k(oe$e),r=n.get(Ke$f),o=n.get(fa$2),i=n.get(qn$8,null,{optional:true});o.impl??=n.get(Jl$1);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(vr$9,null,{optional:true}),c=new pf$1(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function d3(e,t){let n=ut$g(e),r=t.elementInjector||fr$8();return new Un$6(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function f3(e){let t=ut$g(e);if(!t)return null;let n=new Un$6(t);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 t.standalone},get isSignal(){return t.signals}}}function p3(){return false}var hE=null;function Ha$1(){return hE}function $A(e){hE??=e;}var yf$1=class yf{},Vr$7=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L$l({token:e,factory:()=>g$k(gE),providedIn:"platform"})}return e})(),UA=new b$g(""),gE=(()=>{class e extends Vr$7{_location;_history;_doc=g$k(Te$g);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Ha$1().getBaseHref(this._doc)}onPopState(n){let r=Ha$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Ha$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L$l({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function $a$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function mE(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function rt$c(e){return e&&e[0]!=="?"?`?${e}`:e}var Br$6=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=L$l({token:e,factory:()=>g$k(vE$1),providedIn:"root"})}return e})(),Ua$1=new b$g(""),vE$1=(()=>{class e extends Br$6{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g$k(Te$g).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.on
19HashChange(n));}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return $a$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+rt$c(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+rt$c(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+rt$c(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(G$k(Vr$7),G$k(Ua$1,8))};static \u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var DE$1=(()=>{class e{_subject=new le$d;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=WA(mE(yE(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+rt$c(r))}normalize(n){return e.stripTrailingSlash(zA(this._basePath,yE(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+rt$c(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+rt$c(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=rt$c;static joinWithSlash=$a$1;static stripTrailingSlash=mE;static \u0275fac=function(r){return new(r||e)(G$k(Br$6))};static \u0275prov=L$l({token:e,factory:()=>GA(),providedIn:"root"})}return e})();function GA(){return new DE$1(G$k(Br$6))}function zA(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function yE(e){return e.replace(/\/index\.html$/,"")}function WA(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var qA=(()=>{class e extends Br$6{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=$a$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+rt$c(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+rt$c(i))||this._platformLocation.pathname;this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(G$k(Vr$7),G$k(Ua$1,8))};static \u0275prov=L$l({token:e,factory:e.\u0275fac})}return e})();var Sf$1=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Sf$1||{});var ve$e=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ve$e||{}),B$q=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B$q||{}),Me$e=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Me$e||{}),Ne$f={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function TE(e){return _e$c(e)[W$q.LocaleId]}function SE(e,t,n){let r=_e$c(e),o=[r[W$q.DayPeriodsFormat],r[W$q.DayPeriodsStandalone]],i=ze$g(o,t);return ze$g(i,n)}
vendor: 13,864 bytes, line 19
19function _E(e,t,n){let r=_e$c(e),o=[r[W$q.DaysFormat],r[W$q.DaysStandalone]],i=ze$g(o,t);return ze$g(i,n)}function ME$1(e,t,n){let r=_e$c(e),o=[r[W$q.MonthsFormat],r[W$q.MonthsStandalone]],i=ze$g(o,t);return ze$g(i,n)}function NE$1(e,t){let r=_e$c(e)[W$q.Eras];return ze$g(r,t)}function ri$7(e,t){let n=_e$c(e);return ze$g(n[W$q.DateFormat],t)}function oi$7(e,t){let n=_e$c(e);return ze$g(n[W$q.TimeFormat],t)}function ii$7(e,t){let r=_e$c(e)[W$q.DateTimeFormat];return ze$g(r,t)}function vt$d(e,t){let n=_e$c(e),r=n[W$q.NumberSymbols][t];if(typeof r>"u"){if(t===Ne$f.CurrencyDecimal)return n[W$q.NumberSymbols][Ne$f.Decimal];if(t===Ne$f.CurrencyGroup)return n[W$q.NumberSymbols][Ne$f.Group]}return r}function AE(e,t){return _e$c(e)[W$q.NumberFormats][t]}function xE$1(e){if(!e[W$q.ExtraData])throw new D$l(2303,false)}function RE$1(e){let t=_e$c(e);return xE$1(t),(t[W$q.ExtraData][2]||[]).map(r=>typeof r=="string"?vf$1(r):[vf$1(r[0]),vf$1(r[1])])}function OE$1(e,t,n){let r=_e$c(e);xE$1(r);let o=[r[W$q.ExtraData][0],r[W$q.ExtraData][1]],i=ze$g(o,t)||[];return ze$g(i,n)||[]}function ze$g(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new D$l(2304,false)}function vf$1(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var ZA=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ga$1=Object.create(null),YA=/((?:[^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]*)/,QA=256;function kE$1(e,t,n,r){let o=sx$1(e);KA(t),t=kt$e(n,t)||t;let s=[],a;for(;t;)if(a=YA.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l;}else {s.push(t);break}let c=o.getTimezoneOffset();r&&(c=LE$1(r,c),o=ix$1(o,r));let u="";return s.forEach(l=>{let d=rx$1(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function KA(e){if(e.length>QA)throw new D$l(2300,false)}function Ya(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function kt$e(e,t){let n=TE(e);if(Ga$1[n]??=Object.create(null),Ga$1[n][t])return Ga$1[n][t];let r="";switch(t){case "shortDate":r=ri$7(e,Me$e.Short);break;case "mediumDate":r=ri$7(e,Me$e.Medium);break;case "longDate":r=ri$7(e,Me$e.Long);break;case "fullDate":r=ri$7(e,Me$e.Full);break;case "shortTime":r=oi$7(e,Me$e.Short);break;case "mediumTime":r=oi$7(e,Me$e.Medium);break;case "longTime":r=oi$7(e,Me$e.Long);break;case "fullTime":r=oi$7(e,Me$e.Full);break;case "short":let o=kt$e(e,"shortTime"),i=kt$e(e,"shortDate");r=za$2(ii$7(e,Me$e.Short),[o,i]);break;case "medium":let s=kt$e(e,"mediumTime"),a=kt$e(e,"mediumDate");r=za$2(ii$7(e,Me$e.Medium),[s,a]);break;case "long":let c=kt$e(e,"longTime"),u=kt$e(e,"longDate");r=za$2(ii$7(e,Me$e.Long),[c,u]);break;case "full":let l=kt$e(e,"fullTime"),d=kt$e(e,"fullDate");r=za$2(ii$7(e,Me$e.Full),[l,d]);break}return r&&(Ga$1[n][t]=r),r}function za$2(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function ot$f(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function JA(e,t){return ot$f(e,3).substring(0,t)}function te$c(e,t,n=0,r=false,o=false){return function(i,s){let a=XA(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return JA(a,t);let c=vt$d(s,Ne$f.MinusSign);return ot$f(a,t,c,r,o)}}function XA(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new D$l(2301,false)}}function H$l(e,t,n=ve$e.Format,r=false){return function(o,i){return ex$1(o,i,e,t,n,r)}}function ex$1(e,t,n,r,o,i){switch(n){case 2:return ME$1(t,o,r)[e.getMonth()];case 1:return _E(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=RE$1(t),l=OE$1(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[p,h]=f,y=s>=p.hours&&a>=p.minutes,w=s<h.hours||s===h.hours&&a<h.minutes;if(p.hours<h.hours){if(y&&w)return true}else if(y||w)return true}else if(f.hours===s&&f.minutes===a)return true;return false});if(d!==-1)return l[d]}return SE(t,o,r)[s<12?0:1];case 3:return NE$1(t,r)[e.getFullYear()<=0?0:1];default:throw new D$l(2302,false)}}function Wa$1(e){return function(t,n,r){let o=-1*r,i=vt$d(n,Ne$f.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+ot$f(s,2,i)+ot$f(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+ot$f(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+ot$f(s,2,i)+":"+ot$f(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+ot$f(s,2,i)+":"+ot$f(Math.abs(o%60),2,i);default:throw new D$l(2310,false)}}}var tx$1=0,Za$1=4;function nx$1(e){let t=Ya(e,tx$1,1).getDay();return Ya(e,0,1+(t<=Za$1?Za$1:Za$1+7)-t)}function FE$1(e){let t=e.getDay(),n=t===0?-3:Za$1-t;return Ya(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Df$1(e,t=false){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7);}else {let i=FE$1(n),s=nx$1(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return ot$f(o,e,vt$d(r,Ne$f.MinusSign))}}function qa$1(e,t=false){return function(n,r){let i=FE$1(n).getFullYear();return ot$f(i,e,vt$d(r,Ne$f.MinusSign),t)}}var Ef$1=Object.create(null);function rx$1(e){if(Ef$1[e])return Ef$1[e];let t;switch(e){case "G":case "GG":case "GGG":t=H$l(3,B$q.Abbreviated);break;case "GGGG":t=H$l(3,B$q.Wide);break;case "GGGGG":t=H$l(3,B$q.Narrow);break;case "y":t=te$c(0,1,0,false,true);break;case "yy":t=te$c(0,2,0,true,true);break;case "yyy":t=te$c(0,3,0,false,true);break;case "yyyy":t=te$c(0,4,0,false,true);break;case "Y":t=qa$1(1);break;case "YY":t=qa$1(2,true);break;case "YYY":t=qa$1(3);break;case "YYYY":t=qa$1(4);break;case "M":case "L":t=te$c(1,1,1);break;case "MM":case "LL":t=te$c(1,2,1);break;case "MMM":t=H$l(2,B$q.Abbreviated);break;case "MMMM":t=H$l(2,B$q.Wide);break;case "MMMMM":t=H$l(2,B$q.Narrow);break;case "LLL":t=H$l(2,B$q.Abbreviated,ve$e.Standalone);break;case "LLLL":t=H$l(2,B$q.Wide,ve$e.Standalone);break;case "LLLLL":t=H$l(2,B$q.Narrow,ve$e.Standalone);break;case "w":t=Df$1(1);break;case "ww":t=Df$1(2);break;case "W":t=Df$1(1,true);break;case "d":t=te$c(2,1);break;case "dd":t=te$c(2,2);break;case "c":case "cc":t=te$c(7,1);break;case "ccc":t=H$l(1,B$q.Abbreviated,ve$e.Standalone);break;case "cccc":t=H$l(1,B$q.Wide,ve$e.Standalone);break;case "ccccc":t=H$l(1,B$q.Narrow,ve$e.Standalone);break;case "cccccc":t=H$l(1,B$q.Short,ve$e.Standalone);break;case "E":case "EE":case "EEE":t=H$l(1,B$q.Abbreviated);break;case "EEEE":t=H$l(1,B$q.Wide);break;case "EEEEE":t=H$l(1,B$q.Narrow);break;case "EEEEEE":t=H$l(1,B$q.Short);break;case "a":case "aa":case "aaa":t=H$l(0,B$q.Abbreviated);break;case "aaaa":t=H$l(0,B$q.Wide);break;case "aaaaa":t=H$l(0,B$q.Narrow);break;case "b":case "bb":case "bbb":t=H$l(0,B$q.Abbreviated,ve$e.Standalone,true);break;case "bbbb":t=H$l(0,B$q.Wide,ve$e.Standalone,true);break;case "bbbbb":t=H$l(0,B$q.Narrow,ve$e.Standalone,true);break;case "B":case "BB":case "BBB":t=H$l(0,B$q.Abbreviated,ve$e.Format,true);break;case "BBBB":t=H$l(0,B$q.Wide,ve$e.Format,true);break;case "BBBBB":t=H$l(0,B$q.Narrow,ve$e.Format,true);break;case "h":t=te$c(3,1,-12);break;case "hh":t=te$c(3,2,-12);break;case "H":t=te$c(3,1);break;case "HH":t=te$c(3,2);break;case "m":t=te$c(4,1);break;case "mm":t=te$c(4,2);break;case "s":t=te$c(5,1);break;case "ss":t=te$c(5,2);break;case "S":t=te$c(6,1);break;case "SS":t=te$c(6,2);break;case "SSS":t=te$c(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Wa$1(0);break;case "ZZZZZ":t=Wa$1(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Wa$1(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Wa$1(2);break;default:return null}return Ef$1[e]=t,t}function LE$1(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ox$1(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function ix$1(e,t,n){let o=e.getTimezoneOffset(),i=LE$1(t,o);return ox$1(e,-1*(i-o))}function sx$1(e){if(EE(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Ya(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(ZA))return ax$1(r)}let t=new Date(e);if(!EE(t))throw new D$l(2311,false);return t}function ax$1(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function EE(e){return e instanceof Date&&!isNaN(e.valueOf())}var cx$1=/^(\d+)?\.((\d+)(-(\d+))?)?$/,IE=22,Qa$1=".",si$6="0",ux$1=";",lx$1=",",If$1="#";function dx$1(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=vt$d(n,Ne$f.Infinity);else {let u=hx$1(e);s&&(u=px$1(u));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(i){let V=i.match(cx$1);if(V===null)throw new D$l(2306,false);let it=V[1],cn=V[3],Hr=V[5];it!=null&&(l=Cf$1(it)),cn!=null&&(d=Cf$1(cn)),Hr!=null?f=Cf$1(Hr):cn!=null&&d>f&&(f=d);let Dt=100;if(l>Dt||d>Dt||f>Dt)throw new D$l(2306,false)}gx$1(u,d,f);let p=u.digits,h=u.integerLen,y=u.exponent,w=[];for(c=p.every(V=>!V);h<l;h++)p.unshift(0);for(;h<0;h++)p.unshift(0);h>0?w=p.splice(h,p.length):(w=p,p=[0]);let A=[];for(p.length>=t.lgSize&&A.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)A.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&A.unshift(p.join("")),a=A.join(vt$d(n,r)),w.length&&(a+=vt$d(n,o)+w.join("")),y&&(a+=vt$d(n,Ne$f.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function PE$1(e,t,n){let r=AE(t,Sf$1.Decimal),o=fx$1(r,vt$d(t,Ne$f.MinusSign));return dx$1(e,o,t,Ne$f.Group,Ne$f.Decimal,n)}function fx$1(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(ux$1),o=r[0],i=r[1],s=o.indexOf(Qa$1)!==-1?o.split(Qa$1):[o.substring(0,o.lastIndexOf(si$6)+1),o.substring(o.lastIndexOf(si$6)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(If$1));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===si$6?n.minFrac=n.maxFrac=l+1:d===If$1?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(lx$1);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(If$1);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function px$1(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function hx$1(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Qa$1))>-1&&(t=t.replace(Qa$1,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===si$6;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===si$6;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>IE&&(r=r.splice(0,IE-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function gx$1(e,t,n){if(t>n)throw new D$l(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.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),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,f,p,h){return f=f+d,h[p]=f<10?f:f-10,c&&(h[p]===0&&p>=u?h.pop():c=false),f>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function Cf$1(e){let t=parseInt(e);if(isNaN(t))throw new D$l(2305,false);return t}var wf$1=/\s+/,CE$1=[],mx$1=(()=>{class e{_ngEl;_renderer;initialClasses=CE$1;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(wf$1):CE$1;}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(wf$1):n;}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,true);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,true);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff();}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=true,o.enabled=r),o.touched=true):this.stateMap.set(n,{enabled:r,changed:true,touched:true});}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=false):o.touched||(o.enabled&&this._toggleClass(r,false),this.stateMap.delete(r)),o.touched=false;}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(wf$1).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o);});}static \u0275fac=function(r){return new(r||e)(q$l(gt$f),q$l(Fr$6))};static \u0275dir=mt$d({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),yx$1=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletEnvironmentInjector;ngComponentOutletContent;ngComponentOutletNgModule;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}
19constructor(n){this._viewContainerRef=n;}_needToReCreateNgModuleInstance(n){return n.ngComponentOutletNgModule!==void 0}_needToReCreateComponentInstance(n){return n.ngComponentOutlet!==void 0||n.ngComponentOutletContent!==void 0||n.ngComponentOutletInjector!==void 0||n.ngComponentOutletEnvironmentInjector!==void 0||this._needToReCreateNgModuleInstance(n)}ngOnChanges(n){if(this._needToReCreateComponentInstance(n)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(n)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Md$1(this.ngComponentOutletNgModule,vx$1(r)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent,environmentInjector:this.ngComponentOutletEnvironmentInjector});}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let n of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(n,true);this._applyInputStateDiff(this._componentRef);}}ngOnDestroy(){this._moduleRef?.destroy();}_applyInputStateDiff(n){for(let[r,o]of this._inputsUsed)o?(n.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,false)):(n.setInput(r,void 0),this._inputsUsed.delete(r));}static \u0275fac=function(r){return new(r||e)(q$l(Rt$f))};static \u0275dir=mt$d({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletEnvironmentInjector:"ngComponentOutletEnvironmentInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule"},exportAs:["ngComponentOutlet"],features:[Ar$8]})}return e})();function vx$1(e){return e.get(on$9).injector}var Ka$1=class Ka{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,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}},jE=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=true;}set ngForTrackBy(n){this._trackByFn=n;}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=true;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o;}set ngForTemplate(n){n&&(this._template=n);}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=false;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy));}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n);}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Ka$1(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),wE$1(a,o);}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf;}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);wE$1(i,o);});}static ngTemplateContextGuard(n,r){return true}static \u0275fac=function(r){return new(r||e)(q$l(Rt$f),q$l(rn$a),q$l(hf$1))};static \u0275dir=mt$d({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function wE$1(e,t){e.context.$implicit=t.item;}var Dx$1=(()=>{class e{_viewContainer;_context=new Ja$1;_thenTemplateRef=null;_elseTemplateRef=null;
19_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r;}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView();}set ngIfThen(n){bE(n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView();}set ngIfElse(n){bE(n),this._elseTemplateRef=n,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return true}static \u0275fac=function(r){return new(r||e)(q$l(Rt$f),q$l(rn$a))};static \u0275dir=mt$d({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ja$1=class Ja{$implicit=null;ngIf=null};function bE(e,t){if(e&&!e.createEmbeddedView)throw new D$l(2020,false)}var Ex$1=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o;}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create());}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n);}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:Tr$8.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s);}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue));}static \u0275fac=function(r){return new(r||e)(q$l(gt$f),q$l(gf$1),q$l(Fr$6))};static \u0275dir=mt$d({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Ix$1=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g$k(oe$e);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(q$l(Rt$f))};static \u0275dir=mt$d({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ar$8]})}return e})();function ai$6(e,t){return new D$l(2100,false)}var bf$1=class bf{createSubscription(t,n,r){return Qn$9(()=>t.subscribe({next:n,error:r}))}dispose(t){Qn$9(()=>t.unsubscribe());}},Tf$1=class Tf{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},Cx$1=new Tf$1,wx$1=new bf$1,bx$1=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g$k(Mt$d);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(Qo$6(n))return Cx$1;if(Ta$2(n))return wx$1;throw ai$6()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(q$l(Va$2,16))};static \u0275pipe=Yn$8({name:"async",type:e,pure:false})}return e})();var Tx$1=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
190EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Sx$1=(()=>{class e{transform(n){return n==null?null:(_x$1(e,n),n.replace(Tx$1,r=>r[0].toUpperCase()+r.slice(1).toLowerCase()))}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Yn$8({name:"titlecase",type:e,pure:true})}return e})();function _x$1(e,t){if(typeof t!="string")throw ai$6()}var Mx$1="mediumDate",VE=new b$g(""),BE$1=new b$g(""),Nx$1=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o;}
19transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Mx$1,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return kE$1(n,s,i||this.locale,a)}catch(s){throw ai$6(e,s.message)}}static \u0275fac=function(r){return new(r||e)(q$l(jr$6,16),q$l(VE,24),q$l(BE$1,24))};static \u0275pipe=Yn$8({name:"date",type:e,pure:true})}return e})();var Ax$1=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!xx$1(n))return null;o||=this._locale;try{let i=Rx$1(n);return PE$1(i,o,r)}catch(i){throw ai$6(e,i.message)}}static \u0275fac=function(r){return new(r||e)(q$l(jr$6,16))};static \u0275pipe=Yn$8({name:"number",type:e,pure:true})}return e})();function xx$1(e){return !(e==null||e===""||e!==e)}function Rx$1(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new D$l(2309,false);return e}var Ox$1=(()=>{class e{transform(n,r,o){if(n==null)return null;if(!(typeof n=="string"||Array.isArray(n)))throw ai$6();return n.slice(r,o)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Yn$8({name:"slice",type:e,pure:false})}return e})();var kx$1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Sa$2({type:e});static \u0275inj=io$5({})}return e})();function Fx$1(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}function NG(e,t,n){return Ud$1(e,t,n)}var Lx$1="browser",Px$1="server";function AG(e){return e===Lx$1}function xG(e){return e===Px$1}var RG=(()=>{class e{static \u0275prov=L$l({token:e,providedIn:"root",factory:()=>new _f$1(g$k(Te$g),window)})}return e})(),_f$1=class _f{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(s$e(r$d({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=jx$1(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch{console.warn(qt$c(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(s$e(r$d({},n),{left:o-s[0],top:i-s[1]}));}};function jx$1(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${CSS.escape(t)}"]`);if(s)return s}o=r.nextNode();}}return null}function HE(e){return e.replace(/\\/g,"\\\\").replace(/[\n\r\f\0]/g,"").replace(/"/g,'\\"')}var UE$1=e=>e.src,Vx$1=new b$g("",{factory:()=>UE$1});var $E$1=/^((\s*\d+w\s*(,|$)){1,})$/;var Bx$1=[1,2],Hx$1=640;var $x$1=1920,Ux$1=1080;var OG=(()=>{class e{imageLoader=g$k(Vx$1);config=Gx$1(g$k(vs$3));renderer=g$k(Fr$6);imgElement=g$k(gt$f).nativeElement;injector=g$k(oe$e);destroyRef=g$k(de$b);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=false;loaderParams;disableOptimizedSrcset=false;fill=false;placeholder;placeholderConfig;src;srcset;constructor(){this.destroyRef.onDestroy(()=>{this.renderer.removeAttribute(this.imgElement,"loading");});}ngOnInit(){fe$d("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes();}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&$E$1.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw");}ngOnChanges(n){if(n.ngSrc&&!n.ngSrc.isFirstChange()){this._renderedSrc;this.updateSrcAndSrcset(true);}}getAspectRatio(){return this.width&&this.height&&this.height!==0?this.width/this.height:null}callImageLoader(n){let r=n;this.loaderParams&&(r.loaderParams=this.loaderParams);let o=this.getAspectRatio();return o!==null&&r.width&&(r.height=Math.round(r.width/o)),this.imageLoader(r)}getLoadingBehavior(){return !this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let n={src:this.ngSrc};this._renderedSrc=this.callImageLoader(n);}return this._renderedSrc}getRewrittenSrcset(){let n=$E$1.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let i=n?parseFloat(o):parseFloat(o)*this.width;return `${this.callImageLoader({src:this.ngSrc,width:i})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:n}=this.config,r=n;return this.sizes?.trim()==="100vw"&&(r=n.filter(i=>i>=Hx$1)),r.map(i=>`${this.callImageLoader({src:this.ngSrc,width:i})} ${i}w`).join(", ")}updateSrcAndSrcset(n=false){n&&(this._renderedSrc=null);let r=this.getRewrittenSrc();this.setHostAttribute("src",r);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return Bx$1.map(r=>`${this.callImageLoader({src:this.ngSrc,width:this.width*r})} ${r}x`).join(", ")}shouldGenerateAutomaticSrcset(){let n=false;return this.sizes||(n=this.width>$x$1||this.height>Ux$1),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==UE$1&&!n}generatePlaceholder(n){let{placeholderResolution:r}=this.config;return n===true?`url("${HE(this.callImageLoader({src:this.ngSrc,width:r,isPlaceholder:true}))}")`:typeof n=="string"?`url("${HE(n)}")`:null}shouldBlurPlaceholder(n){return !n||!n.hasOwnProperty("blur")?true:!!n.blur}removePlaceholderOnLoad(n){let r=()=>{let s=this.injector.get(Va$2);o(),i(),this.placeholder=false,s.markForCheck();},o=this.renderer.listen(n,"load",r),i=this.renderer.listen(n,"error",r);this.destroyRef.onDestroy(()=>{o(),i();}),zx$1(n,r);}setHostAttribute(n,r){this.renderer.setAttribute(this.imgElement,n,r);}static \u0275fac=function(r){return new(r||e)};static \u0275dir=mt$d({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(r,o){r&2&&Ma$2("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null);},inputs:{ngSrc:[2,"ngSrc","ngSrc",Wx$1],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",mf$1],height:[2,"height","height",mf$1],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",ni$7],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",ni$7],fill:[2,"fill","fill",ni$7],placeholder:[2,"placeholder","placeholder",qx$1],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Ar$8]})}return e})();function Gx$1(e){let t={};return e.breakpoints&&(t.breakpoints=e.breakpoints.sort((n,r)=>n-r)),Object.assign({},ys$3,e,t)}
19function zx$1(e,t){e.complete&&e.naturalWidth&&t();}function Wx$1(e){return typeof e=="string"?e:At$b(e)}function qx$1(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:ni$7(e)}function qG(e){e||(e=g$k(de$b));let t=new N$d(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(Pi$2(t))}function ZG(e,t){let n=t?.injector??g$k(oe$e),r=new gn$a(1),o=Es$3(()=>{let i;try{i=e();}catch(s){Qn$9(()=>r.error(s));return}Qn$9(()=>r.next(i));},{injector:n,manualCleanup:true});return n.get(de$b).onDestroy(()=>{o.destroy(),r.complete();}),r.asObservable()}function YG(e,t){let r=!t?.manualCleanup?t?.injector?.get(de$b)??g$k(de$b):null,o=Zx$1(t?.equal),i;t?.requireSync?i=On$7({kind:0},{equal:o}):i=On$7({kind:1,value:t?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.();},complete:()=>{s?.();}});if(t?.requireSync&&i().kind===0)throw new D$l(601,false);return s=r?.onDestroy(a.unsubscribe.bind(a)),qd$1(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new D$l(601,false)}},{equal:t?.equal})}function Zx$1(e=Object.is){return (t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}function QG(e){e===void 0&&(e=g$k(oe$e));let t=e.get(Dr$7);return n=>new N$d(r=>{let o=t.add(),i=false;function s(){i||(o(),i=true);}let a=n.subscribe({next:c=>{r.next(c),s();},complete:()=>{r.complete(),s();},error:c=>{r.error(c),s();}});return a.add(()=>{r.unsubscribe(),s();}),a})} 20var ea$2=x$o((Zs,cr)=>{(function(e,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof cr=="object"&&cr.exports?cr.exports=t():e.log=t();})(Zs,function(){"use strict";var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},s=null;function a(y,S){var h=y[S];if(typeof h.bind=="function")return h.bind(y);try{return Function.prototype.bind.call(h,y)}catch{return function(){return Function.prototype.apply.apply(h,[y,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace();}function p(y){return y==="debug"&&(y="log"),typeof console===t?!1:y==="trace"&&r?o:console[y]!==void 0?a(console,y):console.log!==void 0?a(console,"log"):e}function c(){for(var y=this.getLevel(),S=0;S<n.length;S++){var h=n[S];this[h]=S<y?e:this.methodFactory(h,y,this.name);}if(this.log=this.debug,typeof console===t&&y<this.levels.SILENT)return "No console available for logging"}function u(y){return function(){typeof console!==t&&(c.call(this),this[y].apply(this,arguments));}}function d(y,S,h){return p(y)||u.apply(this,arguments)}function v(y,S){var h=this,N,De,Me,j="loglevel";typeof y=="string"?j+=":"+y:typeof y=="symbol"&&(j=void 0);function ra(A){var P=(n[A]||"silent").toUpperCase();if(!(typeof window===t||!j)){try{window.localStorage[j]=P;return}catch{}try{window.document.cookie=encodeURIComponent(j)+"="+P+";";}catch{}}}function Cn(){var A;if(!(typeof window===t||!j)){try{A=window.localStorage[j];}catch{}if(typeof A===t)try{var P=window.document.cookie,Ot=encodeURIComponent(j),Pn=P.indexOf(Ot+"=");Pn!==-1&&(A=/^([^;]+)/.exec(P.slice(Pn+Ot.length+1))[1]);}catch{}return h.levels[A]===void 0&&(A=void 0),A}}function na(){if(!(typeof window===t||!j)){try{window.localStorage.removeItem(j);}catch{}try{window.document.cookie=encodeURIComponent(j)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC";}catch{}}}function et(A){var P=A;if(typeof P=="string"&&h.levels[P.toUpperCase()]!==void 0&&(P=h.levels[P.toUpperCase()]),typeof P=="number"&&P>=0&&P<=h.levels.SILENT)return P;throw new TypeError("log.setLevel() called with invalid level: "+A)}h.name=y,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=S||d,h.getLevel=function(){return Me??De??N},h.setLevel=function(A,P){return Me=et(A),P!==!1&&ra(Me),c.call(h)},h.setDefaultLevel=function(A){De=et(A),Cn()||h.setLevel(A,!1);},h.resetLevel=function(){Me=null,na(),c.call(h);},h.enableAll=function(A){h.setLevel(h.levels.TRACE,A);},h.disableAll=function(A){h.setLevel(h.levels.SILENT,A);},h.rebuild=function(){if(s!==h&&(N=et(s.getLevel())),c.call(h),s===h)for(var A in i)i[A].rebuild();},N=et(s?s.getLevel():"WARN");var Ln=Cn();Ln!=null&&(Me=et(Ln)),c.call(h);}s=new v,s.getLogger=function(S){if(typeof S!="symbol"&&typeof S!="str
20ing"||S==="")throw new TypeError("You must supply a name when creating a logger.");var h=i[S];return h||(h=i[S]=new v(S,s.methodFactory)),h};var g=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=g),s},s.getLoggers=function(){return i},s.default=s,s});});var b$f=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var f$g=globalThis;var J$n="10.68.0";function _e$b(){return he$d(f$g),f$g}function he$d(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||J$n,t[J$n]=t[J$n]||{}}function z$n(e,t,r=f$g){let n=r.__SENTRY__=r.__SENTRY__||{},i=n[J$n]=n[J$n]||{};return i[e]||(i[e]=t())}var xt$c=["debug","info","warn","error","log","assert","trace"],oa$2="Sentry Logger ",ve$d={};function G$j(e){if(!("console"in f$g))return e();let t=f$g.console,r={},n=Object.keys(ve$d);n.forEach(i=>{let s=ve$d[i];r[i]=t[i],t[i]=s;});try{return e()}finally{n.forEach(i=>{t[i]=r[i];});}}function pa$1(){mr$7().enabled=true;}function la$2(){mr$7().enabled=false;}function Fn$8(){return mr$7().enabled}function ca$2(...e){dr$8("log",...e);}function ua$2(...e){dr$8("warn",...e);}function da$1(...e){dr$8("error",...e);}function dr$8(e,...t){b$f&&Fn$8()&&G$j(()=>{f$g.console[e](`${oa$2}[${e}]:`,...t);});}function mr$7(){return b$f?z$n("loggerSettings",()=>({enabled:false})):{enabled:false}}var m$b={enable:pa$1,disable:la$2,isEnabled:Fn$8,log:ca$2,warn:ua$2,error:da$1};var Bn$7=/\(error: (.*)\)/,Gn$8=/captureMessage|captureException/;function Nt$d(...e){let t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return (r,n=0,i=0)=>{let s=[],a=r.split(` 21`);for(let o=n;o<a.length;o++){let p=a[o];p.length>1024&&(p=p.slice(0,1024));let c=Bn$7.test(p)?p.replace(Bn$7,"$1"):p;if(!c.includes("Error: ")){for(let u of t){let d=u(c);if(d){s.push(d);break}}if(s.length>=50+i)break}}return qn$7(s.slice(i))}}function br$8(e){return Array.isArray(e)?Nt$d(...e):e}function qn$7(e){if(!e.length)return [];let t=Array.from(e);return /sentryWrapped/.test(Rt$e(t).function||"")&&t.pop(),t.reverse(),Gn$8.test(Rt$e(t).function||"")&&(t.pop(),Gn$8.test(Rt$e(t).function||"")&&t.pop()),t.slice(0,50).map(r=>s$e(r$d({},r),{filename:r.filename||Rt$e(t).filename,function:r.function||"?"}))}function Rt$e(e){return e[e.length-1]||{}}var gr$8="<anonymous>";function H$k(e){try{return !e||typeof e!="function"?gr$8:e.name||gr$8}catch{return gr$8}}function kt$d(e){let t=e.exception;if(t){let r=[];try{return t.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames);}),r}catch{return}}}var tt$b={},Hn$6={};function M$k(e,t){return tt$b[e]=tt$b[e]||[],tt$b[e].push(t),()=>{let r=tt$b[e];if(r){let n=r.indexOf(t);n!==-1&&r.splice(n,1);}}}function U$i(e,t){if(!Hn$6[e]){Hn$6[e]=true;try{t();}catch(r){b$f&&m$b.error(`Error while instrumenting ${e}`,r);}}}function R$g(e,t){let r=e&&tt$b[e];if(r)for(let n of r)try{n(t);}catch(i){b$f&&m$b.error(`Error while triggering instrumentation handler. 22Type: ${e} 23Name: ${H$k(n)} 24Error:`,i);}}var fr$7=null;function yr$7(e){let t="error";M$k(t,e),U$i(t,ma$1);}function ma$1(){fr$7=f$g.onerror,f$g.onerror=function(e,t,r,n,i){return R$g("error",{column:n,error:i,line:r,msg:e,url:t}),fr$7?fr$7.apply(this,arguments):false},f$g.onerror.__SENTRY_INSTRUMENTED__=true;}var _r$7=null;function hr$7(e){let t="unhandledrejection";M$k(t,e),U$i(t,ga);}function ga(){_r$7=f$g.onunhandledrejection,f$g.onunhandledrejection=function(e){return R$g("unhandledrejection",e),_r$7?_r$7.apply(this,arguments):true},f$g.onunhandledrejection.__SENTRY_INSTRUMENTED__=true;}var Yn$7=Object.prototype.toString;function Z$g(e){switch(Yn$7.call(e)){case "[object Error]":case "[object E
24xception]":case "[object DOMException]":case "[object WebAssembly.Exception]":return true;default:return ae$c(e,Error)}}function Ue$d(e,t){return Yn$7.call(e)===`[object ${t}]`}function Fe$e(e){return Ue$d(e,"ErrorEvent")}function rt$b(e){return Ue$d(e,"DOMError")}function wt$h(e){return Ue$d(e,"DOMException")}function C$9(e){return Ue$d(e,"String")}function le$c(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function K$p(e){return e===null||le$c(e)||typeof e!="object"&&typeof e!="function"}function ee$9(e){return Ue$d(e,"Object")}function se$e(e){return typeof e=="object"&&e!==null}function ce$a(e){return typeof Event<"u"&&ae$c(e,Event)}function Ct$g(e){return Ue$d(e,"RegExp")}function $$n(e){return !!(e?.then&&typeof e.then=="function")}function ae$c(e,t){try{return e instanceof t}catch{return false}}function vr$8(e){return typeof Request<"u"&&ae$c(e,Request)}function O$q(e,t,r){if(!(t in e))return;let n=e[t];if(typeof n!="function")return;let i=r(n);typeof i=="function"&&nt$e(i,n);try{e[t]=i;}catch{b$f&&m$b.log(`Failed to replace method "${t}" in object`,e);}}function F$i(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0});}catch{b$f&&m$b.log(`Failed to add non-enumerable property "${String(t)}" to object`,e);}}function nt$e(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,F$i(e,"__sentry_original__",t);}catch{}}function ue$8(e){return e.__sentry_original__}function it$c(e){if(Z$g(e))return r$d({message:e.message,name:e.name,stack:e.stack},Wn$8(e));if(ce$a(e)){let{type:t,target:r,currentTarget:n,detail:i}=e;return r$d(r$d({type:t,target:r,currentTarget:n},i?{detail:i}:{}),Wn$8(e))}return e}function Wn$8(e){return se$e(e)?Object.fromEntries(Object.entries(e)):{}}function Lt$c(e){let t=Object.keys(it$c(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}var Be$d;function Ge$b(e){if(Be$d!==void 0)return Be$d?Be$d(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=f$g;return t in r&&typeof r[t]=="function"?(Be$d=r[t],Be$d(e)):(Be$d=null,e())}function Ee$e(){return Ge$b(()=>Math.random())}function te$b(){return Ge$b(()=>Date.now())}var ba$1=Symbol.for("sentry.skipNormalization"),fa$1=Symbol.for("sentry.overrideNormalizationDepth");function Vn$8(e){return !!e[ba$1]}function jn$6(e){let t=e[fa$1];return typeof t=="number"?t:void 0}var Er$7;function Tr$7(e){Er$7=e;}function Y$l(e,t=100,r=1/0){try{return Sr$7("",e,t,r)}catch(n){return {ERROR:`**non-serializable** (${n})`}}}function Pt$a(e,t=3,r=100*1024){let n=Y$l(e,t);return ha$2(n)>r?Pt$a(e,t-1,r):n}function Sr$7(e,t,r=1/0,n=1/0,i=va()){let[s,a]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let o=Ir$6(e,t);if(!o.startsWith("[object "))return o;if(Vn$8(t))return t;let p=jn$6(t),c=p!==void 0?p:r;if(c===0)return o.replace("object ","");if(s(t))return "[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let y=u.toJSON();return Sr$7("",y,c-1,n,i)}catch{}let d=Array.isArray(t)?[]:{},v=0,g=it$c(t);for(let y in g){if(!Object.prototype.hasOwnProperty.call(g,y))continue;if(v>=n){d[y]="[MaxProperties ~]";break}let S=g[y];d[y]=Sr$7(y,S,c-1,n,i),v++;}return a(t),d}function Ir$6(e,t){try{if(Er$7){let n=Er$7(t);if(n)return n}return typeof global<"u"&&t===global?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${H$k(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${ya$1(t)}]`}catch(r){return `**non-serializable** (${r})`}}function ya$1(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function _a$1(e){return ~-encodeURI(e).split(/%..|./).length}function ha$2(e){return _a$1(JSON.stringify(e))}function va(){let e=new WeakSet;function t(n){return e.has(n)?true:(e.add(n),false)}function r(n){e.delete(n);}return [t,r]}function qe$b(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Dt$c(e,t){if(!Array.isArray(e))return "";let r=[];for(let n=0;n<e.length;n++){let i=e[n];K$p(i)?r.push(String(i)):i instanceof Error?r.push(i.message?`${i.name}: ${i.message}`:i.name):r.push(Ir$6(void 0,i));}return r.join(t)}function Se$e(e,t,r=false){return C$9(e)?Ct$g(t)?t.test(e):C$9(t)?r?e===t:e.includes(t):typeof t=="function"?t(e):false:false}function de$a(e,t=[],r=false){for(let n of t)if(Se$e(e,n,r))return true;return false}function Ea$1(){let e=f$g;return e.crypto||e.msCrypto}var Ar$7;function Sa$1(){return Ee$e()*16}function x$l(e=Ea$1()){try{if(e?.randomUUID)return Ge$b(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Ar$7||(Ar$7="10000000100040008000"+1e11),Ar$7.replace(/[018]/g,t=>(t^(Sa$1()&15)>>t/4).toString(16))}function zn$6(e){return e.exception?.values?.[0]}function X$i(e){let{message:t,event_id:r}=e;if(t)return t;let n=zn$6(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function Te$f(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error");}function W$p(e,t){let r=zn$6(e);if(!r)return;let n={type:"generic",handled:true},i=r.mechanism;if(r.mechanism=r$d(r$d(r$d({},n),i),t),t&&"data"in t){let s=r$d(r$d({},i?.data),t.data);r.mechanism.data=s;}}function st$b(e){if(Or$5(e))return true;try{F$i(e,"__sentry_captured__",!0);}catch{}return false}function Or$5(e){try{return e.__sentry_captured__}catch{}}var $n$6=1e3;function re$a(){return te$b()/$n$6}function Ta$1(){let{performance:e}=f$g;if(!e?.now||!e.timeOrigin)return re$a;let t=e.timeOrigin;return ()=>(t+Ge$b(()=>e.now()))/$n$6}var Kn$8;function B$p(){return (Kn$8??(Kn$8=Ta$1()))()}function Xn$8(e){let t=B$p(),r={sid:x$l(),init:true,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>Ia(r)};return e&&oe$d(r,e),r}function oe$d(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||B$p(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:x$l()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else {let r=e.timestamp-e.started;e.duration=r>=0?r:0;}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
24ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status);}function Qn$8(e,t){let r={};e.status==="ok"&&(r={status:"exited"}),oe$d(e,r);}function Ia(e){return {sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function me$d(e,t,r=2){if(!t||typeof t!="object"||r<=0)return t;if(e&&Object.keys(t).length===0)return e;let n=r$d({},e);for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=me$d(n[i],t[i],r-1));return n}function xr$7(){return x$l()}function Mt$c(){return x$l().substring(16)}function Rr$6(e){try{let t=f$g.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function Ut$d(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}var Nr$5="_sentrySpan";function kr$6(e,t){t?F$i(e,Nr$5,Rr$6(t)):delete e[Nr$5];}function wr$6(e){return Ut$d(e[Nr$5])}var Aa$1=100,q$k=class e{constructor(){this._notifyingListeners=false,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:xr$7(),sampleRand:Ee$e()};}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags=r$d({},this._tags),t._attributes=r$d({},this._attributes),t._extra=r$d({},this._extra),t._contexts=r$d({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata=r$d({},this._sdkProcessingMetadata),t._propagationContext=r$d({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,kr$6(t,wr$6(this)),t}setClient(t){this._client=t;}setLastEventId(t){this._lastEventId=t;}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t);}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&oe$d(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags=r$d(r$d({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,r){return this.setTags({[t]:r})}setAttributes(t){return this._attributes=r$d(r$d({},this._attributes),t),this._notifyScopeListeners(),this}setAttribute(t,r){return this.setAttributes({[t]:r})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra=r$d(r$d({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,r){return this._extra=s$e(r$d({},this._extra),{[t]:r}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let r=typeof t=="function"?t(this):t,n=r instanceof e?r.getScopeData():ee$9(r)?t:void 0,{tags:i,attributes:s,extra:a,user:o,contexts:p,level:c,fingerprint:u=[],propagationContext:d,conversationId:v}=n||{};return this._tags=r$d(r$d({},this._tags),i),this._attributes=r$d(r$d({},this._attributes),s),this._extra=r$d(r$d({},this._extra),a),this._contexts=r$d(r$d({},this._contexts),p),o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),v&&(this._conversationId=v),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,kr$6(this,void 0),this._attachments=[],this.setPropagationContext({traceId:xr$7(),sampleRand:Ee$e()}),this._notifyScopeListeners(),this}addBreadcrumb(t,r){let n=typeof r=="number"?r:Aa$1;if(n<=0)return this;let i=s$e(r$d({timestamp:re$a()},t),{message:t.message?qe$b(t.message,2048):t.message});return this._breadcrumbs.push(i),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return {breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:wr$6(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=me$d(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){let n=r?.event_id||x$l();if(!this._client)return b$f&&m$b.warn("No client configured on scope - will not capture exception!"),n;let i=new Error("Sentry syntheticException");return this._client.captureException(t,s$e(r$d({originalException:t,syntheticException:i},r),{event_id:n}),this),n}captureMessage(t,r,n){let i=n?.event_id||x$l();if(!this._client)return b$f&&m$b.warn("No client configured on scope - will not capture message!"),i;let s=n?.syntheticException??new Error(t);return this._client.captureMessage(t,r,s$e(r$d({originalException:t,syntheticException:s},n),{event_id:i}),this),i}captureEvent(t,r){let n=t.event_id||r?.event_id||x$l();return this._client?(this._client.captureEvent(t,s$e(r$d({},r),{event_id:n}),this),n):(b$f&&m$b.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=true,this._scopeListeners.forEac
24h(t=>{t(this);}),this._notifyingListeners=false);}};function Jn$7(){return z$n("defaultCurrentScope",()=>new q$k)}function Zn$7(){return z$n("defaultIsolationScope",()=>new q$k)}var ei$6=e=>e instanceof Promise&&!e[ti$6],ti$6=Symbol("chained PromiseLike"),ri$6=(e,t,r)=>{let n=e.then(i=>(t(i),i),i=>{throw r(i),i});return ei$6(n)&&ei$6(e)?n:Oa(e,n)},Oa=(e,t)=>{if(!t)return e;let r=false;for(let n in e){if(n in t)continue;r=true;let i=e[n];typeof i=="function"?Object.defineProperty(t,n,{value:(...s)=>i.apply(e,s),enumerable:true,configurable:true,writable:true}):t[n]=i;}return r&&Object.assign(t,{[ti$6]:true}),t};var Cr$7=class Cr{constructor(t,r){let n;t?n=t:n=new q$k;let i;r?i=r:i=new q$k,this._stack=[{scope:n}],this._isolationScope=i;}withScope(t){let r=this._pushScope(),n;try{n=t(r);}catch(i){throw this._popScope(),i}return $$n(n)?ri$6(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?false:!!this._stack.pop()}};function He$f(){let e=_e$b(),t=he$d(e);return t.stack=t.stack||new Cr$7(Jn$7(),Zn$7())}function xa$1(e){return He$f().withScope(e)}function Ra(e,t){let r=He$f();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function ni$6(e){return He$f().withScope(()=>e(He$f().getIsolationScope()))}function ii$6(){return {withIsolationScope:ni$6,withScope:xa$1,withSetScope:Ra,withSetIsolationScope:(e,t)=>ni$6(t),getCurrentScope:()=>He$f().getScope(),getIsolationScope:()=>He$f().getIsolationScope()}}function Ft$b(e){let t=he$d(e);return t.acs?t.acs:ii$6()}function Na(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function ka$1(e,t){let{value:r,unit:n}=Na(e)?e:{value:e,unit:void 0},i=wa(r),s=n&&typeof n=="string"?{unit:n}:{};if(i)return r$d(r$d({},i),s);if(!t||t==="skip-undefined"&&r===void 0)return;let a="";try{a=JSON.stringify(r)??"";}catch{}return r$d({value:a,type:"string"},s)}function Lr$5(e,t=false){let r={};for(let[n,i]of Object.entries(e??{})){let s=ka$1(i,t);s&&(r[n]=s);}return r}function wa(e){if(Array.isArray(e))return {value:e,type:"array"};let t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return {value:e,type:t}}function L$k(){let e=_e$b();return Ft$b(e).getCurrentScope()}function D$k(){let e=_e$b();return Ft$b(e).getIsolationScope()}function Bt$c(){return z$n("globalScope",()=>new q$k)}function Ye$d(...e){let t=_e$b(),r=Ft$b(t);if(e.length===2){let[n,i]=e;return n?r.withSetScope(n,i):r.withScope(i)}return r.withScope(e[0])}function T$j(){return L$k().getClient()}function Pr$5(e){let r=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:s}=r,a={trace_id:n,span_id:s||Mt$c()};return i&&(a.parent_span_id=i),a}var We$e="sentry.source",Gt$7="sentry.sample_rate",Dr$6="sentry.previous_trace_sample_rate",Ve$e="sentry.op",at$f="sentry.origin";var qt$b="sentry.profile_id",Ht$c="sentry.exclusive_time";var Mr$7="gen_ai.conversation.id";var La$1="_sentryScope",Pa="_sentryIsolationScope";function ot$e(e){let t=e;return {scope:t[La$1],isolationScope:Ut$d(t[Pa])}}var ai$5="sentry-";function pi$5(e){let t=Da$1(e);if(!t)return;let r=Object.entries(t).reduce((n,[i,s])=>{if(i.startsWith(ai$5)){let a=i.slice(ai$5.length);n[a]=s;}return n},{});if(Object.keys(r).length>0)return r}function Da$1(e){if(!(!e||!C$9(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,r)=>{let n=oi$6(r);return Object.entries(n).forEach(([i,s])=>{t[i]=s;}),t},{}):oi$6(e)}function oi$6(e){return e.split(",").map(t=>{let r=t.indexOf("=");if(r===-1)return [];let n=t.slice(0,r),i=t.slice(r+1);return [n,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((t,[r,n])=>(r&&n&&(t[r]=n),t),{})}var Ma$1=/^o(\d+)\./,Ua=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Fa(e){return e==="http"||e==="https"}
24function ne$e(e,t=false){let{host:r,path:n,pass:i,port:s,projectId:a,protocol:o,publicKey:p}=e;return `${o}://${p}${t&&i?`:${i}`:""}@${r}${s?`:${s}`:""}/${n&&`${n}/`}${a}`}function Ba$1(e){let t=Ua.exec(e);if(!t){G$j(()=>{console.error(`Invalid Sentry Dsn: ${e}`);});return}let[r,n,i="",s="",a="",o=""]=t.slice(1),p="",c=o,u=c.split("/");if(u.length>1&&(p=u.slice(0,-1).join("/"),c=u.pop()),c){let d=c.match(/^\d+/);d&&(c=d[0]);}return li$5({host:s,pass:i,path:p,projectId:c,port:a,protocol:r,publicKey:n})}function li$5(e){return {protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ga(e){if(!b$f)return true;let{port:t,projectId:r,protocol:n}=e;return ["protocol","publicKey","host","projectId"].find(a=>e[a]?false:(m$b.error(`Invalid Sentry Dsn: ${a} missing`),true))?false:r.match(/^\d+$/)?Fa(n)?t&&isNaN(parseInt(t,10))?(m$b.error(`Invalid Sentry Dsn: Invalid port ${t}`),false):true:(m$b.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),false):(m$b.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),false)}function qa(e){return e.match(Ma$1)?.[1]}function ci$5(e){let t=e.getOptions(),{host:r}=e.getDsn()||{},n;return t.orgId?n=String(t.orgId):r&&(n=qa(r)),n}function ui$4(e){let t=typeof e=="string"?Ba$1(e):li$5(e);if(!(!t||!Ga(t)))return t}function di$4(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}var fi$3=1,mi$3=false;function yi$2(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:pe$e(e).parent_span_id,s=ot$e(e).scope,a=n?s?.getPropagationContext().propagationSpanId||Mt$c():t;return {parent_span_id:i,span_id:a,trace_id:r}}function Wa(e){if(e&&e.length>0)return e.map(a=>{var o=a,{context:p}=o,c=p,{spanId:t,traceId:r,traceFlags:n}=c,i=v$m(c,["spanId","traceId","traceFlags"]),{attributes:s}=o;return r$d({span_id:t,trace_id:r,sampled:n===fi$3,attributes:s},i)})}function gi$2(e){return typeof e=="number"?bi$1(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?bi$1(e.getTime()):B$p()}function bi$1(e){return e>9999999999?e/1e3:e}function pe$e(e){if(za$1(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(ja(e)){let{attributes:n,startTime:i,name:s,endTime:a,status:o,links:p}=e;return {span_id:t,trace_id:r,data:n,description:s,parent_span_id:Va$1(e),start_timestamp:gi$2(i),timestamp:gi$2(a)||void 0,status:Ka(o),op:n[Ve$e],origin:n[at$f],links:Wa(p)}}return {span_id:t,trace_id:r,start_timestamp:0,data:{}}}function Va$1(e){return "parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function _i$2(e){return s$e(r$d({},e),{attributes:Lr$5(e.attributes),links:e.links?.map(t=>s$e(r$d({},t),{attributes:Lr$5(t.attributes)}))})}function ja(e){let t=e;return !!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function za$1(e){return typeof e.getSpanJSON=="function"}function hi$4(e){let{traceFlags:t}=e.spanContext();return t===fi$3}function Ka(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error"}var $a="_sentryRootSpan";var je$d=Xa;function Xa(e){return e[$a]||e}function Ur$4(){mi$3||(G$j(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.");}),mi$3=true);}function Fr$5(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return false;let t=e||T$j()?.getOptions();return !!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function vi$2(e){m$b.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`);}function Br$5(e,t){if(!t?.length)return false;for(let r of t){if(Ja(r)){if(e.description&&Se$e(e.description,r))return b$f&&vi$2(e),true;continue}let n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;let i=r.name?e.description&&Se$e(e.description,r.name):true,s=r.op?e.op&&Se$e(e.op,r.op):true,a=r.attributes?Object.entries(r.attributes).every(([o,p])=>Qa(e.attributes?.[o],p)):true;if(i&&s&&a)return b$f&&vi$2(e),true}return false}function Qa(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?Se$e(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e===t}function Ei$2(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let i of e)i.parent_span_id===n&&(i.parent_span_id=r);}function Ja(e){return typeof e=="string"||e instanceof RegExp}var Za=Symbol.for("sentry.nonRecordingSpan");function Si$2(e){return !!e&&e[Za]===true}var ze$f="production";var eo$4="_frozenDsc";function Ti$2(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i={environment:r.environment||ze$f,release:r.release,public_key:n,trace_id:e,org_id:ci$5(t)};return t.emit("createDsc",i),i}function Gr$5(e,t){let r=t.getPropagationContext();return r.dsc||Ti$2(r.traceId,e)}function Ii$1(e){let t=T$j();if(!t)return {};let r=je$d(e),n=pe$e(r),i=n.data,s=r.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[Gt$7]??i[Dr$6];
24function o(h){return (typeof a=="number"||typeof a=="string")&&(h.sample_rate=`${a}`),h}let p=r[eo$4];if(p)return o(p);let c=Si$2(r),u=c&&r.dropReason==="ignored";if(c&&(!Fr$5(t.getOptions())||u)){let h=ot$e(r).scope;if(h){let N=r$d({},Gr$5(t,h));return u&&(N.sampled="false"),o(N)}}let d=s?.get("sentry.dsc"),v=d&&pi$5(d);if(v)return o(v);let g=Ti$2(e.spanContext().traceId,t),y=i[We$e]??i["sentry.segment.name.source"],S=n.description;return y!=="url"&&S&&(g.transaction=S),Fr$5()&&(g.sampled=String(hi$4(r)),g.sample_rand=s?.get("sentry.sample_rand")??ot$e(r).scope?.getPropagationContext().sampleRand.toString()),o(g),t.emit("createDsc",g,r),g}function Ai$2(e){return !!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function Q$e(e,t=[]){return [e,t]}function Hr$5(e,t){let[r,n]=e;return [r,[...n,t]]}function Yt$b(e,t){let r=e[1];for(let n of r){let i=n[0].type;if(t(n,i))return true}return false}function Oi$2(e,t){return Yt$b(e,(r,n)=>t.includes(n))}function qr$5(e){let t=he$d(f$g);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function xi$2(e){let[t,r]=e,n=JSON.stringify(t);function i(s){typeof n=="string"?n=typeof s=="string"?n+s:[qr$5(n),s]:n.push(typeof s=="string"?qr$5(s):s);}for(let s of r){let[a,o]=s;if(i(` 25${JSON.stringify(a)} 26`),typeof o=="string"||o instanceof Uint8Array)i(o);else {let p;try{p=JSON.stringify(o);}catch{p=JSON.stringify(Y$l(o));}i(p);}}return typeof n=="string"?n:to$4(n)}function to$4(e){let t=e.reduce((i,s)=>i+s.length,0),r=new Uint8Array(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}function Ri$2(e){let t=typeof e.data=="string"?qr$5(e.data):e.data;return [{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Ni$1={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function ro$4(e){return e in Ni$1}function Yr$6(e){return ro$4(e)?Ni$1[e]:e}function Wr$5(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return {name:t,version:r}}function ki$1(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return r$d(r$d(r$d({event_id:e.event_id,sent_at:new Date(te$b()).toISOString()},t&&{sdk:t}),!!r&&n&&{dsn:ne$e(n)}),i&&{trace:i})}function no$5(e,t){if(!t)return e;let r=e.sdk||{};return e.sdk=s$e(r$d({},r),{name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?r$d(r$d({},e.sdk?.settings),t.settings):void 0}),e}function wi$3(e,t,r,n){let i=Wr$5(r),s=r$d(r$d({sent_at:new Date(te$b()).toISOString()},i&&{sdk:i}),!!n&&t&&{dsn:ne$e(t)}),a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Q$e(s,[a])}function Ci$2(e,t,r,n){let i=Wr$5(r),s=e.type&&e.type!=="replay_event"?e.type:"event";no$5(e,r?.sdk);let a=ki$1(e,i,n,t);return delete e.sdkProcessingMetadata,Q$e(a,[[{type:s},e]])}function Li$1(e){return e.getOptions().traceLifecycle==="stream"}function Di$2(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:s}=t;io$4(e,t),n&&oo$4(e,n),po$2(e,r),so$3(e,i),ao$3(e,s);}function Pi$1(e,t){let{extra:r,tags:n,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:p,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:v,propagationContext:g,transactionName:y,span:S}=t;pt$d(e,"extra",r),pt$d(e,"tags",n),pt$d(e,"attributes",i),pt$d(e,"user",s),pt$d(e,"contexts",a),e.sdkProcessingMetadata=me$d(e.sdkProcessingMetadata,p,2),o&&(e.level=o),y&&(e.transactionName=y),S&&(e.span=S),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),v.length&&(e.attachments=[...e.attachments,...v]),e.propagationContext=r$d(r$d({},e.propagationContext),g);}function pt$d(e,t,r){e[t]=me$d(e[t],r,1);}function Wt$e(e,t){let r=Bt$c().getScopeData();return e&&Pi$1(r,e.getScopeData()),t&&Pi$1(r,t.getScopeData()),r}function io$4(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(r).length&&(e.extra=r$d(r$d({},r),e.extra)),Object.keys(n).length&&(e.tags=r$d(r$d({},n),e.tags)),Object.keys(i).length&&(e.user=r$d(r$d({},i),e.user)),Object.keys(s).length&&(e.contexts=r$d(r$d({},s),e.contexts)),a&&(e.level=a),o&&e.type!=="transaction"&&(e.transaction=o);}function so$3(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0;}function ao$3(e,t){e.sdkProcessingMetadata=r$d(r$d({},e.sdkProcessingMetadata),t);}function oo$4(e,t){e.contexts=r$d({trace:yi$2(t)},e.contexts),e.sdkProcessingMetadata=r$d({dynamicSamplingContext:Ii$1(t)},e.sdkProcessingMetadata);let r=je$d(t),n=pe$e(r).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n);}function po$2(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint;}var Mi$1="url.full";function lt$d(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([n,i])=>{i!=null&&!(n in r)&&(r[n]=i);});}var Vr$6=0,Ui$2=1,Fi$1=2;function ie$f(e){return new ct$b(t=>{t(e);})}function Ie$9(e){return new ct$b((t,r)=>{r(e);})}var ct$b=class e{constructor(t){this._state=Vr$6,this._handlers=[],this._runExecutor(t);}then(t,r){return new e((n,i)=>{this._handlers.push([false,s=>{if(!t)n(s);else try{n(t(s));}catch(a){i(a);}},s=>{if(!r)i(s);else try{n(r(s));}catch(a){i(a);}}]),this._executeHandlers();})}catch(t){return this.then(r=>r,t)}finally(t){return new e((r,n)=>{let i,s;return this.then(a=>{s=false,i=a,t&&t();},a=>
26{s=true,i=a,t&&t();}).then(()=>{if(s){n(i);return}r(i);})})}_executeHandlers(){if(this._state===Vr$6)return;let t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===Ui$2&&r[1](this._value),this._state===Fi$1&&r[2](this._value),r[0]=true);});}_runExecutor(t){let r=(s,a)=>{if(this._state===Vr$6){if($$n(a)){a.then(n,i);return}this._state=s,this._value=a,this._executeHandlers();}},n=s=>{r(Ui$2,s);},i=s=>{r(Fi$1,s);};try{t(n,i);}catch(s){i(s);}}};function Bi$1(e,t,r,n=0){try{let i=jr$5(t,r,e,n);return $$n(i)?i:ie$f(i)}catch(i){return Ie$9(i)}}function jr$5(e,t,r,n){let i=r[n];if(!e||!i)return e;let s=i(r$d({},e),t);return b$f&&s===null&&m$b.log(`Event processor "${i.id||"?"}" dropped event`),$$n(s)?s.then(a=>jr$5(a,t,r,n+1)):jr$5(s,t,r,n+1)}var Ae$d,Gi$2,qi$3,ge$a;function Hi$2(e){let t=f$g._sentryDebugIds,r=f$g._debugIds;if(!t&&!r)return {};let n=t?Object.keys(t):[],i=r?Object.keys(r):[];if(ge$a&&n.length===Gi$2&&i.length===qi$3)return ge$a;Gi$2=n.length,qi$3=i.length,ge$a={},Ae$d||(Ae$d={});let s=(a,o)=>{for(let p of a){let c=o[p],u=Ae$d?.[p];if(u&&ge$a&&c)ge$a[u[0]]=c,Ae$d&&(Ae$d[p]=[u[0],c]);else if(c){let d=e(p);for(let v=d.length-1;v>=0;v--){let y=d[v]?.filename;if(y&&ge$a&&Ae$d){ge$a[y]=c,Ae$d[p]=[y,c];break}}}}};return t&&s(n,t),r&&s(i,r),ge$a}function Yi$2(e,t,r,n,i,s){let{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=e,p=s$e(r$d({},t),{event_id:t.event_id||r.event_id||x$l(),timestamp:t.timestamp||re$a()}),c=r.integrations||e.integrations.map(N=>N.name);lo$3(p,e),mo$3(p,c),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&co$3(p,e.stackParser);let u=bo$3(n,r.captureContext);r.mechanism&&W$p(p,r.mechanism);let d=i?i.getEventProcessors():[],v=Wt$e(s,u),g=[...r.attachments||[],...v.attachments];g.length&&(r.attachments=g),Di$2(p,v);let y=[...d,...v.eventProcessors];return (r.data&&r.data.__sentry__===true?ie$f(p):Bi$1(y,p,r)).then(N=>(N&&uo$3(N),typeof a=="number"&&a>0?go$3(N,a,o):N))}function lo$3(e,t){let{environment:r,release:n,dist:i,maxValueLength:s}=t;e.environment=e.environment||r||ze$f,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&s&&(a.url=qe$b(a.url,s)),s&&e.exception?.values?.forEach(o=>{o.value&&(o.value=qe$b(o.value,s));});}function co$3(e,t){let r=Hi$2(t);e.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=r[i.filename]);});});}function uo$3(e){let t={};if(e.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id);});}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([n,i])=>{r.push({type:"sourcemap",code_file:n,debug_id:i});});}function mo$3(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t]);}function go$3(e,t,r){if(!e)return null;let n=r$d(r$d(r$d(r$d(r$d({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>r$d(r$d({},i),i.data&&{data:Y$l(i.data,t,r)}))}),e.user&&{user:Y$l(e.user,t,r)}),e.contexts&&{contexts:Y$l(e.contexts,t,r)}),e.extra&&{extra:Y$l(e.extra,t,r)});return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=Y$l(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(i=>r$d(r$d({},i),i.data&&{data:Y$l(i.data,t,r)}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=Y$l(e.contexts.flags,3,r)),n}function bo$3(e,t){if(!t)return e;let r=e?e.clone():new q$k;return r.update(t),r}function Wi$2(e){if(e)return fo$2(e)?{captureContext:e}:_o$3(e)?{captureContext:e}:e}function fo$2(e){return e instanceof q$k||typeof e=="function"}var yo$3=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function _o$3(e){return Object.keys(e).some(t=>yo$3.includes(t))}function Ke$e(e,t){return L$k().captureException(e,Wi$2(t))}function Vt$b(e,t){let r=void 0,n={captureContext:t};return L$k().captureMessage(e,r,n)}function ut$f(e,t){return L$k().captureEvent(e,t)}function jt$e(e,t){D$k().setContext(e,t);}function ji$2(e){D$k().setUser(e);}function dt$c(e){let t=D$k(),{user:r}=Wt$e(t,L$k()),{userAgent:n}=f$g.navigator||{},i=Xn$8(r$d(r$d({user:r},n&&{userAgent:n}),e)),s=t.getSession();return s?.status==="ok"&&oe$d(s,{status:"exited"}),zt$d(),t.setSession(i),i}function zt$d(){let e=D$k(),r=L$k().getSession()||e.getSession();r&&Qn$8(r),zi$2(),e.setSession();}function zi$2(){let e=D$k(),t=T$j(),r=e.getSession();r&&t&&t.captureSession(r);}function $e$d(e=false){if(e){zt$d();return}zi$2();}function Kt$c(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}var ho$3="7";function vo$3(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return `${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function Eo$3(e){return `${vo$3(e)}${e.projectId}/envelope/`}function So$3(e,t){let r={sentry_version:ho$3};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function Ki$2(e,t,r){return t||`${Eo$3(e)}?${So$3(e,r)}`}var zr$6=[];function To$3(e){let t={};return e.forEach(r=>{let{name:n}=r,i=t[n];i&&!i.isDefaultInstance&&r.isDefaultInstance||(t[n]=r);}),Object.values(t)}function Kr$5(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(i=>
26{i.isDefaultInstance=true;});let n;if(Array.isArray(r))n=[...t,...r];else if(typeof r=="function"){let i=r(t);n=Array.isArray(i)?i:[i];}else n=t;return To$3(n)}function $i$2(e,t){let r={};return t.forEach(n=>{n?.beforeSetup&&n.beforeSetup(e);}),t.forEach(n=>{n&&Xr$5(e,n,r);}),r}function $r$5(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e);}function Xr$5(e,t,r){if(r[t.name]){b$f&&m$b.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,!zr$6.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),zr$6.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>n(i,s,e));}if(typeof t.processEvent=="function"){let n=t.processEvent.bind(t),i=Object.assign((s,a)=>n(s,a,e),{id:t.name});e.addEventProcessor(i);}["processSpan","processSegmentSpan"].forEach(n=>{let i=t[n];typeof i=="function"&&e.on(n,s=>i.call(t,s,e));}),b$f&&m$b.log(`Integration installed: ${t.name}`);}function Qr$5(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Jr$5(){return "npm"}function Xi$4(){return !Qr$5()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Xe$a(){return typeof window<"u"&&(!Xi$4()||Io$3())}function Io$3(){return f$g.process?.type==="renderer"}function Ao$3(e,t){let r=t?"auto":"never";return [{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},s$e(r$d({version:2},Xe$a()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}}),{items:e})]}function Qi$2(e,t,r,n,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(s.dsn=ne$e(n)),Q$e(s,[Ao$3(e,i)])}function Ji$3(e,t){let r=t??Oo$3(e)??[];if(r.length===0)return;let n=e.getOptions(),i=Qi$2(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Zi$3().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i);}function Oo$3(e){return Zi$3().get(e)}function Zi$3(){return z$n("clientToLogBufferMap",()=>new WeakMap)}function xo$3(e,t){let r=t?"auto":"never";return [{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},s$e(r$d({version:2},Xe$a()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}}),{items:e})]}function es$3(e,t,r,n,i){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(s.dsn=ne$e(n)),Q$e(s,[xo$3(e,i)])}function ts$3(e,t){let r=t??Ro$4(e)??[];if(r.length===0)return;let n=e.getOptions(),i=es$3(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);rs$3().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i);}function Ro$4(e){return rs$3().get(e)}function rs$3(){return z$n("clientToMetricBufferMap",()=>new WeakMap)}function ns$3(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:false,attributes:r$d({},e.data),links:e.links};return _i$2(t)}function is$3(e,t){if(e.type!=="transaction"||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===false||Li$1(t))return;let r=[],n=[];for(let s of e.spans)s.op?.startsWith("gen_ai.")?r.push(ns$3(s)):n.push(s);if(r.length===0)return;e.spans=n;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return [{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},s$e(r$d({version:2},Xe$a()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}}),{items:r})]}var Qe$e=Symbol.for("SentryBufferFullError");function Oe$c(e=100){let t=new Set;function r(){return t.size<e}function n(a){t.delete(a);}function i(a){if(!r())return Ie$9(Qe$e);let o=a();return t.add(o),o.then(()=>n(o),()=>n(o)),o}function s(a){if(!t.size)return ie$f(true);let o=Promise.allSettled(Array.from(t)).then(()=>true);if(!a)return o;let p=[o,new Promise(c=>Kt$c(setTimeout(()=>c(false),a)))];return Promise.race(p)}return {get $(){return Array.from(t)},add:i,drain:s}}var No$3=60*1e3;function ko$3(e,t=te$b()){let r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${e}`);return isNaN(n)?No$3:n-t}function wo$3(e,t){return e[t]||e.all||0}function ss$3(e,t,r=te$b()){return wo$3(e,t)>r}function as$2(e,{statusCode:t,headers:r},n=te$b()){let i=r$d({},e),s=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(s)for(let o of s.trim().split(",")){let[p,c,,,u]=o.split(":",5),d=parseInt(p,10),v=(isNaN(d)?60:d)*1e3;if(!c)i.all=n+v;else for(let g of c.split(";"))g==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[g]=n+v):i[g]=n+v;}else a?i.all=n+ko$3(a,n):t===429&&(i.all=n+60*1e3);return i}var Zr$5=64;function $t$c(e,t,r=Oe$c(e.bufferSize||Zr$5)){let n={},i=a=>r.drain(a);function s(a){let o=[];if(Yt$b(a,(d,v)=>{let g=Yr$6(v);ss$3(n,g)?e.recordDroppedEvent("ratelimit_backoff",g):o.push(d);}),o.length===0)return Promise.resolve({});let p=Q$e(a[0],o),c=d=>
26{if(Oi$2(p,["client_report"])){b$f&&m$b.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}Yt$b(p,(v,g)=>{e.recordDroppedEvent(d,Yr$6(g));});},u=()=>t({body:xi$2(p)}).then(d=>d.statusCode===413?(b$f&&m$b.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),c("send_error"),d):(b$f&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&m$b.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=as$2(n,d),d),d=>{throw c("network_error"),b$f&&m$b.error("Encountered error running transport request:",d),d});return r.add(u).then(d=>d,d=>{if(d===Qe$e)return b$f&&m$b.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw d})}return {send:s,flush:i}}function os$3(e,t,r){let n=[{type:"client_report"},{timestamp:re$a(),discarded_events:e}];return Q$e(t?{dsn:t}:{},[n])}function Xt$b(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`));}catch{}return t}function ps$3(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return {data:a??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[qt$b],exclusive_time:a?.[Ht$c],measurements:e.measurements,is_segment:true}}function ls$2(e){return {type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:r$d(r$d(r$d({},e.data),e.profile_id&&{[qt$b]:e.profile_id}),e.exclusive_time&&{[Ht$c]:e.exclusive_time})}},measurements:e.measurements}}var mt$c=["forwarded","-ip","remote-","via","-user"];function cs$3(e){return e===true?{userInfo:true,cookies:true,httpHeaders:{request:true,response:true},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:true,graphQL:{document:true,variables:true},genAI:{inputs:true,outputs:true}
26,databaseQueryData:true,stackFrameVariables:true,frameContextLines:7}:{userInfo:false,cookies:{deny:mt$c},httpHeaders:{request:{deny:mt$c},response:{deny:mt$c}},httpBodies:[],urlQueryParams:{deny:mt$c},graphQL:{document:true,variables:true},genAI:{inputs:false,outputs:false},databaseQueryData:false,stackFrameVariables:true,frameContextLines:7}}var Co$3={userInfo:true,cookies:true,httpHeaders:{request:true,response:true},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:true,graphQL:{document:true,variables:true},genAI:{inputs:true,outputs:true},databaseQueryData:true,stackFrameVariables:true,frameContextLines:5};function us$2(e){let t=e.dataCollection!=null?Co$3:cs$3(e.sendDefaultPii),r=e.dataCollection??{};return {userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,urlQueryParams:r.urlQueryParams??r.queryParams??t.urlQueryParams,graphQL:{document:r.graphQL?.document??t.graphQL.document,variables:r.graphQL?.variables??t.graphQL.variables},genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},databaseQueryData:r.databaseQueryData??t.databaseQueryData,stackFrameVariables:r.stackFrame
26Variables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}var ds$3="Not capturing exception because it's already been captured.",ms$2="Discarded session because of missing or non-string release",hs$3=Symbol.for("SentryInternalError"),vs$2=Symbol.for("SentryDoNotSendEventError"),Lo$3=5e3;function Qt$b(e){return {message:e,[hs$3]:true}}function en$9(e){return {message:e,[vs$2]:true}}function gs$3(e){return se$e(e)&&hs$3 in e}function bs$2(e){return se$e(e)&&vs$2 in e}function fs$3(e,t,r,n,i){let s=0,a,o=false;e.on(r,()=>{s=0,clearTimeout(a),o=false;}),e.on(t,p=>{if(s+=n(p),s>=8e5)i(e);else if(!o){let c=e.getOptions()._flushInterval??Lo$3;c>0&&(o=true,a=Kt$c(setTimeout(()=>{i(e);},c)));}}),e.on("flush",()=>{i(e);});}var gt$e=class gt{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Oe$c(t.transportOptions?.bufferSize??Zr$5),this._dataCollection=us$2(t),t.dsn?this._dsn=ui$4(t.dsn):b$f&&m$b.warn("No DSN provided, client will not send events."),this._dsn){let n=Ki$2(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(s$e(r$d({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:n}));}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&fs$3(this,"afterCaptureLog","flushLogs",Uo$4,Ji$3),(this._options.enableMetrics??this._options._experiments?.enableMetrics??true)&&fs$3(this,"afterCaptureMetric","flushMetrics",Mo$3,ts$3);}captureException(t,r,n){let i=x$l();if(st$b(t))return b$f&&m$b.log(ds$3),i;let s=r$d({event_id:i},r);return this._process(()=>this.eventFromException(t,s).then(a=>this._captureEvent(a,s,n)).then(a=>a),"error"),s.event_id}captureMessage(t,r,n,i){let s=r$d({event_id:x$l()},n),a=le$c(t)?t:String(t),o=K$p(t),p=o?this.eventFromMessage(a,r,s):this.eventFromException(t,s);return this._process(()=>p.then(c=>this._captureEvent(c,s,i)),o?"unknown":"error"),s.event_id}captureEvent(t,r,n){let i=x$l();if(r?.originalException&&st$b(r.originalException))return b$f&&m$b.log(ds$3),i;let s=r$d({event_id:i},r),a=t.sdkProcessingMetadata||{},o=a.capturedSpanScope,p=a.capturedSpanIsolationScope,c=ys$2(t.type);return this._process(()=>this._captureEvent(t,s,o||n,p),c),s.event_id}captureSession(t){this.sendSession(t),oe$d(t,{init:false});}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){let r=this._transport;if(this.emit("flush"),!r)return true;let n=await this._isClientDoneProcessing(t),i=await r.flush(t);return n&&i}async close(t){let r=await this.flush(t);return this.getOptions().enabled=false,this.emit("close"),r}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t);}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations();}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){let r=this._integrations[t.name];!r&&t.beforeSetup&&t.beforeSetup(this),Xr$5(this,t,this._integrations),r||$r$5(this,[t]);}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let n=is$3(t,this),i=Ci$2(t,this._dsn,this._options._metadata,this._options.tunnel);for(let s of r.attachments||[])i=Hr$5(i,Ri$2(s));n&&(i=Hr$5(i,n)),this.sendEnvelope(i).then(s=>this.emit("afterSendEvent",t,s));}sendSession(t){let{release:r,environment:n=ze$f}=this._options;if("aggregates"in t){let s=t.attrs||{};if(!s.release&&!r){b$f&&m$b.warn(ms$2);return}s.release=s.release||r,s.environment=s.environment||n,t.attrs=s;}else {if(!t.release&&!r){b$f&&m$b.warn(ms$2);return}t.release=t.release||r,t.environment=t.environment||n;}this.emit("beforeSendSession",t);let i=wi$3(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i);}recordDroppedEvent(t,r,n=1){if(this._options.sendClientReports){let i=`${t}:${r}`;b$f&&m$b.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n;}}on(t,r){let n=this._hooks[t]=this._hooks[t]||new Set,i=(...s)=>r(...s);return n.add(i),()=>{n.delete(i);}}emit(t,...r){let n=this._hooks[t];
26n&&n.forEach(i=>i(...r));}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(r){return b$f&&m$b.error("Error while sending envelope:",r),{}}return b$f&&m$b.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=$i$2(this,t),$r$5(this,t);}_updateSessionFromEvent(t,r){let n=r.level==="fatal",i=false,s=r.exception?.values;if(s){i=true,n=false;for(let p of s)if(p.mechanism?.handled===false){n=true;break}}let a=t.status==="ok";(a&&t.errors===0||a&&n)&&(oe$d(t,s$e(r$d({},n&&{status:"crashed"}),{errors:t.errors||Number(i||n)})),this.captureSession(t));}async _isClientDoneProcessing(t){let r=0;for(;!t||r<t;){if(await new Promise(n=>setTimeout(n,1)),!this._numProcessing)return true;r++;}return false}_isEnabled(){return this.getOptions().enabled!==false&&this._transport!==void 0}_prepareEvent(t,r,n,i){let s=this.getOptions(),a=this.getIntegrationNames();return !r.integrations&&a.length&&(r.integrations=a),this.emit("preprocessEvent",t,r),t.type||i.setLastEventId(t.event_id||r.event_id),Yi$2(s,t,r,n,this,i).then(o=>{if(o===null)return o;this.emit("postprocessEvent",o,r),o.contexts=r$d({trace:r$d(r$d({},o.contexts?.trace),Pr$5(n))},o.contexts);let p=Gr$5(this,n);return o.sdkProcessingMetadata=r$d({dynamicSamplingContext:p},o.sdkProcessingMetadata),o})}_captureEvent(t,r={},n=L$k(),i=D$k()){return b$f&&tn$9(t)&&m$b.log(`Captured error event \`${Xt$b(t)[0]||"<unknown>"}\``),this._processEvent(t,r,n,i).then(s=>s.event_id,s=>{b$f&&(bs$2(s)?m$b.log(s.message):gs$3(s)?m$b.warn(s.message):m$b.warn(s));})}_processEvent(t,r,n,i){let s=this.getOptions(),{sampleRate:a}=s,o=Es$2(t),p=tn$9(t),u=`before send for type \`${t.type||"error"}\``,d=typeof a>"u"?void 0:di$4(a);if(p&&typeof d=="number"&&Ee$e()>d)return this.recordDroppedEvent("sample_rate","error"),Ie$9(en$9(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let v=ys$2(t.type);return this._prepareEvent(t,r,n,i).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",v),en$9("An event processor returned `null`, will not send event.");if(r.data?.__sentry__===true)return g;let S=Do$3(this,s,g,r);return Po$3(S,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",v),o){let N=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",N);}throw en$9(`${u} returned \`null\`, will not send event.`)}let y=n.getSession()||i.getSession();if(p&&y&&this._updateSessionFromEvent(y,g),o){let h=g.sdkProcessingMetadata?.spanCountBeforeProcessing||0,N=g.spans?g.spans.length:0,De=h-N;De>0&&this.recordDroppedEvent("before_send","span",De);}let S=g.transaction_info;if(o&&S&&g.transaction!==t.transaction){let h="custom";g.transaction_info=s$e(r$d({},S),{source:h});}return this.sendEvent(g,r),g}).then(null,g=>{throw bs$2(g)||gs$3(g)?g:(this.captureException(g,{mechanism:{handled:false,type:"internal"},data:{__sentry__:true},originalException:g}),Qt$b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 27Reason: ${g}`))})}_process(t,r){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===Qe$e&&this.recordDroppedEvent("queue_overflow",r),n));}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([r,n])=>{let[i,s]=r.split(":");return {reason:i,category:s,quantity:n}})}_flushOutcomes(){b$f&&m$b.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){b$f&&m$b.log("No outcomes to send");return}if(!this._dsn){b$f&&m$b.log("No dsn provided, will not send outcomes");return}b$f&&m$b.log("Sending outcomes:",t);let r=os$3(t,this._options.tunnel&&ne$e(this._dsn));this.sendEnvelope(r);}};function ys$2(e){return e==="replay_event"?"replay":e||"error"}function Po$3(e,t){let r=`${t} must return \`null\` or a valid event.`;if($$n(e))return e.then(n=>{if(!ee$9(n)&&n!==null)throw Qt$b(r);return n},n=>{throw Qt$b(`${t} rejected with ${n}`)});if(!ee$9(e)&&e!==null)throw Qt$b(r);return e}function Do$3(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=t,o=!Ai$2(t.beforeSendSpan)&&t.beforeSendSpan,p=r;if(tn$9(p)&&i)return i(p,n);if(Es$2(p)){if(o||a){let c=ps$3(p);if(a?.length&&Br$5({description:c.description,op:c.op,attributes:c.data},a))return null;if(o){let u=o(c);u?p=me$d(r,ls$2(u)):Ur$4();}if(p.spans){let u=[],d=p.spans;for(let g of d){if(a?.length&&Br$5({description:g.description,op:g.op,attributes:g.data},a)){Ei$2(d,g);continue}if(o){let y=o(g);y?u.push(y):(Ur$4(),u.push(g));}else u.push(g);}let v=p.spans.length-u.length;v&&e.recordDroppedEvent("before_send","span",v),p.spans=u;}}if(s){if(p.spans){let c=p.spans.length;p.sdkProcessingMetadata=s$e(r$d({},r.sdkProcessingMetadata),{spanCountBeforeProcessing:c});}return s(p,n)}}return p}function tn$9(e){return e.type===void 0}function Es$2(e){return e.type==="transaction"}function Mo$3(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ss$3(e.attributes)}function Uo$4(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ss$3(e.attributes)}function Ss$3(e){if(!e)return 0;let t=0;return Object.values(e).forEach(r=>{Array.isArray(r)?t+=r.length*_s$3(r[0]):K$p(r)?t+=_s$3(r):t+=100;}),t}function _s$3(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function rn$9(e,t){t.debug===true&&(b$f?m$b.enable():G$j(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");})),L$k().update(t.initialScope);let n=new e(t);return nn$8(n),n.init(),n}function nn$8(e){L$k().setClient(e);}function bt$g(e){if(!e)return {};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return {};let r=t[6]||"",n=t[8]||"";return {host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}
27function sn$9(e,t=true){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(","),a="";if(t&&s!==-1){let o=e.slice(s+1);a=o.length>10?`${o.slice(0,10)}... [truncated]`:o;}return `data:${n}${i?",base64":""}${a?`,${a}`:""}`}return e}function an$6(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs=s$e(r$d({},e.attrs),{ip_address:"{{auto}}"})):e.ipAddress===void 0&&(e.ipAddress="{{auto}}");}function Je$a(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(s=>({name:`${n}:@sentry/${s}`,version:J$n})),i.version=J$n);}var Fo$3=100;function V$k(e,t){let r=T$j(),n=D$k();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Fo$3}=r.getOptions();if(s<=0)return;let a=re$a(),o=r$d({timestamp:a},e),p=i?G$j(()=>i(o,t)):o;p!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",p,t),n.addBreadcrumb(p,s));}var Bo$3="FunctionToString",Ts$3=new WeakMap,Go$4=()=>({name:Bo$3,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r=ue$8(this),n;try{Ts$3.has(T$j())&&r!==void 0&&(n=r);}catch{}return e.apply(n??this,t)};}catch{}},setup(e){Ts$3.set(e,true);}}),xe$c=Go$4;var qo$5=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Ho$3="EventFilters",Zt$b=(e={})=>{let t;return {name:Ho$3,setup(r){let n=r.getOptions();t=Is$2(e,n);},processEvent(r,n,i){if(!t){let s=i.getOptions();t=Is$2(e,s);}return Yo$4(r,t)?null:r}}},Re$d=(e={})=>s$e(r$d({},Zt$b(e)),{name:"InboundFilters"});function Is$2(e={},t={}){return {allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:qo$5],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Yo$4(e,t){if(e.type){if(e.type==="transaction"&&Vo$3(e,t.ignoreTransactions))return b$f&&m$b.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 28Event: ${X$i(e)}`),true}else {if(Wo$4(e,t.ignoreErrors))return b$f&&m$b.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 29Event: ${X$i(e)}`),true;if($o$4(e))return b$f&&m$b.warn(`Event dropped due to not having an error message, error type or stacktrace. 30Event: ${X$i(e)}`),true;if(jo$4(e,t.denyUrls))return b$f&&m$b.warn(`Event dropped due to being matched by \`denyUrls\` option. 31Event: ${X$i(e)}. 32Url: ${Jt$c(e)}`),true;if(!zo$3(e,t.allowUrls))return b$f&&m$b.warn(`Event dropped due to not being matched by \`allowUrls\` option. 33Event: ${X$i(e)}. 34Url: ${Jt$c(e)}`),true}return false}function Wo$4(e,t){return t?.length?Xt$b(e).some(r=>de$a(r,t)):false}function Vo$3(e,t){if(!t?.length)return false;let r=e.transaction;return r?de$a(r,t):false}function jo$4(e,t){if(!t?.length)return false;let r=Jt$c(e);return r?de$a(r,t):false}function zo$3(e,t){if(!t?.length)return true;let r=Jt$c(e);return r?de$a(r,t):true}function Ko$5(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function Jt$c(e){try{let r=[...e.exception?.values??[]].reverse().find(n=>n.mechanism?.parent_id===void 0&&n.stacktrace?.frames?.length)?.stacktrace?.frames;return r?Ko$5(r):null}catch{return b$f&&m$b.error(`Cannot extract url for event ${X$i(e)}`),null}}function $o$4(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):false}function pn$9(e,t,r,n,i,s){if(!i.exception?.values||!s||!ae$c(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=on$8(e,t,n,s.originalException,r,i.exception.values,a,0));}function on$8(e,t,r,n,i,s,a,o){if(s.length>=r+1)return s;let p=[...s];if(ae$c(n[i],Error)){As$2(a,o,n);let c=e(t,n[i]),u=p.length;Os$2(c,i,u,o),p=on$8(e,t,r,n[i],i,[c,...p],c,u);}
34return xs$2(n)&&n.errors.forEach((c,u)=>{if(ae$c(c,Error)){As$2(a,o,n);let d=e(t,c),v=p.length;Os$2(d,`errors[${u}]`,v,o),p=on$8(e,t,r,c,i,[d,...p],d,v);}}),p}function xs$2(e){return Array.isArray(e.errors)}function As$2(e,t,r){e.mechanism=s$e(r$d(r$d({handled:true,type:"auto.core.linked_errors"},xs$2(r)&&{is_exception_group:true}),e.mechanism),{exception_id:t});}function Os$2(e,t,r,n){e.mechanism=s$e(r$d({handled:true},e.mechanism),{type:"chained",source:t,exception_id:r,parent_id:n});}function Xo$5(e){return Z$g(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function er$7(e){return Xo$5(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Rs$3=new Set([]);function ln$9(e){let t="console",r=M$k(t,e);return U$i(t,Qo$5),r}var Ns$2=new Set;function Qo$5(){"console"in f$g&&xt$c.forEach(function(e){Ns$2.has(e)||!(e in f$g.console)||(Ns$2.add(e),O$q(f$g.console,e,function(t){return ve$d[e]=t,function(...r){let n=r[0],i=ve$d[e],s=Rs$3.size&&typeof n=="string"&&de$a(n,Rs$3);s||R$g("console",{args:r,level:e}),(!s||b$f&&m$b.isEnabled())&&i?.apply(f$g.console,r);}}));});}function cn$9(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var Jo$4="Dedupe",Zo$4=()=>{let e;return {name:Jo$4,processEvent(t){if(t.type)return t;try{if(ep$1(t,e))return b$f&&m$b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Ne$e=Zo$4;function ep$1(e,t){return t?!!(tp$1(e,t)||rp$1(e,t)):false}function tp$1(e,t){let r=e.message,n=t.message;return !(!r&&!n||r&&!n||!r&&n||r!==n||!Cs$2(e,t)||!ws$2(e,t))}function rp$1(e,t){let r=ks$2(t),n=ks$2(e);return !(!r||!n||r.type!==n.type||r.value!==n.value||!Cs$2(e,t)||!ws$2(e,t))}function ws$2(e,t){let r=kt$d(e),n=kt$d(t);if(!r&&!n)return true;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return false;for(let i=0;i<n.length;i++){let s=n[i],a=r[i];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return false}return true}function Cs$2(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return true;if(r&&!n||!r&&n)return false;r=r,n=n;try{return r.join("")===n.join("")}catch{return false}}function ks$2(e){return e.exception?.values?.[0]}var np$1="ConversationId",ip$1=()=>({name:np$1,setup(e){e.on("spanStart",t=>{let r=L$k().getScopeData(),n=D$k().getScopeData(),i=r.conversationId||n.conversationId;if(i){let{op:s,data:a,description:o}=pe$e(t);if(!s?.startsWith("gen_ai.")&&!a["ai.operationId"]&&!o?.startsWith("ai."))return;t.setAttribute(Mr$7,i);}});}}),Ze$h=ip$1;function tr$7(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var ft$c=f$g;function un$9(){return "history"in ft$c&&!!ft$c.history}function sp$1(){if(!("fetch"in ft$c))return false;try{return new Headers,new Request("data:,"),new Response,!0}catch{return false}}function yt$e(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function dn$9(){if(typeof EdgeRuntime=="string")return true;if(!sp$1())return false;if(yt$e(ft$c.fetch))return true;let e=false,t=ft$c.document;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=yt$e(r.contentWindow.fetch)),t.head.removeChild(r);}catch(r){b$f&&m$b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r);}return e}function mn$9(e,t){let r="fetch",n=M$k(r,e);return U$i(r,()=>ap$1(void 0,t)),n}function ap$1(e,t=false){t&&!dn$9()||O$q(f$g,"fetch",function(r){return function(...n){let i=new Error,{method:s,url:a}=op$1(n),o={args:n,fetchData:{method:s,url:a},startTimestamp:B$p()*1e3,virtualError:i,headers:pp$1(n)};return R$g("fetch",r$d({},o)),r.apply(f$g,n).then(async p=>(R$g("fetch",s$e(r$d({},o),{endTimestamp:B$p()*1e3,response:p})),p),p=>{R$g("fetch",s$e(r$d({},o),{endTimestamp:B$p()*1e3,error:p})),Z$g(p)&&p.stack===void 0&&(p.stack=i.stack,F$i(p,"framesToPop",1));let u=T$j()?.getOptions().enhanceFetchErrorMessages??"always";if(u!==false&&p instanceof TypeError&&(p.message==="Failed to fetch"||p.message==="Load failed"||p.message==="NetworkError when attempting to fetch resource."))try{let g=new URL(o.fetchData.url).host;u==="always"?p.message=`${p.message} (${g})`:F$i(p,"__sentry_fetch_url_host__",g);}catch{}throw p}
34)}});}function rr$8(e,t){return se$e(e)&&!!e[t]}function Ls$2(e){return typeof e=="string"?e:e?rr$8(e,"url")?e.url:e.toString?e.toString():"":""}function op$1(e){if(e.length===0)return {method:"GET",url:""};if(e.length===2){let[r,n]=e;return {url:Ls$2(r),method:rr$8(n,"method")?String(n.method).toUpperCase():vr$8(r)&&rr$8(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return {url:Ls$2(t),method:rr$8(t,"method")?String(t.method).toUpperCase():"GET"}}function pp$1(e){let[t,r]=e;try{if(typeof r=="object"&&r!==null&&"headers"in r&&r.headers)return new Headers(r.headers);if(vr$8(t))return new Headers(t.headers)}catch{}}var Ps$1=f$g;function ke$a(){try{return Ps$1.document.location.href}catch{return ""}}function gn$9(e,t=5){if(!Ps$1.HTMLElement)return null;let r=e;for(let n=0;n<t;n++){if(!r)return null;if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode;}return null}var E$k=f$g,bn$8=0;function fn$a(){return bn$8>0}function Cp$1(){bn$8++,setTimeout(()=>{bn$8--;});}function Ce$b(e,t={}){function r(i){return typeof i=="function"}if(!r(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let s=e.__sentry_wrapped__;return typeof s=="function"?s:e}if(ue$8(e))return e}catch{return e}let n=function(...i){f$g._sentryWrappedDepth=(f$g._sentryWrappedDepth||0)+1;try{let s=i.map(a=>Ce$b(a,t));return e.apply(this,s)}catch(s){throw Cp$1(),Ye$d(a=>{a.addEventProcessor(o=>(t.mechanism&&(Te$f(o,void 0),W$p(o,t.mechanism)),o.extra=s$e(r$d({},o.extra),{arguments:i}),o)),Ke$e(s);}),s}finally{f$g._sentryWrappedDepth=(f$g._sentryWrappedDepth||0)-1;}};try{for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);}catch{}nt$e(n,e),F$i(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}});}catch{}return n}function yn$9(){let e=ke$a(),{referrer:t}=E$k.document||{},{userAgent:r}=E$k.navigator||{},n=r$d(r$d({},t&&{Referer:t}),r&&{"User-Agent":r});return {url:e,headers:n}}function nr$7(e,t){let r=ir$a(e,t),n={type:Up$1(t),value:Fp$1(t)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function Lp$1(e,t,r,n){let s=T$j()?.getOptions().normalizeDepth,a=qp$1(t),o={__serialized__:Pt$a(t,s)};if(a)return {exception:{values:[nr$7(e,a)]},extra:o};let p={exception:{values:[{type:ce$a(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:Bp$2(t,{isUnhandledRejection:n})}]},extra:o};if(r){let c=ir$a(e,r);c.length&&(p.exception.values[0].stacktrace={frames:c});}return p}function _n$7(e,t){return {exception:{values:[nr$7(e,t)]}}}function ir$a(e,t){let r=t.stacktrace||t.stack||"",n=Dp$1(t),i=Mp$1(t);try{return e(r,n,i)}catch{}return []}var Pp$1=/Minified React error #\d+;/i;function Dp$1(e){return e&&Pp$1.test(e.message)?1:0}function Mp$1(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Ds$3(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:false}function Up$1(e){let t=e?.name;return !t&&Ds$3(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Fp$1(e){let t=e?.message;return Ds$3(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?er$7(t.error):er$7(e):"No error message"}function Ms$2(e,t,r,n){let i=r?.syntheticException||void 0,s=sr$7(e,t,i,n);return W$p(s),s.level="error",r?.event_id&&(s.event_id=r.event_id),ie$f(s)}function Us$2(e,t,r="info",n,i){let s=n?.syntheticException||void 0,a=hn$8(e,t,s,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),ie$f(a)}function sr$7(e,t,r,n,i){let s;if(Fe$e(t)&&t.error)return _n$7(e,t.error);if(rt$b(t)||wt$h(t)){let a=t;if("stack"in t){s=_n$7(e,t);let o=s.exception?.values?.[0];if(n&&r&&o&&!o.stacktrace){let p=ir$a(e,r);p.length&&(o.stacktrace={frames:p},W$p(s,{synthetic:true}));}}else {let o=a.name||(rt$b(a)?"DOMError":"DOMException"),p=a.message?`${o}: ${a.message}`:o;s=hn$8(e,p,r,n),Te$f(s,p);}return "code"in a&&(s.tags=s$e(r$d({},s.tags),{"DOMException.code":`${a.code}`})),s}return Z$g(t)?_n$7(e,t):ee$9(t)||ce$a(t)?(s=Lp$1(e,t,r,i),W$p(s,{synthetic:true}),s):(s=hn$8(e,t,r,n),Te$f(s,`${t}`),W$p(s,{synthetic:true}),s)}function hn$8(e,t,r,n){let i={};if(n&&r){let s=ir$a(e,r);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),W$p(i,{synthetic:true});}
34if(le$c(t)){let{__sentry_template_string__:s,__sentry_template_values__:a}=t;return i.logentry={message:s,params:a},i}return i.message=t,i}function Bp$2(e,{isUnhandledRejection:t}){let r=Lt$c(e),n=t?"promise rejection":"exception";return Fe$e(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:ce$a(e)?`Event \`${Gp$1(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function Gp$1(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function qp$1(e){return Object.values(e).find(t=>t instanceof Error)}var ar$7=class ar extends gt$e{constructor(t){let r=Hp$1(t),n=E$k.SENTRY_SDK_SOURCE||Jr$5();Je$a(r,"browser",["browser"],n),super(r);let{userInfo:i}=this.getDataCollectionOptions();r._metadata?.sdk&&(r._metadata.sdk.settings=r$d({infer_ip:i?"auto":"never"},r._metadata.sdk.settings));let{sendClientReports:s}=this._options;E$k.document&&E$k.document.addEventListener("visibilitychange",()=>{E$k.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush();}));}),i&&this.on("beforeSendSession",an$6);}eventFromException(t,r){return Ms$2(this._options.stackParser,t,r,this._options.attachStacktrace)}eventFromMessage(t,r="info",n){return Us$2(this._options.stackParser,t,r,n,this._options.attachStacktrace)}_prepareEvent(t,r,n,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,r,n,i)}};function Hp$1(e){return r$d({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:E$k.SENTRY_RELEASE?.id,sendClientReports:true,parentSpanIsAlwaysRootSpan:true},e)}var Fs$2=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var I$i=f$g;function vn$8(e,t,r){I$i.document&&I$i.addEventListener(e,t,r);}function En$8(e,t,r){I$i.document&&I$i.removeEventListener(e,t,r);}var Bs$1=e=>{let t=false;return ()=>{t||(e(),t=true);}};var Sn$7=e=>{let t=I$i.requestIdleCallback||I$i.setTimeout;I$i.document?.visibilityState==="hidden"?e():(e=Bs$1(e),vn$8("visibilitychange",e,{once:true,capture:true}),vn$8("pagehide",e,{once:true,capture:true}),t(()=>{e(),En$8("visibilitychange",e,{capture:true}),En$8("pagehide",e,{capture:true});}));};var Yp$1=80,Le$e={};try{typeof Node<"u"&&(Le$e.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(Le$e.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,Le$e.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,Le$e.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,Le$e.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(Le$e.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get);}catch{}function fe$c(e,t,r){let n=Le$e[t];if(n)try{return n.call(e,r)}catch{}let i=e[t];return typeof i=="function"?i.call(e,r):i}function _t$f(e,t={}){if(!e)return "<unknown>";try{let r=e,n=5,i=[],s=0,a=0,o=" > ",p=o.length,c,u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Yp$1;for(;r&&s++<n&&(c=Wp$1(r,u),!(c==="html"||s>1&&a+i.length*p+c.length>=d));)i.push(c),a+=c.length,r=fe$c(r,"parentNode");return i.reverse().join(o)}catch{return "<unknown>"}}function Wp$1(e,t){let r=[],n=fe$c(e,"tagName");if(!n)return "";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){let s=fe$c(e,"dataset");if(s){if(s.sentryComponent)return s.sentryComponent;if(s.sentryElement)return s.sentryElement}}r.push(n.toLowerCase());let i=t?.length?t.filter(s=>fe$c(e,"getAttribute",s)).map(s=>[s,fe$c(e,"getAttribute",s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`);});else {let s=fe$c(e,"id");s&&r.push(`#${s}`);let a=fe$c(e,"className");if(a&&C$9(a)){let o=a.split(/\s+/);for(let p of o)r.push(`.${p}`);}}for(let s of ["aria-label","type","name","title","alt"]){let a=fe$c(e,"getAttribute",s);a&&r.push(`[${s}="${a}"]`);}return r.join("")}var Vp$1=1e3,Gs$2,Tn$7,In$8;function An$7(e){M$k("dom",e),U$i("dom",jp$1);}function jp$1(){if(!I$i.document)return;let e=R$g.bind(null,"dom"),t=qs$2(e,true);I$i.document.addEventListener("click",t,false),I$i.document.addEventListener("keypress",t,false),["EventTarget","Node"].forEach(r=>{let i=I$i[r]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(O$q(i,"addEventListener",function(s){return function(a,o,p){if(a==="click"||a=="keypress")try{let c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=c[a]=c[a]||{refCount:0};if(!u.handler){let d=qs$2(e);u.handler=d,s.call(this,a,d,p);}u.refCount++;}catch{}return s.call(this,a,o,p)}}),O$q(i,"removeEventListener",function(s){return function(a,o,p){if(a==="click"||a=="keypress")try{let c=this.__sentry_instrumentation_handlers__||{},u=c[a];u&&(u.refCount--,u.refCount<=0&&(s.call(this,a,u.handler,p),u.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete this.__sentry_instrumentation_handlers__);}catch{}return s.call(this,a,o,p)}}));});}function zp$1(e){if(e.type!==Tn$7)return false;try{if(!e.target||e.target._sentryId!==In$8)return !1}catch{}return true}function Kp$1(e,t){return e!=="keypress"?false:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):true}function qs$2(e,t=false){return r=>{if(!r||r._sentryCaptured)return;let n=$p$1(r);if(Kp$1(r.type,n))return;F$i(r,"_sentryCaptured",true),n&&!n._sentryId&&F$i(n,"_sentryId",x$l());
34let i=r.type==="keypress"?"input":r.type;zp$1(r)||(e({event:r,name:i,global:t}),Tn$7=r.type,In$8=n?n._sentryId:void 0),clearTimeout(Gs$2),Gs$2=I$i.setTimeout(()=>{In$8=void 0,Tn$7=void 0;},Vp$1);}}function $p$1(e){try{return e.target}catch{return null}}var or$6;function ht$d(e){let t="history";M$k(t,e),U$i(t,Xp$1);}function Xp$1(){if(I$i.addEventListener("popstate",()=>{let t=I$i.location.href,r=or$6;if(or$6=t,r===t)return;R$g("history",{from:r,to:t});}),!un$9())return;function e(t){return function(...r){let n=r.length>2?r[2]:void 0;if(n){let i=or$6,s=Qp$1(String(n));if(or$6=s,i===s)return t.apply(this,r);R$g("history",{from:i,to:s});}return t.apply(this,r)}}O$q(I$i.history,"pushState",e),O$q(I$i.history,"replaceState",e);}function Qp$1(e){try{return new URL(e,I$i.location.origin).toString()}catch{return e}}var pr$8={};function On$6(e){let t=pr$8[e];if(t)return t;let r=I$i[e];if(yt$e(r))return pr$8[e]=r.bind(I$i);let n=I$i.document;if(n&&typeof n.createElement=="function")try{let i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);let s=i.contentWindow;s?.[e]&&(r=s[e]),n.head.removeChild(i);}catch(i){Fs$2&&m$b.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i);}return r&&(pr$8[e]=r.bind(I$i))}function xn$5(e){pr$8[e]=void 0;}var Pe$c="__sentry_xhr_v3__";function Rn$6(e){M$k("xhr",e),U$i("xhr",Jp$1);}function Jp$1(){if(!I$i.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,r,n){let i=new Error,s=B$p()*1e3,a=C$9(n[0])?n[0].toUpperCase():void 0,o=Zp$1(n[1]);if(!a||!o)return t.apply(r,n);r[Pe$c]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(r.__sentry_own_request__=true);let p=()=>{let c=r[Pe$c];if(c&&r.readyState===4){try{c.status_code=r.status;}catch{}let u={endTimestamp:B$p()*1e3,startTimestamp:s,xhr:r,virtualError:i};R$g("xhr",u),r.removeEventListener("readystatechange",p);}};return "onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(c,u,d){return p(),c.apply(u,d)}}):r.addEventListener("readystatechange",p),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(c,u,d){let[v,g]=d,y=u[Pe$c];return y&&C$9(v)&&C$9(g)&&(y.request_headers[v.toLowerCase()]=g),c.apply(u,d)}}),t.apply(r,n)}}),e.send=new Proxy(e.send,{apply(t,r,n){let i=r[Pe$c];if(!i)return t.apply(r,n);n[0]!==void 0&&(i.body=n[0]);let s={startTimestamp:B$p()*1e3,xhr:r};return R$g("xhr",s),t.apply(r,n)}});}function Zp$1(e){if(C$9(e))return e;try{return e.toString()}catch{}}function Nn$8(e){if(typeof Element>"u")return false;try{return e instanceof Element}catch{return false}}var el$1=40;function Hs$2(e,t=On$6("fetch")){let r=0,n=0;async function i(s){let a=s.body.length;r+=a,n++;let o=r$d({body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15},e.fetchOptions);try{let p=await t(e.url,o);return {statusCode:p.status,headers:{"x-sentry-rate-limits":p.headers.get("X-Sentry-Rate-Limits"),"retry-after":p.headers.get("Retry-After")}}}catch(p){throw xn$5("fetch"),p}finally{r-=a,n--;}}return $t$c(e,i,Oe$c(e.bufferSize||el$1))}var ye$e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var tl$1=30;var rl$1=50;function kn$5(e,t,r,n){let i={filename:e,function:t==="<anonymous>"?"?":t,in_app:true};return r!==void 0&&(i.lineno=r),n!==void 0&&(i.colno=n),i}var nl$2=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,il$1=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,sl$1=/\((\S*)(?::(\d+))(?::(\d+))\)/,al$1=/at (.+?) ?\(data:(.+?),/,ol$1=e=>{let t=e.match(al$1);if(t)return {filename:`<data:${t[2]}>`,function:t[1]};let r=nl$2.exec(e);if(r){let[,i,s,a]=r;return kn$5(i,"?",+s,+a)}let n=il$1.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let o=sl$1.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3]);}let[s,a]=Ws$2(n[1]||"?",n[2]);return kn$5(a,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},pl=[tl$1,ol$1],ll$1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cl$1=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ul=e=>{let t=ll$1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let s=cl$1.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="");}let n=t[3],i=t[1]||"?";return [i,n]=Ws$2(i,n),kn$5(n,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},dl$2=[rl$1,ul];var ml$1=[pl,dl$2],Ys$2=Nt$d(...ml$1),Ws$2=(e,t)=>{let r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var lr$7=1024,gl="Breadcrumbs",bl=(e={})=>{let t=r$d({console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true},e);return {name:gl,setup(r){t.console&&ln$9(_l(r)),t.dom&&An$7(yl(r,t.dom)),t.xhr&&Rn$6(hl(r)),t.fetch&&mn$9(vl(r)),t.history&&ht$d(El(r)),t.sentry&&r.on("beforeSendEvent",fl$1(r));}}},vt$c=bl;function fl$1(e){return function(r){T$j()===e&&V$k({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:X$i(r)},{event:r});}}
vendor: 5,028 bytes, line 34
34function yl(e,t){return function(n){if(T$j()!==e)return;let i,s,a=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>lr$7&&(ye$e&&m$b.warn(`\`dom.maxStringLength\` cannot exceed ${lr$7}, but a value of ${o} was configured. Sentry will use ${lr$7} instead.`),o=lr$7),typeof a=="string"&&(a=[a]);try{let c=n.event,u=Sl(c)?c.target:c;i=_t$f(u,{keyAttrs:a,maxStringLength:o}),s=gn$9(u);}catch{i="<unknown>";}if(i.length===0)return;let p={category:`ui.${n.name}`,message:i};s&&(p.data={"ui.component_name":s}),V$k(p,{event:n.event,name:n.name,global:n.global});}}function _l(e){return function(r){if(T$j()!==e)return;let n={category:"console",data:{arguments:r.args,logger:"console"},level:cn$9(r.level),message:Dt$c(r.args," ")};if(r.level==="assert")if(r.args[0]===false)n.message=`Assertion failed: ${Dt$c(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;V$k(n,{input:r.args,level:r.level});}}function hl(e){return function(r){if(T$j()!==e)return;let{startTimestamp:n,endTimestamp:i}=r,s=r.xhr[Pe$c];if(!n||!i||!s)return;let{method:a,url:o,status_code:p,body:c}=s,u={method:a,url:o,status_code:p},d={xhr:r.xhr,input:c,startTimestamp:n,endTimestamp:i},v={category:"xhr",data:u,type:"http",level:tr$7(p)};e.emit("beforeOutgoingRequestBreadcrumb",v,d),V$k(v,d);}}function vl(e){return function(r){if(T$j()!==e)return;let{startTimestamp:n,endTimestamp:i}=r;if(i&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){let s={data:r.error,input:r.args,startTimestamp:n,endTimestamp:i},a={category:"fetch",data:r.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,s),V$k(a,s);}else {let s=r.response,a=s$e(r$d({},r.fetchData),{status_code:s?.status}),o={input:r.args,response:s,startTimestamp:n,endTimestamp:i},p={category:"fetch",data:a,type:"http",level:tr$7(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",p,o),V$k(p,o);}}}function El(e){return function(r){if(T$j()!==e)return;let n=r.from,i=r.to,s=bt$g(E$k.location.href),a=n?bt$g(n):void 0,o=bt$g(i);a?.path||(a=s),s.protocol===o.protocol&&s.host===o.host&&(i=o.relative),s.protocol===a.protocol&&s.host===a.host&&(n=a.relative),V$k({category:"navigation",data:{from:n,to:i}});}}function Sl(e){return !!e&&!!e.target}var Tl="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),Il="BrowserApiErrors",Al=(e={})=>{let t=r$d({XMLHttpRequest:true,eventTarget:true,requestAnimationFrame:true,setInterval:true,setTimeout:true,unregisterOriginalCallbacks:false},e);return {name:Il,setupOnce(){t.setTimeout&&O$q(E$k,"setTimeout",Vs$2),t.setInterval&&O$q(E$k,"setInterval",Vs$2),t.requestAnimationFrame&&O$q(E$k,"requestAnimationFrame",Ol),t.XMLHttpRequest&&"XMLHttpRequest"in E$k&&O$q(XMLHttpRequest.prototype,"send",xl);let r=t.eventTarget;r&&(Array.isArray(r)?r:Tl).forEach(i=>Rl(i,t));}}},js$1=Al;function Vs$2(e){return function(...t){let r=t[0];return t[0]=Ce$b(r,{mechanism:{handled:false,type:`auto.browser.browserapierrors.${H$k(e)}`}}),e.apply(this,t)}}function Ol(e){return function(t){return e.apply(this,[Ce$b(t,{mechanism:{data:{handler:H$k(e)},handled:false,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function xl(e){return function(...t){let r=this;return ["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in r&&typeof r[i]=="function"&&O$q(r,i,function(s){let a={mechanism:{data:{handler:H$k(s)},handled:false,type:`auto.browser.browserapierrors.xhr.${i}`}},o=ue$8(s);return o&&(a.mechanism.data.handler=H$k(o)),Ce$b(s,a)});}),e.apply(this,t)}}function Rl(e,t){let n=E$k[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(O$q(n,"addEventListener",function(i){return function(s,a,o){try{Nl(a)&&(a.handleEvent=Ce$b(a.handleEvent,{mechanism:{data:{handler:H$k(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}));}catch{}return t.unregisterOriginalCallbacks&&kl(this,s,a),i.apply(this,[s,Ce$b(a,{mechanism:{data:{handler:H$k(a),target:e},handled:false,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),O$q(n,"removeEventListener",function(i){return function(s,a,o){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){let p=a.__sentry_wrapped__;p&&i.call(this,s,p,o);}}catch{}return i.call(this,s,a,o)}}));}function Nl(e){return typeof e.handleEvent=="function"}function kl(e,t,r){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,r);}var Et$c=(e={})=>{let t=e.lifecycle??"route";return {name:"BrowserSession",setupOnce(){if(typeof E$k.document>
34"u"){ye$e&&m$b.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}dt$c({ignoreDuration:true});let r=false;Sn$7(()=>{r||($e$d(),r=true);});let n=D$k(),i=n.getUser();n.addScopeListener(s=>{let a=s.getUser();(i?.id!==a?.id||i?.ip_address!==a?.ip_address)&&(i=a,r&&$e$d());}),t==="route"&&ht$d(({from:s,to:a})=>{s!==a&&(dt$c({ignoreDuration:true}),$e$d(),r=true);});}}};var wl="CultureContext",Cl=()=>({name:wl,preprocessEvent(e){let t=zs$2();t&&(e.contexts=s$e(r$d({},e.contexts),{culture:r$d(r$d({},t),e.contexts?.culture)}));},processSegmentSpan(e){let t=zs$2();t&<$d(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar});}}),St$d=Cl;function zs$2(){try{let e=E$k.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return {locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Ll="GlobalHandlers",Pl=(e={})=>{let t=r$d({onerror:true,onunhandledrejection:true},e);return {name:Ll,setupOnce(){Error.stackTraceLimit=50;},setup(r){t.onerror&&(Dl(r),Ks$1("onerror")),t.onunhandledrejection&&(Ml(r),Ks$1("onunhandledrejection"));}}},Tt$f=Pl;function Dl(e){yr$7(t=>{let{stackParser:r,attachStacktrace:n}=$s$2();if(T$j()!==e||fn$a())return;let{msg:i,url:s,line:a,column:o,error:p}=t,c=Bl(sr$7(r,p||i,void 0,n,false),s,a,o);c.level="error",ut$f(c,{originalException:p,mechanism:{handled:false,type:"auto.browser.global_handlers.onerror"}});});}function Ml(e){hr$7(t=>{let{stackParser:r,attachStacktrace:n}=$s$2();if(T$j()!==e||fn$a())return;let i=Ul(t),s=K$p(i)?Fl$1(i):sr$7(r,i,void 0,n,true);s.level="error",ut$f(s,{originalException:i,mechanism:{handled:false,type:"auto.browser.global_handlers.onunhandledrejection"}});});}function Ul(e){if(K$p(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Fl$1(e){return {exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Bl(e,t,r,n){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},p=o.frames=o.frames||[];return p.length===0&&p.push({colno:n,lineno:r,filename:Gl(t)??ke$a(),function:"?",in_app:true}),e}function Ks$1(e){ye$e&&m$b.log(`Global Handler attached: ${e}`);}function $s$2(){return T$j()?.getOptions()||{stackParser:()=>[],attachStacktrace:false}}function Gl(e){if(!(!C$9(e)||e.length===0))return e.startsWith("data:")?`<${sn$9(e,false)}>`:e}var It$c=()=>({name:"HttpContext",preprocessEvent(e){if(!E$k.navigator&&!E$k.location&&!E$k.document)return;let t=yn$9(),r=r$d(r$d({},t.headers),e.request?.headers);e.request=s$e(r$d(r$d({},t),e.request),{headers:r});},processSegmentSpan(e){let t=e.attributes?.[Ve$e];if(!E$k.navigator&&!E$k.location&&!E$k.document)return;let r=yn$9();lt$d(e,{[Mi$1]:t!=="http.client"?r.url:void 0,"http.request.header.user_agent":r.headers["User-Agent"],"http.request.header.referer":r.headers.Referer});}});var ql="cause",Hl=5,Yl="LinkedErrors",Wl=(e={})=>{let t=e.limit||Hl,r=e.key||ql;return {name:Yl,preprocessEvent(n,i,s){let a=s.getOptions();pn$9(nr$7,a.stackParser,r,t,n,i);}}},At$a=Wl;var Vl=/^HTML(\w*)Element$/;function Xs$1(e){if(typeof window<"u"&&e===window)return "[Window]";if(typeof document<"u"&&e===document)return "[Document]";if(Nn$8(e)){let t=jl$1(e);if(Vl.test(t))return `[HTMLElement: ${_t$f(e)}]`}}function jl$1(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Qs$1(){return zl()?(ye$e&&G$j(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/");}),true):false}function zl(){if(typeof E$k.window>"u")return false;let e=E$k;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return false;let r=ke$a();return !(E$k===E$k.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}function Js$2(e){return [Re$d(),xe$c(),Ze$h(),js$1(),vt$c(),Tt$f(),At$a(),Ne$e(),It$c(),St$d(),Et$c()]}function wn$7(e={}){let t=!e.skipBrowserExtensionCheck&&Qs$1(),r=e.defaultIntegrations==null?Js$2():e.defaultIntegrations,n=s$e(r$d({},e),{enabled:t?false:e.enabled,stackParser:br$8(e.stackParser||Ys$2),integrations:Kr$5({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||Hs$2});return Tr$7(Xs$1),rn$9(ar$7,n)}var Xl=typeof __SENTRY_DEBUG__>"u"?true:__SENTRY_DEBUG__;function Ql(e={}){return [Re$d(),xe$c(),Ze$h(),vt$c(),Tt$f(),At$a(),Ne$e(),It$c(),St$d(),Et$c()]}function vE(e){let t=r$d({defaultIntegrations:Ql()},e);return Je$a(t,"angular"),Jl(),wn$7(t)}function Jl(){let t=Vp$2?.major&&parseInt(Vp$2.major,10);t&&(t<14&&Xl&&m$b.warn(`This Sentry SDK does not officially support Angular ${t}.`,"This SDK only supports Angular 14 and above.","If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.","Otherwise, please consider upgrading your Angular version."),jt$e("angular",{version:t}));}typeof Zone<"u"&&Zone.root?.run;var w$i=A$j(ea$2());var OE=new b$g("sse host"),xE=new b$g("client host"),RE=new b$g("current app version"),NE=new b$g("csp option"),kE=new b$g("is admin");var wE=new b$g("internal beta"),CE=new b$g("extended beta"),LE=new b$g("agent platform enabled"),PE=new b$g("account locked"),DE=new b$g("custom agents enabled"),ME=new b$g("agents custom label"),UE=new b$g("is production"),ta$2=new b$g("loglevel"),FE=new b$g("is demo view stream"),BE=new b$g("is admin in preview stream"),GE=new b$g("community search available stream"),qE=new b$g("community search spaces stream");var Zl=new Set(["path","schoolId","tenantId","code","platform","phase","reason"]),ec$1=200,KE={trace:(e,...t)=>w$i.default.trace(e,...t),debug:(e,...t)=>w$i.default.debug(e,...t),info:(e,...t)=>w$i.default.info(e,...t),warn:(e,...t)=>w$i.default.warn(e,...t),error:(e,...t)=>w$i.default.error(e,...t)},$E=(()=>{class e{constructor(){this._logLevel=g$k(ta$2),this._init(this._logLevel);}_init(r){w$i.default.setLevel(r||w$i.default.levels.DEBUG);let n=w$i.default.methodFactory;w$i.default.methodFactory=(i,s,a)=>{let o=n(i,s,a),p=c=>{if(c==null)return String(c);if(c instanceof Error)return c.stack??`${c.name}: ${c.message}`;if(typeof c=="object")try{return JSON.stringify(c)}catch{return "[unserializable]"}return String(c)};return (c,...u)=>{let d=new Date().toISOString(),v=u.length>0?` ${u.map(p).join(" ")}`:"";o(`[${d}] [${i.toUpperCase()}] ${p(c)}${v}`);}},w$i.default.rebuild();}trace(r,...n){w$i.default.trace(r,...n);}debug(r,...n){w$i.default.debug(r,...n);}info(r,...n){w$i.default.info(r,...n),e._addSentryBreadcrumb("info",r,n);}warn(r,...n){w$i.default.warn(r,...n),e._addSentryBreadcrumb("warning",r,n);}error(r,...n){w$i.default.error(r,...n),e._captureToSentry(r,n);}static _captureToSentry(r,n){try{let i=n.find(s=>s instanceof Error);Ye$d(s=>{let a=e._mergeStructuredArgs(n);for(let[o,p]of Object.entries(a))Zl.has(o)&&p!==void 0?s.setTag(o,String(p).substring(0,ec$1)):s.setExtra(o,p);
34s.setLevel("error"),i?Ke$e(i):Vt$b(typeof r=="string"?r:String(r));});}catch{}}static _addSentryBreadcrumb(r,n,i){try{V$k({level:r,category:"logger",message:typeof n=="string"?n:String(n),data:e._mergeStructuredArgs(i)});}catch{}}static _mergeStructuredArgs(r){let n={},i=0;for(let s of r)if(s!=null&&!(s instanceof Error)){if(typeof s=="object"){for(let[a,o]of Object.entries(s))n[a]=o;continue}n[`arg${i}`]=s,i+=1;}return n}setLevel(r){w$i.default.info(`Log level changed to: ${r}`),w$i.default.setLevel(r);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})(); 35var te$a=class te{_doc;constructor(t){this._doc=t;}manager},me$c=(()=>{class n extends te$a{constructor(e){super(e);}supports(e){return true}addEventListener(e,r,o,s){return e.addEventListener(r,o,s),()=>this.removeEventListener(e,r,o,s)}removeEventListener(e,r,o,s){return e.removeEventListener(r,o,s)}static \u0275fac=function(r){return new(r||n)(G$k(Te$g))};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})(),Te$e=new b$g(""),Je$9=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this;});let o=e.filter(i=>!(i instanceof me$c));this._plugins=o.slice().reverse();let s=e.find(i=>i instanceof me$c);s&&this._plugins.push(s);}addEventListener(e,r,o,s){return this._findPluginFor(r).addEventListener(e,r,o,s)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(s=>s.supports(e)),!r)throw new D$l(-5101,false);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||n)(G$k(Te$e),G$k(ge$b))};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})(),ze$e="ng-app-id";function kt$c(n){for(let t of n)t.remove();}function Lt$b(n,t){let e=t.createElement("style");return e.textContent=n,e}function fr$6(n,t,e,r){let o=n.head?.querySelectorAll(`style[${ze$e}="${t}"],link[${ze$e}="${t}"]`);if(!o||o.length===0)return false;for(let s of o)s.removeAttribute(ze$e),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]});return true}function Xe$9(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var Ge$a=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,o,s={}){this.doc=e,this.appId=r,this.nonce=o,fr$6(e,r,this.inline,this.external)&&this.hosts.add(e.head);}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,Lt$b);r?.forEach(o=>this.addUsage(o,this.external,Xe$9));}removeStyles(e,r){for(let o of e)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(e,r,o){let s=r.get(e);s?s.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))});}removeUsage(e,r){let o=r.get(e);o&&(o.usage--,o.usage<=0&&(kt$c(o.elements),r.delete(e)));}ngOnDestroy(){for(let[,{elements:e}]of [...this.inline,...this.external])kt$c(e);this.hosts.clear();}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,Lt$b(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,Xe$9(r,this.doc)));}}removeHost(e){this.hosts.delete(e);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let s of r.elements)s.parentNode===e?s.remove():o.push(s);r.elements=o;}}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||n)(G$k(Te$g),G$k(Xt$c),G$k(RC$1,8),G$k(AC$1))};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})(),Ve$d={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"},Ye$c=/%COMP%/g;var Ft$a="%COMP%",hr$6=`_nghost-${Ft$a}`,pr$7=`_ngcontent-${Ft$a}`,gr$7=true,yr$6=new b$g("",{factory:()=>gr$7});function mr$6(n){return pr$7.replace(Ye$c,n)}function vr$7(n){return hr$6.replace(Ye$c,n)}function jt$d(n,t){return t.map(e=>e.replace(Ye$c,n))}var We$d=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,o,s,i,c,a=null,d=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=c,this.nonce=a,this.tracingService=d,this.defaultRenderer=new re$9(e,i,c,this.tracingService);}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);
vendor: 4,660 bytes, line 35
35return o instanceof Ee$d?o.applyToHost(e):o instanceof ne$d&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let i=this.doc,c=this.ngZone,a=this.eventManager,d=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.tracingService;switch(r.encapsulation){case Vn$9.Emulated:s=new Ee$d(a,d,r,this.appId,l,i,c,h);break;case Vn$9.ShadowDom:return new ve$c(a,e,r,i,c,this.nonce,h,d);case Vn$9.ExperimentalIsolatedShadowDom:return new ve$c(a,e,r,i,c,this.nonce,h);default:s=new ne$d(a,d,r,l,i,c,h);break}o.set(r.id,s);}return s}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(e){this.rendererByCompId.delete(e);}static \u0275fac=function(r){return new(r||n)(G$k(Je$9),G$k(Wy),G$k(Xt$c),G$k(yr$6),G$k(Te$g),G$k(ge$b),G$k(RC$1),G$k(qn$8,8))};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})(),re$9=class re{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,e,r,o){this.eventManager=t,this.doc=e,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(Ve$d[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Ut$c(t)?t.content:t).appendChild(e);}insertBefore(t,e,r){t&&(Ut$c(t)?t.content:t).insertBefore(e,r);}removeChild(t,e){e.remove();}selectRootElement(t,e){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D$l(-5104,false);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,o){if(o){e=o+":"+e;let s=Ve$d[o];s?t.setAttributeNS(s,e,r):t.setAttribute(e,r);}else t.setAttribute(e,r);}removeAttribute(t,e,r){if(r){let o=Ve$d[r];o?t.removeAttributeNS(o,e):t.removeAttribute(`${r}:${e}`);}else t.removeAttribute(e);}addClass(t,e){t.classList.add(e);}removeClass(t,e){t.classList.remove(e);}setStyle(t,e,r,o){o&(Tr$8.DashCase|Tr$8.Important)?t.style.setProperty(e,r,o&Tr$8.Important?"important":""):t.style[e]=r;}removeStyle(t,e,r){r&Tr$8.DashCase?t.style.removeProperty(e):t.style[e]="";}setProperty(t,e,r){t!=null&&(t[e]=r);}setValue(t,e){t.nodeValue=e;}listen(t,e,r,o){if(typeof t=="string"&&(t=Ha$1().getGlobalEventTarget(this.doc,t),!t))throw new D$l(-5102,false);let s=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(t,e,s)),this.eventManager.addEventListener(t,e,s,o)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;t(e)===false&&e.preventDefault();}}};function Ut$c(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var ve$c=class ve extends re$9{hostEl;sharedStylesHost;shadowRoot;constructor(t,e,r,o,s,i,c,a){super(t,o,s,c),this.hostEl=e,this.sharedStylesHost=a,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=jt$d(r.id,d);for(let h of d){let v=document.createElement("style");i&&v.setAttribute("nonce",i),v.textContent=h,this.shadowRoot.appendChild(v);}let l=r.getExternalStyles?.();if(l)for(let h of l){let v=Xe$9(h,o);i&&v.setAttribute("nonce",i),this.shadowRoot.appendChild(v);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},ne$d=class ne extends re$9{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,r,o,s,i,c,a){super(t,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let d=r.styles;this.styles=a?jt$d(a,d):d,this.styleUrls=r.getExternalStyles?.(a);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Bn$8.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Ee$d=class Ee extends ne$d{contentAttr;hostAttr;constructor(t,e,r,o,s,i,c,a){let d=o+"-"+r.id;super(t,e,r,s,i,c,a,d),this.contentAttr=mr$6(d),this.hostAttr=vr$7(d);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"");}createElement(t,e){let r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}};var we$e=class n extends yf$1{supportsDOMEvents=true;static makeCurrent(){$A(new n);}onAndCancel(t,e,r,o){return t.addEventListener(e,r,o),()=>{t.removeEventListener(e,r,o);}}
35dispatchEvent(t,e){t.dispatchEvent(e);}remove(t){t.remove();}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Er$6();return e==null?null:Tr$6(e)}resetBaseElement(){oe$c=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Fx$1(document.cookie,t)}},oe$c=null;function Er$6(){return oe$c=oe$c||document.head.querySelector("base"),oe$c?oe$c.getAttribute("href"):null}function Tr$6(n){return new URL(n,document.baseURI).pathname}var Re$c=class Re{addToWindow(t){lt$e.getAngularTestability=(r,o=true)=>{let s=t.findTestabilityInTree(r,o);if(s==null)throw new D$l(5103,false);return s},lt$e.getAllAngularTestabilities=()=>t.getAllTestabilities(),lt$e.getAllAngularRootElements=()=>t.getAllRootElements();let e=r=>{let o=lt$e.getAllAngularTestabilities(),s=o.length,i=function(){s--,s==0&&r();};o.forEach(c=>{c.whenStable(i);});};lt$e.frameworkStabilizers||(lt$e.frameworkStabilizers=[]),lt$e.frameworkStabilizers.push(e);}findTestabilityInTree(t,e,r){if(e==null)return null;let o=t.getTestability(e);return o??(r?Ha$1().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,true):this.findTestabilityInTree(t,e.parentElement,true):null)}},Bt$b=["alt","control","meta","shift"],wr$5={"\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"},Rr$5={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Ht$b=(()=>{class n extends te$a{constructor(e){super(e);}supports(e){return n.parseEventName(e)!=null}addEventListener(e,r,o,s){let i=n.parseEventName(r),c=n.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ha$1().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let r=e.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=n._normalizeKey(r.pop()),i="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),i="code."),Bt$b.forEach(d=>{let l=r.indexOf(d);l>-1&&(r.splice(l,1),i+=d+".");}),i+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=o,a.fullKey=i,a}static matchEventFullKeyCode(e,r){let o=wr$5[e.key]||e.key,s="";return r.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Bt$b.forEach(i=>{if(i!==o){let c=Rr$5[i];c(e)&&(s+=i+".");}}),s+=o,s===r)}static eventCallback(e,r,o){return s=>{n.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>r(s));}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||n)(G$k(Te$g))};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})();async function br$7(n,t,e){let r=r$d({rootComponent:n},Sr$6(t,e));return u3(r)}function Sr$6(n,t){return {platformRef:t?.platformRef,appProviders:[...zt$c,...n?.providers??[]],platformProviders:Pr$4}}function Mr$6(){we$e.makeCurrent();}function _r$6(){return new Tt$g}function Dr$5(){return vw$1(document),document}var Pr$4=[{provide:AC$1,useValue:Lx$1},{provide:Th$1,useValue:Mr$6,multi:true},{provide:Te$g,useFactory:Dr$5}];var Or$4=[{provide:Mv$1,useClass:Re$c},{provide:_v$1,useClass:x_$1,deps:[ge$b,Av$1,Mv$1]},{provide:x_$1,useClass:x_$1,deps:[ge$b,Av$1,Mv$1]}],zt$c=[{provide:tu$1,useValue:"root"},{provide:Tt$g,useFactory:_r$6},{provide:Te$e,useClass:me$c,multi:true},{provide:Te$e,useClass:Ht$b,multi:true},We$d,{provide:Wy,useClass:Ge$a},{provide:Ge$a,useExisting:Wy},Je$9,{provide:Lo$4,useExisting:We$d},[]],Ar$6=(()=>{class n{constructor(){}static \u0275fac=function(r){return new(r||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({providers:[...zt$c,...Or$4],imports:[kx$1,i3]})}return n})();var I$h=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
36`).forEach(e=>{let r=e.indexOf(":");if(r>0){let o=e.slice(0,r),s=e.slice(r+1).trim();this.addHeaderEntry(o,s);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,r)=>{this.addHeaderEntry(r,e);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,r])=>{this.setHeaderEntries(e,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t);}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e));});}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,e);let o=(t.op==="a"?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case "d":let s=t.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else {let i=this.headers.get(e);if(!i)return;i=i.filter(c=>s.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i);}break}}addHeaderEntry(t,e){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e]);}setHeaderEntries(t,e){let r=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)));}};var Se$d=class Se{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Me$d=class Me{encodeKey(t){return Vt$a(t)}encodeValue(t){return Vt$a(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Ir$5(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{let s=o.indexOf("="),[i,c]=s==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,s)),t.decodeValue(o.slice(s+1))],a=e.get(i)||[];a.push(c),e.set(i,a);}),e}var Nr$4=/%(\d[a-f0-9])/gi,xr$6={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vt$a(n){return encodeURIComponent(n).replace(Nr$4,(t,e)=>xr$6[e]??t)}function be$d(n){return `${n}`}var L$j=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Me$d,t.fromString){if(t.fromObject)throw new D$l(2805,false);this.map=Ir$5(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let r=t.fromObject[e],o=Array.isArray(r)?r.map(be$d):[be$d(r)];this.map.set(e,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(s=>{e.push({param:r,value:s,op:"a"});}):e.push({param:r,value:o,op:"a"});}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEac
36h(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case "a":case "s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(be$d(t.value)),this.map.set(t.param,e);break;case "d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(be$d(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function Cr$6(n){switch(n){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function Xt$a(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function $t$b(n){return typeof Blob<"u"&&n instanceof Blob}function Jt$b(n){return typeof FormData<"u"&&n instanceof FormData}function kr$5(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Ze$g="Content-Type",Gt$6="Accept",Kt$b="text/plain",qt$a="application/json",Lr$4=`${qt$a}, ${Kt$b}, */*`,J$m=class n{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,r,o){this.url=e,this.method=t.toUpperCase();let s;if(Cr$6(this.method)||o?(this.body=r!==void 0?r:null,s=o):s=r,s){if(this.reportProgress=!!s.reportProgress,this.reportUploadProgress=!!s.reportUploadProgress,this.reportDownloadProgress=!!s.reportDownloadProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new D$l(2822,"");this.timeout=s.timeout;}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer!==void 0&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache;}if(this.headers??=new I$h,this.context??=new Se$d,!this.params)this.params=new L$j,this.urlWithParams=e;else {let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else {let c=e,a="",d=e.indexOf("#");d!==-1&&(a=e.substring(d),c=e.substring(0,d));let l=c.indexOf("?"),h=l===-1?"?":l<c.length-1?"&":"";this.urlWithParams=c+h+i+a;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Xt$a(this.body)||$t$b(this.body)||Jt$b(this.body)||kr$5(this.body)?this.body:this.body instanceof L$j?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||Jt$b(this.body)?null:$t$b(this.body)?this.body.type||null:Xt$a(this.body)?null:typeof this.body=="string"?Kt$b:this.body instanceof L$j?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qt$a:null}clone(t={}){let e=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,s=t.keepalive??this.keepalive,i=t.priority||this.priority,c=t.cache||this.cache,a=t.mode||this.mode,d=t.redirect||this.redirect,l=t.credentials||this.credentials,h=t.referrer??this.referrer,v=t.integrity||this.integrity,R=t.referrerPolicy||this.referrerPolicy,N=t.transferCache??this.transferCache,A=t.timeout??this.timeout,g=t.body!==void 0?t.body:this.body,b=t.withCredentials??this.withCredentials,T=t.reportProgress??this.reportProgress,_=t.reportUploadProgress??this.reportUploadProgress,S=t.reportDownloadProgress??this.reportDownloadProgress,x=t.headers||this.headers,m=t.params||this.params,C=t.context??this.context;return t.setHeaders!==void 0&&(x=Object.keys(t.setHeaders).reduce((D,P)=>D.set(P,t.setHeaders[P]),x)),t.setParams&&(m=Object.keys(t.setParams).reduce((D,P)=>D.set(P,t.setParams[P]),m)),new n(e,r,g,{params:m,headers:x,context:C,reportProgress:T,reportUploadProgress:_,reportDownloadProgress:S,responseType:o,withCredentials:b,transferCache:N,keepalive:s,cache:c,priority:i,timeout:A,mode:a,redirect:d,credentials:l,referrer:h,integrity:v,referrerPolicy:R})}},G$i=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(G$i||{}),Y$k=class Y{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,r="OK"){this.headers=t.headers||new I$h,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},_e$a=class n extends Y$k{constructor(t={}){super(t);}type=G$i.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},W$o=class n extends Y$k{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=G$i.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},H$j=class H extends Y$k{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},Ur$3=200;var Fr$4=/^\)\]\}',?\n/,Qt$a=new b$g("",{factory:()=>null}),Z$f=(()=>{class n{fetchImpl=g$k(qe$a,{optional:true})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=g$k(ge$b);destroyRef=g$k(de$b);maxResponseSize=g$k(Qt$a);handle(e){return new N$d(r=>{let o=new AbortController;this.doRequest(e,o.signal,r).then(Qe$d,i=>r.error(new H$j({error:i})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},e.timeout))),()=>{s!==void 0&&clearTimeout(s),o.abort();}})}async doRequest(e,r,o){let s=this.createRequestInit(e),i;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,r$d({signal:r},s)));jr$4(g),o.next({type:G$i.Sent}),i=await g;}catch(g){o.error(new H$j({error:g,status:g.status??0,statusText:g.statusText,url:e.urlWithParams,headers:g.headers}));return}let c=new I$h(i.headers),a=i.statusText,d=i.url||e.urlWithParams,l=i.status,h=null,v=e.reportProgress||e.reportDownloadProgress;if(v&&o.next(new _e$a({headers:c,status:l,statusText:a,url:d})),i.body){let g=i.headers.get("content-length"),b=g!==null?Number(g):NaN;this.maxResponseSize!==null&&Number.isFinite(b)&&b>this.maxResponseSize&&Yt$a(this.maxResponseSize);let T=[],_=i.body.getReader(),S=0,x,m,C=typeof Zone<"u"&&Zone.current,D=false;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await _.cancel(),D=true;break}let{done:p,value:O}=await _.read();if(p)break;if(T.push(O),S+=O.length,this.maxResponseSize!==null&&S>this.maxResponseSize&&(await _.cancel(),Yt$a(this.maxResponseSize)),v){m=e.responseType==="text"?(m??"")+(x??=new TextDecoder).decode(O,{stream:true}):void 0;let z=()=>o.next({type:G$i.DownloadProgress,total:Number.isFinite(b)?b:void 0,loaded:S,partialText:m});C?C.run(z):z();}}}),D){o.complete();return}let P=this.concatChunks(T,S);try{let p=i.headers.get(Ze$g)??"";h=this.parseBody(e,P,p,l);}catch(p){o.error(new H$j({error:p,headers:new I$h(i.headers),status:i.status,statusText:i.statusText,url:i.url||e.urlWithParams}));return}}l===0&&(l=h?Ur$3:0);let R=l>=200&&l<300,N=i.redirected,A=i.type;R?(o.next(new W$o({body:h,headers:c,status:l,statusText:a,url:d,redirected:N,responseType:A})),o.complete()):o.error(new H$j({error:h,headers:c,status:l,statusText:a,url:d,redirected:N,responseType:A}));}parseBody(e,r,o,s){switch(e.responseType){case "json":let i=new TextDecoder().decode(r).replace(Fr$4,"");if(i==="")return null;try{return JSON.parse(i)}catch(c){if(s<200||s>=300)return i;throw c}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(e){if(e.reportUploadProgress)throw new D$l(2824,false);let r={},o;if(o=e.credentials,e.withCredentials&&(o="include"),e.headers.forEac
36h((s,i)=>r[s]=i.join(",")),e.headers.has(Gt$6)||(r[Gt$6]=Lr$4),!e.headers.has(Ze$g)){let s=e.detectContentTypeHeader();s!==null&&(r[Ze$g]=s);}return {body:e.serializeBody(),method:e.method,headers:r,credentials:o,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,r){let o=new Uint8Array(r),s=0;for(let i of e)o.set(i,s),s+=i.length;return o}static \u0275fac=function(r){return new(r||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),qe$a=class qe{};function Qe$d(){}function jr$4(n){n.then(Qe$d,Qe$d);}function Yt$a(n){throw new D$l(-2825,false)}function er$6(n,t){return t(n)}function Br$4(n,t){return (e,r)=>t.intercept(e,{handle:o=>n(o,r)})}function Hr$4(n,t,e){return (r,o)=>rs$4(e,()=>t(r,s=>n(s,o)))}var tr$6=new b$g(""),Pe$b=new b$g("",{factory:()=>[]}),et$d=new b$g(""),tt$a=new b$g("",{factory:()=>true});function zr$5(){let n=null;return (t,e)=>{n===null&&(n=(g$k(tr$6,{optional:true})??[]).reduceRight(Br$4,er$6));let r=g$k(Dr$7);if(g$k(tt$a)){let s=r.add();return n(t,e).pipe(hp$1(s))}else return n(t,e)}}var Oe$b=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=L$l({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=G$k(Z$f),o},providedIn:"root"})}return n})();var De$c=(()=>{class n{backend;injector;chain=null;pendingTasks=g$k(Dr$7);contributeToStability=g$k(tt$a);constructor(e,r){this.backend=e,this.injector=r;}handle(e){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Pe$b),...this.injector.get(et$d,[])]));this.chain=o.reduceRight((s,i)=>Hr$4(s,i,this.injector),er$6);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Qn$9(()=>r(e,s=>this.backend.handle(s))).pipe(hp$1(o))}else return Qn$9(()=>r(e,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||n)(G$k(Oe$b),G$k(Ae$e))};static \u0275prov=L$l({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),rt$a=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=L$l({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=G$k(De$c),o},providedIn:"root"})}return n})();function Ke$d(n,t){return r$d({body:t},n)}var rr$7=(()=>{class n{handler;constructor(e){this.handler=e;}request(e,r,o={}){let s;if(e instanceof J$m)s=e;else {let a;o.headers instanceof I$h?a=o.headers:a=new I$h(o.headers);let d;o.params&&(o.params instanceof L$j?d=o.params:d=new L$j({fromObject:o.params})),s=new J$m(e,r,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:d,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let i=yI(s).pipe(jI(a=>this.handler.handle(a)));if(e instanceof J$m||o.observe==="events")return i;let c=i.pipe(Pt$b(a=>a instanceof W$o));switch(o.observe||"body"){case "body":switch(s.responseType){case "arraybuffer":return c.pipe(st$c(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new D$l(2806,false);return a.body}));case "blob":return c.pipe(st$c(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new D$l(2807,false);return a.body}));case "text":return c.pipe(st$c(a=>{if(a.body!==null&&typeof a.body!="string")throw new D$l(2808,false);return a.body}));default:return c.pipe(st$c(a=>a.body))}case "response":return c;default:throw new D$l(2809,false)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new L$j().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Ke$d(o,r))}post(e,r,o={}){return this.request("POST",e,Ke$d(o,r))}put(e,r,o={}){return this.request("PUT",e,Ke$d(o,r))}static \u0275fac=function(r){return new(r||n)(G$k(rt$a))};static \u0275prov=L$l({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Vr$5=new b$g("",{factory:()=>true}),Xr$4="XSRF-TOKEN",$r$4=new b$g("",{factory:()=>Xr$4}),Jr$4="X-XSRF-TOKEN",Gr$4=new b$g("",{factory:()=>Jr$4}),Yr$5=(()=>{class n{cookieName=g$k($r$4);doc=g$k(Te$g);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fx$1(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),nr$6=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=L$l({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=G$k(Yr$5),o},providedIn:"root"})}return n})();function Wr$4(n,t){if(!g$k(Vr$5)||n.method==="GET"||n.method==="HEAD")return t(n);try{let o=g$k(Vr$7).href,{origin:s}=new URL(o),{origin:i}=new URL(n.url,s);if(s!==i)return t(n)}catch{return t(n)}let e=g$k(nr$6).getToken(),r=g$k(Gr$4);return e!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,e)})),t(n)}var se$d=(function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n[n.Xhr=7]="Xhr",n})(se$d||{});function nt$d(n,t){return {\u0275kind:n,\u0275providers:t}}function Zr$4(...n){let t=[rr$7,Z$f,De$c,{provide:rt$a,useExisting:De$c},{provide:Oe$b,useFactory:()=>g$k(Z$f)},{provide:Pe$b,useValue:Wr$4,multi:true}];for(let e of n)t.push(...e.\u0275providers);return fo$3(t)}
36function Kr$4(n){return nt$d(se$d.Interceptors,n.map(t=>({provide:Pe$b,useValue:t,multi:true})))}var Wt$d=new b$g("");function qr$4(){return nt$d(se$d.LegacyInterceptors,[{provide:Wt$d,useFactory:zr$5},{provide:Pe$b,useExisting:Wt$d,multi:true}])}function Qr$4(){return nt$d(se$d.Fetch,[Z$f,{provide:Oe$b,useExisting:Z$f}])}var en$8=new b$g(""),tn$8="b",rn$8="h",nn$7="s",on$7="st",sn$8="u",an$5="rt",ot$d=new b$g(""),cn$8=["GET","HEAD"];function ar$6(n,t){let i=t,{isCacheActive:e}=i,r=v$m(i,["isCacheActive"]),{transferCache:o,method:s}=n;return !(!e||o===false||gn$8(n)||s==="POST"&&!r.includePostRequests&&!o||s!=="POST"&&!cn$8.includes(s)||!r.includeRequestsWithAuthHeaders&&un$8(n)||hn$7(n.headers)||pn$8(n.cache)||r.filter?.(n)===false)}function dn$8(n,t,e,r,o,s=false){if(!s&&!ar$6(n,t))return null;if(!o){let A=n.url;o=cr$6(n,A);}let i=e.get(o,null);if(!i)return null;let{[tn$8]:c,[an$5]:a,[rn$8]:d,[nn$7]:l,[on$7]:h,[sn$8]:v}=i,R=c;switch(a){case "arraybuffer":R=sr$6(c);break;case "blob":R=new Blob([sr$6(c)]);break}let N=new I$h(d);return new W$o({body:R,headers:N,status:l,statusText:h,url:v})}function ln$8(n,t){let e=g$k(ot$d);if(!ar$6(n,e))return t(n);let r=g$k(yr$8);g$k(en$8,{optional:true});let s=n.url,i=cr$6(n,s),c=dn$8(n,e,r,null,i,true);return c?yI(c):t(n)}function un$8(n){let t=n.headers;return t.has("authorization")||t.has("proxy-authorization")||t.has("cookie")}var fn$9=new Set(["no-store","private","no-cache"]);function hn$7(n){let t=n.get("cache-control");return t?t.split(",").some(e=>{let r=e.split("=",1)[0].trim().toLowerCase();return fn$9.has(r)}):false}function pn$8(n){return n==="no-cache"||n==="no-store"}function gn$8(n){let{withCredentials:t,credentials:e}=n;return t||e==="include"||e==="same-origin"}function or$5(n){let t=new URLSearchParams(n instanceof URLSearchParams?n:n.toString());return t.sort(),t.toString()}function cr$6(n,t){let{params:e,method:r,responseType:o}=n,s=or$5(e),i=n.serializeBody();i instanceof URLSearchParams?i=or$5(i):typeof i!="string"&&(i="");let c=[r,o,t,i,s].join("\0"),a=mn$8(c);return a}function sr$6(n){let t=atob(n);return Uint8Array.from(t,r=>r.charCodeAt(0)).buffer}function dr$7(n){return [{provide:ot$d,useFactory:()=>(fe$d("NgHttpTransferCache"),r$d({isCacheActive:true},n))},{provide:et$d,useValue:ln$8,multi:true},{provide:Ko$6,multi:true,useFactory:()=>{let t=g$k(yt$f),e=g$k(ot$d);return ()=>{t.whenStable().then(()=>{e.isCacheActive=false;});}}}]}var yn$8=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ir$9;function mn$8(n){ir$9??=new TextEncoder;let t=ir$9.encode(n),e=1779033703,r=3144134277,o=1013904242,s=2773480762,i=1359893119,c=2600822924,a=528734635,d=1541459225,l=t.length*8,h=(t.length+8>>6)+1<<6,v=new Uint8Array(h);v.set(t),v[t.length]=128;let R=new DataView(v.buffer),N=l>>>0,A=l/4294967296>>>0;R.setUint32(h-8,A,false),R.setUint32(h-4,N,false);let g=new Uint32Array(64);for(let b=0;b<h;b+=64){for(let p=0;p<16;p++)g[p]=R.getUint32(b+p*4,false);for(let p=16;p<64;p++){let O=g[p-15],z=((O>>>7|O<<25)^(O>>>18|O<<14)^O>>>3)>>>0,U=g[p-2],Ae=((U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)>>>0;g[p]=g[p-16]+z+g[p-7]+Ae>>>0;}let T=e,_=r,S=o,x=s,m=i,C=c,D=a,P=d;for(let p=0;p<64;p++){let O=((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))>>>0,z=(m&C^~m&D)>>>0,U=P+O+z+yn$8[p]+g[p]>>>0,Ae=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))>>>0,lr=(T&_^T&S^_&S)>>>0,ur=Ae+lr>>>0;P=D,D=C,C=m,m=x+U>>>0,x=S,S=_,_=T,T=U+ur>>>0;}e=e+T>>>0,r=r+_>>>0,o=o+S>>>0,s=s+x>>>0,i=i+m>>>0,c=c+C>>>0,a=a+D>>>0,d=d+P>>>0;}return [e,r,o,s,i,c,a,d].map(b=>b.toString(16).padStart(8,"0")).join("")}var Ko$4=(()=>{class n{_doc;constructor(e){this._doc=e;}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||"";}static \u0275fac=function(r){return new(r||n)(G$k(Te$g))};static \u0275prov=L$l({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ie$e=(function(n){return n[n.NoHttpTransferCache=0]="NoHttpTransferCache",n[n.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",n[n.I18nSupport=2]="I18nSupport",n[n.EventReplay=3]="EventReplay",n[n.IncrementalHydration=4]="IncrementalHydration",n[n.NoIncrementalHydration=5]="NoIncrementalHydration",n})(ie$e||{});function vn$7(n,t=[],e={}){return {\u0275kind:n,\u0275providers:t}}function qo$4(){return vn$7(ie$e.NoIncrementalHydration)}function Qo$4(...n){let t=[],e=new Set;for(let{\u0275providers:o,\u0275kind:s}of n)e.add(s),o.length&&t.push(o);let r=e.has(ie$e.HttpTransferCacheOptions);return fo$3([[],[],s3(),e.has(ie$e.NoHttpTransferCache)||r?[]:dr$7({}),e.has(ie$e.NoIncrementalHydration)?[]:a3(),t,{provide:xN,useValue:{isActive:true}},{provide:Ko$6,multi:true,useFactory:()=>{let o=g$k(yt$f),s=g$k(xN);return ()=>{o.whenStable().then(()=>{s.isActive=false;});}}}])}var En$7=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=L$l({token:n,factory:function(r){let o=null;return r?o=new(r||n):o=G$k(Tn$6),o},providedIn:"root"})}return n})(),Tn$6=(()=>
36{class n extends En$7{_doc=g$k(Te$g);sanitize(e,r){if(r==null)return null;switch(e){case Wo$5.NONE:return r;case Wo$5.HTML:return ca$3(r,"HTML")?At$b(r):jm$1(this._doc,String(r)).toString();case Wo$5.STYLE:return ca$3(r,"Style")?At$b(r):r;case Wo$5.SCRIPT:if(ca$3(r,"Script"))return At$b(r);throw new D$l(5200,false);case Wo$5.URL:return ca$3(r,"URL")?At$b(r):Gl$1(String(r));case Wo$5.RESOURCE_URL:if(ca$3(r,"ResourceURL"))return At$b(r);throw new D$l(-5201,false);default:throw new D$l(5202,false)}}bypassSecurityTrustHtml(e){return Ow$1(e)}bypassSecurityTrustStyle(e){return kw$1(e)}bypassSecurityTrustScript(e){return Fw$1(e)}bypassSecurityTrustUrl(e){return Lw$1(e)}bypassSecurityTrustResourceUrl(e){return Pw$1(e)}static \u0275fac=function(r){return new(r||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})();function Ht$a(e){let i=Ft$9(Ae$e);return i?new N$d(t=>rs$4(i,()=>e.pipe(QG(i)).subscribe(t))):e}function Ft$9(e){try{return g$k(e,{optional:!0})??void 0}catch{return}}var nt$c=new b$g("Firebase Auth");function ne$c(e){return fo$3([{provide:nt$c,useFactory:e}])}function ie$d(e){return Ht$a(new N$d(i=>oi$8(e,r=>i.next(r),r=>i.error(r))))}var b$e=(function(e){return e.GET="get",e.GET_UNAUTH="getUnauth",e.POST="post",e.POST_UNAUTH="postUnauth",e.PATCH="patch",e.PUT="put",e.DELETE="delete",e})(b$e||{});var Nt$c=(()=>{class e{constructor(){this._document=g$k(Te$g),this._refCount=0,this._sentinel=null,this._acquiring=null,this._visibilityListenerAttached=false;}acquire(){this._refCount+=1,this._ensureLock();let t=false;return ()=>{t||(t=true,this._refCount=Math.max(0,this._refCount-1),this._refCount===0&&this._releaseLock());}}_ensureLock(){if(this._sentinel&&!this._sentinel.released)return Promise.resolve();if(this._acquiring)return this._acquiring;let r=this._document.defaultView?.navigator?.wakeLock;return !r||this._document.visibilityState==="hidden"?Promise.resolve():(this._acquiring=(async()=>{try{let n=await r.request("screen");if(this._refCount===0){await n.release();return}n.addEventListener("release",()=>{this._sentinel===n&&(this._sentinel=null);}),this._sentinel=n,this._attachVisibilityListener();}catch{}finally{this._acquiring=null;}})(),this._acquiring)}async _releaseLock(){let t=this._sentinel;if(this._sentinel=null,t&&!t.released)try{await t.release();}catch{}}_attachVisibilityListener(){this._visibilityListenerAttached||(this._visibilityListenerAttached=true,this._document.addEventListener("visibilitychange",()=>{this._refCount>0&&this._document.visibilityState==="visible"&&(!this._sentinel||this._sentinel.released)&&this._ensureLock();}));}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Y$j=class Y extends Error{constructor(i,t){super(i),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line;}};function it$b(e){}function Rt$d(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:i=it$b,onError:t=it$b,onRetry:r=it$b,onComment:n}=e,s="",a=true,c,p="",l="";function _(h){let u=a?h.replace(/^\xEF\xBB\xBF/,""):h,[O,X]=$t$a(`${s}${u}`);for(let Z of O)v(Z);s=X,a=false;}function v(h){if(h===""){T();return}if(h.startsWith(":")){n&&n(h.slice(h.startsWith(": ")?2:1));return}let u=h.indexOf(":");if(u!==-1){let O=h.slice(0,u),X=h[u+1]===" "?2:1,Z=h.slice(u+X);m(O,Z,h);return}m(h,"",h);}function m(h,u,O){switch(h){case "event":l=u;break;case "data":p=`${p}${u} 37`;break;case "id":c=u.includes("\0")?void 0:u;break;case "retry":/^\d+$/.test(u)?r(parseInt(u,10)):t(new Y$j(`Invalid \`retry\` value: "${u}"`,{type:"invalid-retry",value:u,line:O}));break;default:t(new Y$j(`Unknown field "${h.length>20?`${h.slice(0,20)}\u2026`:h}"`,{type:"unknown-field",field:h,value:u,line:O}));break}}function T(){p.length>0&&i({id:c,event:l||void 0,data:p.endsWith(` 38`)?p.slice(0,-1):p}),c=void 0,p="",l="";}function w(h={}){s&&h.consume&&v(s),a=true,c=void 0,p="",l="",s="";}return {feed:_,reset:w}}function $t$a(e){let i=[],t="",r=0;for(;r<e.length;){let n=e.indexOf("\r",r),s=e.indexOf(` 39`,r),a=-1;if(n!==-1&&s!==-1?a=Math.min(n,s):n!==-1?a=n:s!==-1&&(a=s),a===-1){t=e.slice(r);break}else {let c=e.slice(r,a);i.push(c),r=a+1,e[r-1]==="\r"&&e[r]===` 40`&&r++;}}return [i,t]}
40var J$l=class J extends Event{constructor(i,t){var r,n;super(i),this.code=(r=t?.code)!=null?r:void 0,this.message=(n=t?.message)!=null?n:void 0;}[Symbol.for("nodejs.util.inspect.custom")](i,t,r){return r(Ut$b(this),t)}[Symbol.for("Deno.customInspect")](i,t){return i(Ut$b(this),t)}};function qt$9(e){let i=globalThis.DOMException;return typeof i=="function"?new i(e,"SyntaxError"):new SyntaxError(e)}function at$e(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(at$e).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${at$e(e.cause)}`:e.message:`${e}`}function Ut$b(e){return {type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var Wt$c=e=>{throw TypeError(e)},ft$b=(e,i,t)=>i.has(e)||Wt$c("Cannot "+t),o$a=(e,i,t)=>(ft$b(e,i,"read from private field"),t?t.call(e):i.get(e)),f$f=(e,i,t)=>i.has(e)?Wt$c("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,t),d$k=(e,i,t,r)=>(ft$b(e,i,"write to private field"),i.set(e,t),t),k$k=(e,i,t)=>(ft$b(e,i,"access private method"),t),g$j,I$g,R$f,z$m,Q$d,$$m,W$n,q$j,S$o,U$h,M$j,D$j,F$h,y$e,ot$c,ht$c,ct$a,Dt$b,lt$c,dt$b,G$h,ut$e,pt$c,x$k=class x extends EventTarget{constructor(i,t){var r,n;super(),f$f(this,y$e),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,f$f(this,g$j),f$f(this,I$g),f$f(this,R$f),f$f(this,z$m),f$f(this,Q$d),f$f(this,$$m),f$f(this,W$n),f$f(this,q$j,null),f$f(this,S$o),f$f(this,U$h),f$f(this,M$j,null),f$f(this,D$j,null),f$f(this,F$h,null),f$f(this,ht$c,async s=>{var a;o$a(this,U$h).reset();let{body:c,redirected:p,status:l,headers:_}=s;if(l===204){k$k(this,y$e,G$h).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(p?d$k(this,R$f,new URL(s.url)):d$k(this,R$f,void 0),l!==200){k$k(this,y$e,G$h).call(this,`Non-200 status code (${l})`,l);return}if(!(_.get("content-type")||"").startsWith("text/event-stream")){k$k(this,y$e,G$h).call(this,'Invalid content type, expected "text/event-stream"',l);return}if(o$a(this,g$j)===this.CLOSED)return;d$k(this,g$j,this.OPEN);let v=new Event("open");if((a=o$a(this,F$h))==null||a.call(this,v),this.dispatchEvent(v),typeof c!="object"||!c||!("getReader"in c)){k$k(this,y$e,G$h).call(this,"Invalid response body, expected a web ReadableStream",l),this.close();return}let m=new TextDecoder,T=c.getReader(),w=true;do{let{done:h,value:u}=await T.read();u&&o$a(this,U$h).feed(m.decode(u,{stream:!h})),h&&(w=false,o$a(this,U$h).reset(),k$k(this,y$e,ut$e).call(this));}while(w)}),f$f(this,ct$a,s=>{d$k(this,S$o,void 0),!(s.name==="AbortError"||s.type==="aborted")&&k$k(this,y$e,ut$e).call(this,at$e(s));}),f$f(this,lt$c,s=>{typeof s.id=="string"&&d$k(this,q$j,s.id);let a=new MessageEvent(s.event||"message",{data:s.data,origin:o$a(this,R$f)?o$a(this,R$f).origin:o$a(this,I$g).origin,lastEventId:s.id||""});o$a(this,D$j)&&(!s.event||s.event==="message")&&o$a(this,D$j).call(this,a),this.dispatchEvent(a);}),f$f(this,dt$b,s=>{d$k(this,$$m,s);}),f$f(this,pt$c,()=>{d$k(this,W$n,void 0),o$a(this,g$j)===this.CONNECTING&&k$k(this,y$e,ot$c).call(this);});try{if(i instanceof URL)d$k(this,I$g,i);else if(typeof i=="string")d$k(this,I$g,new URL(i,jt$c()));else throw new Error("Invalid URL")}catch{throw qt$9("An invalid or illegal string was specified")}d$k(this,U$h,Rt$d({onEvent:o$a(this,lt$c),onRetry:o$a(this,dt$b)})),d$k(this,g$j,this.CONNECTING),d$k(this,$$m,3e3),d$k(this,Q$d,(r=t?.fetch)!=null?r:globalThis.fetch),d$k(this,z$m,(n=t?.withCredentials)!=null?n:false),k$k(this,y$e,ot$c).call(this);}get readyState(){return o$a(this,g$j)}get url(){return o$a(this,I$g).href}get withCredentials(){return o$a(this,z$m)}get onerror(){return o$a(this,M$j)}set onerror(i){d$k(this,M$j,i);}get onmessage(){return o$a(this,D$j)}set onmessage(i){d$k(this,D$j,i);}get onopen(){return o$a(this,F$h)}set onopen(i){d$k(this,F$h,i);}addEventListener(i,t,r){let n=t;super.addEventListener(i,n,r);}removeEventListener(i,t,r){let n=t;super.removeEventListener(i,n,r);}close(){o$a(this,W$n)&&clearTimeout(o$a(this,W$n)),o$a(this,g$j)!==this.CLOSED&&(o$a(this,S$o)&&o$a(this,S$o).abort(),d$k(this,g$j,this.CLOSED),d$k(this,S$o,void 0));}};g$j=new WeakMap,I$g=new WeakMap,R$f=new WeakMap,z$m=new WeakMap,Q$d=new WeakMap,$$m=new WeakMap,W$n=new WeakMap,q$j=new WeakMap,S$o=new WeakMap,U$h=new WeakMap,M$j=new WeakMap,D$j=new WeakMap,F$h=new WeakMap,y$e=new WeakSet,ot$c=function(){d$k(this,g$j,this.CONNECTING),d$k(this,S$o,new AbortController),o$a(this,Q$d)(o$a(this,I$g),k$k(this,y$e,Dt$b).call(this)).then(o$a(this,ht$c)).catch(o$a(this,ct$a));},ht$c=new WeakMap,ct$a=new WeakMap,Dt$b=function(){var e;let i={mode:"cors",redirect:"follow",headers:r$d({Accept:"text/event-stream"},o$a(this,q$j)?{"Last-Event-ID":o$a(this,q$j)}:void 0),cache:"no-store",signal:(e=o$a(this,S$o))==null?void 0:e.signal};return "window"in globalThis&&(i.credentials=this.withCredentials?"include":"same-origin"),i},lt$c=new WeakMap,dt$b=new WeakMap,G$h=function(e,i){var t;o$a(this,g$j)!==this.CLOSED&&d$k(this,g$j,this.CLOSED);let r=new J$l("error",{code:i,message:e});(t=o$a(this,M$j))==null||t.call(this,r),this.dispatchEvent(r);},ut$e=function(e,i){var t;if(o$a(this,g$j)===this.CLOSED)return;d$k(this,g$j,this.CONNECTING);let r=new J$l("error",{code:i,message:e});(t=o$a(this,M$j))==null||t.call(this,r),this.dispatchEvent(r),d$k(this,W$n,setTimeout(o$a(this,pt$c),o$a(this,$$m)));},pt$c=new WeakMap,x$k.CONNECTING=0,x$k.OPEN=1,x$k.CLOSED=2;function jt$c(){let e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}var A$h=(e,{maxRetryAttempts:i=4,scalingDuration:t=1e3,includedStatusCodes:r=[0,502,504]}={})=>n=>{let s;return n.pipe(Ip$1(()=>{s||(s=new Date().valueOf()-e);}),Ye$e((a,c)=>{let p=c+1;return p>i||r.findIndex(l=>l===a.status)<0?(a.reqTime=s,vI(()=>a)):Qe$f(p*t)}))},Bt$a=new b$g("backend url"),Ae$c=new b$g("backend beta test url"),Vt$9=new b$g("mobile id token getter"),Kt$a=64*1024,Yt$9=new Set([502,504]),Mt$b=[1e3,2e3],Ce$a=(()=>{class e{constructor(){this._afAuth=g$k(nt$c),this._isAdmin=g$k(kE),this._logger=g$k($E),this._mobileIdTokenGetter=g$k(Vt$9,{optional:true}),this._http=g$k(rr$7),this._url=g$k(Bt$a),this._appVersion=g$k(RE),this._cspOption=g$k(NE),this._wakeLock=g$k(Nt$c);}generic(t,r){switch(t.method){case b$e.GET:return this.get(t.url,{params:t.params,idTokenOverride:r});case b$e.POST:return this.post(t.url,t?.data,{params:t.params,idTokenOverride:r});case b$e.PATCH:return this.patch(t.url,t.data,{params:t.params,idTokenOverride:r});case b$e.PUT:return this.put(t.url,t.data,{params:t.params,idTokenOverride:r});case b$e.DELETE:return this.delete(t.url,{params:t.params,idTokenOverride:r});case b$e.POST_UNAUTH:return this.postUnAuth(t.url,t.data);case b$e.GET_UNAUTH:return this.getUnAuth(t.url,{params:t.params});default:return pn$a}}get(t,r){let n=new Date().valueOf(),s=this._buildHttpParams(r?.params),a=this.getAuthHeaders(r?.idTokenOverride).pipe(Kf$1(c=>this._http.get((r?.host||this._url)+t,{headers:c,params:s})));return r?.skipRetry?a:a.pipe($I(A$h(n)))}post(t,r,n){let s,a,c;
40typeof t=="string"?(c=t,s=r,a=this._buildHttpParams(n?.params)):(c=t.url,s=t.data,a=this._buildHttpParams(t.params));let p=new Date().valueOf(),l=this.getAuthHeaders(n?.idTokenOverride).pipe(Kf$1(_=>this._http.post(this._url+c,s??{},{headers:_,params:a})));return n?.skipRetry?l:l.pipe($I(A$h(p)))}async sendKeepalive(t,r,n){let s=JSON.stringify(n);if(new TextEncoder().encode(s).byteLength>Kt$a)return qE$1(t==="POST"?this.post(r,n):this.put(r,n));let a=await qE$1(this.getAuthHeaders()),c={method:t,keepalive:true,headers:s$e(r$d({},this._convertToFetchHeaders(a)),{"Content-Type":"application/json"}),body:s},p;for(let l=0;l<=Mt$b.length;l+=1){l>0&&await new Promise(v=>setTimeout(v,Mt$b[l-1]));let _=null;try{_=await fetch(this._url+r,c);}catch(v){p=v;}if(_){if(_.ok){let v=await _.text();return v?JSON.parse(v):null}if(p=new Error(`${t} ${r} failed with status ${_.status}`),!Yt$9.has(_.status))throw p}}throw p}postCustomBackend(t,r,n={}){let s=new Date().valueOf();return this.getAuthHeaders().pipe(Kf$1(a=>this._http.post(t+r,n,{headers:a})),$I(A$h(s)))}postUnAuth(t,r={}){let n=new Date().valueOf();return this._http.post(this._url+t,r).pipe($I(A$h(n)))}getUnAuth(t,r){let n=new Date().valueOf(),s=this._buildHttpParams(r?.params);return this._http.get(this._url+t,{params:s}).pipe($I(A$h(n)))}patch(t,r={},n){let s=new Date().valueOf(),a=this._buildHttpParams(n?.params);return this.getAuthHeaders(n?.idTokenOverride).pipe(Kf$1(c=>this._http.patch(this._url+t,r,{headers:c,params:a})),$I(A$h(s)))}put(t,r={},n){let s=new Date().valueOf(),a=this._buildHttpParams(n?.params);return this.getAuthHeaders(n?.idTokenOverride).pipe(Kf$1(c=>this._http.put(this._url+t,r,{headers:c,params:a})),$I(A$h(s)))}delete(t,r){let n=new Date().valueOf(),s=this._buildHttpParams(r?.params);return this.getAuthHeaders(r?.idTokenOverride).pipe(Kf$1(a=>this._http.delete(this._url+t,{headers:a,params:s})),$I(A$h(n)))}getAuthHeaders(t){return t?yI(this._createAuthorizationHeaderInput(t)):this._mobileIdTokenGetter?je$e(this._mobileIdTokenGetter()).pipe(rp$2(5e3),gc$1(r=>(this._logger.warn("[HttpBackendService] mobile auth token resolver failed/timed out",r),yI(""))),st$c(r=>this._createAuthorizationHeaderInput(r??""))):je$e(this._getWebIdToken()).pipe(rp$2(5e3),gc$1(r=>(this._logger.warn("[HttpBackendService] web auth token resolver failed/timed out",r),yI(""))),st$c(r=>this._createAuthorizationHeaderInput(r)))}async _getWebIdToken(){await this._afAuth.authStateReady();let t=this._afAuth.currentUser;return t?t.getIdToken():""}_createAuthorizationHeaderInput(t){return new I$h().set("authorization",t).set("app-version",this._appVersion).set("app",this._isAdmin?"admin":"client").set("Content-Security-Policy",this._cspOption)}postGenericSseStream(t,r){return new N$d(n=>{let s=null,a=new AbortController,c=this._wakeLock.acquire(),p=async()=>{try{let _=await qE$1(this.getAuthHeaders()),v=this._convertToFetchHeaders(_);s=new x$k(this._url+t,{fetch:(T,w)=>fetch(T,s$e(r$d({},w),{method:"POST",headers:s$e(r$d({},v),{"Content-Type":"application/json"}),body:JSON.stringify(r),signal:a.signal}))});let m=T=>w=>{try{let u=JSON.parse(w.data);n.next({event:T,data:u});}catch{}};s.addEventListener("start",m("start")),s.addEventListener("delta",m("delta")),s.addEventListener("reasoning",m("reasoning")),s.addEventListener("toolCallStart",m("toolCallStart")),s.addEventListener("toolCallDelta",m("toolCallDelta")),s.addEventListener("toolCall",m("toolCall")),s.addEventListener("toolResult",m("toolResult")),s.addEventListener("toolError",m("toolError")),s.addEventListener("subagentActivity",m("subagentActivity")),s.addEventListener("actionConfirmation",m("actionConfirmation")),s.addEventListener("delegation",m("delegation")),s.addEventListener("supportDelegation",m("supportDelegation")),s.addEventListener("complete",m("complete")),s.addEventListener("done",()=>n.complete()),s.addEventListener("error",T=>{let w=T;if(w.data)try{let u=JSON.parse(w.data);n.next({event:"error",data:u}),n.complete(),s?.close();return}catch{}let h=T;h.code===403?n.error(new Error("AGENT_FORBIDDEN")):h.code===401?n.error(new Error("Authentication failed")):h.message?n.error(new Error(h.message)):n.error(new Error("SSE stream error"));});}catch(_){this._logger.error("Error setting up EventSource",_),n.error(_);}},l=()=>{a.abort();};return window.addEventListener("beforeunload",l),p(),()=>{window.removeEventListener("beforeunload",l),s&&(s.close(),s=null),a.abort(),c();}})}_buildHttpParams(t){if(!t)return;let r=new L$j;for(let[n,s]of Object.entries(t))if(s!=null)if(Array.isArray(s))for(let a of s)r=r.append(n,String(a));else r=r.set(n,String(s));return r}_convertToFetchHeaders(t){let r={};
40return t.keys().forEach(n=>{r[n]=t.get(n)||"";}),r}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var l$c={GET_YOUTUBE:(e,t)=>({url:`/client-widget-collection/widget-data/youtube/${e}?amount=${t}`,method:b$e.GET})},c$h={GET_WIDGET:(e,t,o)=>({url:o?`/client-widget-collection/${e}/${t}?versionId=${encodeURIComponent(o)}`:`/client-widget-collection/${e}/${t}`,method:b$e.GET}),LIST_VERSIONS_FOR_PREVIEW:(e,t)=>({url:`/client-widget-collection/${e}/${t}/versions`,method:b$e.GET})};var ve$b={};y$g(ve$b,{BRAND:()=>dt$a,DIRTY:()=>E$j,EMPTY_PATH:()=>Le$d,INVALID:()=>y$d,NEVER:()=>Jt$a,OK:()=>T$i,ParseStatus:()=>w$h,Schema:()=>x$j,ZodAny:()=>G$g,ZodArray:()=>W$m,ZodBigInt:()=>ie$c,ZodBoolean:()=>oe$b,ZodBranded:()=>q$i,ZodCatch:()=>_e$9,ZodDate:()=>ce$9,ZodDefault:()=>ye$d,ZodDiscriminatedUnion:()=>Q$c,ZodEffects:()=>D$i,ZodEnum:()=>te$9,ZodError:()=>S$n,ZodFirstPartyTypeKind:()=>g$i,ZodFunction:()=>K$o,ZodIntersection:()=>fe$b,ZodIssueCode:()=>u$d,ZodLazy:()=>he$c,ZodLiteral:()=>pe$d,ZodMap:()=>Ae$b,ZodNaN:()=>Ee$c,ZodNativeEnum:()=>me$b,ZodNever:()=>I$f,ZodNull:()=>ue$7,ZodNullable:()=>L$i,ZodNumber:()=>ae$b,ZodObject:()=>P$d,ZodOptional:()=>R$e,ZodParsedType:()=>f$e,ZodPipeline:()=>J$k,ZodPromise:()=>re$8,ZodReadonly:()=>ge$9,ZodRecord:()=>X$h,ZodSchema:()=>x$j,ZodSet:()=>Oe$a,ZodString:()=>ee$8,ZodSymbol:()=>Se$c,ZodTransformer:()=>D$i,ZodTuple:()=>z$l,ZodType:()=>x$j,ZodUndefined:()=>de$9,ZodUnion:()=>le$b,ZodUnknown:()=>F$g,ZodVoid:()=>Ne$d,addIssueToContext:()=>l$b,any:()=>gt$d,array:()=>bt$f,bigint:()=>ht$b,boolean:()=>Me$c,coerce:()=>qt$8,custom:()=>Ie$8,date:()=>pt$b,datetimeRegex:()=>Ce$9,defaultErrorMap:()=>N$c,discriminatedUnion:()=>Ct$f,effect:()=>Pt$9,enum:()=>$t$9,function:()=>Et$b,getErrorMap:()=>$$l,getParsedType:()=>C$8,instanceof:()=>lt$b,intersection:()=>St$c,isAborted:()=>Y$i,isAsync:()=>M$i,isDirty:()=>H$i,isValid:()=>O$p,late:()=>ut$d,lazy:()=>It$b,literal:()=>jt$b,makeIssue:()=>B$o,map:()=>Ot$9,nan:()=>ft$a,nativeEnum:()=>Mt$a,never:()=>xt$b,null:()=>_t$e,nullable:()=>Dt$a,number:()=>$e$c,object:()=>wt$g,objectUtil:()=>xe$b,oboolean:()=>Wt$b,onumber:()=>Ft$8,optional:()=>zt$b,ostring:()=>Bt$9,pipeline:()=>Ut$a,preprocess:()=>Lt$a,promise:()=>Vt$8,quotelessJson:()=>Pe$a,record:()=>At$9,set:()=>Rt$c,setErrorMap:()=>De$b,strictObject:()=>Tt$e,string:()=>je$c,symbol:()=>mt$b,transformer:()=>Pt$9,tuple:()=>Nt$b,undefined:()=>yt$d,union:()=>Zt$a,unknown:()=>vt$b,util:()=>b$d,void:()=>kt$b});var b$d;(function(t){t.assertEqual=s=>{};function n(s){}t.assertIs=n;function e(s){throw new Error}t.assertNever=e,t.arrayToEnum=s=>{let a={};for(let i of s)a[i]=i;return a},t.getValidEnumValues=s=>{let a=t.objectKeys(s).filter(c=>typeof s[s[c]]!="number"),i={};for(let c of a)i[c]=s[c];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(a){return s[a]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let a=[];for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},t.find=(s,a)=>{for(let i of s)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a;})(b$d||(b$d={}));var xe$b=(function(t){return t.mergeShapes=(n,e)=>r$d(r$d({},n),e),t})(xe$b||{}),f$e=b$d.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),C$8=t=>{switch(typeof t){case "undefined":return f$e.undefined;case "string":return f$e.string;case "number":return Number.isNaN(t)?f$e.nan:f$e.number;case "boolean":return f$e.boolean;case "function":return f$e.function;case "bigint":return f$e.bigint;case "symbol":return f$e.symbol;case "object":return Array.isArray(t)?f$e.array:t===null?f$e.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?f$e.promise:typeof Map<"u"&&t instanceof Map?f$e.map:typeof Set<"u"&&t instanceof Set?f$e.set:typeof Date<"u"&&t instanceof Date?f$e.date:f$e.object;default:return f$e.unknown}};
40var u$d=b$d.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Pe$a=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),S$n=(()=>{class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s];},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s];};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e;}format(e){let r=e||function(i){return i.message},s={_errors:[]},a=i=>{for(let c of i.issues)if(c.code==="invalid_union")c.unionErrors.map(a);else if(c.code==="invalid_return_type")a(c.returnTypeError);else if(c.code==="invalid_arguments")a(c.argumentsError);else if(c.path.length===0)s._errors.push(r(c));else {let d=s,p=0;for(;p<c.path.length;){let m=c.path[p];p===c.path.length-1?(d[m]=d[m]||{_errors:[]},d[m]._errors.push(r(c))):d[m]=d[m]||{_errors:[]},d=d[m],p++;}}};return a(this),s}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,b$d.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},s=[];for(let a of this.issues)if(a.path.length>0){let i=a.path[0];r[i]=r[i]||[],r[i].push(e(a));}else s.push(e(a));return {formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}return t.create=n=>new t(n),t})();var ze$d=(t,n)=>{let e;switch(t.code){case u$d.invalid_type:t.received===f$e.undefined?e="Required":e=`Expected ${t.expected}, received ${t.received}`;break;case u$d.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(t.expected,b$d.jsonStringifyReplacer)}`;break;case u$d.unrecognized_keys:e=`Unrecognized key(s) in object: ${b$d.joinValues(t.keys,", ")}`;break;case u$d.invalid_union:e="Invalid input";break;case u$d.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${b$d.joinValues(t.options)}`;break;case u$d.invalid_enum_value:e=`Invalid enum value. Expected ${b$d.joinValues(t.options)}, received '${t.received}'`;break;case u$d.invalid_arguments:e="Invalid function arguments";break;case u$d.invalid_return_type:e="Invalid function return type";break;case u$d.invalid_date:e="Invalid date";break;case u$d.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(e=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?e=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?e=`Invalid input: must end with "${t.validation.endsWith}"`:b$d.assertNever(t.validation):t.validation!=="regex"?e=`Invalid ${t.validation}`:e="Invalid";break;case u$d.too_small:t.type==="array"?e=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?e=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?e=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?e=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?e=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:e="Invalid input";break;case u$d.too_big:t.type==="array"?e=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?e=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?e=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?e=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?e=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:e="Invalid input";break;case u$d.custom:e="Invalid input";break;case u$d.invalid_intersection_types:e="Intersection results could not be merged";break;case u$d.not_multiple_of:e=`Number must be a multiple of ${t.multipleOf}`;break;case u$d.not_finite:e="Number must be finite";break;default:e=n.defaultError,b$d.assertNever(t);}return {message:e}},N$c=ze$d;var ke$9=N$c;function De$b(t){ke$9=t;}function $$l(){return ke$9}var B$o=t=>
40{let{data:n,path:e,errorMaps:r,issueData:s}=t,a=[...e,...s.path||[]],i=s$e(r$d({},s),{path:a});if(s.message!==void 0)return s$e(r$d({},s),{path:a,message:s.message});let c="",d=r.filter(p=>!!p).slice().reverse();for(let p of d)c=p(i,{data:n,defaultError:c}).message;return s$e(r$d({},s),{path:a,message:c})},Le$d=[];function l$b(t,n){let e=$$l(),r=B$o({issueData:n,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,e,e===N$c?void 0:N$c].filter(s=>!!s)});t.common.issues.push(r);}var w$h=class t{constructor(){this.value="valid";}dirty(){this.value==="valid"&&(this.value="dirty");}abort(){this.value!=="aborted"&&(this.value="aborted");}static mergeArray(n,e){let r=[];for(let s of e){if(s.status==="aborted")return y$d;s.status==="dirty"&&n.dirty(),r.push(s.value);}return {status:n.value,value:r}}static async mergeObjectAsync(n,e){let r=[];for(let s of e){let a=await s.key,i=await s.value;r.push({key:a,value:i});}return t.mergeObjectSync(n,r)}static mergeObjectSync(n,e){let r={};for(let s of e){let{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return y$d;a.status==="dirty"&&n.dirty(),i.status==="dirty"&&n.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[a.value]=i.value);}return {status:n.value,value:r}}},y$d=Object.freeze({status:"aborted"}),E$j=t=>({status:"dirty",value:t}),T$i=t=>({status:"valid",value:t}),Y$i=t=>t.status==="aborted",H$i=t=>t.status==="dirty",O$p=t=>t.status==="valid",M$i=t=>typeof Promise<"u"&&t instanceof Promise;var h$c=(function(t){return t.errToObj=n=>typeof n=="string"?{message:n}:n||{},t.toString=n=>typeof n=="string"?n:n?.message,t})(h$c||{});var Z$e=class Z{constructor(n,e,r,s){this._cachedPath=[],this.parent=n,this.data=e,this._path=r,this._key=s;}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},be$c=(t,n)=>{if(O$p(n))return {success:true,data:n.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return {success:false,get error(){if(this._error)return this._error;let e=new S$n(t.common.issues);return this._error=e,this._error}}};function v$j(t){if(!t)return {};let{errorMap:n,invalid_type_error:e,required_error:r,description:s}=t;if(n&&(e||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:s}:{errorMap:(i,c)=>{let{message:d}=t;return i.code==="invalid_enum_value"?{message:d??c.defaultError}:typeof c.data>"u"?{message:d??r??c.defaultError}:i.code!=="invalid_type"?{message:c.defaultError}:{message:d??e??c.defaultError}},description:s}}var x$j=class x{get description(){return this._def.description}_getType(n){return C$8(n.data)}_getOrReturnCtx(n,e){return e||{common:n.parent.common,data:n.data,parsedType:C$8(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return {status:new w$h,ctx:{common:n.parent.common,data:n.data,parsedType:C$8(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){let e=this._parse(n);if(M$i(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(n){let e=this._parse(n);return Promise.resolve(e)}parse(n,e){let r=this.safeParse(n,e);if(r.success)return r.data;throw r.error}safeParse(n,e){let r={common:{issues:[],async:e?.async??false,contextualErrorMap:e?.errorMap},path:e?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:C$8(n)},s=this._parseSync({data:n,path:r.path,parent:r});return be$c(r,s)}"~validate"(n){let e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:C$8(n)};if(!this["~standard"].async)try{let r=this._parseSync({data:n,path:[],parent:e});return O$p(r)?{value:r.value}:{issues:e.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=true),e.common={issues:[],async:true};}return this._parseAsync({data:n,path:[],parent:e}).then(r=>O$p(r)?{value:r.value}:{issues:e.common.issues})}async parseAsync(n,e){let r=await this.safeParseAsync(n,e);if(r.success)return r.data;throw r.error}async safeParseAsync(n,e){let r={common:{issues:[],contextualErrorMap:e?.errorMap,async:true},path:e?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:C$8(n)},s=this._parse({data:n,path:r.path,parent:r}),a=await(M$i(s)?s:Promise.resolve(s));return be$c(r,a)}refine(n,e){let r=s=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(s):e;return this._refinement((s,a)=>{let i=n(s),c=()=>a.addIssue(r$d({code:u$d.custom},r(s)));return typeof Promise<"u"&&i instanceof Promise?i.then(d=>d?true:(c(),false)):i?true:(c(),false)})}refinement(n,e){return this._refinement((r,s)=>n(r)?true:(s.addIssue(typeof e=="function"?e(r,s):e),false))}
40_refinement(n){return new D$i({schema:this,typeName:g$i.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)};}optional(){return R$e.create(this,this._def)}nullable(){return L$i.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return W$m.create(this)}promise(){return re$8.create(this,this._def)}or(n){return le$b.create([this,n],this._def)}and(n){return fe$b.create(this,n,this._def)}transform(n){return new D$i(s$e(r$d({},v$j(this._def)),{schema:this,typeName:g$i.ZodEffects,effect:{type:"transform",transform:n}}))}default(n){let e=typeof n=="function"?n:()=>n;return new ye$d(s$e(r$d({},v$j(this._def)),{innerType:this,defaultValue:e,typeName:g$i.ZodDefault}))}brand(){return new q$i(r$d({typeName:g$i.ZodBranded,type:this},v$j(this._def)))}catch(n){let e=typeof n=="function"?n:()=>n;return new _e$9(s$e(r$d({},v$j(this._def)),{innerType:this,catchValue:e,typeName:g$i.ZodCatch}))}describe(n){let e=this.constructor;return new e(s$e(r$d({},this._def),{description:n}))}pipe(n){return J$k.create(this,n)}readonly(){return ge$9.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Ue$c=/^c[^\s-]{8,}$/i,Be$c=/^[0-9a-z]+$/,Fe$d=/^[0-9A-HJKMNP-TV-Z]{26}$/i,We$c=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,qe$9=/^[a-z0-9_-]{21}$/i,Je$8=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ye$b=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,He$e=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ge$9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",se$c,Qe$c=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xe$8=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ke$c=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,et$c=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tt$9=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rt$9=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Te$d="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",st$a=new RegExp(`^${Te$d}$`);function Ze$f(t){let n="[0-5]\\d";t.precision?n=`${n}\\.\\d{${t.precision}}`:t.precision==null&&(n=`${n}(\\.\\d+)?`);let e=t.precision?"+":"?";return `([01]\\d|2[0-3]):[0-5]\\d(:${n})${e}`}function nt$b(t){return new RegExp(`^${Ze$f(t)}$`)}function Ce$9(t){let n=`${Te$d}T${Ze$f(t)}`,e=[];return e.push(t.local?"Z?":"Z"),t.offset&&e.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${e.join("|")})`,new RegExp(`^${n}$`)}function at$d(t,n){return !!((n==="v4"||!n)&&Qe$c.test(t)||(n==="v6"||!n)&&Ke$c.test(t))}function it$a(t,n){if(!Je$8.test(t))return false;try{let[e]=t.split(".");if(!e)return !1;let r=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),s=JSON.parse(atob(r));return !(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||n&&s.alg!==n)}catch{return false}}function ot$b(t,n){return !!((n==="v4"||!n)&&Xe$8.test(t)||(n==="v6"||!n)&&et$c.test(t))}var ee$8=(()=>{class t extends x$j{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f$e.string){let i=this._getOrReturnCtx(e);return l$b(i,{code:u$d.invalid_type,expected:f$e.string,received:i.parsedType}),y$d}let s=new w$h,a;for(let i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(
40a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.too_small,minimum:i.value,type:"string",inclusive:true,exact:false,message:i.message}),s.dirty());else if(i.kind==="max")e.data.length>i.value&&(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.too_big,maximum:i.value,type:"string",inclusive:true,exact:false,message:i.message}),s.dirty());else if(i.kind==="length"){let c=e.data.length>i.value,d=e.data.length<i.value;(c||d)&&(a=this._getOrReturnCtx(e,a),c?l$b(a,{code:u$d.too_big,maximum:i.value,type:"string",inclusive:true,exact:true,message:i.message}):d&&l$b(a,{code:u$d.too_small,minimum:i.value,type:"string",inclusive:true,exact:true,message:i.message}),s.dirty());}else if(i.kind==="email")He$e.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"email",code:u$d.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")se$c||(se$c=new RegExp(Ge$9,"u")),se$c.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"emoji",code:u$d.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")We$c.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"uuid",code:u$d.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")qe$9.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"nanoid",code:u$d.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")Ue$c.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"cuid",code:u$d.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")Be$c.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"cuid2",code:u$d.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")Fe$d.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"ulid",code:u$d.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(e.data);}catch{a=this._getOrReturnCtx(e,a),l$b(a,{validation:"url",code:u$d.invalid_string,message:i.message}),s.dirty();}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"regex",code:u$d.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?Ce$9(i).test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?st$a.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?nt$b(i).test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?Ye$b.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"duration",code:u$d.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?at$d(e.data,i.version)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"ip",code:u$d.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?it$a(e.data,i.alg)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"jwt",code:u$d.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?ot$b(e.data,i.version)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"cidr",code:u$d.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?tt$9.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"base64",code:u$d.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?rt$9.test(e.data)||(a=this._getOrReturnCtx(e,a),l$b(a,{validation:"base64url",code:u$d.invalid_string,message:i.message}),s.dirty()):b$d.assertNever(i);return {status:s.value,value:e.data}}_regex(e,r,s){return this.refinement(a=>e.test(a),r$d({validation:r,code:u$d.invalid_string},h$c.errToObj(s)))}_addCheck(e){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,e]}))}email(e){return this._addCheck(r$d({kind:"email"},h$c.errToObj(e)))}url(e){return this._addCheck(r$d({kind:"url"},h$c.errToObj(e)))}emoji(e){return this._addCheck(r$d({kind:"emoji"},h$c.errToObj(e)))}uuid(e){return this._addCheck(r$d({kind:"uuid"},h$c.errToObj(e)))}nanoid(e){return this._addCheck(r$d({kind:"nanoid"},h$c.errToObj(e)))}cuid(e){return this._addCheck(r$d({kind:"cuid"},h$c.errToObj(e)))}cuid2(e){return this._addCheck(r$d({kind:"cuid2"},h$c.errToObj(e)))}ulid(e){return this._addCheck(r$d({kind:"ulid"},h$c.errToObj(e)))}base64(e){return this._addCheck(r$d({kind:"base64"},h$c.errToObj(e)))}base64url(e){return this._addCheck(r$d({kind:"base64url"},h$c.errToObj(e)))}jwt(e){return this._addCheck(r$d({kind:"jwt"},h$c.errToObj(e)))}ip(e){return this._addCheck(r$d({kind:"ip"},h$c.errToObj(e)))}cidr(e){return this._addCheck(r$d({kind:"cidr"},h$c.errToObj(e)))}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:false,local:false,message:e}):this._addCheck(r$d({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??false,local:e?.local??false},h$c.errToObj(e?.message)))}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck(r$d({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision},h$c.errToObj(e?.message)))}duration(e){return this._addCheck(r$d({kind:"duration"},h$c.errToObj(e)))}regex(e,r){return this._addCheck(r$d({kind:"regex",regex:e},h$c.errToObj(r)))}includes(e,r){return this._addCheck(r$d({kind:"includes",value:e,position:r?.position},h$c.errToObj(r?.message)))}startsWith(e,r){return this._addCheck(r$d({kind:"startsWith",value:e},h$c.errToObj(r)))}endsWith(e,r){return this._addCheck(r$d({kind:"endsWith",value:e},h$c.errToObj(r)))}min(e,r){return this._addCheck(r$d({kind:"min",value:e},h$c.errToObj(r)))}max(e,r){return this._addCheck(r$d({kind:"max",value:e},h$c.errToObj(r)))}length(e,r){return this._addCheck(r$d({kind:"length",value:e},h$c.errToObj(r)))}nonempty(e){return this.min(1,h$c.errToObj(e))}trim(){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,{kind:"trim"}]}))}toLowerCase(){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,{kind:"toLowerCase"}]}))}toUpperCase(){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,{kind:"toUpperCase"}]}))}get isDatetime(){return !!this._def.checks.find(e=>e.kind==="datetime")}
40get isDate(){return !!this._def.checks.find(e=>e.kind==="date")}get isTime(){return !!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return !!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return !!this._def.checks.find(e=>e.kind==="email")}get isURL(){return !!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return !!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return !!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return !!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return !!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return !!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return !!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return !!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return !!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return !!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return !!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}return t.create=n=>new t(r$d({checks:[],typeName:g$i.ZodString,coerce:n?.coerce??false},v$j(n))),t})();function ct$9(t,n){let e=(t.toString().split(".")[1]||"").length,r=(n.toString().split(".")[1]||"").length,s=e>r?e:r,a=Number.parseInt(t.toFixed(s).replace(".","")),i=Number.parseInt(n.toFixed(s).replace(".",""));return a%i/10**s}var ae$b=(()=>{class t extends x$j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf;}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f$e.number){let i=this._getOrReturnCtx(e);return l$b(i,{code:u$d.invalid_type,expected:f$e.number,received:i.parsedType}),y$d}let s,a=new w$h;for(let i of this._def.checks)i.kind==="int"?b$d.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:false,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:false,message:i.message}),a.dirty()):i.kind==="multipleOf"?ct$9(e.data,i.value)!==0&&(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.not_finite,message:i.message}),a.dirty()):b$d.assertNever(i);return {status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,true,h$c.toString(r))}gt(e,r){return this.setLimit("min",e,false,h$c.toString(r))}lte(e,r){return this.setLimit("max",e,true,h$c.toString(r))}lt(e,r){return this.setLimit("max",e,false,h$c.toString(r))}setLimit(e,r,s,a){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:h$c.toString(a)}]}))}_addCheck(e){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,e]}))}int(e){return this._addCheck({kind:"int",message:h$c.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:false,message:h$c.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:false,message:h$c.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:true,message:h$c.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:true,message:h$c.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:h$c.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:h$c.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:h$c.toString(e)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:h$c.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return !!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&b$d.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return true;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value);}return Number.isFinite(r)&&Number.isFinite(e)}}return t.create=n=>new t(r$d({checks:[],typeName:g$i.ZodNumber,coerce:n?.coerce||false},v$j(n))),t})(),ie$c=(()=>{class t extends x$j{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte;}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data);}catch{return this._getInvalidInput(e)}if(this._getType(e)!==f$e.bigint)return this._getInvalidInput(e);let s,a=new w$h;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),l$b(s,{code:u$d.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):b$d.assertNever(i);return {status:a.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return l$b(r,{code:u$d.invalid_type,expected:f$e.bigint,received:r.parsedType}),y$d}gte(e,r){return this.setLimit("min",e,true,h$c.toString(r))}gt(e,r){return this.setLimit("min",e,false,h$c.toString(r))}lte(e,r){return this.setLimit("max",e,true,h$c.toString(r))}lt(e,r){return this.setLimit("max",e,false,h$c.toString(r))}setLimit(e,r,s,a){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:h$c.toString(a)}]}))}_addCheck(e){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,e]}))}
40positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:false,message:h$c.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:h$c.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:h$c.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:h$c.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:h$c.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}return t.create=n=>new t(r$d({checks:[],typeName:g$i.ZodBigInt,coerce:n?.coerce??false},v$j(n))),t})(),oe$b=(()=>{class t extends x$j{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==f$e.boolean){let s=this._getOrReturnCtx(e);return l$b(s,{code:u$d.invalid_type,expected:f$e.boolean,received:s.parsedType}),y$d}return T$i(e.data)}}return t.create=n=>new t(r$d({typeName:g$i.ZodBoolean,coerce:n?.coerce||false},v$j(n))),t})(),ce$9=(()=>{class t extends x$j{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f$e.date){let i=this._getOrReturnCtx(e);return l$b(i,{code:u$d.invalid_type,expected:f$e.date,received:i.parsedType}),y$d}if(Number.isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return l$b(i,{code:u$d.invalid_date}),y$d}let s=new w$h,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.too_small,message:i.message,inclusive:true,exact:false,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?e.data.getTime()>
40i.value&&(a=this._getOrReturnCtx(e,a),l$b(a,{code:u$d.too_big,message:i.message,inclusive:true,exact:false,maximum:i.value,type:"date"}),s.dirty()):b$d.assertNever(i);return {status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t(s$e(r$d({},this._def),{checks:[...this._def.checks,e]}))}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:h$c.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:h$c.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}return t.create=n=>new t(r$d({checks:[],coerce:n?.coerce||false,typeName:g$i.ZodDate},v$j(n))),t})(),Se$c=(()=>{class t extends x$j{_parse(e){if(this._getType(e)!==f$e.symbol){let s=this._getOrReturnCtx(e);return l$b(s,{code:u$d.invalid_type,expected:f$e.symbol,received:s.parsedType}),y$d}return T$i(e.data)}}return t.create=n=>new t(r$d({typeName:g$i.ZodSymbol},v$j(n))),t})(),de$9=(()=>{class t extends x$j{_parse(e){if(this._getType(e)!==f$e.undefined){let s=this._getOrReturnCtx(e);return l$b(s,{code:u$d.invalid_type,expected:f$e.undefined,received:s.parsedType}),y$d}return T$i(e.data)}}return t.create=n=>new t(r$d({typeName:g$i.ZodUndefined},v$j(n))),t})(),ue$7=(()=>{class t extends x$j{_parse(e){if(this._getType(e)!==f$e.null){let s=this._getOrReturnCtx(e);return l$b(s,{code:u$d.invalid_type,expected:f$e.null,received:s.parsedType}),y$d}return T$i(e.data)}}return t.create=n=>new t(r$d({typeName:g$i.ZodNull},v$j(n))),t})(),G$g=(()=>{class t extends x$j{constructor(){super(...arguments),this._any=true;}_parse(e){return T$i(e.data)}}return t.create=n=>new t(r$d({typeName:g$i.ZodAny},v$j(n))),t})(),F$g=(()=>{class t extends x$j{constructor(){super(...arguments),this._unknown=true;}_parse(e){return T$i(e.data)}}return t.create=n=>new t(r$d({typeName:g$i.ZodUnknown},v$j(n))),t})(),I$f=(()=>{class t extends x$j{_parse(e){let r=this._getOrReturnCtx(e);return l$b(r,{code:u$d.invalid_type,expected:f$e.never,received:r.parsedType}),y$d}}return t.create=n=>new t(r$d({typeName:g$i.ZodNever},v$j(n))),t})(),Ne$d=(()=>{class t extends x$j{_parse(e){if(this._getType(e)!==f$e.undefined){let s=this._getOrReturnCtx(e);return l$b(s,{code:u$d.invalid_type,expected:f$e.void,received:s.parsedType}),y$d}return T$i(e.data)}}return t.create=n=>new t(r$d({typeName:g$i.ZodVoid},v$j(n))),t})(),W$m=(()=>{class t extends x$j{_parse(e){let{ctx:r,status:s}=this._processInputParams(e),a=this._def;if(r.parsedType!==f$e.array)return l$b(r,{code:u$d.invalid_type,expected:f$e.array,received:r.parsedType}),y$d;if(a.exactLength!==null){let c=r.data.length>a.exactLength.value,d=r.data.length<a.exactLength.value;(c||d)&&(l$b(r,{code:c?u$d.too_big:u$d.too_small,minimum:d?a.exactLength.value:void 0,maximum:c?a.exactLength.value:void 0,type:"array",inclusive:true,exact:true,message:a.exactLength.message}),s.dirty());}if(a.minLength!==null&&r.data.length<a.minLength.value&&(l$b(r,{code:u$d.too_small,minimum:a.minLength.value,type:"array",inclusive:true,exact:false,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(l$b(r,{code:u$d.too_big,maximum:a.maxLength.value,type:"array",inclusive:true,exact:false,message:a.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((c,d)=>a.type._parseAsync(new Z$e(r,c,r.path,d)))).then(c=>w$h.mergeArray(s,c));let i=[...r.data].map((c,d)=>a.type._parseSync(new Z$e(r,c,r.path,d)));return w$h.mergeArray(s,i)}get element(){return this._def.type}min(e,r){return new t(s$e(r$d({},this._def),{minLength:{value:e,message:h$c.toString(r)}}))}max(e,r){return new t(s$e(r$d({},this._def),{maxLength:{value:e,message:h$c.toString(r)}}))}length(e,r){return new t(s$e(r$d({},this._def),{exactLength:{value:e,message:h$c.toString(r)}}))}nonempty(e){return this.min(1,e)}}return t.create=(n,e)=>new t(r$d({type:n,minLength:null,maxLength:null,exactLength:null,typeName:g$i.ZodArray},v$j(e))),t})();function V$j(t){if(t instanceof P$d){let n={};for(let e in t.shape){let r=t.shape[e];n[e]=R$e.create(V$j(r));}return new P$d(s$e(r$d({},t._def),{shape:()=>n}))}else return t instanceof W$m?new W$m(s$e(r$d({},t._def),{type:V$j(t.element)})):t instanceof R$e?R$e.create(V$j(t.unwrap())):t instanceof L$i?L$i.create(V$j(t.unwrap())):t instanceof z$l?z$l.create(t.items.map(n=>V$j(n))):t}var P$d=(()=>{class t extends x$j{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend;}_getCached(){if(this._cached!==null)return this._cached;
40let e=this._def.shape(),r=b$d.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==f$e.object){let m=this._getOrReturnCtx(e);return l$b(m,{code:u$d.invalid_type,expected:f$e.object,received:m.parsedType}),y$d}let{status:s,ctx:a}=this._processInputParams(e),{shape:i,keys:c}=this._getCached(),d=[];if(!(this._def.catchall instanceof I$f&&this._def.unknownKeys==="strip"))for(let m in a.data)c.includes(m)||d.push(m);let p=[];for(let m of c){let k=i[m],j=a.data[m];p.push({key:{status:"valid",value:m},value:k._parse(new Z$e(a,j,a.path,m)),alwaysSet:m in a.data});}if(this._def.catchall instanceof I$f){let m=this._def.unknownKeys;if(m==="passthrough")for(let k of d)p.push({key:{status:"valid",value:k},value:{status:"valid",value:a.data[k]}});else if(m==="strict")d.length>0&&(l$b(a,{code:u$d.unrecognized_keys,keys:d}),s.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else {let m=this._def.catchall;for(let k of d){let j=a.data[k];p.push({key:{status:"valid",value:k},value:m._parse(new Z$e(a,j,a.path,k)),alwaysSet:k in a.data});}}return a.common.async?Promise.resolve().then(async()=>{let m=[];for(let k of p){let j=await k.key,U=await k.value;m.push({key:j,value:U,alwaysSet:k.alwaysSet});}return m}).then(m=>w$h.mergeObjectSync(s,m)):w$h.mergeObjectSync(s,p)}get shape(){return this._def.shape()}strict(e){return h$c.errToObj,new t(r$d(s$e(r$d({},this._def),{unknownKeys:"strict"}),e!==void 0?{errorMap:(r,s)=>{let a=this._def.errorMap?.(r,s).message??s.defaultError;return r.code==="unrecognized_keys"?{message:h$c.errToObj(e).message??a}:{message:a}}}:{}))}strip(){return new t(s$e(r$d({},this._def),{unknownKeys:"strip"}))}passthrough(){return new t(s$e(r$d({},this._def),{unknownKeys:"passthrough"}))}extend(e){return new t(s$e(r$d({},this._def),{shape:()=>r$d(r$d({},this._def.shape()),e)}))}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>r$d(r$d({},this._def.shape()),e._def.shape()),typeName:g$i.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t(s$e(r$d({},this._def),{catchall:e}))}pick(e){let r={};for(let s of b$d.objectKeys(e))e[s]&&this.shape[s]&&(r[s]=this.shape[s]);return new t(s$e(r$d({},this._def),{shape:()=>r}))}omit(e){let r={};for(let s of b$d.objectKeys(this.shape))e[s]||(r[s]=this.shape[s]);return new t(s$e(r$d({},this._def),{shape:()=>r}))}deepPartial(){return V$j(this)}partial(e){let r={};for(let s of b$d.objectKeys(this.shape)){let a=this.shape[s];e&&!e[s]?r[s]=a:r[s]=a.optional();}return new t(s$e(r$d({},this._def),{shape:()=>r}))}required(e){let r={};for(let s of b$d.objectKeys(this.shape))if(e&&!e[s])r[s]=this.shape[s];else {let i=this.shape[s];for(;i instanceof R$e;)i=i._def.innerType;r[s]=i;}return new t(s$e(r$d({},this._def),{shape:()=>r}))}keyof(){return Re$b(b$d.objectKeys(this.shape))}}return t.create=(n,e)=>new t(r$d({shape:()=>n,unknownKeys:"strip",catchall:I$f.create(),typeName:g$i.ZodObject},v$j(e))),t.strictCreate=(n,e)=>new t(r$d({shape:()=>n,unknownKeys:"strict",catchall:I$f.create(),typeName:g$i.ZodObject},v$j(e))),t.lazycreate=(n,e)=>new t(r$d({shape:n,unknownKeys:"strip",catchall:I$f.create(),typeName:g$i.ZodObject},v$j(e))),t})(),le$b=(()=>{class t extends x$j{_parse(e){let{ctx:r}=this._processInputParams(e),s=this._def.options;function a(i){for(let d of i)if(d.result.status==="valid")return d.result;for(let d of i)if(d.result.status==="dirty")return r.common.issues.push(...d.ctx.common.issues),d.result;let c=i.map(d=>new S$n(d.ctx.common.issues));return l$b(r,{code:u$d.invalid_union,unionErrors:c}),y$d}if(r.common.async)return Promise.all(s.map(async i=>{let c=s$e(r$d({},r),{common:s$e(r$d({},r.common),{issues:[]}),parent:null});return {result:await i._parseAsync({data:r.data,path:r.path,parent:c}),ctx:c}})).then(a);{let i,c=[];for(let p of s){let m=s$e(r$d({},r),{common:s$e(r$d({},r.common),{issues:[]}),parent:null}),k=p._parseSync({data:r.data,path:r.path,parent:m});if(k.status==="valid")return k;k.status==="dirty"&&!i&&(i={result:k,ctx:m}),m.common.issues.length&&c.push(m.common.issues);}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let d=c.map(p=>new S$n(p));return l$b(r,{code:u$d.invalid_union,unionErrors:d}),y$d}}get options(){return this._def.options}}return t.create=(n,e)=>new t(r$d({options:n,typeName:g$i.ZodUnion},v$j(e))),t})(),A$g=t=>t instanceof he$c?A$g(t.schema):t instanceof D$i?A$g(t.innerType()):t instanceof pe$d?[t.value]:t instanceof te$9?t.options:t instanceof me$b?b$d.objectValues(t.enum):t instanceof ye$d?A$g(t._def.innerType):t instanceof de$9?[void 0]:t instanceof ue$7?[null]:t instanceof R$e?[void 0,...A$g(t.unwrap())]:t instanceof L$i?[null,...A$g(t.unwrap())]:t instanceof q$i||t instanceof ge$9?A$g(t.unwrap()):t instanceof _e$9?A$g(t._def.innerType):[],Q$c=class t extends x$j{_parse(n){let{ctx:e}=this._processInputParams(n);if(e.parsedType!==f$e.object)return l$b(e,{code:u$d.invalid_type,expected:f$e.object,received:e.parsedType}),y$d;let r=this.discriminator,s=e.data[r],a=this.optionsMap.get(s);return a?e.common.async?a._parseAsync({data:e.data,path:e.path,parent:e}):a._parseSync({data:e.data,path:e.path,parent:e}):(l$b(e,{code:u$d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),y$d)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(n,e,r){let s=new Map;for(let a of e){let i=A$g(a.shape[n]);if(!i.length)throw new Error(`A discriminator value for key \`${n}\` could not be extracted from all schema options`);for(let c of i){if(s.has(c))throw new Error(`Discriminator property ${String(n)} has duplicate value ${String(c)}`);s.set(c,a);}}return new t(r$d({typeName:g$i.ZodDiscriminatedUnion,discriminator:n,options:e,optionsMap:s},v$j(r)))}};function ne$b(t,n){let e=C$8(t),r=C$8(n);if(t===n)return {valid:true,data:t};if(e===f$e.object&&r===f$e.object){let s=b$d.objectKeys(n),a=b$d.objectKeys(t).filter(c=>s.indexOf(c)!==-1),i=r$d(r$d({},t),n);for(let c of a){let d=ne$b(t[c],n[c]);if(!d.valid)return {valid:false};i[c]=d.data;}return {valid:true,data:i}}else if(e===f$e.array&&r===f$e.array){if(t.length!==n.length)return {valid:false};let s=[];for(let a=0;a<t.length;a++){let i=t[a],c=n[a],d=ne$b(i,c);if(!d.valid)return {valid:false};s.push(d.data);}return {valid:true,data:s}}else return e===f$e.date&&r===f$e.date&&+t==+n?{valid:true,data:t}:{valid:false}}var fe$b=(()=>{class t extends x$j{_parse(e){let{status:r,ctx:s}=this._processInputParams(e),a=(i,c)=>{if(Y$i(i)||Y$i(c))return y$d;let d=ne$b(i.value,c.value);return d.valid?((H$i(i)||H$i(c))&&r.dirty(),{status:r.value,value:d.data}):(l$b(s,{code:u$d.invalid_intersection_types}),y$d)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,c])=>a(i,c)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}return t.create=(n,e,r)=>new t(r$d({left:n,right:e,typeName:g$i.ZodIntersection},v$j(r))),t})(),z$l=(()=>{class t extends x$j{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==f$e.array)return l$b(s,{code:u$d.invalid_type,expected:f$e.array,received:s.parsedType}),y$d;if(s.data.length<this._def.items.length)return l$b(s,{code:u$d.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"}),y$d;!this._def.rest&&s.data.length>this._def.items.length&&(l$b(s,{code:u$d.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"}),r.dirty());let i=[...s.data].map((c,d)=>{let p=this._def.items[d]||this._def.rest;return p?p._parse(new Z$e(s,c,s.path,d)):null}).filter(c=>!!c);return s.common.async?Promise.all(i).then(c=>w$h.mergeArray(r,c)):w$h.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new t(s$e(r$d({},this._def),{rest:e}))}}return t.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new t(r$d({items:n,typeName:g$i.ZodTuple,rest:null},v$j(e)))},t})(),X$h=class t extends x$j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){let{status:e,ctx:r}=this._processInputParams(n);if(r.parsedType!==f$e.object)return l$b(r,{code:u$d.invalid_type,expected:f$e.object,received:r.parsedType}),y$d;let s=[],a=this._def.keyType,i=this._def.valueType;for(let c in r.data)s.push({key:a._parse(new Z$e(r,c,r.path,c)),value:i._parse(new Z$e(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?w$h.mergeObjectAsync(e,s):w$h.mergeObjectSync(e,s)}
40get element(){return this._def.valueType}static create(n,e,r){return e instanceof x$j?new t(r$d({keyType:n,valueType:e,typeName:g$i.ZodRecord},v$j(r))):new t(r$d({keyType:ee$8.create(),valueType:n,typeName:g$i.ZodRecord},v$j(e)))}},Ae$b=(()=>{class t extends x$j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==f$e.map)return l$b(s,{code:u$d.invalid_type,expected:f$e.map,received:s.parsedType}),y$d;let a=this._def.keyType,i=this._def.valueType,c=[...s.data.entries()].map(([d,p],m)=>({key:a._parse(new Z$e(s,d,s.path,[m,"key"])),value:i._parse(new Z$e(s,p,s.path,[m,"value"]))}));if(s.common.async){let d=new Map;return Promise.resolve().then(async()=>{for(let p of c){let m=await p.key,k=await p.value;if(m.status==="aborted"||k.status==="aborted")return y$d;(m.status==="dirty"||k.status==="dirty")&&r.dirty(),d.set(m.value,k.value);}return {status:r.value,value:d}})}else {let d=new Map;for(let p of c){let m=p.key,k=p.value;if(m.status==="aborted"||k.status==="aborted")return y$d;(m.status==="dirty"||k.status==="dirty")&&r.dirty(),d.set(m.value,k.value);}return {status:r.value,value:d}}}}return t.create=(n,e,r)=>new t(r$d({valueType:e,keyType:n,typeName:g$i.ZodMap},v$j(r))),t})(),Oe$a=(()=>{class t extends x$j{_parse(e){let{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==f$e.set)return l$b(s,{code:u$d.invalid_type,expected:f$e.set,received:s.parsedType}),y$d;let a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(l$b(s,{code:u$d.too_small,minimum:a.minSize.value,type:"set",inclusive:true,exact:false,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(l$b(s,{code:u$d.too_big,maximum:a.maxSize.value,type:"set",inclusive:true,exact:false,message:a.maxSize.message}),r.dirty());let i=this._def.valueType;function c(p){let m=new Set;for(let k of p){if(k.status==="aborted")return y$d;k.status==="dirty"&&r.dirty(),m.add(k.value);}return {status:r.value,value:m}}let d=[...s.data.values()].map((p,m)=>i._parse(new Z$e(s,p,s.path,m)));return s.common.async?Promise.all(d).then(p=>c(p)):c(d)}min(e,r){return new t(s$e(r$d({},this._def),{minSize:{value:e,message:h$c.toString(r)}}))}max(e,r){return new t(s$e(r$d({},this._def),{maxSize:{value:e,message:h$c.toString(r)}}))}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}return t.create=(n,e)=>new t(r$d({valueType:n,minSize:null,maxSize:null,typeName:g$i.ZodSet},v$j(e))),t})(),K$o=class t extends x$j{constructor(){super(...arguments),this.validate=this.implement;}_parse(n){let{ctx:e}=this._processInputParams(n);if(e.parsedType!==f$e.function)return l$b(e,{code:u$d.invalid_type,expected:f$e.function,received:e.parsedType}),y$d;function r(c,d){return B$o({data:c,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,$$l(),N$c].filter(p=>!!p),issueData:{code:u$d.invalid_arguments,argumentsError:d}})}function s(c,d){return B$o({data:c,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,$$l(),N$c].filter(p=>!!p),issueData:{code:u$d.invalid_return_type,returnTypeError:d}})}let a={errorMap:e.common.contextualErrorMap},i=e.data;if(this._def.returns instanceof re$8){let c=this;return T$i(async function(...d){let p=new S$n([]),m=await c._def.args.parseAsync(d,a).catch(U=>{throw p.addIssue(r(d,U)),p}),k=await Reflect.apply(i,this,m);return await c._def.returns._def.type.parseAsync(k,a).catch(U=>{throw p.addIssue(s(k,U)),p})})}else {let c=this;return T$i(function(...d){let p=c._def.args.safeParse(d,a);if(!p.success)throw new S$n([r(d,p.error)]);let m=Reflect.apply(i,this,p.data),k=c._def.returns.safeParse(m,a);if(!k.success)throw new S$n([s(m,k.error)]);return k.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...n){return new t(s$e(r$d({},this._def),{args:z$l.create(n).rest(F$g.create())}))}returns(n){return new t(s$e(r$d({},this._def),{returns:n}))}implement(n){return this.parse(n)}strictImplement(n){return this.parse(n)}static create(n,e,r){return new t(r$d({args:n||z$l.create([]).rest(F$g.create()),returns:e||F$g.create(),typeName:g$i.ZodFunction},v$j(r)))}},he$c=(()=>{class t extends x$j{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}return t.create=(n,e)=>new t(r$d({getter:n,typeName:g$i.ZodLazy},v$j(e))),t})(),pe$d=(()=>{class t extends x$j{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return l$b(r,{received:r.data,code:u$d.invalid_literal,expected:this._def.value}),y$d}
40return {status:"valid",value:e.data}}get value(){return this._def.value}}return t.create=(n,e)=>new t(r$d({value:n,typeName:g$i.ZodLiteral},v$j(e))),t})();function Re$b(t,n){return new te$9(r$d({values:t,typeName:g$i.ZodEnum},v$j(n)))}var te$9=(()=>{class t extends x$j{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),s=this._def.values;return l$b(r,{expected:b$d.joinValues(s),received:r.parsedType,code:u$d.invalid_type}),y$d}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),s=this._def.values;return l$b(r,{received:r.data,code:u$d.invalid_enum_value,options:s}),y$d}return T$i(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,r$d(r$d({},this._def),r))}exclude(e,r=this._def){return t.create(this.options.filter(s=>!e.includes(s)),r$d(r$d({},this._def),r))}}return t.create=Re$b,t})(),me$b=(()=>{class t extends x$j{_parse(e){let r=b$d.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==f$e.string&&s.parsedType!==f$e.number){let a=b$d.objectValues(r);return l$b(s,{expected:b$d.joinValues(a),received:s.parsedType,code:u$d.invalid_type}),y$d}if(this._cache||(this._cache=new Set(b$d.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=b$d.objectValues(r);return l$b(s,{received:s.data,code:u$d.invalid_enum_value,options:a}),y$d}return T$i(e.data)}get enum(){return this._def.values}}return t.create=(n,e)=>new t(r$d({values:n,typeName:g$i.ZodNativeEnum},v$j(e))),t})(),re$8=(()=>{class t extends x$j{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==f$e.promise&&r.common.async===false)return l$b(r,{code:u$d.invalid_type,expected:f$e.promise,received:r.parsedType}),y$d;let s=r.parsedType===f$e.promise?r.data:Promise.resolve(r.data);return T$i(s.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}return t.create=(n,e)=>new t(r$d({type:n,typeName:g$i.ZodPromise},v$j(e))),t})(),D$i=(()=>{class t extends x$j{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g$i.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:s}=this._processInputParams(e),a=this._def.effect||null,i={addIssue:c=>{l$b(s,c),c.fatal?r.abort():r.dirty();},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){let c=a.transform(s.data,i);if(s.common.async)return Promise.resolve(c).then(async d=>{if(r.value==="aborted")return y$d;let p=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return p.status==="aborted"?y$d:p.status==="dirty"?E$j(p.value):r.value==="dirty"?E$j(p.value):p});{if(r.value==="aborted")return y$d;let d=this._def.schema._parseSync({data:c,path:s.path,parent:s});return d.status==="aborted"?y$d:d.status==="dirty"?E$j(d.value):r.value==="dirty"?E$j(d.value):d}}if(a.type==="refinement"){let c=d=>{let p=a.refinement(d,i);if(s.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===false){let d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?y$d:(d.status==="dirty"&&r.dirty(),c(d.value),{status:r.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?y$d:(d.status==="dirty"&&r.dirty(),c(d.value).then(()=>({status:r.value,value:d.value}))))}if(a.type==="transform")if(s.common.async===false){let c=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!O$p(c))return y$d;let d=a.transform(c.value,i);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return {status:r.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(c=>O$p(c)?Promise.resolve(a.transform(c.value,i)).then(d=>({status:r.value,value:d})):y$d);b$d.assertNever(a);}}return t.create=(n,e,r)=>new t(r$d({schema:n,typeName:g$i.ZodEffects,effect:e},v$j(r))),t.createWithPreprocess=(n,e,r)=>new t(r$d({schema:e,effect:{type:"preprocess",transform:n},typeName:g$i.ZodEffects},v$j(r))),t})();var R$e=(()=>{class t extends x$j{_parse(e){return this._getType(e)===f$e.undefined?T$i(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}return t.create=(n,e)=>new t(r$d({innerType:n,typeName:g$i.ZodOptional},v$j(e))),t})(),L$i=(()=>{class t extends x$j{_parse(e){return this._getType(e)===f$e.null?T$i(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}return t.create=(n,e)=>new t(r$d({innerType:n,typeName:g$i.ZodNullable},v$j(e))),t})(),ye$d=(()=>{class t extends x$j{_parse(e){let{ctx:r}=this._processInputParams(e),s=r.data;return r.parsedType===f$e.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}return t.create=(n,e)=>new t(r$d({innerType:n,typeName:g$i.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default},v$j(e))),t})(),_e$9=(()=>{class t extends x$j{_parse(e){let{ctx:r}=this._processInputParams(e),s=s$e(r$d({},r),{common:s$e(r$d({},r.common),{issues:[]})}),a=this._def.innerType._parse({data:s.data,path:s.path,parent:r$d({},s)});return M$i(a)?a.then(i=>
40({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new S$n(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new S$n(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}return t.create=(n,e)=>new t(r$d({innerType:n,typeName:g$i.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch},v$j(e))),t})(),Ee$c=(()=>{class t extends x$j{_parse(e){if(this._getType(e)!==f$e.nan){let s=this._getOrReturnCtx(e);return l$b(s,{code:u$d.invalid_type,expected:f$e.nan,received:s.parsedType}),y$d}return {status:"valid",value:e.data}}}return t.create=n=>new t(r$d({typeName:g$i.ZodNaN},v$j(n))),t})(),dt$a=Symbol("zod_brand"),q$i=class q extends x$j{_parse(n){let{ctx:e}=this._processInputParams(n),r=e.data;return this._def.type._parse({data:r,path:e.path,parent:e})}unwrap(){return this._def.type}},J$k=class t extends x$j{_parse(n){let{status:e,ctx:r}=this._processInputParams(n);if(r.common.async)return (async()=>{let a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?y$d:a.status==="dirty"?(e.dirty(),E$j(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{let s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?y$d:s.status==="dirty"?(e.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(n,e){return new t({in:n,out:e,typeName:g$i.ZodPipeline})}},ge$9=(()=>{class t extends x$j{_parse(e){let r=this._def.innerType._parse(e),s=a=>(O$p(a)&&(a.value=Object.freeze(a.value)),a);return M$i(r)?r.then(a=>s(a)):s(r)}unwrap(){return this._def.innerType}}return t.create=(n,e)=>new t(r$d({innerType:n,typeName:g$i.ZodReadonly},v$j(e))),t})();function we$d(t,n){let e=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t;return typeof e=="string"?{message:e}:e}function Ie$8(t,n={},e){return t?G$g.create().superRefine((r,s)=>{let a=t(r);if(a instanceof Promise)return a.then(i=>{if(!i){let c=we$d(n,r),d=c.fatal??e??true;s.addIssue(s$e(r$d({code:"custom"},c),{fatal:d}));}});if(!a){let i=we$d(n,r),c=i.fatal??e??true;s.addIssue(s$e(r$d({code:"custom"},i),{fatal:c}));}}):G$g.create()}var ut$d={object:P$d.lazycreate},g$i=(function(t){return t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly",t})(g$i||{});var lt$b=(t,n={message:`Input not instance of ${t.name}`})=>Ie$8(e=>e instanceof t,n),je$c=ee$8.create,$e$c=ae$b.create,ft$a=Ee$c.create,ht$b=ie$c.create,Me$c=oe$b.create,pt$b=ce$9.create,mt$b=Se$c.create,yt$d=de$9.create,_t$e=ue$7.create,gt$d=G$g.create,vt$b=F$g.create,xt$b=I$f.create,kt$b=Ne$d.create,bt$f=W$m.create,wt$g=P$d.create,Tt$e=P$d.strictCreate,Zt$a=le$b.create,Ct$f=Q$c.create,St$c=fe$b.create,Nt$b=z$l.create,At$9=X$h.create,Ot$9=Ae$b.create,Rt$c=Oe$a.create,Et$b=K$o.create,It$b=he$c.create,jt$b=pe$d.create,$t$9=te$9.create,Mt$a=me$b.create,Vt$8=re$8.create,Pt$9=D$i.create,zt$b=R$e.create,Dt$a=L$i.create,Lt$a=D$i.createWithPreprocess,Ut$a=J$k.create,Bt$9=()=>je$c().optional(),Ft$8=()=>$e$c().optional(),Wt$b=()=>Me$c().optional(),qt$8={string:t=>ee$8.create(s$e(r$d({},t),{coerce:true})),number:t=>ae$b.create(s$e(r$d({},t),{coerce:true})),boolean:t=>oe$b.create(s$e(r$d({},t),{coerce:true})),bigint:t=>ie$c.create(s$e(r$d({},t),{coerce:true})),date:t=>ce$9.create(s$e(r$d({},t),{coerce:true}))};var Jt$a=y$d;var kr$4=ve$b;var m$a=["wide","narrow"];ve$b.enum(m$a);function h$b(r){return typeof r=="object"&&r!==null&&"hasLiveVersion"in r&&r.hasLiveVersion===false&&typeof r.parentId=="string"}function O$o(r){return !!(r?.startDasboardId||r?.organisation?.startDashboardId||r?.offerStartDashboardId)}function D$h(r,e){return r?.startDasboardId?{dashboardId:String(r.startDasboardId),source:"member"}:r?.organisation?.startDashboardId?{dashboardId:String(r.organisation.startDashboardId),source:"organisation"}:r?.offerStartDashboardId?{dashboardId:String(r.offerStartDashboardId),source:"offer"}:e?{dashboardId:String(e),source:"global"}
40:{dashboardId:null,source:"none"}}function P$c(r,e){return D$h(r,e).dashboardId}var i$b=class i extends Error{constructor(e){super(`Portal ${e} not found`),this.dashboardId=e,this.name="PortalNotFoundError";}},E$i="client-portal",I$e="client-portal-versions";function S$m(r){if(!(r instanceof H$j)||r.status!==404)return false;let e=r.error;return typeof e=="string"?e.includes("DASHBOARD_NOT_FOUND"):e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message.includes("DASHBOARD_NOT_FOUND"):false}var v$i=(()=>{class r{constructor(){this._http=g$k(Ce$a);}listVersionsForPreview(n,t){return qE$1(this._http.generic(c$h.LIST_VERSIONS_FOR_PREVIEW(n,t)))}async getPortal(n,t,s){let o;try{o=await qE$1(this._http.generic(c$h.GET_WIDGET(n,t,s)));}catch(u){throw S$m(u)?new i$b(t):u}if(!o)throw new i$b(t);return o}portalQueryConfig(n,t,s){let o=s||null;return {queryKey:[E$i,n,t,o],queryFn:()=>{if(!n||!t)throw new Error("portalQueryConfig invoked with missing schoolId/dashboardId");return this.getPortal(n,t,o??void 0)},enabled:!!n&&!!t}}versionsQueryConfig(n,t){return {queryKey:[I$e,n,t],queryFn:()=>n&&t?this.listVersionsForPreview(n,t):Promise.resolve([]),enabled:!!n&&!!t}}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=L$l({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();function R$d(e){if(!e)return {type:"heroIcon",icon:"heroChatBubbleOvalLeftEllipsis",color:null};if(e.startsWith("hero")){let[n,o]=e.split(":");return {type:"heroIcon",icon:n,color:o||null}}if(e.startsWith("social")){let[n,o]=e.split(":");return {type:"socialIcon",icon:n,color:o||null}}if(e.startsWith("app-")){let[n,o]=e.split(":");return {type:"appIcon",icon:n,color:o||null}}return e.startsWith("#")||e.startsWith("rgb")?{type:"color",icon:null,color:e}:new RegExp("\\p{Extended_Pictographic}","u").test(e)?{type:"emoji",icon:e,color:null}:new RegExp("\\p{Regional_Indicator}","u").test(e)?{type:"emoji",icon:e,color:null}:{type:"color",icon:e,color:"#e5e7eb"}}({changeDetection:xl$1.OnPush});var h$a=(()=>{class e{constructor(){this._elementRef=g$k(gt$f),this._renderer=g$k(Fr$6),this._viewInitialised=false;}ngOnChanges(t){t.name&&this.name&&this._viewInitialised&&this.loadIcons(this.name);}ngAfterViewInit(){this._viewInitialised=true,this.name&&this.loadIcons(this.name);}async loadIcons(t){let n=await this.importIcons();n[t]&&this._renderer.setProperty(this._elementRef.nativeElement,"innerHTML",n[t]);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-lazy-icon"]],hostAttrs:[1,"inline-flex","items-center","justify-center"],inputs:{name:"name"},features:[Ar$8],decls:2,vars:0,consts:[[1,"inherit-size","flex","items-center","justify-center","p-[0.125rem]"],[1,"bg-mspot-neutral-300","h-full","w-full","rounded-full"]],template:function(n,o){n&1&&(jd$1(0,"span",0),Bv$1(1,"span",1),Vd$1());},styles:["[_nghost-%COMP%] svg{width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);transform:scale(.85);overflow:visible}[_nghost-%COMP%] span.inherit-size{width:inherit;height:inherit}"]});}}return e})();var T$h=(()=>{class e extends h$a{async importIcons(){return (await import('./chunk-Bo1SpbsR.js')).appIconMap}static{this.\u0275fac=(()=>{let t;return function(o){return (t||(t=Wg$1(e)))(o||e)}})();}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-app-lazy-icon"]],hostAttrs:[1,"inline-flex","items-center","justify-center"],features:[pv$1],decls:2,vars:0,consts:[[1,"inherit-size","flex","items-center","justify-center","p-[0.125rem]"],[1,"bg-mspot-neutral-300","h-full","w-full","rounded-full"]],template:function(n,o){n&1&&(jd$1(0,"span",0),Bv$1(1,"span",1),Vd$1());},dependencies:[kx$1],styles:["[_nghost-%COMP%] svg{width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);transform:scale(.85);overflow:visible}[_nghost-%COMP%] span.inherit-size{width:inherit;height:inherit}"]});}}return e})();var A$f=(()=>{class e extends h$a{async importIcons(){return (await import('./chunk-Bcq2d-i4.js')).heroIconsOutline}static{this.\u0275fac=(()=>{let t;return function(o){return (t||(t=Wg$1(e)))(o||e)}})();}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-hero-lazy-icon"]],hostAttrs:[1,"inline-flex","items-center","justify-center"],features:[pv$1],decls:2,vars:0,consts:[[1,"inherit-size","flex","items-center","justify-center","p-[0.125rem]"],[1,"bg-mspot-neutral-300","h-full","w-full","rounded-full"]],template:function(n,o){n&1&&(jd$1(0,"span",0),Bv$1(1,"span",1),Vd$1());},dependencies:[kx$1],styles:["[_nghost-%COMP%] span.inherit-size{width:inherit;height:inherit}"]});}}return e})();var H$h=(()=>{class e extends h$a{async importIcons(){return (await import('./chunk-BUwhj7Xs.js')).SocialIconMap}static{this.\u0275fac=(()=>{let t;return function(o){return (t||(t=Wg$1(e)))(o||e)}})();}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-social-lazy-icon"]],hostAttrs:[1,"inline-flex","h-[1em]","w-[1em]","items-center","justify-center"],features:[pv$1],decls:2,vars:0,consts:[[1,"inherit-size","flex","items-center","justify-center","p-[0.125rem]"],[1,"bg-mspot-neutral-300","h-full","w-full","rounded-full"]],template:function(n,o){n&1&&(jd$1(0,"span",0),Bv$1(1,"span",1),Vd$1());},dependencies:[kx$1],styles:["[_nghost-%COMP%]{--inherit-size-width: inherit;--inherit-size-height: inherit}[_nghost-%COMP%] svg{width:100%;height:100%;transform:scale(.85)}span.inherit-size[_ngcontent-%COMP%]{width:var(--inherit-size-width);height:var(--inherit-size-height)}"]});}}return e})();var B$n=e=>({backgroundColor:e}),_$e=e=>({"font-size":e});function W$l(e,d){if(e&1&&(ta$3(0,"span",1),Vv$1(1,"span",4),Pd$1()),e&2){let t=yM();jv$1("ngClass",t.widgetColorPadding),uT(),jv$1("ngStyle",fN(2,B$n,t.transformedIcon.color));}}function N$b(e,d){if(e&1&&Vv$1(0,"mspot-hero-lazy-icon",5),e&2){let t=yM();Ma$2("color",t.transformedIcon.color),jv$1("ngStyle",fN(4,_$e,t.widgetFontSize))("name",t.transformedIcon.icon||"hero-academic-cap");}}function $$k(e,d){if(e&1&&Vv$1(0,"mspot-social-lazy-icon",5),e&2){let t=yM();Ma$2("color",t.transformedIcon.color),jv$1("ngStyle",fN(4,_$e,t.widgetFontSize))("name",t.transformedIcon.icon||"");}}function k$j(e,d){if(e&1&&Vv$1(0,"mspot-app-lazy-icon",5),e&2){let t=yM();Ma$2("color",t.transformedIcon.color),jv$1("ngStyle",fN(4,_$e,t.widgetFontSize))("name",t.transformedIcon.icon||"");}}function U$g(e,d){if(e&1&&(ta$3(0,"span",3),QM(1),Pd$1()),e&2){let t=yM();jv$1("ngStyle",fN(2,_$e,t.widgetFontSize)),uT(),yD(t.transformedIcon.icon||"\u{1F4AC}");}}var V$i=new Set(["heroHashtag"]),fe$a=(()=>{class e{constructor(){this.transformedIcon={type:"heroIcon",icon:"heroChatBubbleOvalLeftEllipsis",color:null},this.size="small";}set icon(t){this.transformedIcon=R$d(t);}get widgetSizeClass(){switch(this.size){case "xs":return "w-4 h-4";
40case "xs-plus":return "w-[var(--nav-row-icon,1.125rem)] h-[var(--nav-row-icon,1.125rem)]";case "small":return "w-5 h-5";case "medium":return "w-6 h-6";case "large":return "w-[54px] h-[54px]";default:return "w-5 h-5"}}get widgetFontSize(){switch(this._glyphSize){case "xs":return "1rem";case "xs-plus":return "var(--nav-row-icon, 1.125rem)";case "small":return "1.25rem";case "medium":return "1.5rem";case "large":return "54px";default:return "1.25rem"}}get widgetColorPadding(){return this.size==="xs-plus"?"p-[0.125rem]":"p-[0.1875rem]"}get _glyphSize(){return this.transformedIcon.type!=="heroIcon"||!this.transformedIcon.icon||!V$i.has(this.transformedIcon.icon)?this.size:this.size==="xs-plus"?"xs":this.size==="small"?"xs-plus":this.size}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-emoji-icon-color"]],inputs:{size:"size",icon:"icon"},decls:6,vars:2,consts:[[1,"flex","items-center","justify-center",3,"ngClass"],[1,"flex","h-full","w-full","items-center","justify-center",3,"ngClass"],[1,"h-full","w-full",3,"color","ngStyle","name"],[1,"scale-90",3,"ngStyle"],[1,"h-full","w-full","rounded-full",3,"ngStyle"],[1,"h-full","w-full",3,"ngStyle","name"]],template:function(n,o){if(n&1&&(ta$3(0,"div",0),eM$1(1,W$l,2,4,"span",1)(2,N$b,1,6,"mspot-hero-lazy-icon",2)(3,$$k,1,6,"mspot-social-lazy-icon",2)(4,k$j,1,6,"mspot-app-lazy-icon",2)(5,U$g,2,4,"span",3),Pd$1()),n&2){let y;jv$1("ngClass",o.widgetSizeClass),uT(),tM$1((y=o.transformedIcon.type)==="color"?1:y==="heroIcon"?2:y==="socialIcon"?3:y==="appIcon"?4:y==="emoji"?5:-1);}},dependencies:[A$f,H$h,T$h,Ex$1,mx$1],encapsulation:2});}}return e})();var w$g=new b$g("A stream with the current schoolId"),u$c=new b$g("A stream with the current uid"),x$i={provide:u$c,deps:[nt$c],useFactory:f$d};function f$d(e){return ie$d(e).pipe(Pt$b(o=>!!o),st$c(o=>o.uid),pp$2(),vp({refCount:true,bufferSize:1}))}var S$l=new b$g("Hostname",{providedIn:"root",factory:()=>g$k(Vr$7).hostname}),U$f=new b$g("User files Firebase Storage bucket");var I$d=typeof window>"u"||"Deno"in globalThis;function v$h(){}function Ft$7(t,e){return typeof t=="function"?t(e):t}function z$k(t){return typeof t=="number"&&t>=0&&t!==1/0}function ot$a(t,e){return Math.max(t+(e||0)-Date.now(),0)}function M$h(t,e){return typeof t=="function"?t(e):t}function R$c(t,e){return typeof t=="function"?t(e):t}function at$c(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:u}=t;if(l){if(r){if(e.queryHash!==W$k(l,e.options))return false}else if(!U$e(e.queryKey,l))return false}if(s!=="all"){let n=e.isActive();if(s==="active"&&!n||s==="inactive"&&n)return false}return !(typeof u=="boolean"&&e.isStale()!==u||i&&i!==e.state.fetchStatus||o&&!o(e))}function ut$c(t,e){let{exact:s,status:r,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return false;if(s){if(E$h(e.options.mutationKey)!==E$h(o))return false}else if(!U$e(e.options.mutationKey,o))return false}return !(r&&e.state.status!==r||i&&!i(e))}function W$k(t,e){return (e?.queryKeyHashFn||E$h)(t)}function E$h(t){return JSON.stringify(t,(e,s)=>mt$a(s)?Object.keys(s).sort().reduce((r,i)=>(r[i]=s[i],r),{}):s)}function U$e(t,e){return t===e?true:typeof t!=typeof e?false:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(s=>U$e(t[s],e[s])):false}function gt$c(t,e){if(t===e)return t;let s=Qt$9(t)&&Qt$9(e);if(s||mt$a(t)&&mt$a(e)){let r=s?t:Object.keys(t),i=r.length,o=s?e:Object.keys(e),l=o.length,u=s?[]:{},n=new Set(r),f=0;for(let c=0;c<l;c++){let y=s?c:o[c];(!s&&n.has(y)||s)&&t[y]===void 0&&e[y]===void 0?(u[y]=void 0,f++):(u[y]=gt$c(t[y],e[y]),u[y]===t[y]&&t[y]!==void 0&&f++);}return i===l&&f===i?t:u}return e}function Z$d(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return false;for(let s in t)if(t[s]!==e[s])return false;return true}function Qt$9(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function mt$a(t){if(!Mt$9(t))return false;let e=t.constructor;if(e===void 0)return true;let s=e.prototype;return !(!Mt$9(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Mt$9(t){return Object.prototype.toString.call(t)==="[object Object]"}function Dt$9(t){return new Promise(e=>{setTimeout(e,t);})}function $$j(t,e,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,e):s.structuralSharing!==false?gt$c(t,e):e}function Vt$7(t){return t}function Et$a(t,e,s=0){let r=[...t,e];return s&&r.length>s?r.slice(1):r}function xt$a(t,e,s=0){let r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}var B$m=Symbol();function ct$8(t,e){return !t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===B$m?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function J$j(t,e){return typeof t=="function"?t(...e):!!t}var Tt$d=t=>setTimeout(t,0);function zt$a(){let t=[],e=0,s=u=>{u();},r=u=>{u();},i=Tt$d,o=u=>{e?t.push(u):i(()=>{s(u);});},l=()=>{let u=t;t=[],u.length&&i(()=>{r(()=>{u.forEach(n=>{s(n);});});});};
40return {batch:u=>{let n;e++;try{n=u();}finally{e--,e||l();}return n},batchCalls:u=>(...n)=>{o(()=>{u(...n);});},schedule:o,setNotifyFunction:u=>{s=u;},setBatchNotifyFunction:u=>{r=u;},setScheduler:u=>{i=u;}}}var g$h=zt$a();var j$o=class j{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this);}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe();}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var Wt$a=class Wt extends j$o{#e;#t;#s;constructor(){super(),this.#s=t=>{if(!I$d&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,false),()=>{window.removeEventListener("visibilitychange",e);}}};}onSubscribe(){this.#t||this.setEventListener(this.#s);}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0);}setEventListener(t){this.#s=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus();});}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus());}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t);});}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},K$n=new Wt$a;var $t$8=class $t extends j$o{#e=true;#t;#s;constructor(){super(),this.#s=t=>{if(!I$d&&window.addEventListener){let e=()=>t(true),s=()=>t(false);return window.addEventListener("online",e,false),window.addEventListener("offline",s,false),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s);}}};}onSubscribe(){this.#t||this.setEventListener(this.#s);}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0);}setEventListener(t){this.#s=t,this.#t?.(),this.#t=t(this.setOnline.bind(this));}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(s=>{s(t);}));}isOnline(){return this.#e}},L$h=new $t$8;function Y$h(){let t,e,s=new Promise((i,o)=>{t=i,e=o;});s.status="pending",s.catch(()=>{});function r(i){Object.assign(s,i),delete s.resolve,delete s.reject;}return s.resolve=i=>{r({status:"fulfilled",value:i}),t(i);},s.reject=i=>{r({status:"rejected",reason:i}),e(i);},s}function Jt$9(t){return Math.min(1e3*2**t,3e4)}function vt$a(t){return (t??"online")==="online"?L$h.isOnline():true}var bt$e=class bt extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent;}};function ht$a(t){return t instanceof bt$e}function lt$a(t){let e=false,s=0,r=false,i,o=Y$h(),l=p=>{r||(h(new bt$e(p)),t.abort?.());},u=()=>{e=true;},n=()=>{e=false;},f=()=>K$n.isFocused()&&(t.networkMode==="always"||L$h.isOnline())&&t.canRun(),c=()=>vt$a(t.networkMode)&&t.canRun(),y=p=>{r||(r=true,t.onSuccess?.(p),i?.(),o.resolve(p));},h=p=>{r||(r=true,t.onError?.(p),i?.(),o.reject(p));},b=()=>new Promise(p=>{i=P=>{(r||f())&&p(P);},t.onPause?.();}).then(()=>{i=void 0,r||t.onContinue?.();}),m=()=>{if(r)return;let p,P=s===0?t.initialPromise:void 0;try{p=P??t.fn();}catch(O){p=Promise.reject(O);}Promise.resolve(p).then(y).catch(O=>{if(r)return;let Q=t.retry??(I$d?0:3),x=t.retryDelay??Jt$9,q=typeof x=="function"?x(s,O):x,k=Q===true||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,O);if(e||!k){h(O);return}s++,t.onFail?.(s,O),Dt$9(q).then(()=>f()?void 0:b()).then(()=>{e?h(O):m();});});};return {promise:o,cancel:l,continue:()=>(i?.(),o),cancelRetry:u,continueRetry:n,canStart:c,start:()=>(c()?m():b().then(m),o)}}var ft$9=class ft{#e;destroy(){this.clearGcTimeout();}scheduleGc(){this.clearGcTimeout(),z$k(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove();},this.gcTime));}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(I$d?1/0:300*1e3));}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0);}};var At$8=class At extends ft$9{#e;#t;#s;#r;#i;#o;#a;constructor(t){super(),this.#a=false,this.#o=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#s=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Yt$8(this.options),this.state=t.state??this.#e,this.scheduleGc();}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(t){this.options=r$d(r$d({},this.#o),t),this.updateGcTime(this.options.gcTime);}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this);}setData(t,e){let s=$$j(this.state.data,t,this.options);return this.#n({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t,e){this.#n({type:"setState",state:t,setStateOptions:e});}cancel(t){let e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(v$h).catch(v$h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:true});}reset(){this.destroy(),this.setState(this.#e);}isActive(){return this.observers.some(t=>R$c(t.options.enabled,this)!==false)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===B$m||this.state.dataUpdateCount+this.state.errorUpdate
40Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>M$h(t.options.staleTime,this)==="static"):false}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?true:t==="static"?false:this.state.isInvalidated?true:!ot$a(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:false}),this.#i?.continue();}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:false}),this.#i?.continue();}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:t}));}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#i&&(this.#a?this.#i.cancel({revert:true}):this.#i.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:t}));}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#n({type:"invalidate"});}fetch(t,e){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:true});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){let n=this.observers.find(f=>f.options.queryFn);n&&this.setOptions(n.options);}let s=new AbortController,r=n=>{Object.defineProperty(n,"signal",{enumerable:true,get:()=>(this.#a=true,s.signal)});},i=()=>{let n=ct$8(this.options,e),c=(()=>{let y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(y),y})();return this.#a=false,this.options.persister?this.options.persister(n,c,this):n(c)},l=(()=>{let n={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(n),n})();this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#n({type:"fetch",meta:l.fetchOptions?.meta});let u=n=>{ht$a(n)&&n.silent||this.#n({type:"error",error:n}),ht$a(n)||(this.#s.config.onError?.(n,this),this.#s.config.onSettled?.(this.state.data,n,this)),this.scheduleGc();};return this.#i=lt$a({initialPromise:e?.initialPromise,fn:l.fetchFn,abort:s.abort.bind(s),onSuccess:n=>{if(n===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(n);}catch(f){u(f);return}this.#s.config.onSuccess?.(n,this),this.#s.config.onSettled?.(n,this.state.error,this),this.scheduleGc();},onError:u,onFail:(n,f)=>{this.#n({type:"failed",failureCount:n,error:f});},onPause:()=>{this.#n({type:"pause"});},onContinue:()=>{this.#n({type:"continue"});},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>true}),this.#i.start()}#n(t){let e=s=>{switch(t.type){case "failed":return s$e(r$d({},s),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case "pause":return s$e(r$d({},s),{fetchStatus:"paused"});case "continue":return s$e(r$d({},s),{fetchStatus:"fetching"});case "fetch":return s$e(r$d(r$d({},s),Ot$8(s.data,this.options)),{fetchMeta:t.meta??null});case "success":return this.#t=void 0,r$d(s$e(r$d({},s),{data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:false,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case "error":let r=t.error;return ht$a(r)&&r.revert&&this.#t?s$e(r$d({},this.#t),{fetchStatus:"idle"}):s$e(r$d({},s),{error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"});case "invalidate":return s$e(r$d({},s),{isInvalidated:true});case "setState":return r$d(r$d({},s),t.state)}};this.state=e(this.state),g$h.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate();}),this.#s.notify({query:this,type:"updated",action:t});});}};function Ot$8(t,e){return r$d({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vt$a(e.networkMode)?"fetching":"paused"},t===void 0&&{error:null,status:"pending"})}function Yt$8(t){let e=typeof t.initialData=="function"?t.initialData():t.initialData,s=e!==void 0,r=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return {data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdate
40Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:false,status:s?"success":"pending",fetchStatus:"idle"}}var qt$7=class qt extends j$o{constructor(t={}){super(),this.config=t,this.#e=new Map;}#e;build(t,e,s){let r=e.queryKey,i=e.queryHash??W$k(r,e),o=this.get(i);return o||(o=new At$8({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}));}remove(t){let e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}));}clear(){g$h.batch(()=>{this.getAll().forEach(t=>{this.remove(t);});});}get(t){return this.#e.get(t)}getAll(){return [...this.#e.values()]}find(t){let e=r$d({exact:true},t);return this.getAll().find(s=>at$c(e,s))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(s=>at$c(t,s)):e}notify(t){g$h.batch(()=>{this.listeners.forEach(e=>{e(t);});});}onFocus(){g$h.batch(()=>{this.getAll().forEach(t=>{t.onFocus();});});}onOnline(){g$h.batch(()=>{this.getAll().forEach(t=>{t.onOnline();});});}};var kt$a=class kt extends ft$9{#e;#t;#s;constructor(t){super(),this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#e=[],this.state=t.state||Ct$e(),this.setOptions(t.options),this.scheduleGc();}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime);}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}));}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t});}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this));}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#r({type:"continue"});};this.#s=lt$a({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#r({type:"failed",failureCount:i,error:o});},onPause:()=>{this.#r({type:"pause"});},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let s=this.state.status==="pending",r=!this.#s.canStart();try{if(s)e();else {this.#r({type:"pending",variables:t,isPaused:r}),await this.#t.config.onMutate?.(t,this);let o=await this.options.onMutate?.(t);o!==this.state.context&&this.#r({type:"pending",context:o,variables:t,isPaused:r});}let i=await this.#s.start();return await this.#t.config.onSuccess?.(i,t,this.state.context,this),await this.options.onSuccess?.(i,t,this.state.context),await this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,t,this.state.context),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#t.config.onError?.(i,t,this.state.context,this),await this.options.onError?.(i,t,this.state.context),await this.#t.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,t,this.state.context),i}finally{this.#r({type:"error",error:i});}}finally{this.#t.runNext(this);}}#r(t){let e=s=>{switch(t.type){case "failed":return s$e(r$d({},s),{failureCount:t.failureCount,failureReason:t.error});case "pause":return s$e(r$d({},s),{isPaused:true});case "continue":return s$e(r$d({},s),{isPaused:false});case "pending":return s$e(r$d({},s),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case "success":return s$e(r$d({},s),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:false});case "error":return s$e(r$d({},s),{data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:false,status:"error"})}};this.state=e(this.state),g$h.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(t);}),this.#t.notify({mutation:this,type:"updated",action:t});});}};function Ct$e(){return {context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:false,status:"idle",variables:void 0,submittedAt:0}}var Nt$a=class Nt extends j$o{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#s=0;}#e;#t;#s;build(t,e,s){let r=new kt$a({mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(e),state:s});return this.add(r),r}add(t){this.#e.add(t);let e=dt$9(t);if(typeof e=="string"){let s=this.#t.get(e);s?s.push(t):this.#t.set(e,[t]);}this.notify({type:"added",mutation:t});}remove(t){if(this.#e.delete(t)){let e=dt$9(t);if(typeof e=="string"){let s=this.#t.get(e);if(s)if(s.length>1){let r=s.indexOf(t);r!==-1&&s.splice(r,1);}else s[0]===t&&this.#t.delete(e);}}this.notify({type:"removed",mutation:t});}canRun(t){let e=dt$9(t);if(typeof e=="string"){let r=this.#t.get(e)?.find(i=>i.state.status==="pending");return !r||r===t}else return true}runNext(t){let e=dt$9(t);return typeof e=="string"?this.#t.get(e)?.find(r=>
40r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){g$h.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t});}),this.#e.clear(),this.#t.clear();});}getAll(){return Array.from(this.#e)}find(t){let e=r$d({exact:true},t);return this.getAll().find(s=>ut$c(e,s))}findAll(t={}){return this.getAll().filter(e=>ut$c(t,e))}notify(t){g$h.batch(()=>{this.listeners.forEach(e=>{e(t);});});}resumePausedMutations(){let t=this.getAll().filter(e=>e.state.isPaused);return g$h.batch(()=>Promise.all(t.map(e=>e.continue().catch(v$h))))}};function dt$9(t){return t.options.scope?.id}function V$h(t){return {onFetch:(e,s)=>{let r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],l=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},n=0,f=async()=>{let c=false,y=m=>{Object.defineProperty(m,"signal",{enumerable:true,get:()=>(e.signal.aborted?c=true:e.signal.addEventListener("abort",()=>{c=true;}),e.signal)});},h=ct$8(e.options,e.fetchOptions),b=async(m,p,P)=>{if(c)return Promise.reject();if(p==null&&m.pages.length)return Promise.resolve(m);let Q=(()=>{let pt={client:e.client,queryKey:e.queryKey,pageParam:p,direction:P?"backward":"forward",meta:e.options.meta};return y(pt),pt})(),x=await h(Q),{maxPages:q}=e.options,k=P?xt$a:Et$a;return {pages:k(m.pages,x,q),pageParams:k(m.pageParams,p,q)}};if(i&&o.length){let m=i==="backward",p=m?Ut$9:St$b,P={pages:o,pageParams:l},O=p(r,P);u=await b(P,O,m);}else {let m=t??o.length;do{let p=n===0?l[0]??r.initialPageParam:St$b(r,u);if(n>0&&p==null)break;u=await b(u,p),n++;}while(n<m)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(f,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=f;}}}function St$b(t,{pages:e,pageParams:s}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function Ut$9(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function Kt$9(t,e){return e?St$b(t,e)!=null:false}function Lt$9(t,e){return !e||!t.getPreviousPageParam?false:Ut$9(t,e)!=null}var _$d=class _{#e;#t;#s;#r;#i;#o;#a;#n;constructor(t={}){this.#e=t.queryCache||new qt$7,this.#t=t.mutationCache||new Nt$a,this.#s=t.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0;}mount(){this.#o++,this.#o===1&&(this.#a=K$n.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus());}),this.#n=L$h.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline());}));}unmount(){this.#o--,this.#o===0&&(this.#a?.(),this.#a=void 0,this.#n?.(),this.#n=void 0);}isFetching(t){return this.#e.findAll(s$e(r$d({},t),{fetchStatus:"fetching"})).length}isMutating(t){return this.#t.findAll(s$e(r$d({},t),{status:"pending"})).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),s=this.#e.build(this,e),r=s.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(M$h(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:s})=>{let r=s.data;return [e,r]})}setQueryData(t,e,s){let r=this.defaultQueryOptions({queryKey:t}),o=this.#e.get(r.queryHash)?.state.data,l=Ft$7(e,o);if(l!==void 0)return this.#e.build(this,r).setData(l,s$e(r$d({},s),{manual:true}))}setQueriesData(t,e,s){return g$h.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,s)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){let e=this.#e;g$h.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s);});});}resetQueries(t,e){let s=this.#e;return g$h.batch(()=>(s.findAll(t).forEach(r=>{r.reset();}),this.refetchQueries(r$d({type:"active"},t),e)))}cancelQueries(t,e={}){let s=r$d({revert:true},e),r=g$h.batch(()=>this.#e.findAll(t).map(i=>i.cancel(s)));return Promise.all(r).then(v$h).catch(v$h)}invalidateQueries(t,e={}){return g$h.batch(()=>(this.#e.findAll(t).forEach(s=>{s.invalidate();}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries(s$e(r$d({},t),{type:t?.refetchType??t?.type??"active"}),e)))}refetchQueries(t,e={}){let s=s$e(r$d({},e),{cancelRefetch:e.cancelRefetch??true}),r=g$h.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,s);return s.throwOnError||(o=o.catch(v$h)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(v$h)}fetchQuery(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=false);let s=this.#e.build(this,e);return s.isStaleByTime(M$h(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(v$h).catch(v$h)}fetchInfiniteQuery(t){return t.behavior=V$h(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(v$h).catch(v$h)}ensureInfiniteQueryData(t){return t.behavior=V$h(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return L$h.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(t){this.#s=t;}setQueryDefaults(t,e){this.#r.set(E$h(t),{queryKey:t,defaultOptions:e});}getQueryDefaults(t){let e=[...this.#r.values()],s={};return e.forEach(r=>{U$e(t,r.queryKey)&&Object.assign(s,r.defaultOptions);}),s}setMutationDefaults(t,e){this.#i.set(E$h(t),{mutationKey:t,defaultOptions:e});}getMutationDefaults(t){let e=[...this.#i.values()],s={};return e.forEach(r=>{U$e(t,r.mutationKey)&&Object.assign(s,r.defaultOptions);}),s}defaultQueryOptions(t){if(t._defaulted)return t;let e=s$e(r$d(r$d(r$d({},this.#s.queries),this.getQueryDefaults(t.queryKey)),t),{_defaulted:true});return e.queryHash||(e.queryHash=W$k(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===B$m&&(e.enabled=false),e}defaultMutationOptions(t){return t?._defaulted?t:s$e(r$d(r$d(r$d({},this.#s.mutations),t?.mutationKey&&this.getMutationDefaults(t.mutationKey)),t),{_defaulted:true})}clear(){this.#e.clear(),this.#t.clear();}};var X$g=class X extends j$o{constructor(t,e){super(),this.options=e,this.#e=t,this.#n=null,this.#a=Y$h(),this.options.experimental_prefetchInRender||this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e);}#e;#t=void 0;#s=void 0;#r=void 0;#i;#o;#a;#n;#y;#f;#d;#c;#h;#u;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this);}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),_t$d(this.#t,this.options)?this.#l():this.updateResult(),this.#b()
40);}onUnsubscribe(){this.hasListeners()||this.destroy();}shouldFetchOnReconnect(){return Rt$b(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rt$b(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#C(),this.#t.removeObserver(this);}setOptions(t){let e=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof R$c(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!Z$d(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let r=this.hasListeners();r&&Ht$9(this.#t,s,this.options,e)&&this.#l(),this.updateResult(),r&&(this.#t!==s||R$c(this.options.enabled,this.#t)!==R$c(e.enabled,this.#t)||M$h(this.options.staleTime,this.#t)!==M$h(e.staleTime,this.#t))&&this.#m();let i=this.#g();r&&(this.#t!==s||R$c(this.options.enabled,this.#t)!==R$c(e.enabled,this.#t)||i!==this.#u)&&this.#v(i);}getOptimisticResult(t){let e=this.#e.getQueryCache().build(this.#e,t),s=this.createResult(e,t);return te$8(this,s)&&(this.#r=s,this.#o=this.options,this.#i=this.#t.state),s}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),Reflect.get(s,r))})}trackProp(t){this.#p.add(t);}getCurrentQuery(){return this.#t}refetch(e={}){var t=v$m(e,[]);return this.fetch(r$d({},t))}fetchOptimistic(t){let e=this.#e.defaultQueryOptions(t),s=this.#e.getQueryCache().build(this.#e,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#l(s$e(r$d({},t),{cancelRefetch:t.cancelRefetch??true})).then(()=>(this.updateResult(),this.#r))}#l(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(v$h)),e}#m(){this.#O();let t=M$h(this.options.staleTime,this.#t);if(I$d||this.#r.isStale||!z$k(t))return;let s=ot$a(this.#r.dataUpdatedAt,t)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult();},s);}#g(){return (typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??false}#v(t){this.#C(),this.#u=t,!(I$d||R$c(this.options.enabled,this.#t)===false||!z$k(this.#u)||this.#u===0)&&(this.#h=setInterval(()=>{(this.options.refetchIntervalInBackground||K$n.isFocused())&&this.#l();},this.#u));}#b(){this.#m(),this.#v(this.#g());}#O(){this.#c&&(clearTimeout(this.#c),this.#c=void 0);}#C(){this.#h&&(clearInterval(this.#h),this.#h=void 0);}createResult(t,e){let s=this.#t,r=this.options,i=this.#r,o=this.#i,l=this.#o,n=t!==s?t.state:this.#s,{state:f}=t,c=r$d({},f),y=false,h;if(e._optimisticResults){let w=this.hasListeners(),tt=!w&&_t$d(t,e),H=w&&Ht$9(t,s,e,r);(tt||H)&&(c=r$d(r$d({},c),Ot$8(f.data,t.options))),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle");}let{error:b,errorUpdatedAt:m,status:p}=c;h=c.data;let P=false;if(e.placeholderData!==void 0&&h===void 0&&p==="pending"){let w;i?.isPlaceholderData&&e.placeholderData===l?.placeholderData?(w=i.data,P=true):w=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,w!==void 0&&(p="success",h=$$j(i?.data,w,e),y=true);}if(e.select&&h!==void 0&&!P)if(i&&h===o?.data&&e.select===this.#y)h=this.#f;else try{this.#y=e.select,h=e.select(h),h=$$j(i?.data,h,e),this.#f=h,this.#n=null;}catch(w){this.#n=w;}this.#n&&(b=this.#n,h=this.#f,m=Date.now(),p="error");let O=c.fetchStatus==="fetching",Q=p==="pending",x=p==="error",q=Q&&O,k=h!==void 0,F={status:p,fetchStatus:c.fetchStatus,isPending:Q,isSuccess:p==="success",isError:x,isInitialLoading:q,isLoading:q,data:h,dataUpdatedAt:c.dataUpdatedAt,error:b,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>
40n.dataUpdateCount||c.errorUpdateCount>n.errorUpdateCount,isFetching:O,isRefetching:O&&!Q,isLoadingError:x&&!k,isPaused:c.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:x&&k,isStale:Pt$8(t,e),refetch:this.refetch,promise:this.#a};if(this.options.experimental_prefetchInRender){let w=et=>{F.status==="error"?et.reject(F.error):F.data!==void 0&&et.resolve(F.data);},tt=()=>{let et=this.#a=F.promise=Y$h();w(et);},H=this.#a;switch(H.status){case "pending":t.queryHash===s.queryHash&&w(H);break;case "fulfilled":(F.status==="error"||F.data!==H.value)&&tt();break;case "rejected":(F.status!=="error"||F.error!==H.reason)&&tt();break}}return F}updateResult(){let t=this.#r,e=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#d=this.#t),Z$d(e,t))return;this.#r=e;let s=()=>{if(!t)return true;let{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#p.size)return true;let o=new Set(i??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(l=>{let u=l;return this.#r[u]!==t[u]&&o.has(u)})};this.#R({listeners:s()});}#S(){let t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;let e=this.#t;this.#t=t,this.#s=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this));}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b();}#R(t){g$h.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#r);}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"});});}};function Xt$9(t,e){return R$c(e.enabled,t)!==false&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===false)}function _t$d(t,e){return Xt$9(t,e)||t.state.data!==void 0&&Rt$b(t,e,e.refetchOnMount)}function Rt$b(t,e,s){if(R$c(e.enabled,t)!==false&&M$h(e.staleTime,t)!=="static"){let r=typeof s=="function"?s(t):s;return r==="always"||r!==false&&Pt$8(t,e)}return false}function Ht$9(t,e,s,r){return (t!==e||R$c(r.enabled,t)===false)&&(!s.suspense||t.state.status!=="error")&&Pt$8(t,s)}function Pt$8(t,e){return R$c(e.enabled,t)!==false&&t.isStaleByTime(M$h(e.staleTime,t))}function te$8(t,e){return !Z$d(t.getCurrentResult(),e)}var wt$f=class wt extends X$g{constructor(t,e){super(t,e);}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this);}setOptions(t){super.setOptions(s$e(r$d({},t),{behavior:V$h()}));}getOptimisticResult(t){return t.behavior=V$h(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch(s$e(r$d({},t),{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch(s$e(r$d({},t),{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){let{state:s}=t,r=super.createResult(t,e),{isFetching:i,isRefetching:o,isError:l,isRefetchError:u}=r,n=s.fetchMeta?.fetchMore?.direction,f=l&&n==="forward",c=i&&n==="forward",y=l&&n==="backward",h=i&&n==="backward";return s$e(r$d({},r),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Kt$9(e,s.data),hasPreviousPage:Lt$9(e,s.data),isFetchNextPageError:f,isFetchingNextPage:c,isFetchPreviousPageError:y,isFetchingPreviousPage:h,isRefetchError:u&&!f&&!y,isRefetching:o&&!c&&!h})}};var It$a=class It extends j$o{#e;#t=void 0;#s;#r;constructor(t,e){super(),this.#e=t,this.setOptions(e),this.bindMethods(),this.#i();}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this);}setOptions(t){let e=this.options;this.options=this.#e.defaultMutationOptions(t),Z$d(this.options,e)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&E$h(e.mutationKey)!==E$h(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options);}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this);}onMutationUpdate(t){this.#i(),this.#o(t);}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#i(),this.#o();}mutate(t,e){return this.#r=e,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(t)}#i(){let t=this.#s?.state??Ct$e();this.#t=s$e(r$d({},t),{isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.
40status==="idle",mutate:this.mutate,reset:this.reset});}#o(t){g$h.batch(()=>{if(this.#r&&this.hasListeners()){let e=this.#t.variables,s=this.#t.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,e,s),this.#r.onSettled?.(t.data,null,e,s)):t?.type==="error"&&(this.#r.onError?.(t.error,e,s),this.#r.onSettled?.(void 0,t.error,e,s));}this.listeners.forEach(e=>{e(this.#t);});});}};function Gt$5(t){let e={};return new Proxy(e,{get(s,r){let i=s[r];if(i)return i;let o=Qn$9(t)[r];return typeof o=="function"?o:s[r]=qd$1(()=>t()[r])},has(s,r){return !!Qn$9(t)[r]},ownKeys(){return Reflect.ownKeys(Qn$9(t))},getOwnPropertyDescriptor(){return {enumerable:true,configurable:true}}})}var ee$7=new b$g("",{factory:()=>On$7(false).asReadonly()});function Zt$9(t){return !t?.injector&&DC$1(),(t?.injector??g$k(oe$e)).get(ee$7)}function Bt$8(t,e){let s=g$k(ge$b),r=g$k(_$d),i=Zt$9(),o=qd$1(()=>{let f=r.defaultQueryOptions(t());return f._optimisticResults=i()?"isRestoring":"optimistic",f}),l=(()=>{let f=null;return qd$1(()=>f||=new e(r,o()))})(),u=qd$1(()=>l().getOptimisticResult(o())),n=On$7(null);return Es$3(f=>{let c=l(),y=o();Qn$9(()=>{c.setOptions(y);}),f(()=>{s.run(()=>n.set(null));});},{allowSignalWrites:Vp$2.major<"19"||void 0}),Es$3(f=>{let c=l(),y=i()?()=>{}:Qn$9(()=>s.runOutsideAngular(()=>c.subscribe(g$h.batchCalls(h=>{s.run(()=>{if(h.isError&&!h.isFetching&&J$j(c.options.throwOnError,[h.error,c.getCurrentQuery()]))throw s.onError.emit(h.error),h.error;n.set(h);});}))));f(y);}),Gt$5(qd$1(()=>{let f=n(),c=u();return f??c}))}function se$b(t,e){!e?.injector&&DC$1();let s=e?.injector??g$k(oe$e);return rs$4(s,()=>Bt$8(t,wt$f))}function re$7(t,e){!e?.injector&&DC$1();let s=e?.injector??g$k(oe$e),r=s.get(de$b),i=s.get(ge$b),o=s.get(_$d),l=qd$1(t),u=(()=>{let h=null;return qd$1(()=>h||=new It$a(o,l()))})(),n=qd$1(()=>{let h=u();return (b,m)=>{h.mutate(b,m).catch(v$h);}}),f=qd$1(()=>u().getCurrentResult()),c=On$7(null);Es$3(()=>{let h=u(),b=l();Qn$9(()=>{h.setOptions(b);});},{injector:s}),Es$3(()=>{let h=u();Qn$9(()=>{let b=i.runOutsideAngular(()=>h.subscribe(g$h.batchCalls(m=>{i.run(()=>{if(m.isError&&J$j(h.options.throwOnError,[m.error]))throw i.onError.emit(m.error),m.error;c.set(m);});})));r.onDestroy(b);});},{injector:s});let y=qd$1(()=>{let h=c(),b=f(),m=h??b;return s$e(r$d({},m),{mutate:n(),mutateAsync:m.mutate})});return Gt$5(y)}function ie$b(t,e){return !e?.injector&&DC$1(),rs$4(e?.injector??g$k(oe$e),()=>Bt$8(t,X$g))}function ne$a(t){return {provide:_$d,useFactory:()=>{let e=t instanceof b$g?g$k(t):t;return g$k(de$b).onDestroy(()=>e.unmount()),e.mount(),e}}}function ir$8(t,...e){return [ne$a(t),e.map(s=>s.\u0275providers)]}var k$i={group:"",link:"hero-link",course:"hero-academic-cap",space:"heroChatBubbleOvalLeftEllipsis",page:"hero-newspaper",portal:"heroRectangleStack",aiPilot:"hero-cpu-chip"},x$h=(()=>{class e{get defaultIcon(){return k$i[this.item.type]}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-sidemenu-item-icon"]],hostAttrs:[1,"flex","items-center","justify-center","flex-shrink-0"],inputs:{item:"item"},decls:1,vars:1,consts:[["size","xs-plus",3,"icon"]],template:function(i,n){i&1&&Vv$1(0,"mspot-emoji-icon-color",0),i&2&&jv$1("icon",n.item.icon||n.defaultIcon);},dependencies:[fe$a],encapsulation:2});}}return e})();function w$f(e){if(!e)return "";switch(e.type){case "page":return `/pages/${e.pageId}`;case "portal":return `/dashboards/${e.portalId}`;case "aiPilot":return `/aipilot/${e.aiPilotId}`;case "course":return `/library/${e.courseId}`;case "link":return e.httpLink||"";default:return `/community/${e.spaceId}`}}function S$k(e){return e.map(r=>s$e(r$d({},r),{link:w$f(r)}))}var d$j=(e,r=null)=>{let t=[];for(let i of e.filter(n=>n.parentId===r))t.push(s$e(r$d({},i),{children:i.type==="group"?d$j(e,i.id):null}));return t};var T$g=(()=>{class e{constructor(){this._http=g$k(Ce$a),this._schoolId=YG(g$k(w$g)),this._queryClient=g$k(_$d);}getSideNavigationQuery(){return ie$b(()=>({enabled:!!this._schoolId(),queryKey:["side-navigation",this._schoolId()],queryFn:()=>{let t=this._schoolId();if(!t)throw new Error("No school ID available");return EI(this._http.get(`/side-navigation/${t}`))}}))}getSideNavigation(){let t=this.getSideNavigationQuery();return qd$1(()=>{let i=t.data();return i?d$j(i.items||[]):[]})}getSideNavigationMenuItems(){let t=this.getSideNavigationQuery();return qd$1(()=>{let i=t.data();if(!i)return [];let n=d$j(i.items||[]);return S$k(n)})}getSideNavigationLoading(){let t=this.getSideNavigationQuery();return qd$1(()=>t.isLoading())}getSideNavigationError(){let t=this.getSideNavigationQuery();return qd$1(()=>t.error)}
40invalidateSideNavigation(){this._queryClient.invalidateQueries({queryKey:["side-navigation",this._schoolId()]});}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var x$g={facebook:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path xmlns="http://www.w3.org/2000/svg" d="M15.997 3.985h2.191V.169C17.81.117 16.51 0 14.996 0c-3.159 0-5.323 1.987-5.323 5.639V9H6.187v4.266h3.486V24h4.274V13.267h3.345l.531-4.266h-3.877V6.062c.001-1.233.333-2.077 2.051-2.077z" fill="currentColor" data-original="#000000"/></svg>',linkedin:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path xmlns="http://www.w3.org/2000/svg" d="M23.994 24v-.001H24v-8.802c0-4.306-.927-7.623-5.961-7.623-2.42 0-4.044 1.328-4.707 2.587h-.07V7.976H8.489v16.023h4.97v-7.934c0-2.089.396-4.109 2.983-4.109 2.549 0 2.587 2.384 2.587 4.243V24zM.396 7.977h4.976V24H.396zM2.882 0C1.291 0 0 1.291 0 2.882s1.291 2.909 2.882 2.909 2.882-1.318 2.882-2.909A2.884 2.884 0 002.882 0z" fill="currentColor" data-original="#000000"/></svg>',slack:`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 160 160"> 41 <path 42 fill="currentColor" 43 d="M34.375 100.5c0 9.125-7.375 16.5-16.5 16.5s-16.5-7.375-16.5-16.5S8.75 84 17.875 84h16.5v16.5Zm8.25 0c0-9.125 7.375-16.5 16.5-16.5s16.5 7.375 16.5 16.5v41.25c0 9.125-7.375 16.5-16.5 16.5s-16.5-7.375-16.5-16.5V100.5Z" 44 ></path> 45 <path 46 fill="currentColor" 47 d="M59.125 34.25c-9.125 0-16.5-7.375-16.5-16.5S50 1.25 59.125 1.25s16.5 7.375 16.5 16.5v16.5h-16.5Zm0 8.375c9.125 0 16.5 7.375 16.5 16.5s-7.375 16.5-16.5 16.5H17.75c-9.125 0-16.5-7.375-16.5-16.5s7.375-16.5 16.5-16.5h41.375Z" 48 ></path> 49 <path 50 fill="currentColor" 51 d="M125.25 59.125c0-9.125 7.375-16.5 16.5-16.5s16.5 7.375 16.5 16.5-7.375 16.5-16.5 16.5h-16.5v-16.5Zm-8.25 0c0 9.125-7.375 16.5-16.5 16.5S84 68.25 84 59.125V17.75c0-9.125 7.375-16.5 16.5-16.5S117 8.625 117 17.75v41.375Z" 52 ></path> 53 <path 54 fill="currentColor" 55 d="M100.5 125.25c9.125 0 16.5 7.375 16.5 16.5s-7.375 16.5-16.5 16.5-16.5-7.375-16.5-16.5v-16.5h16.5Zm0-8.25c-9.125 0-16.5-7.375-16.5-16.5S91.375 84 100.5 84h41.375c9.125 0 16.5 7.375 16.5 16.5S151 117 141.875 117H100.5Z" 56 ></path> 57</svg> 58`,twitter:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>',instagram:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path xmlns="http://www.w3.org/2000/svg" d="M12.004 5.838a6.157 6.157 0 00-6.158 6.158 6.157 6.157 0 006.158 6.158 6.157 6.157 0 006.158-6.158 6.157 6.157 0 00-6.158-6.158zm0 10.155a3.996 3.996 0 113.997-3.997 3.995 3.995 0 01-3.997 3.997z" data-original="#000000"/><path xmlns="http://www.w3.org/2000/svg" d="M16.948.076c-2.208-.103-7.677-.098-9.887 0-1.942.091-3.655.56-5.036 1.941C-.283 4.325.012 7.435.012 11.996c0 4.668-.26 7.706 2.013 9.979 2.317 2.316 5.472 2.013 9.979 2.013 4.624 0 6.22.003 7.855-.63 2.223-.863 3.901-2.85 4.065-6.419.104-2.209.098-7.677 0-9.887-.198-4.213-2.459-6.768-6.976-6.976zm3.495 20.372c-1.513 1.513-3.612 1.378-8.468 1.378-5 0-7.005.074-8.468-1.393-1.685-1.677-1.38-4.37-1.38-8.453 0-5.525-.567-9.504 4.978-9.788 1.274-.045 1.649-.06 4.856-.06l.045.03c5.329 0 9.51-.558 9.761 4.986.057 1.265.07 1.645.07 4.847-.001 4.942.093 6.959-1.394 8.453z" data-original="#000000"/><circle xmlns="http://www.w3.org/2000/svg" cx="18.406" cy="5.595" r="1.439" data-original="#000000"/></g></svg>',spotify:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path xmlns="http://www.w3.org/2000/svg" d="M12 24c6.624 0 12-5.376 12-12S18.624 0 12 0 0 5.376 0 12s5.376 12 12 12zm4.872-6.344v.001c-.807 0-3.356-2.828-10.52-1.36-.189.049-.436.126-.576.126-.915 0-1.09-1.369-.106-1.578 3.963-.875 8.013-.798 11.467 1.268.824.526.474 1.543-.265 1.543zm1.303-3.173c-.113-.03-.08.069-.597-.203-3.025-1.79-7.533-2.512-11.545-1.423-.232.063-.358.126-.576.126-1.071 0-1.355-1.611-.188-1.94 4.716-1.325 9.775-.552 13.297 1.543.392.232.547.533.547.953a.938.938 0 01-.938.944zM4.548 6.998c4.523-1.324 11.368-.906 15.624 1.578 1.091.629.662 2.22-.498 2.22l-.001-.001c-.252 0-.407-.063-.625-.189C15.605 8.55 9.444 8.057 5.458 9.17c-.175.048-.393.125-.625.125-.639 0-1.127-.499-1.127-1.142 0-.657.407-1.029.842-1.155z" fill="currentColor" data-original="#000000"/></svg>',whatsapp:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
58<path xmlns="http://www.w3.org/2000/svg" d="M17.507 14.307l-.009.075c-2.199-1.096-2.429-1.242-2.713-.816-.197.295-.771.964-.944 1.162-.175.195-.349.21-.646.075-.3-.15-1.263-.465-2.403-1.485-.888-.795-1.484-1.77-1.66-2.07-.293-.506.32-.578.878-1.634.1-.21.049-.375-.025-.524-.075-.15-.672-1.62-.922-2.206-.24-.584-.487-.51-.672-.51-.576-.05-.997-.042-1.368.344-1.614 1.774-1.207 3.604.174 5.55 2.714 3.552 4.16 4.206 6.804 5.114.714.227 1.365.195 1.88.121.574-.091 1.767-.721 2.016-1.426.255-.705.255-1.29.18-1.425-.074-.135-.27-.21-.57-.345z" fill="currentColor" data-original="#000000"/><path xmlns="http://www.w3.org/2000/svg" d="M20.52 3.449C12.831-3.984.106 1.407.101 11.893c0 2.096.549 4.14 1.595 5.945L0 24l6.335-1.652c7.905 4.27 17.661-1.4 17.665-10.449 0-3.176-1.24-6.165-3.495-8.411zm1.482 8.417c-.006 7.633-8.385 12.4-15.012 8.504l-.36-.214-3.75.975 1.005-3.645-.239-.375c-4.124-6.565.614-15.145 8.426-15.145a9.865 9.865 0 017.021 2.91 9.788 9.788 0 012.909 6.99z" fill="currentColor" data-original="#000000"/></svg>',youtube:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path xmlns="http://www.w3.org/2000/svg" d="M23.469 5.929l.03.196a3.043 3.043 0 00-2.068-2.112l-.021-.005c-1.871-.508-9.4-.508-9.4-.508s-7.51-.01-9.4.508A3.044 3.044 0 00.527 6.104l-.005.021c-.699 3.651-.704 8.038.031 11.947l-.031-.198a3.043 3.043 0 002.068 2.112l.021.005c1.869.509 9.4.509 9.4.509s7.509 0 9.4-.509a3.043 3.043 0 002.084-2.096l.005-.021c.318-1.698.5-3.652.5-5.648l-.001-.221.001-.23c0-1.997-.182-3.951-.531-5.846zM9.608 15.651V8.358l6.266 3.652z" fill="currentColor" data-original="#000000"/></svg>',twitch:'<svg fill="currentcolor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 107"><path d="M6.67 0L0 20v73.33h26.67v13.34H40l13.33-13.34h20L100 64.93V0H6.67zm86.66 60L74.67 80H51.03L36.67 90.45V80H13.33V6.67h80V60z" fill="currentColor"/><path d="M53.33 26.67h-6.66v26.66h6.66V26.67zM73.33 26.67h-6.66v26.66h6.66V26.67z"/></svg>',discord:'<svg fill="currentcolor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 77"><path d="M84.65 6.73A82.46 82.46 0 0064.3.42a.3.3 0 00-.33.15 57.44 57.44 0 00-2.53 5.2 76.13 76.13 0 00-22.86 0A52.66 52.66 0 0036 .58a.32.32 0 00-.32-.15 82.23 82.23 0 00-20.36 6.31.3.3 0 00-.13.12C2.22 26.2-1.33 45.1.4 63.76c.01.1.06.18.13.24a82.92 82.92 0 0024.97 12.62c.13.04.27 0 .35-.11a59.26 59.26 0 005.11-8.31.32.32 0 00-.17-.44 54.6 54.6 0 01-7.8-3.72.32.32 0 01-.03-.53c.52-.4 1.05-.8 1.55-1.22a.3.3 0 01.32-.04c16.37 7.47 34.08 7.47 50.26 0a.3.3 0 01.32.04c.5.41 1.03.82 1.56 1.22.18.13.17.41-.03.53a51.24 51.24 0 01-7.8 3.71.32.32 0 00-.18.45c1.5 2.9 3.22 5.67 5.1 8.3.09.11.23.16.36.12a82.65 82.65 0 0025-12.62.32.32 0 00.14-.23c2.09-21.57-3.5-40.31-14.79-56.92a.25.25 0 00-.13-.12zM33.42 52.4c-4.93 0-8.99-4.52-8.99-10.08 0-5.55 3.98-10.07 8.99-10.07 5.04 0 9.06 4.56 8.98 10.07 0 5.56-3.98 10.08-8.98 10.08zm33.22 0c-4.92 0-8.98-4.52-8.98-10.08 0-5.55 3.98-10.07 8.98-10.07 5.05 0 9.07 4.56 9 10.07 0 5.56-3.95 10.08-9 10.08z"/></svg>',vimeo:'<svg fill="currentcolor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 89"><path d="M85.4 1.01C71.54.51 62.17 8.46 57.23 24.74a17.97 17.97 0 017.4-1.65c5.08 0 7.33 2.9 6.73 8.68-.3 3.5-2.54 8.58-6.72 15.26-4.2 6.7-7.35 10.04-9.44 10.04-6.34 0-10.15-30.35-11.44-38.64-1.8-11.52-6.59-16.9-14.36-16.15C22.25 2.96 9.8 15.82 0 24.53l4.7 6.14c4.48-3.18 7.1-4.77 7.84-4.77 7.8 0 11.57 26.53 17.63 46.26 4.06 10.89 8.93 16.33 14.8 16.33 9.43 0 20.92-8.93 34.54-26.8 13.15-17.12 19.95-30.6 20.4-40.44l.05-.04C100.52 8 95.7 1.27 85.4 1z"/></svg>',email:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 16"><path d="m1 4 7.89 5.26a2 2 0 0 0 2.22 0L19 4M3 15h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',phone:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1 3a2 2 0 0 1 2-2h3.28a1 1 0 0 1 .948.684l1.498 4.493a1 1 0 0 1-.502 1.21l-2.257 1.13a11.042 11.042 0 0 0 5.516 5.516l1.13-2.257a1 1 0 0 1 1.21-.502l4.493 1.498a1 1 0 0 1 .684.949V1
587a2 2 0 0 1-2 2h-1C7.716 19 1 12.284 1 4V3Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',chat:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 18"><path d="M6 9h.01M10 9h.01M14 9h.01M19 9c0 4.418-4.03 8-9 8a9.863 9.863 0 0 1-4.255-.949L1 17l1.395-3.72C1.512 12.042 1 10.574 1 9c0-4.418 4.03-8 9-8s9 3.582 9 8Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',calendar:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M6 5V1m8 4V1M5 9h10M3 19h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',tiktok:'<svg fill="currentcolor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M480.32 128.39c-29.22 0-56.18-9.68-77.83-26.01-24.83-18.72-42.67-46.18-48.97-77.83A129.78 129.78 0 0 1 351.04.39h-83.47v228.08l-.1 124.93c0 33.4-21.75 61.72-51.9 71.68a75.905 75.905 0 0 1-28.04 3.72c-12.56-.69-24.33-4.48-34.56-10.6-21.77-13.02-36.53-36.64-36.93-63.66-.63-42.23 33.51-76.66 75.71-76.66 8.33 0 16.33 1.36 23.82 3.83v-84.75c-7.9-1.17-15.94-1.78-24.07-1.78-46.19 0-89.39 19.2-120.27 53.79-23.34 26.14-37.34 59.49-39.5 94.46-2.83 45.94 13.98 89.61 46.58 121.83 4.79 4.73 9.82 9.12 15.08 13.17 27.95 21.51 62.12 33.17 98.11 33.17 8.13 0 16.17-.6 24.07-1.77 33.62-4.98 64.64-20.37 89.12-44.57 30.08-29.73 46.7-69.2 46.88-111.21l-.43-186.56a210.864 210.864 0 0 0 46.88 27.34c26.19 11.05 53.96 16.65 82.54 16.64v-83.1c.02.02-.22.02-.24.02z"/></svg>'};var C$7=(()=>{class t{constructor(){this._elementRef=g$k(gt$f),this._renderer=g$k(Fr$6);}ngOnChanges(e){e.name&&this.name&&this._renderer.setProperty(this._elementRef.nativeElement,"innerHTML",x$g[this.name]);}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-social-icon"]],hostAttrs:[1,"block"],inputs:{name:"name"},features:[Ar$8],decls:0,vars:0,template:function(o,n){},styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%] svg{width:inherit;height:inherit}"]});}}return t})();function M$g(t){return !t.startsWith("mailto:")&&!t.startsWith("tel:")&&!t.startsWith("sms:")}var j$n=(()=>{class t{constructor(){this.link=X8(),this.size=X8("w-4 h-4"),this.isExternalLink=qd$1(()=>{let e=this.link()?.url?.trim().toLowerCase();return e?M$g(e):false});}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-social-link"]],hostAttrs:[1,"block","p-1"],inputs:{link:[1,"link"],size:[1,"size"]},decls:2,vars:4,consts:[[3,"href"],[3,"name","ngClass"]],template:function(o,n){o&1&&(ta$3(0,"a",0),Vv$1(1,"mspot-social-icon",1),Pd$1()),o&2&&(jv$1("href",n.link()?.url,Gm$1),Pv$1("target",n.isExternalLink()?"_blank":null),uT(),jv$1("name",n.link()?.type)("ngClass",n.size()));},dependencies:[C$7,mx$1],encapsulation:2});}}return t})(); 59var n$h=new b$g("LastLectureToken");var _$c=new b$g("COMMUNITY_FEED_PREVIEW_MODE",{providedIn:"root",factory:()=>false}),M$f=new b$g("COMMUNITY_FEED_MEMBER_AREA",{providedIn:"root",factory:()=>yI(void 0)}),g$g=(()=>{class e{constructor(){this._http=g$k(Ce$a);}getCommunityData(t,i){let n=i?`/community-client/admin-preview/${t}`:`/community-client/${t}`;return this._http.get(n)}getFeed(t){let i=new URLSearchParams;i.set("pageSize",String(t.pageSize)),t.spaceId&&t.sort&&t.sort!=="newest"&&i.set("sort",t.sort),t.spaceId&&t.statusFilter&&t.statusFilter.length>0&&i.set("upvoteStatus",t.statusFilter.join(","));let n=this._buildFeedBase(t);return this._http.get(`${n}?${i.toString()}`)}_buildFeedBase(t){return t.spaceId?t.previewMode?`/community-space-post/admin-preview/space-feed/${t.schoolId}/${t.spaceId}`:`/community-space-post/space-feed/${t.schoolId}/${t.spaceId}`:t.previewMode?`/community-space-post/admin-preview/user-feed/${t.schoolId}`:`/community-space-post/user-feed/${t.schoolId}`}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var l$a=new Set(["paragraph","heading","blockquote","listItem","bulletList","orderedList","codeBlock"]);function d$i(e,o){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e;if(t.type==="hardBreak"){o.push(" ");return}if(typeof t.text=="string"&&t.text.length>0&&o.push(t.text),Array.isArray(t.content)){for(let i of t.content)d$i(i,o);t.type&&l$a.has(t.type)&&o.push(" ");}}function v$g(e){if(!e)return "";let o;try{o=JSON.parse(e);}catch{return r$c(e)}
59if(typeof o=="string")return r$c(o);if(!o||typeof o!="object"||Array.isArray(o))return r$c(e);let t=[];return d$i(o,t),r$c(t.join(""))}function r$c(e){return e.replace(/\s+/g," ").trim()}var d$h=new b$g("TodoWidgetData");var r$b=/^[0-9a-fA-F]{24}$/;var n$g=()=>ve$b.string().regex(r$b);var o$9='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M4.26 10.147a60.438 60.438 0 0 0-.491 6.347A48.62 48.62 0 0 1 12 20.904a48.62 48.62 0 0 1 8.232-4.41 60.46 60.46 0 0 0-.491-6.347m-15.482 0a50.636 50.636 0 0 0-2.658-.813A59.906 59.906 0 0 1 12 3.493a59.903 59.903 0 0 1 10.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.717 50.717 0 0 1 12 13.489a50.702 50.702 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 0v-3.675A55.378 55.378 0 0 1 12 8.443m-7.007 11.55A5.981 5.981 0 0 0 6.75 15.75v-1.5"></path></svg>',t$a='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"></path></svg>';var r$a='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 8.25H7.5a2.25 2.25 0 0 0-2.25 2.25v9a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25H15M9 12l3 3m0 0 3-3m-3 3V2.25"></path></svg>';var e$3='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"></path></svg>';var n$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"></path></svg>';var s$d='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"></path></svg>';var i$a='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 0 0-3.7-3.7 48.678 48.678 0 0 0-7.324 0 4.006 4.006 0 0 0-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 0 0 3.7 3.7 48.656 48.656 0 0 0 7.324 0 4.006 4.006 0 0 0 3.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3-3 3"></path></svg>',a$b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"></path></svg>';var l$9='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"></path></svg>';var h$9='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"></path></svg>';var d$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"></path></svg>';var w$e='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 18 9 11.25l4.306 4.306a11.95 11.95 0 0 1 5.814-5.518l2.74-1.22m0 0-5.94-2.281m5.94 2.28-2.28 5.941"></path></svg>';var c$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 8.25H7.5a2.25 2.25 0 0 0-2.25 2.25v9a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25H15m0-3-3-3m0 0-3 3m3-3V15"></path></svg>';var v$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"></path></svg>',g$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"></path></svg>';var k$h='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"></path></svg>',u$b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m15 15 6-6m0 0-6-6m6 6H9a6 6 0 0 0 0 12h3"></path></svg>';var p$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"></path></svg>',m$9='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M2
590.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"></path></svg>',M$e='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"></path></svg>';var x$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9h16.5m-16.5 6.75h16.5"></path></svg>',_$b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"></path></svg>';var C$6='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"></path></svg>',B$l='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"></path></svg>',f$c='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"></path></svg>';var A$e='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5"></path></svg>',y$c='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9.143 17.082a24.248 24.248 0 0 0 3.844.148m-3.844-.148a23.856 23.856 0 0 1-5.455-1.31 8.964 8.964 0 0 0 2.3-5.542m3.155 6.852a3 3 0 0 0 5.667 1.97m1.965-2.277L21 21m-4.225-4.225a23.81 23.81 0 0 0 3.536-1.003A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6.53 6.53m10.245 10.245L6.53 6.53M3 3l3.53 3.53"></path></svg>';var Z$c='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"></path></svg>',j$m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linejoin="round" d="M6.75 3.744h-.753v8.25h7.125a4.125 4.125 0 0 0 0-8.25H6.75Zm0 0v.38m0 16.122h6.747a4.5 4.5 0 0 0 0-9.001h-7.5v9h.753Zm0 0v-.37m0-15.751h6a3.75 3.75 0 1 1 0 7.5h-6m0-7.5v7.5m0 0v8.25m0-8.25h6.375a4.125 4.125 0 0 1 0 8.25H6.75m.747-15.38h4.875a3.375 3.375 0 0 1 0 6.75H7.497v-6.75Zm0 7.5h5.25a3.75 3.75 0 0 1 0 7.5h-5.25v-7.5Z"></path></svg>';var V$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"></path></svg>';var H$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m3 3 1.664 1.664M21 21l-1.5-1.5m-5.485-1.242L12 17.25 4.5 21V8.742m.164-4.078a2.15 2.15 0 0 1 1.743-1.342 48.507 48.507 0 0 1 11.
59186 0c1.1.128 1.907 1.077 1.907 2.185V19.5M4.664 4.664 19.5 19.5"></path></svg>';var L$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"></path></svg>',S$j='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M20.25 14.15v4.25c0 1.094-.787 2.036-1.872 2.18-2.087.277-4.216.42-6.378.42s-4.291-.143-6.378-.42c-1.085-.144-1.872-1.086-1.872-2.18v-4.25m16.5 0a2.18 2.18 0 0 0 .75-1.661V8.706c0-1.081-.768-2.015-1.837-2.175a48.114 48.114 0 0 0-3.413-.387m4.5 8.006c-.194.165-.42.295-.673.38A23.978 23.978 0 0 1 12 15.75c-2.648 0-5.195-.429-7.577-1.22a2.016 2.016 0 0 1-.673-.38m0 0A2.18 2.18 0 0 1 3 12.489V8.706c0-1.081.768-2.015 1.837-2.175a48.111 48.111 0 0 1 3.413-.387m7.5 0V5.25A2.25 2.25 0 0 0 13.5 3h-3a2.25 2.25 0 0 0-2.25 2.25v.894m7.5 0a48.667 48.667 0 0 0-7.5 0M12 12.75h.008v.008H12v-.008Z"></path></svg>';var D$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"></path></svg>',b$c='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"></path></svg>';var P$b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"></path></svg>';var R$b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.
59123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"></path></svg>',U$d='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.068.157 2.148.279 3.238.364.466.037.893.281 1.153.671L12 21l2.652-3.978c.26-.39.687-.634 1.153-.67 1.09-.086 2.17-.208 3.238-.365 1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"></path></svg>',T$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.
59123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"></path></svg>',O$n='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"></path></svg>';var E$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 0 1-.923 1.785A5.969 5.969 0 0 0 6 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337Z"></path></svg>',q$h='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"></path></svg>',F$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path></svg>',G$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5"></path></svg>';var I$c='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"></path></svg>';var z$j='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"></path></svg>',W$j='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"></path></svg>',X$f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"></path></svg>',N$a='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"></path></svg>',Q$b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 15.75 7.5-7.5 7.5 7.5"></path></svg>';var Y$g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"></path></svg>';var K$m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path></svg>';var J$i='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"></path></svg>';var $$i='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"></path></svg>';var o1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"></path></svg>',t1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"></path></svg>';var r1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"></path></svg>';var e1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"></path></svg>';var n1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672ZM12 2.25V4.5m5.834.166-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243-1.59-1.59"></path></svg>';var s1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"></path></svg>';var i1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12-3-3m0 0-3 3m3-3v6m-1.5-15H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"></path></svg>';var a1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.
59625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"></path></svg>';var l1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"></path></svg>';var h1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"></path></svg>',d1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"></path></svg>',w1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path></svg>',c1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"></path></svg>',v1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"></path></svg>';var g1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"></path></svg>';var k1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"></path></svg>',u1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"></path></svg>';var p1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"></path></svg>',m1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"></path></svg>';var M1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"></path></svg>',x1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.
59004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"></path></svg>';var _1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5"></path></svg>';var C1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32
590 0 1 12 3Z"></path></svg>';var B1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"></path></svg>';var f1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M10.05 4.575a1.575 1.575 0 1 0-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 0 1 3.15 0v1.5m-3.15 0 .075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 0 1 3.15 0V15M6.9 7.575a1.575 1.575 0 1 0-3.15 0v8.175a6.75 6.75 0 0 0 6.75 6.75h2.018a5.25 5.25 0 0 0 3.712-1.538l1.732-1.732a5.25 5.25 0 0 0 1.538-3.712l.003-2.024a.668.668 0 0 1 .198-.471 1.575 1.575 0 1 0-2.228-2.228 3.818 3.818 0 0 0-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0 1 16.35 15m.002 0h-.002"></path></svg>',A1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"></path></svg>',y1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"></path></svg>',Z1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5"></path></svg>';var j1$1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"></path></svg>',V1$1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15 9h3.75M15 12h3.7
595M15 15h3.75M4.5 19.5h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Zm6-10.125a1.875 1.875 0 1 1-3.75 0 1.875 1.875 0 0 1 3.75 0Zm1.294 6.336a6.721 6.721 0 0 1-3.17.789 6.721 6.721 0 0 1-3.168-.789 3.376 3.376 0 0 1 6.338 0Z"></path></svg>';var H1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"></path></svg>',L1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"></path></svg>',S1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M5.248 20.246H9.05m0 0h3.696m-3.696 0 5.893-16.502m0 0h-3.697m3.697 0h3.803"></path></svg>',D1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"></path></svg>';var b1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"></path></svg>';var P1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"></path></svg>',R1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"></path></svg>',U1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"></path></svg>';var T1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"></path></svg>',O1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"></path></svg>',E1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"></path></svg>',q1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"></path></svg>';var F1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 18.75a6 6 0 0 0 6-6v-1.5m-6 7.5a6 6 0 0 1-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 0 1-3-3V4.5a3 3 0 1 1 6 0v8.25a3 3 0 0 1-3 3Z"></path></svg>';var G1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14"></path></svg>',I1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"></path></svg>';var z1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"></path></svg>',W1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"></path></svg>',X1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M8.242 5.992h12m-12 6.003H20.24m-12 5.999h12M4.117 7.495v-3.75H2.99m1.125 3.75H2.99m1.125 0H5.24m-1.92 2.577a1.125 1.125 0 1 1 1.591 1.59l-1.83 1.83h2.16M2.99 15.745h1.125a1.125 1.125 0 0 1 0 2.25H3.74m0-.002h.375a1.125 1.125 0 0 1 0 2.25H2.99"></path></svg>',N1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"></path></svg>',Q1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"></path></svg>',Y1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"></path></svg>';var K1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 5.25v13.5m-7.5-13.5v13.5"></path></svg>',J1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"></path></svg>',$1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"></path></svg>';var o5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"></path></svg>',t5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"></path></svg>',r5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"></path></svg>';var e5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M5.25 5.
59653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"></path></svg>',n5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path></svg>';var s5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"></path></svg>';var i5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z"></path></svg>';var a5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"></path></svg>',l5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75Z"></path></svg>';var h5$1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 0 1-1.125-1.125v-3.75ZM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-8.25ZM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-2.25Z"></path></svg>',d5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6
59a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"></path></svg>';var w5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m7.848 8.25 1.536.887M7.848 8.25a3 3 0 1 1-5.196-3 3 3 0 0 1 5.196 3Zm1.536.887a2.165 2.165 0 0 1 1.083 1.839c.005.351.054.695.14 1.024M9.384 9.137l2.077 1.199M7.848 15.75l1.536-.887m-1.536.887a3 3 0 1 1-5.196 3 3 3 0 0 1 5.196-3Zm1.536-.887a2.165 2.165 0 0 0 1.083-1.838c.005-.352.054-.695.14-1.025m-1.223 2.863 2.077-1.199m0-3.328a4.323 4.323 0 0 1 2.068-1.379l5.325-1.628a4.5 4.5 0 0 1 2.48-.044l.803.215-7.794 4.5m-2.882-1.664A4.33 4.33 0 0 0 10.607 12m3.736 0 7.794 4.5-.802.215a4.5 4.5 0 0 1-2.48-.043l-5.326-1.629a4.324 4.324 0 0 1-2.068-1.379M14.343 12l-2.882 1.664"></path></svg>';var c5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M7.217 10.9
5907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"></path></svg>',v5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"></path></svg>',g5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m0-10.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.25-8.25-3.286Zm0 13.036h.008v.008H12v-.008Z"></path></svg>';var k5$1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m3 3 8.735 8.735m0 0a.374.374 0 1 1 .53.53m-.53-.53.53.53m0 0L21 21M14.652 9.348a3.75 3.75 0 0 1 0 5.304m2.121-7.425a6.75 6.75 0 0 1 0 9.546m2.121-11.667c3.808 3.807 3.808 9.98 0 13.788m-9.546-4.242a3.733 3.733 0 0 1-1.06-2.122m-1.061 4.243a6.75 6.75 0 0 1-1.625-6.929m-.496 9.05c-3.068-3.067-3.664-7.67-1.79-11.334M12 12h.008v.008H12V12Z"></path></svg>';var u5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"></path></svg>';var p5$1='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"></path></svg>';var m5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path><path stroke-linecap="round" stroke-linejoin="round" d="M9 9.563C9 9.252 9.252 9 9.563 9h4.874c.311 0 .563.252.563.563v4.874c0 .311-.252.563-.563.563H9.564A.562.562 0 0 1 9 14.437V9.564Z"></path></svg>',M5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"></path></svg>',x5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 12a8.912 8.912 0 0 1-.318-.079c-1.585-.424-2.904-1.247-3.76-2.236-.873-1.009-1.265-2.19-.968-3.301.59-2.2 3.663-3.29 6.863-2.432A8.186 8.186 0 0 1 16.5 5.21M6.42 17.81c.857.99 2.176 1.812 3.761 2.237 3.2.858 6.274-.23 6.863-2.431.233-.868.044-1.779-.465-2.617M3.75 12h16.5"></path></svg>',_5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"></path></svg>';var C5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.
59621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"></path></svg>';var B5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"></path></svg>',f5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 18.75h-9m9 0a3 3 0 0 1 3 3h-15a3 3 0 0 1 3-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 0 1-.982-3.172M9.497 14.25a7.454 7.454 0 0 0 .981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 0 0 7.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 0 0 2.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 0 1 2.916.52 6.003 6.003 0 0 1-5.395 4.972m0 0a6.726 6.726 0 0 1-2.749 1.35m0 0a6.772 6.772 0 0 1-3.044 0"></path></svg>';var A5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M17.995 3.744v7.5a6 6 0 1 1-12 0v-7.5m-2.25 16.502h16.5"></path></svg>',y5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"></path></svg>',Z5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"></path></svg>';var j5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"></path></svg>';var V5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"></path></svg>';var H5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"></path></svg>';var L5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)"><path stroke-linecap="round" stroke-linejoin="round" d="m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path></svg>',S5='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" data-slot="icon" style="stroke-width:var(--ng-icon__stroke-width, 1.5)">
59<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"></path></svg>'; 60var Je$7=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(i){return new(i||n)(q$l(Fr$6),q$l(gt$f))};static \u0275dir=mt$d({type:n})}return n})(),X$e=(()=>{class n extends Je$7{static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,features:[pv$1]})}return n})(),E$f=new b$g("");var It$9={provide:E$f,useExisting:Qi$3(()=>Qe$b),multi:true};function Ot$7(){let n=Ha$1()?Ha$1().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var xt$9=new b$g(""),Qe$b=(()=>{class n extends Je$7{_compositionMode;_composing=false;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!Ot$7());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(i){return new(i||n)(q$l(Fr$6),q$l(gt$f),q$l(xt$9,8))};static \u0275dir=mt$d({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&Zv$1("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)});},standalone:false,features:[cN([It$9]),pv$1]})}return n})();function Me$b(n){return n==null||Ee$b(n)===0}function Ee$b(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var _$a=new b$g(""),O$m=new b$g(""),Rt$a=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ce$8=class Ce{static min(t){return et$b(t)}static max(t){return Pt$7(t)}static required(t){return tt$8(t)}static requiredTrue(t){return kt$9(t)}static email(t){return Tt$c(t)}static minLength(t){return nt$a(t)}static maxLength(t){return it$9(t)}static pattern(t){return rt$8(t)}static nullValidator(t){return re$6()}static compose(t){return dt$8(t)}static composeAsync(t){return ct$7(t)}};function et$b(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function Pt$7(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function tt$8(n){return Me$b(n.value)?{required:true}:null}function kt$9(n){return n.value===true?null:{required:true}}function Tt$c(n){return Me$b(n.value)||Rt$a.test(n.value)?null:{email:true}}function nt$a(n){return t=>{let e=t.value?.length??Ee$b(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function it$9(n){return t=>{let e=t.value?.length??Ee$b(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function rt$8(n){if(!n)return re$6;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Me$b(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function re$6(n){return null}function st$9(n){return n!=null}function ot$9(n){return Qo$6(n)?je$e(n):n}function at$b(n){let t={};
60return n.forEach(e=>{t=e!=null?r$d(r$d({},t),e):t;}),Object.keys(t).length===0?null:t}function lt$9(n,t){return t.map(e=>e(n))}function jt$a(n){return !n.validate}function ut$b(n){return n.map(t=>jt$a(t)?t:e=>t.validate(e))}function dt$8(n){if(!n)return null;let t=n.filter(st$9);return t.length==0?null:function(e){return at$b(lt$9(e,t))}}function Fe$c(n){return n!=null?dt$8(ut$b(n)):null}function ct$7(n){if(!n)return null;let t=n.filter(st$9);return t.length==0?null:function(e){let i=lt$9(e,t).map(ot$9);return NI(i).pipe(st$c(at$b))}}function we$c(n){return n!=null?ct$7(ut$b(n)):null}function We$b(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function ht$9(n){return n._rawValidators}function ft$8(n){return n._rawAsyncValidators}function Ve$c(n){return n?Array.isArray(n)?n:[n]:[]}function se$a(n,t){return Array.isArray(n)?n.includes(t):n===t}function qe$8(n,t){let e=Ve$c(t);return Ve$c(n).forEach(r=>{se$a(e,r)||e.push(r);}),e}function $e$b(n,t){return Ve$c(t).filter(e=>!se$a(n,e))}var oe$a=class oe{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Fe$c(this._rawValidators);}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=we$c(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[];}reset(t=void 0){this.control?.reset(t);}hasError(t,e){return this.control?this.control.hasError(t,e):false}getError(t,e){return this.control?this.control.getError(t,e):null}},h$8=class h extends oe$a{name;get formDirective(){return null}get path(){return null}};var W$i="VALID",ie$a="INVALID",T$e="PENDING",q$g="DISABLED",M$d=class M{},ae$a=class ae extends M$d{value;source;constructor(t,e){super(),this.value=t,this.source=e;}},z$i=class z extends M$d{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e;}},Z$b=class Z extends M$d{touched;source;constructor(t,e){super(),this.touched=t,this.source=e;}},j$l=class j extends M$d{status;source;constructor(t,e){super(),this.status=t,this.source=e;}},le$a=class le extends M$d{source;constructor(t){super(),this.source=t;}},S$i=class S extends M$d{source;constructor(t){super(),this.source=t;}};function Ne$c(n){return (ge$8(n)?n.validators:n)||null}function Bt$7(n){return Array.isArray(n)?Fe$c(n):n||null}function Se$b(n,t){return (ge$8(t)?t.asyncValidators:n)||null}function Gt$4(n){return Array.isArray(n)?we$c(n):n||null}function ge$8(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function gt$b(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new D$l(1e3,"");if(!mt$9(i,e))throw new D$l(1001,"")}function pt$a(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new D$l(-1002,"")});}var G$e=class G{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=On$7(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t;}get parent(){return this._parent}get status(){return Qn$9(this.statusReactive)}set status(t){Qn$9(()=>this.statusReactive.set(t));}_status=qd$1(()=>this.statusReactive());statusReactive=On$7(void 0);get valid(){return this.status===W$i}get invalid(){return this.status===ie$a}get pending(){return this.status===T$e}get disabled(){return this.status===q$g}get enabled(){return this.status!==q$g}errors;get pristine(){return Qn$9(this.pristineReactive)}set pristine(t){Qn$9(()=>this.pristineReactive.set(t));}_pristine=qd$1(()=>this.pristineReactive());pristineReactive=On$7(true);get dirty(){return !this.pristine}get touched(){return Qn$9(this.touchedReactive)}set touched(t){Qn$9(()=>this.touchedReactive.set(t));}_touched=qd$1(()=>this.touchedReactive());touchedReactive=On$7(false);get untouched(){return !this.touched}_events=new le$d;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t);}setAsyncValidators(t){this._assignAsyncValidators(t);}addValidators(t){this.setValidators(qe$8(t,this._rawValidators));}addAsyncValidators(t){this.setAsyncValidators(qe$8(t,this._rawAsyncValidators));}removeValidators(t){this.setValidators($e$b(t,this._rawValidators));}removeAsyncValidators(t){this.setAsyncValidators($e$b(t,this._rawAsyncValidators));}hasValidator(t){return se$a(this._rawValidators,t)}hasAsyncValidator(t){return se$a(this._rawAsyncValidators,t)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(t={}){let e=this.touched===false;this.touched=true;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(s$e(r$d({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new Z$b(true,i));}
60markAllAsDirty(t={}){this.markAsDirty({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t));}markAllAsTouched(t={}){this.markAsTouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t));}markAsUntouched(t={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:i});}),t.onlySelf||this._parent?._updateTouched(t,i),e&&t.emitEvent!==false&&this._events.next(new Z$b(false,i));}markAsDirty(t={}){let e=this.pristine===true;this.pristine=false;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(s$e(r$d({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new z$i(false,i));}markAsPristine(t={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:true,emitEvent:t.emitEvent});}),t.onlySelf||this._parent?._updatePristine(t,i),e&&t.emitEvent!==false&&this._events.next(new z$i(true,i));}markAsPending(t={}){this.status=T$e;let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new j$l(this.status,e)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(s$e(r$d({},t),{sourceControl:e}));}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=q$g,this.errors=null,this._forEachChild(r=>{r.disable(s$e(r$d({},t),{onlySelf:true}));}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new ae$a(this.value,i)),this._events.next(new j$l(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(s$e(r$d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(true));}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=W$i,this._forEachChild(i=>{i.enable(s$e(r$d({},t),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent}),this._updateAncestors(s$e(r$d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(false));}_updateAncestors(t,e){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(t){this._parent=t;}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===W$i||this.status===T$e)&&this._runAsyncValidator(i,t.emitEvent);}let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new ae$a(this.value,e)),this._events.next(new j$l(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(s$e(r$d({},t),{sourceControl:e}));}_updateTreeValidity(t={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?q$g:W$i;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=T$e,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:t!==false};let i=ot$9(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,t}return false}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i?.errors?i.errors[t]:null}hasError(t,e){return !!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new j$l(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i);}_initObservables(){this.valueChanges=new Ct$h,this.statusChanges=new Ct$h;}_calculateStatus(){return this._allControlsDisabled()?q$g:this.errors?ie$a:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T$e)?T$e:this._anyControlsHaveStatus(ie$a)?ie$a:W$i}
60_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,t.onlySelf||this._parent?._updatePristine(t,e),r&&this._events.next(new z$i(this.pristine,e));}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new Z$b(this.touched,e)),t.onlySelf||this._parent?._updateTouched(t,e);}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t;}_setUpdateStrategy(t){ge$8(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn);}_parentMarkedDirty(t){return !t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Bt$7(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Gt$4(this._rawAsyncValidators);}_updateHasRequiredValidator(){Qn$9(()=>this._hasRequired.set(this.hasValidator(Ce$8.required)));}};function mt$9(n,t){return Object.hasOwn(n,t)}function Ut$8(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function Ht$8(n,t,e,i){switch(e){case "name":n.setAttribute(t,e,i);break;case "disabled":case "readonly":case "required":i?n.setAttribute(t,e,""):n.removeAttribute(t,e);break;case "max":case "min":case "minLength":case "maxLength":i!==void 0?n.setAttribute(t,e,i.toString()):n.removeAttribute(t,e);break}}var De$a=class De{kind;context;control;message;constructor({kind:t,context:e,control:i}){this.kind=t,this.context=e,this.control=i;}};function vt$9(n){return typeof n=="number"?n:parseInt(n,10)}function Lt$8(n){return typeof n=="number"?n:parseFloat(n)}var Y$f=(()=>{class n{_validator=re$6;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):re$6,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=mt$d({type:n,features:[Ar$8]})}return n})();var Wt$9={provide:_$a,useExisting:Qi$3(()=>qt$6),multi:true},qt$6=(()=>{class n extends Y$f{min;inputName="min";normalizeInput=e=>Lt$8(e);createValidator=e=>et$b(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&Pv$1("min",r._enabled?r.min:null);},inputs:{min:"min"},standalone:false,features:[cN([Wt$9]),pv$1]})}return n})(),$t$7={provide:_$a,useExisting:Qi$3(()=>_t$c),multi:true};var _t$c=(()=>{class n extends Y$f{required;inputName="required";normalizeInput=ni$7;createValidator=e=>tt$8;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&Pv$1("required",r._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[cN([$t$7]),pv$1]})}return n})();var zt$9={provide:_$a,useExisting:Qi$3(()=>Zt$8),multi:true},Zt$8=(()=>{class n extends Y$f{minlength;inputName="minlength";normalizeInput=e=>vt$9(e);createValidator=e=>nt$a(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&Pv$1("minlength",r._enabled?r.minlength:null);},inputs:{minlength:"minlength"},standalone:false,features:[cN([zt$9]),pv$1]})}return n})(),Xt$8={provide:_$a,useExisting:Qi$3(()=>Yt$7),multi:true},Yt$7=(()=>{class n extends Y$f{maxlength;inputName="maxlength";normalizeInput=e=>vt$9(e);createValidator=e=>it$9(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&Pv$1("maxlength",r._enabled?r.maxlength:null);},inputs:{maxlength:"maxlength"},standalone:false,features:[cN([Xt$8]),pv$1]})}return n})(),Kt$8={provide:_$a,useExisting:Qi$3(()=>Jt$8),multi:true},Jt$8=(()=>{class n extends Y$f{pattern;inputName="pattern";normalizeInput=e=>e;createValidator=e=>rt$8(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&Pv$1("pattern",r._enabled?r.pattern:null);},inputs:{pattern:"pattern"},standalone:false,features:[cN([Kt$8]),pv$1]})}return n})(),Qt$8=new b$g(""),x$e=new b$g("",{factory:()=>K$l}),K$l="always";function pe$c(n,t){return [...t.path,n]}function ue$6(n,t,e=K$l){Ie$7(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),tn$7(n,t),rn$7(n,t),nn$6(n,t),en$7(n,t);}function de$8(n,t,e=true){let i=()=>{};t?.valueAccessor?.registerOnChange(i),t?.valueAccessor?.registerOnTouched(i),he$b(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}
60function ce$8(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t);});}function en$7(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i);};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function Ie$7(n,t){let e=ht$9(n);t.validator!==null?n.setValidators(We$b(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=ft$8(n);t.asyncValidator!==null?n.setAsyncValidators(We$b(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();ce$8(t._rawValidators,r),ce$8(t._rawAsyncValidators,r);}function he$b(n,t){let e=false;if(n!==null){if(t.validator!==null){let r=ht$9(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=true,n.setValidators(s));}}if(t.asyncValidator!==null){let r=ft$8(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=true,n.setAsyncValidators(s));}}}let i=()=>{};return ce$8(t._rawValidators,i),ce$8(t._rawAsyncValidators,i),e}function tn$7(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&yt$c(n,t);});}function nn$6(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&yt$c(n,t),n.updateOn!=="submit"&&n.markAsTouched();});}function yt$c(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function rn$7(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i);};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function Ct$d(n,t){Ie$7(n,t);}function sn$7(n,t){return he$b(n,t)}function Oe$9(n,t){if(!n.hasOwnProperty("model"))return false;let e=n.model;return e.isFirstChange()?true:!Object.is(t,e.currentValue)}function on$6(n){return Object.getPrototypeOf(n.constructor)===X$e}function Vt$6(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=false);});}function an$4(n,t){if(!t)return null;let e,i,r;return t.forEach(s=>{s.constructor===Qe$b?e=s:on$6(s)?i=s:r=s;}),r||i||e||null}function ln$7(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}var xe$a={provide:Qt$8,useFactory:()=>{let n=g$k(y$b,{self:true});return {setParseErrors:t=>{n.setParseErrorSource(t);},set onReset(t){n.onReset=t;}}}},y$b=class y extends oe$a{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof S$i&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=an$4(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,e,i){super(),this.injector=t,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(de$b)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(Va$2);if(!this.control||!t)return;let e=t.markForCheck.bind(t);this.subscription=new Q$f,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof S$i&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>
600||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=true,t.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(r);}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=Ut$8(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof _t$c));}ngControlUpdate(t,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,t.setCustomControlModelInput(i.value)),this.bindControlProperty(t,r,"touched",i.touched),this.bindControlProperty(t,r,"dirty",i.dirty),this.bindControlProperty(t,r,"valid",i.valid),this.bindControlProperty(t,r,"invalid",i.invalid),this.bindControlProperty(t,r,"pending",i.pending),this.bindControlProperty(t,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(t,r,"required",this.isRequired);let s=i.errors;if(r.errors!==s){r.errors=s;let a=this._convertErrors(s);t.setInputOnDirectives("errors",a);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return true}bindControlProperty(t,e,i,r){if(e[i]===r)return;e[i]=r;let s=t.setInputOnDirectives(i,r);this.isNativeFormElement&&!s&&(i==="disabled"||i==="required")&&this.renderer&&Ht$8(this.renderer,t.nativeElement,i,r);}_convertErrors(t){if(t===null)return [];let e=this.control;return Object.entries(t).map(([i,r])=>new De$a({context:r,kind:i,control:e}))}setParseErrorSource(t){if(t===void 0)return;let e=null,i=qd$1(()=>{let r=t();return r.length===0?null:r.reduce((s,a)=>(s[a.kind]=a,s),{})});this.parseErrorsValidator=(()=>e).bind(this),Es$3(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:false}));}},fe$9=class fe{_cd;constructor(t){this._cd=t;}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return !!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return !!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return !!this._cd?.control?.invalid}get isPending(){return !!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Xn$7=(()=>{class n extends fe$9{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(q$l(y$b,2))};static \u0275dir=mt$d({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&iD("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:false,features:[pv$1]})}return n})(),Yn$6=(()=>{class n extends fe$9{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(q$l(h$8,10))};static \u0275dir=mt$d({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&iD("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:false,features:[pv$1]})}return n})(),I$b=class I extends G$e{constructor(t,e,i){super(Ne$c(e),Se$b(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(t,e){let i=this._find(t);return i||(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}
60){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(t,e={}){let i=this._find(t);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(t,e,i={}){let r=this._find(t);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(t){return this._find(t)?.enabled===true}setValue(t,e={}){Qn$9(()=>{pt$a(this,true,t),Object.keys(t).forEach(i=>{gt$b(this,true,i),this.controls[i].setValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this._find(i);r&&r.patchValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,s$e(r$d({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new S$i(this));}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(false,(e,i)=>i._syncPendingControls()?true:e);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e);});}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return true;return false}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s);}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return false;return Object.keys(this.controls).length>0||this.disabled}_find(t){return mt$9(this.controls,t)?this.controls[t]:null}};var Kn$7=I$b;var be$b=class be extends I$b{};var un$7={provide:h$8,useExisting:Qi$3(()=>dn$7)},$$h=Promise.resolve(),dn$7=(()=>{class n extends h$8{callSetDisabledState;get submitted(){return Qn$9(this.submittedReactive)}_submitted=qd$1(()=>this.submittedReactive());submittedReactive=On$7(false);_directives=new Set;form;ngSubmit=new Ct$h;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new I$b({},Fe$c(e),we$c(i));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this}get control(){return this.form}get path(){return []}get controls(){return this.form.controls}addControl(e){$$h.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:false}),this._directives.add(e);});}getControl(e){return this.form.get(e.path)}
60removeControl(e){$$h.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){$$h.then(()=>{let i=this._findContainer(e.path),r=new I$b({});Ct$d(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:false});});}removeFormGroup(e){$$h.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name);});}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){$$h.then(()=>{this.form.get(e.path).setValue(i);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(true),Vt$6(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new le$a(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(false);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(q$l(_$a,10),q$l(O$m,10),q$l(x$e,8))};static \u0275dir=mt$d({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&Zv$1("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[cN([un$7]),pv$1]})}return n})();function ze$c(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}function Ze$e(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var B$k=class B extends G$e{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(t=null,e,i){super(Ne$c(e),Se$b(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),ge$8(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ze$e(t)?this.defaultValue=t.value:this.defaultValue=t);}setValue(t,e={}){Qn$9(()=>{this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(t,e={}){this.setValue(t,e);}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new S$i(this));}_updateValue(){}_anyControls(t){return false}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t);}_unregisterOnChange(t){ze$c(this._onChange,t);}registerOnDisabledChange(t){this._onDisabledChange.push(t);}_unregisterOnDisabledChange(t){ze$c(this._onDisabledChange,t);}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:true,emitModelToViewChange:false}),true):false}_applyFormState(t){Ze$e(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false})):this.value=this._pendingValue=t;}},Qn$7=B$k,cn$7=n=>n instanceof B$k,hn$6=(()=>{class n extends h$8{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this);}ngOnDestroy(){this.formDirective?.removeFormGroup(this);}get control(){return this.formDirective.getFormGroup(this)}get path(){return pe$c(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,standalone:false,features:[pv$1]})}return n})();var fn$8={provide:y$b,useExisting:Qi$3(()=>gn$7)},Xe$7=Promise.resolve(),gn$7=(()=>{class n extends y$b{_changeDetectorRef;callSetDisabledState;control=new B$k;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new Ct$h;constructor(e,i,r,s,a,g,C,U){super(C,U,s),this._changeDetectorRef=a,this.callSetDisabledState=g,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),Oe$9(e,this.viewModel)&&(this._updateV
60alue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return false}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ue$6(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ue$6(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){Xe$7.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&ni$7(i);Xe$7.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?pe$c(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(q$l(h$8,9),q$l(_$a,10),q$l(O$m,10),q$l(E$f,10),q$l(Va$2,8),q$l(x$e,8),q$l(oe$e,8),q$l(Fr$6,8))};static \u0275dir=mt$d({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:false,features:[cN([fn$8,xe$a]),pv$1,Ar$8,XS(null)]})}return n})();var ei$5=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=mt$d({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})(),pn$7={provide:E$f,useExisting:Qi$3(()=>mn$7),multi:true},mn$7=(()=>{class n extends X$e{writeValue(e){let i=e??"";this.setProperty("value",i);}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Zv$1("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[cN([pn$7]),pv$1]})}return n})(),vn$6={provide:E$f,useExisting:Qi$3(()=>yn$7),multi:true};var _n$6=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i]);}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value);});}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:false}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),yn$7=(()=>{class n extends X$e{_registry;_injector;_state;_control;_fn;setDisabledStateFired=false;onChange=()=>{};name;formControlName;value;callSetDisabledState=g$k(x$e,{optional:true})??K$l;constructor(e,i,r,s){super(e,i),this._registry=r,this._injector=s;}ngOnInit(){this._control=this._injector.get(y$b),this._checkName(),this._registry.add(this._control,this);}ngOnDestroy(){this._registry.remove(this);}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state);}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this);};}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=true;}fireUncheck(e){this.writeValue(e);}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName);}static \u0275fac=function(i){return new(i||n)(q$l(Fr$6),q$l(gt$f),q$l(_n$6),q$l(oe$e))};static \u0275dir=mt$d({type:n,selectors:[["input","type","radio","formControlName","",3,"ngNoCva",""],["input","type","radio","formControl","",3,"ngNoCva",""],["input","type","radio","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Zv$1("change",function(){return r.onChange()})("blur",function(){return r.onTouched()});},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:false,features:[cN([vn$6]),pv$1]})}return n})();var Ae$a=class Ae extends G$e{constructor(t,e,i){super(Ne$c(e),Se$b(i,e)),this.controls=t,this._initOb
60servables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i);}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(t,e={}){Qn$9(()=>{pt$a(this,false,t),t.forEach((i,r)=>{gt$b(this,false,r),this.at(r).setValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],s$e(r$d({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new S$i(this));}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}));}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?true:e,false);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i);});}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value);}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t));}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return false;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);}_find(t){return this.at(t)??null}};var Dt$8=(()=>{class n extends h$8{callSetDisabledState;get submitted(){return Qn$9(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=qd$1(()=>this._submittedReactive());_submittedReactive=On$7(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(he$b(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let i=this.form.get(e.path);return e._setupWithForm(i,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:false}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}
60removeControl(e){de$8(e.control||null,e,false),ln$7(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,i){this.form.get(e.path).setValue(i);}onReset(){this.resetForm();}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,Vt$6(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new le$a(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(de$8(i||null,e),cn$7(r)&&e._setupWithForm(r,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let i=this.form.get(e.path);Ct$d(i,e),i.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&sn$7(i,e)&&i.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){Ie$7(this.form,this),this._oldForm&&he$b(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(i){return new(i||n)(q$l(_$a,10),q$l(O$m,10),q$l(x$e,8))};static \u0275dir=mt$d({type:n,features:[pv$1,Ar$8]})}return n})();var Re$a=new b$g(""),Cn$4={provide:y$b,useExisting:Qi$3(()=>Vn$7)},Vn$7=(()=>{class n extends y$b{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Ct$h;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,g,C){super(C,g,r),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&(de$8(i,this,false),this.removeParseErrorsValidator(i)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ue$6(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:false});}Oe$9(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&de$8(this.form,this,false);}get path(){return []}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form")}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,true);}static \u0275fac=function(i){return new(i||n)(q$l(_$a,10),q$l(O$m,10),q$l(E$f,10),q$l(Re$a,8),q$l(x$e,8),q$l(Fr$6,8),q$l(oe$e,8))};static \u0275dir=mt$d({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:false,features:[cN([Cn$4,xe$a]),pv$1,Ar$8,XS(null)]})}return n})(),Dn$6={provide:h$8,useExisting:Qi$3(()=>bt$d)},bt$d=(()=>{class n extends hn$6{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_checkParentType(){Mt$8(this._parent);}static \u0275fac=function(i){return new(i||n)(q$l(h$8,13),q$l(_$a,10),q$l(O$m,10))};static \u0275dir=mt$d({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:false,features:[cN([Dn$6]),pv$1]})}return n})(),bn$7={provide:h$8,useExisting:Qi$3(()=>At$7)},At$7=(()=>{class n extends h$8{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnInit(){Mt$8(this._parent),this.formDirective.addFormArray(this);}ngOnDestroy(){this.formDirective?.removeFormArray(this);}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return pe$c(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(q$l(h$8,13),q$l(_$a,10),q$l(O$m,10))};static \u0275dir=mt$d({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:false,features:[cN([bn$7]),pv$1]})}return n})();function Mt$8(n){return !(n instanceof bt$d)&&!(n instanceof Dt$8)&&!(n instanceof At$7)}var An$6={provide:y$b,useExisting:Qi$3(()=>Mn$6)},Mn$6=(()=>{class n extends y$b{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new Ct$h;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,g,C){super(C,g,s),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}
60_setupWithForm(e,i){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ue$6(e,this,i));}ngOnChanges(e){this._added||this._setUpControl(),Oe$9(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return pe$c(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(i){return new(i||n)(q$l(h$8,13),q$l(_$a,10),q$l(O$m,10),q$l(E$f,10),q$l(Re$a,8),q$l(Fr$6,8),q$l(oe$e,8))};static \u0275dir=mt$d({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[cN([An$6,xe$a]),pv$1,Ar$8,XS(null)]})}return n})();var En$6={provide:h$8,useExisting:Qi$3(()=>Fn$7)},Fn$7=(()=>{class n extends Dt$8{form=null;ngSubmit=new Ct$h;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&Zv$1("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[cN([En$6]),pv$1]})}return n})(),wn$6={provide:E$f,useExisting:Qi$3(()=>Ft$6),multi:true};function Et$9(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function Nn$7(n){return n.split(":")[0]}var Ft$6=(()=>{class n extends X$e{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;appRefInjector=g$k(yt$f).injector;destroyRef=g$k(de$b);cdr=g$k(Va$2);_queuedWrite=false;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=true,Xl$1({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=false,this.writeValue(this.value));}},{injector:this.appRefInjector}));}writeValue(e){this.cdr.markForCheck(),this.value=e;let i=this._getOptionId(e),r=Et$9(i,e);this.setProperty("value",r);}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value);};}_registerOption(){return (this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=Nn$7(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Zv$1("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[cN([wn$6]),pv$1]})}return n})(),ti$5=(()=>{class n{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption());}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Et$9(this.id,e)),this._select._writeValueAfterRender());}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender();}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender();}static \u0275fac=function(i){return new(i||n)(q$l(gt$f),q$l(Fr$6),q$l(Ft$6,9))};static \u0275dir=mt$d({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})(),Sn$6={provide:E$f,useExisting:Qi$3(()=>wt$e),multi:true};function Ye$a(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function In$7(n){return n.split(":")[0]}var wt$e=(()=>{class n extends X$e{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(r.indexOf(a)>-1);};}else i=r=>{r._setSelected(false);};
60this._optionMap.forEach(i);}registerOnChange(e){this.onChange=i=>{let r=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let g=0;g<a.length;g++){let C=a[g],U=this._getOptionValue(C.value);r.push(U);}}else {let a=i.options;for(let g=0;g<a.length;g++){let C=a[g];if(C.selected){let U=this._getOptionValue(C.value);r.push(U);}}}this.value=r,e(r);};}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=In$7(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(n)))(r||n)}})();static \u0275dir=mt$d({type:n,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Zv$1("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()});},inputs:{compareWith:"compareWith"},standalone:false,features:[cN([Sn$6]),pv$1]})}return n})(),ni$5=(()=>{class n{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this));}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Ye$a(this.id,e)),this._select.writeValue(this._select.value));}set value(e){this._select?(this._value=e,this._setElementValue(Ye$a(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e);}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e);}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e);}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value));}static \u0275fac=function(i){return new(i||n)(q$l(gt$f),q$l(Fr$6),q$l(wt$e,9))};static \u0275dir=mt$d({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:false})}return n})();var Nt$9=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({})}return n})();function Ke$b(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var St$a=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,i=null){let r=this._reduceControls(e),s={};return Ke$b(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new I$b(r,s)}record(e,i=null){let r=this._reduceControls(e);return new be$b(r,i)}control(e,i,r){let s={};return this.useNonNullable?(Ke$b(i)?s=i:(s.validators=i,s.asyncValidators=r),new B$k(e,s$e(r$d({},s),{nonNullable:true}))):new B$k(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new Ae$a(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i}_createControl(e){if(e instanceof B$k)return e;if(e instanceof G$e)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),ii$5=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=Wn$9({token:n,factory:()=>g$k(St$a).nonNullable})}return n})(),ri$5=(()=>{class n extends St$a{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),si$5=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:x$e,useValue:e.callSetDisabledState??K$l}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({imports:[Nt$9]})}return n})(),oi$5=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:Re$a,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:x$e,useValue:e.callSetDisabledState??K$l}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({imports:[Nt$9]})}return n})();function S$h(t){return t==null?"":/^\d+$/.test(t)?`${t}px`:t}var T$d=new b$g("Ng Icon Pre Processor"),j$k=new b$g("Ng Icon Post Processor");function L$f(){return g$k(T$d,{optional:true})??(t=>t)}function R$a(){return g$k(j$k,{optional:true})??(()=>{})}var b$b=new b$g("Ng Icon Logger"),p$e=class p{log(r){console.log(r);}warn(r){console.warn(r);}error(r){console.error(r);}};function A$d(){return g$k(b$b,{optional:true})??new p$e}var D$f=new b$g("Ng Icon Config");function G$d(){return g$k(D$f,{optional:true})??{}}
60var O$l=new b$g("Ng Icon Loader Token");var V$f=new b$g("Ng Icon Cache Token");function H$f(){return g$k(O$l,{optional:true})}function F$e(){return g$k(V$f,{optional:true})}function $$g(t){return [{provide:g$e,useFactory:(r=g$k(g$e,{optional:true,skipSelf:true}))=>r$d(r$d({},r?.reduce((e,n)=>r$d(r$d({},e),n),{})),t),multi:true}]}var g$e=new b$g("Icons Token");function q$f(){return g$k(g$e,{optional:true})??[]}function x$d(t){return typeof t=="string"?Promise.resolve(t):DI(t)?t.toPromise():t}function B$j(t){return t.replace(/([^a-zA-Z0-9])+(.)?/g,(r,e,n)=>n?n.toUpperCase():"").replace(/[^a-zA-Z\d]/g,"").replace(/^([A-Z])/,r=>r.toLowerCase())}var W$h=0,le$9=(()=>{class t{constructor(){this.config=G$d(),this.icons=q$f(),this.loader=H$f(),this.cache=F$e(),this.preProcessor=L$f(),this.postProcessor=R$a(),this.injector=g$k(oe$e),this.renderer=g$k(Fr$6),this.platform=g$k(AC$1),this.elementRef=g$k(gt$f),this.uniqueId=W$h++,this.logger=A$d(),this.name=X8(),this.svg=X8(),this.size=X8(this.config.size,{transform:S$h}),this.strokeWidth=X8(this.config.strokeWidth),this.color=X8(this.config.color),Es$3(()=>this.updateIcon()),g$k(new JD("aria-hidden"),{optional:true})||this.elementRef.nativeElement.setAttribute("aria-hidden","true");}ngOnDestroy(){this.svgElement=void 0;}async updateIcon(){let e=this.name(),n=this.svg();if(n!==void 0){this.setSvg(n);return}if(e===void 0)return;let o=B$j(e);for(let s of [...this.icons].reverse())if(s[o]){this.setSvg(s[o]);return}if(this.loader){let s=await this.requestIconFromLoader(e);if(s!==null){this.setSvg(s);return}}this.logger.warn(`No icon named ${e} was found. You may need to import it using the withIcons function.`);}setSvg(e){if(xG(this.platform)){this.elementRef.nativeElement.innerHTML=e,this.elementRef.nativeElement.setAttribute("data-ng-icon-ssr","");return}if(this.elementRef.nativeElement.hasAttribute("data-ng-icon-ssr")&&(this.elementRef.nativeElement.removeAttribute("data-ng-icon-ssr"),this.svgElement=this.elementRef.nativeElement.querySelector("svg")??void 0,this.elementRef.nativeElement.innerHTML===e)||(this.svgElement&&this.renderer.removeChild(this.elementRef.nativeElement,this.svgElement),e===""))return;let n=this.renderer.createElement("template");e=this.replaceIds(e),this.renderer.setProperty(n,"innerHTML",this.preProcessor(e)),this.svgElement=n.content.firstElementChild,this.postProcessor(this.svgElement),this.renderer.appendChild(this.elementRef.nativeElement,this.svgElement);}replaceIds(e){if(!e.includes("ID_PLACEHOLDER_"))return e;let n=/ID_PLACEHOLDER_(\d+)/g,o=new Map,s=new Set(e.match(n));if(s===null)return e;for(let l of s){let u=l.replace("ID_PLACEHOLDER_",""),d=`ng-icon-${this.uniqueId}-${o.size}`;o.set(u,d),e=e.replace(new RegExp(l,"g"),d);}return e}requestIconFromLoader(e){return new Promise(n=>{rs$4(this.injector,async()=>{if(this.cache){let l=this.cache.get(e);if(typeof l=="string"){n(l);return}if(l instanceof Promise){let u=await l;n(u);return}}let o=x$d(this.loader(e));this.cache?.set(e,o);let s=await o;this.cache?.set(e,s),n(s);});})}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["ng-icon"]],hostAttrs:["role","img"],hostVars:6,hostBindings:function(n,o){n&2&&Ma$2("--ng-icon__stroke-width",o.strokeWidth())("--ng-icon__size",o.size())("--ng-icon__color",o.color());},inputs:{name:[1,"name"],svg:[1,"svg"],size:[1,"size"],strokeWidth:[1,"strokeWidth"],color:[1,"color"]},decls:0,vars:0,template:function(n,o){},styles:["[_nghost-%COMP%]{display:inline-block;width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);line-height:initial;vertical-align:initial;overflow:hidden}[_nghost-%COMP%] svg{width:inherit;height:inherit;vertical-align:inherit}@layer ng-icon{[_nghost-%COMP%]{color:var(--ng-icon__color, currentColor)}}"]});}}return t})(),ae$9=(()=>{class t{constructor(e){if(Object.keys(e).length===0)throw new Error("No icons have been provided. Ensure to include some icons by importing them using NgIconsModule.withIcons({ ... }).")}static withIcons(e){return {ngModule:t,providers:$$g(e)}}static{this.\u0275fac=function(n){return new(n||t)(G$k(g$e))};}static{this.\u0275mod=Sa$2({type:t});}static{this.\u0275inj=io$5({});}}return t})();function x$c(n){var l,t,e="";if(typeof n=="string"||typeof n=="number")e+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(l=0;l<a;l++)n[l]&&(t=x$c(n[l]))&&(e&&(e+=" "),e+=t);}else for(t in n)n[t]&&(e&&(e+=" "),e+=t);return e}function V$e(){for(var n,l,t=0,e="",a=arguments.length;t<a;t++)(n=arguments[t])&&(l=x$c(n))&&(e&&(e+=" "),e+=l);return e}var N$9=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,b$a=V$e,k$g=(n,l)=>t=>{var e;if(l?.variants==null)return b$a(n,t?.class,t?.className);let{variants:a,defaultVariants:u}=l,C=Object.keys(a).map(r=>{let i=t?.[r],s=u?.[r];if(i===null)return null;let o=N$9(i)||N$9(s);return a[r][o]}),c=t&&Object.entries(t).reduce((r,i)=>{let[s,o]=i;return o===void 0||(r[s]=o),r},{}),j=l==null||(e=l.compoundVariants)===null||e===void 0?void 0:e.reduce((r,i)=>{let f=i,{class:s,className:o}=f,A=v$m(f,["class","className"]);return Object.entries(A).every(O=>{let[m,v]=O;return Array.isArray(v)?v.includes(r$d(r$d({},u),c)[m]):r$d(r$d({},u),c)[m]===v})?[...r,s,o]:r},[]);return b$a(n,C,j,t?.class,t?.className)};function U$c(e,n){return n||`${e}-${crypto.randomUUID()}`}var w$d=(()=>{class e{constructor(){this._describedByIds=On$7({}),this.describedBy=qd$1(()=>{let r=Object.values(this._describedByIds());return r.length>0?r.join(" "):null});}register(r,i){this._describedByIds.update(t=>s$e(r$d({},t),{[r]:i}));}unregister(r){this._describedByIds.update(i=>{let t=r$d({},i);return delete t[r],t});}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();function q$e(e,n){return e||(n??null)}function $$f(e){return e===void 0?false:typeof e=="function"?e():e}function E$e(){let e=()=>{},n=()=>{};return {registerOnChange(r){e=r;},registerOnTouched(r){n=r;},writeValue(r){r();},commitValue(r,i){return $$f(i)?false:(e(r),true)},markTouched(){n();}}}function H$e(e){return n=>{e.set(n);}}var g$d="peer-focus-visible:shadow-[0_0_0_2px_var(--form-input-bg),0_0_0_4px_var(--borders-focus-default)]",j$j="peer-focus-visible:shadow-[0_0_0_2px_var(--form-input-bg),0_0_0_4px_var(--borders-focus-error)]",L$e=k$g("pointer-events-none inline-flex size-4 items-center justify-center overflow-hidden rounded border transition-colors",{variants:{selection:{unchecked:null,checked:null,indeterminate:null},state:{default:null,disabled:null,error:null}},compoundVariants:[{selection:"unchecked",state:"default",class:["border-borders-secondary bg-backgrounds-surface-raised","peer-hover:border-borders-secondaryHover","peer-focus-visible:border-borders-secondaryHover",g$d]},{selection:"checked",state:"default",class:["border-borders-brand bg-backgrounds-fill-brand-strong text-form-checkbox-icon","peer-hover:border-borders-brand","peer-focus-visible:border-borders-brand",g$d]},{selection:"indeterminate",state:"default",class:["border-borders-secondary bg-backgrounds-surface-raised text-icons-subtle","peer-hover:border-borders-secondaryHover peer-hover:text-icons-default","peer-focus-visible:border-borders-secondaryHover peer-focus-visible:text-icons-default",g$d]},{selection:["unchecked","checked","indeterminate"],state:"disabled",class:"border-borders-disabled bg-backgrounds-fill-neutral-disabled text-text-disabled"},{selection:"unchecked",state:"error",class:["border-borders-danger bg-backgrounds-fill-danger-subtle","peer-focus-visible:border-borders-focus-error",j$j]},{selection:["checked","indeterminate"],state:"error",class:["border-borders-danger bg-backgrounds-fill-danger-strong text-form-checkbox-icon","peer-focus-visible:border-borders-focus-error",j$j]}]});function P$a(e,n){e&1&&Vv$1(0,"ng-icon",3);}function J$h(e,n){e&1&&Vv$1(0,"ng-icon",4);}var ve$a=(()=>{class e{constructor(){this._cdr=g$k(Va$2),this._cva=E$e(),this._ariaRegistry=g$k(w$d,{optional:true}),this._defaultId=U$c("mspot-checkbox-indicator"),this.value=X8(false,{transform:ni$7}),this.disabled=X8(false,{transform:ni$7}),this.tabIndex=X8(0),this.indeterminate=X8(false),this.dataState=X8("default"),this.inputId=X8(null),this.ariaLabel=X8(null,{alias:"aria-label"}),this.ariaDescribedBy=X8(null),this.inheritFieldDescribedBy=X8(true,{transform:ni$7}),this.required=X8(false,{transform:ni$7}),this.dataCy=X8(null),this.noValueUpdate=X8(false,{transform:ni$7}),this.valueChange=J8(),this.indeterminateChange=J8(),this.blurred=J8(),this._value=ON(()=>this.value()),this.resolvedValue=this._value.asReadonly(),this._indeterminate=ON(()=>this.indeterminate()),this.resolvedIndeterminate=this._indeterminate.asReadonly(),this._formDisabled=On$7(false),this.resolvedDisabled=qd$1(()=>this.disabled()||this._formDisabled()),this.resolvedSelection=qd$1(()=>this.resolvedIndeterminate()?"indeterminate":this.resolvedValue()?"checked":"unchecked"),this.resolvedIndicatorState=qd$1(()=>this.resolvedDisabled()?"disabled":this.dataState()==="error"?"error":"default"),this.indicatorClass=qd$1(()=>L$e({selection:this.resolvedSelection(),state:this.resolvedIndicatorState()})),this.id=qd$1(()=>this.inputId()??this._defaultId),this.resolvedAriaDescribedBy=qd$1(()=>this.inheritFieldDescribedBy()?q$e(this._ariaRegistry?.describedBy(),this.ariaDescribedBy()):this.ariaDescribedBy()??null),this.resolvedAriaInvalid=qd$1(()=>!this.resolvedDisabled()&&this.dataState()==="error"?"true":null),this.resolvedAriaRequired=qd$1(()=>this.required()?"true":null),this.setDisabledState=H$e(this._formDisabled);}setValue(r){this._value.set(r),this._cdr.markForCheck();}updateValue(r){let i=r.target;if(this.noValueUpdate()||this.resolvedDisabled()){i.checked=this.resolvedValue();return}let t=i.checked;if(!this._cva.commitValue(t,()=>this.resolvedDisabled())){i.checked=this.resolvedValue();return}this._indeterminate()&&(this._indeterminate.set(false),this.indeterminateChange.emit(false)),this._value.set(t),this.valueChange.emit(t),this._cdr.markForCheck();}onBlur(){this._cva.markTouched(),this.blurred.emit();}writeValue(r){this._cva.writeValue(()=>{this._value.set(!!r),this._cdr.markForCheck();});}registerOnChange(r){this._cva.registerOnChange(r);}registerOnTouched(r){this._cva.registerOnTouched(r);}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-checkbox-indicator"]],hostAttrs:[1,"inline-flex","
60shrink-0"],inputs:{value:[1,"value"],disabled:[1,"disabled"],tabIndex:[1,"tabIndex"],indeterminate:[1,"indeterminate"],dataState:[1,"dataState"],inputId:[1,"inputId"],ariaLabel:[1,"aria-label","ariaLabel"],ariaDescribedBy:[1,"ariaDescribedBy"],inheritFieldDescribedBy:[1,"inheritFieldDescribedBy"],required:[1,"required"],dataCy:[1,"dataCy"],noValueUpdate:[1,"noValueUpdate"]},outputs:{valueChange:"valueChange",indeterminateChange:"indeterminateChange",blurred:"blurred"},features:[cN([{provide:E$f,useExisting:Qi$3(()=>e),multi:true},$$g({heroCheck:G$f,heroMinus:G1})])],decls:5,vars:13,consts:[[1,"relative","flex","size-6","shrink-0","items-center","justify-center"],["type","checkbox",1,"peer","absolute","inset-0","size-full","cursor-pointer","opacity-0","disabled:cursor-not-allowed",3,"change","blur","id","checked","indeterminate","disabled"],["aria-hidden","true"],["name","heroMinus","strokeWidth","3",1,"size-3"],["name","heroCheck","strokeWidth","3",1,"size-3"]],template:function(i,t){i&1&&(ta$3(0,"span",0)(1,"input",1),Zv$1("change",function(W){return t.updateValue(W)})("blur",function(){return t.onBlur()}),Pd$1(),ta$3(2,"span",2),eM$1(3,P$a,1,0,"ng-icon",3)(4,J$h,1,0,"ng-icon",4),Pd$1()()),i&2&&(uT(),jv$1("id",t.id())("checked",t.resolvedValue())("indeterminate",t.resolvedIndeterminate())("disabled",t.resolvedDisabled()),Pv$1("tabindex",t.tabIndex())("data-cy",t.dataCy())("aria-label",t.ariaLabel())("aria-describedby",t.resolvedAriaDescribedBy())("aria-invalid",t.resolvedAriaInvalid())("aria-required",t.resolvedAriaRequired()),uT(),BM(t.indicatorClass()),uT(),tM$1(t.resolvedIndeterminate()?3:t.resolvedValue()?4:-1));},dependencies:[le$9],encapsulation:2});}}return e})();function f$b(r){return r!=null&&`${r}`!="false"}function l$8(r,t=/\s+/){let e=[];
60if(r!=null){let c=Array.isArray(r)?r:`${r}`.split(t);for(let n of c){let o=`${n}`.trim();o&&e.push(o);}}return e}var _$9=new WeakMap,R$9=(()=>{class e{_appRef;_injector=g$k(oe$e);_environmentInjector=g$k(Ae$e);load(n){let t=this._appRef=this._appRef||this._injector.get(yt$f),o=_$9.get(t);o||(o={loaders:new Set,refs:[]},_$9.set(t,o),t.onDestroy(()=>{_$9.get(t)?.refs.forEach(U=>U.destroy()),_$9.delete(t);})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(d3(n,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(t){return new(t||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})}return e})();function p$d(e){return Array.isArray(e)?e:[e]}function C$5(e,r=0){return O$k(e)?Number(e):arguments.length===2?r:0}function O$k(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function d$f(e){return e instanceof gt$f?e.nativeElement:e}var f$a=new Map,S$g=class e{_appId=g$k(Xt$c);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(r,n=false){this._appId!=="ng"&&(r+=this._appId);let t=f$a.get(r);return t===void 0?t=0:t++,f$a.set(r,t),`${r}${n?e._infix+"-":""}${t}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})};function K$k(e,...r){return r.length?r.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var o$8;try{o$8=typeof Intl<"u"&&Intl.v8BreakIterator;}catch{o$8=false;}var w$c=(()=>{class t{_platformId=g$k(AC$1);isBrowser=this._platformId?AG(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||o$8)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(d){return new(d||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})();var i$9;function c$f(){if(i$9==null){let t=typeof document<"u"?document.head:null;i$9=!!(t&&(t.createShadowRoot||t.attachShadow));}return i$9}function p$c(t){if(c$f()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function I$a(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e;}return t}function E$d(t){if(t.composedPath)try{return t.composedPath()[0]}catch{}return t.target}var L$d=new Set,a$a,D$e=(()=>{class e{_platform=g$k(w$c);_nonce=g$k(RC$1,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):N$8;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&E$c(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})}return e})();function E$c(e,i){if(!L$d.has(e))try{a$a||(a$a=document.createElement("style"),i&&a$a.setAttribute("nonce",i),a$a.setAttribute("type","text/css"),document.head.appendChild(a$a)),a$a.sheet&&(a$a.sheet.insertRule(`@media ${e.replace(/[{}]/g,"")} {body{ }}`,0),L$d.add(e));}catch(t){console.error(t);}}function N$8(e){return {matches:e==="all"||e==="",media:e,addListener:()=>{},removeListener:()=>{}}}var z$h=(()=>{class e{_mediaMatcher=g$k(D$e);_zone=g$k(ge$b);_queries=new Map;_destroySubject=new le$d;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return O$j(p$d(t)).some(m=>this._registerQuery(m).mql.matches)}observe(t){let m=O$j(p$d(t)).map(o=>this._registerQuery(o).observable),s=_I(m);return s=nr$8(s.pipe(hn$9(1)),s.pipe(Dp$2(1),up$1(0))),s.pipe(st$c(o=>{let n={matches:false,breakpoints:{}};
60return o.forEach(({matches:d,query:Q})=>{n.matches=n.matches||d,n.breakpoints[Q]=d;}),n}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let r=this._mediaMatcher.matchMedia(t),s={observable:new N$d(o=>{let n=d=>this._zone.run(()=>o.next(d));return r.addListener(n),()=>{r.removeListener(n);}}).pipe(Qf$1(r),st$c(({matches:o})=>({query:t,matches:o})),Pi$2(this._destroySubject)),mql:r};return this._queries.set(t,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Wn$9({token:e,factory:e.\u0275fac})}return e})();function O$j(e){return e.map(i=>i.split(",")).reduce((i,t)=>i.concat(t)).map(i=>i.trim())}var p$b={Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)"};var o$7=new b$g("MATERIAL_ANIMATIONS"),e$2=null;function d$e(){return g$k(o$7,{optional:true})?.animationsDisabled||g$k(xC$1,{optional:true})==="NoopAnimations"?"di-disabled":(e$2??=g$k(D$e).matchMedia("(prefers-reduced-motion)").matches,e$2?"reduced-motion":"enabled")}function h$7(){return d$e()!=="enabled"}function l$7(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var o$6=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(o$6||{}),i$8,t$9;function d$d(){if(t$9==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return t$9=false,t$9;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)t$9=true;else {let e=Element.prototype.scrollTo;e?t$9=!/\{\s*\[native code\]\s*\}/.test(e.toString()):t$9=false;}}return t$9}function s$c(){if(typeof document!="object"||!document)return o$6.NORMAL;if(i$8==null){let e=document.createElement("div"),n=e.style;e.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let r=document.createElement("div"),c=r.style;c.width="2px",c.height="1px",e.appendChild(r),document.body.appendChild(e),i$8=o$6.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,i$8=e.scrollLeft===0?o$6.NEGATED:o$6.INVERTED),e.remove();}return i$8}var Z$a=class Z{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i;}},At$6=class At extends Z$a{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(i,t,e,o,s,r){super(),this.component=i,this.viewContainerRef=t,this.injector=e,this.projectableNodes=o,this.bindings=s||null,this.directives=r||null;}},U$b=class U extends Z$a{templateRef;viewContainerRef;context;injector;constructor(i,t,e,o){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=o;}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Bt$6=class Bt extends Z$a{element;constructor(i){super(),this.element=i instanceof gt$f?i.nativeElement:i;}},ut$a=class ut{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(i){if(i instanceof At$6)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof U$b)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Bt$6)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(i){this._disposeFn=i;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},pt$9=class pt extends ut$a{outletElement;_appRef;_defaultInjector;constructor(i,t,e){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=e;}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,o=e.get(on$9,null,{optional:true})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let e=this._appRef,o=i.injector||this._defaultInjector||oe$e.NULL,s=o.get(Ae$e,e.injector);t=d3(i.component,{elementInjector:o,environmentInjector:s,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});
60return e.rootNodes.forEach(o=>this.outletElement.appendChild(o)),e.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(e);o!==-1&&t.remove(o);}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var wi$2=(()=>{class n extends ut$a{_moduleRef=g$k(on$9,{optional:true});_document=g$k(Te$g);_viewContainerRef=g$k(Rt$f);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new Ct$h;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let e=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=e.createComponent(t.component,{index:e.length,injector:t.injector||e.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}attachDomPortal=t=>{let e=t.element;e.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(o,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(e,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=Wg$1(n)))(o||n)}})();static \u0275dir=mt$d({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[pv$1]})}return n})(),Oe$8=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({})}return n})();function u$a(n){return n==null?"":typeof n=="string"?n:`${n}px`}var Ke$a=new b$g("cdk-dir-doc",{providedIn:"root",factory:()=>g$k(Te$g)}),qe$7=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function ke$8(n){let i=n?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?qe$7.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var z$g=(()=>{class n{get value(){return this.valueSignal()}valueSignal=On$7("ltr");change=new Ct$h;constructor(){let t=g$k(Ke$a,{optional:true});if(t){let e=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(ke$8(e||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})();var _t$b=class _t{};function Ee$a(n){return n&&typeof n.connect=="function"&&!(n instanceof lc$1)}var gt$a=class gt extends _t$b{_data;constructor(i){super(),this._data=i;}connect(){return DI(this._data)?this._data:yI(this._data)}disconnect(){}},$$e=(function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n})($$e||{}),mt$8=class mt{viewCacheSize=20;_viewCache=[];applyChanges(i,t,e,o,s){i.forEachOperation((r,a,l)=>{let c,d;if(r.previousIndex==null){let f=()=>e(r,a,l);c=this._insertView(f,l,t,o(r)),d=c?$$e.INSERTED:$$e.REPLACED;}else l==null?(this._detachAndCacheView(a,t),d=$$e.REMOVED):(c=this._moveView(a,l,t,o(r)),d=$$e.MOVED);s&&s({context:c?.context,operation:d,record:r});});}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[];}_insertView(i,t,e,o){let s=this._insertViewFromCache(t,e);if(s){s.context.$implicit=o;return}let r=i();return e.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(i,t){let e=t.detach(i);this._maybeCacheView(e,t);}_moveView(i,t,e,o){let s=e.get(i);return e.move(s,t),s.context.$implicit=o,s}_maybeCacheView(i,t){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(i);else {let e=t.indexOf(i);e===-1?i.destroy():t.remove(e);}}_insertViewFromCache(i,t){let e=this._viewCache.pop();return e&&t.insert(e,i),e||null}};var K$j=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({})}return n})();var Qe$a=["contentWrapper"],Je$6=["*"],Pe$9=new b$g("VIRTUAL_SCROLL_STRATEGY"),Ft$5=class Ft{_scrolledIndexChange=new le$d;scrolledIndexChange=this._scrolledIndexChange.pipe(pp$2());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(i,t,e){this._itemSize=i,this._minBufferPx=t,this._maxBufferPx=e;}attach(i){this._viewport=i,this._updateTotalContentSize(),this._updateRenderedRange();}detach(){this._scrolledIndexChange.complete(),this._viewport=null;}updateItemAndBufferSize(i,t,e){this._itemSize=i,this._minBufferPx=t,this._maxBufferPx=e,this._updateTotalContentSize(),this._updateRenderedRange();}onContentScrolled(){this._updateRenderedRange();}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange();}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(i,t){this._viewport&&this._viewport.scrollToOffset(i*this._itemSize,t);}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize);}_updateRenderedRange(){if(!this._viewport)return;let i=this._viewport.getRenderedRange(),t={start:i.start,end:i.end},e=this._viewport.getViewportSize(),o=this._viewport.getDataLength(),s=this._viewport.measureScrollOffset(),r=this._itemSize>0?s/this._itemSize:0;if(t.end>o){let l=Math.ceil(e/this._itemSize),c=Math.max(0,Math.min(r,o-l));r!=c&&(r=c,s=c*this._itemSize,t.start=Math.floor(r)),t.end=Math.max(0,Math.min(o,t.start+l));}let a=s-t.start*this._itemSize;if(a<this._minBufferPx&&t.start!=0){let l=Math.ceil((this._maxBufferPx-a)/this._itemSize);t.start=Math.max(0,t.start-l),t.end=Math.min(o,Math.ceil(r+(e+this._minBufferPx)/this._itemSize));}else {let l=t.end*this._itemSize-(s+e);if(l<this._minBufferPx&&t.end!=o){let c=Math.ceil((this._maxBufferPx-l)/this._itemSize);c>0&&(t.end=Math.min(o,t.end+c),t.start=Math.max(0,Math.floor(r-this._minBufferPx/this._itemSize)));}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*t.start)),this._scrolledIndexChange.next(Math.floor(r));}};function ti$4(n){return n._scrollStrategy}var ei$4=(()=>{class n{get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=C$5(t);}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=C$5(t);}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=C$5(t);}_maxBufferPx=200;_scrollStrategy=new Ft$5(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx);}static \u0275fac=function(e){return new(e||n)};static \u0275dir=mt$d({type:n,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[cN([{provide:Pe$9,useFactory:ti$4,deps:[Qi$3(()=>n)]}]),Ar$8]})}return n})(),ii$4=20,q$d=(()=>{class n{_ngZone=g$k(ge$b);_platform=g$k(w$c);_renderer=g$k(Lo$4).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new le$d;_scrolledCount=0;
60scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=ii$4){return this._platform.isBrowser?new N$d(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(sp$2(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):yI()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete();}ancestorScrolled(t,e){let o=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Pt$b(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((o,s)=>{this._targetContainsElement(s,t)&&e.push(s);}),e}_targetContainsElement(t,e){let o=d$f(e),s=t.getElementRef().nativeElement;do if(o==s)return true;while(o=o.parentElement);return false}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),Nt$8=(()=>{class n{elementRef=g$k(gt$f);scrollDispatcher=g$k(q$d);ngZone=g$k(ge$b);dir=g$k(z$g,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new le$d;_renderer=g$k(Fr$6);_cleanupScroll;_elementScrolled=new le$d;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let e=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),o&&s$c()!=o$6.NORMAL?(t.left!=null&&(t.right=e.scrollWidth-e.clientWidth-t.left),s$c()==o$6.INVERTED?t.left=t.right:s$c()==o$6.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let e=this.elementRef.nativeElement;d$d()?e.scrollTo(t):(t.top!=null&&(e.scrollTop=t.top),t.left!=null&&(e.scrollLeft=t.left));}measureScrollOffset(t){let e="left",o="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:e:t=="end"&&(t=r?e:o),r&&s$c()==o$6.INVERTED?t==e?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:r&&s$c()==o$6.NEGATED?t==e?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==e?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(e){return new(e||n)};static \u0275dir=mt$d({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return n})(),ni$4=20,A$c=(()=>{class n{_platform=g$k(w$c);_listeners;_viewportSize=null;_change=new le$d;_document=g$k(Te$g);constructor(){let t=g$k(ge$b),e=g$k(Lo$4).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=s=>this._change.next(s);this._listeners=[e.listen("window","resize",o),e.listen("window","orientationchange",o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:o}=this.getViewportSize();
60return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+e,height:o,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,e=this._getWindow(),o=t.documentElement,s=o.getBoundingClientRect(),r=-s.top||t.body?.scrollTop||e.scrollY||o.scrollTop||0,a=-s.left||t.body?.scrollLeft||e.scrollX||o.scrollLeft||0;return {top:r,left:a}}change(t=ni$4){return t>0?this._change.pipe(sp$2(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),xe$9=new b$g("VIRTUAL_SCROLLABLE"),oi$4=(()=>{class n extends Nt$8{measureViewportSize(t){let e=this.elementRef.nativeElement;return t==="horizontal"?e.clientWidth:e.clientHeight}static \u0275fac=(()=>{let t;return function(o){return (t||(t=Wg$1(n)))(o||n)}})();static \u0275dir=mt$d({type:n,features:[pv$1]})}return n})();function si$4(n,i){return n.start==i.start&&n.end==i.end}var ri$4=typeof requestAnimationFrame<"u"?mI:gI,Me$a=new b$g("CDK_VIRTUAL_SCROLL_VIEWPORT"),ai$4=(()=>{class n extends oi$4{elementRef=g$k(gt$f);_changeDetectorRef=g$k(Va$2);_scrollStrategy=g$k(Pe$9,{optional:true});scrollable=g$k(xe$9,{optional:true});_platform=g$k(w$c);_detachedSubject=new le$d;_renderedRangeSubject=new le$d;_renderedContentOffsetSubject=new le$d;get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize());}_orientation="vertical";appendOnly=false;scrolledIndexChange=new N$d(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>
60t.next(e)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;renderedContentOffset=this._renderedContentOffsetSubject.pipe(Pt$b(t=>t!==null),pp$2());_totalContentSize=0;_totalContentWidth=On$7("");_totalContentHeight=On$7("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf=null;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=false;_changeDetectionNeeded=On$7(false);_runAfterChangeDetection=[];_viewportChanges=Q$f.EMPTY;_injector=g$k(oe$e);_isDestroyed=false;constructor(){super();let t=g$k(A$c);this._scrollStrategy,this._viewportChanges=t.change().subscribe(()=>{this.checkViewportSize();}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let e=Es$3(()=>{this._changeDetectionNeeded()&&this._doChangeDetection();},{injector:g$k(yt$f).injector});g$k(de$b).onDestroy(()=>{e.destroy();});}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Qf$1(null),sp$2(0,ri$4),Pi$2(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded();})));}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=true,super.ngOnDestroy();}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Pi$2(this._detachedSubject)).subscribe(e=>{let o=e.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection();});});}detach(){this._forOf=null,this._detachedSubject.next();}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded());}setRenderedRange(t){si$4(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()));}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){t=this.appendOnly&&e==="to-start"?0:t;let o=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",r=s?"X":"Y",l=`translate${r}(${Number((s&&o?-1:1)*t)}px)`;this._renderedContentOffset=t,e==="to-end"&&(l+=` translate${r}(-100%)`,this._renderedContentOffsetNeedsRewrite=true),this._renderedContentTransform!=l&&(this._renderedContentTransform=l,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=false,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged();}));}scrollToOffset(t,e="auto"){let o={behavior:e};this.orientation==="horizontal"?o.start=t:o.top=t,this.scrollable.scrollTo(o);}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e);}measureScrollOffset(t){let e;return this.scrollable==this?e=o=>super.measureScrollOffset(o):e=o=>this.scrollable.measureScrollOffset(o),Math.max(0,e(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){let e,o="left",s="right",r=this.dir?.value=="rtl";t=="start"?e=r?s:o:t=="end"?e=r?o:s:t?e=t:e=this.orientation==="horizontal"?"left":"top";let a=this.scrollable.measureBoundingClientRectWithScrollOffset(e);return this.elementRef.nativeElement.getBoundingClientRect()[e]-a}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}
60checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged();}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation);}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),!Qn$9(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(true);});});});}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this._renderedContentOffsetSubject.next(this.getOffsetToRenderedContentStart()),Xl$1(()=>{this._changeDetectionNeeded.set(false);let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let e of t)e();},{injector:this._injector});});}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"");}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=qS({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,o){if(e&1&&Jv$1(Qe$a,7),e&2){let s;CM(s=wM())&&(o._contentWrapper=s.first);}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,o){e&2&&iD("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal");},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",ni$7]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[cN([{provide:Nt$8,useFactory:()=>g$k(xe$9,{optional:true})||g$k(n)},{provide:Me$a,useExisting:n}]),pv$1],ngContentSelectors:Je$6,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(e,o){e&1&&(DM(),jd$1(0,"div",1,0),EM(2),Vd$
601(),Bv$1(3,"div",2)),e&2&&(uT(3),Ma$2("width",o._totalContentWidth())("height",o._totalContentHeight()));},styles:[`cdk-virtual-scroll-viewport { 61 display: block; 62 position: relative; 63 transform: translateZ(0); 64} 65 66.cdk-virtual-scrollable { 67 overflow: auto; 68 will-change: scroll-position; 69 contain: strict; 70 overflow-anchor: none; 71 scroll-behavior: auto; 72} 73 74.cdk-virtual-scroll-content-wrapper { 75 position: absolute; 76 top: 0; 77 left: 0; 78 contain: content; 79} 80[dir=rtl] .cdk-virtual-scroll-content-wrapper { 81 right: 0; 82 left: auto; 83} 84 85.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper { 86 min-height: 100%; 87} 88.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > dl:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > ol:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > table:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper > ul:not([cdkVirtualFor]) { 89 padding-left: 0; 90 padding-right: 0; 91 margin-left: 0; 92 margin-right: 0; 93 border-left-width: 0; 94 border-right-width: 0; 95 outline: none; 96} 97 98.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper { 99 min-width: 100%; 100} 101.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > dl:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > ol:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > table:not([cdkVirtualFor]), .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper > ul:not([cdkVirtualFor]) { 102 padding-top: 0; 103 padding-bottom: 0; 104 margin-top: 0; 105 margin-bottom: 0; 106 border-top-width: 0; 107 border-bottom-width: 0; 108 outline: none; 109} 110 111.cdk-virtual-scroll-spacer { 112 height: 1px; 113 transform-origin: 0 0; 114 flex: 0 0 auto; 115} 116[dir=rtl] .cdk-virtual-scroll-spacer { 117 transform-origin: 100% 0; 118} 119`],encapsulation:2})}return n})();function De$9(n,i,t){let e=t;if(!e.getBoundingClientRect)return 0;let o=e.getBoundingClientRect();return n==="horizontal"?i==="start"?o.left:o.right:i==="start"?o.top:o.bottom}var li$4=(()=>{class n{_viewContainerRef=g$k(Rt$f);_template=g$k(rn$a);_differs=g$k(hf$1);_viewRepeater=new mt$8;_viewport=g$k(Me$a,{skipSelf:true});viewChange=new le$d;_dataSourceChanges=new le$d;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,Ee$a(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new gt$a(DI(t)?t:Array.from(t||[])));}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=true,this._cdkVirtualForTrackBy=t?(e,o)=>t(e+(this._renderedRange?this._renderedRange.start:0),o):void 0;}_cdkVirtualForTrackBy;set cdkVirtualForTemplate(t){t&&(this._needsUpdate=true,this._template=t);}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=C$5(t);}dataStream=this._dataSourceChanges.pipe(Qf$1(null),gp$1(),Kf$1(([t,e])=>this._changeDataSource(t,e)),vp(1));_differ=null;_data=[];_renderedItems=[];_renderedRange={start:0,end:0};_needsUpdate=false;_destroyed=new le$d;constructor(){let t=g$k(ge$b);this.dataStream.subscribe(e=>{this._data=e,this._onRenderedDataChange();}),this._viewport.renderedRangeStream.pipe(Pi$2(this._destroyed)).subscribe(e=>{this._renderedRange=e,this.viewChange.observers.length&&t.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange();}),this._viewport.attach(this);}measureRangeSize(t,e){if(t.start>=t.end)return 0;t.start<this._renderedRange.start||t.end>this._renderedRange.end;let o=t.start-this._renderedRange.start,s=t.end-t.start,r,a;for(let l=0;l<s;l++){let c=this._viewContainerRef.get(l+o);if(c&&c.rootNodes.length){r=a=c.rootNodes[0];break}}for(let l=s-1;l>-1;l--){let c=this._viewContainerRef.get(l+o);if(c&&c.rootNodes.length){a=c.rootNodes[c.rootNodes.length-1];break}}return r&&a?De$9(e,"end",a)-De$9(e,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=false;}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach();}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,e):e)),this._needsUpdate=true);}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=true,e?e.connect(this):yI()}_updateContext(){let t=this._data.length,e=this._viewContainerRef.length;for(;e--;){let o=this._viewContainerRef.get(e);
119o.context.index=this._renderedRange.start+e,o.context.count=t,this._updateComputedContextProperties(o.context),o.detectChanges();}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(s,r,a)=>this._getEmbeddedViewArgs(s,a),s=>s.item),t.forEachIdentityChange(s=>{let r=this._viewContainerRef.get(s.currentIndex);r.context.$implicit=s.item;});let e=this._data.length,o=this._viewContainerRef.length;for(;o--;){let s=this._viewContainerRef.get(o);s.context.index=this._renderedRange.start+o,s.context.count=e,this._updateComputedContextProperties(s.context);}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even;}_getEmbeddedViewArgs(t,e){return {templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:false,last:false,odd:false,even:false},index:e}}static ngTemplateContextGuard(t,e){return true}static \u0275fac=function(e){return new(e||n)};static \u0275dir=mt$d({type:n,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"}})}return n})();var Tt$b=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({})}return n})(),Lt$7=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({imports:[K$j,Tt$b,K$j,Tt$b]})}return n})();var Ve$b=d$d();function ze$b(n){return new vt$8(n.get(A$c),n.get(Te$g))}var vt$8=class vt{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(i,t){this._viewportRuler=i,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=u$a(-this._previousScrollPosition.left),i.style.top=u$a(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,o=t.style,s=e.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=false,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Ve$b&&(e.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ve$b&&(e.scrollBehavior=s,o.scrollBehavior=r);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};function Ie$6(n,i){return new yt$b(n.get(q$d),n.get(ge$b),n.get(A$c),i)}var yt$b=class yt{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,t,e,o){this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=e,this._config=o;}attach(i){this._overlayRef,this._overlayRef=i;}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(Pt$b(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=i.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var Q$a=class Q{enable(){}disable(){}attach(){}};function zt$8(n,i){return i.some(t=>{let e=n.bottom<t.top,o=n.top>t.bottom,s=n.right<t.left,r=n.left>t.right;return e||o||s||r})}function Ae$9(n,i){return i.some(t=>{let e=n.top<t.top,o=n.bottom>t.bottom,s=n.left<t.left,r=n.right>t.right;return e||o||s||r})}function Yt$6(n,i){return new wt$d(n.get(q$d),n.get(A$c),n.get(ge$b),i)}var wt$d=class wt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,o){this._scrollDispatcher=i,this._viewportRuler
119=t,this._ngZone=e,this._config=o;}attach(i){this._overlayRef,this._overlayRef=i;}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:o}=this._viewportRuler.getViewportSize();zt$8(t,[{width:e,height:o,bottom:o,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},We$a=(()=>{class n{_injector=g$k(oe$e);noop=()=>new Q$a;close=t=>Ie$6(this._injector,t);block=()=>ze$b(this._injector);reposition=t=>Yt$6(this._injector,t);static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),J$g=class J{positionStrategy;scrollStrategy=new Q$a;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e]);}}};var bt$c=class bt{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t;}};var Ye$9=(()=>{class n{_attachedOverlays=[];_document=g$k(Te$g);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,e,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(e):true}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),He$d=(()=>{class n extends Ye$9{_ngZone=g$k(ge$b);_renderer=g$k(Lo$4).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let e=this._attachedOverlays;for(let o=e.length-1;o>-1;o--){let s=e[o];if(this.canReceiveEvent(s,t,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(t));break}}};static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),Xe$6=(()=>{class n extends Ye$9{_platform=g$k(w$c);_ngZone=g$k(ge$b);_renderer=g$k(Lo$4).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,o={capture:true},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(e,"pointerdown",this._pointerDownListener,o),s.listen(e,"click",this._clickListener,o),s.listen(e,"auxclick",this._clickListener,o),s.listen(e,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=E$d(t);};_clickListener=t=>{let e=E$d(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let r=s.length-1;r>-1;r--){let a=s[r],l=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,t,l))){if(Be$b(a.overlayElement,e)||Be$b(a.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(t)):l.next(t);}}};static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})();function Be$b(n,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===n)return true;e=t&&e instanceof ShadowRoot?e.host:e.parentNode;}return false}var je$b=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=qS({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { 120 pointer-events: none; 121 top: 0; 122 left: 0; 123 height: 100%; 124 width: 100%; 125} 126 127.cdk-overlay-container { 128 position: fixed; 129} 130@layer cdk-overlay { 131 .cdk-overlay-container { 132 z-index: 1000; 133 } 134} 135.cdk-overlay-container:empty { 136 display: none; 137} 138 139.cdk-global-overlay-wrapper { 140 display: flex; 141 position: absolute; 142} 143@layer cdk-overlay { 144 .cdk-global-overlay-wrapper { 145 z-index: 1000; 146 } 147} 148 149.cdk-overlay-pane { 150 position: absolute; 151 pointer-events: auto; 152 box-sizing: border-box; 153 display: flex; 154 max-width: 100%; 155 max-height: 100%; 156} 157@layer cdk-overlay { 158 .cdk-overlay-pane { 159 z-index: 1000; 160 } 161} 162 163.cdk-overlay-backdrop { 164 position: absolute; 165 top: 0; 166 bottom: 0; 167 left: 0; 168 right: 0; 169 pointer-events: auto; 170 -webkit-tap-highlight-color: transparent; 171 opacity: 0; 172 touch-action: manipulation; 173} 174@layer cdk-overlay { 175 .cdk-overlay-backdrop { 176 z-index: 1000; 177 transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); 178 } 179} 180@media (prefers-reduced-motion) { 181 .cdk-overlay-backdrop { 182 transition-duration: 1ms; 183 } 184} 185 186.cdk-overlay-backdrop-showing { 187 opacity: 1; 188} 189@media (forced-colors: active) { 190 .cdk-overlay-backdrop-showing { 191 opacity: 0.6; 192 } 193} 194 195@layer cdk-overlay { 196 .cdk-overlay-dark-backdrop { 197 background: rgba(0, 0, 0, 0.32); 198 } 199} 200 201.cdk-overlay-transparent-backdrop { 202 transition: visibility 1ms linear, opacity 1ms linear; 203 visibility: hidden; 204 opacity: 1; 205} 206.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop { 207 opacity: 0; 208 visibility: visible; 209} 210
211.cdk-overlay-backdrop-noop-animation { 212 transition: none; 213} 214 215.cdk-overlay-connected-position-bounding-box { 216 position: absolute; 217 display: flex; 218 flex-direction: column; 219 min-width: 1px; 220 min-height: 1px; 221} 222@layer cdk-overlay { 223 .cdk-overlay-connected-position-bounding-box { 224 z-index: 1000; 225 } 226} 227 228.cdk-global-scrollblock { 229 position: fixed; 230 width: 100%; 231 overflow-y: scroll; 232} 233 234.cdk-overlay-popover { 235 background: none; 236 border: none; 237 padding: 0; 238 outline: 0; 239 overflow: visible; 240 position: fixed; 241 pointer-events: none; 242 white-space: normal; 243 color: inherit; 244 text-decoration: none; 245 width: 100%; 246 height: 100%; 247 inset: auto; 248 top: 0; 249 left: 0; 250} 251.cdk-overlay-popover::backdrop { 252 display: none; 253} 254.cdk-overlay-popover .cdk-overlay-backdrop { 255 position: fixed; 256 z-index: auto; 257} 258`],encapsulation:2})}return n})(),Ot$6=(()=>{class n{_platform=g$k(w$c);_containerElement;_document=g$k(Te$g);_styleLoader=g$k(R$9);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||l$7()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<o.length;s++)o[s].remove();}let e=this._document.createElement("div");e.classList.add(t),l$7()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e;}_loadStyles(){this._styleLoader.load(je$b);}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),It$8=class It{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,t,e,o){this._renderer=t,this._ngZone=e,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}detach(){this._ngZone.runOutsideAngular(()=>{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function Ht$7(n){return n&&n.nodeType===1}var Ct$c=class Ct{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new le$d;_attachments=new le$d;_detachments=new le$d;_positionStrategy;_scrollStrategy;_locationChanges=Q$f.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new le$d;_outsidePointerEvents=new le$d;_afterNextRenderRef;constructor(i,t,e,o,s,r,a,l,c,d=false,f,g){this._portalOutlet=i,this._host=t,this._pane=e,this._config=o,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=f,this._renderer=g,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Xl$1(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
258pose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()));}updateSize(i){this._config=r$d(r$d({},this._config),i),this._updateElementSize();}setDirection(i){this._config=s$e(r$d({},this._config),{direction:i}),this._updateElementDirection();}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,true);}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,false);}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=u$a(this._config.width),i.height=u$a(this._config.height),i.minWidth=u$a(this._config.minWidth),i.minHeight=u$a(this._config.minHeight),i.maxWidth=u$a(this._config.maxWidth),i.maxHeight=u$a(this._config.maxHeight);}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none";}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Ht$7(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch{}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new It$8(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i));}):this._backdropRef.element.classList.add(i);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(i,t,e){let o=p$d(t||[]).filter(s=>!!s);o.length&&(e?i.classList.add(...o):i.classList.remove(...o));}_detachContentWhenEmpty(){let i=false;try{this._detachContentAfterRenderRef=Xl$1(()=>{i=!0,this._detachContent();},{injector:this._injector});}catch(t){if(i)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.();}},Fe$b="cdk-overlay-connected-position-bounding-box",hi$3=/([A-Za-z%]+)$/;function Xt$7(n,i){return new St$9(i,n.get(A$c),n.get(Te$g),n.get(w$c),n.get(Ot$6))}var St$9=class St{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new le$d;_resizeSubscription=Q$f.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}
258constructor(i,t,e,o,s){this._viewportRuler=t,this._document=e,this._platform=o,this._overlayContainer=s,this.setOrigin(i);}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Fe$b),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let i=this._originRect,t=this._overlayRect,e=this._viewportRect,o=this._containerRect,s=[],r;for(let a of this._preferredPositions){let l=this._getOriginPoint(i,o,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,e,a);if(d.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(d,c,e)){s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!r||r.overlayFit.visibleArea<d.visibleArea)&&(r={overlayFit:d,overlayPoint:c,originPoint:l,position:a,overlayRect:t});}if(s.length){let a=null,l=-1;for(let c of s){let d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);d>l&&(l=d,a=c);}this._isPushed=false,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&B$i(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Fe$b),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply();}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=true){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=true){return this._growAfterOpen=i,this}withPush(i=true){return this._canPush=i,this}withLockedPosition(i=true){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof gt$f?this._origin.nativeElement:Ht$7(this._origin)?this._origin:null}_getOriginPoint(i,t,e){let o;if(e.originX=="center")o=i.left+i.width/2;else {let r=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;o=e.originX=="start"?r:a;}t.left<0&&(o-=t.left);let s;return e.originY=="center"?s=i.top+i.height/2:s=e.originY=="top"?i.top:i.bottom,t.top<0&&(s-=t.top),{x:o,y:s}}_getOverlayPoint(i,t,e){let o;e.overlayX=="center"?o=-t.width/2:e.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let s;return e.overlayY=="center"?s=-t.height/2:s=e.overlayY=="top"?0:-t.height,{x:i.x+o,y:i.y+s}}_getOverlayFit(i,t,e,o){let s=Ne$b(t),{x:r,y:a}=i,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(r+=l),c&&(a+=c);let d=0-r,f=r+s.width-e.width,g=0-a,v=a+s.height-e.height,m=this._subtractOverflows(s.width,d,f),S=this._subtractOverflows(s.height,g,v),Ut=m*S;return {visibleArea:Ut,isCompletelyWithinViewport:s.width*s.height===Ut,fitsInViewportVertically:S===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(i,t,e){if(this._hasFlexibleDimensions){let o=e.bottom-t.y,s=e.right-t.x,r=Te$c(this._overlayRef.getConfig().minHeight),a=Te$c(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||r!=null&&r<=o,c=i.fitsInViewportHorizontally||a!=null&&a<=s;return l&&c}return false}_pushOverlayOnScreen(i,t,e){if(this._previousPushAmount&&this._positionLocked)return {x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=Ne$b(t),s=this._viewportRect,r=Math.max(i.x+o.width-s.width,0),a=Math.max(i.y+o.height-s.height,0),l=Math.max(s.top-e.top-i.y,0),c=Math.max(s.left-e.left-i.x,0),d=0,f=0;return o.width<=s.width?d=c||-r:d=i.x<this._getViewportMarginStart()?s.left-e.left-i.x:0,o.height<=s.height?f=l||-a:f=i.y<this._getViewportMarginTop()?s.top-e.top-i.y:0,this._previousPushAmount={x:d,y:f},{x:i.x+d,y:i.y+f}}_applyPosition(i,t){if(this._setTransformOrigin(i),this._setOverlayElementStyles(t,i),this._setBoundingBoxStyles(t,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!ci$4(this._lastScrollVisibility,e)){let o=new bt$c(i,e);this._positionChanges.next(o);}this._lastScrollVisibility=e;}this._lastPosition=i,this._isInitialRender=false;}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,o=i.overlayY;
258i.overlayX==="center"?e="center":this._isRtl()?e=i.overlayX==="start"?"right":"left":e=i.overlayX==="start"?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${e} ${o}`;}_calculateBoundingBoxRect(i,t){let e=this._viewportRect,o=this._isRtl(),s,r,a;if(t.overlayY==="top")r=i.y,s=e.height-r+this._getViewportMarginBottom();else if(t.overlayY==="bottom")a=e.height-i.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=e.height-a+this._getViewportMarginTop();else {let v=Math.min(e.bottom-i.y+e.top,i.y),m=this._lastBoundingBoxSize.height;s=v*2,r=i.y-v,s>m&&!this._isInitialRender&&!this._growAfterOpen&&(r=i.y-m/2);}let l=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,c=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,d,f,g;if(c)g=e.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),d=i.x-this._getViewportMarginStart();else if(l)f=i.x,d=e.right-i.x-this._getViewportMarginEnd();else {let v=Math.min(e.right-i.x+e.left,i.x),m=this._lastBoundingBoxSize.width;d=v*2,f=i.x-v,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(f=i.x-m/2);}return {top:r,left:f,bottom:a,right:g,width:d,height:s}}_setBoundingBoxStyles(i,t){let e=this._calculateBoundingBoxRect(i,t);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.width=u$a(e.width),o.height=u$a(e.height),o.top=u$a(e.top)||"auto",o.bottom=u$a(e.bottom)||"auto",o.left=u$a(e.left)||"auto",o.right=u$a(e.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",s&&(o.maxHeight=u$a(s)),r&&(o.maxWidth=u$a(r));}this._lastBoundingBoxSize=e,B$i(this._boundingBox.style,o);}_resetBoundingBoxStyles(){B$i(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){B$i(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(i,t){let e={},o=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(o){let d=this._viewportRuler.getViewportScrollPosition();B$i(e,this._getExactOverlayY(t,i,d)),B$i(e,this._getExactOverlayX(t,i,d));}else e.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),e.transform=a.trim(),r.maxHeight&&(o?e.maxHeight=u$a(r.maxHeight):s&&(e.maxHeight="")),r.maxWidth&&(o?e.maxWidth=u$a(r.maxWidth):s&&(e.maxWidth="")),B$i(this._pane.style,e);}_getExactOverlayY(i,t,e){let o={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,i);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e)),i.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;o.bottom=`${r-(s.y+this._overlayRect.height)}px`;}else o.top=u$a(s.y);return o}_getExactOverlayX(i,t,e){let o={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,i);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e));let r;if(this._isRtl()?r=i.overlayX==="end"?"left":"right":r=i.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(s.x+this._overlayRect.width)}px`;}else o.left=u$a(s.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),t=this._pane.getBoundingClientRect(),e=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Ae$9(i,e),isOriginOutsideView:zt$8(i,e),isOverlayClipped:Ae$9(t,e),isOverlayOutsideView:zt$8(t,e)}}_subtractOverflows(i,...t){return t.reduce((e,o)=>e-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return {top:e.top+this._getViewportMarginTop(),left:e.left+this._getViewportMarginStart(),right:e.left+i-this._getViewportMarginEnd(),bottom:e.top+t-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(i,t){return t==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}
258_addPanelClasses(i){this._pane&&p$d(i).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof gt$f)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let t=i.width||0,e=i.height||0;return {top:i.y,bottom:i.y+e,left:i.x,right:i.x+t,height:e,width:t}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();i&&(t.style.display="block");let e=t.getBoundingClientRect();return i&&(t.style.display=""),e}};function B$i(n,i){for(let t in i)i.hasOwnProperty(t)&&(n[t]=i[t]);return n}function Te$c(n){if(typeof n!="number"&&n!=null){let[i,t]=n.split(hi$3);return !t||t==="px"?parseFloat(i):null}return n||null}function Ne$b(n){return {top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function ci$4(n,i){return n===i?true:n.isOriginClipped===i.isOriginClipped&&n.isOriginOutsideView===i.isOriginOutsideView&&n.isOverlayClipped===i.isOverlayClipped&&n.isOverlayOutsideView===i.isOverlayOutsideView}var Le$c="cdk-global-overlay-wrapper";function Ze$d(n){return new Rt$9}var Rt$9=class Rt{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(i){let t=i.getConfig();this._overlayRef=i,this._width&&!t.width&&i.updateSize({width:this._width}),this._height&&!t.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Le$c),this._isDisposed=false;}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:o,height:s,maxWidth:r,maxHeight:a}=e,l=(o==="100%"||o==="100vw")&&(!r||r==="100%"||r==="100vw"),c=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,f=this._xOffset,g=this._overlayRef.getConfig().direction==="rtl",v="",m="",S="";l?S="flex-start":d==="center"?(S="center",g?m=f:v=f):g?d==="left"||d==="end"?(S="flex-end",v=f):(d==="right"||d==="start")&&(S="flex-start",m=f):d==="left"||d==="start"?(S="flex-start",v=f):(d==="right"||d==="end")&&(S="flex-end",m=f),i.position=this._cssPosition,i.marginLeft=l?"0":v,i.marginTop=c?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":m,t.justifyContent=S,t.alignItems=c?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,e=t.style;t.classList.remove(Le$c),e.justifyContent=e.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=true;}},Ue$b=(()=>{class n{_injector=g$k(oe$e);global(){return Ze$d()}flexibleConnectedTo(t){return Xt$7(this._injector,t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),jt$9=new b$g("OVERLAY_DEFAULT_CONFIG");function Zt$7(n,i){n.get(R$9).load(je$b);let t=n.get(Ot$6),e=n.get(Te$g),o=n.get(S$g),s=n.get(yt$f),r=n.get(z$g),a=n.get(Fr$6,null,{optional:true})||n.get(Lo$4).createRenderer(null,null),l=new J$g(i),c=n.get(jt$9,null,{optional:true})?.usePopover??true;l.direction=l.direction||r.value,!e.body||!("showPopover"in e.body)?l.usePopover=false:l.usePopover=i?.usePopover??c;let d=e.createElement("div"),f=e.createElement("div");d.id=o.getId("cdk-overlay-"),d.classList.add("cdk-overlay-pane"),f.appendChild(d),l.usePopover&&(f.setAttribute("popover","manual"),f.classList.add("cdk-overlay-popover"));let g=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return Ht$7(g)?g.after(f):g?.type==="parent"?g.element.appendChild(f):t.getContainerElement().appendChild(f),new Ct$c(new pt$9(d,s,n),f,d,l,n.get(ge$b),n.get(He$d),e,n.get(DE$1),n.get(Xe$6),i?.disableAnimations??n.get(xC$1,null,{optional:true})==="NoopAnimations",n.get(Ae$e),a)}var Ge$8=(()=>{class n{scrollStrategies=g$k(We$a);_positionBuilder=g$k(Ue$b);_injector=g$k(oe$e);create(t){return Zt$7(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),di$3=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fi$2=new b$g("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$k(oe$e);return ()=>Yt$6(n)}}),Wt$8=(()=>{class n{elementRef=g$k(gt$f);static \u0275fac=function(e){return new(e||n)};static \u0275dir=mt$d({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),$e$a=new b$g("cdk-connected-overlay-default-config"),ui$3=(()=>{class n{_dir=g$k(z$g,{optional:true});_injector=g$k(oe$e);_overlayRef;_templatePortal;_backdropSubscription=Q$f.EMPTY;_attachSubscription=Q$f.EMPTY;_detachSubscription=Q$f.EMPTY;_positionSubscription=Q$f.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=g$k(fi$2);_ngZone=g$k(ge$b);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=false;disableClose=false;transformOriginSelector;hasBackdrop=false;lockPosition=false;flexibleDimensions=false;growAfterOpen=false;push=false;disposeOnNavigation=false;usePopover;matchWidth=false;set _config(t){typeof t!="string"&&this._assignConfig(t);}backdropClick=new Ct$h;positionChange=new Ct$h;attach=new Ct$h;detach=new Ct$h;overlayKeydown=new Ct$h;overlayOutsideClick=new Ct$h;constructor(){let t=g$k(rn$a),e=g$k(Rt$f),o=g$k($e$a,{optional:true}),s=g$k(jt$9,{optional:true});this.usePopover=s?.usePopover===false?null:"global",this._templatePortal=new
258U$b(t,e),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o);}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose();}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=di$3);let t=this._overlayRef=Zt$7(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),e.keyCode===27&&!this.disableClose&&!K$k(e)&&(e.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(e=>{let o=this._getOriginElement(),s=E$d(e);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(e);});}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new J$g({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return (this.height||this.height===0)&&(e.height=this.height),(this.minWidth||this.minWidth===0)&&(e.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){let e=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=Xt$7(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Wt$8?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Wt$8?this.origin.elementRef.nativeElement:this.origin instanceof gt$f?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(e=>this.backdropClick.emit(e)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Ep$1(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=true;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=false;}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth;}static \u0275fac=function(e){return new(e||n)};static \u0275dir=mt$d({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",ni$7],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",ni$7],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",ni$7],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",ni$7],push:[2,"cdkConnectedOverlayPush","push",ni$7],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",ni$7],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",ni$7],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ar$8]})}return n})(),pi$4=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({providers:[Ge$8],imports:[K$j,Oe$8,Lt$7,Lt$7]})}return n})();var zn$5=(()=>{class n extends Ot$6{_renderer=g$k(Lo$4).createRenderer(null,null);_fullScreenEventName;_cleanupFullScreenListener;ngOnDestroy(){super.ngOnDestroy(),this._cleanupFullScreenListener?.();}_createContainer(){let t=this._getEventName();super._createContainer(),this._adjustParentForFullscreenChange(),t&&(this._cleanupFullScreenListener?.(),this._cleanupFullScreenListener=this._renderer.listen("document",t,()=>{this._adjustParentForFullscreenChange();}));}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement);}_getEventName(){if(!this._fullScreenEventName){let t=this._document;t.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":t.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":t.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":t.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange");}return this._fullScreenEventName}getFullscreenElement(){let t=this._document;return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||null}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})();var e$1;function n$e(){if(e$1==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>e$1=!0}));}finally{e$1=e$1||false;}return e$1}
vendor: 14,546 bytes, lines 258-277
258function s$b(t){return n$e()?t:!!t.capture}function P$9(s){return s.buttons===0||s.detail===0}function B$h(s){let i=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return !!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var _e$8=new b$g("cdk-input-modality-detector-options"),fe$8={ignoreKeys:[18,17,224,91,16]},me$a=650,K$i={passive:true,capture:true},pe$b=(()=>{class s{_platform=g$k(w$c);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Gr$6(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=E$d(e));};_onMousedown=e=>{Date.now()-this._lastTouchMs<me$a||(this._modality.next(P$9(e)?"keyboard":"mouse"),this._mostRecentTarget=E$d(e));};_onTouchstart=e=>{if(B$h(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=E$d(e);};constructor(){let e=g$k(ge$b),t=g$k(Te$g),n=g$k(_e$8,{optional:true});if(this._options=r$d(r$d({},fe$8),n),this.modalityDetected=this._modality.pipe(Dp$2(1)),this.modalityChanged=this.modalityDetected.pipe(pp$2()),this._platform.isBrowser){let r=g$k(Lo$4).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(t,"keydown",this._onKeydown,K$i),r.listen(t,"mousedown",this._onMousedown,K$i),r.listen(t,"touchstart",this._onTouchstart,K$i)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e());}static \u0275fac=function(t){return new(t||s)};static \u0275prov=Wn$9({token:s,factory:s.\u0275fac})}return s})(),v$e=(function(s){return s[s.IMMEDIATE=0]="IMMEDIATE",s[s.EVENTUAL=1]="EVENTUAL",s})(v$e||{}),ge$7=new b$g("cdk-focus-monitor-default-options"),T$c=s$b({passive:true,capture:true}),be$a=(()=>{class s{_ngZone=g$k(ge$b);_platform=g$k(w$c);_inputModalityDetector=g$k(pe$b);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=g$k(Te$g);_stopInputModalityDetector=new le$d;constructor(){let e=g$k(ge$7,{optional:true});this._detectionMode=e?.detectionMode||v$e.IMMEDIATE;}_rootNodeFocusAndBlurListener=e=>{let t=E$d(e);for(let n=t;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n);};monitor(e,t=false){let n=d$f(e);if(!this._platform.isBrowser||n.nodeType!==1)return yI();let r=p$c(n)||this._document,c=this._elementInfo.get(n);if(c)return t&&(c.checkChildren=true),c.subject;let m={checkChildren:t,subject:new le$d,rootNode:r};return this._elementInfo.set(n,m),this._registerGlobalListeners(m),m.subject}stopMonitoring(e){let t=d$f(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n));}focusVia(e,t,n){let r=d$f(e),c=this._document.activeElement;r===c?this._getClosestElementsInfo(r).forEach(([m,Oe])=>this._originChanged(m,t,Oe)):(this._setOrigin(t),typeof r.focus=="function"&&r.focus(n));}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===v$e.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program");}_setOrigin(e,t=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===v$e.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?me$a:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n);}});}_onFocus(e,t){let n=this._elementInfo.get(t),r=E$d(e);!n||!n.checkChildren&&t!==r||this._originChanged(t,this._getFocusOrigin(r),n);}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null));}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t));}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,T$c),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,T$c);}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Pi$2(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,T$c),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,T$c),this._rootNodeFocusListenerCount.delete(t));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t;}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n]);}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return false;let r=e.labels;if(r){for(let c=0;c<r.length;c++)if(r[c].contains(t))return true}return false}static \u0275fac=function(t){return new(t||s)};static \u0275prov=Wn$9({token:s,factory:s.\u0275fac})}return s})(),Fe$a=(()=>{class s{_elementRef=g$k(gt$f);_focusMonitor=g$k(be$a);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new Ct$h;get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t);});}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe();}static \u0275fac=function(t){return new(t||s)};static \u0275dir=mt$d({type:s,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return s})();var M$c=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=qS({type:s,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(t,n){},styles:[`.cdk-visually-hidden { 259 border: 0; 260 clip: rect(0 0 0 0); 261 height: 1px; 262 margin: -1px; 263 overflow: hidden; 264 padding: 0; 265 position: absolute; 266 width: 1px; 267 white-space: nowrap; 268 outline: 0; 269 -webkit-appearance: none; 270 -moz-appearance: none; 271 left: 0; 272} 273[dir=rtl] .cdk-visually-hidden { 274 left: auto; 275 right: 0; 276} 277`],encapsulation:2})}return s})();var Le$b=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=Wn$9({token:s,factory:s.\u0275fac})}return s})();var ve$9=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Sa$2({type:s});static \u0275inj=io$5({providers:[Le$b]})}return s})();var De$8=(()=>{class s{_platform=g$k(w$c);isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Se$a(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return false;let t=Ne$a(je$a(e));if(t&&(ye$c(t)===-1||!this.isVisible(t)))return false;let n=e.nodeName.toLowerCase(),r=ye$c(e);return e.hasAttribute("contenteditable")?r!==-1:n==="iframe"||n==="object"||this._platform.WEBKIT&&this._platform.IOS&&!He$c(e)?false:n==="audio"?e.hasAttribute("controls")?r!==-1:false:n==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,t){return Ue$a(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=Wn$9({token:s,factory:s.\u0275fac})}return s})();function Ne$a(s){try{return s.frameElement}catch{return null}}function Se$a(s){return !!(s.offsetWidth||s.offsetHeight||typeof s.getClientRects=="function"&&s.getClientRects().length)}function xe$8(s){let i=s.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function Re$9(s){return Be$a(s)&&s.type=="hidden"}function Pe$8(s){return Ke$9(s)&&s.hasAttribute("href")}function Be$a(s){return s.nodeName.toLowerCase()=="input"}function Ke$9(s){return s.nodeName.toLowerCase()=="a"}function Ee$9(s){if(!s.hasAttribute("tabindex")||s.tabIndex===void 0)return false;let i=s.getAttribute("tabindex");return !!(i&&!isNaN(parseInt(i,10)))}function ye$c(s){if(!Ee$9(s))return null;let i=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function He$c(s){let i=s.nodeName.toLowerCase(),e=i==="input"&&s.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Ue$a(s){return Re$9(s)?false:xe$8(s)||Pe$8(s)||s.hasAttribute("contenteditable")||Ee$9(s)}function je$a(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}var U$a=class U{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor));}_enabled=true;constructor(i,e,t,n,r=false,c){this._element=i,this._checker=e,this._ngZone=t,this._document=n,this._injector=c,r||this.attachAnchors();}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)));})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)));})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)));})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let t=this._getFirstTabbableElement(e);return t?.focus(i),!!t}return e.focus(i),true}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let t=0;t<e.length;t++){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[t]):null;if(n)return n}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let t=e.length-1;t>=0;t--){let n=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(n)return n}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex");}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor));}_executeOnStable(i){Xl$1(i,{injector:this._injector});}},Te$b=(()=>{class s{_checker=g$k(De$8);_ngZone=g$k(ge$b);_document=g$k(Te$g);_injector=g$k(oe$e);constructor(){g$k(R$9).load(M$c);}create(e,t=false){return new U$a(e,this._checker,this._ngZone,this._document,t,this._injector)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=Wn$9({token:s,factory:s.\u0275fac})}return s})(),Ve$a=(()=>{class s{_elementRef=g$k(gt$f);_focusTrapFactory=g$k(Te$b);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||false}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e);}autoCapture=false;constructor(){g$k(w$c).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,true));}
277ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null);}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus();}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors();}ngOnChanges(e){let t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus();}_captureFocus(){this._previouslyFocusedElement=I$a(),this.focusTrap?.focusInitialElementWhenReady();}static \u0275fac=function(t){return new(t||s)};static \u0275dir=mt$d({type:s,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",ni$7],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",ni$7]},exportAs:["cdkTrapFocus"],features:[Ar$8]})}return s})();var h$6=(function(s){return s[s.NONE=0]="NONE",s[s.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",s[s.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",s})(h$6||{}),Ie$5="cdk-high-contrast-black-on-white",Ae$8="cdk-high-contrast-white-on-black",H$d="cdk-high-contrast-active",Ce$7=(()=>{class s{_platform=g$k(w$c);_hasCheckedHighContrastMode=false;_document=g$k(Te$g);_breakpointSubscription;constructor(){this._breakpointSubscription=g$k(z$h).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return h$6.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return h$6.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return h$6.BLACK_ON_WHITE}return h$6.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(H$d,Ie$5,Ae$8),this._hasCheckedHighContrastMode=true;let t=this.getHighContrastMode();t===h$6.BLACK_ON_WHITE?e.add(H$d,Ie$5):t===h$6.WHITE_ON_BLACK&&e.add(H$d,Ae$8);}}static \u0275fac=function(t){return new(t||s)};static \u0275prov=Wn$9({token:s,factory:s.\u0275fac})}return s})(),We$9=(()=>{class s{constructor(){g$k(Ce$7)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(t){return new(t||s)};static \u0275mod=Sa$2({type:s});static \u0275inj=io$5({imports:[ve$9]})}return s})();var Ze$c=200,w$b=class w{_letterKeyStream=new le$d;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new le$d;selectedItem=this._selectedItem;constructor(i,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:Ze$c;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(t);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i;}setItems(i){this._items=i;}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(i){this._letterKeyStream.pipe(Ip$1(e=>this._pressedLetters.push(e)),up$1(i),Pt$b(()=>this._pressedLetters.length>0),st$c(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;t<this._items.length+1;t++){let n=(this._selectedItemIndex+t)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};var k$f=class k{_items;_activeItemIndex=On$7(-1);_activeItem=On$7(null);_wrap=false;_typeaheadSubscription=Q$f.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof Hs$3?this._itemChangesSubscription=i.changes.subscribe(t=>this._itemsChanged(t.toArray())):Co$4(i)&&(this._effectRef=Es$3(()=>this._itemsChanged(i()),{injector:e}));}tabOut=new le$d;change=new le$d;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=true){return this._wrap=i,this}withVerticalOrientation(i=true){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}
277withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new w$b(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=true){return this._homeAndEnd=i,this}withPageUpDown(i=true,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex());}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()+this._pageUpAndDown.delta,c=this._getItemsArray().length;this._setActiveItemByIndex(r<c?r:c-1,-1);break}else return;default:(n||K$k(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(i){let e=this._getItemsArray(),t=typeof i=="number"?i:e.indexOf(i),n=e[t];this._activeItem.set(n??null),this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i);}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let t=1;t<=e.length;t++){let n=(this._activeItemIndex()+i*t+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex()+i,i);}_setActiveItemByIndex(i,e){let t=this._getItemsArray();if(t[i]){for(;this._skipPredicateFn(t[i]);)if(i+=e,!t[i])return;this.setActiveItem(i);}}_getItemsArray(){return Co$4(this._items)?this._items():this._items instanceof Hs$3?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let t=i.indexOf(e);t>-1&&t!==this._activeItemIndex()&&(this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t));}}};var j$i=class j extends k$f{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin);}};var we$b=" ";function $e$9(s,i,e){let t=F$d(s,i);e=e.trim(),!t.some(n=>n.trim()===e)&&(t.push(e),s.setAttribute(i,t.join(we$b)));}function Ye$8(s,i,e){let t=F$d(s,i);e=e.trim();let n=t.filter(r=>r!==e);n.length?s.setAttribute(i,n.join(we$b)):s.removeAttribute(i);}function F$d(s,i){return s.getAttribute(i)?.match(/\S+/g)??[]}var ke$7="cdk-describedby-message",O$i="cdk-describedby-host",W$g=0,ui$2=(()=>{class s{_platform=g$k(w$c);_document=g$k(Te$g);_messageRegistry=new Map;_messagesContainer=null;_id=`${W$g++}`;constructor(){g$k(R$9).load(M$c),this._id=g$k(Xt$c)+"-"+W$g++;}describe(e,t,n){if(!this._canBeDescribed(e,t))return;let r=V$d(t,n);typeof t!="string"?(Me$9(t,this._id),this._messageRegistry.set(r,{messageElement:t,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r);}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;let r=V$d(t,n);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof t=="string"){let c=this._messageRegistry.get(r);c&&c.referenceCount===0&&this._deleteMessageElement(r);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let e=this._document.querySelectorAll(`[${O$i}="${this._id}"]`);for(let t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(O$i);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(e,t){let n=this._document.createElement("div");Me$9(n,this._id),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),this._messagesContainer.appendChild(n),this._messageRegistry.set(V$d(e,t),{messageElement:n,referenceCount:0});}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e);}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",t=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<t.length;r++)t[r].remove();let n=this._document.createElement("div");n.style.visibility="hidden",n.classList.add(e),n.classList.add("cdk-visually-hidden"),this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._messagesContainer=n;}_removeCdkDescribedByReferenceIds(e){let t=F$d(e,"aria-describedby").filter(n=>n.indexOf(ke$7)!=0);e.setAttribute("aria-describedby",t.join(" "));}_addMessageReference(e,t){let n=this._messageRegistry.get(t);$e$9(e,"aria-describedby",n.messageElement.id),e.setAttribute(O$i,this._id),n.referenceCount++;}_removeMessageReference(e,t){let n=this._messageRegistry.get(t);n.referenceCount--,Ye$8(e,"aria-describedby",n.messageElement.id),e.removeAttribute(O$i);}_isElementDescribedByMessage(e,t){let n=F$d(e,"aria-describedby"),r=this._messageRegistry.get(t),c=r&&r.messageElement.id;return !!c&&n.indexOf(c)!=-1}_canBeDescribed(e,t){if(!this._isElementNode(e))return false;if(t&&typeof t=="object")return true;let n=t==null?"":`${t}
277`.trim(),r=e.getAttribute("aria-label");return n?!r||r.trim()!==n:false}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(t){return new(t||s)};static \u0275prov=Wn$9({token:s,factory:s.\u0275fac})}return s})();function V$d(s,i){return typeof s=="string"?`${i||""}/${s}`:s}function Me$9(s,i){s.id||(s.id=`${ke$7}-${i}-${W$g++}`);}var lt$8=["tooltip"],it$8=20;var ot$8=new b$g("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$k(oe$e);return ()=>Yt$6(n,{scrollThrottle:it$8})}}),st$8=new b$g("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var et$a="tooltip-panel",ht$8={passive:true},dt$7=8,ct$6=8,pt$8=24,_t$a=200,mt$7=(()=>{class n{_elementRef=g$k(gt$f);_ngZone=g$k(ge$b);_platform=g$k(w$c);_ariaDescriber=g$k(ui$2);_focusMonitor=g$k(be$a);_dir=g$k(z$g);_injector=g$k(oe$e);_viewContainerRef=g$k(Rt$f);_mediaMatcher=g$k(D$e);_document=g$k(Te$g);_renderer=g$k(Fr$6);_animationsDisabled=h$7();_defaultOptions=g$k(st$8,{optional:true});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=false;_disabled=false;_tooltipClass;_viewInitialized=false;_pointerExitEventsInitialized=false;_tooltipComponent=nt$9;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=false;_dirSubscribed=false;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()));}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=f$b(t),this._detach(),this._overlayRef=null;}get disabled(){return this._disabled}set disabled(t){let e=f$b(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message));}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=C$5(t);}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=C$5(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay);}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e);}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass);}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new le$d;_isDestroyed=false;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=dt$7;}ngAfterViewInit(){this._viewInitialized=true,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Pi$2(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0));});}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(e=>e()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=true,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t);}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new At$6(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Pi$2(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t);}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()));}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t);}_isTooltipVisible(){return !!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;
277if((!this.positionAtOrigin||!t)&&s._origin instanceof gt$f)return this._overlayRef;this._detach();}let e=this._injector.get(q$d).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${et$a}`,o=Xt$7(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(false).withViewportMargin(this._viewportMargin).withScrollableContainers(e).withPopoverLocation("global");return o.positionChanges.pipe(Pi$2(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0));}),this._overlayRef=Zt$7(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(ot$8)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Pi$2(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Pi$2(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Pi$2(this._destroyed)).subscribe(s=>{s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0));}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=true,this._dir.change.pipe(Pi$2(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef);})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null;}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(r$d(r$d({},i.main),o.main)),this._addOffset(r$d(r$d({},i.fallback),o.fallback))]);}_addOffset(t){let e=ct$6,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(i.originX,i.originY);return {main:i,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(i.overlayX,i.overlayY);return {main:i,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Xl$1(()=>{this._tooltipInstance&&this._overlayRef.updatePosition();},{injector:this._injector}));}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t instanceof Set?Array.from(t):t,this._tooltipInstance._markForCheck());}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,s;if(e==="center"?this._dir&&this._dir.value==="rtl"?s=i==="end"?"left":"right":s=i==="start"?"left":"right":s=e==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let d=this._overlayRef;if(d){let b=`${this._cssClassPrefix}-${et$a}-`;d.removePanelClass(b+this._currentPosition),d.addPanelClass(b+s);}this._currentPosition=s;}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i);},this._defaultOptions?.touchLongPressShowDelay??o);})):this._addListener("mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e);}));}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=true,!this._isTouchPlatform())this._addListener("mouseleave",t=>{let e=t.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide();}),this._addListener("wheel",t=>{if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide();}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay);};this._addListener("touchend",t),this._addListener("touchcancel",t);}}}_addListener(t,e){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,t,e,ht$8));}_isTouchPlatform(){let t=this._defaultOptions?.detectHoverCapability;return typeof t=="function"?!t():this._platform.IOS||this._platform.ANDROID?true:this._platform.isBrowser?!!t&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:false}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent";}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=true,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||Xl$1({write:()=>{this._ariaDescriptionPending=false,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip");}},{injector:this._injector}));}_overlayEventPredicate=t=>
277t.type==="keydown"?this._isTooltipVisible()&&t.keyCode===27&&!K$k(t):true;static \u0275fac=function(e){return new(e||n)};static \u0275dir=mt$d({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&iD("mat-mdc-tooltip-disabled",i.disabled);},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return n})(),nt$9=(()=>{class n{_changeDetectorRef=g$k(Va$2);_elementRef=g$k(gt$f);_isMultiline=false;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=h$7();_tooltip;_closeOnInteraction=false;_isVisible=false;_onHide=new le$d;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(true),this._showTimeoutId=void 0;},t);}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(false),this._hideTimeoutId=void 0;},t);}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null;}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0);}_markForCheck(){this._changeDetectorRef.markForCheck();}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(false));}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck();}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>pt$8&&t.width>=_t$a}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation);}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0;}_finalizeAnimation(t){t?this._closeOnInteraction=true:this.isVisible()||this._onHide.next();}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(e);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=true);}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t));}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=qS({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&Jv$1(lt$8,7),e&2){let o;CM(o=wM())&&(i._tooltip=o.first);}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&Zv$1("mouseleave",function(s){return i._handleMouseLeave(s)});},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){e&1&&(jd$1(0,"div",1,0),Yv$1("animationend",function(s){return i._handleAnimationEnd(s)}),jd$1(2,"div",2),QM(3),Vd$1()()),e&2&&(BM(i.tooltipClass),iD("mdc-tooltip--multiline",i._isMultiline),uT(3),yD(i.message));},styles:[`.mat-mdc-tooltip { 278 position: relative; 279 transform: scale(0); 280 display: inline-flex; 281} 282.mat-mdc-tooltip::before { 283 content: ""; 284 top: 0; 285 right: 0; 286 bottom: 0; 287 left: 0; 288 z-index: -1; 289 position: absolute; 290} 291.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before { 292 top: -8px; 293} 294.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before { 295 bottom: -8px; 296} 297.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before { 298 left: -8px; 299} 300.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before { 301 right: -8px; 302} 303.mat-mdc-tooltip._mat-animation-noopable { 304 animation: none; 305 transform: scale(1); 306} 307 308.mat-mdc-tooltip-surface { 309 word-break: normal;
310 overflow-wrap: anywhere; 311 padding: 4px 8px; 312 min-width: 40px; 313 max-width: 200px; 314 min-height: 24px; 315 max-height: 40vh; 316 box-sizing: border-box; 317 overflow: hidden; 318 text-align: center; 319 will-change: transform, opacity; 320 background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface)); 321 color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface)); 322 border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small)); 323 font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font)); 324 font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size)); 325 font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight)); 326 line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height)); 327 letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking)); 328} 329.mat-mdc-tooltip-surface::before { 330 position: absolute; 331 box-sizing: border-box; 332 width: 100%; 333 height: 100%; 334 top: 0; 335 left: 0; 336 border: 1px solid transparent; 337 border-radius: inherit; 338 content: ""; 339 pointer-events: none; 340} 341.mdc-tooltip--multiline .mat-mdc-tooltip-surface { 342 text-align: left; 343} 344[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface { 345 text-align: right; 346} 347 348.mat-mdc-tooltip-panel { 349 line-height: normal; 350} 351.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive { 352 pointer-events: none; 353} 354 355@keyframes mat-mdc-tooltip-show { 356 0% { 357 opacity: 0; 358 transform: scale(0.8); 359 } 360 100% { 361 opacity: 1; 362 transform: scale(1); 363 } 364} 365@keyframes mat-mdc-tooltip-hide { 366 0% { 367 opacity: 1; 368 transform: scale(1); 369 } 370 100% { 371 opacity: 0; 372 transform: scale(0.8); 373 } 374} 375.mat-mdc-tooltip-show { 376 animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards; 377} 378 379.mat-mdc-tooltip-hide { 380 animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; 381} 382`],encapsulation:2})}return n})();var zt$7=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({imports:[We$9,pi$4,K$j,Tt$b]})}return n})();var Te$a=e=>{let r=_e$7(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:c=>{let u=c.split("-");return u[0]===""&&u.length!==1&&u.shift(),ye$b(u,r)||Ee$8(c)},getConflictingClassGroupIds:(c,u)=>{let p=o[c]||[];return u&&t[c]?[...p,...t[c]]:p}}},ye$b=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],t=r.nextPart.get(o),i=t?ye$b(e.slice(1),t):void 0;if(i)return i;if(r.validators.length===0)return;let l=e.join("-");return r.validators.find(({validator:c}
382)=>c(l))?.classGroupId},he$a=/^\[(.+)\]$/,Ee$8=e=>{if(he$a.test(e)){let r=he$a.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return "arbitrary.."+o}},_e$7=e=>{let{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(let i in o)ne$9(o[i],t,i,r);return t},ne$9=(e,r,o,t)=>{e.forEach(i=>{if(typeof i=="string"){let l=i===""?r:we$a(r,i);l.classGroupId=o;return}if(typeof i=="function"){if(Oe$7(i)){ne$9(i(t),r,o,t);return}r.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([l,c])=>{ne$9(c,we$a(r,l),o,t);});});},we$a=(e,r)=>{let o=e;return r.split("-").forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t);}),o},Oe$7=e=>e.isThemeGetter,Ne$9=e=>{if(e<1)return {get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map,i=(l,c)=>{o.set(l,c),r++,r>e&&(r=0,t=o,o=new Map);};return {get(l){let c=o.get(l);if(c!==void 0)return c;if((c=t.get(l))!==void 0)return i(l,c),c},set(l,c){o.has(l)?o.set(l,c):i(l,c);}}};var Le$a=e=>{let{prefix:r,experimentalParseClassName:o}=e,t=i=>{let l=[],c=0,u=0,p=0,b;for(let k=0;k<i.length;k++){let y=i[k];if(c===0&&u===0){if(y===":"){l.push(i.slice(p,k)),p=k+1;continue}if(y==="/"){b=k;continue}}y==="["?c++:y==="]"?c--:y==="("?u++:y===")"&&u--;}let h=l.length===0?i:i.substring(p),z=Fe$9(h),F=z!==h,V=b&&b>p?b-p:void 0;return {modifiers:l,hasImportantModifier:F,baseClassName:z,maybePostfixModifierPosition:V}};if(r){let i=r+":",l=t;t=c=>c.startsWith(i)?l(c.substring(i.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:c,maybePostfixModifierPosition:void 0};}if(o){let i=t;t=l=>o({className:l,parseClassName:i});}return t},Fe$9=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Ve$9=e=>{let r=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,true]));return t=>{if(t.length<=1)return t;let i=[],l=[];return t.forEach(c=>{c[0]==="["||r[c]?(i.push(...l.sort(),c),l=[]):l.push(c);}),i.push(...l.sort()),i}},Be$9=e=>r$d({cache:Ne$9(e.cacheSize),parseClassName:Le$a(e),sortModifiers:Ve$9(e)},Te$a(e)),je$9=/\s+/,We$8=(e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:i,sortModifiers:l}=r,c=[],u=e.trim().split(je$9),p="";for(let b=u.length-1;b>=0;b-=1){let h=u[b],{isExternal:z,modifiers:F,hasImportantModifier:V,baseClassName:k,maybePostfixModifierPosition:y}=o(h);if(z){p=h+(p.length>0?" "+p:p);continue}let G=!!y,R=t(G?k.substring(0,y):k);if(!R){if(!G){p=h+(p.length>0?" "+p:p);continue}if(R=t(k),!R){p=h+(p.length>0?" "+p:p);continue}G=false;}let D=l(F).join(":"),B=V?D+"!":D,T=B+R;if(c.includes(T))continue;c.push(T);let E=i(R,G);for(let P=0;P<E.length;++P){let j=E[P];c.push(B+j);}p=h+(p.length>0?" "+p:p);}return p};function $e$8(){let e=0,r,o,t="";for(;e<arguments.length;)(r=arguments[e++])&&(o=ve$8(r))&&(t&&(t+=" "),t+=o);return t}var ve$8=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=ve$8(e[t]))&&(o&&(o+=" "),o+=r);return o};function ae$8(e,...r){let o,t,i,l=c;function c(p){let b=r.reduce((h,z)=>z(h),e());return o=Be$9(b),t=o.cache.get,i=o.cache.set,l=u,u(p)}function u(p){let b=t(p);if(b)return b;let h=We$8(p,o);return i(p,h),h}return function(){return l($e$8.apply(null,arguments))}}var f$9=e=>{let r=o=>o[e]||[];return r.isThemeGetter=true,r},Ae$7=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Me$8=/^\((?:(\w[\w-]*):)?(.+)\)$/i,De$7=/^\d+\/\d+$/,Ue$9=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qe$6=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,He$b=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Je$5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xe$5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O$h=e=>De$7.test(e),m$8=e=>!!e&&!Number.isNaN(Number(e)),S$f=e=>!!e&&Number.isInteger(Number(e)),te$7=e=>e.endsWith("%")&&m$8(e.slice(0,-1)),M$b=e=>Ue$9.test(e),Ke$8=()=>true,Qe$9=e=>qe$6.test(e)&&!He$b.test(e),ze$a=()=>false,Ye$7=e=>Je$5.test(e),Ze$b=e=>Xe$5.test(e),eo$3=e=>!s$a(e)&&!n$d(e),oo$3=e=>N$7(e,Pe$7,ze$a),s$a=e=>Ae$7.test(e),C$4=e=>N$7(e,Ie$4,Qe$9),se$9=e=>N$7(e,ao$2,m$8),xe$7=e=>N$7(e,Se$9,ze$a),ro$3=e=>N$7(e,Re$8,Ze$b),K$h=e=>N$7(e,Ce$6,Ye$7),n$d=e=>Me$8.test(e),W$f=e=>L$c(e,Ie$4),to$3=e=>L$c(e,io$3),ke$6=e=>L$c(e,Se$9),so$2=e=>L$c(e,Pe$7),no$4=e=>L$c(e,Re$8),Q$9=e=>L$c(e,Ce$6,true),N$7=(e,r,o)=>{let t=Ae$7.exec(e);return t?t[1]?r(t[1]):o(t[2]):false},L$c=(e,r,o=false)=>{let t=Me$8.exec(e);return t?t[1]?r(t[1]):o:false},Se$9=e=>e==="position"||e==="percentage",Re$8=e=>e==="image"||e==="url",Pe$7=e=>e==="length"||e==="size"||e==="bg-size",Ie$4=e=>e==="length",ao$2=e=>e==="number",io$3=e=>e==="family-name",Ce$6=e=>e==="shadow";var ie$9=()=>{let e=f$9("color"),r=f$9("font"),o=f$9("text"),t=f$9("font-weight"),i=f$9("tracking"),l=f$9("leading"),c=f$9("breakpoint"),u=f$9("container"),p=f$9("spacing"),b=f$9("radius"),h=f$9("shadow"),z=f$9("inset-shadow"),F=f$9("text-shadow"),V=f$9("drop-shadow"),k=f$9("blur"),y=f$9("perspective"),G=f$9("aspect"),R=f$9("ease"),D=f$9("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...T(),n$d,s$a],P=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],d=()=>
vendor: 4,828 bytes, line 382
382[n$d,s$a,p],v=()=>[O$h,"full","auto",...d()],le=()=>[S$f,"none","subgrid",n$d,s$a],ce=()=>["auto",{span:["full",S$f,n$d,s$a]},S$f,n$d,s$a],U=()=>[S$f,"auto",n$d,s$a],de=()=>["auto","min","max","fr",n$d,s$a],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...d()],I=()=>[O$h,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...d()],a=()=>[e,n$d,s$a],me=()=>[...T(),ke$6,xe$7,{position:[n$d,s$a]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",so$2,oo$3,{size:[n$d,s$a]}],oe=()=>[te$7,W$f,C$4],w=()=>["","none","full",b,n$d,s$a],x=()=>["",m$8,W$f,C$4],q=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m$8,te$7,ke$6,xe$7],ge=()=>["","none",k,n$d,s$a],H=()=>["none",m$8,n$d,s$a],J=()=>["none",m$8,n$d,s$a],re=()=>[m$8,n$d,s$a],X=()=>[O$h,"full",...d()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M$b],breakpoint:[M$b],color:[Ke$8],container:[M$b],"drop-shadow":[M$b],ease:["in","out","in-out"],font:[eo$3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M$b],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M$b],shadow:[M$b],spacing:["px",m$8],text:[M$b],"text-shadow":[M$b],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",O$h,s$a,n$d,G]}],container:["container"],columns:[{columns:[m$8,s$a,n$d,u]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{start:v()}],end:[{end:v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:["visible","invisible","collapse"],z:[{z:[S$f,"auto",n$d,s$a]}],basis:[{basis:[O$h,"full","auto",u,...d()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m$8,O$h,"auto","initial","none",s$a]}],grow:[{grow:["",m$8,n$d,s$a]}],shrink:[{shrink:["",m$8,n$d,s$a]}],order:[{order:[S$f,"first","last","none",n$d,s$a]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:d()}],"gap-x":[{"gap-x":d()}],"gap-y":[{"gap-y":d()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:d()}],px:[{px:d()}],py:[{py:d()}],ps:[{ps:d()}],pe:[{pe:d()}],pt:[{pt:d()}],pr:[{pr:d()}],pb:[{pb:d()}],pl:[{pl:d()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":d()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":d()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}
vendor: 9,942 bytes, line 382
382],w:[{w:[u,"screen",...I()]}],"min-w":[{"min-w":[u,"screen","none",...I()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",o,W$f,C$4]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,n$d,se$9]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te$7,s$a]}],"font-family":[{font:[to$3,s$a,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,n$d,s$a]}],"line-clamp":[{"line-clamp":[m$8,"none",n$d,se$9]}],leading:[{leading:[l,...d()]}],"list-image":[{"list-image":["none",n$d,s$a]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n$d,s$a]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:a()}],"text-color":[{text:a()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[m$8,"from-font","auto",n$d,C$4]}],"text-decoration-color":[{decoration:a()}],"underline-offset":[{"underline-offset":[m$8,"auto",n$d,s$a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n$d,s$a]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n$d,s$a]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},S$f,n$d,s$a],radial:["",n$d,s$a],conic:[S$f,n$d,s$a]},no$4,ro$3]}],"bg-color":[{bg:a()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:a()}],"gradient-via":[{via:a()}],"gradient-to":[{to:a()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:x()}],"border-w-x":[{"border-x":x()}],"border-w-y":[{"border-y":x()}],"border-w-s":[{"border-s":x()}],"border-w-e":[{"border-e":x()}],"border-w-t":[{"border-t":x()}],"border-w-r":[{"border-r":x()}],"border-w-b":[{"border-b":x()}],"border-w-l":[{"border-l":x()}],"divide-x":[{"divide-x":x()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":x()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:a()}],"border-color-x":[{"border-x":a()}],"border-color-y":[{"border-y":a()}],"border-color-s":[{"border-s":a()}],"border-color-e":[{"border-e":a()}],"border-color-t":[{"border-t":a()}],"border-color-r":[{"border-r":a()}],"border-color-b":[{"border-b":a()}],"border-color-l":[{"border-l":a()}],"divide-color":[{divide:a()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m$8,n$d,s$a]}],"outline-w":[{outline:["",m$8,W$f,C$4]}],"outline-color":[{outline:a()}],shadow:[{shadow:["","none",h,Q$9,K$h]}],"shadow-color":[{shadow:a()}],"inset-shadow":[{"inset-shadow":["none",z,Q$9,K$h]}],"inset-shadow-color":[{"inset-shadow":a()}],"ring-w":[{ring:x()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:a()}],"ring-offset-w":[{"ring-offset":[m$8,C$4]}],"ring-offset-color":[{"ring-offset":a()}],"inset-ring-w":[{"inset-ring":x()}],"inset-ring-color":[{"inset-ring":a()}],"text-shadow":[{"text-shadow":["none",F,Q$9,K$h]}],"text-shadow-color":[{"text-shadow":a()}],opacity:[{opacity:[m$8,n$d,s$a]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m$8]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":a()}],"mask-image-linear-to-color":[{"mask-linear-to":a()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":a()}],"mask-image-t-to-color":[{"mask-t-to":a()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":a()}],"mask-image-r-to-color":[{"mask-r-to":a()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":a()}],"mask-image-b-to-color":[{"mask-b-to":a()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":a()}],"mask-image-l-to-color":[{"mask-l-to":a()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":a()}],"mask-image-x-to-color":[{"mask-x-to":a()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":a()}],"mask-image-y-to-color":[{"mask-y-to":a()}],"mask-image-radial":[{"mask-radial":[n$d,s$a]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":a()}],"mask-image-radial-to-color":[{"mask-radial-to":a()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[m$8]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":a()}],"mask-image-conic-to-color":[{"mask-conic-to":a()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n$d,s$a]}],filter:[{filter:["","none",n$d,s$a]}],blur:[{blur:ge()}],brightness:[{brightness:[m$8,n$d,s$a]}],contrast:[{contrast:[m$8,n$d,s$a]}],"drop-shadow":[{"drop-shadow":["","none",V,Q$9,K$h]}],"drop-shadow-color":[{"drop-shadow":a()}],grayscale:[{grayscale:["",m$8,n$d,s$a]}],"hue-rotate":[{"hue-rotate":[m$8,n$d,s$a]}],invert:[{invert:["",m$8,n$d,s$a]}],saturate:[{saturate:[m$8,n$d,s$a]}],sepia:[{sepia:["",m$8,n$d,s$a]}],"backdrop-filter":[{"backdrop-filter":["","none",n$d,s$a]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[m$8,n$d,s$a]}],"backdrop-contrast":[{"backdrop-contrast":[m$8,n$d,s$a]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m$8,n$d,s$a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m$8,n$d,s$a]}],"backdrop-invert":[{"backdrop-invert":["",m$8,n$d,s$a]}],"backdrop-opacity":[{"backdrop-opacity":[m$8,n$d,s$a]}],"backdrop-saturate":[{"backdrop-saturate":[m$8,n$d,s$a]}],"backdrop-sepia":[{"backdrop-sepia":["",m$8,n$d,s$a]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":d()}],"border-spacing-x":[{"border-spacing-x":d()}],"border-spacing-y":[{"border-spacing-y":d()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n$d,s$a]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m$8,"initial",n$d,s$a]}],ease:[{ease:["linear","initial",R,n$d,s$a]}],delay:[{delay:[m$8,n$d,s$a]}],animate:[{animate:["none",D,n$d,s$a]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,n$d,s$a]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[n$d,s$a,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],accent:[{accent:a()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:a()}
vendor: 5,321 bytes, line 382
382],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n$d,s$a]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n$d,s$a]}],fill:[{fill:["none",...a()]}],"stroke-w":[{stroke:[m$8,W$f,C$4,se$9]}],stroke:[{stroke:["none",...a()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lo$2=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:i={},override:l={}})=>($$d(e,"cacheSize",r),$$d(e,"prefix",o),$$d(e,"experimentalParseClassName",t),Y$e(e.theme,l.theme),Y$e(e.classGroups,l.classGroups),Y$e(e.conflictingClassGroups,l.conflictingClassGroups),Y$e(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),$$d(e,"orderSensitiveModifiers",l.orderSensitiveModifiers),Z$9(e.theme,i.theme),Z$9(e.classGroups,i.classGroups),Z$9(e.conflictingClassGroups,i.conflictingClassGroups),Z$9(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ge$7(e,i,"orderSensitiveModifiers"),e),$$d=(e,r,o)=>{o!==void 0&&(e[r]=o);},Y$e=(e,r)=>{if(r)for(let o in r)$$d(e,o,r[o]);},Z$9=(e,r)=>{if(r)for(let o in r)Ge$7(e,r,o);},Ge$7=(e,r,o)=>{let t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t);},co$2=(e,...r)=>typeof e=="function"?ae$8(ie$9,e,...r):ae$8(()=>
382lo$2(ie$9(),e),...r),mo$2=ae$8(ie$9);var V$c=class V{translations;constructor(a){this.translations=a;}getTranslation(a){return yI(this.translations.get(a)||{})}},ge$6=new b$g("");function _$8(n,a){return n&&(Object.prototype.hasOwnProperty.call(n,a)?n[a]:a.split(".").reduce((e,t)=>e?.[t],n))}function De$6(n,a,e){n=r$d({},n);let t=a.split("."),i=t.length-1;return t.reduce((s,r,o)=>(o===i?s[r]=e:s[r]=Array.isArray(s[r])?s[r].slice():r$d({},s[r]),s&&s[r]),n),n}function pe$a(n){return n?Array.isArray(n)?n.length:F$c(n)?Object.keys(n).length:n?n.length:0:0}function je$8(n){return pe$a(n)===0}function Fe$8(n){return typeof n=="function"}function S$e(n){return typeof n=="string"}function F$c(n){return !!n&&typeof n=="object"&&!Array.isArray(n)}function ve$7(n){return n.replace(/(?:^\w|[A-Z]|\b\w)/g,(a,e)=>e==0?a.toLowerCase():a.toUpperCase()).replace(/\s+|_|-|\//g,"")}function H$c(n){return n==null}function he$9(n){return H$c(n)===false}function Le$9(n){return n&&typeof n.scope=="string"}function Ie$3(n){return n&&F$c(n.loader)}function fe$7(n){let a={};function e(t,i){if(t===null)a[i]=null;else if(F$c(t))for(let[s,r]of Object.entries(t))e(r,i?`${i}.${s}`:s);else a[i]=t;}return e(n,""),a}function $e$7(n){let a={};for(let[e,t]of Object.entries(n)){let i=e.split("."),s=a;i.forEach((r,o)=>{o===i.length-1?s[r]=t:(s[r]??={},s=s[r]);});}return a}var A$b=new b$g("",{providedIn:"root",factory:()=>b$9}),b$9={defaultLang:"en",reRenderOnLangChange:false,prodMode:false,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:true,useFallbackTranslation:false,allowEmpty:false},flatten:{aot:false},interpolation:["{{","}}"],scopes:{keepCasing:false}};function Ee$7(n={}){return s$e(r$d(r$d({},b$9),n),{missingHandler:r$d(r$d({},b$9.missingHandler),n.missingHandler),flatten:r$d(r$d({},b$9.flatten),n.flatten),scopes:r$d(r$d({},b$9.scopes),n.scopes)})}var me$9=new b$g(""),Pe$6=(()=>{class n{config=g$k(A$b,{optional:true})??b$9;get interpolationMatcher(){return _e$6(this.config)}transpile({value:e,params:t={},translation:i,key:s}){if(S$e(e)){let r,o=e;for(;(r=this.interpolationMatcher.exec(o))!==null;){let[l,c]=r;o=o.replace(l,()=>{let u=c.trim(),h=_$8(t,u);return he$9(h)?h:he$9(i[u])?this.transpile({params:t,translation:i,key:s,value:i[u]}):""});}return o}else t&&(F$c(e)?e=this.handleObject({value:e,params:t,translation:i,key:s}):Array.isArray(e)&&(e=this.handleArray({value:e,params:t,translation:i,key:s})));return e}handleObject({value:e,params:t={},translation:i,key:s}){let r=e;return Object.keys(t).forEach(o=>{let l=this.transpile({value:_$8(r,o),params:_$8(t,o),translation:i,key:s});r=De$6(r,o,l);}),r}handleArray(i){var s=i,{value:e}=s,t=v$m(s,["value"]);return e.map(r=>this.transpile(r$d({value:r},t)))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})();function _e$6(n){let[a,e]=n.interpolation;return new RegExp(`${a}([^${a}${e}]*?)${e}`,"g")}var ye$a=new b$g(""),xe$6=(()=>{class n{handle(e,t){if(t.missingHandler.logMissingKey&&!t.prodMode){let i=`Missing translation for '${e}'`;console.warn(`%c ${i}`,"font-size: 12px; color: red");}return e}static \u0275fac=function(t){return new(t||n)};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})(),Te$9=new b$g(""),Ve$8=(()=>{class n{preSaveTranslation(e){return e}preSaveTranslationKey(e,t){return t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})(),be$9=new b$g(""),He$a=(()=>{class n{userConfig;constructor(e){this.userConfig=e;}getNextLangs(){let e=this.userConfig.fallbackLang;if(!e)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(e)?e:[e]}static \u0275fac=function(t){return new(t||n)(G$k(A$b))};static \u0275prov=L$l({token:n,factory:n.\u0275fac})}return n})();function w$a(n){if(!n)return "";let a=n.split("/");return a.pop(),a.join("/")}function v$d(n){return n?n.split("/").pop():""}function k$e(n,a,e="|"){if(S$e(n)){let t=n.split(e),i=t.pop();return i===a?[true,t.toString()]:[false,i]}return [false,""]}function Se$8(n,a){let[e]=k$e(a,"static");
382return e?false:!!n.config.reRenderOnLangChange}function Ae$6(n){return n?a=>a:hn$9(1)}function ke$5(n,a){return Object.keys(n).reduce((e,t)=>(e[`${a}/${t}`]=n[t],e),{})}function B$g(n,a){return Ie$3(n)?ke$5(n.loader,a):void 0}function x$b(n){return {scope:w$a(n)||null,langName:v$d(n)}}function Oe$6(n){let{path:a,inlineLoader:e,mainLoader:t,data:i}=n;if(e){let s=e[a];if(Fe$8(s)===false)throw `You're using an inline loader but didn't provide a loader for ${a}`;return e[a]().then(r=>r.default?r.default:r)}return t.getTranslation(a,i)}function Ke$7({mainLoader:n,path:a,data:e,fallbackPath:t,inlineLoader:i}){return (t?[a,t]:[a]).map(r=>{let o=Oe$6({path:r,mainLoader:n,inlineLoader:i,data:e});return je$e(o).pipe(st$c(l=>({translation:l,lang:r})))})}var Ce$5=(()=>{class n{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=false;lang;failedLangs=new Set;events=new le$d;events$=this.events.asObservable();config;destroyRef=g$k(de$b);constructor(e,t,i,s,r,o){this.loader=e,this.parser=t,this.missingHandler=i,this.interceptor=s,this.fallbackStrategy=o,this.loader||(this.loader=new V$c(this.translations)),this.config=JSON.parse(JSON.stringify(r)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Gr$6(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.events$.subscribe(l=>{l.type==="translationLoadSuccess"&&l.wasFailure&&this.setActiveLang(l.payload.langName);}),this.destroyRef.onDestroy(()=>{this.lang.complete(),this.events.complete(),this.cache.clear();});}getDefaultLang(){return this.defaultLang}setDefaultLang(e){this.defaultLang=e;}getActiveLang(){return this.lang.getValue()}setActiveLang(e){return this.parser.onLangChanged?.(e),this.lang.next(e),this.events.next({type:"langChanged",payload:x$b(e)}),this}setAvailableLangs(e){this.availableLangs=e;}getAvailableLangs(){return this.availableLangs}load(e,t={}){let i=this.cache.get(e);if(i)return i;let s,r=this._isLangScoped(e),o;r&&(o=w$a(e));let l={path:e,mainLoader:this.loader,inlineLoader:t.inlineLoader,data:r?{scope:o}:void 0};if(this.useFallbackTranslation(e)){let u=r?`${o}/${this.firstFallbackLang}`:this.firstFallbackLang,h=Ke$7(s$e(r$d({},l),{fallbackPath:u}));s=NI(h);}else {let u=Oe$6(l);s=je$e(u);}let c=s.pipe(mp$1(this.config.failedRetries),Ip$1(u=>{if(Array.isArray(u)){u.forEach(h=>{this.handleSuccess(h.lang,h.translation),h.lang!==e&&this.cache.set(h.lang,yI({}));});return}this.handleSuccess(e,u);}),gc$1(u=>(this.config.prodMode||console.error(`Error while trying to load "${e}"`,u),this.handleFailure(e,t))),vp(1),qG(this.destroyRef));return this.cache.set(e,c),c}translate(e,t={},i=this.getActiveLang()){if(!e)return e;let{scope:s,resolveLang:r}=this.resolveLangAndScope(i);if(Array.isArray(e))return e.map(c=>this.translate(s?`${s}.${c}`:c,t,r));e=s?`${s}.${e}`:e;let o=this.getTranslation(r),l=o[e];return l?this.parser.transpile({value:l,params:t,translation:o,key:e}):this._handleMissingKey(e,l,t)}selectTranslate(e,t,i,s=false){let r,o=(c,u)=>this.load(c,u).pipe(st$c(()=>s?this.translateObject(e,t,c):this.translate(e,t,c)));if(H$c(i))return this.langChanges$.pipe(Kf$1(c=>o(c)));if(i=Array.isArray(i)?i[0]:i,Le$9(i)){let c=i;i=c.scope,r=B$g(c,c.scope);}if(i=i,this.isLang(i)||this.isScopeWithLang(i))return o(i);let l=i;return this.langChanges$.pipe(Kf$1(c=>o(`${l}/${c}`,{inlineLoader:r})))}isScopeWithLang(e){return this.isLang(v$d(e))}translateObject(e,t={},i=this.getActiveLang()){if(S$e(e)||Array.isArray(e)){let{resolveLang:r,scope:o}=this.resolveLangAndScope(i);if(Array.isArray(e))return e.map(u=>this.translateObject(o?`${o}.${u}`:u,t,r));let l=this.getTranslation(r);e=o?`${o}.${e}`:e;let c=$e$7(this.getObjectByKey(l,e));return je$8(c)?this.translate(e,t,i):this.parser.transpile({value:c,params:t,translation:l,key:e})}let s=[];for(let[r,o]of this.getEntries(e))s.push(this.translateObject(r,o,i));return s}
382selectTranslateObject(e,t,i){if(S$e(e)||Array.isArray(e))return this.selectTranslate(e,t,i,true);let[[s,r],...o]=this.getEntries(e);return this.selectTranslateObject(s,r,i).pipe(st$c(l=>{let c=[l];for(let[u,h]of o)c.push(this.translateObject(u,h,i));return c}))}getTranslation(e){if(e){if(this.isLang(e))return this.translations.get(e)||{};{let{scope:t,resolveLang:i}=this.resolveLangAndScope(e),s=this.translations.get(i)||{};return this.getObjectByKey(s,t)}}return this.translations}selectTranslation(e){let t=this.langChanges$;if(e){let i=v$d(e)!==e;this.isLang(e)||i?t=yI(e):t=this.langChanges$.pipe(st$c(s=>`${e}/${s}`));}return t.pipe(Kf$1(i=>this.load(i).pipe(st$c(()=>this.getTranslation(i)))))}setTranslation(e,t=this.getActiveLang(),i={}){let r=r$d(r$d({},{merge:true,emitChange:true}),i),o=w$a(t),l=e;if(o){let Ne=this.getMappedScope(o);l=fe$7({[Ne]:e});}let c=o?v$d(t):t,u=r$d(r$d({},r.merge&&this.getTranslation(c)),l),h=this.config.flatten.aot?u:fe$7(u),Re=this.interceptor.preSaveTranslation(h,c);this.translations.set(c,Re),r.emitChange&&this.setActiveLang(this.getActiveLang());}setTranslationKey(e,t,i={}){let s=i.lang||this.getActiveLang(),r=this.interceptor.preSaveTranslationKey(e,t,s),o={[e]:r};this.setTranslation(o,s,s$e(r$d({},i),{merge:true}));}setFallbackLangForMissingTranslation({fallbackLang:e}){let t=Array.isArray(e)?e[0]:e;e&&this.useFallbackTranslation(t)&&(this.firstFallbackLang=t);}_handleMissingKey(e,t,i){if(this.config.missingHandler.allowEmpty&&t==="")return "";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=true;let s=this.translate(e,i,this.firstFallbackLang);return this.isResolvedMissingOnce=false,s}return this.missingHandler.handle(e,this.getMissingHandlerData(),i)}_isLangScoped(e){return this.getAvailableLangsIds().indexOf(e)===-1}isLang(e){return this.getAvailableLangsIds().indexOf(e)!==-1}_loadDependencies(e,t){let i=v$d(e);return this._isLangScoped(e)&&!this.isLoadedTranslation(i)?_I([this.load(i),this.load(e,{inlineLoader:t})]):this.load(e,{inlineLoader:t})}_completeScopeWithLang(e){return this._isLangScoped(e)&&!this.isLang(v$d(e))?`${e}/${this.getActiveLang()}`:e}_setScopeAlias(e,t){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[e]=t;}isLoadedTranslation(e){return pe$a(this.getTranslation(e))}getAvailableLangsIds(){let e=this.getAvailableLangs()[0];return S$e(e)?this.getAvailableLangs():this.getAvailableLangs().map(t=>t.id)}getMissingHandlerData(){return s$e(r$d({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(e){return this.config.missingHandler.useFallbackTranslation&&e!==this.firstFallbackLang}handleSuccess(e,t){this.setTranslation(t,e,{emitChange:false}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:x$b(e)}),this.failedLangs.forEach(i=>this.cache.delete(i)),this.failedLangs.clear();}handleFailure(e,t){H$c(t.failedCounter)&&(t.failedCounter=0,t.fallbackLangs||(t.fallbackLangs=this.fallbackStrategy.getNextLangs(e)));let i=e.split("/"),r=t.fallbackLangs[t.failedCounter];if(this.failedLangs.add(e),this.cache.has(r))return this.handleSuccess(r,this.getTranslation(r)),pn$a;let o=r===i[i.length-1];if(!r||o){let c="Unable to load translation and all the fallback languages";throw i.length>1&&(c+=", did you misspelled the scope name?"),new Error(c)}let l=r;return i.length>1&&(i[i.length-1]=r,l=i.join("/")),t.failedCounter++,this.events.next({type:"translationLoadFailure",payload:x$b(e)}),this.load(l,t)}getMappedScope(e){let{scopeMapping:t={},scopes:i={keepCasing:false}}=this.config;return t[e]||(i.keepCasing?e:ve$7(e))}resolveLangAndScope(e){let t=e,i;if(this._isLangScoped(e)){let s=v$d(e),r=this.isLang(s);t=r?s:this.getActiveLang(),i=this.getMappedScope(r?w$a(e):e);}return {scope:i,resolveLang:t}}getObjectByKey(e,t){let i={},s=`${t}.`;for(let r in e)r.startsWith(s)&&(i[r.replace(s,"")]=e[r]);return i}getEntries(e){return e instanceof Map?e.entries():Object.entries(e)}static \u0275fac=function(t){return new(t||n)(G$k(ge$6,8),G$k(me$9),G$k(ye$a),G$k(Te$9),G$k(A$b),G$k(be$9))};static \u0275prov=L$l({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ge$6=(()=>{class n{html;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=qS({type:n,selectors:[["ng-component"]],inputs:{html:"html"},decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(t,i){t&1&&Bv$1(0,"div",0),t&2&&zv$1("innerHTML",i.html,cb$1);},encapsulation:2,changeDetection:1})}return n})(),K$g=class K{view;vcr;constructor(a,e){this.view=a,this.vcr=e;}attachView(){if(this.view instanceof rn$a)this.vcr.createEmbeddedView(this.view);else if(S$e(this.view)){let a=this.vcr.createComponent(Ge$6);a.instance.html=this.view,a.hostView.detectChanges();}else this.vcr.createComponent(this.view);}detachView(){this.vcr.clear();}},we$9=new b$g(""),ze$9=new b$g(""),Me$7=new b$g(""),D$d=class D{initialized=false;resolve({inline:a,provider:e,active:t}){let i=t;if(this.initialized)return i=t,i;if(e){let[,s]=k$e(e,"static");i=s;}if(a){let[,s]=k$e(a,"static");i=s;}return this.initialized=true,i}resolveLangBasedOnScope(a){return w$a(a)?v$d(a):a}resolveLangPath(a,e){return e?`${e}/${a}`:a}},j$h=class j{service;constructor(a){this.service=a;}resolve(a){let{inline:e,provider:t}=a;if(e)return e;if(t){if(Le$9(t)){let{scope:i,alias:s=this.service.config.scopes.keepCasing?i:ve$7(i)}=t;return this.service._setScopeAlias(i,s),i}return t}}},yt$a=(()=>{class n{destroyRef=g$k(de$b);service=g$k(Ce$5);tpl=g$k(rn$a,{optional:true});providerLang=g$k(we$9,{optional:true});providerScope=g$k(Me$7,{optional:true});providedLoadingTpl=g$k(ze$9,{optional:true});cdr=g$k(Va$2);host=g$k(gt$f);vcr=g$k(Rt$f);renderer=g$k(Fr$6);view;memo=new Map;key;params={};inlineScope;
382inlineRead;prefix;inlineLang;inlineTpl;currentLang;loaderTplHandler;initialized=false;path;langResolver=new D$d;scopeResolver=new j$h(this.service);strategy=this.tpl===null?"attribute":"structural";static ngTemplateContextGuard(e,t){return true}ngOnInit(){let e=Se$8(this.service,this.providerLang||this.inlineLang);if(this.service.langChanges$.pipe(Kf$1(t=>{let i=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:t});return Array.isArray(this.providerScope)?NI(this.providerScope.map(s=>this.resolveScope(i,s))):this.resolveScope(i,this.providerScope)}),Ae$6(e),qG(this.destroyRef)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),this.strategy==="attribute"?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.prefix||this.inlineRead),this.cdr.markForCheck(),this.initialized=true;}),!this.initialized){let t=this.resolveLoadingContent();t&&(this.loaderTplHandler=new K$g(t,this.vcr),this.loaderTplHandler.attachView());}}ngOnChanges(e){this.strategy==="attribute"&&Ob
382ject.keys(e).some(i=>!e[i].firstChange)&&this.attributeStrategy();}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.service.translate(this.key,this.params,this.currentLang));}structuralStrategy(e,t){this.memo.clear();let i=this.getTranslateFn(e,t);this.view?(this.view.context.$implicit=i,this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:i,currentLang:this.currentLang}));}getTranslateFn(e,t){return (i,s)=>{let r=t?`${t}.${i}`:i,o=s?`${r}${JSON.stringify(s)}`:r;return this.memo.has(o)||this.memo.set(o,this.service.translate(r,s,e)),this.memo.get(o)}}resolveLoadingContent(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.memo.clear();}detachLoader(){this.loaderTplHandler?.detachView();}resolveScope(e,t){let i=this.scopeResolver.resolve({inline:this.inlineScope,provider:t});this.path=this.langResolver.resolveLangPath(e,i);let s=B$g(t,i);return this.service._loadDependencies(this.path,s)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=mt$d({type:n,selectors:[["","transloco",""]],inputs:{key:[0,"transloco","key"],params:[0,"translocoParams","params"],inlineScope:[0,"translocoScope","inlineScope"],inlineRead:[0,"translocoRead","inlineRead"],prefix:[0,"translocoPrefix","prefix"],inlineLang:[0,"translocoLang","inlineLang"],inlineTpl:[0,"translocoLoadingTpl","inlineTpl"]},features:[Ar$8]})}return n})(),Tt$a=(()=>{class n{service;providerScope;providerLang;cdr;subscription=null;
382lastValue="";lastKey;path;langResolver=new D$d;scopeResolver;constructor(e,t,i,s){this.service=e,this.providerScope=t,this.providerLang=i,this.cdr=s,this.scopeResolver=new j$h(this.service);}transform(e,t,i){if(!e)return e;let s=t?`${e}${JSON.stringify(t)}`:e;if(s===this.lastKey)return this.lastValue;this.lastKey=s,this.subscription?.unsubscribe();let r=Se$8(this.service,this.providerLang||i);return this.subscription=this.service.langChanges$.pipe(Kf$1(o=>{let l=this.langResolver.resolve({inline:i,provider:this.providerLang,active:o});return Array.isArray(this.providerScope)?NI(this.providerScope.map(c=>this.resolveScope(l,c))):this.resolveScope(l,this.providerScope)}),Ae$6(r)).subscribe(()=>this.updateValue(e,t)),this.lastValue}ngOnDestroy(){this.subscription?.unsubscribe(),this.subscription=null;}updateValue(e,t){let i=this.langResolver.resolveLangBasedOnScope(this.path);this.lastValue=this.service.translate(e,t,i),this.cdr.markForCheck();}resolveScope(e,t){let i=this.scopeResolver.resolve({inline:void 0,provider:t});this.path=this.langResolver.resolveLangPath(e,i);let s=B$g(t,i);return this.service._loadDependencies(this.path,s)}static \u0275fac=function(t){return new(t||n)(q$l(Ce$5,16),q$l(Me$7,24),q$l(we$9,24),q$l(Va$2,16))};static \u0275pipe=Yn$8({name:"transloco",type:n,pure:false})}return n})();var bt$b=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({})}return n})();function St$8(n){let a=[Ye$6(Pe$6),Ze$a(xe$6),qe$5(Ve$8),Ue$8(He$a)];return n.config&&a.push(Je$4(n.config)),n.loader&&a.push(We$7(n.loader)),a}function Je$4(n){return fo$3([{provide:A$b,useValue:Ee$7(n)}])}function We$7(n){return fo$3([{provide:ge$6,useClass:n}])}function Ye$6(n){return fo$3([{provide:me$9,useClass:n,deps:[A$b]}])}function Ue$8(n){return fo$3([{provide:be$9,useClass:n,deps:[A$b]}])}function Ze$a(n){return fo$3([{provide:ye$a,useClass:n}])}function qe$5(n){return fo$3([{provide:Te$9,useClass:n}])} 383var B$f=k$g("inline-flex transition-colors duration-200",{variants:{variant:{system:"text-text-subtle",info:"text-text-link-default",warning:"text-text-warning",success:"text-text-success",danger:"text-text-danger"},size:{sm:"text-base ml-1",md:"text-xl ml-2",lg:"text-2xl ml-3"},cursor:{pointer:"cursor-pointer",help:"cursor-help",default:"cursor-default"}},defaultVariants:{variant:"system",size:"md",cursor:"pointer"}}),K$f=(()=>{class r{constructor(){this.variant=X8("system"),this.size=X8("md"),this.text=X8(""),this.position=X8("above"),this.cursor=X8("pointer"),this.customIcon=X8(""),this.customClass=X8("",{alias:"class"}),this.computedClass=qd$1(()=>mo$2(B$f({variant:this.variant(),size:this.size(),cursor:this.cursor()}),this.customClass())),this.iconName=qd$1(()=>this.customIcon()||({warning:"heroExclamationTriangle",success:"heroCheckCircle",danger:"heroXCircle",info:"heroInformationCircle",system:"heroInformationCircle"}[this.variant()]??"heroInformationCircle"));}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=qS({type:r,selectors:[["mspot-tooltip"]],hostAttrs:[1,"inline-flex","items-center","justify-center"],inputs:{variant:[1,"variant"],size:[1,"size"],text:[1,"text"],position:[1,"position"],cursor:[1,"cursor"],customIcon:[1,"customIcon"],customClass:[1,"class","customClass"]},features:[cN([$$g({heroInformationCircle:L1,heroExclamationTriangle:u1,heroCheckCircle:F$f,heroXCircle:L5,heroQuestionMarkCircle:a5})])],decls:2,vars:5,consts:[["tooltipDir","matTooltip"],[3,"click","name","matTooltip","matTooltipPosition"]],template:function(e,s){if(e&1){let a=fM();ta$3(0,"ng-icon",1,0),Zv$1("click",function(){sh$1(a);let W=TM(1);return ah$1(W.toggle())}),Pd$1();}e&2&&(BM(s.computedClass()),jv$1("name",s.iconName())("matTooltip",s.text())("matTooltipPosition",s.position()));},dependencies:[le$9,mt$7],encapsulation:2});}}return r})();var O$g={required:()=>({key:"formErrors.required"}),minlength:({requiredLength:r})=>({key:"formErrors.minLength",params:{requiredLength:r}}),maxlength:({requiredLength:r,actualLength:i})=>({key:"formErrors.maxlength",params:{requiredLength:r,actualLength:i}}),maxArrayLength:({maxLength:r,actualLength:i})=>({key:"formErrors.maxArrayLength",params:{maxLength:r,actualLength:i}}),pattern:()=>({key:"formErrors.pattern"}),email:()=>({key:"formErrors.email"}),emailInvalid:()=>({key:"formErrors.emailInvalid"}),mailProviderInvalid:()=>({key:"formErrors.mailProviderInvalid"}),isNotANumber:()=>({key:"formErrors.isNotANumber"}),isNotPositiveWholeNumber:()=>({key:"formErrors.isNotPositiveWholeNumber"}),isNotInFuture:()=>({key:"formErrors.isNotInFuture"}),min:()=>({key:"formErrors.min"}),max:({max:r})=>({key:"formErrors.max",params:{max:r}}),urlTaken:()=>({key:"formErrors.urlTaken"}),nameTaken:()=>({key:"formErrors.nameTaken"}),invalidVideoProvider:()=>({key:"formErrors.invalidVideoProvider"}),urlInvalid:()=>({key:"formErrors.urlInvalid"}),urlSpecialCharactersInvalid:()=>({key:"formErrors.urlSpecialCharactersInvalid"}),url3WInvalid:()=>({key:"formErrors.url3WInvalid"}),urlInvalidHttp:()=>({key:"formErrors.urlInvalidHttp"}),mspotHostInvalid:()=>({key:"formErrors.mspotHostInvalid"}),hostnameInvalid:()=>({key:"formErrors.hostnameInvalid"}),wrongCName:()=>({key:"formErrors.wrongCName"}),customDomainMissingCname:()=>({key:"formErrors.customDomainMissingCname"}),customDomainWrongCnameTarget:({expectedCnameTarget:r})=>({key:"formErrors.customDomainWrongCnameTarget",params:{expectedCnameTarget:r}}),customDomainARecordPresent:()=>({key:"formErrors.customDomainARecordPresent"}),customDomainAaaaRecordPresent:()=>({key:"formErrors.customDomainAaaaRecordPresent"}),customDomainDnsLookupFailed:()=>({key:"formErrors.customDomainDnsLookupFailed"}),customDomainHostnameInUse:()=>({key:"formErrors.customDomainHostnameInUse"}),customDomainBunnyCertificatePreloadFailed:({providerMessage:r}={})=>({key:r?"formErrors.customDomainBunnyCertificatePreloadFailedWithDetails":"formErrors.customDomainBunnyCertificatePreloadFailed",params:{providerMessage:r}}),customDomainCloudflareRequestFailed:()=>({key:"formErrors.customDomainCloudflareRequestFailed"}),customDomainCloudflareHostnameBlocked:()=>({key:"formErrors.customDomainCloudflareHostnameBlocked"}),customDomainCloudflareActivationFailed:()=>({key:"formErrors.customDomainCloudflareActivationFailed"}),customDomainCloudflareValidationTimeout:()=>({key:"formErrors.customDomainCloudflareValidationTimeout"}),noPasswordMatch:()=>({key:"formErrors.noPasswordMatch"}),containsOtherCharacters:()=>({key:"formErrors.containsOtherCharacters"}),onlyValidPhoneCharacters:()=>({key:"formErrors.onlyValidPhoneCharacters"}),containsEmoji:()=>({key:"formErrors.containsEmoji"}),dateInvalid:()=>({key:"formErrors.dateInvalid"}),dateMustBeInFuture:()=>({key:"formErrors.dateMustBeInFuture"}),timeMustBeAtLeastTenMinutesInFuture:()=>({key:"formErrors.timeMustBeAtLeastTenMinutesInFuture"}),onlyWhitespace:()=>({key:"formErrors.onlyWhitespace"}),containsSpace:()=>({key:"formErrors.containsSpace"}
383),cannotHaveDuplicatedLinks:()=>({key:"formErrors.cannotHaveDuplicatedLinks"}),isNotEqualToValue:()=>({key:"formErrors.isNotEqualToValue"}),emailExists:()=>({key:"formErrors.emailExists"}),valueNotChanged:()=>({key:"formErrors.valueNotChanged"}),numberIsNegative:()=>({key:"formErrors.numberIsNegative"}),numberIsNegativeOrZero:()=>({key:"formErrors.numberIsNegativeOrZero"}),wrongPassword:()=>({key:"formErrors.wrongPassword"}),wrongUser:()=>({key:"formErrors.wrongUser"}),unknownError:()=>({key:"formErrors.unknownError"}),noVimeoLink:()=>({key:"formErrors.noVimeoLink"}),noYoutubeLink:()=>({key:"formErrors.noYoutubeLink"}),youtubeVimeo:()=>({key:"formErrors.youtubeVimeo"}),vatInvalid:()=>({key:"formErrors.vatInvalid"}),invalidHexColorCode:()=>({key:"formErrors.invalidHexColorCode"}),fontNotFound:()=>({key:"formErrors.fontNotFound"}),fontCheckFailed:()=>({key:"formErrors.fontCheckFailed"}),startsWith:r=>({key:"formErrors.startsWith",params:{startsWith:r}}),hasLinkInText:()=>({key:"formErrors.hasLinkInText"}),hasVariableInText:()=>({key:"formErrors.hasVariableInText"}),timestampsOutOfVideoRange:()=>({key:"formErrors.timestampsOutOfVideoRange"}),invalidPattern:()=>({key:"formErrors.invalidPattern"}),invalidGoogleMeetId:()=>({key:"admin.integrations.googleMeet.invalidMeetingIdFormat"}),invalidTimeFormat:()=>({key:"formErrors.invalidTimeFormat"}),jsonInvalid:()=>({key:"formErrors.jsonInvalid"}),schemaInvalid:({message:r})=>({key:"formErrors.schemaInvalid",params:{message:r}})},ir$7=(()=>{class r{constructor(){this._cdr=g$k(Va$2),this._translocoService=g$k(Ce$5),this._translationEpoch=YG(xI(this._translocoService.langChanges$,this._translocoService.events$.pipe(Pt$b(o=>o.type==="translationLoadSuccess"))).pipe(Ip$1(()=>this._cdr.markForCheck()),yp$1(o=>o+1,0)),{initialValue:0}),this._lastResult=null;}transform(o){let e=this._translationEpoch();return o===this._lastErr&&e===this._lastTranslationEpoch?this._lastResult:(this._lastErr=o,this._lastTranslationEpoch=e,this._lastResult=this._translateError(o),this._lastResult)}_translateError(o){if(!o)return null;let e=Object.keys(o)[0],s=O$g[e]&&O$g[e](o[e]),a=s.key,l=s.params;return this._translocoService.translate(a,l)}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275pipe=Yn$8({name:"errorObj",type:r,pure:false});}}return r})();var U$9=["*"];function q$c(i,h){if(i&1&&QM(0),i&2){let e=yM();Gd$1(" ",e.label()," ");}}function w$9(i,h){i&1&&EM(0);}function j$g(i,h){if(i&1&&Vv$1(0,"mspot-tooltip",4),i&2){let e=yM();jv$1("text",e.tooltip);}}function O$f(i,h){if(i&1&&(ta$3(0,"p",5),QM(1),Pd$1()),i&2){let e=yM();jv$1("id",e.subtitleId),uT(),Gd$1(" ",e.subtitle," ");}}var X$d=(()=>{class i{constructor(){this._cdr=g$k(Va$2),this._defaultId=U$c("mspot-checkbox"),this.subtitleId=U$c("mspot-checkbox-subtitle"),this.label=X8(""),this.trailing=X8(false),this.verticalAlignment=X8("center"),this.tabIndex=X8(0),this.indeterminate=X8(false),this.dataState=X8("default"),this.inputId=X8(null),this.ariaDescribedBy=X8(null),this.inheritFieldDescribedBy=X8(true,{transform:ni$7}),this.required=X8(false,{transform:ni$7}),this.labelDataCy=X8(void 0),this.value=false,this.noValueUpdate=false,this.valueChanged=new Ct$h,this.indeterminateChange=new Ct$h,this.id=qd$1(()=>this.inputId()??this._defaultId),this.disabled=false,this._onChange=()=>{},this._onTouched=()=>{};}get resolvedAriaDescribedBy(){let e=[this.ariaDescribedBy(),this.subtitle?this.subtitleId:null].filter(Boolean);return e.length?e.join(" "):null}set checked(e){this.value=!!e,this._cdr.markForCheck();}get checked(){return this.value}onIndicatorValueChanged(e){this.noValueUpdate||(this.value=e,this._onChange(e),this.valueChanged.emit(e),this._cdr.markForCheck());}onIndicatorBlur(){this._onTouched();}writeValue(e){this.value=!!e,this._cdr.markForCheck();}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e,this._cdr.markForCheck();}static{this.\u0275fac=function(a){return new(a||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-checkbox"]],hostAttrs:[1,"relative","flex","gap-2.5"],hostVars:6,hostBindings:function(a,t){a&2&&iD("items-center",t.verticalAlignment()==="center")("items-start",t.verticalAlignment()==="start")("flex-row-reverse",t.trailing());},inputs:{label:[1,"label"],trailing:[1,"trailing"],verticalAlignment:[1,"verticalAlignment"],tabIndex:[1,"tabIndex"],indeterminate:[1,"indeterminate"],dataState:[1,"dataState"],inputId:[1,"inputId"],ariaDescribedBy:[1,"ariaDescribedBy"],inheritFieldDescribedBy:[1,"inheritFieldDescribedBy"],required:[1,"required"],labelDataCy:[1,"labelDataCy"],value:"value",subt
383itle:"subtitle",tooltip:"tooltip",linkedValue:"linkedValue",noValueUpdate:"noValueUpdate",dataCy:"dataCy",disabled:"disabled",checked:"checked"},outputs:{valueChanged:"valueChanged",indeterminateChange:"indeterminateChange"},features:[cN([{provide:E$f,useExisting:Qi$3(()=>i),multi:true}])],ngContentSelectors:U$9,decls:8,vars:16,consts:[[3,"valueChange","indeterminateChange","blurred","value","disabled","indeterminate","dataState","inputId","tabIndex","required","inheritFieldDescribedBy","ariaDescribedBy","dataCy","noValueUpdate"],[1,"min-w-0","text-sm"],[1,"flex"],[1,"text-text-strong","flex","cursor-pointer","select-none",3,"for"],["size","sm",3,"text"],[1,"text-text-subtle","text-xs","leading-4",3,"id"]],template:function(a,t){a&1&&(DM(),ta$3(0,"mspot-checkbox-indicator",0),Zv$1("valueChange",function(m){return t.onIndicatorValueChanged(m)})("indeterminateChange",function(m){return t.indeterminateChange.emit(m)})("blurred",function(){return t.onIndicatorBlur()}),Pd$1(),ta$3(1,"div",1)(2,"div",2)(3,"label",3),eM$1(4,q$c,1,1)(5,w$9,1,0),Pd$1(),eM$1(6,j$g,1,1,"mspot-tooltip",4),Pd$1(),eM$1(7,O$f,2,2,"p",5),Pd$1()),a&2&&(jv$1("value",t.value)("disabled",t.disabled)("indeterminate",t.indeterminate())("dataState",t.dataState())("inputId",t.id())("tabIndex",t.tabIndex())("required",t.required())("inheritFieldDescribedBy",t.inheritFieldDescribedBy())("ariaDescribedBy",t.resolvedAriaDescribedBy)("dataCy",t.dataCy??null)("noValueUpdate",t.noValueUpdate),uT(3),jv$1("for",t.id()),Pv$1("data-cy",t.labelDataCy()??null),uT(),tM$1(t.label()?4:5),uT(2),tM$1(t.tooltip?6:-1),uT(),tM$1(t.subtitle?7:-1));},dependencies:[ve$a,K$f],encapsulation:2});}}return i})();var n$c=(()=>{class i{transform(t){return !t?.dirty||t?.invalid||t?.pending}static{this.\u0275fac=function(r){return new(r||i)};}static{this.\u0275pipe=Yn$8({name:"formValid",type:i,pure:false});}}return i})();var fu$1=x$o((G,X)=>{(function(u,D){typeof G=="object"&&typeof X<"u"?X.exports=D():typeof define=="function"&&define.amd?define(D):(u=typeof globalThis<"u"?globalThis:u||self).dayjs=D();})(G,function(){"use strict";var u=1e3,D=6e4,n=36e5,E="millisecond",C="second",g="minute",m="hour",s="day",w="week",v="month",x="quarter",_="year",L="date",tu="Invalid Date",pu=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,gu={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(a){var F=["th","st","nd","rd"],e=a%100;return "["+a+(F[(e-20)%10]||F[e]||F[0])+"]"}},Y=function(a,F,e){var r=String(a);return !r||r.length>=F?a:""+Array(F+1-r.length).join(e)+a},_u={s:Y,z:function(a){var F=-a.utcOffset(),e=Math.abs(F),r=Math.floor(e/60),t=e%60;return (F<=0?"+":"-")+Y(r,2,"0")+":"+Y(t,2,"0")},m:function a(F,e){if(F.date()<e.date())return -a(e,F);var r=12*(e.year()-F.year())+(e.month()-F.month()),t=F.clone().add(r,v),i=e-t<0,l=F.clone().add(r+(i?-1:1),v);return +(-(r+(e-t)/(i?t-l:l-t))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return {M:v,y:_,w,d:s,D:L,h:m,m:g,s:C,ms:E,Q:x}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},S="en",b={};b[S]=gu;var Fu="$isDayjsObject",J=function(a){return a instanceof q||!(!a||!a[Fu])},H=function a(F,e,r){var t;if(!F)return S;if(typeof F=="string"){var i=F.toLowerCase();b[i]&&(t=i),e&&(b[i]=e,t=i);var l=F.split("-");if(!t&&l.length>1)return a(l[0])}else {var d=F.name;b[d]=F,t=d;}return !r&&t&&(S=t),t||!r&&S},h=function(a,F){if(J(a))return a.clone();var e=typeof F=="object"?F:{};return e.date=a,e.args=arguments,new q(e)},o=_u;o.l=H,o.i=J,o.w=function(a,F){return h(a,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var q=(function(){function a(e){this.$L=H(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[Fu]=!0;}var F=a.prototype;return F.parse=function(e){this.$d=(function(r){var t=r.date,i=r.utc;if(t===null)return new Date(NaN);if(o.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var l=t.match(pu);if(l){var d=l[2]-1||0,c=(l[7]||"0").substring(0,3);return i?new Date(Date.UTC(l[1],d,l[3]||1,l[4]||0,l[5]||0,l[6]||0,c)):new Date(l[1],d,l[3]||1,l[4]||0,l[5]||0,l[6]||0,c)}}return new Date(t)})(e),this.init();},F.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds();},F.$utils=function(){return o},F.isValid=function(){return this.$d.toString()!==tu},F.isSame=function(e,r){var t=h(e);return this.startOf(r)<=t&&t<=this.endOf(r)},F.isAfter=function(e,r){return h(e)<this.startOf(r)},F.isBefore=function(e,r){return this.endOf(r)<h(e)},F.$g=function(e,r,t){return o.u(e)?this[r]:this.set(t,e)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(e,r){var t=this,i=!!o.u(r)||r,l=o.p(e),d=function(M,$){var z=o.w(t.$u?Date.UTC(t.$y,$,M):new Date(t.$y,$,M),t);return i?z:z.endOf(s)},c=function(M,$){return o.w(t.toDate()[M].apply(t.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),t)},A=this.$W,p=this.$M,y=this.$D,Z="set"+(this.$u?"UTC":"");switch(l){case _:return i?d(1,0):d(31,11);case v:return i?d(1,p):d(0,p+1);case w:var I=this.$locale().weekStart||0,P=(A<I?A+7:A)-I;return d(i?y-P:y+(6-P),p);case s:case L:return c(Z+"Hours",0);case m:return c(Z+"Minutes",1);case g:return c(Z+"Seconds",2);case C:return c(Z+"Milliseconds",3);default:return this.clone()}},F.endOf=function(e){return this.startOf(e,!1)},F.$set=function(e,r){var t,i=o.p(e),l="set"+(this.$u?"UTC":""),d=(t={},t[s]=l+"Date",t[L]=l+"Date",t[v]=l+"Month",t[_]=l+"FullYear",t[m]=l+"Hours",t[g]=l+"Minutes",t[C]=l+"Seconds",t[E]=l+"Milliseconds",t)[i],c=i===s?this.$D+(r-this.$W):r;if(i===v||i===_){var A=this.clone().set(L,1);
383A.$d[d](c),A.init(),this.$d=A.set(L,Math.min(this.$D,A.daysInMonth())).$d;}else d&&this.$d[d](c);return this.init(),this},F.set=function(e,r){return this.clone().$set(e,r)},F.get=function(e){return this[o.p(e)]()},F.add=function(e,r){var t,i=this;e=Number(e);var l=o.p(r),d=function(p){var y=h(i);return o.w(y.date(y.date()+Math.round(p*e)),i)};if(l===v)return this.set(v,this.$M+e);if(l===_)return this.set(_,this.$y+e);if(l===s)return d(1);if(l===w)return d(7);var c=(t={},t[g]=D,t[m]=n,t[C]=u,t)[l]||1,A=this.$d.getTime()+e*c;return o.w(A,this)},F.subtract=function(e,r){return this.add(-1*e,r)},F.format=function(e){var r=this,t=this.$locale();if(!this.isValid())return t.invalidDate||tu;var i=e||"YYYY-MM-DDTHH:mm:ssZ",l=o.z(this),d=this.$H,c=this.$m,A=this.$M,p=t.weekdays,y=t.months,Z=t.meridiem,I=function($,z,R,U){return $&&($[z]||$(r,i))||R[z].slice(0,U)},P=function($){return o.s(d%12||12,$,"0")},M=Z||function($,z,R){var U=$<12?"AM":"PM";return R?U.toLowerCase():U};return i.replace($u,function($,z){return z||(function(R){switch(R){case "YY":return String(r.$y).slice(-2);case "YYYY":return o.s(r.$y,4,"0");case "M":return A+1;case "MM":return o.s(A+1,2,"0");case "MMM":return I(t.monthsShort,A,y,3);case "MMMM":return I(y,A);case "D":return r.$D;case "DD":return o.s(r.$D,2,"0");case "d":return String(r.$W);case "dd":return I(t.weekdaysMin,r.$W,p,2);case "ddd":return I(t.weekdaysShort,r.$W,p,3);case "dddd":return p[r.$W];case "H":return String(d);case "HH":return o.s(d,2,"0");case "h":return P(1);case "hh":return P(2);case "a":return M(d,c,!0);case "A":return M(d,c,!1);case "m":return String(c);case "mm":return o.s(c,2,"0");case "s":return String(r.$s);case "ss":return o.s(r.$s,2,"0");case "SSS":return o.s(r.$ms,3,"0");case "Z":return l}return null})($)||l.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(e,r,t){var i,l=this,d=o.p(r),c=h(e),A=(c.utcOffset()-this.utcOffset())*D,p=this-c,y=function(){return o.m(l,c)};switch(d){case _:i=y()/12;break;case v:i=y();break;case x:i=y()/3;break;case w:i=(p-A)/6048e5;break;case s:i=(p-A)/864e5;break;case m:i=p/n;break;case g:i=p/D;break;case C:i=p/u;break;default:i=p;}return t?i:o.a(i)},F.daysInMonth=function(){return this.endOf(v).$D},F.$locale=function(){return b[this.$L]},F.locale=function(e,r){if(!e)return this.$L;var t=this.clone(),i=H(e,r,!0);return i&&(t.$L=i),t},F.clone=function(){return o.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},a})(),ru=q.prototype;return h.prototype=ru,[["$ms",E],["$s",C],["$m",g],["$H",m],["$W",s],["$M",v],["$y",_],["$D",L]].forEach(function(a){ru[a[1]]=function(F){return this.$g(F,a[0],a[1])};}),h.extend=function(a,F){return a.$i||(a(F,q,h),a.$i=!0),h},h.locale=H,h.isDayjs=J,h.unix=function(a){return h(1e3*a)},h.en=b[S],h.Ls=b,h.p={},h});});var xu$1=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[A-Za-z]{2,4}(?![a-zA-Z0-9._-])(:[0-9]+)?(/.*)?"),Vu$1=new RegExp("([a-zA-Z0-9]+://)([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?((?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(:[0-9]+)?(/.*)?"),Lu$1=new RegExp("([a-zA-Z0-9]+://)([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?localhost(:[0-9]+)?(/.*)?","i"),zu$1=new RegExp("([a-zA-Z0-9]+://)([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?\\[([0-9a-fA-F:]+)\\](:[0-9]+)?(/.*)?"),Cu$1=u=>xu$1.test(u)||Vu$1.test(u)||Lu$1.test(u)||zu$1.test(u);function Eu$1(u){return /^mailto:[a-zA-Z0-9äöüÃÃÃÃ_+]+([.-]?[a-zA-Z0-9äöüÃÃÃÃ_+]+)*@[a-zA-Z0-9-]+([.-]?[a-zA-Z0-9äöüÃÃÃÃ-]+)*(\.[a-zA-Z]{2,})+$/.test(u)}var ou$1=/^(([^<>()[\].,;:\s@"ââ]+(\.[^<>()[\].,;:\s@"ââ]+)*)|(".+"))@(([^<>()[\].,;:\s@"ââ]+\.)+[^<>()[\].,;:\s@"ââ]{2,})$/i;var Du$1=A$j(fu$1());var du$1=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uD
383F7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Tu$2={require_tld:true,allow_underscores:false,allow_trailing_dot:false,allow_numeric_tld:false,allow_wildcard:false,ignore_max_length:false};function uu$1(u,D){D=r$d(r$d({},Tu$2),D),D.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),D.allow_wildcard===true&&u.indexOf("*.")===0&&(u=u.substring(2));let n=u.split("."),E=n[n.length-1];return D.require_tld&&(n.length<2||!D.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(E)||/\s/.test(E))||!D.allow_numeric_tld&&/^\d+$/.test(E)?false:n.every(C=>!(C.length>63&&!D.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(C)||/[\uff01-\uff5e]/.test(C)||/^-|-$/.test(C)||
383!D.allow_underscores&&/_/.test(C)))}var cu$1="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",N$6=`(${cu$1}[.]){3}${cu$1}`,Nu$1=new RegExp(`^${N$6}$`),B$e="(?:[0-9a-fA-F]{1,4})",bu$1=new RegExp(`^((?:${B$e}:){7}(?:${B$e}|:)|(?:${B$e}:){6}(?:${N$6}|:${B$e}|:)|(?:${B$e}:){5}(?::${N$6}|(:${B$e}){1,2}|:)|(?:${B$e}:){4}(?:(:${B$e}){0,1}:${N$6}|(:${B$e}){1,3}|:)|(?:${B$e}:){3}(?:(:${B$e}){0,2}:${N$6}|(:${B$e}){1,4}|:)|(?:${B$e}:){2}(?:(:${B$e}){0,3}:${N$6}|(:${B$e}){1,5}|:)|(?:${B$e}:){1}(?:(:${B$e}){0,4}:${N$6}|(:${B$e}){1,6}|:)|(?::((?::${B$e}){0,5}:${N$6}|(?::${B$e}){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?$`);function W$e(u,D){return D?D===4?Nu$1.test(u):D===6?bu$1.test(u):false:W$e(u,4)||W$e(u,6)}var Iu$1={protocols:["http","https","ftp"],require_tld:true,require_protocol:false,require_host:true,require_port:false,require_valid_protocol:true,allow_underscores:false,allow_trailing_dot:false,allow_protocol_relative_urls:false,allow_fragments:true,allow_query_components:true,validate_length:true},Mu$1=/^\[([^\]]+)\](?::([0-9]+))?$/;function Ou$1(u){return Object.prototype.toString.call(u)==="[object RegExp]"}function Bu$1(u,D){for(let n=0;n<D.length;n++){let E=D[n];if(u===E||Ou$1(E)&&E.test(u))return true}return false}function hu$1(u,D){if(!u||/[\s<>]/.test(u)||u.indexOf("mailto:")===0||(D=r$d(r$d({},Iu$1),D),D.validate_length&&u.length>=2083)||!D.allow_fragments&&u.includes("#")||!D.allow_query_components&&(u.includes("?")||u.includes("&")))return false;let n,E,C,g,m,s,w;if(s=u.split("#"),u=s.shift()||"",s=u.split("?"),u=s.shift()||"",s=u.split("://"),s.length>1){if(n=s.shift()?.toLowerCase()||"",D.require_valid_protocol&&D.protocols.indexOf(n)===-1)return false}else {if(D.require_protocol)return false;if(u.slice(0,2)==="//"){if(!D.allow_protocol_relative_urls)return false;s[0]=u.slice(2);}}if(u=s.join("://"),u==="")return false;if(s=u.split("/"),u=s.shift()||"",u===""&&!D.require_host)return true;if(s=u.split("@"),s.length>1){if(D.disallow_auth||s[0]===""||(E=s.shift()||"",E.indexOf(":")>=0&&E.split(":").length>2))return false;let[_,L]=E.split(":");if(_===""&&L==="")return false}let v=s.join("@")||"";m=null,w=null;let x=v.match(Mu$1);if(x?(C="",w=x[1],m=x[2]||null):(s=v.split(":"),C=s.shift(),s.length&&(m=s.join(":"))),m!==null&&m.length>0){if(g=parseInt(m,10),!/^[0-9]+$/.test(m)||g<=0||g>65535)return false}else if(D.require_port)return false;return D.host_whitelist?Bu$1(C||"",D.host_whitelist):C===""&&!D.require_host?true:!(!W$e(C||"")&&!uu$1(C||"",D)&&(!w||!W$e(w,6))||(C=C||w,D.host_blacklist&&Bu$1(C||"",D.host_blacklist)))}function V$b(u,D){return hu$1(u,s$e(r$d({},D),{require_protocol:true}))}function k$d(u,D){return hu$1(u,s$e(r$d({},D),{require_protocol:false}))}function Au$1(u){let D=u.trim();return !D||V$b(D)||D.split(/[/?#]/)[0].includes("@")?D:k$d(D)?`https://${D}`:D}var O$e={notOnlyWhitespace:u=>!u||!u.value||/\S/.test(u.value)?null:{onlyWhitespace:true},onlyTrue:u=>u?u.value===true?null:{isNotTrue:true}:null,numberValidator:u=>u&&isNaN(Number(u.value))?{isNotANumber:true}:null,hexColorValidator:u=>!u||!u.value||/^#[0-9A-F]{6,8}$/i.test(u.value)?null:{invalidHexColorCode:true},positiveNumberZeroValidator:u=>u?isNaN(Number(u.value))?{isNotANumber:true}:Number(u.value)<0?{numberIsNegative:true}:null:null,positiveNumberValidator:u=>u?isNaN(Number(u.value))?{isNotANumber:true}:Number(u.value)<1?{numberIsNegativeOrZero:true}:null:null,positiveWholeNumberValidator:u=>!u||!u.value||new RegExp("^[0-9]*$").test(u.value)?null:{isNotPositiveWholeNumber:true},dateInFuture:u=>u&&new Date>=u.value?{isNotInFuture:true}:null,bracketsClosed:u=>{if(!u||!u.value)return null;let D=0;for(let n of u.value)n==="{"?D+=1:n==="}"&&(D-=1);return D!==0?{bracketsNotMatching:true}:null},urlValidator:u=>{if(!u||!u.value)return null;let D=u.value.trim();return V$b(D)||k$d(D)?null:{urlInvalid:true}},httpUrlValidator:u=>!u||!u.value||V$b(Au$1(u.value))?null:{urlInvalid:true},url3WValidator:u=>{if(!u||!u.value)return null;let D=u.value.trim();return D.startsWith("www.")||D.startsWith("http://www.")||D.startsWith("https://www.")||/^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(D)||/^https:\/\/[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(D)?null:{url3WInvalid:true}},urlSpecialCharactersValidator:u=>{if(!u||!u.value)return null;let D=u.value.trim();return /[_]/.test(D)?{urlSpecialCharactersInvalid:true}:null},urlValidatorWithMailTo:u=>{if(!u||!u||!u.value)return null;let D=V$b(u.value);return D||(D=Eu$1(u.value)),D?null:{urlInvalid:true}},mspotHostValidator:u=>!u||!u.value||/^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$/.test(u.value)?null:{mspotHostInvalid:true},hostnameValidator:u=>!u||!u.value||new RegExp("^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$").test(u.value)?null:{hostnameInvalid:true},urlRegexUmlauteValidator:u=>!u||!u.value||V$b(u.value)?null:V$b(u.value)?{urlInvalidHttp:true}:{urlInvalid:true},urlRegexValidator:u=>{if(!u||!u.value)return null;let D=new RegExp("(https?://[\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?"),n=new RegExp("(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?");return D.test(u.value)?null:n.test(u.value)?{urlInvalidHttp:true}:{urlInvalid:true}},urlRegexValidatorWithoutProtocol:u=>{if(!u||!u.value)return null;if(!k$d(u.value,{require_protocol:false}))return {urlInvalid:true};let n=u.value;return V$b(`https://${n}`)?null:{urlInvalid:true}},vimeoValidator:u=>u?u.value.startsWith("https://vimeo.com/")?null:{noVimeoLink:true}:null,youtubeValidator:u=>u?u.value.startsWith("https://youtube.com/")||u.value.startsWith("https://youtu.be/")||u.value.startsWith("https://www.youtube.com/")?null:{noYoutubeLink:true}:null,youtubeVimeoValidator:u=>u&&(u.value.startsWith("https://youtube.com")||u.value.startsWith("https://vimeo.com"))?{youtubeVimeo:true}:null,emailValidator:(u=false)=>D=>{if(!D||!D.value)return null;let n=D.value.replace(/\s/g,"");return (u?ve$b.string().email().safeParse(n).success:ou$1.test(n))?null:{emailInvalid:true}},cannotContainSpace:u=>u&&/\s/.test(u.value)?{containsSpace:true}:null,createIsEqualToValue:u=>D=>{let n=D.value;
383return !n||u.toLocaleLowerCase()===n.toLocaleLowerCase()?null:{isNotEqualToValue:true}},createUrlShouldBeUnique:(u,D)=>n=>{let E=n.value;return E?D&&E===D?yI({valueNotChanged:true}):Qe$f(500).pipe(Kf$1(()=>u.getByUrl(E)),$f$1(),st$c(C=>C.length===0?null:{urlTaken:true})):yI(null)},passwordsMatch:u=>!u.parent||!u.parent.get("password")?null:u.parent.get("password")?.value!==u.value?{noPasswordMatch:true}:null,onlyLettersAndNumbers:u=>!u||/^[a-z0-9]+$/i.test(u.value)?null:{containsOtherCharacters:true},onlyPhoneNumberCharacters:u=>!u||u.value===""||!u.value||/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s./0-9]*$/g.test(u.value)?null:{onlyValidPhoneCharacters:true},containsEmoji:u=>!u||u.value===""||!u.value||!du$1().test(u.value)?null:{containsEmoji:true},httpsOnlyValidator:u=>!u||!u.value||new RegExp("(https://[\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?").test(u.value)?null:{urlInvalid:true},endNotBeforeStart:u=>D=>{let n=D.get(u.startDateKey)?.value,E=D.get(u.startTimeKey)?.value,C=D.get(u.endDateKey)?.value,g=D.get(u.endTimeKey)?.value;if(n==null||E==null||C==null||g==null)return null;let[m,s]=E.split(":").map(Number),[w,v]=g.split(":").map(Number),x=(0, Du$1.default)(n).hour(m).minute(s).second(0),_=(0, Du$1.default)(C).hour(w).minute(v).second(0);return !x.isValid()||!_.isValid()||_.isBefore(x)?{endBeforeStart:true}:null},timeFormatValidator:u=>{if(!u||!u.value)return null;let D=u.value.trim(),n=/^([0-9]{1,2}):([0-9]{2})$/.exec(D);if(!n)return {invalidTimeFormat:true};let E=Number(n[1]),C=Number(n[2]);return E>23||C>59?{invalidTimeFormat:true}:null},maxArrayLength:u=>D=>{if(!D)return null;let n=D.value;return Array.isArray(n)&&n.length>u?{maxArrayLength:{maxLength:u,actualLength:n.length}}:null}};var Zu$1=/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,j$f=u=>{if(!u||!u.value)return null;let D=String(u.value).replace(Zu$1,"");return Cu$1(D)?{hasLinkInText:u.value}:null};var mu$1=["",[Ce$8.required,O$e.notOnlyWhitespace,Ce$8.minLength(1),Ce$8.maxLength(60)]],Su$1=["",[...mu$1[1],j$f]],Pu$1=["",[Ce$8.maxLength(60)]],Ru$1=["",[Ce$8.maxLength(220)]],Wu$1=["",[Ce$8.required,Ce$8.maxLength(220)]],eu$1=u=>["",[Ce$8.required,O$e.notOnlyWhitespace,Ce$8.maxLength(u)]],ku$1=[false,[Ce$8.required]],Hu$1=["",[Ce$8.maxLength(500)]],qu$1=["",[Ce$8.maxLength(3e3)]],Uu=["",[Ce$8.maxLength(5e3)]],ju$1=["",[Ce$8.required,O$e.emailValidator()]],Yu$1=["",[Ce$8.required,Ce$8.minLength(8),Ce$8.maxLength(60)]],Ju$1=["",[Ce$8.required,Ce$8.minLength(6),Ce$8.maxLength(60)]],vu$1=["",[Ce$8.required,O$e.notOnlyWhitespace,Ce$8.minLength(1),Ce$8.maxLength(100)]],Ku$1=["",[...vu$1[1],j$f]],Qu$1=["",[O$e.notOnlyWhitespace,Ce$8.minLength(1),Ce$8.maxLength(60),j$f]],Gu$1=["",[Ce$8.maxLength(20),Ce$8.minLength(7),O$e.onlyPhoneNumberCharacters]],Xu$1={isValid:u=>u.invalid||u.pending||!u.dirty,requiredMaxLengthField:eu$1,BooleanField:ku$1,DescField:Hu$1,LongField:Ru$1,LongRequiredField:Wu$1,ShortField:mu$1,ShortFieldOpt:Pu$1,MaxField:Uu,ContentField:qu$1,TitleField:vu$1,TitleFieldNoLinks:Ku$1,PwaShortname:eu$1(12),PwaName:eu$1(45),ShortFieldNoHttpLinks:Su$1,NameField:Qu$1,EmailField:ju$1,PasswordField:Yu$1,PhoneField:Gu$1,PasswordClientField:Ju$1},zD=Object.freeze(Xu$1); 384function n$b(r){return r?Array.isArray(r)?r.filter(Boolean).join(" "):r.trim():""}var j$e=co$2({extend:{theme:{text:["13","15"]}}}),L$b=["relative","inline-flex","shrink-0","items-center","justify-center","border","border-transparent","rounded-lg","font-medium","tracking-normal","leading-none","whitespace-nowrap","transition","duration-150","active:scale-[0.97]","data-[disabled=true]:active:scale-100","data-[loading=true]:active:scale-100","focus:outline-none","focus-visible:[box-shadow:0_0_0_2px_var(--backgrounds-surface-raised),0_0_0_4px_var(--borders-focus-default)]","disabled:opacity-100","data-[disabled=true]:cursor-not-allowed","data-[loading=true]:cursor-wait"],V$a={xs:"h-6 gap-1 px-2 text-xs [--mspot-button-spinner-size:14px] [&_[data-button-icon]]:size-3.5",sm:"h-8 gap-1.5 px-3 text-13 [--mspot-button-spinner-size:14px] [&_[data-button-icon]]:size-4",md:"h-9 gap-2 px-5 text-sm [--mspot-button-spinner-size:16px] [&_[data-button-icon]]:size-4",lg:"h-10 gap-2 px-6 text-15 [--mspot-button-spinner-size:18px] [&_[data-button-icon]]:size-5",xl:"h-12 gap-2.5 px-6 text-base [--mspot-button-spinner-size:20px] [&_[data-button-icon]]:size-5"},F$b={xs:"size-6 p-0 [--mspot-button-spinner-size:14px] [&_[data-button-icon]]:size-3.5",sm:"size-8 p-0 [--mspot-button-spinner-size:14px] [&_[data-button-icon]]:size-4",md:"size-9 p-0 [--mspot-button-spinner-size:16px] [&_[data-button-icon]]:size-4",lg:"size-10 p-0 [--mspot-button-spinner-size:18px] [&_[data-button-icon]]:size-5",xl:"size-12 p-0 [--mspot-button-spinner-size:20px] [&_[data-button-icon]]:size-5"},R$8=[{variant:"primary",color:"default",class:"bg-backgrounds-fill-brand-strong text-text-inverse hover:bg-backgrounds-fill-brand-strongHovered focus-visible:bg-backgrounds-fill-brand-strongHovered active:bg-backgrounds-fill-brand-strongPressed [--mspot-button-spinner-color:var(--text-inverse)]"},{variant:"primary",color:"danger",class:"bg-backgrounds-fill-danger-strong text-text-inverse hover:bg-backgrounds-fill-danger-strongHovered focus-visible:bg-backgrounds-fill-danger-strongHovered active:bg-backgrounds-fill-danger-strongPressed [--mspot-button-spinner-color:var(--text-inverse)]"},{variant:"secondary",color:"default",class:"border-borders-secondary bg-backgrounds-fill-neutral-subtle text-text-strong hover:border-borders-secondaryHover hover:bg-backgrounds-fill-neutral-subtleHovered focus-visible:border-borders-secondaryHover focus-visible:bg-backgrounds-fill-neutral-subtleHovered active:bg-backgrounds-fill-neutral-subtlePressed active:text-text-default [--mspot-button-spinner-color:var(--text-strong)]"},{variant:"secondary",color:"danger",class:"border-borders-danger bg-transparent text-text-danger hover:bg-backgrounds-fill-danger-subtle hover:text-text-dangerHover focus-visible:bg-backgrounds-fill-danger-subtle focus-visible:text-text-dangerHover active:border-borders-dangerSubtle active:bg-backgrounds-fill-danger-hovered active:text-text-dangerHover [--mspot-button-spinner-color:var(--text-danger)]"},{variant:"subtle",color:"default",class:"bg-transparent text-text-strong hover:bg-backgrounds-fill-neutral-subtleHovered hover:text-text-default focus-visible:bg-backgrounds-fill-neutral-subtleHovered active:bg-backgrounds-fill-neutral-subtlePressed active:text-text-subtle [--mspot-button-spinner-color:var(--text-strong)]"},{variant:"subtle",color:"danger",class:"bg-transparent text-text-danger hover:bg-backgrounds-fill-danger-subtle hover:text-text-dangerHover focus-visible:bg-backgrounds-fill-danger-subtle focus-visible:text-text-dangerHover active:bg-backgrounds-fill-danger-hovered active:text-text-dangerHover [--mspot-button-spinner-color:var(--text-danger)]"},{variant:"link",color:"default",class:"border-0 bg-transparent text-text-selected hover:text-text-linkPressed focus-visible:text-text-linkPressed active:text-text-linkPressed [--mspot-button-spinner-color:var(--text-selected)]"},{variant:"link",color:"danger",class:"border-0 bg-transparent text-text-danger hover:text-text-dangerHover focus-visible:text-text-dangerHover active:text-text-dangerHover [--mspot-button-spinner-color:var(--text-danger)]"}],A$a=[{disabled:true,variant:"primary",class:"bg-backgrounds-fill-neutral-disabled text-text-disabled hover:bg-backgrounds-fill-neutral-disabled active:bg-backgrounds-fill-neutral-disabled [--mspot-button-spinner-color:var(--text-disabled)]"},{disabled:true,variant:"secondary",class:"border-borders-disabled bg-transparent text-text-disabled hover:border-borders-disabled hover:bg-transparent hover:text-text-disabled active:border-borders-disabled active:bg-transparent active:text-text-disabled [--mspot-button-spinner-color:var(--text-disabled)]"},{disabled:true,variant:"subtle",class:"bg-transparent text-text-disabled hover:bg-transparent hover:text-text-disabled active:bg-transparent active:text-text-disabled [--mspot-button-spinner-color:var(--text-disabled)]"},{disabled:true,variant:"link",class:"border-0 bg-transparent text-text-disabled hover:bg-transparent hover:text-text-disabled active:bg-transparent active:text-text-disabled [--mspot-button-spinner-color:var(--text-disabled)]"}];function H$b(t,g={}){return k$g(L$b,{variants:{variant:{primary:"",secondary:"",subtle:"",link:""},color:{default:"",danger:""},size:t,disabled:{false:"",true:""}},compoundVariants:[...R$8,...g.linkPadding?[{variant:"link",class:"px-1"}]:[],...A$a],defaultVariants:{variant:"secondary",color:"default",size:"md",disabled:false}})}var U$8=H$b(V$a,{linkPadding:true}),K$e=H$b(F$b);function O$d(t={}){let g=t.iconOnly?K$e:U$8;return j$e(g({variant:t.variant,color:t.color,size:t.size,disabled:t.disabled}),t.className)}var E$b=[[["","data-button-icon","",3,"data-button-icon","trailing"]],"*",[["","data-button-icon","trailing"]]],P$8=["[data-button-icon]:not([data-button-icon='trailing'])","*","[data-button-icon='trailing']"],S$d=(()=>{class t{constructor(){this._elementRef=g$k(gt$f),this._isButton=this._elementRef.nativeElement.tagName==="BUTTON",this._interactionDisabled=qd$1(()=>this.disabled()||this.loading()),this._computedClass=qd$1(()=>O$d({variant:this.variant(),color:this.color(),size:this.size(),disabled:this.disabled()&&!this.loading(),iconOnly:this._iconOnly,className:this.customClass()})),this._inactiveInteractionCaptureEffect=l3(n=>{let i=this._elementRef.nativeElement,e=p=>this._preventInactiveClick(p),D=p=>this._preventInactiveKeydown(p);i.addEventListener("click",e,{capture:true}),i.addEventListener("keydown",D,{capture:true}),n(()=>{i.removeEventListener("click",e,{capture:true}),i.removeEventListener("keydown",D,{capture:true});});});}get _hostClass(){return this._computedClass()}get _ariaBusy(){return this.loading()?"true":null}get _ariaDisabled(){return !this._isButton&&this._interactionDisabled()?"true":null}get _dataDisabled(){return this.disabled()&&!this.loading()?"true":null}get _dataLoading(){return this.loading()?"true":null}get _inert(){return !this._isButton&&this._interactionDisabled()?"":null}get _nativeDisabled(){return this._isButton&&this._interactionDisabled()?"":null}get _nativeTabIndex(){return !this._isButton&&this._interactionDisabled()?"-1":this.tabIndex()}_preventInactiveClick(n){this._interactionDisabled()&&(n.preventDefault(),n.stopImmediatePropagation());}_preventInactiveKeydown(n){!this._isButton&&this._interactionDisabled()&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),n.stopImmediatePropagation());}focus(n){this._elementRef.nativeElement.focus(n);}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275dir=mt$d({type:t,hostVars:9,hostBindings:function(i,e){i&2&&(Pv$1("aria-busy",e._ariaBusy)("aria-disabled",e._ariaDisabled)("data-disabled",e._dataDisabled)("data-loading",e._dataLoading)("inert",e._inert)("disabled",e._nativeDisabled)("tabindex",e._nativeTabIndex),BM(e._hostClass));}});}}return t})(),q$b=(()=>{class t extends S$d{constructor(){super(...arguments),this.customClass=X8("",{alias:"class",transform:n$b}),this.variant=X8("secondary"),this.color=X8("default"),this.size=X8("md"),this.loading=X8(false,{transform:ni$7}),this.disabled=X8(false,{transform:ni$7}),this.tabIndex=X8(null,{alias:"tabindex"}),this.leadingContent=X8(null),this.labelContent=X8(null),this.trailingContent=X8(null),this._iconOnly=false;}static{this.\u0275fac=(()=>{let n;return function(e){return (n||(n=Wg$1(t)))(e||t)}})();}static{this.\u0275cmp=qS({type:t,selectors:[["button","mspot-button",""],["a","mspot-button",""]],inputs:{customClass:[1,"class","customClass"],variant:[1,"variant"],color:[1,"color"],size:[1,"size"],loading:[1,"loading"],disabled:[1,"disabled"],tabIndex:[1,"tabindex","tabIndex"],leadingContent:[1,"leadingContent"],labelContent:[1,"labelContent"],trailingContent:[1,"trailingContent"]},features:[pv$1],ngContentSelectors:P$8,decls:10,vars:9,consts:[["data-mspot-button-content","",1,"inline-flex","min-w-0","max-w-full","items-center","justify-center","gap-[inherit]","transition-opacity","duration-150","[&_[data-button-icon]]:shrink-0"],[3,"ngTemplateOutlet"],["data-mspot-button-label","",1,"block","min-w-0","overflow-hidden","text-ellipsis","whitespace-nowrap"],["data-mspot-button-spinner-container","",1,"pointer-events-none","absolute","
384inset-0","flex","items-center","justify-center"],["data-mspot-button-spinner","","aria-hidden","true",1,"size-[var(--mspot-button-spinner-size)]","animate-spin","rounded-full","border-2","border-[var(--mspot-button-spinner-color)]","border-t-transparent"]],template:function(i,e){i&1&&(DM(E$b),ta$3(0,"span",0),$v$1(1,1),EM(2),ta$3(3,"span",2),$v$1(4,1),EM(5,1),Pd$1(),$v$1(6,1),EM(7,2),Pd$1(),ta$3(8,"span",3),Vv$1(9,"span",4),Pd$1()),i&2&&(iD("opacity-0",e.loading()),uT(),jv$1("ngTemplateOutlet",e.leadingContent()),uT(2),iD("hidden",e._iconOnly),uT(),jv$1("ngTemplateOutlet",e.labelContent()),uT(2),jv$1("ngTemplateOutlet",e.trailingContent()),uT(2),iD("hidden",!e.loading()));},dependencies:[Ix$1],encapsulation:2});}}return t})(),Z$8=(()=>{class t extends S$d{constructor(){super(...arguments),this.customClass=X8("",{alias:"class",transform:n$b}),this.variant=X8("secondary"),this.color=X8("default"),this.size=X8("md"),this.loading=X8(false,{transform:ni$7}),this.disabled=X8(false,{transform:ni$7}),this.tabIndex=X8(null,{alias:"tabindex"}),this.ariaLabel=X8.required({alias:"aria-label"}),this.leadingContent=X8(null),this.labelContent=X8(null),this.trailingContent=X8(null),this._iconOnly=true;}get _accessibleName(){return this.ariaLabel()}static{this.\u0275fac=(()=>{let n;return function(e){return (n||(n=Wg$1(t)))(e||t)}})();}static{this.\u0275cmp=qS({type:t,selectors:[["button","mspot-icon-button",""],["a","mspot-icon-button",""]],hostVars:1,hostBindings:function(i,e){i&2&&Pv$1("aria-label",e._accessibleName);},inputs:{customClass:[1,"class","customClass"],variant:[1,"variant"],color:[1,"color"],size:[1,"size"],loading:[1,"loading"],disabled:[1,"disabled"],tabIndex:[1,"tabindex","tabIndex"],ariaLabel:[1,"aria-label","ariaLabel"],leadingContent:[1,"leadingContent"],labelContent:[1,"labelContent"],trailingContent:[1,"trailingContent"]},features:[pv$1],ngContentSelectors:P$8,decls:10,vars:9,consts:[["data-mspot-button-content","",1,"inline-flex","min-w-0","max-w-full","items-center","justify-center","gap-[inherit]","transition-opacity","duration-150","[&_[data-button-icon]]:shrink-0"],[3,"ngTemplateOutlet"],["data-mspot-button-label","",1,"block","min-w-0","overflow-hidden","text-ellipsis","whitespace-nowrap"],["data-mspot-button-spinner-container","",1,"pointer-events-none","absolute","inset-0","flex","items-center","justify-center"],["data-mspot-button-spinner","","aria-hidden","true",1,"size-[var(--mspot-button-spinner-size)]","animate-spin","rounded-full","border-2","border-[var(--mspot-button-spinner-color)]","border-t-transparent"]],template:function(i,e){i&1&&(DM(E$b),ta$3(0,"span",0),$v$1(1,1),EM(2),ta$3(3,"span",2),$v$1(4,1),EM(5,1),Pd$1(),$v$1(6,1),EM(7,2),Pd$1(),ta$3(8,"span",3),Vv$1(9,"span",4),Pd$1()),i&2&&(iD("opacity-0",e.loading()),uT(),jv$1("ngTemplateOutlet",e.leadingContent()),uT(2),iD("hidden",e._iconOnly),uT(),jv$1("ngTemplateOutlet",e.labelContent()),uT(2),jv$1("ngTemplateOutlet",e.trailingContent()),uT(2),iD("hidden",!e.loading()));},dependencies:[Ix$1],encapsulation:2});}}return t})();function Ve$7(i,a){}var g$c=class g{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var $$c=(()=>{class i extends ut$a{_elementRef=g$k(gt$f);_focusTrapFactory=g$k(Te$b);_config;_interactivityChecker=g$k(De$8);_ngZone=g$k(ge$b);_focusMonitor=g$k(be$a);_renderer=g$k(Fr$6);_changeDetectorRef=g$k(Va$2);_injector=g$k(oe$e);_platform=g$k(w$c);_document=g$k(Te$g);_portalOutlet;_focusTrapped=new le$d;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g$k(g$c,{optional:true})||new g$c,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||Xl$1(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focu
vendor: 5,303 bytes, lines 384-391
384s(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=I$a(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=I$a();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=I$a()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=qS({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&Jv$1(wi$2,7),t&2){let o;CM(o=wM())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&Pv$1("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[pv$1],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&gv$1(0,Ve$7,0,0,"ng-template",0);},dependencies:[wi$2],styles:[`.cdk-dialog-container { 385 display: block; 386 width: 100%; 387 height: 100%; 388 min-height: inherit; 389 max-height: inherit; 390} 391`],encapsulation:2,changeDetection:1})}return i})(),T$b=class T{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new le$d;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(a,e){this.overlayRef=a,this.config=e,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!K$k(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=a.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(a,e){if(this._canClose(a)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}_canClose(a){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(a,e,this.componentInstance))}},ze$8=new b$g("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=g$k(oe$e);return ()=>ze$b(i)}}),He$9=new b$g("DialogData"),Ge$5=new b$g("DefaultDialogConfig");function We$6(i){let a=On$7(i),e=new Ct$h;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var K$d=(()=>{class i{_injector=g$k(oe$e);_defaultOptions=g$k(Ge$5,{optional:true});_parentDialog=g$k(i,{optional:true,skipSelf:true});_overlayContainer=g$k(Ot$6);_idGenerator=g$k(S$g);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new le$d;_afterOpenedAtThisLevel=new le$d;_ariaHiddenElements=new Map;_scrollStrategy=g$k(ze$8);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=MI(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Qf$1(void 0)));open(e,t){let n=this._defaultOptions||new g$c;t=r$d(r$d({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=Zt$7(this._injector,o),r=new T$b(l,t),d=this._attachContainer(l,r,t);if(r.containerInstance=d,!this.openDialogs.length){let z=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(hn$9(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(z);}):this._hideNonDialogContentFromAssistiveTechnology(z);}return this._attachDialogContent(e,r,d,t),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,true)),this.afterOpened.next(r),r}closeAll(){Z$7(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>
391t.id===e)}ngOnDestroy(){Z$7(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),Z$7(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new J$g({positionStrategy:e.positionStrategy||Ze$d().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let o=n.injector||n.viewContainerRef?.injector,l=[{provide:g$c,useValue:n},{provide:T$b,useValue:t},{provide:Ct$c,useValue:e}],r;n.container?typeof n.container=="function"?r=n.container:(r=n.container.type,l.push(...n.container.providers(n))):r=$$c;let d=new At$6(r,n.viewContainerRef,oe$e.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,n,o){if(e instanceof rn$a){let l=this._createInjector(o,t,n,void 0),r={$implicit:o.data,dialogRef:t};o.templateContext&&(r=r$d(r$d({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),n.attachTemplatePortal(new U$b(e,null,r,l));}else {let l=this._createInjector(o,t,n,this._injector),r=n.attachComponentPortal(new At$6(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=r,t.componentInstance=r.instance;}}_createInjector(e,t,n,o){let l=e.injector||e.viewContainerRef?.injector,r=[{provide:He$9,useValue:e.data},{provide:T$b,useValue:t}];return e.providers&&(typeof e.providers=="function"?r.push(...e.providers(t,e,n)):r.push(...e.providers)),e.direction&&(!l||!l.get(z$g,null,{optional:true}))&&r.push({provide:z$g,useValue:We$6(e.direction)}),oe$e.create({parent:l||o,providers:r})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let o=t[n];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Wn$9({token:i,factory:i.\u0275fac})}return i})();function Z$7(i,a){let e=i.length;for(;e--;)a(i[e]);}var Fe$7=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Sa$2({type:i});static \u0275inj=io$5({providers:[K$d],imports:[pi$4,Oe$8,We$9,Oe$8]})}return i})();function Qe$8(i,a){}var V$9=class V{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},X$c="mdc-dialog--open",Le$8="mdc-dialog--opening",Re$7="mdc-dialog--closing",qe$4=150,Ue$7=75,Ye$5=(()=>{class i extends $$c{_animationStateChanged=new Ct$h;_animationsEnabled=!h$7();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Me$6(this._config.enterAnimationDuration)??qe$4:0;_exitAnimationDuration=this._animationsEnabled?Me$6(this._config.exitAnimationDuration)??Ue$7:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Pe$5,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Le$8,X$c)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(X$c),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(X$c),this._animationsEnabled?(this._hostElement.style.setProperty(Pe$5,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Re$7)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(Le$8,Re$7);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}
vendor: 6,435 bytes, lines 391-563
391ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Wg$1(i)))(n||i)}})();static \u0275cmp=qS({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(zv$1("id",n._config.id),Pv$1("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),iD("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[pv$1],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(ta$3(0,"div",0)(1,"div",1),gv$1(2,Qe$8,0,0,"ng-template",2),Pd$1()());},dependencies:[wi$2],styles:[`.mat-mdc-dialog-container { 392 width: 100%; 393 height: 100%; 394 display: block; 395 box-sizing: border-box; 396 max-height: inherit; 397 min-height: inherit; 398 min-width: inherit; 399 max-width: inherit; 400 outline: 0; 401} 402 403.cdk-overlay-pane.mat-mdc-dialog-panel { 404 max-width: var(--mat-dialog-container-max-width, 560px); 405 min-width: var(--mat-dialog-container-min-width, 280px); 406} 407@media (max-width: 599px) { 408 .cdk-overlay-pane.mat-mdc-dialog-panel { 409 max-width: var(--mat-dialog-container-small-max-width, calc(100vw - 32px)); 410 } 411} 412 413.mat-mdc-dialog-inner-container { 414 display: flex; 415 flex-direction: row; 416 align-items: center; 417 justify-content: space-around; 418 box-sizing: border-box; 419 height: 100%; 420 opacity: 0; 421 transition: opacity linear var(--mat-dialog-transition-duration, 0ms); 422 max-height: inherit; 423 min-height: inherit; 424 min-width: inherit; 425 max-width: inherit; 426} 427.mdc-dialog--closing .mat-mdc-dialog-inner-container { 428 transition: opacity 75ms linear; 429 transform: none; 430} 431.mdc-dialog--open .mat-mdc-dialog-inner-container { 432 opacity: 1; 433} 434._mat-animation-noopable .mat-mdc-dialog-inner-container { 435 transition: none; 436} 437 438.mat-mdc-dialog-surface { 439 display: flex; 440 flex-direction: column; 441 flex-grow: 0; 442 flex-shrink: 0; 443 box-sizing: border-box; 444 width: 100%; 445 height: 100%; 446 position: relative; 447 overflow-y: auto; 448 outline: 0; 449 transform: scale(0.8); 450 transition: transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1); 451 max-height: inherit; 452 min-height: inherit; 453 min-width: inherit; 454 max-width: inherit; 455 box-shadow: var(--mat-dialog-container-elevation-shadow, none); 456 border-radius: var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px)); 457 background-color: var(--mat-dialog-container-color, var(--mat-sys-surface, white)); 458} 459[dir=rtl] .mat-mdc-dialog-surface { 460 text-align: right; 461} 462.mdc-dialog--open .mat-mdc-dialog-surface, .mdc-dialog--closing .mat-mdc-dialog-surface { 463 transform: none; 464} 465._mat-animation-noopable .mat-mdc-dialog-surface { 466 transition: none; 467} 468.mat-mdc-dialog-surface::before { 469 position: absolute; 470 box-sizing: border-box; 471 width: 100%; 472 height: 100%; 473 top: 0; 474 left: 0; 475 border: 2px solid transparent; 476 border-radius: inherit; 477 content: ""; 478 pointer-events: none; 479} 480 481.mat-mdc-dialog-title { 482 display: block; 483 position: relative; 484 flex-shrink: 0; 485 box-sizing: border-box; 486 margin: 0 0 1px; 487 padding: var(--mat-dialog-headline-padding, 6px 24px 13px); 488} 489.mat-mdc-dialog-title::before { 490 display: inline-block; 491 width: 0; 492 height: 40px; 493 content: ""; 494 vertical-align: 0; 495} 496[dir=rtl] .mat-mdc-dialog-title { 497 text-align: right; 498} 499.mat-mdc-dialog-container .mat-mdc-dialog-title { 500 color: var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); 501 font-family: var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit)); 502 line-height: var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem)); 503 font-size: var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem)); 504 font-weight: var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400)); 505 letter-spacing: var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em)); 506} 507 508.mat-mdc-dialog-content { 509 display: block; 510 flex-grow: 1; 511 box-sizing: border-box; 512 margin: 0; 513 overflow: auto; 514 max-height: 65vh; 515} 516.mat-mdc-dialog-content > :first-child { 517 margin-top: 0; 518} 519.mat-mdc-dialog-content > :last-child { 520 margin-bottom: 0; 521} 522.mat-mdc-dialog-container .mat-mdc-dialog-content { 523 color: var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6))); 524 font-family: var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit)); 525 line-height: var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem)); 526 font-size: var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem)); 527 font-weight: var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400)); 528 letter-spacing: var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em)); 529} 530.mat-mdc-dialog-container .mat-mdc-dialog-content { 531 padding: var(--mat-dialog-content-padding, 20px 24px); 532} 533.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content { 534 padding: var(--mat-dialog-with-actions-content-padding, 20px 24px 0); 535} 536.mat-mdc-dialog-container .mat-mdc-dialog-title + .mat-mdc-dialog-content { 537 padding-top: 0; 538} 539 540.mat-mdc-dialog-actions { 541 display: flex; 542 position: relative; 543 flex-shrink: 0; 544 flex-wrap: wrap; 545 align-items: center; 546 box-sizing: border-box; 547 min-height: 52px; 548 margin: 0; 549 border-top: 1px solid transparent; 550 padding: var(--mat-dialog-actions-padding, 16px 24px); 551 justify-content: var(--mat-dialog-actions-alignment, flex-end); 552} 553@media (forced-colors: active) { 554 .mat-mdc-dialog-actions { 555 border-top-color: CanvasText; 556 } 557} 558.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start, .mat-mdc-dialog-actions[align=start] { 559 justify-content: start; 560} 561.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center, .mat-mdc-dialog-actions[align=center] { 562 justify-content: center; 563}
564.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end, .mat-mdc-dialog-actions[align=end] { 565 justify-content: flex-end; 566} 567.mat-mdc-dialog-actions .mat-button-base + .mat-button-base, 568.mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base { 569 margin-left: 8px; 570} 571[dir=rtl] .mat-mdc-dialog-actions .mat-button-base + .mat-button-base, 572[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base { 573 margin-left: 0; 574 margin-right: 8px; 575} 576 577.mat-mdc-dialog-component-host { 578 display: contents; 579} 580`],encapsulation:2,changeDetection:1})}return i})(),Pe$5="--mat-dialog-transition-duration";function Me$6(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?C$5(i.substring(0,i.length-2)):i.endsWith("s")?C$5(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var N$5=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(N$5||{}),O$c=class O{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new gn$a(1);_beforeClosed=new gn$a(1);_result;_closeFallbackTimeout;_state=N$5.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Pt$b(n=>n.state==="opened"),hn$9(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Pt$b(n=>n.state==="closed"),hn$9(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),xI(this.backdropClick(),this.keydownEvents().pipe(Pt$b(n=>n.keyCode===27&&!this.disableClose&&!K$k(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Be$8(this,n.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(Pt$b(t=>t.state==="closing"),hn$9(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=N$5.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=N$5.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function Be$8(i,a,e){return i._closeInteractionType=a,i.close(e)}var Ze$9=new b$g("MatMdcDialogData"),$e$6=new b$g("mat-mdc-dialog-default-options"),Ke$6=new b$g("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=g$k(oe$e);return ()=>ze$b(i)}}),J$f=(()=>{class i{_defaultOptions=g$k($e$6,{optional:true});_scrollStrategy=g$k(Ke$6);_parentDialog=g$k(i,{optional:true,skipSelf:true});_idGenerator=g$k(S$g);_injector=g$k(oe$e);_dialog=g$k(K$d);_animationsDisabled=h$7();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new le$d;_afterOpenedAtThisLevel=new le$d;dialogConfigClass=V$9;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=MI(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Qf$1(void 0)));constructor(){this._dialogRefConstructor=O$c,this._dialogContainerType=Ye$5,this._dialogDataToken=Ze$9;}open(e,t){let n;t=r$d(r$d({},this._defaultOptions||new V$9),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,s$e(r$d({},t),{positionStrategy:Ze$d(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleStr
580ing()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g$c,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(l,r,d)=>(n=new this._dialogRefConstructor(l,t,d),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=o.componentRef,n.componentInstance=o.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Wn$9({token:i,factory:i.\u0275fac})}return i})(),jt$8=(()=>{class i{dialogRef=g$k(O$c,{optional:true});_elementRef=g$k(gt$f);_dialog=g$k(J$f);ariaLabel;type="button";dialogResult;_matDialogClose;ngOnInit(){this.dialogRef||(this.dialogRef=je$7(this._elementRef,this._dialog.openDialogs));}ngOnChanges(e){let t=e._matDialogClose;t&&(this.dialogResult=t.currentValue);}_onButtonClick(e){this._elementRef.nativeElement.getAttribute("aria-disabled")!=="true"&&Be$8(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult);}static \u0275fac=function(t){return new(t||i)};static \u0275dir=mt$d({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){t&1&&Zv$1("click",function(l){return n._onButtonClick(l)}),t&2&&Pv$1("aria-label",n.ariaLabel||null)("type",n.type);},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ar$8]})}return i})(),Xe$4=(()=>{class i{_dialogRef=g$k(O$c,{optional:true});_elementRef=g$k(gt$f);_dialog=g$k(J$f);ngOnInit(){this._dialogRef||(this._dialogRef=je$7(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static \u0275fac=function(t){return new(t||i)};static \u0275dir=mt$d({type:i})}return i})(),Nt$7=(()=>{class i extends Xe$4{id=g$k(S$g).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Wg$1(i)))(n||i)}})();static \u0275dir=mt$d({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&zv$1("id",n.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[pv$1]})}return i})(),Vt$5=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=mt$d({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[e_$1([Nt$8])]})}return i})();function je$7(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}var zt$6=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Sa$2({type:i});static \u0275inj=io$5({providers:[J$f],imports:[Fe$7,pi$4,Oe$8,K$j]})}return i})();var H$a=(function(n){return n.SIZE_SM="dialog-sm",n.SIZE_384="dialog-384",n.SIZE_420="dialog-420",n.SIZE_500="dialog-500",n.SIZE_512="dialog-512",n.SIZE_560="dialog-560",n.SIZE_680="dialog-680",n.SIZE_768="dialog-768",n.SIZE_784="dialog-784",n.SIZE_900="dialog-900",n.SIZE_NO_PADDING="dialog-p-0",n.SIZE_MD="dialog-md",n.SIZE_SMALL_LG="dialog-small-lg",n.SIZE_SMALL_LG_VISIBLE="dialog-small-lg-visible",n.SIZE_LG="dialog-lg",n.SIZE_DETAILS="dialog-details",n.SIZE_FULL="dialog-full",n.SIZE_FULLSCREEN="dialog-fullscreen",n.SIDE_PANEL="dialog-side-panel",n.CUSTOM_SEARCH="dialog-custom-search",n.ZERO_BOTTOM_BORDER_RADIUS="dialog-zero-bottom-border-radius",n.ZERO_BORDER_RADIUS="dialog-zero-border-radius",n.DEFAULT_BACKGROUND="dialog-bg-default",n})(H$a||{});var bn$6=["*"],vn$5=k$g("flex w-full gap-2",{variants:{variant:{panel:"flex-col-reverse border-t border-borders-secondary py-3 pl-4 pr-3 sm:flex-row sm:justify-end sm:pl-5 lg:pl-6",inline:"mt-6 flex-row flex-wrap"}},defaultVariants:{variant:"panel"}}),O$b=(()=>{class n{constructor(){this.variant=X8("panel"),this.customClass=X8("",{alias:"class",transform:n$b}),this._computedClass=qd$1(()=>mo$2(vn$5({variant:this.variant()}),this.customClass()));}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-dialog-footer"]],hostVars:2,hostBindings:function(e,i){e&2&&BM(i._computedClass());},inputs:{variant:[1,"variant"],customClass:[1,"class","customClass"]},ngContentSelectors:bn$6,decls:1,vars:0,template:function(e,i){e&1&&(DM(),EM(0));},encapsulation:2});}}return n})();function xn$4(n,c){}var Pt$6="_mat-bottom-sheet-enter",zt$5="_mat-bottom-sheet-exit",yn$6=(()=>{class n extends $$c{_breakpointSubscription;_animationsDisabled=h$7();_animationState="void";_animationStateChanged=new Ct$h;_destroyed=false;constructor(){super();let t=g$k(z$h);
580this._breakpointSubscription=t.observe([p$b.Medium,p$b.Large,p$b.XLarge]).subscribe(()=>{let e=this._elementRef.nativeElement.classList;e.toggle("mat-bottom-sheet-container-medium",t.isMatched(p$b.Medium)),e.toggle("mat-bottom-sheet-container-large",t.isMatched(p$b.Large)),e.toggle("mat-bottom-sheet-container-xlarge",t.isMatched(p$b.XLarge));});}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._animationsDisabled&&this._simulateAnimation(Pt$6));}exit(){this._destroyed||(this._elementRef.nativeElement.setAttribute("mat-exit",""),this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._animationsDisabled&&this._simulateAnimation(zt$5));}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=true;}_simulateAnimation(t){this._ngZone.run(()=>{this._handleAnimationEvent(true,t,this._elementRef.nativeElement),setTimeout(()=>this._handleAnimationEvent(false,t,this._elementRef.nativeElement));});}_trapFocus(){super._trapFocus({preventScroll:true});}_handleAnimationEvent(t,e,i){if(i===this._elementRef.nativeElement){let m=e===Pt$6;(m||e===zt$5)&&this._animationStateChanged.emit({toState:m?"visible":"hidden",phase:t?"start":"done"});}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=qS({type:n,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(e,i){e&1&&Zv$1("animationstart",function(g){return i._handleAnimationEvent(true,g.animationName,g.target)})("animationend",function(g){return i._handleAnimationEvent(false,g.animationName,g.target)})("animationcancel",function(g){return i._handleAnimationEvent(false,g.animationName,g.target)}),e&2&&(Pv$1("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-label",i._config.ariaLabel),iD("mat-bottom-sheet-container-animations-enabled",!i._animationsDisabled)("mat-bottom-sheet-container-enter",i._animationState==="visible")("mat-bottom-sheet-container-exit",i._animationState==="hidden"));},features:[pv$1],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){e&1&&gv$1(0,xn$4,0,0,"ng-template",0);},dependencies:[wi$2],styles:[`@keyframes _mat-bottom-sheet-enter { 581 from { 582 transform: translateY(100%); 583 } 584 to { 585 transform: none; 586 } 587} 588@keyframes _mat-bottom-sheet-exit { 589 from { 590 transform: none; 591 } 592 to { 593 transform: translateY(100%); 594 } 595} 596.mat-bottom-sheet-container { 597 box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12); 598 padding: 8px 16px; 599 min-width: 100vw; 600 box-sizing: border-box; 601 display: block; 602 outline: 0; 603 max-height: 80vh; 604 overflow: auto; 605 position: relative; 606 background: var(--mat-bottom-sheet-container-background-color, var(--mat-sys-surface-container-low)); 607 color: var(--mat-bottom-sheet-container-text-color, var(--mat-sys-on-surface)); 608 font-family: var(--mat-bottom-sheet-container-text-font, var(--mat-sys-body-large-font)); 609 font-size: var(--mat-bottom-sheet-container-text-size, var(--mat-sys-body-large-size)); 610 line-height: var(--mat-bottom-sheet-container-text-line-height, var(--mat-sys-body-large-line-height)); 611 font-weight: var(--mat-bottom-sheet-container-text-weight, var(--mat-sys-body-large-weight)); 612 letter-spacing: var(--mat-bottom-sheet-container-text-tracking, var(--mat-sys-body-large-tracking)); 613} 614@media (forced-colors: active) { 615 .mat-bottom-sheet-container { 616 outline: 1px solid; 617 } 618} 619 620.mat-bottom-sheet-container-animations-enabled { 621 transform: translateY(100%); 622} 623.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-enter { 624 animation: _mat-bottom-sheet-enter 195ms cubic-bezier(0, 0, 0.2, 1) forwards; 625} 626.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-exit { 627 animation: _mat-bottom-sheet-exit 375ms cubic-bezier(0.4, 0, 1, 1) backwards; 628} 629 630.mat-bottom-sheet-container-xlarge, .mat-bottom-sheet-container-large, .mat-bottom-sheet-container-medium { 631 border-top-left-radius: var(--mat-bottom-sheet-container-shape, 28px); 632 border-top-right-radius: var(--mat-bottom-sheet-container-shape, 28px); 633} 634 635.mat-bottom-sheet-container-medium { 636 min-width: 384px; 637 max-width: calc(100vw - 128px); 638} 639 640.mat-bottom-sheet-container-large { 641 min-width: 512px; 642 max-width: calc(100vw - 256px); 643} 644 645.mat-bottom-sheet-container-xlarge { 646 min-width: 576px; 647 max-width: calc(100vw - 384px); 648} 649`],encapsulation:2,changeDetection:1})}return n})(),Dn$5=new b$g("MatBottomSheetData"),je$6=class je{viewContainerRef;injector;panelClass;direction;data=null;hasBackdrop=true;backdropClass;disableClose=false;ariaLabel=null;ariaModal=false;closeOnNavigation=true;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;height="";minHeight;maxHeight;bindings},X$b=class X{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new le$d;_result;_closeFallbackTimeout;constructor(c,t,e){this._ref=c,this.containerInstance=e,this.disableClose=t.disableClose,e._animationStateChanged.pipe(Pt$b(i=>i.phase==="done"&&i.toState==="visible"),hn$9(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),e._animationStateChanged.pipe(Pt$b(i=>i.phase==="done"&&i.toState==="hidden"),hn$9(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result);}),c.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result);}),xI(this.backdropClick(),this.keydownEvents().pipe(Pt$b(i=>i.keyCode===27))).subscribe(i=>{!this.disableClose&&(i.type!=="keydown"||!K$k(i))&&(i.preventDefault(),this.dismiss());});}dismiss(c){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Pt$b(t=>t.phase==="start"),hn$9(1)).subscribe(()=>{this._closeFallbackTimeout=setTimeout(()=>this._ref.close(this._result),500),this._ref.overlayRef.detachBackdrop();}),this._result=c,this.containerInstance.exit(),this.containerInstance=null);}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},Tn$5=new b$g("mat-bottom-sheet-default-options"),Sn$5=(()=>{class n{_injector=g$k(oe$e);_parentBottomSheet=g$k(n,{optional:true,skipSelf:true});_animationsDisabled=h$7();_defaultOptions=g$k(Tn$5,{optional:true});_bottomSheetRefAtThisLevel=null;_dialog=g$k(K$d);get _openedBottomSheetRef(){let t=this._parentBottomSheet;return t?t._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(t){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=t:this._bottomSheetRefAtThisLevel=t;}open(t,e){let i=r$d(r$d({},this._defaultOptions||new je$6),e),m;return this._dialog.open(t,s$e(r$d({},i),{disableClose:true,closeOnOverlayDetachments:false,maxWidth:"100%",container:yn$6,scrollStrategy:i.scrollStrategy||ze$b(this._injector),positionStrategy:Ze$d(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:m}),providers:(g,Te,Se)=>(m=new X$b(g,i,Se),[{provide:X$b,useValue:m},{provide:Dn$5,useValue:i.data}])})),m.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===m&&(this._openedBottomSheetRef=null);}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>m.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):m.containerInstance.enter(),this._openedBottomSheetRef=m,m}dismiss(t){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(t);}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss();}static \u0275fac=function(e){return new(e||n)};static \u0275prov=Wn$9({token:n,factory:n.\u0275fac})}return n})(),qi$2=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({providers:[Sn$5],imports:[Fe$7,Oe$8,K$j]})}return n})();function Gt$3(n,c,t){return (n==="auto"||n==="scroll"||n==="overlay")&&c>t}var Xe$3=160,wn$5=".cdk-overlay-pane",Mn$5=".mat-bottom-sheet-container, .mat-mdc-bottom-sheet-container",En$5=6,In$6=.7,jt$7=(()=>{class n{constructor(){this._el=g$k(gt$f),this._bottomSheetRef=g$k(X$b,{optional:true}),this._zone=g$k(ge$b),this._destroyRef=g$k(de$b),this.dismissThreshold=X8(120),this.dismissRatio=X8(.3),this.velocityThreshold=X8(.6),this._pane=null,this._container=null,this._startX=0,this._startY=0,this._startTime=0,this._activeTouchId=null,this._captured=false,this._touchTarget=null,this._detachListeners=null,this._styleResetTimeoutId=null,this._previousOverscrollBehavior="",this._lockedScrollers=[],this._destroyRef.onDestroy(()=>this._cleanup());}ngAfterViewInit(){if(!this._bottomSheetRef||(this._pane=this._el.nativeElement.closest(wn$5),this._container=this._pane?.querySelector(Mn$5)??null,!this._pane||!this._container))return;this._previousOverscrollBehavior=this._container.style.overscrollBehavior,this._container.style.overscrollBehavior="none";let t=this._container;this._zone.runOutsideAngular(()=>{let e=g=>this._onTouchStart(g),i=g=>this._onTouchMove(g),m=g=>this._onTouchEnd(g);t.addEventListener("touchstart",e,{passive:true}),t.addEventListener("touchmove",i,{passive:false}),t.addEventListener("touchend",m),t.addEventListener("touchcancel",m),this._detachListeners=()=>{t.removeEventListener("touchstart",e),t.removeEventListener("touchmove",i),t.removeEventListener("touchend",m),t.removeEventListener("touchcancel",m);};});}_onTouchStart(t){if(this._activeTouchId!==null||t.touches.length!==1||t.target?.closest("[mspotSwipeToDismiss]")!==null)return;this._cancelStyleReset();let e=t.touches[0];this._startX=e.clientX,this._startY=e.clientY,this._startTime=performance.now(),this._activeTouchId=e.identifier,this._captured=false,this._touchTarget=t.target;}_onTouchMove(t){if(this._activeTouchId===null||!this._pane||!this._container)return;let e=this._findTouch(t.touches);if(!e)return;let i=e.clientY-this._startY,m=e.clientX-this._startX;if(!this._captured){if(this._isInsideScrolledAncestor()){this._reset();return}if(i<0){this._reset();return}if(i<En$5)return;if(Math.abs(m)>i*In$6){this._reset();return}this._captured=true,this._pane.style.willChange="transform",this._pane.style.transition="none",this._lockInnerScroll();}t.cancelable&&t.preventDefault();let g=Math.max(0,i);this._pane.style.transform=`translateY(${g}px)`;}_onTouchEnd(t){if(this._activeTouchId===null||!this._pane||!this._container||Array.from(t.touches).some(_n=>_n.identifier===this._activeTouchId))return;if(!this._captured){this._reset();return}let i=this._pane,m=this._findTouch(t.changedTouches)??this._findTouch(t.touches),g=m?m.clientY-this._startY:0,Te=Math.max(1,performance.now()-this._startTime),Se=g/Te;i.style.transition=`transform ${Xe$3}ms ease-out`;let hn=Math.max(this.dismissThreshold(),i.offsetHeight*this.dismissRatio());g>hn||Se>this.velocityThreshold()?(i.style.transform=`translateY(${i.offsetHeight}px)`,window.setTimeout(()=>{this._zone.run(()=>this._bottomSheetRef?.dismiss());},Xe$3-20)):(i.style.transform="",this._scheduleStyleReset(i)),this._reset();}_findTouch(t){return Array.from(t).find(e=>e.identifier===this._activeTouchId)??null}_scheduleStyleReset(t){this._cancelStyleReset(),this._styleResetTimeoutId=window.setTimeout(()=>{this._styleResetTimeoutId=null,this._activeTouchId===null&&(t.style.willChange="",t.style.transition="");},Xe$3);}_cancelStyleReset(){this._styleResetTimeoutId!==null&&(window.clearTimeout(this._styleResetTimeoutId),this._styleResetTimeoutId=null);}_isInsideScrolledAncestor(){let t=this._touchTarget;for(;t&&t!==this._container;){if(t instanceof HTMLElement&&t.scrollTop>0)return true;t=t.parentElement;}return this._container?.scrollTop?this._container.scrollTop>0:false}_isScrollable(t){return Gt$3(getComputedStyle(t).overflowY,t.scrollHeight,t.clientHeight)}_lockInnerScroll(){let t=i=>{this._lockedScrollers.push({el:i,overflowY:i.style.overflowY,touchAction:i.style.touchAction}),i.style.overflowY="hidden",i.style.touchAction="none";},e=this._touchTarget;for(;e&&e!==this._container;)e instanceof HTMLElement&&this._isScrollable(e)&&t(e),e=e.parentElement;this._container&&t(this._container);}_unlockInnerScroll(){for(let{el:t,overflowY:e,touchAction:i}of this._lockedScrollers)t.style.overflowY=e,t.style.touchAction=i;this._lockedScrollers=[];}_reset(){this._unlockInnerScroll(),this._activeTouchId=null,this._captured=false,this._touchTarget=null;}_cleanup(){this._cancelStyleReset(),this._detachListeners?.(),this._detachListeners=null,this._container&&(this._container.style.overscrollBehavior=this._previousOverscrollBehavior),this._reset(),this._pane=null,this._container=null;}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275dir=mt$d({type:n,selectors:[["","mspotPullDownToDismiss",""]],inputs:{dismissThreshold:[1,"dismissThreshold"],dismissRatio:[1,"dismissRatio"],velocityThreshold:[1,"velocityThreshold"]}});}}return n})();var Ze$8=160,kn$4=".cdk-overlay-pane",Xt$6=(()=>{class n{constructor(){this._el=g$k(gt$f),this._bottomSheetRef=g$k(X$b,{optional:true}),this._zone=g$k(ge$b),this._destroyRef=g$k(de$b),this.dismissThreshold=X8(120),this.dismissRatio=X8(.3),this.velocityThreshold=X8(.6),this._pane=null,this._startY=0,this._startTime=0,this._activePointerId=null,this._detachWindowListeners=null,this._styleResetTimeoutId=null,this._destroyRef.onDestroy(()=>this._cleanup());}onPointerDown(t){!this._bottomSheetRef||this._activePointerId!==null||(this._pane=this._el.nativeElement.closest(kn$4),this._pane&&(t.preventDefault(),this._cancelStyleReset(),this._startY=t.clientY,this._startTime=performance.now(),this._activePointerId=t.pointerId,this._pane.style.willChange="transform",this._pane.style.transition="none",this._zone.runOutsideAngular(()=>{let e=m=>this._onMove(m),i=m=>this._onEnd(m);window.addEventListener("pointermove",e,{passive:true}),window.addEventListener("pointerup",i),window.addEventListener("pointercancel",i),this._detachWindowListeners=()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",i),window.removeEventListener("pointercancel",i);};})));}_onMove(t){if(t.pointerId!==this._activePointerId||!this._pane)return;let e=Math.max(0,t.clientY-this._startY);this._pane.style.transform=`translateY(${e}px)`;}_onEnd(t){if(t.pointerId!==this._activePointerId||!this._pane)return;let e=this._pane,i=t.clientY-this._startY,m=Math.max(1,performance.now()-this._startTime),g=i/m;e.style.transition=`transform ${Ze$8}ms ease-out`;let Te=Math.max(this.dismissThreshold(),e.offsetHeight*this.dismissRatio());i>Te||g>this.velocityThreshold()?(e.style.transform=`translateY(${e.offsetHeight}px)`,window.setTimeout(()=>{this._zone.run(()=>this._bottomSheetRef?.dismiss());},Ze$8-20)):(e.style.transform="",this._scheduleStyleReset(e)),this._detachWindowListeners?.(),this._detachWindowListeners=null,this._activePointerId=null;}_scheduleStyleReset(t){this._cancelStyleReset(),this._styleResetTimeoutId=window.setTimeout(()=>{this._styleResetTimeoutId=null,this._activePointerId===null&&(t.style.willChange="",t.style.transition="");},Ze$8);}_cancelStyleReset(){this._styleResetTimeoutId!==null&&(window.clearTimeout(this._styleResetTimeoutId),this._styleResetTimeoutId=null);}_cleanup(){this._cancelStyleReset(),this._detachWindowListeners?.(),this._detachWindowListeners=null,this._activePointerId=null,this._pane=null;}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275dir=mt$d({type:n,selectors:[["","mspotSwipeToDismiss",""]],hostAttrs:[1,"touch-none","select-none"],hostBindings:function(e,i){e&1&&Zv$1("pointerdown",function(g){return i.onPointerDown(g)});},inputs:{dismissThreshold:[1,"dismissThreshold"],dismissRatio:[1,"dismissRatio"],velocityThreshold:[1,"velocityThreshold"]}});}}return n})();var Zt$6=(()=>{class n{constructor(){this.bg=X8(null),this.hostClasses=qd$1(()=>`backdrop-blur-sm sticky top-0 z-50 block ${this.bg()||"bg-backgrounds-surface-raised"}`);}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-bottom-sheet-handle"]],hostVars:2,hostBindings:function(e,i){e&2&&BM(i.hostClasses());},inputs:{bg:[1,"bg"]},features:[e_$1([jt$7])],decls:2,vars:0,const
649s:[["mspotSwipeToDismiss","",1,"flex","cursor-grab","justify-center","pb-3","pt-3","active:cursor-grabbing"],["aria-hidden","true",1,"bg-backgrounds-tertiary","h-1","w-9","rounded-full"]],template:function(e,i){e&1&&(ta$3(0,"div",0),Vv$1(1,"div",1),Pd$1());},dependencies:[Xt$6],encapsulation:2});}}return n})();var Fn$6=[[["","slot","title"]]],Nn$6=["[slot=title]"];function An$5(n,c){n&1&&Vv$1(0,"mspot-bottom-sheet-handle");}function Bn$6(n,c){if(n&1&&QM(0),n&2){let t=yM(2).$implicit,e=yM();Gd$1(" ",t(e.titleKey(),e.titleParams())," ");}}function On$5(n,c){if(n&1&&(ta$3(0,"div",4),QM(1),Pd$1()),n&2){let t=yM(2).$implicit,e=yM();uT(),Gd$1(" ",t(c,e.subtitleParams())," ");}}function Vn$6(n,c){if(n&1){let t=fM();ta$3(0,"div")(1,"div",2)(2,"h1",3),eM$1(3,Bn$6,1,1),EM(4),Pd$1(),eM$1(5,On$5,2,1,"div",4),Pd$1(),ta$3(6,"button",5),Zv$1("click",function(){sh$1(t);let i=yM(2);return ah$1(i.close())}),Vv$1(7,"ng-icon",6),Pd$1()();}if(n&2){let t,e=yM().$implicit,i=yM();BM(i._titleRowClass()),uT(3),tM$1(i.titleKey()?3:-1),uT(2),tM$1((t=i.subtitleKey())?5:-1,t),uT(),Lv$1("aria-label",nN(e("common.close"))),Pv$1("data-onboarding",i.closeButtonDataOnboarding());}}function Ln$6(n,c){if(n&1&&(Hd$1(0),eM$1(1,An$5,1,0,"mspot-bottom-sheet-handle")(2,Vn$6,8,7,"div",1),$d$1()),n&2){let t=yM();uT(),tM$1(t.sheetHandle()&&t._isSheet?1:2);}}var Hn$5=k$g("flex w-full flex-col",{variants:{variant:{panel:"border-b border-borders-secondary",inline:"mb-6"}},defaultVariants:{variant:"panel"}}),Pn$6=k$g("flex w-full justify-between",{variants:{variant:{panel:"py-3 pl-4 pr-3 sm:pl-5 lg:pl-6",inline:""},hasSubtitle:{true:"items-start",false:"items-center"}},defaultVariants:{variant:"panel",hasSubtitle:false}}),Ut$7=(()=>{class n{constructor(){this._dialogRef=g$k(O$c,{optional:true}),this._sheetRef=g$k(X$b,{optional:true}),this.titleKey=X8(),this.titleParams=X8({}),this.subtitleKey=X8(),this.subtitleParams=X8({}),this.closeButtonDataOnboarding=X8(),this.sheetHandle=X8(false),this.variant=X8("panel"),this.customClass=X8("",{alias:"class",transform:n$b}),this._isSheet=!!this._sheetRef,this._computedClass=qd$1(()=>mo$2(Hn$5({variant:this.variant()}),this.customClass())),this._titleRowClass=qd$1(()=>Pn$6({variant:this.variant(),hasSubtitle:!!this.subtitleKey()}));}close(){if(this._sheetRef){this._sheetRef.dismiss();return}this._dialogRef?.close();}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-dialog-header"]],hostVars:2,hostBindings:function(e,i){e&2&&BM(i._computedClass());},inputs:{titleKey:[1,"titleKey"],titleParams:[1,"titleParams"],subtitleKey:[1,"subtitleKey"],subtitleParams:[1,"subtitleParams"],closeButtonDataOnboarding:[1,"closeButtonDataOnboarding"],sheetHandle:[1,"sheetHandle"],variant:[1,"variant"],customClass:[1,"class","customClass"]},ngContentSelectors:Nn$6,decls:1,vars:0,consts:[[4,"transloco"],[3,"class"],[1,"flex-1"],[1,"heading-new"],[1,"subtitle-new","mb-4"],["type","button","mspot-icon-button","","size","sm","variant","subtle",3,"click","aria-label"],["data-button-icon","","name","heroXMark","aria-hidden","true"]],template:function(e,i){e&1&&(DM(Fn$6),gv$1(0,Ln$6,3,1,"ng-container",0));},dependencies:[yt$a,le$9,Z$8,Zt$6],encapsulation:2});}}return n})();var Yt$5=()=>({});function zn$4(n,c){if(n&1&&(ta$3(0,"div",4),QM(1),Pd$1()),n&2){let t=yM().$implicit,e=yM();uT(),Gd$1(" ",t(e.data.subTitle,e.data.messageVars||dN(1,Yt$5))," ");}}function Gn$7(n,c){if(n&1&&(ta$3(0,"div",5),QM(1),Pd$1()),n&2){let t=yM().$implicit,e=yM();uT(),Gd$1(" ",t(e.data.message2)," ");}}function jn$5(n,c){if(n&1){let t=fM();Hd$1(0),Vv$1(1,"mspot-dialog-header",1),ta$3(2,"div",2)(3,"div",3),eM$1(4,zn$4,2,2,"div",4),ta$3(5,"div",5),QM(6),Pd$1(),eM$1(7,Gn$7,2,1,"div",5),Pd$1()(),ta$3(8,"mspot-dialog-footer")(9,"button",6),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.dialogRef.close())}),QM(10),Pd$1(),ta$3(11,"button",7),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.close())}),QM(12),Pd$1()(),$d$1();}if(n&2){let t=c.$implicit,e=yM();uT(),jv$1("titleKey",e.data.title)("titleParams",e.data.messageVars),uT(3),tM$1(e.data.subTitle?4:-1),uT(2),Gd$1(" ",t(e.data.message,e.data.messageVars||dN(8,Yt$5))," "),uT(),tM$1(e.data.message2?7:-1),uT(3),Gd$1(" ",t(e.data.abortText||"common.abort")," "),uT(),Pv$1("data-onboarding",e.data.confirmOnboardingTarget??null),uT(),Gd$1(" ",t(e.data.confirmText||"common.confirm")," ");}}var $t$6=(()=>{class n{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9),this.dialogRef.addPanelClass("dialog--no-padding");}close(){this.dialogRef.close(true);}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-confirm-cancel-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"titleKey","titleParams"],[1,"p-6"],[1,"mt-2","text-sm"],[1,"mb-2","font-semibold"],[1,"text-text-default"],["mspot-button","","variant","secondary","color","default",3,"click"],["mspot-button","","variant","primary","color","danger",3,"click"]],template:function(e,i){e&1&&gv$1(0,jn$5,13,9,"ng-container",0);},dependencies:[bt$b,yt$a,Ut$7,O$b,q$b],encapsulation:2});}}return n})();var Ue$6=()=>({});function Xn$6(n,c){if(n&1&&Vv$1(0,"div",3),n&2){let t=yM().$implicit,e=yM();jv$1("innerHTML",e.data.preTranslated?e.data.message2:t(e.data.message2,e.data.messageVars||dN(1,Ue$6)
649),cb$1);}}function Zn$6(n,c){if(n&1){let t=fM();ta$3(0,"mspot-checkbox",8),Zv$1("change",function(i){sh$1(t);let m=yM(2);return ah$1(m.checked.set(i.target.checked))}),Vv$1(1,"span",9),Pd$1();}if(n&2){let t=yM().$implicit,e=yM();jv$1("checked",e.checked()),uT(),jv$1("innerHTML",t(e.data.checkBoxMessage,e.data.messageVars||dN(2,Ue$6)),cb$1);}}function Un$5(n,c){if(n&1){let t=fM();Hd$1(0),ta$3(1,"h1",1),QM(2),Pd$1(),ta$3(3,"div",2),Vv$1(4,"div",3),eM$1(5,Xn$6,1,2,"div",3),Pd$1(),eM$1(6,Zn$6,2,3,"mspot-checkbox",4),ta$3(7,"mspot-dialog-footer",5)(8,"button",6),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.dialogRef.close())}),QM(9),Pd$1(),ta$3(10,"button",7),QM(11),Pd$1()(),$d$1();}if(n&2){let t=c.$implicit,e=yM();uT(2),Gd$1(" ",e.data.preTranslated?e.data.title:t(e.data.title)," "),uT(2),jv$1("innerHTML",e.data.preTranslated?e.data.message:t(e.data.message,e.data.messageVars||dN(12,Ue$6)),cb$1),uT(),tM$1(e.data.message2?5:-1),uT(),tM$1(e.data.checkBoxMessage?6:-1),uT(2),Pv$1("data-cy",e.data.abortDataCy??null),uT(),Gd$1(" ",t(e.data.abortText||"common.abort")," "),uT(),jv$1("disabled",!e.checked())("ngClass",e.data.confirmBtnStyles?e.data.confirmBtnStyles:null)("mat-dialog-close",true),Pv$1("data-cy",e.data.confirmDataCy??null)("data-onboarding",e.data.confirmOnboardingTarget??null),uT(),Gd$1(" ",t(e.data.confirmText||"common.confirm")," ");}}var Ye$4=(()=>{class n{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9),this.checked=On$7(!this.data?.checkBoxMessage);}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-confirm-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new","mb-2","text-center"],[1,"text-text-default","text-sm"],[1,"text-center",3,"innerHTML"],[1,"mt-6",3,"checked"],["variant","inline",1,"[&>*]:flex-1"],["mspot-button","","variant","secondary","color","default",3,"click"],["mspot-button","","variant","primary","color","default",3,"disabled","ngClass","mat-dialog-close"],[1,"mt-6",3,"change","checked"],[3,"innerHTML"]],template:function(e,i){e&1&&gv$1(0,Un$5,12,13,"ng-container",0);},dependencies:[yt$a,zt$6,jt$8,mx$1,X$d,q$b,O$b],encapsulation:2});}}return n})();var Yn$5=["*"],ne$8=(()=>{class n{constructor(){this.size=X8("md");}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-field-wip"]],hostAttrs:[1,"flex","w-full","min-w-0","flex-col","gap-1.5"],hostVars:1,hostBindings:function(e,i){e&2&&Pv$1("data-size",i.size());},inputs:{size:[1,"size"]},features:[cN([w$d])],ngContentSelectors:Yn$5,decls:1,vars:0,template:function(e,i){e&1&&(DM(),EM(0));},encapsulation:2});}}return n})();function $n$5(n,c){if(n&1&&(Vv$1(0,"ng-icon",2),ta$3(1,"span",3),QM(2),EN(3,"errorObj"),Pd$1()),n&2){let t=yM(2);uT(2),yD(CN(3,1,t.errors()));}}function Wn$7(n,c){if(n&1&&(Vv$1(0,"ng-icon",4),ta$3(1,"span",5),QM(2),Pd$1()),n&2){let t=yM(2);uT(2),yD(t.message());}}function qn$6(n,c){if(n&1&&(ta$3(0,"span",1),QM(1),Pd$1()),n&2){let t=yM(2);uT(),yD(t.message());}}function Kn$6(n,c){if(n&1&&(ta$3(0,"div",0),eM$1(1,$n$5,4,3)(2,Wn$7,3,1)(3,qn$6,2,1,"span",1),Pd$1()),n&2){let t,e=yM();uT(),tM$1((t=e.variant())==="error"?1:t==="success"?2:3);}}var ie$8=(()=>{class n{constructor(){this._registry=g$k(w$d,{optional:true}),this._generatedId=U$c("mspot-field-message"),this.variant=X8("helper"),this.errors=X8(null),this.message=X8(),this.messageId=X8(void 0),this.id=qd$1(()=>this.messageId()??this._generatedId),this._messageSource=qd$1(()=>`mspot-field-message:${this.id()}`),this.showMessage=qd$1(()=>{let t=this.variant();return t==="helper"||t==="success"?!!this.message():!!this.errors()}),this.registerMessageEffect=Es$3(t=>{let e=this._registry,i=this._messageSource(),m=this.showMessage();e&&(m?(e.register(i,this.id()),t(()=>e.unregister(i))):e.unregister(i));});}ngOnDestroy(){this._registry?.unregister(this._messageSource());}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-field-message"]],hostAttrs:["aria-live","polite",1,"block"],hostVars:1,hostBindings:function(e,i){e&2&&Pv$1("id",i.id());},inputs:{variant:[1,"variant"],errors:[1,"errors"],message:[1,"message"],messageId:[1,"messageId"]},features:[cN([$$g({heroExclamationCircle:k1,heroCheckCircle:F$f})])],decls:1,vars:1,consts:[[1,"flex","items-center","gap-1","text-xs","leading-4"],[1,"text-text-subtle"],["name","heroExclamationCircle","aria-hidden","true",1,"text-text-danger","size-[18px]","shrink-0"],[1,"text-text-danger"],["name","heroCheckCircle","aria-hidden","true",1,"text-text-success","size-[18px]","shrink-0"],[1,"text-text-success"]],template:function(e,i){e&1&&eM$1(0,Kn$6,4,1,"div",0),e&2&&tM$1(i.showMessage()?0:-1);},dependencies:[le$9,ir$7],encapsulation:2});}}return n})();var He$8=new b$g("INPUT_GROUP_HOST");var Jn$6="[&:not([aria-invalid=true]):not([data-state=error])]:focus-visible:border-borders-focus-default",Qn$6="[&:not([aria-invalid=true]):not([data-state=error])]:focus-visible:shadow-[0_0_0_1px_rgb(24_64_220),0_0_1px_rgba(24,64,220,0.22)]",ei$3="[&:not([aria-invalid=true]):not([data-state=error])]:focus-within:border-borders-focus-default",ti$3="[&:not([aria-invalid=true]):not([data-state=error])]:focus-within:shadow-[0_0_0_1px_rgb(24_64_220),0_0_1px_rgba(24,64,220,0.22)]",ni$3="[&:not([aria-invalid=true]):not([data-state=error]):not(:focus):not
649(:focus-visible):not(:focus-within)]:hover:border-borders-secondaryHover",ii$3="[&:not([aria-invalid=true]):not([data-state=error]):not(:focus):not(:focus-visible):not(:focus-within)]:hover:bg-backgrounds-canvas",oi$3="aria-[invalid=true]:focus-visible:shadow-[0_0_0_1px_rgb(220_38_38),0_0_1px_rgba(220,38,38,0.22)]",ai$3="data-[state=error]:focus-within:shadow-[0_0_0_1px_rgb(220_38_38),0_0_1px_rgba(220,38,38,0.22)]",Wt$7=["[&::-webkit-search-cancel-button]:hidden","[&::-webkit-search-cancel-button]:appearance-none","[&::-webkit-search-decoration]:appearance-none"],qt$5=["focus:outline-none","focus:ring-0","focus:ring-offset-0"],Kt$7=["bg-backgrounds-surface-raised","border-borders-primary",ni$3,ii$3,"aria-[invalid=true]:border-borders-danger","data-[state=error]:border-borders-danger","data-[state=success]:border-borders-success"],ri$3=["disabled:bg-backgrounds-subtle","disabled:border-borders-disabled","disabled:text-text-disabled","disabled:cursor-not-allowed"],si$3=["read-only:border-borders-disabled","read-only:bg-backgrounds-canvas","read-only:cursor-default"],li$3=["bg-backgrounds-subtle","border-borders-disabled","text-text-disabled","cursor-not-allowed"],ci$3=["bg-backgrounds-canvas","border-borders-disabled","cursor-default"],Jt$7=["block","w-full","min-w-0","rounded-lg","border","transition-colors","duration-100","text-text-strong","placeholder:text-text-subtle","focus-visible:outline-none",...qt$5,...Kt$7,...ri$3,...si$3,...Wt$7,Jn$6,Qn$6,"aria-[invalid=true]:focus-visible:border-borders-focus-error",oi$3],Qt$7=k$g(Jt$7,{variants:{size:{sm:"h-8 px-3 text-xs",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base"},variant:{outlined:"",ghost:["h-auto min-h-0 border-0 bg-transparent px-0 shadow-none","hover:bg-transparent","focus-visible:bg-backgrounds-surface-raised","focus-visible:shadow-none","disabled:bg-transparent","read-only:bg-transparent"]}},defaultVariants:{size:"md",variant:"outlined"}}),en$6=k$g([...Jt$7,"box-content","leading-6","resize-none","overflow-y-auto","w-auto","max-w-full","self-stretch"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"},variant:{outlined:"",ghost:["min-h-0 border-0 bg-transparent px-0 py-0 shadow-none","focus-visible:bg-backgrounds-surface-raised","focus-visible:shadow-none","disabled:bg-transparent","read-only:bg-transparent"]}},compoundVariants:[{variant:"outlined",size:"sm",class:"px-3 py-2"},{variant:"outlined",size:"md",class:"px-3 py-2.5"},{variant:"outlined",size:"lg",class:"px-4 py-3"}],defaultVariants:{size:"md",variant:"outlined"}}),tn$6=k$g(["group","block","h-full","w-full","min-h-0","min-w-0","flex-1","appearance-none","border-0","bg-transparent","p-0","shadow-none","rounded-none","text-text-strong","placeholder:text-text-subtle",...qt$5,"focus:border-0","focus:shadow-none","focus-visible:ring-0","focus-visible:shadow-none","disabled:cursor-not-allowed","disabled:text-text-disabled","read-only:cursor-default",...Wt$7],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),nn$5=k$g(["group","flex","w-full","min-w-0","items-center","gap-2","rounded-lg","border","transition-colors","duration-100","focus-within:outline-none",ei$3,ti$3,"data-[state=error]:focus-within:border-borders-focus-error",ai$3],{variants:{size:{sm:"h-8 px-3",md:"h-10 px-3",lg:"h-11 px-4"},variant:{outlined:"cursor-text",ghost:["h-auto min-h-0 gap-0 border-0 bg-transparent p-0 shadow-none","cursor-text","hover:bg-transparent","focus-within:shadow-none","focus-within:border-0"]},disabled:{true:"",false:""},readonly:{true:"",false:""}},compoundVariants:[{variant:"outlined",disabled:true,class:li$3},{variant:"outlined",disabled:false,readonly:true,class:ci$3},{variant:"outlined",disabled:false,readonly:false,class:Kt$7},{variant:"ghost",disabled:true,class:["cursor-not-allowed","text-text-disabled"]},{variant:"ghost",disabled:false,readonly:true,class:"cursor-default"}],defaultVariants:{size:"md",variant:"outlined",disabled:false,readonly:false}});var oe$9=(()=>{class n{constructor(){this._host=g$k(gt$f),this._insideInputGroup=g$k(He$8,{optional:true}),this.customClass=X8("",{alias:"class",transform:n$b}),this.size=X8("md"),this.variant=X8("outlined"),this._isTextarea=qd$1(()=>this._host.nativeElement.tagName==="TEXTAREA"),this.computedClass=qd$1(()=>{let t=this.size(),e=this.variant();if(this._insideInputGroup&&e==="outlined")return mo$2(tn$6({size:t}),this.customClass());let i=this._isTextarea()?en$6:Qt$7;return mo$2(i({size:t,variant:e}),this.customClass())});}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275dir=mt$d({type:n,selectors:[["input","mspotInput",""],["textarea","mspotInput",""]],hostAttrs:["data-1p-ignore",""],hostVars:2,hostBindings:function(e,i){e&2&&BM(i.computedClass());},inputs:{customClass:[1,"class","customClass"],size:[1,"size"],variant:[1,"variant"]}});}}
649return n})();var ae$7=(()=>{class n{constructor(){this._host=g$k(gt$f),this.customClass=X8("",{alias:"class",transform:n$b}),this.size=X8("md"),this.variant=X8("outlined"),this.dataState=X8("default"),this.dataDisabled=X8(false),this.dataReadonly=X8(false),this.computedClass=qd$1(()=>mo$2(nn$5({size:this.size(),variant:this.variant(),disabled:this.dataDisabled(),readonly:this.dataReadonly()}),this.customClass()));}onGroupClick(t){if(this.dataDisabled())return;let e=t.target;this._isInteractiveClickTarget(e)||this._findFocusableControl()?.focus();}_findFocusableControl(){return this._host.nativeElement.querySelector(":scope input:not([disabled]), :scope textarea:not([disabled])")}_isInteractiveClickTarget(t){return !!t.closest('button, a[href], input, textarea, select, [role="button"]')}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275dir=mt$d({type:n,selectors:[["","mspotInputGroup",""]],hostVars:5,hostBindings:function(e,i){e&1&&Zv$1("click",function(g){return i.onGroupClick(g)}),e&2&&(Pv$1("data-state",i.dataState())("data-disabled",i.dataDisabled())("data-readonly",i.dataReadonly()),BM(i.computedClass()));},inputs:{customClass:[1,"class","customClass"],size:[1,"size"],variant:[1,"variant"],dataState:[1,"dataState"],dataDisabled:[1,"dataDisabled"],dataReadonly:[1,"dataReadonly"]},features:[cN([{provide:He$8,useValue:true}])]});}}return n})();function mi$2(n,c){if(n&1&&Vv$1(0,"mspot-field-message",6),n&2){let t=yM(2);jv$1("errors",t.form.controls.name.errors);}}function di$2(n,c){if(n&1){let t=fM();Hd$1(0),ta$3(1,"div")(2,"h1",1),QM(3),Pd$1(),ta$3(4,"div",2)(5,"form",3),Zv$1("ngSubmit",function(){sh$1(t);let i=yM();return ah$1(i.submit())}),ta$3(6,"mspot-field-wip")(7,"div",4),Vv$1(8,"input",5),iS(),Pd$1(),eM$1(9,mi$2,1,1,"mspot-field-message",6),Pd$1()()(),ta$3(10,"mspot-dialog-footer",7)(11,"button",8),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.dialogRef.close())}),QM(12),Pd$1(),ta$3(13,"button",9),EN(14,"formValid"),QM(15),Pd$1()()(),$d$1();}if(n&2){let t=c.$implicit,e=yM();uT(3),yD(t(e.data.title)),uT(2),jv$1("formGroup",e.form);let i=e.form.controls.name.touched&&e.form.controls.name.invalid;uT(2),jv$1("dataState",i?"error":"default"),Pv$1("data-onboarding",e.data.nameInputOnboardingTarget??null)("data-onboarding-valid",e.data.nameInputOnboardingTarget?e.form.controls.name.valid:null),uT(),Pv$1("aria-invalid",i?"true":null)("aria-describedby",i?"create-dialog-name-error":null)("data-cy",e.data.nameInputDataCy??null),aS(),uT(),tM$1(i?9:-1),uT(2),Pv$1("data-cy",e.data.cancelButtonDataCy??null),uT(),Gd$1(" ",t("common.abort")," "),uT(),jv$1("mat-dialog-close",e.form.value)("disabled",CN(14,16,e.form)),Pv$1("data-cy",e.data.createButtonDataCy??null)("data-onboarding",e.data.createButtonOnboardingTarget??null),uT(2),Gd$1(" ",t("common.create")," ");}}var on$5=(()=>{class n{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9),this._fb=g$k(ii$5),this.form=this._fb.group({name:this.data.disableLinks?zD.ShortFieldNoHttpLinks:zD.ShortField});}submit(){this.form.invalid||this.dialogRef.close(this.form.getRawValue());}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-create-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new","mb-6"],[1,""],[3,"ngSubmit","formGroup"],["mspotInputGroup","",1,"w-full",3,"dataState"],["mspotInput","","formControlName","name","autocomplete","off","placeholder","Name","aria-required","true"],["messageId","create-dialog-name-error","variant","error",3,"errors"],["variant","inline",1,"[&>*]:flex-1"],["mspot-button","","variant","secondary","color","default","type","button",3,"click"],["mspot-button","","variant","primary","color","default","type","button",3,"mat-dialog-close","disabled"]],template:function(e,i){e&1&&gv$1(0,di$2,16,18,"ng-container",0);},dependencies:[yt$a,oi$5,ei$5,Qe$b,Xn$7,Yn$6,Fn$7,Mn$6,oe$9,ae$7,ne$8,ie$8,jt$8,q$b,O$b,n$c],encapsulation:2});}}return n})();var pi$3=n=>({name:n});function ui$1(n,c){if(n&1&&(ta$3(0,"li",12),QM(1),Pd$1()),n&2){let t=c.$implicit;uT(),Gd$1(" ",t," ");}}function fi$1(n,c){if(n&1&&(ta$3(0,"ul",7),oM(1,ui$1,2,1,"li",12,J_$1().trackByFn,true),Pd$1()),n&2){let t=yM(2);uT(),iM(t.data.items);}}function gi$1(n,c){if(n&1&&(ta$3(0,"div"),QM(1),Pd$1()),n&2){let t=yM(2);uT(),Gd$1(" ",t.data.message," ");}}function hi$2(n,c){if(n&1&&Vv$1(0,"mspot-field-message",15),n&2){let t=yM(3);jv$1("errors",t.deleteCtrl.errors);}}function _i$1(n,c){if(n&1){let t=fM();ta$3(0,"div",8),Vv$1(1,"div",6),ta$3(2,"mspot-field-wip")(3,"div",13)(4,"input",14),Zv$1("keydown.enter",function(){sh$1(t);let i=yM(2);return ah$1(i.enter())}),Pd$1(),iS(),Pd$1(),eM$1(5,hi$2,1,1,"mspot-field-message",15),Pd$1()();}if(n&2){let t=yM().$implicit,e=yM();uT(),jv$1("innerHTML",t("frontendDialogs.deleteManDialog.deleteEnabled"),cb$1);
649let i=e.deleteCtrl.touched&&e.deleteCtrl.invalid;uT(2),jv$1("dataState",i?"error":"default"),uT(),jv$1("formControl",e.deleteCtrl)("placeholder",t("common.delete")),Pv$1("aria-invalid",i?"true":null)("aria-describedby",i?"delete-man-dialog-error":null),aS(),uT(),tM$1(i?5:-1);}}function bi(n,c){if(n&1){let t=fM();Hd$1(0),ta$3(1,"div",1)(2,"h3",2),Vv$1(3,"ng-icon",3),ta$3(4,"span"),QM(5),Pd$1()(),Vv$1(6,"div",4),Pd$1(),ta$3(7,"div",5),Vv$1(8,"span",6),eM$1(9,fi$1,3,0,"ul",7),eM$1(10,gi$1,2,1,"div"),eM$1(11,_i$1,6,7,"div",8),Pd$1(),ta$3(12,"mspot-dialog-footer",9)(13,"button",10),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.dialogRef.close())}),QM(14),Pd$1(),ta$3(15,"button",11),QM(16),Pd$1()(),$d$1();}if(n&2){let t=c.$implicit,e=yM();uT(5),Gd$1(" ",t(e.data.title)," "),uT(),jv$1("innerHTML",t("frontendDialogs.deleteManDialog.subtitle"),cb$1),uT(2),jv$1("innerHTML",t("frontendDialogs.deleteManDialog.message",fN(10,pi$3,e.data.name)),cb$1),uT(),tM$1(e.data.items?.length?9:-1),uT(),tM$1(e.data.message?10:-1),uT(),tM$1(e.deleteCtrl.enabled?11:-1),uT(3),Gd$1(" ",t("common.cancel")," "),uT(),jv$1("mat-dialog-close",true)("disabled",e.deleteCtrl.enabled&&!e.deleteCtrl.valid),uT(),Gd$1(" ",t("common.delete")," ");}}var an$3=(()=>{class n{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9),this._fb=g$k(ii$5),this._translocoService=g$k(Ce$5),this.deleteCtrl=this._fb.control({value:"",disabled:true},{validators:[Ce$8.required,O$e.createIsEqualToValue(this._getValueToType())]}),this.data.complex&&this.deleteCtrl.enable(),this.dialogRef.disableClose=false;}enter(){this.deleteCtrl.invalid||this.dialogRef.close(true);}trackByFn(t,e){return e}_getValueToType(){return this._translocoService.translate("common.delete")}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-delete-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"bg-backgrounds-fill-danger-strong","text-text-inverse","-mx-6","-mt-6","mb-5"],[1,"del-title","justify-center","text-center","text-xl","font-medium"],["name","hero-exclamation-triangle-solid",1,"mr-1","text-2xl"],[1,"del-subtitle","text-center",3,"innerHTML"],[1,"text-text-default","text-center","text-sm"],[3,"innerHTML"],[1,"mt-2","list-inside","list-disc","overflow-hidden"],[1,"mt-4"],["variant","inline",1,"[&>*]:flex-1"],["mspot-button","","variant","secondary","color","default",3,"click"],["mspot-button","","variant","secondary","color","danger","data-cy","deleteManDialog__approve",3,"mat-dialog-close","disabled"],[1,"break-words","text-sm"],["mspotInputGroup","",1,"mt-2",3,"dataState"],["mspotInput","","autocomplete","off","data-cy","deleteManDialog__input","aria-required","true",3,"keydown.enter","formControl","placeholder"],["messageId","delete-man-dialog-error","variant","error",3,"errors"]],template:function(e,i){e&1&&gv$1(0,bi,17,12,"ng-container",0);},dependencies:[yt$a,le$9,oe$9,ae$7,ne$8,ie$8,oi$5,Qe$b,Xn$7,Vn$7,jt$8,q$b,O$b],styles:[".del-title[_ngcontent-%COMP%]{margin:0;padding:22px 25px 0;display:flex;align-items:center}.del-subtitle[_ngcontent-%COMP%]{padding:0 25px 20px;font-size:14px}.action[_ngcontent-%COMP%]{padding:12px 0}.delete-item[_ngcontent-%COMP%]{overflow:hidden}"]});}}return n})();function vi$1(n,c){if(n&1&&Vv$1(0,"mspot-field-message",6),n&2){let t=yM(2);jv$1("errors",t.form.controls.name.errors);}}function Ci$1(n,c){if(n&1){let t=fM();Hd$1(0),ta$3(1,"div")(2,"h1",1),QM(3),Pd$1(),ta$3(4,"div",2)(5,"form",3),Zv$1("ngSubmit",function(){sh$1(t);let i=yM();return ah$1(i.submit())}),ta$3(6,"mspot-field-wip")(7,"div",4),Vv$1(8,"input",5),iS(),Pd$1(),eM$1(9,vi$1,1,1,"mspot-field-message",6),Pd$1()()(),ta$3(10,"mspot-dialog-footer",7)(11,"button",8),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.dialogRef.close())}),QM(12),Pd$1(),ta$3(13,"button",9),EN(14,"formValid"),QM(15),Pd$1()()(),$d$1();}if(n&2){let t=c.$implicit,e=yM();uT(3),yD(t(e.data.title)),uT(2),jv$1("formGroup",e.form);let i=e.form.controls.name.touched&&e.form.controls.name.invalid;uT(2),jv$1("dataState",i?"error":"default"),uT(),Pv$1("aria-invalid",i?"true":null)("aria-describedby",i?"text-dialog-name-error":null),aS(),uT(),tM$1(i?9:-1),uT(3),Gd$1(" ",t("common.abort")," "),uT(),jv$1("mat-dialog-close",e.form.value)("disabled",CN(14,10,e.form)),uT(2),Gd$1(" ",e.data?.saveButton?t(e.data?.saveButton):t("common.create")," ");}}var rn$6=(()=>{class n{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9),this._fb=g$k(ii$5),this.form=this._fb.group({name:[this.data.value??"",[Ce$8.required,O$e.notOnlyWhitespace,Ce$8.minLength(1),Ce$8.maxLength(60)]]});}
649submit(){this.form.invalid||this.dialogRef.close(this.form.getRawValue());}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-text-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new","mb-6"],[1,""],[3,"ngSubmit","formGroup"],["mspotInputGroup","",1,"w-full",3,"dataState"],["mspotInput","","formControlName","name","placeholder","Name","aria-required","true"],["messageId","text-dialog-name-error","variant","error",3,"errors"],["variant","inline",1,"[&>*]:flex-1"],["mspot-button","","variant","secondary","color","default",3,"click"],["mspot-button","","variant","primary","color","default",3,"mat-dialog-close","disabled"]],template:function(e,i){e&1&&gv$1(0,Ci$1,16,12,"ng-container",0);},dependencies:[yt$a,oi$5,ei$5,Qe$b,Xn$7,Yn$6,Fn$7,Mn$6,oe$9,ae$7,ne$8,ie$8,jt$8,q$b,O$b,n$c],encapsulation:2});}}return n})();var sn$6=(()=>{class n{constructor(){this._defaultId=U$c("mspot-field-label"),this.htmlFor=X8(null),this.mspotFieldLabelRequired=X8(false),this.labelId=X8(void 0,{alias:"id"}),this.id=qd$1(()=>this.labelId()||this._defaultId),this.hostClass=qd$1(()=>mo$2("inline-flex items-center gap-1 text-sm font-medium leading-5 text-text-default",this.mspotFieldLabelRequired()?"after:ml-0.5 after:text-text-danger after:content-['*']":""));}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275dir=mt$d({type:n,selectors:[["label","mspotFieldLabel",""],["span","mspotFieldLabel",""]],hostVars:4,hostBindings:function(e,i){e&2&&(Pv$1("for",i.htmlFor())("id",i.id()),BM(i.hostClass()));},inputs:{htmlFor:[1,"htmlFor"],mspotFieldLabelRequired:[1,"mspotFieldLabelRequired"],labelId:[1,"id","labelId"]},exportAs:["mspotFieldLabel"]});}}return n})();function xi$1(n,c){if(n&1&&Vv$1(0,"mspot-field-message",6),n&2){let t=yM(2);jv$1("errors",t.form.controls.name.errors);}}function yi$1(n,c){if(n&1&&(Hd$1(0),ta$3(1,"h1",1),QM(2),Pd$1(),ta$3(3,"div")(4,"form",2)(5,"mspot-field-wip")(6,"label",3),QM(7,"Code"),Pd$1(),ta$3(8,"div",4),Vv$1(9,"input",5),iS(),Pd$1(),eM$1(10,xi$1,1,1,"mspot-field-message",6),Pd$1()()(),ta$3(11,"mspot-dialog-footer",7)(12,"button",8),QM(13),Pd$1(),ta$3(14,"button",9),EN(15,"formValid"),QM(16),Pd$1()(),$d$1()),n&2){let t=c.$implicit,e=yM();uT(2),yD(t("dialog.unlockTitle")),uT(2),jv$1("formGroup",e.form);let i=e.form.controls.name.touched&&e.form.controls.name.invalid;uT(4),jv$1("dataState",i?"error":"default"),uT(),Pv$1("aria-invalid",i?"true":null)("aria-describedby",i?"unlock-dialog-code-error":null),aS(),uT(),tM$1(i?10:-1),uT(2),jv$1("mat-dialog-close",void 0),uT(),Gd$1(" ",t("common.abort")," "),uT(),jv$1("mat-dialog-close",e.form.value)("disabled",CN(15,11,e.form)),uT(2),Gd$1(" ",t("common.confirm")," ");}}var ln$6=(()=>{class n{constructor(){this._fb=g$k(ii$5),this.form=this._fb.group({name:zD.ShortField});}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-unlock-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new","mb-4"],[3,"formGroup"],["mspotFieldLabel","","for","unlock-dialog-code"],["mspotInputGroup","",3,"dataState"],["mspotInput","","id","unlock-dialog-code","formControlName","name","autocomplete","off","placeholder","Code","type","password","aria-required","true"],["messageId","unlock-dialog-code-error","variant","error",3,"errors"],["variant","inline",1,"[&>*]:flex-1"],["mspot-button","","variant","secondary","color","default",3,"mat-dialog-close"],["mspot-button","","variant","primary","color","default",3,"mat-dialog-close","disabled"]],template:function(e,i){e&1&&gv$1(0,yi$1,17,13,"ng-container",0);},dependencies:[yt$a,oi$5,ei$5,Qe$b,Xn$7,Yn$6,Fn$7,Mn$6,ne$8,sn$6,ie$8,oe$9,ae$7,jt$8,q$b,O$b,n$c],encapsulation:2});}}return n})();function Di$1(n,c){n&1&&Bv$1(0,"div",2);}var Ti$1=new b$g("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var mn$6=(()=>{class n{_elementRef=g$k(gt$f);_ngZone=g$k(ge$b);_changeDetectorRef=g$k(Va$2);_renderer=g$k(Fr$6);_cleanupTransitionEnd;constructor(){let t=d$e(),e=g$k(Ti$1,{optional:true});this._isNoopAnimation=t==="di-disabled",t==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),this.mode=e.mode||this.mode);}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(t){this._color=t;}_color;_defaultColor="primary";get value(){return this._value}set value(t){this._value=cn$6(t||0),this._changeDetectorRef.markForCheck();}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(t){this._bufferValue=cn$6(t||0),this._changeDetectorRef.markForCheck();}_bufferValue=0;animationEnd=new Ct$h;get mode(){return this._mode}set mode(t){this._mode=t,this._changeDetectorRef.markForCheck();}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler);});}
649ngOnDestroy(){this._cleanupTransitionEnd?.();}_getPrimaryBarTransform(){return `scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return `${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}_transitionendHandler=t=>{this.animationEnd.observers.length===0||!t.target||!t.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}));};static \u0275fac=function(e){return new(e||n)};static \u0275cmp=qS({type:n,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(e,i){e&2&&(Pv$1("aria-valuenow",i._isIndeterminate()?null:i.value)("mode",i.mode),BM("mat-"+i.color),iD("_mat-animation-noopable",i._isNoopAnimation)("mdc-linear-progress--animation-ready",!i._isNoopAnimation)("mdc-linear-progress--indeterminate",i._isIndeterminate()));},inputs:{color:"color",value:[2,"value","value",mf$1],bufferValue:[2,"bufferValue","bufferValue",mf$1],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(e,i){e&1&&(jd$1(0,"div",0),Bv$1(1,"div",1),eM$1(2,Di$1,1,0,"div",2),Vd$1(),jd$1(3,"div",3),Bv$1(4,"span",4),Vd$1(),jd$1(5,"div",5),Bv$1(6,"span",4),Vd$1()),e&2&&(uT(),Ma$2("flex-basis",i._getBufferBarFlexBasis()),uT(),tM$1(i.mode==="buffer"?2:-1),uT(),Ma$2("transform",i._getPrimaryBarTransform()));},styles:[`.mat-mdc-progress-bar { 650 --mat-progress-bar-animation-multiplier: 1; 651 display: block; 652 text-align: start; 653} 654.mat-mdc-progress-bar[mode=query] { 655 transform: scaleX(-1); 656} 657.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots, 658.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar, 659.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar, 660.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner { 661 animation: none; 662} 663.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar, 664.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar { 665 transition: transform 1ms; 666} 667 668.mat-progress-bar-reduced-motion { 669 --mat-progress-bar-animation-multiplier: 2; 670} 671 672.mdc-linear-progress { 673 position: relative; 674 width: 100%; 675 transform: translateZ(0); 676 outline: 1px solid transparent; 677 overflow-x: hidden; 678 transition: opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); 679 height: max(var(--mat-progress-bar-track-height, 4px), var(--mat-progress-bar-active-indicator-height, 4px)); 680} 681@media (forced-colors: active) { 682 .mdc-linear-progress { 683 outline-color: CanvasText; 684 } 685} 686 687.mdc-linear-progress__bar {
688 position: absolute; 689 top: 0; 690 bottom: 0; 691 margin: auto 0; 692 width: 100%; 693 animation: none; 694 transform-origin: top left; 695 transition: transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); 696 height: var(--mat-progress-bar-active-indicator-height, 4px); 697} 698.mdc-linear-progress--indeterminate .mdc-linear-progress__bar { 699 transition: none; 700} 701[dir=rtl] .mdc-linear-progress__bar { 702 right: 0; 703 transform-origin: center right; 704} 705 706.mdc-linear-progress__bar-inner { 707 display: inline-block; 708 position: absolute; 709 width: 100%; 710 animation: none; 711 border-top-style: solid; 712 border-color: var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary)); 713 border-top-width: var(--mat-progress-bar-active-indicator-height, 4px); 714} 715 716.mdc-linear-progress__buffer { 717 display: flex; 718 position: absolute; 719 top: 0; 720 bottom: 0; 721 margin: auto 0; 722 width: 100%; 723 overflow: hidden; 724 height: var(--mat-progress-bar-track-height, 4px); 725 border-radius: var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none)); 726} 727 728.mdc-linear-progress__buffer-dots { 729 background-image: radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0); 730 background-repeat: repeat-x; 731 background-size: calc(calc(var(--mat-progress-bar-track-height, 4px) / 2) * 5); 732 background-position: left; 733 flex: auto; 734 transform: rotate(180deg); 735 animation: mdc-linear-progress-buffering calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear; 736} 737@media (forced-colors: active) { 738 .mdc-linear-progress__buffer-dots { 739 background-color: ButtonBorder; 740 } 741} 742[dir=rtl] .mdc-linear-progress__buffer-dots { 743 animation: mdc-linear-progress-buffering-reverse calc(250ms * var(--mat-progress-bar-animation-multiplier)) infinite linear; 744 transform: rotate(0); 745} 746 747.mdc-linear-progress__buffer-bar { 748 flex: 0 1 100%; 749 transition: flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); 750 background-color: var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)); 751} 752 753.mdc-linear-progress__primary-bar { 754 transform: scaleX(0); 755} 756.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar { 757 left: -145.166611%; 758} 759.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar { 760 animation: mdc-linear-progress-primary-indeterminate-translate calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 761} 762.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar > .mdc-linear-progress__bar-inner { 763 animation: mdc-linear-progress-primary-indeterminate-scale calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 764} 765[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar { 766 animation-name: mdc-linear-progress-primary-indeterminate-translate-reverse; 767} 768[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar { 769 right: -145.166611%; 770 left: auto; 771} 772 773.mdc-linear-progress__secondary-bar { 774 display: none; 775} 776.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar { 777 left: -54.888891%; 778 display: block; 779} 780.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar { 781 animation: mdc-linear-progress-secondary-indeterminate-translate calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 782} 783.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar > .mdc-linear-progress__bar-inner { 784 animation: mdc-linear-progress-secondary-indeterminate-scale calc(2s * var(--mat-progress-bar-animation-multiplier)) infinite linear; 785} 786[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar { 787 animation-name: mdc-linear-progress-secondary-indeterminate-translate-reverse; 788} 789[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar { 790 right: -54.888891%; 791 left: auto; 792} 793 794@keyframes mdc-linear-progress-buffering { 795 from { 796 transform: rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5)); 797 } 798} 799@keyframes mdc-linear-progress-primary-indeterminate-translate { 800 0% { 801 transform: translateX(0); 802 } 803 20% { 804 animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819); 805 transform: translateX(0); 806 } 807 59.15% { 808 animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352); 809 transform: translateX(83.67142%); 810 } 811 100% { 812 transform: translateX(200.611057%); 813 } 814} 815@keyframes mdc-linear-progress-primary-indeterminate-scale { 816 0% { 817 transform: scaleX(0.08); 818 } 819 36.65% { 820 animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1); 821 transform: scaleX(0.08); 822 } 823 69.15% { 824 animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1); 825 transform: scaleX(0.661479); 826 } 827 100% { 828 transform: scaleX(0.08); 829 } 830} 831@keyframes mdc-linear-progress-secondary-indeterminate-translate { 832 0% { 833 animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685); 834 transform: translateX(0); 835 } 836 25% { 837 animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712); 838 transform: translateX(37.651913%); 839 } 840 48.35% { 841 animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026); 842 transform: translateX(84.386165%); 843 } 844 100% { 845 transform: translateX(160.277782%); 846 } 847} 848@keyframes mdc-linear-progress-secondary-indeterminate-scale { 849 0% { 850 animation-timing-function: cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971); 851 transform: scaleX(0.08); 852 } 853 19.15% { 854 animation-timing-function: cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315); 855 transform: scaleX(0.457104); 856 } 857 44.15% { 858 animation-timing-function: cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179); 859 transform: scaleX(0.72796); 860 } 861 100% { 862 transform: scaleX(0.08); 863 } 864} 865@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse { 866 0% { 867 transform: translateX(0); 868 } 869 20% { 870 animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819); 871 transform: translateX(0); 872 } 873 59.15% { 874 animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352); 875 transform: translateX(-83.67142%); 876 } 877 100% { 878 transform: translateX(-200.611057%); 879 } 880} 881@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse { 882 0% { 883 animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685); 884 transform: translateX(0); 885 } 886 25% { 887 animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712); 888 transform: translateX(-37.651913%); 889 } 890 48.35% { 891 animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026); 892 transform: translateX(-84.386165%); 893 } 894 100% { 895 transform: translateX(-160.277782%); 896 } 897} 898@keyframes mdc-linear-progress-buffering-reverse { 899 from { 900 transform: translateX(-10px); 901 } 902} 903`],encapsulation:2})}return n})();function cn$6(n,c=0,t=100){return Math.max(c,Math.min(t,n))}var Yr$4=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({imports:[K$j]})}return n})();var dn$6=(()=>{class n{constructor(){this.progressData=g$k(Ze$9),this.progress=this.progressData;}set progress(t){this._progress=t;}get progress(){return this._progress}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-wait-dialog"]],decls:4,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mode","determinate",3,"value"]],template:function(e,i){e&1&&(ta$3(0,"h1",0),QM(1),Pd$1(),ta$3(2,"div",1),Vv$1(3,"mat-progress-bar",2),Pd$1()),e&2&&(uT(),yD(i.progress.title),uT(2),jv$1("value",i.progress.progress));},dependencies:[Nt$7,Vt$5,mn$6],encapsulation:2});}}return n})();function Si$1(n,c){if(n&1){let t=fM();Hd$1(0),ta$3(1,"h1",1),QM(2),Pd$1(),ta$3(3,"div",2),QM(4),Pd$1(),ta$3(5,"mspot-dialog-footer",3)(6,"button",4),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.dialogRef.close())}),QM(7),Pd$1(),ta$3(8,"button",5),QM(9),Pd$1(),ta$3(10,"button",6),QM(11),Pd$1()(),$d$1();}if(n&2){let t=c.$implicit,e=yM();uT(2),yD(t(e.data.title)),uT(2),Gd$1(" ",t(e.data.message)," "),uT(3),Gd$1(" ",t("common.abort")," "),uT(),jv$1("mat-dialog-close",false),uT(),Gd$1(" ",t(e.data.noText)," "),uT(),jv$1("mat-dialog-close",true),uT(),Gd$1(" ",t(e.data.yesText)," ");}}var pn$6=(()=>{class n{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9);}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=qS({type:n,selectors:[["mspot-yes-no-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new","mb-2","text-center"],[1,"text-text-default","text-center","text-sm"],["variant","inline",1,"[&>*]:flex-1"],["mspot-button","","variant","secondary","color","default",3,"click"],["mspot-button","","variant","secondary","color","default",3,"mat-dialog-close"],["mspot-button","","variant","primary","color","default",3,"mat-dialog-close"]],template:function(e,i){e&1&&gv$1(0,Si$1,12,7,"ng-container",0);},dependencies:[yt$a,jt$8,q$b,O$b],styles:[".dialog-content[_ngcontent-%COMP%]{margin-bottom:10px}"]});}}return n})();var un$6="first-tabbable";function fn$7(n,c=false){return c||n!==void 0&&n!==""}function P$7(n,c){return s$e(r$d({autoFocus:un$6,restoreFocus:true},c),{data:n})}function gn$6(n){return r$d({autoFocus:un$6,restoreFocus:true},n)}var Ss$2=(()=>{class n{constructor(){this._dialog=g$k(J$f);}delete({name:t,message:e,title:i="frontendDialogs.deleteManDialog.title",items:m=[],complex:g=false}){return this._openDeferred(an$3,P$7({complex:g,name:t,items:m,message:e,title:i},{panelClass:H$a.SIZE_420}),true).pipe(st$c(Boolean))}confirmAsync(t){return this._firstResult(this.confirm(t))}confirm(t){return this._openDeferred(Ye$4,P$7(t,{panelClass:H$a.SIZE_384}),true).pipe(st$c(Boolean))}confirmCancel(t){return this._openDeferred($t$6,P$7(t,{panelClass:H$a.SIZE_512}),true).pipe(st$c(Boolean))}unsavedChanges(){return this._openDeferred(Ye$4,P$7({title:"dialog.abortChangesTitle",message:"dialog.abortChangesText",confirmText:"text.discard",abortDataCy:"discard-changes-cancel-button",confirmDataCy:"discard-changes-discard-button"},{panelClass:H$a.SIZE_384,disableClose:true}),true).pipe(st$c(Boolean))}yesno(t,e,i="text.yes",m="text.no"){return this._openDeferred(pn$6,P$7({title:t,message:e,yesText:i,noText:m},{panelClass:H$a.SIZE_MD}),true)}create(t,e,i){return this._openDeferred(on$5,P$7(r$d({title:t,disableLinks:e},i),{panelClass:H$a.SIZE_384}))}text(t,e,i){return this._openDeferred(rn$6,P$7({title:t,value:e,saveButton:i},{panelClass:H$a.SIZE_384}))}unlock(){return this._openDeferred(ln$6,P$7(void 0,{panelClass:H$a.SIZE_MD,disableClose:true}))}wait(t){return this.openRef(dn$6,P$7(t,{panelClass:H$a.SIZE_MD,disableClose:true}))}open(t,e){let{data:i,dialogConfig:m,emitOnDismiss:g=false}=e??{};return this._openDeferred(t,P$7(i,m),g)}openAsync(t,e){return this._firstResult(this.open(t,e))}openRef(t,e){return this._dialog.open(t,gn$6(e))}closeAll(){this._dialog.closeAll();}_firstResult(t){return qE$1(t,{defaultValue:void 0})}_openAfterCurrentTick(t){return yI(null).pipe(sp$2(0),Kf$1(t))}
903_openDeferred(t,e,i=false){return this._openAfterCurrentTick(()=>this.openRef(t,e).afterClosed().pipe(Pt$b(m=>fn$7(m,i))))}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=L$l({token:n,factory:n.\u0275fac,providedIn:"root"});}}return n})();var dt$6={resettable:false,ttl:null,producerFn:void 0};function be$8(i){dt$6=r$d(r$d({},dt$6),i);}function Y$d(){return dt$6}function ie$7(){return dt$6.producerFn}var J$e=typeof window<"u";var nt$8=true;function Ae$5(){nt$8=false,J$e&&(delete window.$$stores,delete window.$$queries);}function y$a(){return nt$8}var X$a={type:null,entityIds:null,skip:false,payload:null},wt$c=false;function Tt$9(){wt$c=false;}function P$6(i,t,e){x$a(i,t,e),wt$c=true;}function x$a(i,t,e){wt$c===false&&(X$a.type=i,X$a.entityIds=t,X$a.payload=e);}function Ut$6(i,t){return function(e,r,s){let n=s.value;return s.value=function(...a){return P$6(i,t),n.apply(this,a)},s}}function C$3(i,t){return i.hasOwnProperty(t)}function E$a(i){return Array.isArray(i)}function ot$7(i){return i.hasOwnProperty("active")}function yt$9(i){return E$a(i)}function at$a({active:i,ids:t,entities:e}){return yt$9(i)?re$5(i,t):C$3(e,i)===false?null:i}function re$5(i,t){let e=i.filter(r=>t.indexOf(r)>-1);return e.length===i.length?i:e}function Ct$b({state:i,entities:t,idKey:e,options:r={},preAddEntity:s}){let n={},a=[],u=false;for(let c of t)if(C$3(i.entities,c[e])===false){let f=s(c),p=f[e];n[p]=f,r.prepend?a.unshift(p):a.push(p),u=true;}return u?{newState:s$e(r$d({},i),{entities:r$d(r$d({},i.entities),n),ids:r.prepend?[...a,...i.ids]:[...i.ids,...a]}),newIds:a}:null}function g$b(i){return i==null}function d$c(i){return g$b(i)?[]:Array.isArray(i)?i:[i]}function I$9(i){return E$a(i)?i.length===0:false}function h$5(i){return typeof i=="function"}function kt$8(){return pp$2((i,t)=>i===t?true:!E$a(i)||!E$a(t)?false:I$9(i)&&I$9(t)?true:i.length!==t.length?false:t.some((r,s)=>i[s]!==r)===false)}function N$4(i){let t=typeof i;return i!=null&&(t=="object"||t=="function")}function Pe$4(i){return _I(i).pipe(sp$2(0))}function $$b(i){return g$b(i)===false}var Ft$4=new le$d,ut$9=new gn$a(50,5e3),se$8=new le$d;function ne$7(i){Ft$4.next(i);}function oe$8(i){ut$9.next(i);}function ae$6(i,t){se$8.next({storeName:i,action:t});}var S$c={},Dt$7={};J$e&&(window.$$stores=S$c,window.$$queries=Dt$7);var gt$9=(function(i){return i.ASC="asc",i.DESC="desc",i})(gt$9||{});function Vt$4(i,t=gt$9.ASC){return function(e,r){if(!e.hasOwnProperty(i)||!r.hasOwnProperty(i))return 0;let s=typeof e[i]=="string"?e[i].toUpperCase():e[i],n=typeof r[i]=="string"?r[i].toUpperCase():r[i],a=0;return s>n?a=1:s<n&&(a=-1),t==gt$9.DESC?a*-1:a}}function Nt$6(i,t){let e=[],{ids:r,entities:s}=i,{filterBy:n,limitTo:a,sortBy:u,sortByOrder:c}=t;for(let p=0;p<r.length;p++){let m=s[r[p]];if(!n){e.push(m);continue}d$c(n).every(_=>_(m,p))&&e.push(m);}if(u){let p=h$5(u)?u:Vt$4(u,c);e=e.sort((m,b)=>p(m,b,i));}let f=Math.min(a||e.length,e.length);return f===e.length?e:e.slice(0,f)}function $t$5(i,t){let e={},{filterBy:r,limitTo:s}=t,{ids:n,entities:a}=i;if(!r&&!s)return a;let u=g$b(s)===false;if(r&&u){let c=0;for(let f=0,p=n.length;f<p&&c!==s;f++){let m=n[f],b=a[m];d$c(r).every(_=>_(b,f))&&(e[m]=b,c++);}}else {let c=Math.min(s||n.length,n.length);for(let f=0;f<c;f++){let p=n[f],m=a[p];if(!r){e[p]=m;continue}d$c(r).every(A=>A(m,f))&&(e[p]=m);}}return e}var K$c=(function(i){return i.Set="Set",i.Add="Add",i.Update="Update",i.Remove="Remove",i})(K$c||{});function Bt$5(i,t,e){let r;if(E$a(i))r=i;else if(N$4(i)){if(g$b(e))return;i=Object.assign({wrap:true},i);let s=t.indexOf(e);if(i.prev){let n=s===0;if(n&&!i.wrap)return;r=n?t[t.length-1]:t[s-1];}else if(i.next){let n=t.length===s+1;if(n&&!i.wrap)return;r=n?t[0]:t[s+1];}}else {if(i===e)return;r=i;}return r}var jt$6=()=>({entities:{},ids:[],loading:true,error:null});function w$8(i){return i===void 0}function Kt$6({state:i,ids:t}){if(g$b(t))return ce$7(i);let e=i.entities,r={};for(let n of i.ids)t.includes(n)===false&&(r[n]=e[n]);let s=s$e(r$d({},i),{entities:r,ids:i.ids.filter(n=>t.includes(n)===false)});return ot$7(i)&&(s.active=at$a(s)),s}function ce$7(i){return s$e(r$d({},i),{entities:{},ids:[],active:yt$9(i.active)?[]:null})}function Ot$5(i,t,e){let r={entities:{},ids:[]};for(let s of i){let n=e(s);r.entities[n[t]]=n,r.ids.push(n[t]);}return r}function fe$6(i){return i.entities&&i.ids}function he$8(i,t){let e={};for(let r of Object.keys(i))e[r]=t(i[r]);return e}function Lt$6({state:i,entities:t,idKey:e,preAddEntity:r,isNativePreAdd:s}){let n,a;if(E$a(t)){let c=Ot$5(t,e,r);n=c.entities,a=c.ids;}else fe$6(t)?(n=s?t.entities:he$8(t.entities,r),a=t.ids):(n=s?t:he$8(t,r),a=Object.keys(n).map(c=>isNaN(c)?c:Number(c)));let u=s$e(r$d({},i),{entities:n,ids:a,loading:false});return ot$7(i)&&(u.active=at$a(u)),u}function Mt$7(i){Object.freeze(i);let t=typeof i=="function",e=Object.prototype.hasOwnProperty;
903return Object.getOwnPropertyNames(i).forEach(function(r){e.call(i,r)&&(!t||r!=="caller"&&r!=="callee"&&r!=="arguments")&&i[r]!==null&&(typeof i[r]=="object"||typeof i[r]=="function")&&!Object.isFrozen(i[r])&&Mt$7(i[r]);}),i}function pe$9(i,t){i||console.error(`@StoreConfig({ name }) is missing in ${t}`);}function k$c(i){return i!=null&&`${i}`!="false"}function G$c(i){return k$c(i)&&i.constructor.name==="Object"}var Q$8="akitaConfig";function we$8(i){return function(t){t[Q$8]={idKey:"id"};for(let e=0,r=Object.keys(i);e<r.length;e++){let s=r[e];s==="name"?t[Q$8].storeName=i[s]:t[Q$8][s]=i[s];}}}var Te$8=new le$d,le$8=new Gr$6(false),B$d={activeTransactions:0,batchTransaction:null};function me$8(){xt$8()||(B$d.batchTransaction=new le$d),B$d.activeTransactions++,le$8.next(true);}function de$7(){--B$d.activeTransactions===0&&(B$d.batchTransaction.next(true),B$d.batchTransaction.complete(),le$8.next(false),Te$8.next(true));}function xt$8(){return B$d.activeTransactions>0}function Ht$6(){return B$d.batchTransaction?B$d.batchTransaction.asObservable():yI(true)}function q$a(i,t=void 0){me$8();try{return i.apply(t)}finally{P$6("@Transaction"),de$7();}}function Et$8(){return function(i,t,e){let r=e.value;return e.value=function(...s){return q$a(()=>r.apply(this,s),this)},e}}function Ue$5(i){return function(t){return t.pipe(Ip$1(e=>q$a(()=>i(e))))}}var Z$6=class Z{constructor(t,e={}){this.options=e,this.inTransaction=false,this.cache={active:new Gr$6(false),ttl:null},this.onInit(t);}setLoading(t=false){t!==this._value().loading&&(y$a()&&x$a("Set Loading"),this._setState(e=>s$e(r$d({},e),{loading:t})));}setHasCache(t,e={restartTTL:false}){if(t!==this.cache.active.value&&this.cache.active.next(t),e.restartTTL){let r=this.getCacheTTL();r&&(this.cache.ttl!==null&&clearTimeout(this.cache.ttl),this.cache.ttl=setTimeout(()=>this.setHasCache(false),r));}}getValue(){return this.storeValue}setError(t){t!==this._value().error&&(y$a()&&x$a("Set Error"),this._setState(e=>s$e(r$d({},e),{error:t})));}_select(t){return this.store.asObservable().pipe(st$c(e=>t(e.state)),pp$2())}_value(){return this.storeValue}_cache(){return this.cache.active}get config(){return this.constructor[Q$8]||{}}get storeName(){return this.config.storeName||this.options.storeName||this.options.name}get deepFreeze(){return this.config.deepFreezeFn||this.options.deepFreezeFn||Mt$7}get cacheConfig(){return this.config.cache||this.options.cache}get _producerFn(){return this.config.producerFn||this.options.producerFn||ie$7()}get resettable(){return $$b(this.config.resettable)?this.config.resettable:this.options.resettable}_setState(t,e=true){if(h$5(t)){let r=t(this._value());this.storeValue=nt$8?this.deepFreeze(r):r;}else this.storeValue=t;if(!this.store){this.store=new Gr$6({state:this.storeValue}),y$a()&&this.store.subscribe(({action:r})=>{r&&ae$6(this.storeName,r);});return}if(xt$8()){this.handleTransaction();return}this.dispatch(this.storeValue,e);}reset(){this.isResettable()&&(y$a()&&x$a("Reset"),this._setState(()=>Object.assign({},this._initialState)),this.setHasCache(false));}update(t){y$a()&&x$a("Update");let e,r=this._value();h$5(t)?e=h$5(this._producerFn)?this._producerFn(r,t):t(r):e=t;let s=this.akitaPreUpdate(r,r$d(r$d({},r),e)),n=G$c(r)?s:new r.constructor(s);this._setState(n);}updateStoreConfig(t){this.options=r$d(r$d({},this.options),t);}akitaPreUpdate(t,e){return e}destroy(){!(J$e&&window.hmrEnabled)&&this===S$c[this.storeName]&&(delete S$c[this.storeName],ne$7(this.storeName),this.setHasCache(false),this.cache.active.complete(),this.store.complete());}onInit(t){S$c[this.storeName]=this,this._setState(()=>t),oe$8(this.storeName),this.isResettable()&&(this._initialState=t),y$a()&&pe$9(this.storeName,this.constructor.name);}dispatch(t,e=true){let r;e&&(r=X$a,Tt$9()),this.store.next({state:t,action:r});}watchTransaction(){Ht$6().subscribe(()=>{this.inTransaction=false,this.dispatch(this._value());});}isResettable(){return this.resettable===false?false:this.resettable||Y$d().resettable}handleTransaction(){this.inTransaction||(this.watchTransaction(),this.inTransaction=true);}getCacheTTL(){return this.cacheConfig&&this.cacheConfig.ttl||Y$d().ttl}};
903function Rt$8({state:i,ids:t,idKey:e,newStateOrFn:r,preUpdateEntity:s,producerFn:n,onEntityIdChanges:a}){let u={},c=false,f;for(let A of t){if(C$3(i.entities,A)===false)continue;let _=i.entities[A],F;h$5(r)?F=h$5(n)?n(_,r):r(_):F=r;let ft=F.hasOwnProperty(e)&&F[e]!==_[e],pt;f=A,ft&&(c=true,f=F[e]);let _t=r$d(r$d({},_),F);G$c(_)?pt=_t:G$c(F)?pt=new _.constructor(_t):pt=new F.constructor(_t),u[f]=s(_,pt);}let p=i.ids,m=i.entities;if(c){let[A]=t,b=i.entities,{[A]:_}=b;m=v$m(b,[u$e(A)]),p=i.ids.map(ft=>ft===A?f:ft),a(A,f);}return s$e(r$d({},i),{entities:r$d(r$d({},m),u),ids:p})}var ye$9,z$f=class i extends Z$6{constructor(t={},e={}){super(r$d(r$d({},jt$6()),t),e),this.options=e,this.entityActions=new le$d,this.entityIdChanges=new le$d;}get selectEntityAction$(){return this.entityActions.asObservable()}get selectEntityIdChanges$(){return this.entityIdChanges.asObservable()}get idKey(){return this.config.idKey||this.options.idKey||"id"}set(t,e={}){if(g$b(t))return;y$a()&&x$a("Set Entity");let r=this.akitaPreAddEntity===i.prototype.akitaPreAddEntity;this.setHasCache(true,{restartTTL:true}),this._setState(s=>{let n=Lt$6({state:s,entities:t,idKey:this.idKey,preAddEntity:this.akitaPreAddEntity.bind(this),isNativePreAdd:r});return w$8(e.activeId)===false&&(n.active=e.activeId),n}),this.hasInitialUIState()&&this.handleUICreation(),this.entityActions.next({type:K$c.Set,ids:this.ids});}add(t,e={loading:false}){let r=d$c(t);if(I$9(r))return;let s=Ct$b({state:this._value(),preAddEntity:this.akitaPreAddEntity.bind(this),entities:r,idKey:this.idKey,options:e});s&&(y$a()&&x$a("Add Entity"),s.newState.loading=e.loading,this._setState(()=>s.newState),this.hasInitialUIState()&&this.handleUICreation(true),this.entityActions.next({type:K$c.Add,ids:s.newIds}
903));}update(t,e){if(w$8(e)){super.update(t);return}let r=[];if(h$5(t)?r=this.ids.filter(n=>t(this.entities[n])):r=g$b(t)?this.ids:d$c(t),I$9(r))return;y$a()&&x$a("Update Entity",r);let s;this._setState(n=>Rt$8({idKey:this.idKey,ids:r,preUpdateEntity:this.akitaPreUpdateEntity.bind(this),state:n,newStateOrFn:e,producerFn:this._producerFn,onEntityIdChanges:(a,u)=>{s={oldId:a,newId:u},this.entityIdChanges.next(s$e(r$d({},s),{pending:true}));}})),s&&this.entityIdChanges.next(s$e(r$d({},s),{pending:false})),this.entityActions.next({type:K$c.Update,ids:r});}upsert(t,e,r,s={}){let n=d$c(t),a=m=>b=>C$3(this.entities,b)===m,u=h$5(r)?s.baseClass:r?r.baseClass:void 0,c=h$5(u),f=n.filter(a(true)),p=n.filter(a(false)).map(m=>{let b=typeof e=="function"?e({}):e,A=h$5(r)?r(m,b):b,_=s$e(r$d({},A),{[this.idKey]:m});return c?new u(_):_});this.update(f,e),this.add(p),y$a()&&P$6("Upsert Entity");}upsertMany(t,e={}){let r=[],s=[],n={};for(let a of t){let u=this.akitaPreCheckEntity(a),c=u[this.idKey];if(C$3(this.entities,c)){let f=this._value().entities[c],p=r$d(r$d({},this._value().entities[c]),u),m=e.baseClass?new e.baseClass(p):p,b=this.akitaPreUpdateEntity(f,m),A=b[this.idKey];n[A]=b,s.push(A);}else {let f=e.baseClass?new e.baseClass(u):u,p=this.akitaPreAddEntity(f),m=p[this.idKey];r.push(m),n[m]=p;}}y$a()&&P$6("Upsert Many"),this._setState(a=>s$e(r$d({},a),{ids:r.length?[...a.ids,...r]:a.ids,entities:r$d(r$d({},a.entities),n),loading:!!e.loading})),s.length&&this.entityActions.next({type:K$c.Update,ids:s}),r.length&&this.entityActions.next({type:K$c.Add,ids:r}),r.length&&this.hasUIStore()&&this.handleUICreation(true);}replace(t,e){let r=d$c(t);if(I$9(r))return;let s={};for(let n of r)s[n]=s$e(r$d({},e),{[this.idKey]:n});y$a()&&x$a("Replace Entity",t),this._setState(n=>s$e(r$d({},n),{entities:r$d(r$d({},n.entities),s)}));}move(t,e){let r=this.ids.slice();r.splice(e<0?r.length+e:e,0,r.splice(t,1)[0]),y$a()&&x$a("Move Entity"),this._setState(s=>s$e(r$d({},s),{entities:r$d({},s.entities),ids:r}));}remove(t){if(I$9(this.ids))return;let e=$$b(t),r=[];h$5(t)?r=this.ids.filter(s=>t(this.entities[s])):r=e?d$c(t):this.ids,!I$9(r)&&(y$a()&&x$a("Remove Entity",r),this._setState(s=>Kt$6({state:s,ids:r})),e||this.setHasCache(false),this.handleUIRemove(r),this.entityActions.next({type:K$c.Remove,ids:r}));}updateActive(t){let e=d$c(this.active);y$a()&&x$a("Update Active",e),this.update(e,t);}setActive(t){let e=Bt$5(t,this.ids,this.active);e!==void 0&&(y$a()&&x$a("Set Active",e),this._setActive(e));}addActive(t){let e=d$c(t);I$9(e)||e.every(s=>this.active.indexOf(s)>-1)||(y$a()&&x$a("Add Active",t),this._setState(s=>{let n=Array.from(new Set([...s.active,...e]));return s$e(r$d({},s),{active:n})}));}removeActive(t){let e=d$c(t);I$9(e)||!e.some(s=>this.active.indexOf(s)>-1)||(y$a()&&x$a("Remove Active",t),this._setState(s=>s$e(r$d({},s),{active:Array.isArray(s.active)?s.active.filter(n=>e.indexOf(n)===-1):null})));}toggleActive(t){let e=d$c(t),r=a=>u=>this.active.includes(u)===a,s=e.filter(r(true)),n=e.filter(r(false));this.removeActive(s),this.addActive(n),y$a()&&P$6("Toggle Active");}createUIStore(t={},e={}){let r={name:`UI/${this.storeName}`,idKey:this.idKey};return this.ui=new ct$5(t,r$d(r$d({},r),e)),this.ui}destroy(){super.destroy(),this.ui instanceof i&&this.ui.destroy(),this.entityActions.complete();}akitaPreUpdateEntity(t,e){return e}akitaPreAddEntity(t){return t}akitaPreCheckEntity(t){return t}get ids(){return this._value().ids}get entities(){return this._value().entities}get active(){return this._value().active}_setActive(t){this._setState(e=>s$e(r$d({},e),{active:t}));}handleUICreation(t=false){let e=this.ids,r=h$5(this.ui._akitaCreateEntityFn),s,n=a=>{let u=this.entities[a],c=r?this.ui._akitaCreateEntityFn(u):this.ui._akitaCreateEntityFn;return r$d({[this.idKey]:u[this.idKey]},c)};t?s=this.ids.filter(a=>w$8(this.ui.entities[a])).map(n):s=e.map(n),t?this.ui.add(s):this.ui.set(s);}hasInitialUIState(){return this.hasUIStore()&&w$8(this.ui._akitaCreateEntityFn)===false}handleUIRemove(t){this.hasUIStore()&&this.ui.remove(t);}hasUIStore(){return this.ui instanceof ct$5}};k0([Et$8(),F0("design:type",Function),F0("design:paramtypes",[Object,Object,Object,Object]),F0("design:returntype",void 0)],z$f.prototype,"upsert",null);k0([Et$8(),F0("design:type",Function),F0("design:paramtypes",[typeof(ye$9=typeof T<"u"&&T)=="function"?ye$9:Object]),F0("design:returntype",void 0)],z$f.prototype,"toggleActive",null);var ct$5=class ct extends z$f{constructor(t={},e={}){super(t,e);}setInitialEntityState(t){this._akitaCreateEntityFn=t;}};function Qt$6(){return Pt$b(i=>i!=null)}function ge$5(i){return function(t,e){let r=h$5(i[0]);return i.some(s=>r?s(t)!==s(e):t[s]!==e[s])===false}}function O$a(i){return typeof i=="string"}var qt$4="akitaQueryConfig";var tt$7=class tt{constructor(t){this.store=t,this.__store__=t,y$a()&&(Dt$7[t.storeName]=this);}select(t){let e;if(h$5(t))e=t;else if(O$a(t))e=r=>r[t];else {if(Array.isArray(t))return this.store._select(r=>r).pipe(pp$2(ge$5(t)),st$c(r=>h$5(t[0])?t.map(s=>s(r)):t.reduce((s,n)=>(s[n]=r[n],s),{})));e=r=>r;}return this.store._select(e)}selectLoading(){return this.select(t=>t.loading)}selectError(){return this.select(t=>t.error)}getValue(){return this.store._value()}selectHasCache(){return this.store._cache().asObservable()}getHasCache(){return this.store._cache().value}get config(){return this.constructor[qt$4]}};function xe$5(i,t){for(let e of Object.keys(t))if(i(t[e])===true)return e}function zt$4(i,t){return function(e){let r=e[i];if(!w$8(r))return t?O$a(t)?r[t]:t(r):r}}function Ee$6(i,t){return i.reduce((e,r,s,n)=>{let a=t(r,s,n);return a!==void 0&&e.push(a),e},[])}function Wt$6(i,t){i.sortBy=i.sortBy||t&&t.sortBy,i.sortByOrder=i.sortByOrder||t&&t.sortByOrder;}var et$9=class et extends tt$7{constructor(t,e={}){super(t),this.options=e,this.__store__=t;}selectAll(t={asObject:false}){return this.select(e=>e.entities).pipe(st$c(()=>this.getAll(t)))}getAll(t={asObject:false,filterBy:void 0,limitTo:void 0}){return t.asObject?$t$5(this.getValue(),t):(Wt$6(t,this.config||this.options),Nt$6(this.getValue(),t))}selectMany(t,e){return !t||!t.length?yI([]):this.select(r=>r.entities).pipe(st$c(r=>Ee$6(t,s=>zt$4(s,e)(r))),kt$8())}selectEntity(t,e){let r=t;return h$5(t)&&(r=xe$5(t,this.getValue().entities)),this.select(s=>s.entities).pipe(st$c(zt$4(r,e)),pp$2())}getEntity(t){return this.getValue().entities[t]}selectActiveId(){return this.select(t=>t.active)}getActiveId(){return this.getValue().active}selectActive(t){return E$a(this.getActive())?this.selectActiveId().pipe(Kf$1(e=>this.selectMany(e,t))):this.selectActiveId().pipe(Kf$1(e=>this.selectEntity(e,t)))}getActive(){let t=this.getActiveId();return E$a(t)?t.map(e=>this.getValue().entities[e]):k$c(t)?this.getEntity(t):void 0}selectCount(t){return this.select(e=>e.entities).pipe(st$c(()=>this.getCount(t)))}getCount(t){return h$5(t)?this.getAll().filter(t).length:this.getValue().ids.length}selectLast(t){return this.selectAt(e=>e[e.length-1],t)}selectFirst(t){return this.selectAt(e=>e[0],t)}selectEntityAction(t){if(g$b(t))return this.store.selectEntityAction$;let e=E$a(t)?s=>s:({ids:s})=>s,r=d$c(t);return this.store.selectEntityAction$.pipe(Pt$b(({type:s})=>r.includes(s)),st$c(s=>e(s)))}hasEntity(t){return g$b(t)?this.getValue().ids.length>0:h$5(t)?this.getAll().some(t):E$a(t)?t.every(e=>e in this.getValue().entities):t in this.getValue().entities}hasActive(t){let e=this.getValue().active,r=$$b(t);return Array.isArray(e)?r?e.includes(t):e.length>0:r?e===t:$$b(e)}createUIQuery(){this.ui=new St$7(this.__store__.ui);}selectAt(t,e){return this.select(r=>r.ids).pipe(st$c(t),pp$2(),Kf$1(r=>this.selectEntity(r,e)))}},St$7=class St extends et$9{constructor(t){super(t);}};function it$7(i,t){return t.split(".").length===1?i:t.split(".").slice(1).join(".").split(".").reduce((r,s)=>r&&r[s],i)}function ht$7(i,t,e,r=false){let s=t.split(".");if(s.length===1)return r$d(r$d({},i),e);
903i=r$d({},i);let n=s.length-2;return t.split(".").slice(1).reduce((u,c,f)=>f!==n?(u[c]=r$d({},u[c]),u&&u[c]):(u[c]=r||Array.isArray(u[c])||!N$4(u[c])?e:r$d(r$d({},u[c]),e),u&&u[c]),i),i}new gn$a(1);var L$a=class L{constructor(t,e){this.query=t,e&&e.resetFn&&Y$d().resettable&&this.onReset(e.resetFn);}getQuery(){return this.query}getStore(){return this.getQuery().__store__}isEntityBased(t){return k$c(t)}selectSource(t,e){return this.isEntityBased(t)?this.getQuery().selectEntity(t).pipe(Qt$6()):e?this.getQuery().select(r=>it$7(r,this.withStoreName(e))):this.getQuery().select()}getSource(t,e){if(this.isEntityBased(t))return this.getQuery().getEntity(t);let r=this.getQuery().getValue();return e?it$7(r,this.withStoreName(e)):r}withStoreName(t){return `${this.storeName}.${t}`}get storeName(){return this.getStore().storeName}updateStore(t,e,r,s=false){if(this.isEntityBased(e)){let n=this.getStore();s?n.replace(e,t):n.update(e,t);}else {if(r){this.getStore()._setState(a=>ht$7(a,this.withStoreName(r),t,true));return}let n=s?t:a=>r$d(r$d({},a),t);this.getStore()._setState(n);}}onReset(t){let e=this.getStore().reset;this.getStore().reset=(...r)=>{setTimeout(()=>{e.apply(this.getStore(),r),t();});};}};var Ve$6={pagesControls:false,range:false,startWith:1,cacheTimeout:void 0,clearStoreWithCache:true},bt$a=class bt extends L$a{constructor(t,e={}){super(t,{resetFn:()=>{this.initial=false,this.destroy({clearCache:true,currentPage:1});}}),this.query=t,this.config=e,this.metadata=new Map,this.pages=new Map,this.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]},this.initial=true,this.isLoading$=this.query.selectLoading().pipe(fp$1(0)),this.config=r$d(r$d({},Ve$6),e);let{startWith:r,cacheTimeout:s}=this.config;this.page=new Gr$6(r),DI(s)&&(this.clearCacheSubscription=s.subscribe(()=>this.clearCache()));}get pageChanges(){return this.page.asObservable()}get currentPage(){return this.pagination.currentPage}get isFirst(){return this.currentPage===1}get isLast(){return this.currentPage===this.pagination.lastPage}withControls(){return this.config.pagesControls=true,this}withRange(){return this.config.range=true,this}setLoading(t=true){this.getStore().setLoading(t);}update(t){this.pagination=t,this.addPage(t.data);}addPage(t){this.pages.set(this.currentPage,{ids:t.map(e=>e[this.getStore().idKey])}),this.getStore().upsertMany(t);}clearCache(t={}){this.initial||(P$6("@Pagination - Clear Cache"),t.clearStore!==false&&(this.config.clearStoreWithCache||t.clearStore)&&this.getStore().remove(),this.pages=new Map,this.metadata=new Map),this.initial=false;}clearPage(t){this.pages.delete(t);}destroy({clearCache:t,currentPage:e}={}){this.clearCacheSubscription&&this.clearCacheSubscription.unsubscribe(),t&&this.clearCache(),w$8(e)||this.setPage(e),this.initial=true;}isPageActive(t){return this.currentPage===t}setPage(t){(t!==this.currentPage||!this.hasPage(t))&&this.page.next(this.pagination.currentPage=t);}nextPage(){this.currentPage!==this.pagination.lastPage&&this.setPage(this.pagination.currentPage+1);}prevPage(){this.pagination.currentPage>1&&this.setPage(this.pagination.currentPage-1);}setLastPage(){this.setPage(this.pagination.lastPage);}setFirstPage(){this.setPage(1);}hasPage(t){return this.pages.has(t)}getPage(t){let e=this.pagination.currentPage;return this.hasPage(e)?this.selectPage(e):(this.setLoading(true),je$e(t()).pipe(Kf$1(r=>(e=r.currentPage,q$a(()=>{this.setLoading(false),this.update(r);}),this.selectPage(e)))))}getQuery(){return this.query}refreshCurrentPage(){g$b(this.currentPage)===false&&(this.clearPage(this.currentPage),this.setPage(this.currentPage));}getFrom(){return this.isFirst?1:(this.currentPage-1)*this.pagination.perPage+1}getTo(){return this.isLast?this.pagination.total:this.currentPage*this.pagination.perPage}selectPage(t){return this.query.selectAll({asObject:true}).pipe(hn$9(1),st$c(e=>{let r=s$e(r$d({},this.pagination),{data:this.pages.get(t).ids.map(a=>e[a])}),{range:s,pagesControls:n}=this.config;return isNaN(this.pagination.total)&&(r.lastPage===1?r.total=r.data?r.data.length:0:r.total=r.perPage*r.lastPage,this.pagination.total=r.total),s&&(r.from=this.getFrom(),r.to=this.getTo()),n&&(r.pageControls=Ne$8(this.pagination.total,this.pagination.perPage)),r}))}};k0([Ut$6("@Pagination - New Page"),F0("design:type",Function),F0("design:paramtypes",[Object]),F0("design:returntype",void 0)],bt$a.prototype,"update",null);function Ne$8(i,t){let e=Math.ceil(i/t),r=[];for(let s=0;s<e;s++)r.push(s+1);return r}function Be$7(i){i=Object.assign({},{exclude:[]},i);let e=Object.keys(S$c);q$a(()=>{for(let r of e){let s=S$c[r];i.exclude?i.exclude.indexOf(s.storeName)===-1&&s.reset():s.reset();}});}var Jt$6=(function(i){return i.Update="UPDATE",i})(Jt$6||{});({[Jt$6.Update]:"update"});var j$d=(function(i){return i.Update="UPDATE",i.AddEntities="ADD_ENTITIES",i.SetEntities="SET_ENTITIES",i.UpdateEntities="UPDATE_ENTITIES",i.RemoveEntities="REMOVE_ENTITIES",i.UpsertEntities="UPSERT_ENTITIES",i.UpsertManyEntities="UPSERT_MANY_ENTITIES",i})(j$d||{});({[j$d.Update]:"update",[j$d.AddEntities]:"add",[j$d.SetEntities]:"set",[j$d.UpdateEntities]:"update",[j$d.RemoveEntities]:"remove",[j$d.UpsertEntities]:"upsert",[j$d.UpsertManyEntities]:"upsertMany"});var S$b=(()=>{let t=class o extends Z$6{constructor(){super({}),this.setLoading(true);}static{this.\u0275fac=function(r){return new(r||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}};return t=k0([we$8({name:"school-user",resettable:true,cache:{ttl:6e4}}),F0("design:paramtypes",[])],t),t})();var M$a=(()=>{class t extends tt$7{constructor(){super(g$k(S$b));}getCinemaMode(){return this.getValue()?.userSettings?.cinemaMode}selectAutoPlay(){return this.select(e=>e?.userSettings?.autoPlay).pipe(pp$2())}selectDarkTheme(){return this.select(e=>e.userSettings?.darkTheme)}selectLastVisitorId(){return this.select(e=>e?.lastVisitorId).pipe(pp$2())}
903selectSpaces(){return this.select(e=>e.spaceAccess)}selectComLegalConsent(){return this.select(e=>e.comLegalConsent)}selectCanManageDmReachability(){return this.select(e=>!!e.isModerator||!!e.linkedToAdmin)}selectAfterLoading(){return this.selectLoading().pipe(Pt$b(e=>!e),Kf$1(()=>this.select()))}selectIsDemoUserForCourse(e){return this.select().pipe(st$c(r=>{if(!r)return false;let n=r?.hasCourses?.find(g=>g.courseId===e);return n?!!n.isFromInternalOffer:false}))}selectPreferredCourseView(){return this.select(e=>e?.userSettings?.preferredCourseView)}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var d$b=(()=>{let r=class e extends Z$6{constructor(){super({}),this.setLoading(true);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}};return r=k0([we$8({name:"memberarea"}),F0("design:paramtypes",[])],r),r})();var f$8=(()=>{class t extends tt$7{constructor(){super(g$k(d$b));}selectAfterLoading(){return _I([this.select(),this.selectLoading()]).pipe(Pt$b(([,e])=>!e),st$c(([e])=>e))}getSchoolId(){return this.getValue()?.schoolId}getSchoolName(){return this.getValue()?.schoolName}getVideoBucketName(){return this.getValue()?.videoBucket}selectSchoolId(){return this.select(e=>e.schoolId).pipe(Pt$b(e=>!!e))}selectLogoUrl(){return this.select(e=>e.logoUrl)}selectHasGoogleLogin(){return this.select(e=>e?.hasGoogleLogin)}selectClientMfaEnabled(){return this.select(e=>!!e?.clientMfaEnabled)}selectClientLoginBackground(){return this.select(e=>e?.clientLoginBackground)}selectNoLoginBg(){return this.select(e=>e?.noLoginBg)}selectTheme(){return this.select(e=>e?.theme)}selectCustomView(){return this.select(e=>e?.customView)}selectHasAi(){return this.select(e=>e?.hasAiFeatures)}selectLang(){return this.select(e=>e?.customView?.languageMA)}selectFingerprint(){return this.select(e=>e?.fingerprint)}selectUserChatEnabled(){return this.select(e=>!!e?.userChatEnabled)}selectStripeConnectPortalEnabled(){return this.select(e=>!!e?.stripeConnectPortalEnabled)}selectChatMode(){return this.select(e=>e?.chatMode)}selectStartpageId(){return this.select(e=>e?.customView?.startDashboardId)}static{this.\u0275fac=function(a){return new(a||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var t$8={UPDATE_LAST_LOGIN:(s,e)=>({url:`/school-users/lastlogin/${s}`,method:b$e.PATCH,data:e}),FINGERPRINT:(s,e)=>({url:`/school-users/fingerprint/${s}`,method:b$e.POST,data:e}),REGISTER_DEVICE:(s,e)=>({url:`/school-users/register-device/${s}`,method:b$e.PATCH,data:e}),REMOVE_DEVICE:(s,e)=>({url:`/school-users/remove-device/${s}`,method:b$e.PATCH,data:e}),UPDATE_SETTINGS:(s,e)=>({url:`/school-users/update-settings/${s}`,data:e,method:b$e.PATCH}),UPDATE_PROFILE_PICTURE:(s,e)=>({url:`/school-users/update-profile-picture/${s}`,data:e,method:b$e.PATCH}),UPDATE_COURSE_PROGRESS:s=>({url:"/school-users/update-course-progress",data:s,method:b$e.PATCH}),UPDATE_CHAPTER_PROGRESS:s=>({url:"/school-user-progress/update-chapter-progress",data:s,method:b$e.PATCH}),UPDATE_POST_PROGRESS:s=>({url:"/school-user-progress/update-post-progress",data:s,method:b$e.PATCH}),UPDATE_POST_PROGRESS_EXTRAS:s=>({url:"/school-user-progress/update-post-progress-extras",data:s,method:b$e.PATCH}),POST_STATE:s=>({url:"/school-user-progress/post-state",data:s,method:b$e.POST}),SUBMIT_USER_PROPERTIES_LESSON:(s,e,r,E,u)=>({url:`/school-user-progress/user-properties-lesson/${s}/${e}/${r}/${E}`,data:u,method:b$e.POST}),GET_USER_PROPERTIES_LESSON:(s,e,r,E)=>({url:`/school-user-progress/user-properties-lesson/${s}/${e}/${r}/${E}`,method:b$e.GET}),GET_COURSE_PROGRESS:s=>({url:`/school-user-progress/course-progress/${s.schoolId}/${s.courseId}`,method:b$e.GET}),GET_CHAPTER_PROGRESS:s=>({url:`/school-user-progress/chapter-progress/${s.schoolId}/${s.courseId}/${s.chapterId}`,method:b$e.GET}),REGISTER_MEMBER:s=>`/school-users/register/${s}`,CLAIM_OFFER:(s,e)=>({url:`/school-users/claim-offer/${s}/${e}`,method:b$e.POST}),UNSUBSCRIBE:(s,e)=>({url:`/school-users/unsubscribe/${s}`,data:e,method:b$e.POST_UNAUTH}),GET_USER_DEVICES:s=>({url:`/school-users/devices/${s}`,method:b$e.GET})},l$6=Object.freeze({USER:t$8});var H$9=new b$g("stream of page visibility",{providedIn:"root",factory:z$e}),T$a=null;function z$e(){if(!T$a){let r=g$k(Te$g);T$a=cc$1(r,"visibilitychange").pipe(st$c(()=>r.visibilityState!=="hidden"),pp$2(),$I(i=>i.pipe(fp$1(500))),Li$2());}return T$a.pipe(Qf$1(true))}var Y$c=(()=>
903{class r{constructor(){this._maQuery=g$k(f$8),this.schoolChanged$=this._maQuery.selectSchoolId().pipe(pp$2(),gp$1(),st$c(([,e])=>e),Li$2());}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=L$l({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();var J$d={GET_USER:r=>({url:`/school-users/user/${r}`,method:b$e.GET}),GET_USER_V2:r=>({url:`/school-users/user-v2/${r}`,method:b$e.GET}),SSO_SELF_SIGNUP:r=>({url:`/school-users/sso-self-signup/${r}`,method:b$e.POST}),UPDATE_SETTINGS:(r,i)=>({url:`/school-users/settings/${r}`,data:i,method:b$e.PATCH}),GET_USER_BOOKMARKS:r=>({url:`/school-users/bookmarks/${r}`,method:b$e.GET}),UPDATE_USER_BOOKMARKS:(r,i)=>({url:`/school-users/bookmarks/${r}`,data:i,method:b$e.POST}),POST_COMPLETED:(r,i)=>({url:`/school-users/post-completed-event/${r}`,data:i,method:b$e.POST}),POST_IS_LEARNING:(r,i)=>({url:`/school-users/post-is-learning/${r}`,data:i,method:b$e.POST}),UPDATE_COMMUNITY_PROFILE:(r,i)=>({url:`/school-users/update-community-profile/${r}`,data:i,method:b$e.POST}),UPDATE_NOTIFICATION_SETTINGS:(r,i)=>({url:`/school-users/notification-settings-v2/${r}`,data:i,method:b$e.PATCH}),UPDATE_DM_REACHABLE:(r,i)=>({url:`/school-users/dm-reachable/${r}`,data:i,method:b$e.PATCH}),SEND_ADMIN_SUPPORT_ALERT_MAIL:(r,i)=>({url:`/school-users/admin-support-alert-mail/${r}`,data:i,method:b$e.POST_UNAUTH})},u$9=J$d;var W$d=(()=>{class r{constructor(){this._appVersion=g$k(RE),this._http=g$k(Ce$a);}getUser(e){return this._http.generic(u$9.GET_USER_V2(e))}ssoSelfSignUp(e){return this._http.generic(u$9.SSO_SELF_SIGNUP(e))}updateUserProp(e,t){return this._http.generic(u$9.UPDATE_SETTINGS(e,t))}updateFingerprintSetting(e,t){return this._http.generic({url:`/school-users/fingerprint/${e}`,data:{fingerprintEnabled:t},method:b$e.PATCH})}updateDmReachable(e,t){return this._http.generic(u$9.UPDATE_DM_REACHABLE(e,{isDmReachable:t}))}getUserBookmarks(e){return this._http.generic(u$9.GET_USER_BOOKMARKS(e))}updateUserBookmarks(e,t){return this._http.generic(u$9.UPDATE_USER_BOOKMARKS(e,{bookmarks:t}))}updateMailsUnsubscribed(e,t){return this._http.generic({url:`/school-users/mails-unsubscribed/${e}`,method:b$e.POST,data:{mailsUnsubscribed:t}})}registerDevice(e,t){return this._http.generic(l$6.USER.REGISTER_DEVICE(e,s$e(r$d({},t),{appVersion:this._appVersion})))}removeDevice(e,t){return this._http.generic(l$6.USER.REMOVE_DEVICE(e,t))}updateCommunityProfile(e,t){return this._http.generic(u$9.UPDATE_COMMUNITY_PROFILE(e,t))}getCommunityProfile(e){return this._http.get(`/community/profile/${e}`)}getCommunityProfileByUid(e,t){return this._http.get(`/community/profile/${e}/${t}`)}getUserNextLessons(e){return this._http.generic({url:`/school-users/next-lessons/${e}`,method:b$e.GET})}sendAdminSupportAlertMail(e,t){return this._http.generic(u$9.SEND_ADMIN_SUPPORT_ALERT_MAIL(e,t))}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=L$l({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();var Oe$5=(()=>{class r{constructor(){this._queryClient=g$k(_$d),this._schoolUserStore=g$k(S$b),this._schoolUserQuery=g$k(M$a),this._schoolUserDataService=g$k(W$d),this._visibility$=g$k(H$9),this._schoolId=YG(g$k(f$8).selectSchoolId()),this._resetOnSchoolChange=g$k(Y$c).schoolChanged$.pipe(qG()).subscribe(e=>{this._schoolUserStore.reset(),this._queryClient.removeQueries({queryKey:["community-profile"]}),this._queryClient.removeQueries({queryKey:["communityPosts"]}),this._queryClient.removeQueries({queryKey:["reactions"]}),this._loadUser(e).subscribe({error:()=>{}});}),this.updateCommunityProfileMutation=re$7(()=>({meta:{hideToast:false},mutationKey:["community-profile","update"],onMutate:()=>({schoolIdAtStart:this._schoolId()}),mutationFn:async e=>{let{properties:t}=e,o=this._schoolId();if(!o)throw new Error("School ID is not set");return await EI(this._schoolUserDataService.updateCommunityProfile(o,t))},onSuccess:(e,t,o)=>{if(this._isStaleAfterSwitch(o?.schoolIdAtStart))return;this._schoolUserStore.update(p=>s$e(r$d({},p),{communityOnboarding:true,comLegalConsent:t.properties.comLegalConsent,displayName:t.properties.displayName}));let h=this._schoolUserQuery.getValue().uid;this._queryClient.resetQueries({queryKey:["community-profile",this._schoolId(),h]}
903),this._queryClient.invalidateQueries({queryKey:["communityPosts"],refetchType:"all"}),this._queryClient.invalidateQueries({queryKey:["reactions"],refetchType:"all"});}})),this.updateUserPropMutation=re$7(()=>({meta:{hideToast:false},mutationKey:["user-settings","update"],onMutate:()=>({schoolIdAtStart:this._schoolId()}),mutationFn:async e=>{let{update:t}=e,o=this._schoolId();if(!o)throw new Error("School ID is not set");return await EI(this._schoolUserDataService.updateUserProp(o,t))},onSuccess:(e,t,o)=>{this._isStaleAfterSwitch(o?.schoolIdAtStart)||this._schoolUserStore.update(h=>s$e(r$d({},h),{userSettings:r$d(r$d({},h?.userSettings),t.update)}));}})),this.updateBookmarksMutation=re$7(()=>({meta:{hideToast:false},mutationKey:["user-bookmarks","update"],onMutate:()=>({schoolIdAtStart:this._schoolId()}),mutationFn:async e=>{let{bookmarks:t}=e,o=this._schoolId();if(!o)throw new Error("School ID is not set");return await EI(this._schoolUserDataService.updateUserBookmarks(o,t))},onSuccess:(e,t,o)=>{this._isStaleAfterSwitch(o?.schoolIdAtStart)||(this._schoolUserStore.update(h=>s$e(r$d({},h),{bookmarks:t.bookmarks})),this._queryClient.invalidateQueries({queryKey:["user-bookmarks"]}));}})),this.updateDmReachableMutation=re$7(()=>({meta:{hideToast:false},mutationKey:["dm-reachable","update"],onMutate:()=>({schoolIdAtStart:this._schoolId()}),mutationFn:async e=>{let t=this._schoolId();if(!t)throw new Error("School ID is not set");return await EI(this._schoolUserDataService.updateDmReachable(t,e.isDmReachable))},onSuccess:(e,t,o)=>{this._isStaleAfterSwitch(o?.schoolIdAtStart)||this._schoolUserStore.update(h=>s$e(r$d({},h),{isDmReachable:t.isDmReachable}));}}));}updateLastVisitorId(e){this._schoolUserStore.update(t=>s$e(r$d({},t),{lastVisitorId:e}));}updateCourseProgress(e,t){this._patchHasCourse(e,{progress:t});}updateScormProgress(e,t){this._patchHasCourse(e,{scormProgress:t});}syncUser(e){return this._visibility$?.pipe(Pt$b(t=>t),Kf$1(()=>this._loadUser(e)))}registerDevice(e,t){return this._schoolUserDataService.registerDevice(e,t)}removeDevice(e,t){return this._schoolUserStore.update(o=>s$e(r$d({},o),{deviceDeletedTime:new Date,deviceDeleteCounter:t.deleteCounter})),this._schoolUserDataService.removeDevice(e,t)}getBookmarksQuery(){return ie$b(()=>({queryKey:["user-bookmarks",this._schoolId()],queryFn:()=>{let e=this._schoolId();if(!e)throw new Error("School ID is not set");return EI(this._schoolUserDataService.getUserBookmarks(e))},enabled:!!this._schoolId()}))}getCommunityProfile(){return ie$b(()=>({queryKey:["community-profile",this._schoolId(),this._schoolUserQuery.getValue().uid],queryFn:()=>{let e=this._schoolId();if(!e)throw new Error("School ID is not set");return EI(this._schoolUserDataService.getCommunityProfile(e))},enabled:!!this._schoolId()}))}getCurrentUser(){return qd$1(()=>this._schoolUserQuery.getValue())}getCommunityProfileByUidWithCache(e){return ie$b(()=>({queryKey:["community-profile",this._schoolId(),e()],queryFn:()=>{let t=this._schoolId();if(!t)throw new Error("School ID is not set");return EI(this._schoolUserDataService.getCommunityProfileByUid(t,e()))},enabled:!!this._schoolId()&&!!e(),staleTime:1e3*60}))}updateMailsUnsubscribed(e,t){return this._schoolUserStore.update(o=>s$e(r$d({},o),{mailsUnsubscribed:t})),this._schoolUserDataService.updateMailsUnsubscribed(e,t)}updateSpaceAccess(e,t=false){this._schoolUserStore.update(o=>s$e(r$d({},o),{spaceAccess:this._getNewSpaceAccessArray(o,e,t)}));}subscribeToSpace(e){this._schoolUserStore.update(t=>s$e(r$d({},t),{unsubscribedSpaces:t.unsubscribedSpaces?.filter(o=>o!==e)||[]}));}unsubscribeFromSpace(e){this._schoolUserStore.update(t=>s$e(r$d({},t),{unsubscribedSpaces:[...t.unsubscribedSpaces||[],e]}));}updateNotificationsSettings(e){this._schoolUserStore.update(t=>s$e(r$d({},t),{notifications:e}));}sendAdminSupportAlertMail(e,t){return this._schoolUserDataService.sendAdminSupportAlertMail(e,t)}updateUserInStore(e){this._schoolUserStore.update(t=>r$d(r$d({},t),e)),this._schoolUserStore.setHasCache(true,{restartTTL:true}),this._schoolUserStore.setLoading(false);}_isStaleAfterSwitch(e){return !e||e!==this._schoolId()}_loadUser(e){return this._schoolUserQuery.selectHasCache().pipe($f$1(),Kf$1(t=>t?pn$a:this._schoolUserDataService.getUser(e).pipe(Ip$1(o=>{this._isStaleAfterSwitch(e)||this.updateUserInStore(o);}))),mp$1(2))}_getNewSpaceAccessArray(e,t,o){return o?(e.spaceAccess||[])?.concat([t]):e.spaceAccess?.filter(h=>h!==t)||[]}_patchHasCourse(e,t){this._schoolUserStore.update(o=>o.hasCourses?.find(p=>p.courseId===e)?s$e(r$d({},o),{hasCourses:o.hasCourses?.map(p=>p.courseId===e?r$d(r$d({},p),t):p)}):o);}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=L$l({token:r,factory:r.\u0275fac,providedIn:"root"});}}return k0([Et$8(),F0("design:type",Function),F0("design:paramtypes",[Object]),F0("design:returntype",void 0)],r.prototype,"updateUserInStore",null),r})();var _t$9=class _t{constructor(a){this.options=a,a.vcr?this.ref=a.vcr.createComponent(a.component,{index:a.vcr.length,injector:a.injector||a.vcr.injector,bindings:a.bindings,directives:a.directives}):(this.ref=d3(a.component,{elementInjector:a.injector,environmentInjector:a.environmentInjector,bindings:a.bindings,directives:a.directives}),a.appRef.attachView(this.ref.hostView));}setInput(a,t){return this.ref.setInput(a,t),this}
903setInputs(a){return Object.keys(a).forEach(t=>{this.ref.setInput(t,a[t]);}),this}detectChanges(){return this.ref.hostView.detectChanges(),this}updateContext(a){return this.options.contextSignal?.set(a),this}appendTo(a){return a.appendChild(this.getElement()),this}removeFrom(a){return a.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.ref.location.nativeElement}destroy(){this.ref.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.ref.hostView),this.ref=null;}};function U$7(o){return o instanceof rn$a}function G$b(o){return typeof o=="function"}function qt$3(o){return typeof o=="string"}var Ct$a=class Ct{constructor(a){this.args=a,this.args.vcr?(this.ref=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{},{injector:a.injector}),this.ref.detectChanges()):(this.ref=this.args.tpl.createEmbeddedView(this.args.context||{},a.injector),this.ref.detectChanges(),this.args.appRef.attachView(this.ref));}detectChanges(){return this.ref.detectChanges(),this}getElement(){let a=this.ref.rootNodes;return a.length===1&&a[0]===Node.ELEMENT_NODE?this.element=a[0]:(this.element=document.createElement("div"),this.element.append(...a)),this.element}destroy(){this.ref.rootNodes[0]!==1&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.ref),this.ref.destroy(),this.ref=null;}updateContext(a){return Object.assign(this.ref.context,a),this}},vt$7=class vt{constructor(a){this.value=a;}getElement(){return this.value}detectChanges(){return this}updateContext(){return this}destroy(){}},Tt$8=class Tt extends Error{constructor(){super("");}},oe$7=new b$g(""),xt$7=(()=>{class o{constructor(){this.injector=g$k(oe$e),this.appRef=g$k(yt$f),this.environmentInjector=g$k(Ae$e);}createComponent(t,e={}){return Qn$9(()=>{let i=e.injector??this.injector,n;return e.context&&(n=On$7(e.context),i=oe$e.create({providers:[{provide:oe$7,useValue:n.asReadonly()}],parent:i})),new _t$9({component:t,vcr:e.vcr,injector:i,appRef:this.appRef,environmentInjector:e.environmentInjector||this.environmentInjector,contextSignal:n,bindings:e.bindings,directives:e.directives})})}createTemplate(t,e={}){return Qn$9(()=>new Ct$a({vcr:e.vcr,appRef:this.appRef,tpl:t,context:e.context,injector:e.injector}))}createView(t,e={}){return Qn$9(()=>{if(U$7(t))return this.createTemplate(t,e);if(G$b(t))return this.createComponent(t,e);if(qt$3(t))return new vt$7(t);throw new Tt$8})}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var ne$6=(()=>{class o{constructor(){this.content=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["dynamic-view"]],inputs:{content:[1,"content"]},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(e,i){e&1&&Bv$1(0,"div",0),e&2&&zv$1("innerHTML",i.content(),cb$1);},encapsulation:2,changeDetection:1});}}return o})(),st$7=(()=>{class o{constructor(){this.view=X8(void 0,{alias:"dynamicView"}),this.injector=X8(void 0,{alias:"dynamicViewInjector"}),this.context=X8(void 0,{alias:"dynamicViewContext"}),this.inputs=X8(void 0,{alias:"dynamicViewInputs"}),this.defaultTpl=g$k(rn$a),this.vcr=g$k(Rt$f),this.viewService=g$k(xt$7),g$k(de$b).onDestroy(()=>{this.viewRef?.destroy();});}ngOnInit(){this.resolveContentType();}ngOnChanges(t){let e=t.view&&!t.view.isFirstChange(),i=t.context&&!t.context.isFirstChange(),n=t.inputs&&!t.inputs.isFirstChange();e?this.resolveContentType():i?this.viewRef.updateContext(this.context()):G$b(this.view())&&n&&this.viewRef.setInputs(this.inputs()||{});}resolveContentType(){this.viewRef?.destroy();let t=this.view(),e=this.injector(),i=this.context();if(qt$3(t))(this.viewRef=this.viewService.createComponent(ne$6,{vcr:this.vcr,injector:e})).setInput("content",t).detectChanges();else if(G$b(t)){this.viewRef=this.viewService.createComponent(t,{vcr:this.vcr,injector:e??this.vcr.injector,context:i});let n=this.inputs();n&&this.viewRef.setInputs(n);}else this.viewRef=this.viewService.createView(t||this.defaultTpl,{vcr:this.vcr,injector:e??this.vcr.injector,context:i});}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275dir=mt$d({type:o,selectors:[["","dynamicView",""]],inputs:{view:[1,"dynamicView","view"],injector:[1,"dynamicViewInjector","
903injector"],context:[1,"dynamicViewContext","context"],inputs:[1,"dynamicViewInputs","inputs"]},features:[Ar$8]});}}return o})();function se$7(o,a){if(o&1&&(QM(0,` 904 `),Vv$1(1,"hot-toast-loader",1),QM(2,` 905 `)),o&2){let t=yM(2);uT(),jv$1("theme",t.theme());}}function ae$5(o,a){if(o&1&&(QM(0,` 906 `),ta$3(1,"div"),QM(2,` 907 `),Vv$1(3,"hot-toast-error",1),QM(4,` 908 `),Pd$1(),QM(5,` 909 `)),o&2){let t=yM(3);uT(3),jv$1("theme",t.theme());}}function re$4(o,a){if(o&1&&(QM(0,` 910 `),ta$3(1,"div"),QM(2,` 911 `),Vv$1(3,"hot-toast-checkmark",1),QM(4,` 912 `),Pd$1(),QM(5,` 913 `)),o&2){let t=yM(3);uT(3),jv$1("theme",t.theme());}}function le$7(o,a){if(o&1&&(QM(0,` 914 `),ta$3(1,"div"),QM(2,` 915 `),Vv$1(3,"hot-toast-warning",1),QM(4,` 916 `),Pd$1(),QM(5,` 917 `)),o&2){let t=yM(3);uT(3),jv$1("theme",t.theme());}}function ce$6(o,a){if(o&1&&(QM(0,` 918 `),ta$3(1,"div"),QM(2,` 919 `),Vv$1(3,"hot-toast-info",1),QM(4,` 920 `),Pd$1(),QM(5,` 921 `)),o&2){let t=yM(3);uT(3),jv$1("theme",t.theme());}}function de$6(o,a){if(o&1&&(QM(0,` 922 `),ta$3(1,"div",2),QM(2,` 923 `),ta$3(3,"div"),QM(4,` 924 `),eM$1(5,ae$5,6,1)(6,re$4,6,1)(7,le$7,6,1)(8,ce$6,6,1),QM(9,` 925 `),Pd$1(),QM(10,` 926 `),Pd$1(),QM(11,` 927 `)),o&2){let t,e=yM(2);uT(5),tM$1((t=e.type())==="error"?5:t==="success"?6:t==="warning"?7:t==="info"?8:-1);}}function he$7(o,a){if(o&1&&(QM(0,` 928`),ta$3(1,"div",0),QM(2,` 929 `),eM$1(3,se$7,3,1),eM$1(4,de$6,12,1),Pd$1(),QM(5,` 930`)),o&2){let t=yM();uT(3),tM$1(t.type()==="loading"?3:-1),uT(),tM$1(t.type()!=="loading"?4:-1);}}function ue$5(o,a){o&1&&$v$1(0);}var Jt$5=["hotToastBarBase"];function fe$5(o,a){if(o&1&&(QM(0,` 931 `),ta$3(1,"hot-toast-animated-icon",7),QM(2),Pd$1(),QM(3,` 932 `)),o&2){let t=yM(2);uT(),jv$1("iconTheme",t.toast.iconTheme),uT(),yD(t.toast.icon);}}function pe$8(o,a){o&1&&$v$1(0);}function me$7(o,a){if(o&1&&(QM(0,` 933 `),ta$3(1,"div"),QM(2,` 934 `),gv$1(3,pe$8,1,0,"ng-container",8),QM(4,` 935 `),Pd$1(),QM(5,` 936 `)),o&2){let t=yM(2);uT(3),jv$1("dynamicView",t.toast.icon);}}function ge$4(o,a){if(o&1&&(QM(0," "),eM$1(1,fe$5,4,2)(2,me$7,6,1)),o&2){let t=yM();uT(),tM$1(t.isIconString?1:2);}}function _e$5(o,a){if(o&1&&(QM(0,` 937 `),Vv$1(1,"hot-toast-indicator",9),QM(2,` 938 `)),o&2){let t=yM();uT(),jv$1("theme",t.toast.iconTheme)("type",t.toast.type);}}function Ce$4(o,a){o&1&&$v$1(0);}function ve$6(o,a){if(o&1){let t=fM();QM(0,` 939 `),ta$3(1,"button",10),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.close())}),Pd$1(),QM(2,` 940 `);}if(o&2){let t=yM();uT(),jM(t.toast.closeStyle);}}var Te$7=(o,a)=>a.id;function xe$4(o,a){if(o&1&&(QM(0,` 941 `),Vv$1(1,"hot-toast-animated-icon",7),QM(2,` 942 `)),o&2){let t=yM(2);uT(),jv$1("iconTheme",t.toast.iconTheme)("icon",t.toast.icon);}}function ye$8(o,a){o&1&&$v$1(0);}function be$7(o,a){if(o&1&&(QM(0,` 943 `),ta$3(1,"div"),QM(2,` 944 `),gv$1(3,ye$8,1,0,"ng-container",8),QM(4,` 945 `),Pd$1(),QM(5,` 946 `)),o&2){let t=yM(2);uT(3),jv$1("dynamicView",t.toast.icon);}}function we$7(o,a){if(o&1&&(QM(0," "),eM$1(1,xe$4,3,2)(2,be$7,6,1)),o&2){let t=yM();uT(),tM$1(t.isIconString?1:2);}}function Ee$5(o,a){if(o&1&&(QM(0,` 947 `),Vv$1(1,"hot-toast-indicator",9),QM(2,` 948 `)),o&2){let t=yM();uT(),jv$1("theme",t.toast.iconTheme)("type",t.toast.type);}}function Ae$4(o,a){o&1&&$v$1(0);}function Se$7(o,a){if(o&1){let t=fM();QM(0,` 949 `),ta$3(1,"button",10),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.toggleToastGroup())}),Pd$1(),QM(2,` 950 `);}if(o&2){let t=yM();uT(),jM(t.toast.group.btnStyle),iD("expanded",t.isExpanded),Pv$1("aria-label",t.isExpanded?"Collapse":"Expand");}}function Ie$2(o,a){if(o&1){let t=fM();QM(0,` 951 `),ta$3(1,"button",11),Zv$1("click",function(){sh$1(t);let i=yM();return ah$1(i.close())}),Pd$1(),QM(2,` 952 `);}if(o&2){let t=yM();uT(),jM(t.toast.closeStyle);}}function Re$6(o,a){if(o&1){let t=fM();QM(0,` 953 `),ta$3(1,"hot-toast-group-item",13),Zv$1("height",function(i){let n=sh$1(t).$implicit,r=yM(2);return ah$1(r.updateHeight(i,n))})("beforeClosed",function(){let i=sh$1(t).$implicit,n=yM(2);return ah$1(n.beforeClosedGroupItem(i))})("afterClosed",function(i){sh$1(t);let n=yM(2);return ah$1(n.afterClosedGroupItem(i))}),Pd$1(),QM(2,` 954 `);}if(o&2){let t=a.$implicit,e=a.$index,i=yM(2);
954uT(),jv$1("toast",t)("offset",i.calculateOffset(t.id))("toastRef",i.toastRef().groupRefs[e])("toastsAfter",(t.autoClose?i.groupChildrenToasts.length:i.visibleToasts.length)-1-e)("defaultConfig",i.defaultConfig())("isShowingAllToasts",i.isShowingAllToasts());}}function Me$5(o,a){if(o&1&&(QM(0,` 955 `),ta$3(1,"div",12),QM(2,` 956 `),oM(3,Re$6,3,6,null,null,Te$7),Pd$1(),QM(5,` 957 `)),o&2){let t=yM();uT(),BM(t.toast.group==null?null:t.toast.group.className),Ma$2("--hot-toast-group-height",t.groupHeight+"px"),uT(2),iM(t.groupChildrenToasts);}}function De$5(o,a){o&1&&QM(0,` 958 `);}function Ge$4(o,a){if(o&1){let t=fM();QM(0,` 959 `),ta$3(1,"hot-toast-component",2),Zv$1("showAllToasts",function(i){sh$1(t);let n=yM(2);return ah$1(n.showAllToasts(i))})("height",function(i){sh$1(t);let n=yM().$implicit,r=yM();return ah$1(r.updateHeight(i,n))})("beforeClosed",function(){sh$1(t);let i=yM().$implicit,n=yM();return ah$1(n.beforeClosed(i))})("afterClosed",function(i){sh$1(t);let n=yM(2);return ah$1(n.afterClosed(i))})("toggleGroup",function(i){sh$1(t);let n=yM(2);return ah$1(n.toggleGroup(i))}),Pd$1(),QM(2,` 960 `);}if(o&2){let t=yM(),e=t.$implicit,i=t.$index,n=yM();uT(),jv$1("toast",e)("offset",n.calculateOffset(e.id,e.position))("toastRef",n.toastRefs[i])("toastsAfter",(e.autoClose?n.toasts.length:n.getVisibleToasts(e.position).length)-1-i)("defaultConfig",n.defaultConfig())("isShowingAllToasts",n.isShowingAllToasts);}}function ke$4(o,a){if(o&1&&(QM(0,` 961 `),eM$1(1,De$5,1,0)(2,Ge$4,3,6)),o&2){let t=a.$implicit;uT(),tM$1(t.group!=null&&t.group.parent?1:2);}}var Yt$4={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3},F$a=800,at$9=350,Oe$4=8,bt$9=.05,Ve$5=1,He$7={VALID:{type:"success"},INVALID:{type:"error"},PENDING:{type:"loading"},DISABLED:{type:"blank"}},Q$7=class Q{constructor(a){this.toast=a,this.groupRefs=[],this.groupExpanded=false,this._onClosed=new le$d,this._onGroupToggle=new le$d;}set data(a){this.toast.data=a;}get data(){return this.toast.data}set dispose(a){this._dispose=a;}getToast(){return this.toast}appendTo(a,t){let{dispose:e,updateMessage:i,updateToast:n,afterClosed:r,afterGroupToggled:c,afterGroupRefsAttached:d}=a.addToast(this,t);return this.dispose=e,this.updateMessage=i,this.updateToast=n,this.afterClosed=kI(this._onClosed.asObservable(),r),this.afterGroupToggled=kI(this._onGroupToggle.asObservable(),c),this.afterGroupRefsAttached=d,this}close(a={dismissedByAction:false}){this.groupRefs.forEach(t=>t.close()),this._dispose(),this._onClosed.next({dismissedByAction:a.dismissedByAction,id:this.toast.id}),this._onClosed.complete();}toggleGroup(a={byAction:false}){this.groupExpanded=!this.groupExpanded,this._onGroupToggle.next({byAction:a.byAction,id:this.toast.id,event:this.groupExpanded?"expand":"collapse"});}show(){this.toast.visible=true;}},rt$7=(o,a,t)=>{o.setStyle(a,"animation",t);},Ne$7=(()=>{class o{constructor(){this.theme=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-loader"]],inputs:{theme:[1,"theme"]},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon"]],template:function(e,i){if(e&1&&(Bv$1(0,"div",0),QM(1,` 962`)),e&2){let n,r;Ma$2("border-color",(n=i.theme())==null?null:n.primary)("border-right-color",(r=i.theme())==null?null:r.secondary);}},encapsulation:2});}}return o})(),Be$6=(()=>{class o{constructor(){this.theme=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-error"]],inputs:{theme:[1,"theme"]},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(e,i){if(e&1&&(Bv$1(0,"div",0),QM(1,` 963`)),e&2){let n,r;Ma$2("--error-primary",(n=i.theme())==null?null:n.primary)("--error-secondary",(r=i.theme())==null?null:r.secondary);}},encapsulation:2});}}return o})(),je$5=(()=>{class o{constructor(){this.theme=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-checkmark"]],inputs:{theme:[1,"theme"]},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(e,i){if(e&1&&(Bv$1(0,"div",0),QM(1,` 964`)),e&2){let n,r;Ma$2("--check-primary",(n=i.theme())==null?null:n.primary)("--check-secondary",(r=i.theme())==null?null:r.secondary);}},encapsulation:2});}}return o}
964)(),Fe$6=(()=>{class o{constructor(){this.theme=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-warning"]],inputs:{theme:[1,"theme"]},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(e,i){if(e&1&&(Bv$1(0,"div",0),QM(1,` 965`)),e&2){let n,r;Ma$2("--warn-primary",(n=i.theme())==null?null:n.primary)("--warn-secondary",(r=i.theme())==null?null:r.secondary);}},encapsulation:2});}}return o})(),Pe$3=(()=>{class o{constructor(){this.theme=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-info"]],inputs:{theme:[1,"theme"]},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(e,i){if(e&1&&(Bv$1(0,"div",0),QM(1,` 966`)),e&2){let n,r;Ma$2("--info-primary",(n=i.theme())==null?null:n.primary)("--info-secondary",(r=i.theme())==null?null:r.secondary);}},encapsulation:2});}}return o})(),te$6=(()=>{class o{constructor(){this.theme=X8(),this.type=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-indicator"]],inputs:{theme:[1,"theme"],type:[1,"type"]},decls:1,vars:1,consts:[[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"]],template:function(e,i){e&1&&eM$1(0,he$7,6,2),e&2&&tM$1(i.type()!=="blank"?0:-1);},dependencies:[Ne$7,Be$6,je$5,Fe$6,Pe$3],encapsulation:2});}}return o})(),ee$6=(()=>{class o{constructor(){this.iconTheme=X8(),this.icon=X8();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:[1,"iconTheme"],icon:[1,"icon"]},decls:5,vars:3,consts:[[1,"hot-toast-animated-icon"],[4,"dynamicView"]],template:function(e,i){if(e&1&&(ta$3(0,"div",0),QM(1,` 967 `),gv$1(2,ue$5,1,0,"ng-container",1),QM(3,` 968`),Pd$1(),QM(4,` 969`)),e&2){let n;Ma$2("color",(n=i.iconTheme())==null?null:n.primary),uT(2),jv$1("dynamicView",i.icon());}},dependencies:[st$7],encapsulation:2});}}return o})(),$e$5=(()=>{class o{constructor(){this.offset=X8(0),this.defaultConfig=X8(),this.toastRef=X8(),this._toastsAfter=0,this.isShowingAllToasts=X8(false),this.height=J8(),this.beforeClosed=J8(),this.afterClosed=J8(),this.showAllToasts=J8(),this.toggleGroup=J8(),this.isManualClose=false,this.toastBarBaseStylesSignal=On$7({}),this.unlisteners=[],this.softClosed=false,this.injector=g$k(oe$e),this.renderer=g$k(Fr$6),this.ngZone=g$k(ge$b),this.cdr=g$k(Va$2);}set toast(t){this._toast=t;let e=this.toastBarBaseStylesSignal(),i=r$d({},t.style);if(e.animation?.includes("hotToastExitAnimation"))i.animation=e.animation;else {let r=`hotToastEnterAnimation${t.position.includes("top")?"Negative":"Positive"} ${at$9}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;i.animation=r;}this.toastBarBaseStylesSignal.set(i);}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(t){this._toastsAfter=t;}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig().stacking!=="vertical"&&!this.isShowingAllToasts()?this.toastsAfter*-bt$9+1:1}get translateY(){return this.offset()*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let t=this.top?{top:0}:{bottom:0},e="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",i=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return r$d(r$d({transform:e},t),i)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.toastRef().groupRefs.filter(t=>!!t)}set groupChildrenToastRefs(t){this.toastRef().groupRefs=t;}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(t=>t.getToast())}get groupHeight(){return this.visibleToasts.map(t=>t.height).reduce((t,e)=>t+e,0)}get isExpanded(){return this.toastRef().groupExpanded}ngOnChanges(t){t.toast&&!t.toast.firstChange&&t.toast.currentValue?.message&&requestAnimationFrame(()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight);});}
969ngOnInit(){U$7(this.toast.message)&&(this.context={$implicit:this.toastRef()}),G$b(this.toast.message)&&(this.toastComponentInjector=oe$e.create({providers:[{provide:Q$7,useValue:this.toastRef()}],parent:this.toast.injector||this.injector}));let t=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(t,"animationstart",e=>{this.isExitAnimation(e)&&this.ngZone.run(()=>{this.renderer.setStyle(t,"pointer-events","none"),this.renderer.setStyle(t.parentElement,"pointer-events","none"),this.beforeClosed.emit();});}),this.renderer.listen(t,"animationend",e=>{this.isEnterAnimation(e)&&this.ngZone.run(()=>{if(this.toast.autoClose){let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${F$a}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(s$e(r$d({},this.toast.style),{animation:i}));}}),this.isExitAnimation(e)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}));}));});}ngAfterViewInit(){let t=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(t.offsetHeight);}),this.setToastAttributes();}softClose(){let t=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${F$a}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,e=this.toastBarBase.nativeElement;rt$7(this.renderer,e,t),this.softClosed=true;}softOpen(){let t=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${at$9}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,e=this.toastBarBase.nativeElement;rt$7(this.renderer,e,t),this.softClosed=false;}close(){this.isManualClose=true,this.cdr.markForCheck();let t=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${F$a}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(s$e(r$d({},this.toast.style),{animation:t}));}handleMouseEnter(){this.showAllToasts.emit(true);}handleMouseLeave(){this.showAllToasts.emit(false);}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()();}isExitAnimation(t){return t.animationName.includes("hotToastExitAnimation")}isEnterAnimation(t){return t.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let t=this.toast.attributes;for(let[e,i]of Object.entries(t))this.renderer.setAttribute(this.toastBarBase.nativeElement,e,i);}get visibleToasts(){return this.groupChildrenToasts.filter(t=>t.visible)}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-group-item"]],viewQuery:function(e,i){if(e&1&&Jv$1(Jt$5,7),e&2){let n;CM(n=wM())&&(i.toastBarBase=n.first);}},inputs:{toast:"toast",offset:[1,"offset"],defaultConfig:[1,"defaultConfig"],toastRef:[1,"toastRef"],toastsAfter:"toastsAfter",isShowingAllToasts:[1,"isShowingAllToasts"]},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ar$8],decls:21,vars:25,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme"],[4,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"]],template:function(e,i){e&1&&(ta$3(0,"div",1),QM(1,` 970 `),ta$3(2,"div",2),Zv$1("mouseenter",function(){return i.handleMouseEnter()})("mouseleave",function(){return i.handleMouseLeave()}),QM(3,` 971 `),ta$3(4,"div",3,0),QM(6,` 972 `),ta$3(7,"div",4),QM(8,` 973 `),eM$1(9,ge$4,3,1)(10,_e$5,3,2),Pd$1(),QM(11,` 974 `),ta$3(12,"div",5),QM(13,` 975 `),gv$1(14,Ce$4,1,0,"ng-container",6),QM(15,` 976 `),Pd$1(),QM(16,` 977 `),eM$1(17,ve$6,3,2),Pd$1(),QM(18,` 978 `),Pd$1(),QM(19,` 979`),Pd$1(),QM(20,` 980`)),e&2&&(jM(i.containerPositionStyle),BM("hot-toast-theme-"+i.toast.theme),Ma$2("--hot-toast-scale",i.scale)("--hot-toast-translate-y",i.translateY),uT(4),jM(i.toastBarBaseStylesSignal()),BM(i.toast.className),Ma$2("--hot-toast-animation-state",i.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",i.isShowingAllToasts()?"paused":"running")("--hot-toast-exit-animation-delay",i.exitAnimationDelay),Pv$1("aria-l
980ive",i.toast.ariaLive)("role",i.toast.role),uT(5),tM$1(i.toast.icon!==void 0?9:10),uT(5),jv$1("dynamicView",i.toast.message)("dynamicViewContext",i.context)("dynamicViewInjector",i.toastComponentInjector),uT(3),tM$1(i.toast.dismissible?17:-1));},dependencies:[ee$6,te$6,st$7],encapsulation:2});}}return o})(),Kt$5=(()=>{class o{constructor(){this.offset=X8(0),this.defaultConfig=X8(),this.toastRef=X8(),this._toastsAfter=0,this.isShowingAllToasts=X8(false),this.height=J8(),this.beforeClosed=J8(),this.afterClosed=J8(),this.showAllToasts=J8(),this.toggleGroup=J8(),this.isManualClose=false,this.isExpanded=false,this.toastBarBaseStylesSignal=On$7({}),this.unlisteners=[],this.softClosed=false,this.groupRefs=[],this.injector=g$k(oe$e),this.renderer=g$k(Fr$6),this.ngZone=g$k(ge$b),this.cdr=g$k(Va$2);}set toast(t){this._toast=t;let e=this.toastBarBaseStylesSignal(),i=r$d({},t.style);if(e.animation?.includes("hotToastExitAnimation"))i.animation=e.animation;else {let r=`hotToastEnterAnimation${t.position.includes("top")?"Negative":"Positive"} ${at$9}ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;i.animation=r;}this.toastBarBaseStylesSignal.set(i);}get toast(){return this._toast}get toastsAfter(){return this._toastsAfter}set toastsAfter(t){this._toastsAfter=t;let e=this.defaultConfig();e?.visibleToasts>0&&(this.toast.autoClose||(t>=e?.visibleToasts?this.softClose():this.softClosed&&this.softOpen()));}get toastBarBaseHeight(){return this.toastBarBase.nativeElement.offsetHeight}get scale(){return this.defaultConfig().stacking!=="vertical"&&!this.isShowingAllToasts()?this.toastsAfter*-bt$9+1:1}get translateY(){return this.offset()*(this.top?1:-1)+"px"}get exitAnimationDelay(){return this.toast.duration+"ms"}get top(){return this.toast.position.includes("top")}get containerPositionStyle(){let t=this.top?{top:0}:{bottom:0},e="translateY(var(--hot-toast-translate-y)) scale(var(--hot-toast-scale))",i=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return r$d(r$d({transform:e},t),i)}get isIconString(){return typeof this.toast.icon=="string"}get groupChildrenToastRefs(){return this.groupRefs.filter(t=>!!t)}set groupChildrenToastRefs(t){this.groupRefs=t,this.toastRef().groupRefs=t;}get groupChildrenToasts(){return this.groupChildrenToastRefs.map(t=>t.getToast())}get groupHeight(){return this.visibleToasts.slice(-this.defaultConfig().visibleToasts).map(t=>t.height).reduce((t,e)=>t+e,0)}get visibleToasts(){return this.groupChildrenToasts.filter(t=>t.visible)}ngDoCheck(){let t=this.toastRef();t.groupRefs.length!==this.groupRefs.length&&(this.groupRefs=t.groupRefs.slice(),this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded)),t.groupExpanded!==this.isExpanded&&(this.isExpanded=t.groupExpanded,this.cdr.markForCheck(),this.emiHeightWithGroup(this.isExpanded));}ngOnChanges(t){t.toast&&!t.toast.firstChange&&t.toast.currentValue?.message&&this.emiHeightWithGroup(this.isExpanded);}ngOnInit(){U$7(this.toast.message)&&(this.context={$implicit:this.toastRef()}),G$b(this.toast.message)&&(this.toastComponentInjector=oe$e.create({providers:[{provide:Q$7,useValue:this.toastRef()}],parent:this.toast.injector||this.injector}));let t=this.toastBarBase.nativeElement;this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(t,"animationstart",e=>{this.isExitAnimation(e)&&this.ngZone.run(()=>{this.renderer.setStyle(t,"pointer-events","none"),this.renderer.setStyle(t.parentElement,"pointer-events","none"),this.beforeClosed.emit();});}),this.renderer.listen(t,"animationend",e=>{this.isEnterAnimation(e)&&this.ngZone.run(()=>{if(this.toast.autoClose){let i=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${F$a}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) var(--hot-toast-exit-animation-delay) var(--hot-toast-exit-animation-state)`;this.toastBarBaseStylesSignal.set(s$e(r$d({},this.toast.style),{animation:i}));}}),this.isExitAnimation(e)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}));}));});}ngAfterViewInit(){let t=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(t.offsetHeight);}),this.setToastAttributes();}softClose(){let t=`hotToastExitSoftAnimation${this.top?"Negative":"Positive"} ${F$a}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`,e=this.toastBarBase.nativeElement;rt$7(this.renderer,e,t),this.softClosed=true,this.isExpanded&&this.toggleToastGroup();}softOpen(){let t=`hotToastEnterSoftAnimation${top?"Negative":"Positive"} ${at$9}
980ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,e=this.toastBarBase.nativeElement;rt$7(this.renderer,e,t),this.softClosed=false;}close(){this.isManualClose=true,this.cdr.markForCheck();let t=`hotToastExitAnimation${this.top?"Negative":"Positive"} ${F$a}ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBaseStylesSignal.set(s$e(r$d({},this.toast.style),{animation:t}));}handleMouseEnter(){this.showAllToasts.emit(true);}handleMouseLeave(){this.showAllToasts.emit(false);}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()();}isExitAnimation(t){return t.animationName.includes("hotToastExitAnimation")}isEnterAnimation(t){return t.animationName.includes("hotToastEnterAnimation")}setToastAttributes(){let t=this.toast.attributes;for(let[e,i]of Object.entries(t))this.renderer.setAttribute(this.toastBarBase.nativeElement,e,i);}calculateOffset(t){let e=this.visibleToasts,i=e.findIndex(r=>r.id===t);return i!==-1?e.slice(...this.defaultConfig().reverseOrder?[i+1]:[0,i]).reduce((r,c,d)=>{let _=this.defaultConfig();return _.visibleToasts!==0&&d<e.length-_.visibleToasts?0:r+(c.height||0)},0):0}updateHeight(t,e){e.height=t,this.cdr.markForCheck();}beforeClosedGroupItem(t){t.visible=false,this.cdr.markForCheck(),this.visibleToasts.length===0&&this.isExpanded?this.toggleToastGroup():this.emiHeightWithGroup(this.isExpanded);}afterClosedGroupItem(t){this.groupChildrenToasts.findIndex(i=>i.id===t.id)>-1&&(this.groupChildrenToastRefs=this.groupChildrenToastRefs.filter(i=>i.getToast().id!==t.id),this.cdr.markForCheck());}toggleToastGroup(){let t=this.isExpanded?"collapse":"expand";this.toggleGroup.emit({byAction:true,event:t,id:this.toast.id}),this.emiHeightWithGroup(t==="expand");}emiHeightWithGroup(t){requestAnimationFrame(t?()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight+this.groupHeight);}:()=>{this.height.emit(this.toastBarBase.nativeElement.offsetHeight);});}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-component"]],viewQuery:function(e,i){if(e&1&&Jv$1(Jt$5,7),e&2){let n;CM(n=wM())&&(i.toastBarBase=n.first);}},inputs:{toast:"toast",offset:[1,"offset"],defaultConfig:[1,"defaultConfig"],toastRef:[1,"toastRef"],toastsAfter:"toastsAfter",isShowingAllToasts:[1,"isShowingAllToasts"]},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed",showAllToasts:"showAllToasts",toggleGroup:"toggleGroup"},features:[Ar$8],decls:23,vars:29,consts:[["hotToastBarBase",""],[1,"hot-toast-bar-base-container"],[1,"hot-toast-bar-base-wrapper",3,"mouseenter","mouseleave"],[1,"hot-toast-bar-base"],["aria-hidden","true",1,"hot-toast-icon"],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],[3,"iconTheme","icon"],[4,"dynamicView"],[3,"theme","type"],["type","button",1,"hot-toast-group-btn",3,"click"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"click"],["role","list",1,"hot-toast-bar-base-group"],[3,"height","beforeClosed","afterClosed","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(e,i){e&1&&(ta$3(0,"div",1),QM(1,` 981 `),ta$3(2,"div",2),Zv$1("mouseenter",function(){return i.handleMouseEnter()})("mouseleave",function(){return i.handleMouseLeave()}),QM(3,` 982 `),ta$3(4,"div",3,0),QM(6,` 983 `),ta$3(7,"div",4),QM(8,` 984 `),eM$1(9,we$7,3,1)(10,Ee$5,3,2),Pd$1(),QM(11,` 985 986 `),ta$3(12,"div",5),QM(13,` 987 `),gv$1(14,Ae$4,1,0,"ng-container",6),QM(15,` 988 `),Pd$1(),QM(16,` 989 990 `),eM$1(17,Se$7,3,5),eM$1(18,Ie$2,3,2),Pd$1(),QM(19,` 991 992 `),eM$1(20,Me$5,6,4),Pd$1(),QM(21,` 993`),Pd$1(),QM(22,` 994`)),e&2&&(jM(i.containerPositionStyle),BM("hot-toast-theme-"+i.toast.theme),Ma$2("--hot-toast-scale",i.scale)("--hot-toast-translate-y",i.translateY),uT(2),iD("expanded",i.isExpanded),uT(2),jM(i.toastBarBaseStylesSignal()),BM(i.toast.className),Ma$2("--hot-toast-animation-state",i.isManualClose?"running":"paused")("--hot-toast-exit-animation-state",i.isShowingAllToasts()?"paused":"running")("--hot-toast-exit-animation-delay",i.exitAnimationDelay),Pv$1("aria-l
994ive",i.toast.ariaLive)("role",i.toast.role),uT(5),tM$1(i.toast.icon!==void 0?9:10),uT(5),jv$1("dynamicView",i.toast.message)("dynamicViewContext",i.context)("dynamicViewInjector",i.toastComponentInjector),uT(3),tM$1(i.toast.group!=null&&i.toast.group.expandAndCollapsible&&(i.toast.group!=null&&i.toast.group.children)&&i.visibleToasts.length>0?17:-1),uT(),tM$1(i.toast.dismissible?18:-1),uT(2),tM$1(i.toast.visible?20:-1));},dependencies:[st$7,te$6,ee$6,$e$5],encapsulation:2});}}return o})(),Xt$5=(()=>{class o{constructor(){this.defaultConfig=X8(),this.toasts=[],this.toastRefs=[],this.isShowingAllToasts=false,this._onClosed=new le$d,this._onGroupToggle=new le$d,this._onGroupRefAttached=new le$d,this.onClosed$=this._onClosed.asObservable(),this.onGroupToggle$=this._onGroupToggle.asObservable(),this.onGroupRefAttached$=this._onGroupRefAttached.asObservable(),this.cdr=g$k(Va$2),this.toastService=g$k(wt$b),this.host=g$k(gt$f),Xl$1(()=>{if(this.defaultConfig().usePopover)try{this.host.nativeElement.showPopover();}catch(t){}});}trackById(t,e){return e.id}getVisibleToasts(t){return this.unGroupedToasts.filter(e=>e.visible&&e.position===t)}get unGroupedToasts(){return this.toasts.filter(t=>t.group?.parent===void 0||t.group?.children===void 0||t.group?.children.length===0)}calculateOffset(t,e){let i=this.getVisibleToasts(e),n=i.findIndex(c=>c.id===t);return n!==-1?i.slice(...this.defaultConfig().reverseOrder?[n+1]:[0,n]).reduce((c,d,_)=>{let v=i.length-1-_;return this.defaultConfig().visibleToasts!==0&&_<i.length-this.defaultConfig().visibleToasts?0:c+(this.defaultConfig().stacking==="vertical"||this.isShowingAllToasts?d.height||0:v*bt$9+Ve$5)+Oe$4},0):0}updateHeight(t,e){e.height=t,this.cdr.markForCheck();}addToast(t,e){this.toastRefs.push(t);let i=t.getToast();return this.toasts.push(t.getToast()),this.defaultConfig().visibleToasts!==0&&this.unGroupedToasts.length>this.defaultConfig().visibleToasts&&this.toasts.slice(0,this.toasts.length-this.defaultConfig().visibleToasts).forEach(r=>{r.autoClose&&this.closeToast(r.id);}),this.cdr.markForCheck(),this.attachGroupRefs(i,t,e),{dispose:()=>{this.closeToast(i.id);},updateMessage:n=>{i.message=n,this.updateToasts(i),this.cdr.markForCheck();},updateToast:n=>{i=r$d(r$d({},i),n),this.updateToasts(i,n),this.cdr.markForCheck();},afterClosed:this.getAfterClosed(i),afterGroupToggled:this.getAfterGroupToggled(i),afterGroupRefsAttached:this.getAfterGroupRefsAttached(i).pipe(st$c(n=>n.groupRefs))}}async attachGroupRefs(t,e,i){let n=[];if(t.group){if(t.group.children){n=await this.createGroupRefs(t,e);let r=this.toastRefs.findIndex(c=>c.getToast().id===t.id);r>-1&&(this.toastRefs[r].groupRefs=n,this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:n,id:t.id}));}else if(t.group.parent&&!i){let c=t.group.parent.getToast(),d=this.toastRefs.findIndex(v=>v.getToast().id===c.id),_=this.toasts.findIndex(v=>v.id===c.id);if(d>-1&&_>-1){this.toastRefs[d].groupRefs.push(e);let v=this.toasts[d].group??{},Z=this.toasts[d].group?.children??[];Z.push({options:s$e(r$d({},t),{type:t.type,message:t.message})}),v.children=Z,this.toasts[d].group=r$d({},v),this.cdr.markForCheck(),this._onGroupRefAttached.next({groupRefs:n,id:c.id});}}}}createGroupRefs(t,e){return new Promise(n=>{let c=t.group.children.map(d=>new Promise(_=>{d.options.group={parent:e},setTimeout(()=>{try{let v=this.toastService.show(d.options.message,d.options,!0);_(v);}catch(v){console.error("Error creating toast",v),_(null);}});}));Promise.all(c).then(d=>n(d));})}closeToast(t){if(t){let e=this.hotToastComponentList.find(i=>i.toast.id===t);e&&(e.close(),this.cdr.markForCheck());}else this.hotToastComponentList.forEach(e=>e.close()),this.cdr.markForCheck();}beforeClosed(t){t.visible=false,this.cdr.markForCheck();}afterClosed(t){this.toasts.findIndex(i=>i.id===t.id)>-1&&(this._onClosed.next(t),this.toasts=this.toasts.filter(i=>i.id!==t.id),this.toastRefs=this.toastRefs.filter(i=>i.getToast().id!==t.id),this.cdr.markForCheck());}toggleGroup(t){let e=this.toastRefs.findIndex(i=>i.getToast().id===t.id);e>-1&&(this._onGroupToggle.next(t),this.toastRefs[e].groupExpanded=t.event==="expand",this.cdr.markForCheck());}hasToast(t){return this.toasts.findIndex(e=>e.id===t)>-1}showAllToasts(t){this.isShowingAllToasts=t;}ngOnDestroy(){if(this.defaultConfig().usePopover)try{this.host.nativeElement.hidePopover();}catch(t){}}getAfterClosed(t){return this.onClosed$.pipe(Pt$b(e=>e.id===t.id))}getAfterGroupToggled(t){return this.onGroupToggle$.pipe(Pt$b(e=>e.id===t.id))}getAfterGroupRefsAttached(t){return this.onGroupRefAttached$.pipe(Pt$b(e=>e.id===t.id))}updateToasts(t,e){this.toasts=this.toasts.map(i=>r$d(r$d({},i),i.id===t.id&&r$d(r$d({},t),e))),this.cdr.markForCheck();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["hot-toast-container"]],viewQuery:function(e,i){if(e&1&&Jv$1(Kt$5,5),e&2){let n;CM(n=wM())&&(i.hotToastComponentList=n);}},hostVars:3,hostBindings:function(e,i){e&2&&(Pv$1("popover",i.defaultConfig().usePopover?"manual":void 0),iD("hot-toast-container-overlay-popover",i.defaultConfig().usePopover));},inputs:{defaultConfig:[1,"defaultConfig"]},decls:11,vars:0,consts:[[1,"hot-toast-container-overlay"],[1,"hot-toast-container-wrapper"],[3,"showAllToasts","height","beforeClosed","afterClosed","toggleGroup","toast","offset","toastRef","toastsAfter","defaultConfig","isShowingAllToasts"]],template:function(e,i){e&1&&(ta$3(0,"div",0),QM(1,` 995 `),ta$3(2,"div",1),QM(3,` 996 `),ta$3(4,"div"),QM(5,` 997 `),oM(6,ke$4,3,1,null,null,i.trackById,true),Pd$1(),QM(8,` 998 `),Pd$1(),QM(9,` 999`),Pd$1(),QM(10,` 1000`)),e&2&&(uT(6),iM(i.toasts));},dependencies:[Kt$5],styles:[".hot-toast-container-overlay[_ngcontent-%COMP%]{position:fixed;z-index:var(--hot-toast-container-overlay-z-index, 9999);inset:0;pointer-events:none}.hot-toast-container-wrapper[_ngcontent-%COMP%]{position:relative;height:100%}"]});}}return o}
1000)(),W$c=class W{constructor(){this.reverseOrder=false,this.visibleToasts=5,this.stacking="vertical",this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=true,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""};}},Le$7=o=>typeof o=="function",ze$7=o=>typeof o=="function"&&!!o.\u0275cmp,Ue$4=(o,a)=>ze$7(o)?o:Le$7(o)?o(a):o,yt$8=class yt{constructor(){this.storage="local",this.key="ngxpert/hototast-${id}",this.count=1,this.enabled=false;}},Qe$7=new b$g("HOT_TOAST_CONTAINER_TOKEN"),We$5=new b$g("HOT_TOAST_USE_POPOVER_TOKEN"),wt$b=(()=>{class o{static{this.nextId=0;}constructor(){this._isInitialized=false,this._defaultGlobalConfig=new W$c,this._defaultPersistConfig=new yt$8,this._viewService=g$k(xt$7),this._platformId=g$k(AC$1),this._globalConfig=g$k(W$c,{optional:true}),this._container=g$k(Qe$7,{optional:true}),this._usePopover=g$k(We$5,{optional:true}),this._document=g$k(Te$g),this._globalConfig&&(this._defaultGlobalConfig=r$d(r$d({},this._defaultGlobalConfig),this._globalConfig));}get defaultConfig(){return this._defaultGlobalConfig}set defaultConfig(t){this._defaultGlobalConfig=r$d(r$d({},this._defaultGlobalConfig),t),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultGlobalConfig);}show(t,e,i){return this.createToast({message:t||this._defaultGlobalConfig.blank.content,type:e?.type??"blank",options:r$d(r$d({},this._defaultGlobalConfig),e),skipAttachToParent:i})}error(t,e){return this.createToast({message:t||this._defaultGlobalConfig.error.content,type:"error",options:r$d(r$d(r$d({},this._defaultGlobalConfig),this._defaultGlobalConfig?.error),e)})}success(t,e){return this.createToast({message:t||this._defaultGlobalConfig.success.content,type:"success",options:r$d(r$d(r$d({},this._defaultGlobalConfig),this._defaultGlobalConfig?.success),e)})}loading(t,e){return this.createToast({message:t||this._defaultGlobalConfig.loading.content,type:"loading",options:r$d(r$d(r$d({},this._defaultGlobalConfig),this._defaultGlobalConfig?.loading),e)})}warning(t,e){return this.createToast({message:t||this._defaultGlobalConfig.warning.content,type:"warning",options:r$d(r$d(r$d({},this._defaultGlobalConfig),this._defaultGlobalConfig?.warning),e)})}info(t,e){return this.createToast({message:t||this._defaultGlobalConfig.info.content,type:"info",options:r$d(r$d(r$d({},this._defaultGlobalConfig),this._defaultGlobalConfig?.info),e)})}observe(t){return e=>{let i,n=0,r=t.loading??this._defaultGlobalConfig.loading?.content,c=t.success??this._defaultGlobalConfig.success?.content,d=t.error??this._defaultGlobalConfig.error?.content;return MI(()=>(r&&(i=this.createLoadingToast(r),n=Date.now()),e.pipe(Ip$1(r$d(r$d({},c&&{next:_=>{i=this.createOrUpdateToast(t,_,i,"success",n===0?n:Date.now()-n);}}),d&&{error:_=>{i=this.createOrUpdateToast(t,_,i,"error",n===0?n:Date.now()-n);}})))))}}fromForm(t,e){let i,n=async c=>{let d=e[c];if(!d){i?.close(),i=void 0;return}let Et=d,{message:_,show:v}=Et,Z=v$m(Et,["message","show"]),q=typeof _=="function"?_(t):_,ie=He$7[c],Y=r$d(r$d({},ie),Z);if(v)if(await v(t))i?(i.updateMessage(q),i.updateToast(Y)):(i=this.show(q,Y),i.afterClosed.subscribe(()=>{i=void 0;}));else {i?.close(),i=void 0;return}else t.dirty&&t.touched&&(i?(i.updateMessage(q),i.updateToast(Y)):(i=this.show(q,Y),i.afterClosed.subscribe(()=>{i=void 0;})));};n(t.status);let r=new Q$f;return r.add(t.statusChanges.subscribe(c=>n(c))),{close:()=>{r.unsubscribe(),i?.close(),i=void 0;}}}close(t){this._componentRef&&this._componentRef.ref.instance.closeToast(t);}init(){if(xG(this._platformId))return;let t=this._usePopover??true;if("showPopover"in this._document.body?this._defaultGlobalConfig.usePopover=this._defaultGlobalConfig.usePopover??t:this._defaultGlobalConfig.usePopover=false,this._container){let e=document.querySelector(this._container);e||(console.warn(`No container element found for selector: ${this._container}, using document.body instead as toast container.`),e=document.body),this._componentRef=this._viewService.createComponent(Xt$5).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(e);}else this._componentRef=this._viewService.createComponent(Xt$5).setInput("defaultConfig",this._defaultGlobalConfig).appendTo(document.body);}createOrUpdateToast(t,e,i,n,r){try{let c=null,d={};if({content:c,options:d}=this.getContentAndOptions(n,t[n]||(this._defaultGlobalConfig[n]?this._defaultGlobalConfig[n].content:"")),c=Ue$4(c,e),i){d.data&&(i.data=d.data),i.updateMessage(c);let _=r$d(r$d({type:n,duration:r+Yt$4[n]},d),d.duration&&{duration:r+d.duration});i.updateToast(_);}else this.createToast({message:c,type:n,options:d});return i}catch(c){console.error(c);}}createToast({message:t,type:e,options:i,observableMessages:n,skipAttachToParent:r}){this._isInitialized||(this._isInitialized=true,this.init());let c=i?.id??`toast-${o.nextId++}`;if(!this.isDuplicate(c)&&(!i.persist?.enabled||i.persist?.enabled&&this.handleStorageValue(c,i))){let d=r$d({ariaLive:i?.ariaLive??"polite",createdAt:Date.now(),duration:i?.duration??Yt$4[e],id:c,message:t,role:i?.role??"status",type:e,visible:true,observableMessages:n??void 0},i);return new Q$7(d).appendTo(this._componentRef.ref.instance,r)}}isDuplicate(t){return this._componentRef.ref.instance.hasToast(t)}handleStorageValue(t,e){let i=1,n=r$d(r$d({},this._defaultPersistConfig),e.persist),r=n.storage==="local"?localStorage:sessionStorage,c=n.key.replace(/\${id}/g,t),d=r.getItem(c);return d?(d=parseInt(d,10),d>0?i=d-1:i=d):i=n.count,r.setItem(c,i.toString()),i}getContentAndOptions(t,e){var r;let i,n=r$d(r$d({},this._defaultGlobalConfig),this._defaultGlobalConfig[t]);if(typeof e=="string"||U$7(e)||G$b(e))i=e;else {let c;r=e,{content:i}=r,c=v$m(r,["content"]),n=r$d(r$d({},n),c);}return {content:i,options:n}}createLoadingToast(t){let e=null,i={};return {content:e,options:i}=this.getContentAndOptions("loading",t),this.loading(e,i)}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o}
1000)();function pi$2(o){return fo$3([{provide:W$c,useValue:o}])}var wi$1=(()=>{class o{constructor(){this._toast=g$k(wt$b),this._translocoService=g$k(Ce$5),this._toasts=new Map;}success(t){this._toast.success(t);}successIntl(t,e={}){this._intlMessage(t,i=>this._toast.success(i),r$d({duration:4e3},e));}stdSuccessIntl(){this._intlMessage("common.noti.saved",t=>this._toast.success(t,{duration:4e3}));}error(t){this._toast.error(t,{duration:8e3});}errorIntl(t,e={},i=8e3){this._intlMessage(t,n=>this._toast.error(n,{duration:i}),e);}stdErrorIntl(){this._intlMessage("common.noti.error",t=>this._toast.error(t,{duration:8e3}));}infoShortIntl(t){this._intlMessage(t,e=>this._toast.show(e,{duration:4500,icon:"\u{1F4A1}",className:"border-b-2 border-primary toast rounded-lg dark:bg-backgrounds-surface-raised dark:backdrop-blur-sm dark:text-mspot-neutral-900"}));}info(t){this._toast.show(t,{duration:8e3,icon:"\u{1F4A1}",className:"border-b-2 border-primary toast rounded-lg dark:bg-backgrounds-surface-raised dark:backdrop-blur-sm dark:text-mspot-neutral-900"});}infoIntl(t,e={}){this._intlMessage(t,i=>this._toast.show(this._getLineBreakString(i),{duration:8e3,icon:"\u{1F4A1}",className:"border-b-2 border-primary toast rounded-lg dark:bg-backgrounds-surface-raised dark:backdrop-blur-sm dark:text-mspot-neutral-900"}),e);}infoIntlNoAutoClose(t,e={}){this._intlMessage(t,i=>this._toast.show(this._getLineBreakString(i),{duration:0,autoClose:false,icon:"\u{1F4A1}",className:"border-b-2 border-primary toast rounded-lg dark:bg-backgrounds-surface-raised dark:backdrop-blur-sm dark:text-mspot-neutral-900"}),e);}warning(t){this._toast.warning(t);}warningIntl(t,e={}){this._intlMessage(t,i=>this._toast.warning(i),e);}observe({loading:t,success:e,error:i}={}){return this._toast.observe({loading:t||this._getStdTypeTranslation("loading"),success:e||this._getStdTypeTranslation("success"),error:i||this._getStdTypeTranslation("error")})}mutationToast(t,e,i){let n=this._toasts.get(t),r=i&&typeof i=="string"?this._translocoService.translate(i):this._getStdTypeTranslation(e);if(n){n.updateMessage(r),n.updateToast({type:e,duration:e==="success"?3e3:5e3});return}if(e==="loading"){let c=this._toast.loading(r,{id:t,autoClose:true});this._toasts.set(t,c);}else e==="success"?(this._toast.success(r,{id:t,autoClose:true}),this._toasts.delete(t)):e==="error"&&(this._toast.error(r,{id:t,autoClose:true}),this._toasts.delete(t));}startMutationToast(t){let e=`mutation-${Date.now()}-${Math.random()}`;return this.mutationToast(e,"loading",t),e}createLoadingToastIntl(t,e={},i){let n=t?this._translocoService.translate(t,e):this._getStdTypeTranslation("loading");return this._toast.loading(n,{id:i||"loading-"+Date.now(),autoClose:false})}observeWithCustomErrorHandling({errorCodeHandler:t,success:e,loading:i}){return n=>{let r=this.createLoadingToastIntl(i);return n.pipe(Ip$1(()=>{r.close(),this.successIntl(e||"notifications.default.successSaved");}),gc$1(c=>(r.close(),c instanceof H$j&&t?t(c):this.stdErrorIntl(),pn$a)))}}observeIntl({loading:t,success:e,error:i}={}){return this._toast.observe({loading:t?this._translocoService.translate(t):this._translocoService.translate("notifications.default.saving"),success:e?this._translocoService.translate(e):this._translocoService.translate("notifications.default.successSaved"),error:typeof i=="function"?n=>this._translocoService.translate(i(n)):this._translocoService.translate(i||"notifications.default.error")})}_getStdTypeTranslation(t){switch(t){case "success":return this._translocoService.translate("notifications.default.successSaved");case "error":return this._translocoService.translate("notifications.default.error");case "loading":return this._translocoService.translate("notifications.default.saving")}}_intlMessage(t,e,i={}){this._translocoService.selectTranslate(t,i).pipe($f$1()).subscribe(n=>e(n));}_getLineBreakString(t){return t.replace(/\n/g,"<br>")}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var h$4=[[["","slot","icon"]]],v$c=["[slot=icon]"],y$9=k$g("flex items-center shadow-sm font-medium gap-1",{variants:{color:{primary:"bg-primary-tint dark:bg-primary-soft text-primary",secondary:"bg-backgrounds-subtle border border-borders-secondary",blue:"bg-backgrounds-fill-information-subtle text-text-link-default",green:"bg-backgrounds-fill-success-subtle text-text-success",red:"bg-backgrounds-fill-danger-subtle text-text-danger",gray:"bg-backgrounds-canvas text-text-subtle",grayDark:"bg-backgrounds-subtle text-text-default",yellow:"bg-backgrounds-fill-warning-subtle text-text-warning"},shape:{rounded:"rounded-md",pill:"rounded-full"},size:{sm:"text-xs leading-4 px-2",xs:"text-[10px] leading-3 px-1.5"},responsiveText:{true:"break-words hyphens-auto",false:"text-nowrap"}},compoundVariants:[{size:"sm",responsiveText:false,class:"h-5 py-1"},{size:"xs",responsiveText:false,class:"h-4 py-0.5"},{size:"sm",responsiveText:true,class:"py-2"},{size:"xs",responsiveText:true,class:"py-1"}],defaultVariants:{color:"green",shape:"rounded",size:"sm",responsiveText:false}}),w$7=(()=>{class t{constructor(){this.label=X8.required(),this.color=X8("green"),this.shape=X8("rounded"),this.size=X8("sm"),this.responsiveText=X8(false),this.truncate=X8(false),this.customClass=X8("",{alias:"class"}),this._computedClass=qd$1(()=>mo$2(y$9({color:this.color(),shape:this.shape(),size:this.size(),responsiveText:this.responsiveText()}),this.customClass()));}static{this.\u0275fac=function(s){return new(s||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-badge"]],hostVars:2,hostBindings:function(s,o){s&2&&BM(o._computedClass());},inputs:{label:[1,"label"],color:[1,"color"],shape:[1,"shape"],size:[1,"size"],responsiveText:[1,"responsiveText"],truncate:[1,"truncate"],customClass:[1,"class","customClass"]},ngContentSelectors:v$c,decls:3,vars:3,template:function(s,o){s&1&&(DM(h$4),EM(0),jd$1(1,"span"),QM(2),Vd$
10001()),s&2&&(uT(),iD("truncate",o.truncate()),uT(),yD(o.label()));},encapsulation:2});}}return t})();function t$7(e){return Object.fromEntries(Object.entries(e).map(([r,o])=>[r,()=>Promise.resolve(o)]))}var K$b={generated:{description:"Inhalte wurden vollst\xE4ndig von KI erstellt, ohne von Menschen erstellte Elemente oder redaktionelle Kontrolle durch Menschen.",menuLabel:"AI-generiert",shortLabel:"generiert"},helpUrl:"https://help.memberspot.de/de/articles/16920783-ki-kennzeichnungspflicht-fur-deine-inhalte",modified:{description:"Bereits vorhandene, von Menschen erstellte Inhalte wurden teilweise mithilfe von KI ver\xE4ndert.",menuLabel:"AI-modifiziert",shortLabel:"modifiziert"},none:{description:"Die Inhalte wurden ohne die Nutzung von KI erstellt.",menuLabel:"Keine Nutzung von AI"},selectLabel:"AI-Kennzeichnung: {{state}}"};var F$9={generated:{description:"Content was fully created by AI without any human-created elements or human oversight.",menuLabel:"AI Generated",shortLabel:"Generated"},helpUrl:"https://help.memberspot.de/en/articles/16920783-ai-labeling-of-your-contents",modified:{description:"Existing, human-made content was modified partially with the help of AI.",menuLabel:"AI Modified",shortLabel:"Modified"},none:{description:"The content was created without the use of AI.",menuLabel:"No use of AI"},selectLabel:"AI content label: {{state}}"};function v$b(){return {provide:Me$7,useValue:{scope:"aiContentLabel",loader:t$7({de:K$b,en:F$9})}}}function j$c(t,d){if(t&1&&(ta$3(0,"a",2),Zv$1("click",function(e){return e.stopPropagation()}),QM(1),Pd$1()),t&2){let n=yM().$implicit,e=tN(1);jv$1("href",n("aiContentLabel.helpUrl"),Gm$1),Pv$1("data-cy","aiContentLabelHelpLink-"+e),uT(),yD(n("common.learnMore"));}}function q$9(t,d){if(t&1&&(Hd$1(0),wD(1),QM(2),eM$1(3,j$c,2,3,"a",1),$d$1()),t&2){let n=d.$implicit,e=yM();uT();let i=eN(e.value());uT(),Gd$1(" ",n("aiContentLabel."+(i??"none")+".description")," "),uT(),tM$1(i&&e.isAdmin?3:-1);}}var oe$6=(()=>{class t{constructor(){this.isAdmin=g$k(kE,{optional:true})??false,this.value=X8.required();}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-ai-content-label-description"]],hostAttrs:[1,"block","text-xs","font-medium"],inputs:{value:[1,"value"]},features:[cN([v$b()])],decls:1,vars:0,consts:[[4,"transloco"],["target","_blank","rel","noopener noreferrer",1,"focus-primary","inline-flex","items-center","rounded-sm","font-semibold","underline",3,"href"],["target","_blank","rel","noopener noreferrer",1,"focus-primary","inline-flex","items-center","rounded-sm","font-semibold","underline",3,"click","href"]],template:function(e,i){e&1&&gv$1(0,q$9,4,3,"ng-container",0);},dependencies:[yt$a],encapsulation:2});}}return t})();function G$a(t,d){if(t&1&&(Hd$1(0),ta$3(1,"mspot-badge",1)(2,"span",2),QM(3,"AI"),Pd$1()(),$d$1()),t&2){let n=d.$implicit,e=yM(),i=e.value(),U=e.showBackground(),x=e.size()==="md";uT(),BM("h-auto w-max overflow-hidden shadow-none transition-[max-width] duration-200 ease-out motion-reduce:transition-none [&.expanded]:max-w-40 [&.expanded]:ease-[cubic-bezier(0.8,0,1,1)] "+(U?"bg-backgrounds-fill-neutral-default py-0.5 pl-0.5 pr-2 "+(x?"max-w-7":"max-w-[1.375rem]"):"bg-transparent p-0 "+(x?"max-w-6":"max-w-[1.125rem]"))),iD("expanded",e.expanded()),jv$1("label",n(i+".shortLabel")),uT(),BM(x?"size-6 text-xs":"size-[1.125rem] text-[0.675rem]"),iD("bg-backgrounds-inverse",i==="generated")("text-text-inverse",i==="generated")("bg-backgrounds-active",i==="modified")("text-text-strong",i==="modified");}}var pe$7=(()=>{class t{constructor(){this.value=X8.required(),this.expanded=X8(true),this.showBackground=X8(true),this.size=X8("sm");}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-ai-content-label-visual"]],hostAttrs:[1,"inline-flex","shrink-0"],inputs:{value:[1,"value"],expanded:[1,"expanded"],showBackground:[1,"showBackground"],size:[1,"size"]},features:[cN([v$b()])],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],["shape","pill","color","gray",3,"label"],["slot","icon",1,"inline-flex","
1000shrink-0","items-center","justify-center","rounded-full","font-semibold"]],template:function(e,i){e&1&&gv$1(0,G$a,4,15,"ng-container",0),e&2&&jv$1("translocoPrefix","aiContentLabel");},dependencies:[yt$a,w$7],encapsulation:2});}}return t})(); 1001var a$9=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");var d$a=k$g(["inline-flex","items-center","justify-center","rounded-lg","text-sm","font-medium","transition-all","duration-100","focus-outline","disabled:opacity-50","disabled:pointer-events-none","disabled:cursor-not-allowed"],{variants:{size:{sm:"h-8 px-3 py-1.5 text-xs",md:"h-10 px-4 py-2 text-sm",lg:"h-12 px-6 py-3 text-base",icon:"h-10 w-10 p-2","icon-sm":"h-8 w-8 p-1.5","icon-xs":"h-6 w-6 p-1","icon-lg":"h-12 w-12 p-3",none:""},variant:{weak:"border",strong:"border border-current hover:opacity-90 active:opacity-80",cta:"border border-current",ghost:"bg-transparent",link:"bg-transparent underline-offset-4 hover:underline",none:""},color:{system:"text-text-strong focus-visible:outline-mspot-primary-600",info:"text-text-link-default focus-visible:outline-mspot-primary-600",warning:"text-text-warning focus-visible:outline-mspot-primary-600",success:"text-text-success focus-visible:outline-mspot-primary-600",danger:"text-text-danger focus-visible:outline-borders-danger",primary:"text-text-strong focus-visible:outline-mspot-primary-600"},extra:{none:"","inner-outline":"focus-primary--inner-outline"}},compoundVariants:[{variant:"weak",color:"system",className:"border-borders-secondary hover:bg-mspot-neutral-100 active:bg-backgrounds-subtle"},{variant:"weak",color:"primary",className:"border-borders-subtle hover:bg-backgrounds-surface-raisedHovered hover:border-borders-default focus-visible:border-borders-default"},{variant:"weak",color:"info",className:"border-borders-information hover:bg-mspot-information-100 active:bg-mspot-information-200 dark:hover:bg-mspot-information-900 dark:active:bg-mspot-information-800"},{variant:"weak",color:"warning",className:"border-borders-warning hover:bg-mspot-warning-100 active:bg-mspot-warning-200 dark:hover:bg-mspot-warning-900 dark:active:bg-mspot-warning-800"},{variant:"weak",color:"success",className:"border-borders-success hover:bg-mspot-success-200 active:bg-mspot-success-300 dark:hover:bg-mspot-success-900 dark:active:bg-mspot-success-800"},{variant:"weak",color:"danger",className:"border-borders-danger hover:bg-mspot-error-100 active:bg-mspot-error-200 dark:hover:bg-mspot-error-900 dark:active:bg-mspot-error-800"},{variant:"strong",color:"system",className:"bg-backgrounds-fill-neutral-strong text-text-inverse active:text-text-inverse disabled:bg-backgrounds-fill-neutral-disabled disabled:text-text-disabled border-none"},{variant:"strong",color:"info",className:"bg-backgrounds-fill-information-strong border-borders-information text-text-inverse active:text-text-inverse"},{variant:"strong",color:"warning",className:"bg-backgrounds-fill-warning-strong border-borders-warning text-text-inverse active:text-text-inverse"},{variant:"strong",color:"success",className:"bg-backgrounds-fill-success-strong border-borders-success text-text-inverse active:text-text-inverse"},{variant:"strong",color:"danger",className:"bg-backgrounds-fill-danger-strong border-borders-danger text-text-inverse active:text-text-inverse"},{variant:"strong",color:"primary",className:"bg-primary text-white border-none active:text-white"},{variant:"cta",color:"system",className:"text-text-inverse bg-backgrounds-fill-brand-strong hover:bg-backgrounds-fill-brand-strongHovered active:bg-backgrounds-fill-brand-strong active:text-text-inverse"},{variant:"cta",color:"primary",className:"bg-backgrounds-fill-brand-strong border-borders-brand hover:bg-backgrounds-fill-brand-strongHovered hover:border-borders-brand focus-visible:border-borders-brand text-text-inverse active:text-text-inverse"},{variant:"cta",color:"info",className:"bg-backgrounds-fill-information-subtle border-none hover:bg-backgrounds-fill-information-hovered"},{variant:"cta",color:"warning",className:"bg-backgrounds-fill-warning-subtle border-none hover:bg-backgrounds-fill-warning-hovered"},{variant:"cta",color:"success",className:"bg-backgrounds-fill-success-subtle border-none hover:bg-backgrounds-fill-success-hovered"},{variant:"cta",color:"danger",className:"bg-backgrounds-fill-danger-subtle border-none hover:bg-backgrounds-fill-danger-hovered"},{variant:"ghost",color:"system",className:"hover:bg-mspot-neutral-100 active:bg-backgrounds-subtle"},{variant:"ghost",color:"primary",className:"hover:bg-backgrounds-surface-raisedHovered active:bg-backgrounds-subtle"},{variant:"ghost",color:"info",className:"hover:bg-mspot-information-100 active:bg-mspot-information-200 dark:hover:bg-mspot-information-900 dark:active:bg-mspot-information-800"},{variant:"ghost",color:"warning",className:"hover:bg-mspot-warning-100 active:bg-mspot-warning-200 dark:hover:bg-mspot-warning-900 dark:active:bg-mspot-warning-800"},{variant:"ghost",color:"success",className:"hover:bg-mspot-success-200 active:bg-mspot-success-300 dark:hover:bg-mspot-success-900 dark:active:bg-mspot-success-800"},{variant:"ghost",color:"danger",className:"hover:bg-mspot-error-100 active:bg-mspot-error-200 dark:hover:bg-mspot-error-900 dark:active:bg-mspot-error-800"},{variant:"link",color:"primary",className:"text-text-subtle hover:text-primary focus-visible:text-primary focus-visible:underline rounded-sm font-normal"}],defaultVariants:{size:"md",variant:"weak",color:"system",extra:"none"}}),g$a=(()=>{class e{constructor(){this.customClass=X8("",{alias:"class",transform:n$b}),this.variant=X8("weak"),this.color=X8("system"),this.size=X8("md"),this.extra=X8("none"),this._computedClass=qd$1(()=>mo$2(d$a({size:this.size(),variant:this.variant(),color:this.color(),extra:this.extra()}),this.customClass()));}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["","mspotButton",""]],hostVars:2,hostBindings:function(t,b){t&2&&BM(b._computedClass());},inputs:{customClass:[1,"class","customClass"],variant:[1,"variant"],color:[1,"color"],size:[1,"size"],extra:[1,"extra"]}});}}return e})();var x$9=(function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i})(x$9||{}),He$6=class He{_renderer;element;config;_animationForciblyDisabledThroughCss;state=x$9.HIDDEN;constructor(o,e,t,n=false){this._renderer=o,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=n;}fadeOut(){this._renderer.fadeOutRipple(this);}},Qt$5=s$b({passive:true,capture:true}),Ye$3=class Ye{_events=new Map;addHandler(o,e,t,n){let a=this._events.get(e);if(a){let r=a.get(t);
1001r?r.add(n):a.set(t,new Set([n]));}else this._events.set(e,new Map([[t,new Set([n])]])),o.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Qt$5);});}removeHandler(o,e,t){let n=this._events.get(o);if(!n)return;let a=n.get(e);a&&(a.delete(t),a.size===0&&n.delete(e),n.size===0&&(this._events.delete(o),document.removeEventListener(o,this._delegateEventHandler,Qt$5)));}_delegateEventHandler=o=>{let e=E$d(o);e&&this._events.get(o.type)?.forEach((t,n)=>{(n===e||n.contains(e))&&t.forEach(a=>a.handleEvent(o));});}},Kt$4={enterDuration:225,exitDuration:150},fn$6=800,Wt$5=s$b({passive:true,capture:true}),Zt$5=["mousedown","touchstart"],Jt$4=["mouseup","mouseleave","touchend","touchcancel"],bn$5=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=qS({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[`.mat-ripple { 1002 overflow: hidden; 1003 position: relative; 1004} 1005.mat-ripple:not(:empty) { 1006 transform: translateZ(0); 1007} 1008 1009.mat-ripple.mat-ripple-unbounded { 1010 overflow: visible; 1011} 1012 1013.mat-ripple-element { 1014 position: absolute; 1015 border-radius: 50%; 1016 pointer-events: none; 1017 transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1); 1018 transform: scale3d(0, 0, 0); 1019 background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent)); 1020} 1021@media (forced-colors: active) { 1022 .mat-ripple-element { 1023 display: none; 1024 } 1025} 1026.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { 1027 display: none; 1028} 1029`],encapsulation:2})}return i})(),ze$6=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Ye$3;constructor(o,e,t,n,a){this._target=o,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=d$f(t)),a&&a.get(R$9).load(bn$5);}fadeInRipple(o,e,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=r$d(r$d({},Kt$4),t.animation);t.centered&&(o=n.left+n.width/2,e=n.top+n.height/2);let r=t.radius||vn$4(o,e,n),f=o-n.left,v=e-n.top,D=a.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${f-r}px`,u.style.top=`${v-r}px`,u.style.height=`${r*2}px`,u.style.width=`${r*2}px`,t.color!=null&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${D}ms`,this._containerElement.appendChild(u);let S=window.getComputedStyle(u),A=S.transitionProperty,Q=S.transitionDuration,xe=A==="none"||Q==="0s"||Q==="0s, 0s"||n.width===0&&n.height===0,F=new He$6(this,u,t,xe);u.style.transform="scale3d(1, 1, 1)",F.state=x$9.FADING_IN,t.persistent||(this._mostRecentTransientRipple=F);let de=null;return !xe&&(D||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Ue=()=>{de&&(de.fallbackTimer=null),clearTimeout($e),this._finishRippleTransition(F);},Te=()=>this._destroyRipple(F),$e=setTimeout(Te,D+100);u.addEventListener("transitionend",Ue),u.addEventListener("transitioncancel",Te),de={onTransitionEnd:Ue,onTransitionCancel:Te,fallbackTimer:$e};}),this._activeRipples.set(F,de),(xe||!D)&&this._finishRippleTransition(F),F}fadeOutRipple(o){if(o.state===x$9.FADING_OUT||o.state===x$9.HIDDEN)return;let e=o.element,t=r$d(r$d({},Kt$4),o.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",o.state=x$9.FADING_OUT,(o._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(o);}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut();});}setupTriggerEvents(o){let e=d$f(o);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Zt$5.forEach(t=>{i._eventManager.addHandler(this._ngZone,t,e,this);}));}handleEvent(o){o.type==="mousedown"?this._onMousedown(o):o.type==="touchstart"?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>
1029{Jt$4.forEach(e=>{this._triggerElement.addEventListener(e,this,Wt$5);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(o){o.state===x$9.FADING_IN?this._startFadeOutTransition(o):o.state===x$9.FADING_OUT&&this._destroyRipple(o);}_startFadeOutTransition(o){let e=o===this._mostRecentTransientRipple,{persistent:t}=o.config;o.state=x$9.VISIBLE,!t&&(!e||!this._isPointerDown)&&o.fadeOut();}_destroyRipple(o){let e=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=x$9.HIDDEN,e!==null&&(o.element.removeEventListener("transitionend",e.onTransitionEnd),o.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),o.element.remove();}_onMousedown(o){let e=P$9(o),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+fn$6;!this._target.rippleDisabled&&!e&&!t&&(this._isPointerDown=true,this.fadeInRipple(o.clientX,o.clientY,this._target.rippleConfig));}_onTouchStart(o){if(!this._target.rippleDisabled&&!B$h(o)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let e=o.changedTouches;if(e)for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(o=>{let e=o.state===x$9.VISIBLE||o.config.terminateOnPointerUp&&o.state===x$9.FADING_IN;!o.config.persistent&&e&&o.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let o=this._triggerElement;o&&(Zt$5.forEach(e=>i._eventManager.removeHandler(e,o,this)),this._pointerUpEventsRegistered&&(Jt$4.forEach(e=>o.removeEventListener(e,this,Wt$5)),this._pointerUpEventsRegistered=false));}};function vn$4(i,o,e){let t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),n=Math.max(Math.abs(o-e.top),Math.abs(o-e.bottom));return Math.sqrt(t*t+n*n)}var yn$5=new b$g("mat-ripple-global-options"),en$5=(()=>{class i{_elementRef=g$k(gt$f);_animationsDisabled=h$7();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let e=g$k(ge$b),t=g$k(w$c),n=g$k(yn$5,{optional:true}),a=g$k(oe$e);this._globalOptions=n||{},this._rippleRenderer=new ze$6(this,e,this._elementRef,t,a);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:r$d(r$d(r$d({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(e,t=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,r$d(r$d({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,r$d(r$d({},this.rippleConfig),e))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=mt$d({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){t&2&&iD("mat-ripple-unbounded",n.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return i})();var tn$5=(()=>
1029{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=qS({type:i,selectors:[["structural-styles"]],decls:0,vars:0,template:function(t,n){},styles:[`.mat-focus-indicator { 1030 position: relative; 1031} 1032.mat-focus-indicator::before { 1033 top: 0; 1034 left: 0; 1035 right: 0; 1036 bottom: 0; 1037 position: absolute; 1038 box-sizing: border-box; 1039 pointer-events: none; 1040 display: var(--mat-focus-indicator-display, none); 1041 border-width: var(--mat-focus-indicator-border-width, 3px); 1042 border-style: var(--mat-focus-indicator-border-style, solid); 1043 border-color: var(--mat-focus-indicator-border-color, transparent); 1044 border-radius: var(--mat-focus-indicator-border-radius, 4px); 1045} 1046.mat-focus-indicator:focus-visible::before { 1047 content: ""; 1048} 1049 1050@media (forced-colors: active) { 1051 html { 1052 --mat-focus-indicator-display: block; 1053 --mat-focus-indicator-fallback-border-style: none; 1054 } 1055} 1056`],encapsulation:2})}return i})();var nn$4=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Sa$2({type:i});static \u0275inj=io$5({imports:[K$j]})}return i})();var Ei$1=ve$b.enum(["generated","modified"]);var wn$4=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Dn$4=["mat-icon, [matMenuItemIcon]","*"];function En$4(i,o){i&1&&(yh$1(),ta$3(0,"svg",2),Vv$1(1,"polygon",3),Pd$1());}var In$5=["*"];function Sn$4(i,o){if(i&1){let e=fM();jd$1(0,"div",0),Yv$1("click",function(){sh$1(e);let n=yM();return ah$1(n.closed.emit("click"))})("animationstart",function(n){sh$1(e);let a=yM();return ah$1(a._onAnimationStart(n.animationName))})("animationend",function(n){sh$1(e);let a=yM();return ah$1(a._onAnimationDone(n.animationName))})("animationcancel",function(n){sh$1(e);let a=yM();return ah$1(a._onAnimationDone(n.animationName))}
1056),jd$1(1,"div",1),EM(2),Vd$1()();}if(i&2){let e=yM();BM(e._classList),iD("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),zv$1("id",e.panelId),Pv$1("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var Xe$2=new b$g("MAT_MENU_PANEL"),ce$5=(()=>{class i{_elementRef=g$k(gt$f);_document=g$k(Te$g);_focusMonitor=g$k(be$a);_parentMenu=g$k(Xe$2,{optional:true});_changeDetectorRef=g$k(Va$2);role="menuitem";disabled=false;disableRipple=false;_hovered=new le$d;_focused=new le$d;_highlighted=false;_triggersSubmenu=false;constructor(){g$k(R$9).load(tn$5),this._parentMenu?.addItem?.(this);}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,false);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(true),t=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n<t.length;n++)t[n].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=qS({type:i,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(t,n){t&1&&Zv$1("click",function(r){return n._checkDisabled(r)})("mouseenter",function(){return n._handleMouseEnter()}),t&2&&(Pv$1("role",n.role)("tabindex",n._getTabIndex())("aria-disabled",n.disabled)("disabled",n.disabled||null),iD("mat-mdc-menu-item-highlighted",n._highlighted)("mat-mdc-menu-item-submenu-trigger",n._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",ni$7],disableRipple:[2,"disableRipple","disableRipple",ni$7]},exportAs:["matMenuItem"],ngContentSelectors:Dn$4,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,n){t&1&&(DM(wn$4),EM(0),ta$3(1,"span",0),EM(2,1),Pd$1(),Vv$1(3,"div",1),eM$1(4,En$4,2,0,":svg:svg",2)),t&2&&(uT(3),jv$1("matRippleDisabled",n.disableRipple||n.disabled)("matRippleTrigger",n._getHostElement()),uT(),tM$1(n._triggersSubmenu?4:-1));},dependencies:[en$5],encapsulation:2})}return i})();var rn$5=new b$g("MatMenuContent"),no$3=(()=>{class i{_template=g$k(rn$a);_appRef=g$k(yt$f);_injector=g$k(oe$e);_viewContainerRef=g$k(Rt$f);_document=g$k(Te$g);_changeDetectorRef=g$k(Va$2);_portal;_outlet;_attached=new le$d;attach(e={}){this._portal||(this._portal=new U$b(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new pt$9(this._document.createElement("div"),this._appRef,this._injector));let t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next();}detach(){this._portal?.isAttached&&this._portal.detach();}ngOnDestroy(){this.detach(),this._outlet?.dispose();}static \u0275fac=function(t){return new(t||i)};static \u0275dir=mt$d({type:i,selectors:[["ng-template","matMenuContent",""]],features:[cN([{provide:rn$5,useExisting:i}])]})}return i})(),Rn$5=new b$g("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:false,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),je$4="_mat-menu-enter",Me$4="_mat-menu-exit",G$9=(()=>{class i{_elementRef=g$k(gt$f);_changeDetectorRef=g$k(Va$2);_injector=g$k(oe$e);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=h$7();_allItems;_directDescendantItems=new Hs$3;_classList={};_panelAnimationState="void";_animationDone=new le$d;_isAnimating=On$7(false);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger=false;hasBackdrop;get panelClass(){return this._previousPanelClass}set panelClass(e){let t=this._previousPanelClass,n=r$d({},this._classList);t&&t.length&&t.split(" ").forEach(a=>{n[a]=false;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{n[a]=true;}),this._elementRef.nativeElement.className=""),this._classList=n;}_previousPanelClass="";get classList(){return this.panelClass}set classList(e){this.panelClass=e;}closed=new Ct$h;close=this.closed;panelId=g$k(S$g).getId("mat-menu-panel-");constructor(){let e=g$k(Rn$5);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.
1056yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop;}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new j$i(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Qf$1(this._directDescendantItems),Kf$1(e=>xI(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let n=e.toArray(),a=Math.max(0,Math.min(n.length-1,t.activeItemIndex||0));n[a]&&!n[a].disabled?t.setActiveItem(a):t.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(Qf$1(this._directDescendantItems),Kf$1(t=>xI(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:K$k(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Xl$1(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&t&&t.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=s$e(r$d({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let t=e===Me$4;(t||e===je$4)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(false));}_onAnimationStart(e){(e===je$4||e===Me$4)&&this._isAnimating.set(true);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Me$4),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?je$4:Me$4);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(Qf$1(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=qS({type:i,selectors:[["mat-menu"]],contentQueries:function(t,n,a){if(t&1&&Kv$1(a,rn$5,5)(a,ce$5,5)(a,ce$5,4),t&2){let r;CM(r=wM())&&(n.lazyContent=r.first),CM(r=wM())&&(n._allItems=r),CM(r=wM())&&(n.items=r);}},viewQuery:function(t,n){if(t&1&&Jv$1(rn$a,5),t&2){let a;CM(a=wM())&&(n.templateRef=a.first);}},hostVars:3,hostBindings:function(t,n){t&2&&Pv$1("aria-label",null)("aria-labelledby",null)("aria-describedby",null);},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",ni$7],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:ni$7(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[cN([{provide:Xe$2,useExisting:i}])],ngContentSelectors:In$5,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,n){t&1&&(DM(),mv$1(0,Sn$4,3,12,"ng-template"));},styles:[`mat-menu { 1057 display: none; 1058} 1059 1060.mat-mdc-menu-content { 1061 margin: 0; 1062 padding: 8px 0; 1063 outline: 0; 1064} 1065.mat-mdc-menu-content, 1066.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text { 1067 -moz-osx-font-smoothing: grayscale; 1068 -webkit-font-smoothing: antialiased; 1069 flex: 1; 1070 white-space: normal; 1071 font-family: var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font)); 1072 line-height: var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height)); 1073 font-size: var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size)); 1074 letter-spacing: var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking)); 1075 font-weight: var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight)); 1076} 1077 1078@keyframes _mat-menu-enter { 1079 from { 1080 opacity: 0; 1081 transform: scale(0.8); 1082 } 1083 to { 1084 opacity: 1; 1085 transform: none; 1086 } 1087} 1088@keyframes _mat-menu-exit { 1089 from { 1090 opacity: 1; 1091 } 1092 to { 1093 opacity: 0; 1094 } 1095} 1096.mat-mdc-menu-panel { 1097 min-width: 112px; 1098 max-width: 280px; 1099 overflow: auto; 1100 box-sizing: border-box; 1101 outline: 0; 1102 animation: _mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1); 1103 border-radius: var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small)); 1104 background-color: var(--mat-menu-container-color, var(--mat-sys-surface-container)); 1105 box-shadow: var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); 1106 will-change: transform, opacity; 1107} 1108.mat-mdc-menu-panel.mat-menu-panel-exit-animation { 1109 animation: _mat-menu-exit 100ms 25ms linear forwards; 1110} 1111.mat-mdc-menu-panel.mat-menu-panel-animations-disabled { 1112 animation: none; 1113} 1114.mat-mdc-menu-panel.mat-menu-panel-animating { 1115 pointer-events: none; 1116} 1117.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty) { 1118 display: none; 1119} 1120@media (forced-colors: active) { 1121 .mat-mdc-menu-panel { 1122 outline: solid 1px; 1123 } 1124} 1125.mat-mdc-menu-panel .mat-divider { 1126 border-top-color: var(--mat-menu-divider-color, var(--mat-sys-surface-variant));
1127 margin-bottom: var(--mat-menu-divider-bottom-spacing, 8px); 1128 margin-top: var(--mat-menu-divider-top-spacing, 8px); 1129} 1130 1131.mat-mdc-menu-item { 1132 display: flex; 1133 position: relative; 1134 align-items: center; 1135 justify-content: flex-start; 1136 overflow: hidden; 1137 padding: 0; 1138 cursor: pointer; 1139 width: 100%; 1140 text-align: left; 1141 box-sizing: border-box; 1142 color: inherit; 1143 font-size: inherit; 1144 background: none; 1145 text-decoration: none; 1146 margin: 0; 1147 min-height: 48px; 1148 padding-left: var(--mat-menu-item-leading-spacing, 12px); 1149 padding-right: var(--mat-menu-item-trailing-spacing, 12px); 1150 -webkit-user-select: none; 1151 user-select: none; 1152 cursor: pointer; 1153 outline: none; 1154 border: none; 1155 -webkit-tap-highlight-color: transparent; 1156} 1157.mat-mdc-menu-item::-moz-focus-inner { 1158 border: 0; 1159} 1160[dir=rtl] .mat-mdc-menu-item { 1161 padding-left: var(--mat-menu-item-trailing-spacing, 12px); 1162 padding-right: var(--mat-menu-item-leading-spacing, 12px); 1163} 1164.mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) { 1165 padding-left: var(--mat-menu-item-with-icon-leading-spacing, 12px); 1166 padding-right: var(--mat-menu-item-with-icon-trailing-spacing, 12px); 1167} 1168[dir=rtl] .mat-mdc-menu-item:has(.material-icons, mat-icon, [matButtonIcon]) { 1169 padding-left: var(--mat-menu-item-with-icon-trailing-spacing, 12px); 1170 padding-right: var(--mat-menu-item-with-icon-leading-spacing, 12px); 1171} 1172.mat-mdc-menu-item, .mat-mdc-menu-item:visited, .mat-mdc-menu-item:link { 1173 color: var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface)); 1174} 1175.mat-mdc-menu-item .mat-icon-no-color, 1176.mat-mdc-menu-item .mat-mdc-menu-submenu-icon { 1177 color: var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant)); 1178} 1179.mat-mdc-menu-item[disabled] { 1180 cursor: default; 1181 opacity: 0.38; 1182} 1183.mat-mdc-menu-item[disabled]::after { 1184 display: block; 1185 position: absolute; 1186 content: ""; 1187 top: 0; 1188 left: 0; 1189 bottom: 0; 1190 right: 0; 1191} 1192.mat-mdc-menu-item:focus { 1193 outline: 0; 1194} 1195.mat-mdc-menu-item .mat-icon { 1196 flex-shrink: 0; 1197 margin-right: var(--mat-menu-item-spacing, 12px); 1198 height: var(--mat-menu-item-icon-size, 24px); 1199 width: var(--mat-menu-item-icon-size, 24px); 1200} 1201[dir=rtl] .mat-mdc-menu-item { 1202 text-align: right; 1203} 1204[dir=rtl] .mat-mdc-menu-item .mat-icon { 1205 margin-right: 0; 1206 margin-left: var(--mat-menu-item-spacing, 12px); 1207} 1208.mat-mdc-menu-item:not([disabled]):hover { 1209 background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 1210} 1211.mat-mdc-menu-item:not([disabled]).cdk-program-focused, .mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused, .mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted { 1212 background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 1213} 1214@media (forced-colors: active) { 1215 .mat-mdc-menu-item {
1216 margin-top: 1px; 1217 } 1218} 1219 1220.mat-mdc-menu-submenu-icon { 1221 width: var(--mat-menu-item-icon-size, 24px); 1222 height: 10px; 1223 fill: currentColor; 1224 padding-left: var(--mat-menu-item-spacing, 12px); 1225} 1226[dir=rtl] .mat-mdc-menu-submenu-icon { 1227 padding-right: var(--mat-menu-item-spacing, 12px); 1228 padding-left: 0; 1229} 1230[dir=rtl] .mat-mdc-menu-submenu-icon polygon { 1231 transform: scaleX(-1); 1232 transform-origin: center; 1233} 1234@media (forced-colors: active) { 1235 .mat-mdc-menu-submenu-icon { 1236 fill: CanvasText; 1237 } 1238} 1239 1240.mat-mdc-menu-item .mat-mdc-menu-ripple { 1241 top: 0; 1242 left: 0; 1243 right: 0; 1244 bottom: 0; 1245 position: absolute; 1246 pointer-events: none; 1247} 1248`],encapsulation:2})}return i})(),On$4=new b$g("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=g$k(oe$e);return ()=>Yt$6(i)}});var q$8=new WeakMap,Pn$5=(()=>{class i{_canHaveBackdrop;_element=g$k(gt$f);_viewContainerRef=g$k(Rt$f);_menuItemInstance=g$k(ce$5,{optional:true,self:true});_dir=g$k(z$g,{optional:true});_focusMonitor=g$k(be$a);_ngZone=g$k(ge$b);_injector=g$k(oe$e);_scrollStrategy=g$k(On$4);_changeDetectorRef=g$k(Va$2);_animationsDisabled=h$7();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=Q$f.EMPTY;_menuCloseSubscription=Q$f.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t);})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()));}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=g$k(Xe$2,{optional:true});this._parentMaterialMenu=t instanceof G$9?t:void 0;}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&q$8.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return !!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit();}_openMenu(e){if(this._triggerIsAriaDisabled())return;let t=this._menu;if(this._menuOpen||!t)return;this._pendingRemoval?.unsubscribe();let n=q$8.get(t);q$8.set(t,this),n&&n!==this&&n._closeMenu();let a=this._createOverlay(t),r=a.getConfig(),f=r.positionStrategy;this._setPosition(t,f),this._canHaveBackdrop?r.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:r.hasBackdrop=t.hasBackdrop??false,a.hasAttached()||(a.attach(this._getPortal(t)),t.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),t.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,e&&t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),t instanceof G$9&&(t._setIsOpen(true),t._directDescendantItems.changes.pipe(Pi$2(t.close)).subscribe(()=>{f.withLockedPosition(false).reapplyLastPosition(),f.withLockedPosition(true);}));}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t);}_destroyMenu(e){let t=this._overlayRef,n=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),n instanceof G$9&&this._ownsMenu(n)?(this._pendingRemoval=n._animationDone.pipe(hn$9(1)).subscribe(()=>{t.detach(),q$8.has(n)||n.lazyContent?.detach();}),n._setIsOpen(false)):(t.detach(),n?.lazyContent?.detach()),n&&this._ownsMenu(n)&&q$8.delete(n),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false));}
1248_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck());}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=Zt$7(this._injector,t),this._overlayRef.keydownEvents().subscribe(n=>{this._menu instanceof G$9&&this._menu._handleKeydown(n);});}return this._overlayRef}_getOverlayConfig(e){return new J$g({positionStrategy:Xt$7(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(n=>{this._ngZone.run(()=>{let a=n.connectionPair.overlayX==="start"?"after":"before",r=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,r);});});}_setPosition(e,t){let[n,a]=e.xPosition==="before"?["end","start"]:["start","end"],[r,f]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[v,D]=[r,f],[u,S]=[n,a],A=0;if(this._triggersSubmenu()){if(S=n=e.xPosition==="before"?"start":"end",a=u=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let Q=this._parentMaterialMenu.items.first;this._parentInnerPadding=Q?Q._getHostElement().offsetTop:0;}A=r==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||(v=r==="top"?"bottom":"top",D=f==="top"?"bottom":"top");t.withPositions([{originX:n,originY:v,overlayX:u,overlayY:r,offsetY:A},{originX:a,originY:v,overlayX:S,overlayY:r,offsetY:A},{originX:n,originY:D,overlayX:u,overlayY:f,offsetY:-A},{originX:a,originY:D,overlayX:S,overlayY:f,offsetY:-A}]);}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:yI(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Pt$b(r=>this._menuOpen&&r!==this._menuItemInstance)):yI();return xI(e,n,a,t)}_getPortal(e){return (!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new U$b(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return q$8.get(e)===this}_triggerIsAriaDisabled(){return ni$7(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){pS();};static \u0275dir=mt$d({type:i})}return i})(),sn$5=(()=>{class i extends Pn$5{_cleanupTouchstart;_hoverSubscription=Q$f.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu}set menu(e){this._menu=e;}menuData;restoreFocus=true;menuOpened=new Ct$h;onMenuOpen=this.menuOpened;menuClosed=new Ct$h;onMenuClose=this.menuClosed;constructor(){super(true);let e=g$k(Fr$6);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{B$h(t)||(this._openedBy="touch");},{passive:true});}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true);}closeMenu(){this._closeMenu();}updatePosition(){this._overlayRef?.updatePosition();}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe();}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){P$9(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu());}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu();}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false));}));}static \u0275fac=function(t){return new(t||i)};static \u0275dir=mt$d({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,n){t&1&&Zv$1("click",function(r){return n._handleClick(r)}
1248)("mousedown",function(r){return n._handleMousedown(r)})("keydown",function(r){return n._handleKeydown(r)}),t&2&&Pv$1("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu?.panelId:null);},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[pv$1]})}return i})();var ln$5=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Sa$2({type:i});static \u0275inj=io$5({imports:[nn$4,pi$4,K$j,Tt$b]})}return i})();var Fn$5=["itemTpl"],Ln$5=["footerTpl"],Nn$5=["optionEl"],Bn$5=[[["","slot","triggercontent"]]],Vn$5=["[slot=triggerContent]"],Hn$4=i=>({$implicit:i}),Yn$4=i=>({"text-text-danger":i}),cn$5=(i,o)=>o.id;function zn$3(i,o){i&1&&(ta$3(0,"div",6),QM(1),Pd$1()),i&2&&(uT(),Gd$1(" ",o," "));}function jn$4(i,o){if(i&1&&(ta$3(0,"div",8),QM(1),Pd$1()),i&2){let e=yM(2);uT(),Gd$1(" ",e.emptyLabel()," ");}}function Xn$5(i,o){i&1&&$v$1(0);}function Un$4(i,o){if(i&1&&gv$1(0,Xn$5,1,0,"ng-container",14),i&2){let e=yM().$implicit;jv$1("ngTemplateOutlet",o)("ngTemplateOutletContext",fN(2,Hn$4,e));}}function $n$4(i,o){if(i&1&&Vv$1(0,"mspot-badge",17),i&2){let e=o,t=yM(4);jv$1("label",e.text)("color",t.badgeColor(e.variant));}}function qn$5(i,o){if(i&1&&(ta$3(0,"span",18),QM(1),Pd$1()),i&2){let e=yM(2).$implicit;uT(),yD(e.sublabel);}}function Gn$6(i,o){if(i&1&&(ta$3(0,"div",13)(1,"div",15)(2,"span",16),QM(3),Pd$1(),eM$1(4,$n$4,1,2,"mspot-badge",17),Pd$1(),eM$1(5,qn$5,2,1,"span",18),Pd$1()),i&2){let e,t=yM().$implicit;uT(3),Gd$1(" ",t.label," "),uT(),tM$1((e=t.badge)?4:-1,e),uT(),tM$1(t.sublabel?5:-1);}}function Qn$5(i,o){if(i&1&&Vv$1(0,"ng-icon",23),i&2){let e=yM(2).$implicit;jv$1("name",e.icon);}}function Kn$5(i,o){if(i&1){let e=fM();ta$3(0,"button",22),Zv$1("click",function(n){sh$1(e);let a=yM().$implicit,r=yM(2).$implicit,f=yM(2);return ah$1(f.onActionClick(n,r,a))}),eM$1(1,Qn$5,1,1,"ng-icon",23),ta$3(2,"span",24),QM(3),Pd$1()();}if(i&2){let e=yM().$implicit;jv$1("disabled",e.disabled??false)("matTooltip",e.disabled?e.disabledReason??"":"")("ngClass",fN(5,Yn$4,e.variant==="danger")),uT(
1248),tM$1(e.icon?1:-1),uT(2),Gd$1(" ",e.label," ");}}function Wn$6(i,o){if(i&1&&eM$1(0,Kn$5,4,7,"button",21),i&2){let e=o.$implicit;tM$1(e.hidden?-1:0);}}function Zn$5(i,o){if(i&1&&(ta$3(0,"button",19),Zv$1("click",function(t){return t.stopPropagation()}),Vv$1(1,"ng-icon",20),Pd$1(),ta$3(2,"mat-menu",null,2),oM(4,Wn$6,1,1,null,null,cn$5),Pd$1()),i&2){let e=TM(3),t=yM().$implicit,n=yM(2);Lv$1("aria-label",n.actionsAriaLabelFn()(t.label)),jv$1("matMenuTriggerFor",e),uT(4),iM(t.actions);}}function Jn$5(i,o){if(i&1){let e=fM();ta$3(0,"div",11)(1,"button",12,1),Zv$1("click",function(){let n=sh$1(e).$implicit,a=yM(2);return ah$1(a.onSelect(n))}),eM$1(3,Un$4,1,4,"ng-container")(4,Gn$6,6,3,"div",13),Pd$1(),eM$1(5,Zn$5,6,2),Pd$1();}if(i&2){let e,t=o.$implicit,n=yM(2),a=t.id===n.selectedId();BM(a?"bg-backgrounds-fill-selected-subtle":"hover:bg-backgrounds-hover"),uT(),jv$1("disabled",t.disabled??false)("matTooltip",t.disabled?t.disabledReason??"":""),Pv$1("aria-selected",t.id===n.selectedId())("aria-disabled",t.disabled??null),uT(2),tM$1((e=n.itemTpl())?3:4,e),uT(2),tM$1(t.actions&&t.actions.length>0?5:-1);}}function ei$2(i,o){i&1&&$v$1(0);}function ti$2(i,o){i&1&&(ta$3(0,"div",10),gv$1(1,ei$2,1,0,"ng-container",25),Pd$1()),i&2&&(uT(),jv$1("ngTemplateOutlet",o));}function ni$2(i,o){if(i&1){let e=fM();ta$3(0,"div",5),Zv$1("keydown",function(n){sh$1(e);let a=yM();return ah$1(a.onListKeydown(n))}),eM$1(1,zn$3,2,1,"div",6),ta$3(2,"div",7),eM$1(3,jn$4,2,1,"div",8),oM(4,Jn$5,6,8,"div",9,cn$5),Pd$1(),eM$1(6,ti$2,2,1,"div",10),Pd$1();}if(i&2){let e,t,n=yM();BM(n.overlayClass()),jv$1("id",n.overlayId),Pv$1("aria-label",n.ariaLabel()??null)("aria-labelledby",n.triggerId),uT(),tM$1((e=n.header())?1:-1,e),uT(2),tM$1(n.items().length===0?3:-1),uT(),iM(n.items()),uT(2),tM$1((t=n.showFooter()&&n.footerTpl())?6:-1,t);}}var dn$5=(()=>{class i{constructor(){this._document=g$k(Te$g),this.items=X8.required(),this.selectedId=X8(null),this.triggerDisabled=X8(false),this.triggerClass=X8(""),this.emptyLabel=X8("No items"),this.overlayClass=X8("flex max-h-[70vh] min-w-[22rem] flex-col rounded-lg border border-borders-secondary bg-backgrounds-surface-raised backdrop-blur-sm p-1 shadow-md"),this.header=X8(null),this.showFooter=X8(false),this.ariaLabel=X8(void 0),this.actionsAriaLabelFn=X8(e=>`Actions for ${e}`),this.selectionChange=J8(),this.actionTriggered=J8(),this.opened=J8(),this.closed=J8(),this.itemTpl=r3("itemTpl",{read:rn$a}),this.footerTpl=r3("footerTpl",{read:rn$a}),this.optionEls=n3(),this.isOpen=On$7(false),this.positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:8},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:8},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-8},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-8}],this._uniqueId=`select-menu-${a$9()}`,this.triggerId=`${this._uniqueId}-trigger`,this.overlayId=`${this._uniqueId}-overlay`;}toggle(){this.triggerDisabled()||(this.isOpen()?this.close():this.open());}open(){this.isOpen()||(this.isOpen.set(true),this.opened.emit());}close(){this.isOpen()&&(this.isOpen.set(false),this.closed.emit());}onSelect(e){e.disabled||(this.selectionChange.emit(e),this.close());}onActionClick(e,t,n){e.stopPropagation(),!n.disabled&&(this.actionTriggered.emit({item:t,actionId:n.id}),this.close());}onBackdropClick(){this.close();}badgeColor(e){switch(e??"neutral"){case "live":return "green";case "warning":return "yellow";case "info":return "blue";case "neutral":return "gray"}}onEscape(){this.close();}onListKeydown(e){let t=this.optionEls().filter(r=>!r.nativeElement.disabled);if(!t.length)return;let n=this._document.activeElement,a=n instanceof HTMLElement?t.findIndex(r=>r.nativeElement===n):-1;switch(e.key){case "ArrowDown":{e.preventDefault();let r=a<0?0:(a+1)%t.length;t[r]?.nativeElement.focus();break}case "ArrowUp":{e.preventDefault();let r=a<=0?t.length-1:(a-1+t.length)%t.length;t[r]?.nativeElement.focus();break}case "Home":{e.preventDefault(),t[0]?.nativeElement.focus();break}case "End":{e.preventDefault(),t[t.length-1]?.nativeElement.focus();break}}}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-select-menu"]],contentQueries:function(t,n,a){t&1&&Xv$1(a,n.itemTpl,Fn$5,5,rn$a)(a,n.footerTpl,Ln$5,5,rn$a),t&2&&bM(2);},viewQuery:function(t,n){t&1&&eD(n.optionEls,Nn$5,5),t&2&&bM();},hostAttrs:[1,"inline-block"],hostBindings:function(t,n){t&1&&Zv$1("keydown.escape",function(){return n.onEscape()});},inputs:{items:[1,"items"],selectedId:[1,"selectedId"],triggerDisabled:[1,"triggerDisabled"],triggerClass:[1,"triggerClass"],emptyLabel:[1,"emptyLabel"],overlayClass:[1,"overlayClass"],header:[1,"header"],show
1248Footer:[1,"showFooter"],ariaLabel:[1,"ariaLabel"],actionsAriaLabelFn:[1,"actionsAriaLabelFn"]},outputs:{selectionChange:"selectionChange",actionTriggered:"actionTriggered",opened:"opened",closed:"closed"},ngContentSelectors:Vn$5,decls:4,vars:14,consts:[["trigger",""],["optionEl",""],["actionsMenu","matMenu"],["cdkOverlayOrigin","","type","button",3,"click","id","disabled"],["cdkConnectedOverlay","",3,"backdropClick","detach","overlayKeydown","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayBackdropClass","cdkConnectedOverlayPositions","cdkConnectedOverlayPush"],["role","listbox","tabindex","-1","cdkTrapFocus","","cdkTrapFocusAutoCapture","",3,"keydown","id"],[1,"text-text-subtle","shrink-0","px-3","py-2","text-xs","font-semibold","uppercase"],[1,"min-h-0","flex-1","overflow-y-auto"],[1,"text-text-subtle","px-3","py-4","text-sm"],[1,"flex","items-center","gap-1","rounded","px-1","py-0.5","transition-colors",3,"class"],[1,"border-borders-primary","shrink-0","border-t","px-3","py-2"],[1,"flex","items-center","gap-1","rounded","px-1","py-0.5","transition-colors"],["mspotButton","","type","button","variant","none","size","none","extra","inner-outline","role","option",1,"w-full","flex-1","justify-start","gap-3","rounded","px-2","py-1.5","text-left",3,"click","disabled","matTooltip"],[1,"flex","min-w-0","flex-1","flex-col"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex","items-center","gap-2"],[1,"text-text-strong","truncate","font-medium"],[1,"shrink-0","uppercase","tracking-wide",3,"label","color"],[1,"text-text-subtle","text-xs"],["mspot-icon-button","","type","button","variant","subtle","color","default","size","xs",3,"click","aria-label","matMenuTriggerFor"],["data-button-icon","","name","hero-ellipsis-vertical","aria-hidden","true"],["mat-menu-item","","type","button",1,"!inline-flex","!items-center",3,"disabled","matTooltip","ngClass"],["mat-menu-item","","type","button",1,"!inline-flex","!items-center",3,"click","disabled","matTooltip","ngClass"],[1,"mr-2","inline-flex","items-center","text-base","leading-none",3,"name"],[1,"inline-flex","items-center"],[4,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(DM(Bn$5),ta$3(0,"button",3,0),Zv$1("click",function(){return n.toggle()}),EM(2),Pd$1(),gv$1(3,ni$2,7,8,"ng-template",4),Zv$1("backdropClick",function(){return n.onBackdropClick()})("detach",function(){return n.close()})("overlayKeydown",function(r){return r.key==="Escape"?n.close():null})),t&2){let a=TM(1);BM(n.triggerClass()),jv$1("id",n.triggerId)("disabled",n.triggerDisabled()),Pv$1("aria-haspopup","listbox")("aria-expanded",n.isOpen())("aria-controls",n.isOpen()?n.overlayId:null)("aria-label",n.ariaLabel()??null),uT(3),jv$1("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",n.isOpen())("cdkConnectedOverlayHasBackdrop",true)("cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop")("cdkConnectedOverlayPositions",n.positions)("cdkConnectedOverlayPush",true);}},dependencies:[w$7,g$a,Z$8,ui$3,Wt$8,Ve$a,mx$1,le$9,Ix$1,ln$5,G$9,ce$5,sn$5,zt$7,mt$7],encapsulation:2});}}return i})();function mn$5(i,o){return i?"error":o?"success":"default"}function ii$2(i){let o=i.validator;if(!o)return false;let e=["","�","not-an-email","[email protected]"],t=[];for(let r of e)try{t.push(o({value:r}));}catch{return true}let n=t[0]!==null,a=t.slice(1).every(r=>r===null);return !(n&&a)}function oi$2(i){return i==null?false:typeof i=="string"?i.trim().length>0:true}function un$5(i){let{showSuccess:o,control:e}=i;return !o||!e?false:e.valid&&e.touched&&e.dirty&&oi$2(e.value)&&ii$2(e)}var ai$2=["required","email","emailInvalid","mailProviderInvalid","minlength","maxlength","min","max","pattern","invalidPattern","isNotANumber","isNotPositiveWholeNumber","isNotInFuture","urlTaken","mustMatch","jsonInvalid","schemaInvalid"];function pn$5(i){if(!i)return null;let o=Object.keys(i);if(o.length===0)return null;if(o.length===1){let t=o[0];return {[t]:i[t]}}for(let t of ai$2)if(t in i)return {[t]:i[t]};let e=o[0];return {[e]:i[e]}}function _n$5(i){return i?xI(i.events,i.statusChanges,i.valueChanges):yI(null)}function gn$5(i){return i.hasValidator(Ce$8.required)||i.hasValidator(Ce$8.requiredTrue)}function hn$5(i){let o=On$7(0);Es$3(v=>{let D=i.control(),u=_n$5(D).pipe(Qf$1(null)).subscribe(()=>o.update(S=>S+1));v(()=>u.unsubscribe());});let e=qd$1(()=>(o(),i.showRequired&&!i.showRequired()?false:gn$5(i.control()))),t=qd$1(()=>{o();let v=i.control();return !!v.invalid&&!!v.touched}),n=qd$1(()=>{o();let v=i.control().errors;return v?pn$5(v):null}),a=qd$1(()=>(o(),i.control().disabled)),r=qd$1(()=>(o(),un$5({showSuccess:i.showSuccess?.()??false,control:i.control()}))),f=qd$1(()=>mn$5(t(),r()));return {revision:o.asReadonly(),required:e,invalid:t,errors:n,disabled:a,success:r,visualState:f}}var ri$2=i=>({state:i});function si$2(i,o){if(i&1&&Vv$1(0,"mspot-ai-content-label-visual",5),i&2){
1248yM();let e=tN(1),t=tN(2);jv$1("value",e)("expanded",false)("showBackground",false)("size",t?"sm":"md");}}function li$2(i,o){if(i&1&&(ta$3(0,"span",7),QM(1,"AI"),Pd$1()),i&2){yM();let e=tN(2);BM(e?"border-borders-bold border text-[0.675rem]":"text-xs");}}function ci$2(i,o){if(i&1&&Vv$1(0,"mspot-ai-content-label-visual",10),i&2){let e=yM().$implicit;jv$1("value",e.data);}}function di$1(i,o){if(i&1&&(ta$3(0,"span",8)(1,"span",9)(2,"span"),QM(3),Pd$1(),eM$1(4,ci$2,1,1,"mspot-ai-content-label-visual",10),Pd$1(),Vv$1(5,"mspot-ai-content-label-description",11),Pd$1()),i&2){let e=o.$implicit,t=yM().$implicit;Pv$1("data-cy","aiContentLabelSelectTrigger-"+e.id),uT(3),yD(t(e.label)),uT(),tM$1(e.data?4:-1),uT(),jv$1("value",e.data??null);}}function mi$1(i,o){if(i&1){let e=fM();Hd$1(0),wD(1)(2),ta$3(3,"span",2)(4,"mspot-select-menu",3),Zv$1("selectionChange",function(n){sh$1(e);let a=yM();return ah$1(a.select(n))})("closed",function(){sh$1(e);let n=yM();return ah$1(n.control().markAsTouched())}),ta$3(5,"span",4),eM$1(6,si$2,1,4,"mspot-ai-content-label-visual",5)(7,li$2,2,2,"span",6),Pd$1(),gv$1(8,di$1,6,4,"ng-template",null,0,SN),Pd$1()(),$d$1();}if(i&2){let e=o.$implicit,t=yM();uT();let n=eN(t.value());uT();let a=eN(t.showBackground());uT(2),jv$1("items",t.items)("selectedId",n??"none")("triggerDisabled",t.field.disabled())("ariaLabel",e("selectLabel",fN(8,ri$2,e((n??"none")+".menuLabel"))))("triggerClass","focus-primary inline-flex items-center justify-center disabled:cursor-not-allowed disabled:opacity-50 "+(a?"bg-backgrounds-canvas rounded-lg p-1.5 backdrop-blur":"size-6 rounded-full"+(n?"":" border border-borders-bold"))),uT(2),tM$1(n?6:7);}}var Xo$4=(()=>{class i{constructor(){this.control=X8.required(),this.showBackground=X8(false),this.selectionChange=J8(),this.items=[{id:"modified",data:"modified",label:"modified.menuLabel"},{id:"generated",data:"generated",label:"generated.menuLabel"},{id:"none",data:null,label:"none.menuLabel"}],this.field=hn$5({control:this.control}),this.value=qd$1(()=>(this.field.revision(),this.control().value));}select(e){let t=this.control();t.disabled||(t.setValue(e.data??null),t.markAsDirty(),this.selectionChange.emit(t.value));}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-ai-content-label-select"]],inputs:{control:[1,"control"],showBackground:[1,"showBackground"]},outputs:{selectionChange:"selectionChange"},features:[cN([v$b()])],decls:1,vars:1,consts:[["itemTpl",""],[4,"transloco","translocoPrefix"],["data-cy","aiContentLabelSelect",1,"inline-flex"],["overlayClass","flex max-h-[70vh] w-60 max-w-[calc(100vw-2rem)] flex-col rounded-lg border border-borders-secondary bg-backgrounds-surface-raised backdrop-blur-sm shadow-md [&>div]:space-y-1 [&>div]:p-1 [&>div>div]:p-0 [&_[role=option]:focus-visible]:outline-offset-2",3,"selectionChange","closed","items","selectedId","triggerDisabled","ariaLabel","triggerClass"],["slot","triggerContent","aria-hidden","true",1,"inline-flex"],[3,"value","expanded","showBackground","size"],[1,"text-text-strong","inline-flex","size-[1.125rem]","items-center","justify-center","rounded-full","font-semibold",3,"class"],[1,"text-text-strong","inline-flex","size-[1.125rem]","items-center","justify-center","rounded-full","font-semibold"],[1,"flex","min-w-0","flex-1","flex-col","gap-0.5"],[1,"flex","items-center","justify-between","gap-2","text-sm","font-medium"],["aria-hidden","true",3,"value"],[1,"text-text-subtle",3,"value"]],template:function(t,n){t&1&&gv$1(0,mi$1,10,10,"ng-container",1),t&2&&jv$1("translocoPrefix","aiContentLabel");},dependencies:[yt$a,dn$5,pe$7,oe$6],encapsulation:2});}}return i})();var p$a="primary",Ke$5=Symbol("RouteTitle"),nr$5=class nr{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function le$6(t){return new nr$5(t)}function Xt$4(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function An$4(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return Xt$4(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;
1248let c={};return !Xt$4(o,t.slice(0,o.length),c)||!Xt$4(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function pt$7(t){return new Promise((n,e)=>{t.pipe($f$1()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ii(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!B$c(t[e],n[e]))return false;return true}function B$c(t,n){let e=t?ir$6(t):void 0,r=n?ir$6(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!En$3(t[i],n[i]))return false;return true}function ir$6(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function En$3(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ai$1(t){return t.length>0?t[t.length-1]:null}function de$5(t){return DI(t)?t:Qo$6(t)?je$e(Promise.resolve(t)):yI(t)}function Tn$4(t){return DI(t)?pt$7(t):Promise.resolve(t)}var Ei={exact:Mn$4,subset:Dn$3},Nn$4={exact:Ti,subset:Ni,ignored:()=>true},yr$5={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},He$5={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Rr$4(t,n,e){let r=t instanceof T$9?t:n.parseUrl(t);return qd$1(()=>or$4(n.lastSuccessfulNavigation()?.finalUrl??new T$9,r,r$d(r$d({},He$5),e)))}function or$4(t,n,e){return Ei[e.paths](t.root,n.root,e.matrixParams)&&Nn$4[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ti(t,n){return B$c(t,n)}function Mn$4(t,n,e){if(!ue$4(t.segments,n.segments)||!ht$6(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Mn$4(t.children[r],n.children[r],e))return false;return true}function Ni(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>En$3(t[e],n[e]))}function Dn$3(t,n,e){return _n$4(t,n,n.segments,e)}function _n$4(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!ue$4(i,e)||n.hasChildren()||!ht$6(i,e,r))}else if(t.segments.length===e.length){if(!ue$4(t.segments,e)||!ht$6(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!Dn$3(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !ue$4(t.segments,i)||!ht$6(t.segments,i,r)||!t.children[p$a]?false:_n$4(t.children[p$a],n,o,r)}}function ht$6(t,n,e){return n.every((r,i)=>Nn$4[e](t[i].parameters,r.parameters))}var T$9=class T{root;queryParams;fragment;_queryParamMap;constructor(n=new m$7([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=le$6(this.queryParams),this._queryParamMap}toString(){return _i.serialize(this)}},m$7=class m{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dt$5(this)}},ee$5=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=le$6(this.parameters),this._parameterMap}toString(){return On$3(this)}};function Mi(t,n){return ue$4(t,n)&&t.every((e,r)=>B$c(e.parameters,n[r].parameters))}function ue$4(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Di(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p$a&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p$a&&(e=e.concat(n(i,r)));}),e}var ne$5=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:()=>new K$a})}return t})(),K$a=class K{parse(n){let e=new sr$5(n);return new T$9(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${xe$3(n.root,true)}`,r=Pi(n.queryParams),i=typeof n.fragment=="string"?`#${Ui$1(n.fragment)}`:"";return `${e}${r}${i}`}},_i=new K$a;function dt$5(t){return t.segments.map(n=>On$3(n)).join("/")}function xe$3(t,n){if(!t.hasChildren())return dt$5(t);
1248if(n){let e=t.children[p$a]?xe$3(t.children[p$a],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p$a&&r.push(`${i}:${xe$3(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Di(t,(r,i)=>i===p$a?[xe$3(t.children[p$a],false)]:[`${i}:${xe$3(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p$a]!=null?`${dt$5(t)}/${e[0]}`:`${dt$5(t)}/(${e.join("//")})`}}function Un$3(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ut$8(t){return Un$3(t).replace(/%3B/gi,";")}function Ui$1(t){return encodeURI(t)}function ar$5(t){return Un$3(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ft$7(t){return decodeURIComponent(t)}function yn$4(t){return ft$7(t.replace(/\+/g,"%20"))}function On$3(t){return `${ar$5(t.path)}${Oi$1(t.parameters)}`}function Oi$1(t){return Object.entries(t).map(([n,e])=>`;${ar$5(n)}=${ar$5(e)}`).join("")}function Pi(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ut$8(e)}=${ut$8(i)}`).join("&"):`${ut$8(e)}=${ut$8(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Li=/^[^\/()?;#]+/;function er$5(t){let n=t.match(Li);return n?n[0]:""}var ji$1=/^[^\/()?;=#]+/;function xi(t){let n=t.match(ji$1);return n?n[0]:""}var ki=/^[^=?&#]+/;function $i$1(t){let n=t.match(ki);return n?n[0]:""}var zi$1=/^[^&#]+/;function Hi$1(t){let n=t.match(zi$1);return n?n[0]:""}var sr$5=class sr{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m$7([],{}):new m$7([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new D$l(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p$a]=new m$7(e,r)),i}parseSegment(){let n=er$5(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new D$l(4009,false);return this.capture(n),new ee$5(ft$7(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=xi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=er$5(this.remaining);i&&(r=i,this.capture(r));}n[ft$7(e)]=ft$7(r);}parseQueryParam(n){let e=$i$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Hi$1(this.remaining);a&&(r=a,this.capture(r));}let i=yn$4(e),o=yn$4(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=er$5(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new D$l(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p$a);let c=this.parseChildren(e+1);r[a??p$a]=Object.keys(c).length===1&&c[p$a]?c[p$a]:new m$7([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new D$l(4011,false)}};function Pn$4(t){return t.segments.length>0?new m$7([],{[p$a]:t}):t}function Ln$4(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=Ln$4(i);if(r===p$a&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m$7(t.segments,n);return Fi(e)}function Fi(t){if(t.numberOfChildren===1&&t.children[p$a]){let n=t.children[p$a];return new m$7(t.segments.concat(n.segments),n.children)}return t}function te$5(t){return t instanceof T$9}function jn$3(t,n,e=null,r=null,i=new K$a){let o=xn$3(t);return kn$3(o,n,e,r,i)}function xn$3(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m$7(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Pn$4(r);return n??i}function kn$3(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return tr$5(o,o,o,e,r,i);let a=qi$1(n);if(a.toRoot())return tr$5(o,o,new m$7([],{}),e,r,i);let c=Bi(a,o,t),s=c.processChildren?$e$4(c.segmentGroup,c.index,a.commands):zn$2(c.segmentGroup,c.index,a.commands);return tr$5(o,c.segmentGroup,s,e,r,i)}function gt$8(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Fe$5(t){return typeof t=="object"&&t!=null&&t.outlets}function Rn$4(t,n,e){t||="\u0275";let r=new T$9;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function tr$5(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Rn$4(u,v,o)):Rn$4(u,d,o);let c;t===n?c=e:c=$n$3(t,n,e);let s=Pn$4(Ln$4(c));return new T$9(s,a,i)}function $n$3(t,n,e){let r=Object.create(null);
1248return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=$n$3(o,n,e);}),new m$7(t.segments,r)}var vt$6=class vt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&>$8(r[0]))throw new D$l(4003,false);let i=r.find(Fe$5);if(i&&i!==Ai$1(r))throw new D$l(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function qi$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new vt$6(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new vt$6(e,n,r)}var ye$7=class ye{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Bi(t,n,e){if(t.isAbsolute)return new ye$7(n,true,0);if(!e)return new ye$7(n,false,NaN);if(e.parent===null)return new ye$7(e,true,0);let r=gt$8(t.commands[0])?0:1,i=e.segments.length-1+r;return Vi$1(e,i,t.numberOfDoubleDots)}function Vi$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new D$l(4005,false);i=r.segments.length;}return new ye$7(r,false,i-o)}function Gi$1(t){return Fe$5(t[0])?t[0].outlets:{[p$a]:t}}function zn$2(t,n,e){if(t??=new m$7([],{}),t.segments.length===0&&t.hasChildren())return $e$4(t,n,e);let r=Wi$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m$7(t.segments.slice(0,r.pathIndex),{});return o.children[p$a]=new m$7(t.segments.slice(r.pathIndex),t.children),$e$4(o,0,i)}else return r.match&&i.length===0?new m$7(t.segments,{}):r.match&&!t.hasChildren()?cr$5(t,n,e):r.match?$e$4(t,0,i):cr$5(t,n,e)}function $e$4(t,n,e){if(e.length===0)return new m$7(t.segments,{});{let r=Gi$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p$a)&&t.children[p$a]&&t.numberOfChildren===1&&t.children[p$a].segments.length===0){let o=$e$4(t.children[p$a],n,e);return new m$7(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=zn$2(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m$7(t.segments,i)}}function Wi$1(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Fe$5(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!Cn$3(s,u,a))return o;r+=2;}else {if(!Cn$3(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function cr$5(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Fe$5(o)){let s=Qi$1(o.outlets);return new m$7(r,s)}if(i===0&>$8(e[0])){let s=t.segments[n];r.push(new ee$5(s.path,Sn$3(e[0]))),i++;continue}let a=Fe$5(o)?o.outlets[p$a]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&>$8(c)?(r.push(new ee$5(a,Sn$3(c))),i+=2):(r.push(new ee$5(a,{})),i++);}return new m$7(r,{})}function Qi$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=cr$5(new m$7([],{}),0,r));}),n}function Sn$3(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Cn$3(t,n,e){return t==e.path&&B$c(n,e.parameters)}var Re$5="imperative",R$7=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(R$7||{}),U$6=class U{id;url;constructor(n,e){this.id=n,this.url=e;}},re$3=class re extends U$6{type=R$7.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},O$9=class O extends U$6{urlAfterRedirects;type=R$7.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},I$8=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromRe
1248solver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(I$8||{}),Ce$3=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Ce$3||{}),k$b=class k extends U$6{reason;code;type=R$7.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Hn$3(t){return t instanceof k$b&&(t.code===I$8.Redirect||t.code===I$8.SupersededByNewNavigation)}var V$8=class V extends U$6{reason;code;type=R$7.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},he$6=class he extends U$6{error;target;type=R$7.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qe$3=class qe extends U$6{urlAfterRedirects;state;type=R$7.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt$6=class mt extends U$6{urlAfterRedirects;state;type=R$7.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$7=class yt extends U$6{urlAfterRedirects;state;shouldActivate;type=R$7.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Rt$7=class Rt extends U$6{urlAfterRedirects;state;type=R$7.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},St$6=class St extends U$6{urlAfterRedirects;state;type=R$7.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$9=class Ct{route;type=R$7.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},wt$a=class wt{route;type=R$7.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},bt$8=class bt{snapshot;type=R$7.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},It$7=class It{snapshot;type=R$7.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$5=class At{snapshot;type=R$7.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$7=class Et{snapshot;type=R$7.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},we$6=class we{routerEvent;position;anchor;scrollBehavior;type=R$7.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},be$6=class be{},Be$5=class Be{},Ie$1=class Ie{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Ki$1(t){return !(t instanceof be$6)&&!(t instanceof Ie$1)&&!(t instanceof Be$5)}var Tt$7=class Tt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new fe$4(this.rootInjector);}},fe$4=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Tt$7(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(G$k(Ae$e))};static \u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nt$5=class Nt{_root;constructor(n){this._root=n;}get root(){return this._root.value}
1248parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ur$5(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=ur$5(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=lr$6(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return lr$6(n,this._root).map(e=>e.value)}};function ur$5(t,n){if(t===n.value)return n;for(let e of n.children){let r=ur$5(t,e);if(r)return r}return null}function lr$6(t,n){if(t===n.value)return [n];for(let e of n.children){let r=lr$6(t,e);if(r.length)return r.unshift(n),r}return []}var _$7=class _{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function me$6(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Ve$4=class Ve extends Nt$5{snapshot;constructor(n,e){super(n),this.snapshot=e,Cr$5(this,n);}toString(){return this.snapshot.toString()}};function Fn$4(t,n){let e=Yi$1(t,n),r=new Gr$6([new ee$5("",{})]),i=new Gr$6({}),o=new Gr$6({}),a=new Gr$6({}),c=new Gr$6(""),s=new G$8(r,i,a,c,o,p$a,t,e.root);return s.snapshot=e.root,new Ve$4(new _$7(s,[]),e)}function Yi$1(t,n){let e={},r={},i={},a=new Ae$3([],e,i,"",r,p$a,t,null,{},n);return new Ge$3("",new _$7(a,[]))}var G$8=class G{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(st$c(u=>u[Ke$5]))??yI(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(st$c(n=>le$6(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(st$c(n=>le$6(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Zi$2="always";function Sr$5(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:r$d(r$d({},n.params),t.params),data:r$d(r$d({},n.data),t.data),resolve:r$d(r$d(r$d(r$d({},t.data),n.data),i?.data),t._resolvedData)}:r={params:r$d({},t.params),data:r$d({},t.data),resolve:r$d(r$d({},t.data),t._resolvedData??{})},i&&Bn$4(i)&&(r.resolve[Ke$5]=i.title),r}var Ae$3=class Ae{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ke$5]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=le$6(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=le$6(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ge$3=class Ge extends Nt$5{url;constructor(n,e){super(e),this.url=n,Cr$5(this,e);}toString(){return qn$4(this._root)}};function Cr$5(t,n){n.value._routerState=t,n.children.forEach(e=>Cr$5(t,e));}function qn$4(t){let n=t.children.length>0?` { ${t.children.map(qn$4).join(", ")} } `:"";return `${t.value}${n}`}function rr$6(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,B$c(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),B$c(n.params,e.params)||t.paramsSubject.next(e.params),Ii(n.url,e.url)||t.urlSubject.next(e.url),B$c(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function hr$5(t,n){let e=B$c(t.params,n.params)&&Mi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||hr$5(t.parent,n.parent))}function Bn$4(t){return typeof t.title=="string"||t.title===null}var Vn$4=new b$g(""),wr$4=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p$a;activateEvents=new Ct$h;deactivateEvents=new Ct$h;attachEvents=new Ct$h;detachEvents=new Ct$h;routerOutletData=X8();parentContexts=g$k(fe$4);location=g$k(Rt$f);changeDetector=g$k(Va$2);inputBinder=g$k(Ye$2,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}
1248get component(){if(!this.activated)throw new D$l(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D$l(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D$l(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new D$l(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new dr$6(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=mt$d({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ar$8]})}return t})(),dr$6=class dr{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===G$8?this.route:n===fe$4?this.childContexts:n===Vn$4?this.outletData:this.parent.get(n,e)}},Ye$2=new b$g(""),Gn$5=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=_I([this.options.queryParams?r.queryParams:yI({}),r.params,r.data]).pipe(Kf$1(([o,a,c],s)=>(c=r$d(r$d(r$d({},o),a),c),s===0?yI(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=f3(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){pS();};static \u0275prov=L$l({token:t,factory:t.\u0275fac})}return t})(),br$6=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=qS({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Vv$1(0,"router-outlet");},dependencies:[wr$4],encapsulation:2,changeDetection:1})}return t})();function Ir$4(t){let n=t.children&&t.children.map(Ir$4),e=n?s$e(r$d({},t),{children:n}):r$d({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p$a&&(e.component=br$6),e}function Ji$2(t,n,e){let r=new Set,i=We$4(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Ve$4(i,n)}}function We$4(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=Xi$3(t,n,e,r);return new _$7(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>We$4(t,s,void 0,r)),c}}let i=eo$2(n.value);r.add(i);let o=n.children.map(a=>We$4(t,a,void 0,r));return new _$7(i,o)}}function Xi$3(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return We$4(t,i,o,r);return We$4(t,i,void 0,r)})}function eo$2(t){return new G$8(new Gr$6(t.url),new Gr$6(t.params),new Gr$6(t.queryParams),new Gr$6(t.fragment),new Gr$6(t.data),t.outlet,t.component,t)}var Ee$4=class Ee{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Wn$5="ngNavigationCancelingError";function Mt$6(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$5(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Qn$4(false,I$8.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Qn$4(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Wn$5]=true,e.cancellationCode=n,e}function to$2(t){return Kn$4(t)&&te$5(t.url)}
1248function Kn$4(t){return !!t&&t[Wn$5]}var fr$5=class fr{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),rr$6(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=me$6(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=me$6(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=me$6(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=me$6(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Et$7(o.value.snapshot));}),n.children.length&&this.forwardEvent(new It$7(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(rr$6(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),rr$6(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},Dt$6=class Dt{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Se$6=class Se{component;route;constructor(n,e){this.component=n,this.route=e;}};function ro$2(t,n,e){let r=t._root,i=n?n._root:null;return ke$3(r,i,e,[r.value])}function no$2(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Ne$6(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!XI(t)?t:n.get(t):r}function ke$3(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=me$6(n);return t.children.forEach(a=>{io$2(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>ze$5(c,e.getContext(a),i)),i}function io$2(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=oo$2(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Dt$6(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?ke$3(t,n,c?c.children:null,r,i):ke$3(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Se$6(c.outlet.component,a));}else a&&ze$5(n,c,i),i.canActivateChecks.push(new Dt$6(r)),o.component?ke$3(t,null,c?c.children:null,r,i):ke$3(t,null,e,r,i);return i}function oo$2(t,n,e){if(typeof e=="function")return rs$4(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !ue$4(t.url,n.url);case "pathParamsOrQueryParamsChange":return !ue$4(t.url,n.url)||!B$c(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !hr$5(t,n)||!B$c(t.queryParams,n.queryParams);default:return !hr$5(t,n)}}function ze$5(t,n,e){let r=me$6(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?ze$5(a,n.children.getContext(o),e):ze$5(a,null,e):ze$5(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Se$6(n.outlet.component,i)):e.canDeactivateChecks.push(new Se$6(null,i)):e.canDeactivateChecks.push(new Se$6(null,i));}function Ze$7(t){return typeof t=="function"}function ao$1(t){return typeof t=="boolean"}function so$1(t){return t&&Ze$7(t.canLoad)}function co$1(t){return t&&Ze$7(t.canActivate)}function uo$2(t){return t&&Ze$7(t.canActivateChild)}function lo$1(t){return t&&Ze$7(t.canDeactivate)}function ho$2(t){return t&&Ze$7(t.canMatch)}function Yn$3(t){return t instanceof We$f||t?.name==="EmptyError"}var lt$7=Symbol("INITIAL_VALUE");function Te$6(){return Kf$1(t=>_I(t.map(n=>n.pipe(hn$9(1),Qf$1(lt$7)))).pipe(st$c(n=>{for(let e of n)if(e!==true){if(e===lt$7)return lt$7;if(e===false||fo$1(e))return e}return true}),Pt$b(n=>n!==lt$7),hn$9(1)))}function fo$1(t){return te$5(t)||t instanceof Ee$4}function Zn$4(t){return t.aborted?yI(void 0).pipe(hn$9(1)):new N$d(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Jn$4(t){return Pi$2(Zn$4(t))}function po$1(t){return Ye$e(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?yI(s$e(r$d({},n),{guardsResult:true}
1248)):go$2(o,e,r).pipe(Ye$e(a=>a&&ao$1(a)?vo$2(e,i,t):yI(a)),st$c(a=>s$e(r$d({},n),{guardsResult:a})))})}function go$2(t,n,e){return je$e(t).pipe(Ye$e(r=>Co$2(r.component,r.route,e,n)),$f$1(r=>r!==true,true))}function vo$2(t,n,e){return je$e(n).pipe(jI(r=>nr$8(yo$2(r.route.parent,e),mo$1(r.route,e),So$2(t,r.path),Ro$3(t,r.route))),$f$1(r=>r!==true,true))}function mo$1(t,n){return t!==null&&n&&n(new At$5(t)),yI(true)}function yo$2(t,n){return t!==null&&n&&n(new bt$8(t)),yI(true)}function Ro$3(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return yI(true);let r=e.map(i=>MI(()=>{let o=n._environmentInjector,a=Ne$6(i,o),c=co$1(a)?a.canActivate(n,t):rs$4(o,()=>a(n,t));return de$5(c).pipe($f$1())}));return yI(r).pipe(Te$6())}function So$2(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>no$2(o)).filter(o=>o!==null).map(o=>MI(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Ne$6(c,s),d=uo$2(u)?u.canActivateChild(e,t):rs$4(s,()=>u(e,t));return de$5(d).pipe($f$1())});return yI(a).pipe(Te$6())}));return yI(i).pipe(Te$6())}function Co$2(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return yI(true);let o=i.map(a=>{let c=n._environmentInjector,s=Ne$6(a,c),u=lo$1(s)?s.canDeactivate(t,n,e,r):rs$4(c,()=>s(t,n,e,r));return de$5(u).pipe($f$1())});return yI(o).pipe(Te$6())}function wo$2(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return yI(true);let a=o.map(c=>{let s=Ne$6(c,t),u=so$1(s)?s.canLoad(n,e):rs$4(t,()=>s(n,e)),d=de$5(u);return i?d.pipe(Jn$4(i)):d});return yI(a).pipe(Te$6(),Xn$4(r))}function Xn$4(t){return sc$1(Ip$1(n=>{if(typeof n!="boolean")throw Mt$6(t,n)}),st$c(n=>n===true))}function bo$2(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return yI(true);let c=a.map(s=>{let u=Ne$6(s,t),d=ho$2(u)?u.canMatch(n,e,i):rs$4(t,()=>u(n,e,i));return de$5(d).pipe(Jn$4(o))});return yI(c).pipe(Te$6(),Xn$4(r))}var Q$6=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},Qe$6=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Io$2(t){throw new D$l(4e3,false)}function Ao$2(t){throw Qn$4(false,I$8.GuardRejected)}var pr$6=class pr{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p$a])throw Io$2(`${n.redirectTo}`);i=i.children[p$a];}}async applyRedirectCommands(n,e,r,i,o){let a=await Eo$2(e,i,o);if(a instanceof T$9)throw new Qe$6(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new Qe$6(c);return c}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T$9(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m$7(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new D$l(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function Eo$2(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return pt$7(de$5(rs$4(e,()=>r(n))))}function To$2(t,n){return t.providers&&!t._injector&&(t._injector=Nd$1(t.providers,n,`Route: ${t.path}`)),t._injector??n}function z$d(t){return t.outlet||p$a}function No$2(t,n){let e=t.filter(r=>z$d(r)===n);return e.push(...t.filter(r=>z$d(r)!==n)),e}var gr$6={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
1248function ei$1(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 Mo$2(t,n,e,r,i,o,a){let c=ti$1(t,n,e);if(!c.matched)return yI(c);let s=ei$1(o(c));return r=To$2(n,r),bo$2(r,n,e,i,s,a).pipe(st$c(u=>u===true?c:r$d({},gr$6)))}function ti$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?r$d({},gr$6):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||An$4)(e,t,n);if(!i)return r$d({},gr$6);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?r$d(r$d({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function wn$3(t,n,e,r,i){return e.length>0&&Uo$3(t,e,r,i)?{segmentGroup:new m$7(n,_o$2(r,new m$7(e,t.children))),slicedSegments:[]}:e.length===0&&Oo$2(t,e,r)?{segmentGroup:new m$7(t.segments,Do$2(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m$7(t.segments,t.children),slicedSegments:e}}function Do$2(t,n,e,r){let i={};for(let o of e)if(Ut$5(t,n,o)&&!r[z$d(o)]){let a=new m$7([],{});i[z$d(o)]=a;}return r$d(r$d({},r),i)}function _o$2(t,n){let e={};e[p$a]=n;for(let r of t)if(r.path===""&&z$d(r)!==p$a){let i=new m$7([],{});e[z$d(r)]=i;}return e}function Uo$3(t,n,e,r){return e.some(i=>!Ut$5(t,n,i)||!(z$d(i)!==p$a)?false:!(r!==void 0&&z$d(i)===r))}function Oo$2(t,n,e){return e.some(r=>Ut$5(t,n,r))}function Ut$5(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Po$2(t,n,e){return n.length===0&&!t.children[e]}var vr$6=class vr{};async function Lo$2(t,n,e,r,i,o,a,c){return new mr$5(t,n,e,r,i,a,o,c).recognize()}var jo$3=31,mr$5=class mr{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new pr$6(this.urlSerializer,this.urlTree);}noMatchError(n){return new D$l(4002,`'${n.segmentGroup}'`)}async recognize(){let n=wn$3(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new _$7(r,e),o=new Ge$3("",i),a=jn$3(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(n){let e=new Ae$3([],Object.freeze({}),Object.freeze(r$d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p$a,this.rootComponentType,null,{},this.injector);try{return {children:await this.processSegmentGroup(this.injector,this.config,n,p$a,e),rootSnapshot:e}}catch(r){if(r instanceof Qe$6)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Q$6?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=await this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof _$7?[a]:[]}async processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=No$2(e,s),v=await this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ri$1(a);return xo$2(c),c}async processSegment(n,e,r,i,o,a,c){for(let s of e)try{return await this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof Q$6||Yn$3(u))continue;throw u}if(Po$2(r,i,o))return new vr$6;throw new Q$6(r)}async processSegmentAgainstRoute(n,e,r,i,o,a,c,s){if(z$d(r)!==a&&(a===p$a||!Ut$5(i,o,r)))throw new Q$6(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new Q$6(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ti$1(e,i,o);if(!s)throw new Q$6(e);
1248typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>jo$3&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let $=await this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ei$1(N),n),ie=await this.applyRedirects.lineralizeSegments(i,$);return this.processSegment(n,r,e,ie.concat(g),a,false,c)}createSnapshot(n,e,r,i,o){let a=new Ae$3(r,i,Object.freeze(r$d({},this.urlTree.queryParams)),this.urlTree.fragment,$o$3(e),z$d(e),e.component??e._loadedComponent??null,e,zo$2(e),n),c=Sr$5(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}async matchSegmentAgainstRoute(n,e,r,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=oe=>this.createSnapshot(n,r,oe.consumedSegments,oe.parameters,a),s=await pt$7(Mo$2(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new Q$6(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,$=this.createSnapshot(n,r,g,v,a),{segmentGroup:ie,slicedSegments:De}=wn$3(e,g,N,u,o);if(De.length===0&&ie.hasChildren()){let oe=await this.processChildren(d,u,ie,$);return new _$7($,oe)}if(u.length===0&&De.length===0)return new _$7($,[]);let $t=z$d(r)===o,Xe=await this.processSegment(d,u,ie,De,$t?p$a:o,true,$);return new _$7($,Xe instanceof _$7?[Xe]:[])}async getChildConfig(n,e,r){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await pt$7(wo$2(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Ao$2()}return {routes:[],injector:n}}};function xo$2(t){t.sort((n,e)=>n.value.outlet===p$a?-1:e.value.outlet===p$a?1:n.value.outlet.localeCompare(e.value.outlet));}function ko$2(t){let n=t.value.routeConfig;return n&&n.path===""}function ri$1(t){let n=[],e=new Set;for(let r of t){if(!ko$2(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ri$1(r.children);n.push(new _$7(r.value,i));}return n.filter(r=>!e.has(r))}function $o$3(t){return t.data||{}}function zo$2(t){return t.resolve||{}}function Ho$2(t,n,e,r,i,o,a){return Ye$e(async c=>{let{state:s,tree:u}=await Lo$2(t,n,e,r,c.extractedUrl,i,o,a);return s$e(r$d({},c),{targetSnapshot:s,urlAfterRedirects:u})})}function Fo$2(t){return Ye$e(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return yI(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ni$1(c))o.add(s);let a=0;return je$e(o).pipe(jI(c=>i.has(c)?qo$3(c,e,t):(c.data=Sr$5(c,c.parent,t).resolve,yI(void 0))),Ip$1(()=>a++),vc$1(1),Ye$e(c=>a===o.size?yI(n):pn$a))})}function ni$1(t){let n=t.children.map(e=>ni$1(e)).flat();return [t,...n]}function qo$3(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Bn$4(r)&&(i[Ke$5]=r.title),MI(()=>(t.data=Sr$5(t,t.parent,e).resolve,Bo$2(i,t,n).pipe(st$c(o=>(t._resolvedData=o,t.data=r$d(r$d({},t.data),o),null)))))}function Bo$2(t,n,e){let r=ir$6(t);if(r.length===0)return yI({});let i={};return je$e(r).pipe(Ye$e(o=>Vo$2(t[o],n,e).pipe($f$1(),Ip$1(a=>{if(a instanceof Ee$4)throw Mt$6(new K$a,a);i[o]=a;}))),vc$1(1),st$c(()=>i),gc$1(o=>Yn$3(o)?pn$a:vI(o)))}function Vo$2(t,n,e){let r=n._environmentInjector,i=Ne$6(t,r),o=i.resolve?i.resolve(n,e):rs$4(r,()=>i(n,e));return de$5(o)}function bn$4(t){return Kf$1(n=>{let e=t(n);return e?je$e(e).pipe(st$c(()=>n)):yI(n)})}var Ar$5=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p$a);return r}getResolvedTitleForRoute(e){return e.data[Ke$5]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:()=>g$k(ii$1)})}return t})(),ii$1=(()=>{class t extends Ar$5{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(G$k(Ko$4))};static \u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Y$b=new b$g("",{factory:()=>({})}),pe$6=new b$g(""),Ot$4=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$k(MN);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await Tn$4(rs$4(e,()=>r.loadComponent())),a=await ai$1(K8(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await oi$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})();async function oi$1(t,n,e,r){let i=await Tn$4(rs$4(e,()=>t.loadChildren())),o=await ai$1(K8(i)),a;o instanceof uv$1||Array.isArray(o)?a=o:a=await n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(pe$6,[],{optional:true,self:true}).flat()),{routes:s.map(Ir$4),injector:c,factory:d}}async function ai$1(t){return t}var Pt$5=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:()=>g$k(Go$3)})}return t})(),Go$3=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})(),Er$5=new b$g(""),Tr$5=new b$g("");function si$1(t,n,e){let r=t.get(Tr$5),i=t.get(Te$g);
1248if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Wo$3(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&rs$4(t,()=>s({transition:c,from:n,to:e})),a}function Wo$3(t){return new Promise(n=>{Xl$1({read:()=>setTimeout(n)},{injector:t});})}var ci$1=new b$g(""),Qo$3=()=>{},Nr$3=new b$g(""),Lt$5=(()=>{class t{currentNavigation=On$7(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=On$7(null);events=new le$d;transitionAbortWithErrorSubject=new le$d;configLoader=g$k(Ot$4);environmentInjector=g$k(Ae$e);destroyRef=g$k(de$b);urlSerializer=g$k(ne$5);rootContexts=g$k(fe$4);location=g$k(DE$1);inputBindingEnabled=g$k(Ye$2,{optional:true})!==null;titleStrategy=g$k(Ar$5);options=g$k(Y$b,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Zi$2;urlHandlingStrategy=g$k(Pt$5);createViewTransition=g$k(Er$5,{optional:true});navigationErrorHandler=g$k(Nr$3,{optional:true});activatedRouteInjectorFeature=g$k(ci$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>yI(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new Ct$9(i)),r=i=>this.events.next(new wt$a(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;Qn$9(()=>{this.transitions?.next(s$e(r$d({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Gr$6(null),this.transitions.pipe(Pt$b(r=>r!==null),Kf$1(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return yI(r).pipe(Kf$1(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",I$8.SupersededByNewNavigation),pn$a;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?s$e(r$d({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new V$8(s.id,this.urlSerializer.serialize(s.rawUrl),"",Ce$3.IgnoredSameUrlNavigation)),s.resolve(false),pn$a;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return yI(s).pipe(Kf$1(g=>(this.events.next(new re$3(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?pn$a:Promise.resolve(g))),Ho$2(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Ip$1(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new Be$5);}),Kf$1(g=>je$e(r.routesRecognizeHandler.deferredHandle??yI(void 0)).pipe(st$c(()=>g))),Ip$1(()=>{let g=new qe$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:$,restoredState:ie,extras:De}=s,$t=new re$3(g,this.urlSerializer.serialize(N),$,ie);this.events.next($t);let Xe=Fn$4(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=s$e(r$d({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:s$e(r$d({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(oe=>(oe.finalUrl=N,oe)),yI(r)}else return this.events.next(new V$8(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Ce$3.IgnoredByUrlHandlingStrategy)),s.resolve(false),pn$a}),st$c(s=>{let u=new mt$6(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=s$e(r$d({},s),{guards:ro$2(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),po$1(s=>this.events.next(s)),Kf$1(s=>
1248{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Mt$6(this.urlSerializer,s.guardsResult);let u=new yt$7(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return pn$a;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",I$8.GuardRejected),pn$a;if(s.guards.canActivateChecks.length===0)return yI(s);let d=new Rt$7(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return pn$a;let v=false;return yI(s).pipe(Fo$2(this.paramsInheritanceStrategy),Ip$1({next:()=>{v=true;let g=new St$6(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",I$8.NoDataFromResolver);}}))}),bn$4(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then($=>{v.component=$;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?yI(s):je$e(Promise.all(d).then(()=>s))}),Kf$1(s=>
1248{let{newlyCreatedRoutes:u,state:d}=Ji$2(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=s$e(r$d({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),yI(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),bn$4(()=>this.afterPreactivation()),Kf$1(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?je$e(d).pipe(st$c(()=>r)):yI(r)}),hn$9(1),Kf$1(s=>{i=false,this.events.next(new be$6);let u=r.beforeActivateHandler.deferredHandle;return u?je$e(u.then(()=>s)):yI(s)}),Ip$1(s=>{new fr$5(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Qo$3,u)),this.lastSuccessfulNavigation.set(Qn$9(this.currentNavigation)),this.events.next(new O$9(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Pi$2(Zn$4(a.signal).pipe(Pt$b(()=>!o&&i),Ip$1(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",I$8.Aborted);}))),Ip$1({complete:()=>{o=true;}}),Pi$2(this.transitionAbortWithErrorSubject.pipe(Ip$1(s=>{throw s}))),hp$1(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",I$8.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),gc$1(s=>{if(o=true,In$4(r),this.destroyed)return r.resolve(false),pn$a;if(Kn$4(s))this.events.next(new k$b(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),to$2(s)?this.events.next(new Ie$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new he$6(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=rs$4(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Ee$4){let{message:v,cancellationCode:g}=Mt$6(this.urlSerializer,d);this.events.next(new k$b(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ie$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return pn$a}))}))}cancelNavigationTransition(e,r,i){In$4(e);let o=new k$b(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=Qn$9(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})();function Ko$3(t){return t!==Re$5}function In$4(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var ui=new b$g("");var li$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:()=>g$k(Yo$3)})}return t})(),_t$8=class _t{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Yo$3=(()=>{class t extends _t$8{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})(),jt$5=(()=>{class t{urlSerializer=g$k(ne$5);options=g$k(Y$b,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g$k(DE$1);urlHandlingStrategy=g$k(Pt$5);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T$9;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T$9?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=Fn$4(null,g$k(Ae$e));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:()=>g$k(Zo$3)})}return t})(),Zo$3=(()=>{class t extends jt$5{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$3?this.updateStateMemento():e instanceof V$8?this.commitTransition(r):e instanceof qe$3?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof be$6?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k$b&&!Hn$3(e)?this.restoreHistory(r):e instanceof he$6?this.restoreHistory(r,true):e instanceof O$9&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;
1248if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=r$d(r$d({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=r$d(r$d({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?r$d({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):r$d({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})();function xt$6(t,n){t.events.pipe(Pt$b(e=>e instanceof O$9||e instanceof k$b||e instanceof he$6||e instanceof V$8),st$c(e=>e instanceof O$9||e instanceof V$8?0:(e instanceof k$b?e.code===I$8.Redirect||e.code===I$8.SupersededByNewNavigation:false)?2:1),Pt$b(e=>e!==2),hn$9(1)).subscribe(()=>{n();});}var H$8=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g$k(A_$1);stateManager=g$k(jt$5);options=g$k(Y$b,{optional:true})||{};pendingTasks=g$k(_t$g);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g$k(Lt$5);urlSerializer=g$k(ne$5);location=g$k(DE$1);urlHandlingStrategy=g$k(Pt$5);injector=g$k(Ae$e);_events=new le$d;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g$k(li$1);injectorCleanup=g$k(ui,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g$k(pe$6,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g$k(Ye$2,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new Q$f;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Qn$9(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k$b&&r.code!==I$8.Redirect&&r.code!==I$8.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof O$9)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ie$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=r$d({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ko$3(i.source)},a);this.scheduleNavigation(c,Re$5,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Ki$1(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Re$5,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=s$e(r$d({},o),{browserUrl:e})),i){let u=r$d({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(Mt$d)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Qn$9(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ir$4),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=r$d(r$d({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=xn$3(g);}
1248catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return kn$3(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$5(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Re$5,null,r)}navigate(e,r={skipLocationChange:false}){return Jo$3(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(qt$c(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=r$d({},yr$5):r===false?i=r$d({},He$5):i=r$d(r$d({},He$5),r),te$5(e))return or$4(this.currentUrlTree,e,i);let o=this.parseUrl(e);return or$4(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return xt$6(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1248),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})();function Jo$3(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new D$l(4008,false)}var Xo$3=(()=>{class t{router=g$k(H$8);stateManager=g$k(jt$5);fragment=On$7("");queryParams=On$7({});path=On$7("");serializer=g$k(ne$5);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof O$9&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T$9(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})(),kt$7=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$k(new JD("href"),{optional:true});reactiveHref=ON(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Qn$9(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return Qn$9(this._target)}_target=On$7(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return Qn$9(this._queryParams)}_queryParams=On$7(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return Qn$9(this._fragment)}_fragment=On$7(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return Qn$9(this._queryParamsHandling)}_queryParamsHandling=On$7(void 0);set state(e){this._state.set(e);}get state(){return Qn$9(this._state)}_state=On$7(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return Qn$9(this._info)}_info=On$7(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return Qn$9(this._relativeTo)}_relativeTo=On$7(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return Qn$9(this._preserveFragment)}_preserveFragment=On$7(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return Qn$9(this._skipLocationChange)}_skipLocationChange=On$7(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return Qn$9(this._replaceUrl)}_replaceUrl=On$7(false);browserUrl=X8(void 0);isAnchorElement;onChanges=new le$d;applicationErrorHandler=g$k(Mt$d);options=g$k(Y$b,{optional:true});reactiveRouterState=g$k(Xo$3);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=On$7(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$5(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=r$d({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=qd$1(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$5(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return Qn$9(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(q$l(H$8),q$l(G$8),Al$1("tabindex"),q$l(Fr$6),q$l(gt$f),q$l(Br$6))};static \u0275dir=mt$d({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Zv$1("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Pv$1("href",i.reactiveHref(),db$1)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ni$7],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ni$7],replaceUrl:[2,"replaceUrl","replaceUrl",ni$7],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Ar$8]})}return t})(),ea$1=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new Ct$h;link=g$k(kt$7,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof O$9&&this.update();});}ngAfterContentInit(){yI(this.links.changes,yI(null)).pipe($r$6()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=je$e(e).pipe($r$6()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();
1248this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ta$1(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?r$d({},yr$5):r$d({},He$5);return i=>{let o=i.urlTree;return o?Qn$9(Rr$4(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(q$l(H$8),q$l(gt$f),q$l(Fr$6),q$l(Va$2))};static \u0275dir=mt$d({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Kv$1(o,kt$7,5),r&2){let a;CM(a=wM())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ar$8]})}return t})();function ta$1(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Je$3=class Je{},ra$1=(()=>{class t{preload(e,r){return r().pipe(gc$1(()=>yI(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Wn$9({token:t,factory:t.\u0275fac})}return t})();var hi$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Pt$b(e=>e instanceof O$9),jI(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Nd$1(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return je$e(i).pipe($r$6())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return yI(null);let i;r.loadChildren&&r.canLoad===void 0?i=je$e(this.loader.loadChildren(e,r)):i=yI(null);let o=i.pipe(Ye$e(a=>a===null?yI(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return je$e([o,a]).pipe($r$6())}else return o})}static \u0275fac=function(r){return new(r||t)(G$k(H$8),G$k(Ae$e),G$k(Je$3),G$k(Ot$4))};static \u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),di=new b$g(""),na$1=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Re$5;restoredId=0;store={};isHydrating=g$k(Ho$4,{optional:true})??false;urlSerializer=g$k(ne$5);zone=g$k(ge$b);viewportScroller=g$k(RG);transitions=g$k(Lt$5);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g$k(yt$f).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re$3?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof O$9?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof V$8&&e.code===Ce$3.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof we$6)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Qn$9(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new we$6(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});});}
1248ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){pS();};static \u0275prov=L$l({token:t,factory:t.\u0275fac})}return t})();function ia$1(t,...n){return fo$3([{provide:pe$6,multi:true,useValue:t},{provide:G$8,useFactory:fi},{provide:Ko$6,multi:true,useFactory:pi$1},n.map(e=>e.\u0275providers)])}function fi(){return g$k(H$8).routerState.root}function Me$3(t,n){return {\u0275kind:t,\u0275providers:n}}function pi$1(){let t=g$k(oe$e);return n=>{let e=t.get(yt$f);if(n!==e.components[0])return;let r=t.get(H$8),i=t.get(gi);t.get(Dr$4)===1&&r.initialNavigation(),t.get(yi,null,{optional:true})?.setUpPreloading(),t.get(di,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var gi=new b$g("",{factory:()=>new le$d}),Dr$4=new b$g("",{factory:()=>1});function vi(){let t=[{provide:Iw$1,useValue:true},{provide:Dr$4,useValue:0},JS(()=>{let n=g$k(oe$e);return n.get(UA,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(H$8),o=n.get(gi);xt$6(i,()=>{r(true);}),n.get(Lt$5).afterPreactivation=()=>(r(true),o.closed?yI(void 0):o),i.initialNavigation();}))})];return Me$3(2,t)}function mi(){let t=[JS(()=>{g$k(H$8).setUpLocationChangeListener();}),{provide:Dr$4,useValue:2}];return Me$3(3,t)}var yi=new b$g("");function Ri$1(t){return Me$3(0,[{provide:yi,useExisting:hi$1},{provide:Je$3,useExisting:t}])}function oa$1(t){return Me$3(5,[{provide:Y$b,useValue:t}])}function Si(t={}){return Me$3(8,[{provide:Ye$2,useFactory:()=>new Gn$5(t)}])}function Ci(t){fe$d("NgRouterViewTransitions");let n=[{provide:Er$5,useValue:si$1},{provide:Tr$5,useValue:r$d({skipNextTransition:false},t)}];return Me$3(9,n)}var wi=[DE$1,{provide:ne$5,useClass:K$a},H$8,fe$4,{provide:G$8,useFactory:fi},Ot$4],aa$1=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[wi,[],{provide:pe$6,multi:true,useValue:e},[],r?.errorHandler?{provide:Nr$3,useValue:r.errorHandler}:[],{provide:Y$b,useValue:r||{}},r?.useHash?ca$1():ua$1(),sa$1(),r?.preloadingStrategy?Ri$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?la$1(r):[],r?.bindToComponentInputs?Si(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?Ci().\u0275providers:[],ha$1()]}}static forChild(e){return {ngModule:t,providers:[{provide:pe$6,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Sa$2({type:t});static \u0275inj=io$5({})}return t})();function sa$1(){return {provide:di,useFactory:()=>{let t=g$k(RG),n=g$k(Y$b);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na$1(n)}}}function ca$1(){return {provide:Br$6,useClass:qA}}function ua$1(){return {provide:Br$6,useClass:vE$1}}function la$1(t){return [t.initialNavigation==="disabled"?mi().\u0275providers:[],t.initialNavigation==="enabledBlocking"?vi().\u0275providers:[]]}var Mr$5=new b$g("");function ha$1(){return [{provide:Mr$5,useFactory:pi$1},{provide:Ko$6,multi:true,useExisting:Mr$5}]} 1249var D$c=(function(t){return t.UNREAD="unread",t.ALL="all",t})(D$c||{});var ct$4=new b$g("backend chat url"),z$c=(()=>{class t extends Ce$a{constructor(){super(...arguments),this._url=g$k(ct$4);}static{this.\u0275fac=(()=>{let r;return function(a){return (r||(r=Wg$1(t)))(a||t)}})();}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function Q$5(t,n){if(!n||t.length===0)return t??[];let r=[...t].filter(o=>new Date(o.createdAt)>new Date(n)).sort((o,a)=>new Date(o.createdAt).getTime()-new Date(a.createdAt).getTime())[0]?.id;return t.map(o=>o.id===r?s$e(r$d({},o),{metadata:s$e(r$d({},o.metadata??{}),{firstUnreadMessage:true})}):o)}function Ht$5(t,n,r=20){let a=t.flat().filter(p=>p.chatId!==n.chatId),i=[n,...a],c=[];for(let p=0;p<i.length;p+=r)c.push(i.slice(p,p+r));return c}function Vt$3(t){return t.reduce((n,r,o)=>{if(n.messageId!==null)return n;let a=r.find(i=>i.metadata&&typeof i.metadata=="object"&&"firstUnreadMessage"in i.metadata&&i.metadata.firstUnreadMessage===true)?.id;return a?{messageId:a,pageIndex:o}:n},{messageId:null,pageIndex:-1})}function Zt$4(t,n){return n?t.map(r=>r.id===n?s$e(r$d({},r),{metadata:s$e(r$d({},r.metadata??{}),{firstUnreadMessage:false})}):r):t}var q$7=(()=>{class t{constructor(){this._http=g$k(z$c);}getUserChats({schoolId:r,page:o=1,limit:a=50,search:i,filter:c}){return this._http.generic({url:`/${r}/chats`,method:b$e.GET,params:{page:o,limit:a,search:i?.trim()||void 0,filter:c&&c!==D$c.ALL?c:void 0}}).pipe(st$c(p=>p.docs))}getChatMessages({chatId:r,schoolId:o,page:a=1,limit:i=50}){return this._http.generic({url:`/${o}/messages/chat/${r}`,method:b$e.GET,params:{page:a,limit:i}}).pipe(st$c(({data:c,lastReadTimestamp:p})=>Q$5(c,p)))}createPrivateChat(r,o){return this._http.generic({url:`/${o}/chats/private`,method:b$e.POST,data:{participantId:r}})}getChatById(r,o){return this._http.generic({url:`/${o}/chats/${r}`,method:b$e.GET})}sendChatMessage(r,o){return this._http.generic({url:`/${o}/messages`,method:b$e.POST,data:r})}deleteChat(r,o){return this._http.generic({url:`/${o}/chats/${r}`,method:b$e.DELETE})}searchMembers({query:r,schoolId:o,page:a=1,limit:i=20}){return this._http.generic({url:`/${o}/chats/search-users`,method:b$e.GET,params:{query:r,page:a,limit:i}})}getGlobalUnreadCounter(r){return this._http.generic({url:`/${r}/chats/global-unread-counter`,method:b$e.GET})}blockUser(r,o){return this._http.generic({url:`/${o}/chats/block/${r}`,method:b$e.POST})}unblockUser(r,o){return this._http.generic({url:`/${o}/chats/block/${r}`,method:b$e.DELETE})}getBlockedUsers(r){return this._http.generic({url:`/${r}/chats/blocked`,method:b$e.GET})}
1249getMessagesAroundAnchor(r,o,a){return this._http.generic({url:`/${r}/messages/chat/${o}/around/${a}`,method:b$e.GET})}searchInChat({schoolId:r,chatId:o,query:a,limit:i,cursor:c}){return this._http.generic({url:`/${r}/chats/${o}/search`,method:b$e.GET,params:{query:a,limit:i,cursor:c}})}searchGlobal({schoolId:r,query:o,limit:a,cursor:i}){return this._http.generic({url:`/${r}/chats/search`,method:b$e.GET,params:{query:o,limit:a,cursor:i}})}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var L$9=(function(t){return t.Read="read",t.Unread="unread",t})(L$9||{});var v$a=(function(t){return t.Private="private",t.Group="group",t})(v$a||{}),lt$6=ve$b.nativeEnum(v$a);ve$b.object({participantId:ve$b.string()});var dt$4=50;ve$b.object({participants:ve$b.array(ve$b.string()).min(1).max(dt$4),groupName:ve$b.string(),avatarUrl:ve$b.string().optional()});var ut$7=ve$b.object({name:ve$b.string(),avatarUrl:ve$b.string().optional(),adminIds:ve$b.array(ve$b.string()),createdBy:ve$b.string()});ve$b.object({schoolId:ve$b.string(),participants:ve$b.array(ve$b.string()),type:lt$6,initiatorId:ve$b.string().optional(),groupDetails:ut$7.optional()});ve$b.object({userUidToAdd:ve$b.string()});ve$b.object({schoolId:ve$b.string(),chatId:ve$b.string(),uid:ve$b.string()});ve$b.object({groupName:ve$b.string().optional(),avatarUrl:ve$b.string().optional()});ve$b.object({schoolId:ve$b.string(),chatId:ve$b.string()});ve$b.object({schoolId:ve$b.string(),chatId:ve$b.string(),uid:ve$b.string()});ve$b.object({schoolId:ve$b.string(),uid:ve$b.string(),page:ve$b.number(),limit:ve$b.number(),search:ve$b.string().optional(),filter:ve$b.nativeEnum(L$9).optional()});ve$b.object({schoolId:ve$b.string(),chatId:ve$b.string()});ve$b.object({schoolId:ve$b.string(),chatId:ve$b.string().optional(),search:ve$b.string().optional(),requesterId:ve$b.string().optional(),page:ve$b.coerce.number().int().min(1),limit:ve$b.coerce.number().int().min(1).max(100)});ve$b.object({schoolId:ve$b.string(),uid:ve$b.string(),searchTerm:ve$b.string(),page:ve$b.coerce.number().int().min(1),limit:ve$b.coerce.number().int().min(1).max(100)});ve$b.object({schoolId:ve$b.string(),uid:ve$b.string(),chatId:ve$b.string(),chatType:ve$b.string(),unreadCount:ve$b.number(),isPinned:ve$b.boolean(),isMuted:ve$b.boolean(),isDeletedByMe:ve$b.boolean(),createdById:ve$b.string().optional(),otherParticipantId:ve$b.string().optional(),displayPartnerName:ve$b.string().optional(),displayPartnerAvatarUrl:ve$b.string().optional(),displayGroupName:ve$b.string().optional(),displayGroupAvatarUrl:ve$b.string().optional()});var J$c=new b$g("CHAT_MODAL_CONTAINER");var X$9=(()=>{class t{constructor(){this._dialogService=g$k(Ss$2),this._container=g$k(J$c);}open(r,o=false){this._dialogService.open(this._container,{data:{chatSummary:r,memberSearch:o},dialogConfig:{panelClass:["dialog--no-padding","overflow-hidden","border-borders-secondary",H$a.SIZE_LG,"dialog-fullscreen-mobile","dialog-ios-sheet-mobile"],disableClose:true,hasBackdrop:true,closeOnNavigation:false}}).subscribe();}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var tt$6="chatId",Fe$4=(()=>{class t{constructor(){this._chatApiService=g$k(q$7),this._chatModalService=g$k(X$9),this._memberAreaQuery=g$k(f$8),this._schoolUserService=g$k(Oe$5),this._location=g$k(DE$1),this._logger=g$k($E),this._notiService=g$k(wi$1);}async openChatById(r){let o=this._memberAreaQuery.getSchoolId();if(o)try{let a=await qE$1(this._chatApiService.getChatById(r,o));this._chatModalService.open(this._buildSummaryFromChat(a));}catch(a){this._logger.error("Failed to open chat by deep link",a);}}async openChatWithUser(r){let o=this._memberAreaQuery.getSchoolId();if(o)try{let a=await qE$1(this._chatApiService.createPrivateChat(r,o));this._chatModalService.open(a);}catch(a){if(a instanceof H$j&&a.status===403){this._notiService.infoIntl("common.chat.accessRestricted");return}this._logger.error("Failed to open chat with user",a);}}
1249checkAndHandleDeepLink(){let o=new URLSearchParams(window.location.search).get(tt$6);o&&(this._removeChatIdFromUrl(),this.openChatById(o));}_buildSummaryFromChat(r){if(r.summary)return r.summary;let o=this._schoolUserService.getCurrentUser()()?.uid??"",i=r.type===v$a.Private?r.participants.find(c=>c.id!==o):void 0;return {id:"",schoolId:r.schoolId,uid:o,chatId:r.id,chatType:r.type,displayPartnerName:i?.displayName??i?.name,displayPartnerAvatarUrl:i?.photoUrl,otherParticipantId:i?.id,displayGroupName:r.groupDetails?.name,displayGroupAvatarUrl:r.groupDetails?.avatarUrl,unreadCount:0,isPinned:false,isMuted:false,isDeletedByMe:false,lastMessageSnippet:r.lastMessage?.contentSnippet,lastMessageTimestamp:r.lastMessage?.timestamp}}_removeChatIdFromUrl(){let r=new URL(window.location.href);r.searchParams.delete(tt$6),this._location.replaceState(r.pathname+r.search);}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var N$3="__mspotBackStep",ht$5={back:()=>{},dispose:()=>{}},Ze$6=(()=>{class t{constructor(){this._zone=g$k(ge$b),this._logger=g$k($E),this._destroyRef=g$k(de$b),this._router=g$k(H$8),this._location=g$k(DE$1),this._stack=[];let r=o=>{this._zone.run(()=>this._onPopState(o));};window.addEventListener("popstate",r),this._destroyRef.onDestroy(()=>window.removeEventListener("popstate",r));}register(r){if(this._isRouterLocationDesynced())return ht$5;this._stack.push(r);let o=s$e(r$d({},history.state??{}),{[N$3]:this._stack.length});return history.pushState(o,""),{back:()=>this._popTo(r),dispose:()=>this._removeFromStack(r)}}_onPopState(r){if(this._stack.length===0)return;let o=r.state??null,a=typeof o?.[N$3]=="number"?o[N$3]:0;for(;this._stack.length>a;){let i=this._stack.pop();try{i?.();}catch(c){this._logger.error("BackNavStackService closer threw",c);}}}_popTo(r){let o=this._stack.indexOf(r);if(o===-1)return;let a=this._stack.length-o;history.go(-a);}_removeFromStack(r){let o=this._stack.indexOf(r);o!==-1&&this._stack.splice(o,1);}_isRouterLocationDesynced(){let r=o=>o.split("?")[0].split("#")[0];return r(this._router.url)!==r(this._location.path())}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var ft$6="Europe/Berlin",gt$7=new Intl.DateTimeFormat("en-CA",{timeZone:ft$6,year:"numeric",month:"2-digit",day:"2-digit"});function yt$6(t){return t instanceof Date?t:new Date(t)}function x$8(t){let n=gt$7.formatToParts(yt$6(t)),r=o=>Number(n.find(a=>a.type===o)?.value);return {year:r("year"),monthIndex:r("month")-1,day:r("day")}}function ze$4(t){let{year:n,monthIndex:r,day:o}=x$8(t);return new Date(Date.UTC(n,r,o,12))}function Qe$5(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))}function Ke$4(t){let{year:n,monthIndex:r,day:o}=x$8(t);return new Date(n,r,o)}var et$8=ve$b.enum(["youtube","vimeo","loom","wistia"]);var E$9=ve$b.enum(["poster","gallery","video","poll","event","cta","upvote"]),ar$4="\u2B06\uFE0F";E$9.extract(["event","poll","upvote"]);var f$7=ve$b.object({priority:ve$b.number().int().min(0)}),bt$7=f$7.extend({type:ve$b.literal("poster"),fabricJson:ve$b.record(ve$b.string(),ve$b.unknown()).optional(),imageUrl:ve$b.string().url(),aiLabel:Ei$1.nullish(),hideContent:ve$b.boolean().optional()}),At$4=f$7.extend({type:ve$b.literal("gallery"),imageEntries:ve$b.array(ve$b.object({id:ve$b.string().min(1),url:ve$b.string().url(),aiLabel:Ei$1.nullable()})).max(10).optional(),images:ve$b.array(ve$b.string().url()).min(1,"At least one image is required").max(10,"Maximum 10 images allowed")}).refine(({images:t,imageEntries:n})=>!n||n.length===t.length&&n.every((r,o)=>r.url===t[o])&&new Set(n.map(r=>r.id)).size===n.length,{path:["imageEntries"],message:"Image entries must have unique IDs and match the gallery image order"}),S$a=ve$b.enum(["upload","external"]),_t$7=f$7.extend({type:ve$b.literal("video"),source:ve$b.literal(S$a.enum.upload),videoId:ve$b.string().min(1),aiLabel:Ei$1.nullish()}),rt$6=f$7.extend({type:ve$b.literal("video"),source:ve$b.literal(S$a.enum.external),provider:et$8,url:ve$b.string().url(),aiLabel:Ei$1.nullish()});rt$6.superRefine(ot$6);function ot$6(t,n){It$6(t.provider,t.url)||n.addIssue({code:ve$b.ZodIssueCode.custom,message:"External video URL must match provider and resolve to an embed URL",path:["url"]});}function It$6(t,n){switch(t){case "youtube":return vt$5(n);case "vimeo":return xt$5(n);case "loom":return Et$6(n);case "wistia":return St$5(n)}}function T$8(t){try{return new URL(t)}catch{return null}}function d$9(t,n,r){if(!t.pathname.startsWith(n))return false;let o=t.pathname.slice(n.length).split("/")[0];return r.test(o)}function vt$5(t){let n=T$8(t);if(!n)return false;let r=n.hostname;return r==="youtu.be"?d$9(n,"/",/^[-\w]+$/):r==="youtube.com"||r==="www.youtube.com"||r==="music.youtube.com"?d$9(n,"/embed/",/^[-\w]+$/)||/^[-\w]+$/.test(n.searchParams.get("v")??""):r==="youtube-nocookie.com"||r==="www.youtube-nocookie.com"?d$9(n,"/embed/",/^[-\w]+$/):false}function xt$5(t){let n=T$8(t);return n?n.hostname==="player.vimeo.com"?d$9(n,"/video/",/^\d+$/):n.hostname!=="vimeo.com"?false:d$9(n,"/",/^\d+$/)||d$9(n,"/manage/videos/",/^\d+$/):false}function Et$6(t){let n=T$8(t);return !n||!["loom.com","www.loom.com"].includes(n.hostname)||n.pathname==="/share/folder"||n.pathname.startsWith("/share/folder/")?false:d$9(n,"/share/",/^[\w-]+$/)||d$9(n,"/embed/",/^[\w-]+$/)}function St$5(t){let n=T$8(t);return n?n.hostname==="fast.wistia.net"?d$9(n,"/embed/iframe/",/^[\w-]+$/):n.hostname.endsWith(".wistia.com")&&n.hostname!=="wistia.com"&&d$9(n,"/medias/",/^[\w-]+$/):false}var Tt$6=ve$b.preprocess(t=>t&&typeof t=="object"&&"type"in t&&t.type==="video"&&!("source"in t)?
1249s$e(r$d({},t),{source:S$a.enum.upload}):t,ve$b.discriminatedUnion("source",[_t$7,rt$6])).superRefine((t,n)=>{t.source===S$a.enum.external&&ot$6(t,n);}),Ut$4=48,Pt$4=f$7.extend({type:ve$b.literal("event"),eventName:ve$b.string().min(1).max(Ut$4),description:ve$b.string().optional(),startDate:ve$b.coerce.date(),startTime:ve$b.string().min(1),endDate:ve$b.coerce.date(),endTime:ve$b.string().min(1),location:ve$b.string().optional(),link:ve$b.string().url().optional()}),nt$7=f$7.extend({type:ve$b.literal("cta"),actionLabel:ve$b.string().min(1).optional(),actionUrl:ve$b.string().url().optional(),infoLabel:ve$b.string().min(1).optional(),infoUrl:ve$b.string().url().optional()});nt$7.superRefine((t,n)=>{let r=!!t.actionLabel,o=!!t.actionUrl,a=!!t.infoLabel,i=!!t.infoUrl;r!==o&&n.addIssue({code:ve$b.ZodIssueCode.custom,message:"Action button requires both label and url",path:r?["actionUrl"]:["actionLabel"]}),a!==i&&n.addIssue({code:ve$b.ZodIssueCode.custom,message:"Info button requires both label and url",path:a?["infoUrl"]:["infoLabel"]}),!(r&&o)&&!(a&&i)&&n.addIssue({code:ve$b.ZodIssueCode.custom,message:"At least one button (action or info) must be provided"});});var Ct$8=f$7.extend({type:ve$b.literal("poll"),pollId:ve$b.string()}),wt$9=ve$b.object({statusId:ve$b.string().min(1),actorUid:ve$b.string().min(1),changedAt:ve$b.coerce.date()}),Dt$5=f$7.extend({type:ve$b.literal("upvote"),statusId:ve$b.string().min(1).optional(),manualUpvoteBoost:ve$b.number().int().min(0).optional(),statusHistory:ve$b.array(wt$9).optional(),mergedIntoPostId:n$g().optional(),mergedAt:ve$b.coerce.date().optional(),mergedBy:ve$b.string().min(1).optional()});function Lt$4(t){let n=(a,i)=>{let{year:c,monthIndex:p,day:g}=x$8(a),[U,P]=i.split(":").map(Number);return new Date(c,p,g,U,P)},r=n(t.startDate,t.startTime),o=n(t.endDate,t.endTime);return !Number.isNaN(r.getTime())&&!Number.isNaN(o.getTime())&&o>=r}var pr$5=ve$b.union([bt$7,Pt$4,nt$7,Ct$8,At$4,Tt$6,Dt$5]).superRefine((t,n)=>{t.type==="event"&&!Lt$4(t)&&n.addIssue({code:ve$b.ZodIssueCode.custom,path:["endTime"],message:"End date/time must be after start date/time"});});ve$b.object({allowedAttachmentsUser:ve$b.array(E$9),allowedAttachmentsModerator:ve$b.array(E$9)});var Nt$4=E$9.options,kt$6=["upvote"],at$8=Nt$4.filter(t=>!kt$6.includes(t)),Mt$5=["poll","event","cta"],jt$4=at$8.filter(t=>!Mt$5.includes(t));function lr$5(t,n,r="user"){return n?[...t??[]]:r==="moderator"?[...at$8]:[...jt$4]}var Rt$6={upvote:["poster","gallery","video","cta"]};function dr$5(t){return t?Rt$6[t]??[]:[]}var br$5=(()=>{class t{#t=g$k(En$7);transform(r){return r?this.#t.bypassSecurityTrustResourceUrl(r):""}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275pipe=Yn$8({name:"safeUrl",type:t,pure:true});}}return t})();function _r$5(t,n,{enumerable:r,value:o}){let a=o;return {enumerable:r,get(){let i=[],c,p=(...g)=>(i.length===g.length&&g.every((U,P)=>U===i[P])||(i=g,c=a(...g)),c);return Object.defineProperty(this,n,{value:p}),p}}}function vr$5(t){return t?it$6(t)?t.replace("https://",""):st$6(t)?t.replace("http://",""):t:""}function xr$5(t){return t?it$6(t)||st$6(t)?t:`https://${t}`:""}function it$6(t){return t?t.startsWith("https://"):false}function st$6(t){return t?t.startsWith("http://"):false} 1250var d$8=new b$g("FEATURE_TOGGLE_INJECTION_TOKEN");var b$8=e=>{let n=g$k(f$6),t=n.isFeatureEnabled(e),a=n.isInternalBeta(),T=n.isExtendedBeta();return qd$1(()=>!!(t||a()||T()))},x$7=e=>{let t=g$k(f$6).isFeatureEnabled(e);return On$7(t).asReadonly()},f$6=(()=>{class e{constructor(){this._featureToggleState=g$k(d$8),this._internalBeta=YG(g$k(wE),{initialValue:false}),this._extendedBeta=YG(g$k(CE),{initialValue:false});}isFeatureEnabled(t){return this._featureToggleState[t]===true}isInternalBeta(){return this._internalBeta}isExtendedBeta(){return this._extendedBeta}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var S$9=ve$b.enum(["level","event","role","recognition"]);var E$8=ve$b.enum(["community"]),b$7=ve$b.enum(["join","anniversary","birthday","topPoster"]),v$9=ve$b.enum(["activity","posts","comments","likesGiven","likesReceived","membershipYears","activityStreak"]),h$3="activity",A$9=ve$b.enum(["points","postsCount","commentsCount","likesGiven","likesReceived","membershipYears","activityStreak"]);var L$8=ve$b.enum(["membershipStart","fixedDate"]),D$b=ve$b.enum(["day","week","month","year"]),_$6=ve$b.enum(["materialized","virtual"]),x$6=ve$b.string().min(1).max(60),y$8=ve$b.string().max(200);ve$b.number().int().positive();ve$b.number().int().min(0);ve$b.coerce.date();var T$7=ve$b.number().int().min(0);var l$5=9,s$9=ve$b.object({level:ve$b.number().int().positive().min(1),name:x$6,description:y$8.optional(),icon:ve$b.string().optional(),threshold:T$7}),B$b=ve$b.object({reference:L$8,fixedDate:ve$b.coerce.date().optional(),periodUnit:D$b,periodAmount:ve$b.number().int().positive(),repeatYearly:ve$b.boolean().default(false)}).superRefine((t,a)=>{t.reference==="fixedDate"&&!t.fixedDate&&a.addIssue({code:ve$b.ZodIssueCode.custom,message:"fixedDate required when reference=fixedDate",path:["fixedDate"]}),t.reference!=="fixedDate"&&t.fixedDate!==void 0&&a.addIssue({code:ve$b.ZodIssueCode.custom,message:"fixedDate is only valid when reference=fixedDate",path:["fixedDate"]});}),I$7=ve$b.object({percentile:ve$b.number().int().min(1).max(50),windowDays:ve$b.number().int().min(1).max(365)}),G$7=ve$b.object({active:ve$b.boolean(),activeFrom:ve$b.coerce.date().optional(),expiresAt:ve$b.coerce.date().optional(),nextActiveFrom:ve$b.coerce.date().optional(),nextExpiresAt:ve$b.coerce.date().optional()});ve$b.object({id:ve$b.string(),schoolId:ve$b.string(),name:x$6,description:y$8.optional().default(""),icon:ve$b.string(),badgeType:S$9,scope:E$8,key:v$9.optional(),isSystemBadge:ve$b.boolean().default(false),isActive:ve$b.boolean().default(true),assignedCount:ve$b.number().int().default(0),assignmentStrategy:_$6.optional(),virtualAssignment:G$7.optional(),metric:A$9.optional(),levels:ve$b.array(s$9).optional(),eventTrigger:b$7.optional(),defaultExpirationDays:ve$b.number().int().positive().max(365).optional(),uniquePerSchool:ve$b.boolean().optional(),anniversaryConfig:B$b.optional(),topPosterConfig:I$7.optional(),createdAt:ve$b.coerce.date(),updatedAt:ve$b.coerce.date()});ve$b.object({uniqueEventTriggers:ve$b.array(b$7),usedMetricKeys:ve$b.array(v$9),topPosterWindowDays:ve$b.array(ve$b.number().int().min(1).max(365)).default([])});var c$e=ve$b.enum(["7d","30d","allTime"]),C$2=ve$b.object({enabled:ve$b.boolean().default(false),timeWindows:ve$b.array(c$e).default(["allTime"])}),g$9=ve$b.enum(["large","medium","small"]),j$b=ve$b.object({enabled:ve$b.boolean().default(false),levelsEnabled:ve$b.boolean().default(false),selectedPreset:g$9.optional(),leaderboardSettings:C$2.optional()});j$b.pick({selectedPreset:true}).required();ve$b.object({enabled:ve$b.boolean(),selectedPreset:g$9.optional()});var k$a=ve$b.object({level:s$9.shape.level.max(l$5),name:s$9.shape.name});ve$b.object({levels:ve$b.array(k$a).min(1).max(l$5)});var w$6=20;ve$b.object({timeWindow:c$e.default("allTime"),pageIndex:ve$b.coerce.number().int().min(0).default(0),limit:ve$b.coerce.number().int().min(1).max(100).default(w$6)});function X$8(t){return t.isActive===false?false:t.expiresAt?new Date(t.expiresAt)>new Date:true}function $$a(t){return t.badgeType==="level"}function J$b(t){return t.key===h$3}function P$5(t){if(!Array.isArray(t))return [];let a=[];for(let i of t){let o=c$e.safeParse(i);o.success&&!a.includes(o.data)&&a.push(o.data);}return a}var le$5=(()=>{class t{constructor(){this._memberAreaQuery=g$k(f$8),this._communityGamificationFeatureEnabled=x$7("communityGamification"),this._schoolHasGamification=YG(this._memberAreaQuery.select(i=>!!i.communityGamificationEnabled&&!!i.gamificationEnabled).pipe(st$c(Boolean)),{initialValue:false}),this.isGamificationEnabled=qd$1(()=>this._communityGamificationFeatureEnabled()&&this._schoolHasGamification()),this._schoolHasLevelsEnabled=YG(this._memberAreaQuery.select(i=>!!i.gamificationLevelsEnabled),{initialValue:false}),this.isLevelsEnabled=qd$1(()=>this.isGamificationEnabled()&&this._schoolHasLevelsEnabled()),this._leaderboardEnabled=YG(this._memberAreaQuery.select(i=>!!i.leaderboardEnabled),{initialValue:false}),this.isLeaderboardEnabled=qd$1(()=>this.isLevelsEnabled()&&this._leaderboardEnabled()),this.leaderboardTimeWindows=YG(this._memberAreaQuery.select(i=>P$5(i.leaderboardTimeWindows)),{initialValue:[]});}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var S$8="__FORMER_USER__",n$a=ve$b.object({isModerator:ve$b.boolean().optional(),uid:ve$b.string(),name:ve$b.string(),photoUrl:ve$b.string().optional()});var z$b=20,u$8=["spam","harassment","hateSpeech","violence","illegalContent","other"],g$8=ve$b.enum(u$8),p$9=["open","kept","removed"],b$6=ve$b.enum(p$9),f$5=["post","comment"],y$7=ve$b.enum(f$5),w$5=ve$b.object({uid:ve$b.string(),name:ve$b.string(),email:ve$b.string().optional()}),v$8=ve$b.object({moderator:n$a.optional(),note:ve$b.string().optional(),resolvedAt:ve$b.coerce.date(),autoResolved:ve$b.literal(true).optional(),contentAlreadyGone:ve$b.literal(true).optional()}),k$9=ve$b.object({_id:n$g(),schoolId:ve$b.string(),spaceId:n$g(),spacePostId:n$g(),spacePostCommentId:n$g().optional(),targetType:y$7,category:g$8,reason:ve$b.string(),goodFaithConfirmed:ve$b.boolean(),contentSnapshot:ve$b.string(),contentTitleSnapshot:ve$b.string().optional(),contentAuthor:n$a,reporter:w$5,state:b$6,resolution:v$8.optional(),contentDeletedAt:ve$b.coerce.date().optional(),receiptSentAt:ve$b.coerce.date().optional(),decisionSentAt:ve$b.coerce.date().optional(),removalNoticeSentAt:ve$b.coerce.date().optional(),createdAt:ve$b.coerce.date()});k$9.omit({reporter:true});var c$d={activity:{emptyState:"Werde aktiv, um deine Aktivit\xE4ten zu tracken!"},ageYears:"{{age}} Jahre",badges:"Badges",badgesPinnedCount:"Badges im Profil angepinnt",bio:"Biografie",birthday:"Geburtstag",birthdayWithAge:"{{birthday}}, {{age}} Jahre",emptyState:{ownDescription:"Erg\xE4nze dein Profil, um deiner Community mehr \xFCber dich zu verraten.",ownTitle:"Du hast noch keine pers\xF6nlichen Details geteilt.",reachOut:"Nimm Kontakt auf, um mehr \xFCber {{displayName}} zu erfahren.",title:"Dieses Mitglied hat noch keine pers\xF6nlichen Details geteilt."},linkCopied:"Profil Link kopiert",linkCopyFailed:"Profil-Link konnte nicht kopiert werden",links:"Links",notificationSettings:{channels:{email:"E-Mail",emailGloballyDisabledTooltip:"E-Mail-Ben
1250achrichtigungen sind deaktiviert. F\xFCr diesen Kanal m\xFCssen sie oben aktiviert werden.",inApp:"In-App",push:"Push"},notifications:{contentReport:"Gemeldete Inhalte",description:"Wie m\xF6chtest du benachrichtigt werden?",followPostUpdate:"Kommentare in Beitr\xE4gen denen ich folge",gamificationLevelUp:"Erfolge",mentions:"Wenn ich erw\xE4hnt wurde",newSpacePostFollow:"Beitr\xE4ge in Spaces denen ich folge",pendingPosts:"Neue Beitr\xE4ge die freigegeben werden m\xFCssen",pendingSpaceJoins:"Neue Beitrittsanfragen die freigegeben werden m\xFCssen",postStatus:"Status-\xC4nderungen in Beitr\xE4gen denen ich folge",reactions:"Reaktionen auf meine Beitr\xE4ge",reviewResult:"Wenn meine Beitr\xE4ge oder Beitrittsanfragen freigegeben oder abgelehnt wurden",spaces:"Neue Beitr\xE4ge",title:"Community-Benachrichtigungen",todoAssigned:"Todo zugewiesen",todoDue:"Todo f\xE4llig"},optInToggle:{description:"Entscheide, ob du E-Mail-Benachrichtigungen von diesem Lernbereich erhalten m\xF6chtest",title:"E-Mail-Benachrichtigungen",toggleText:"E-Mail-Benachrichtigungen erlauben",warning:"Beachte, dass deine Zustimmung erforderlich ist, um E-Mail-Ben
1250achrichtigungen und Informationen per E-Mail erhalten zu k\xF6nnen."},settings:"Benachrichtigungen",submissions:{commentReaction:"Wenn jemand auf meinen Kommentar reagiert",commented:"Wenn ein Kommentar zu meiner Abgabe hinzugef\xFCgt wird",description:"Verwalte Benachrichtigungen zu deinen Abgaben.",stateChanged:"Wenn meine Abgabe bewertet wurde",title:"Abgaben"},subtitle:"Ausw\xE4hlbar, welche Benachrichtigungen geliefert werden und \xFCber welche Kan\xE4le.",todos:{assigned:"Wenn ein neues Todo zugewiesen wird",description:"Benachrichtigungen f\xFCr Todos verwalten.",due:"Wenn ein Todo f\xE4llig ist",title:"Todos"}},onboarding:{changeProfileImage:"Profilbild bearbeiten oder hochladen",closeDialog:"Dialog schlie\xDFen",consentDefaultText:'Ich willige hiermit ein, dass der "Firmenname" wie folgt angezeigt wird:<br><br>Wenn ich im Community-Bereich interagiere (z.B. kommentiere oder like), wird dies - zusammen mit dem von mir gew\xE4hlten Anzeigenamen und dem von mir gew\xE4hlten Anzeigebild - (auch "Aktivit\xE4ten" genannt) allen aktuellen und zuk\xFCnftigen Mitgliedern dieses Mitgliederbereichs angezeigt.<br><br>Meine Aktivit\xE4ten werden gespeichert und angezeigt, solange der Mitgliederbereich existiert, es sei denn, ich widerrufe sie vorher.<br><br>Die Erteilung meiner Zustimmung ist v\xF6llig freiwillig. Ich habe das Recht, meine Einwilligung jederzeit zu widerrufen. Durch den Widerruf der Einwilligung wird die Rechtm\xE4\xDFigkeit der aufgrund der Einwilligung bis zum Widerruf erfolgten Verarbeitung nicht ber\xFChrt.<br><br>Ich kann meine Einwilligung per "E-Mail" widerrufen. Wenn ich meine Einwilligung nicht erteile, kann ich trotzdem am Community-Bereich teilnehmen, allerdings nur als Leser.<br><br>Weitere Informationen zum Datenschutz finden Sie hier "Link Datenschutzhinweise".',consentDescription:"Ich bin damit einverstanden, dass mein Profil im Mitgliederbereich angezeigt wird und akzeptiere die",consentLinkText:"Community-Bestimmungen",description:"Beginne mit der Einrichtung deines Profils. Beachte bitte, dass Community-Mitglieder deine Profildetails sehen k\xF6nnen.",info:"Info (optional)",infoPlaceholder:"Bsp.: Coach, Mentor, Creator",setUpProfile:"Profil einrichten",switchProfileBackgroundColor:"Profil Hintergrundfarbe wechseln",userName:"Benutzername",userNamePlaceholder:"Bsp.: Max Mustermann"},posts:{emptyDescription:"Beitr\xE4ge dieses Mitglieds aus zug\xE4nglichen Spaces erscheinen hier.",emptyTitle:"Noch keine Beitr\xE4ge",loadError:"Beitr\xE4ge konnten nicht geladen werden. Bitte sp\xE4ter erneut versuchen.",ownEmptyDescription:"Verfasste Beitr\xE4ge in Community-Spaces erscheinen hier.",ownEmptyTitle:"Noch keine eigenen Beitr\xE4ge"},profileError:"Beim Laden des Profils ist ein Fehler aufgetreten ",profileNotFound:{message:"M\xF6glicherweise wurde der Account gel\xF6scht oder die URL ist falsch.",title:"Profil nicht gefunden"},settings:{authTab:{sessions:{confirmMessage:"Alle Sitzungen dieses Kontos werden auf s\xE4mtlichen Ger\xE4ten beendet, auch auf diesem. Danach ist eine erneute Anmeldung erforderlich.",confirmTitle:"Von allen Ger\xE4ten abmelden?",description:"Beendet alle Sitzungen dieses Kontos auf s\xE4mtlichen Ger\xE4ten, z. B. nach der Nutzung eines fremden Computers oder bei Verdacht auf unbefugten Zugriff. Danach ist eine erneute Anmeldung erforderlich.",revokeButton:"Von allen Ger\xE4ten abmelden",title:"Aktive Sitzungen"},tabName:"Authentifizierung"},dateOfBirthVisibility:{ageOnly:"Nur Alter anzeigen",birthdayAndAge:"Geburtstag und Alter anzeigen",birthdayOnly:"Nur Tag und Monat anzeigen",hidden:"Geburtstag und Alter verbergen"},generalTab:{biography:"Biografie",changeCoverPhoto:"Titelbild \xE4ndern",consentDialogTitle:"Einwilligung",coverPhoto:"Titelbild",dateOfBirth:"Geburtstag",dateOfBirthVisibility:"Geburtstags-Sichtbarkeit",deleteCoverPhotoText:"Dein Titelbild",deleteProfileImageText:"Dein Profilbild",headline:"\xDCberschrift",legalConsent:"Einwilligung",legalConsentText:"Ich bin damit einverstanden, dass mein Profil im Mitgliederbereich angezeigt wird",location:"Standort",makeMyEmailPublic:"Meine E-Mail-Adresse \xF6ffentlich sichtbar machen",makeMyPhoneNumberPublic:"Meine Telefonnummer \xF6ffentlich sichtbar machen",noConsentReadOnly:"Ohne Einwilligung kannst du nur lesend auf die Community zugreifen",profilePicture:"Profilbild",readAgreement:"Nutzungsbedingungen lesen",recommendedCoverPhotoSize:"Empfohlen 1180 x 240px",recommendedImageSize:"Empfohlene Bildgr\xF6\xDFe: 300 x 300 Pixel",removeCoverPhoto:"Titelbild entfernen",removePhoto:"Foto entfernen",requiredFieldsNotFilled:"Bitte f\xFClle alle Pflichtfelder aus",socialLinks:"Social Links",title:"Informationen",uploadPhoto:"Foto hochladen"},help:"Erfahre mehr \xFCber Profileinstellungen",placeholders:{biography:"Erz\xE4hle ein paar Worte \xFCber dich...",dateOfBirth:"Geburtstag ausw\xE4hlen",displayName:"Beispiel: Max Mustermann",email:"Beispiel: [email protected]",headline:"Beispiel: Coach, Mentor, Consultant",location:"Beispiel: Stuttgart, Deutschland",phone:"Beispiel: +49 711-4101-0150"},settingsTab:{blockedUsersDescription:"Von dir blockierte Benutzer k\xF6nnen dir keine Nachrichten senden.",blockedUsersEmpty:"Du hast niemanden blockiert.",blockedUsersTitle:"Blockierte Benutzer",chatTabName:"Chat",dmReachableDescription:"Erlaube Community-Mitgliedern, dir Direktnachrichten zu senden",dmReachableTitle:"Per DM erreichbar sein",dmReachableToggleLabel:"Direktnachrichten erlauben",unblock:"Freigeben"},subscriptionTab:{description:"Zahlungsmethoden und Rechnungen \xFCber das Stripe-Kundenportal verwalten.",error:"Das Kundenportal konnte nicht ge\xF6ffnet werden. Bitte sp\xE4ter erneut versuchen.",manageButton:"Zahlungsdaten verwalten",noSubscription:"Kein aktives Abonnement gefunden.",tabName:"Abonnement"},title:"Einstellungen"},shareError:"Das Profil kann derzeit nicht geteilt werden",tabs:{about:"\xDCbersicht",activity:"Aktivit\xE4ten",posts:"Beitr\xE4ge"},tooltips:{call:"Anrufen",editProfile:"Profil bearbeiten",email:"Per E-Mail kontaktieren"}};
1250var h$2={activity:{emptyState:"Start engaging to track your activity!"},ageYears:"{{age}} years old",badges:"Badges",badgesPinnedCount:"Badges pinned to profile",bio:"Bio",birthday:"Birthday",birthdayWithAge:"{{birthday}}, {{age}} years old",emptyState:{ownDescription:"Complete your profile to tell your community more about yourself.",ownTitle:"You haven't shared personal details yet.",reachOut:"Reach out to learn more about {{displayName}}.",title:"This member hasn't shared personal details yet."},linkCopied:"Profile link copied",linkCopyFailed:"Failed to copy profile link",links:"Links",notificationSettings:{channels:{email:"Email",emailGloballyDisabledTooltip:"Email notifications are turned off. They must be enabled above to use this channel.",inApp:"In-App",push:"Push"},notifications:{contentReport:"Reported content",description:"How would you like to be notified?",followPostUpdate:"Comments on posts I follow",gamificationLevelUp:"Achievements",mentions:"I was mentioned",newSpacePostFollow:"Posts in Spaces that I follow",pendingPosts:"New posts which need to be reviewed",pendingSpaceJoins:"New space-join requests which need to be reviewed",postStatus:"Status changes on posts I follow",reactions:"Reactions to my posts",reviewResult:"When my posts or join requests have been reviewed",spaces:"New posts",title:"Community Notifications",todoAssigned:"Todo assigned",todoDue:"Todo due"},optInToggle:{description:"Decide whether you want to receive email notifications from this learning area",title:"Email Notifications",toggleText:"Allow email notifications",warning:"Note that your consent is required to receive email notifications and information via email."},settings:"Notifications",submissions:{commentReaction:"When someone reacts to my comment",commented:"When a comment is added to my submission",description:"Manage notifications for your submissions.",stateChanged:"When my submission is reviewed",title:"Submissions"},subtitle:"Select which notifications get delivered and through which channels.",todos:{assigned:"When a new todo is assigned",description:"Manage notifications for todos.",due:"When a todo is due",title:"Todos"}},onboarding:{changeProfileImage:"Edit or upload profile picture",closeDialog:"Close dialog",consentDefaultText:`I hereby consent to the "company name" as follows:<br><br>If I interact in the community area (e.g. comment or like), this will be done - together with the display name I have chosen and my chosen one Display Image - (also called "Activities") displayed to all current and prospective members of this Members Area.<br><br>My activities will be saved and displayed as long as the members area exists, unless I revoke it beforehand<br><br>The granting of my consent is completely voluntary. I have the right to withdraw my consent at any time. The revocation of the consent does not affect the legality of the processing carried out on the basis of the consent up to the point of revocation.<br><br>I can withdraw my consent via "E-Mail" If I don't give my consent, I can still participate in the community area, but only as a reader.<br><br>Further information on data protection can be found here "Link data protection information".`,consentDescription:"I agree that my profile will be displayed in the members area and I accept the",consentLinkText:"Community Guidelines",description:"Start setting up your profile. Please note that community members can see your profile details.",info:"Info (optional)",infoPlaceholder:"E.g.: Coach, Mentor, Creator",setUpProfile:"Set up profile",switchProfileBackgroundColor:"Switch profile background color",userName:"Username",userNamePlaceholder:"E.g.: Max Mustermann"},posts:{emptyDescription:"Posts from this member in accessible space
1250s will appear here.",emptyTitle:"No posts yet",loadError:"We couldn't load posts. Please try again later.",ownEmptyDescription:"Posts published in any community space will appear here.",ownEmptyTitle:"No posts yet"},profileError:"An error occurred while loading the profile",profileNotFound:{message:"The account may have been deleted, or the URL is incorrect.",title:"Profile not found"},settings:{authTab:{sessions:{confirmMessage:"All sessions of this account will be ended on all devices, including this one. Signing in again is required afterwards.",confirmTitle:"Sign out of all devices?",description:"Ends all sessions of this account on all devices, for example after using a shared computer or in case of suspected unauthorized access. Signing in again is required afterwards.",revokeButton:"Sign out of all devices",title:"Active sessions"},tabName:"Authentication"},dateOfBirthVisibility:{ageOnly:"Show age only",birthdayAndAge:"Show birthday and age",birthdayOnly:"Show day and month only",hidden:"Hide birthday and age"},generalTab:{biography:"Biography",changeCoverPhoto:"Change cover photo",consentDialogTitle:"Agreement",coverPhoto:"Cover photo",dateOfBirth:"Birthday",dateOfBirthVisibility:"Birthday visibility",deleteCoverPhotoText:"your cover photo",deleteProfileImageText:"your profile picture",headline:"Headline",legalConsent:"Consent",legalConsentText:"I agree to show my profile in the community",location:"Location",makeMyEmailPublic:"Make my email publicly visible",makeMyPhoneNumberPublic:"Make my phone number publicly visible",noConsentReadOnly:"Without consent you can only read in the community",profilePicture:"Profile picture",readAgreement:"Read the Agreement",recommendedCoverPhotoSize:"Recommended 1180 x 240px",recommendedImageSize:"Recommended 300 x 300px",removeCoverPhoto:"Remove cover photo",removePhoto:"Remove Photo",requiredFieldsNotFilled:"Please fill in all required fields",socialLinks:"Social Links",title:"Basic information",uploadPhoto:"Upload Photo"},help:"Learn more about profile settings",placeholders:{biography:"Tell something about yourself",dateOfBirth:"Select birthday",displayName:"Example: John Smith",email:"Example: [email protected]",headline:"Example: Coach, Mentor, Consultant",location:"Example: Stuttgart, Germany",phone:"Example: +49 711-4101-0150"},settingsTab:{blockedUsersDescription:"Users you have blocked cannot send you messages.",blockedUsersEmpty:"You haven't blocked anyone.",blockedUsersTitle:"Blocked Users",chatTabName:"Chat",dmReachableDescription:"Allow community members to
1250send you direct messages",dmReachableTitle:"Be reachable via DM",dmReachableToggleLabel:"Allow direct messages",unblock:"Unblock"},subscriptionTab:{description:"Manage payment methods and invoices via the Stripe customer portal.",error:"The customer portal could not be opened. Please try again later.",manageButton:"Manage payment details",noSubscription:"No active subscription found.",tabName:"Subscription"},title:"Settings"},shareError:"Unable to share the profile right now",tabs:{about:"About",activity:"Activity",posts:"Posts"},tooltips:{call:"Call",editProfile:"Edit Profile",email:"Contact via email"}};var W$b=()=>({provide:Me$7,multi:true,useValue:{scope:"clientProfile",loader:t$7({de:c$d,en:h$2})}});function _$5(m){return [...m].filter(t=>X$8(t)&&!$$a(t)).sort((t,o)=>t.pinned&&!o.pinned?-1:!t.pinned&&o.pinned?1:0).map(t=>r$d({badgeId:t.badgeId,name:t.name,icon:t.icon,pinned:t.pinned},t.description&&{description:t.description}))}var u$7=(()=>{class r{constructor(){this._transloco=g$k(Ce$5);}transform(t){return t===S$8?this._transloco.translate("community.formerUser"):t??""}static{this.\u0275fac=function(s){return new(s||r)};}static{this.\u0275pipe=Yn$8({name:"communityUsername",type:r,pure:false});}}return r})();var u$6=/^(?:https?:\/\/)?(?:vimeo\.com|player\.vimeo\.com)(?!\.).+$/,d$7=/^(?:https?:\/\/)?(?:vimeo\.com|player\.vimeo\.com)(?!\.).+$/g,a$8=t=>t.match(u$6),l$4=/_(\d+)x(\d+)(?=\.[a-z0-9]+(?:\?|$)|\?|$)/i;function p$8(t,e=960){return !t||!t.includes("vimeocdn.com")?t:t.replace(l$4,(o,m,r)=>{let n=Number(m),i=Number(r);if(!n||!i||e<=n)return o;let s=Math.round(i*e/n);return `_${e}x${s}`})}var c$c=()=>"https://player.vimeo.com/video/",v$7=t=>{let{url:e}=t;if(e.includes("player.vimeo.com/video/")){let o=/\/video\/(\d+)/.exec(e);return o?`${c$c()}${o[1]}`:null}if(e.includes("vimeo.com/manage/videos/")){let o=/\/manage\/videos\/(\d+)/.exec(e);return o?`${c$c()}${o[1]}`:null}if(e.includes("vimeo.com/")){let o=/vimeo\.com\/(\d+)/.exec(e);return o?`${c$c()}${o[1]}`:null}return null}; 1251var t$6=(function(e){return e.LECTURE="lecture",e.AUDIOPOST="audiopost",e.TEXTPOST="textpost",e.SUBCHAPTER="subchapter",e.IFRAMEPOST="iframe",e.EXAM="exam",e.CERTIFICATE="certificate",e.PDF="pdf",e.LEARNINGTASK="learningtask",e.AGENT="agent",e.USERPROPERTIES="userproperties",e})(t$6||{});({[t$6.LECTURE]:"admin.post.title.lecture",[t$6.SUBCHAPTER]:"admin.post.title.subchapter",[t$6.TEXTPOST]:"admin.post.title.textpost",[t$6.IFRAMEPOST]:"admin.post.title.iframepost",[t$6.EXAM]:"admin.post.title.exam",[t$6.AUDIOPOST]:"admin.post.title.audiopost",[t$6.CERTIFICATE]:"admin.post.title.certificate",[t$6.PDF]:"admin.post.title.pdf",[t$6.LEARNINGTASK]:"admin.post.title.learningtask",[t$6.AGENT]:"admin.post.title.agent",[t$6.USERPROPERTIES]:"admin.post.title.userproperties"});var c$b=e=>e.type!==t$6.SUBCHAPTER;new Set(Object.values(t$6).filter(e=>e!==t$6.SUBCHAPTER));var S$7="assets/images/defaults/header-logo-1.png",T$6="assets/images/defaults/thumbnail_softblue/[email protected]",o$5="assets/images/defaults/thumbnail_softblue/[email protected]",l$3="assets/images/defaults/thumbnail_softblue/[email protected]",i$7="assets/images/defaults/thumbnail_softblue/[email protected]",n$9="assets/images/defaults/thumbnail_softblue/[email protected]",s$8="assets/images/defaults/thumbnail_softblue/[email protected]",u$5="assets/images/defaults/thumbnail_softblue/[email protected]",p$7="assets/images/defaults/thumbnail_softblue/[email protected]",m$6="assets/images/defaults/thumbnail_softblue/[email protected]",d$6="assets/images/defaults/thumbnail_softblue/[email protected]",x$5="assets/images/defaults/thumbnail_softblue/[email protected]",R$6="assets/images/examples/businessman.jpg",A$8="assets/images/defaults/loaderr.png";var r$9={[t$6.LECTURE]:i$7,[t$6.PDF]:u$5,[t$6.AUDIOPOST]:n$9,[t$6.TEXTPOST]:s$8,[t$6.EXAM]:d$6,[t$6.IFRAMEPOST]:p$7,[t$6.CERTIFICATE]:m$6,[t$6.SUBCHAPTER]:l$3,chapter:o$5,[t$6.LEARNINGTASK]:x$5,[t$6.AGENT]:s$8,[t$6.USERPROPERTIES]:s$8},h$1=e=>e?.thumbnailUrl?e.thumbnailUrl:e?.type===t$6.LECTURE&&e?.video?.thumbnail?p$8(e.video.thumbnail):e.type?r$9[e.type]:null,P$4=e=>e?.type===t$6.LECTURE&&e?.video?.thumbnail?p$8(e.video.thumbnail):e.type?r$9[e.type]:i$7;function l$2(t,e){let n=t.trim();if(!n)return "external";if(i$6(n))return "anchor";if(a$7(n))return "internal";let r=u$4(n);return !r||r.protocol!=="http:"&&r.protocol!=="https:"?"external":o$4(r.hostname,e.activeHostname)?"internal":"external"}function c$a(t,e){let n=t.trim();if(!n||i$6(n))return null;if(a$7(n))return s$7(n,e.currentPathname??"/");let r=u$4(n);return !r||r.protocol!=="http:"&&r.protocol!=="https:"||!o$4(r.hostname,e.activeHostname)?null:`${r.pathname||"/"}${r.search}${r.hash}`}function i$6(t){return t.startsWith("#")}function a$7(t){return !/^[a-z][a-z0-9+\-.]*:/i.test(t)&&!t.startsWith("//")}function u$4(t){try{return new URL(t.startsWith("//")?`https:${t}`:t)}catch{return null}}function o$4(t,e){return !!e&&t.toLowerCase()===e}function s$7(t,e){return t.startsWith("/")?t:t.startsWith("?")?`${e}${t}`:t.startsWith("#")?null:`/${t}`} 1252var A$7=new b$g("[WA_WINDOW]",{factory:()=>{let{defaultView:o}=g$k(Te$g);if(!o)throw new Error("Window is not available");return o}}),c$9=A$7;var S$6=new b$g("[WA_LOCAL_STORAGE]",{factory:()=>g$k(c$9).localStorage});var _$4=new b$g("[WA_SESSION_STORAGE]",{factory:()=>g$k(c$9).sessionStorage});var p$6=(()=>{class e{constructor(){this._router=g$k(H$8),this._window=g$k(A$7),this._logger=g$k($E);}classify(r){return l$2(r,{activeHostname:this._activeHostname()})}navigateInternal(r){let t=c$a(r,{activeHostname:this._activeHostname(),currentPathname:this._currentPathname()});return t?(this._router.navigateByUrl(t),true):false}openExternal(r){let t;try{t=new URL(r,this._window.location.href);}catch(n){this._logger.warn("[SmartLink] Could not parse url",{message:n instanceof Error?n.message:String(n)});return}if(t.protocol!=="http:"&&t.protocol!=="https:"){this._logger.warn("[SmartLink] Refusing unsafe protocol",{protocol:t.protocol});return}this._window.open(t.href,"_blank","noopener,noreferrer");}_activeHostname(){return this._window.location.hostname.toLowerCase()}_currentPathname(){return this._router.url.split("?")[0].split("#")[0]}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})(),I$6=new b$g("SMART_LINK_HANDLER",{providedIn:"root",factory:()=>g$k(p$6)});var E$7=(()=>{class e{constructor(){this._elementRef=g$k(gt$f),this._isAdmin=g$k(kE,{optional:true})??false,this._smartLinkHandler=this._isAdmin?null:g$k(I$6),this._lastHref=null,this._lastClassification=null,this._classification="external";}ngDoCheck(){if(this._isAdmin||!this._smartLinkHandler)return;let t=this._elementRef.nativeElement.getAttribute("href"),i=this._smartLinkHandler.classify(t??"");t===this._lastHref&&i===this._lastClassification||(this._lastHref=t,this._lastClassification=i,this._classification=i,this._syncAttributes(t));}onClick(t){if(this._isAdmin)return;let i=this._elementRef.nativeElement.getAttribute("href");i?.trim()&&(t.stopPropagation(),this._classification==="internal"&&(t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this._smartLinkHandler?.navigateInternal(i)&&t.preventDefault()));}_syncAttributes(t){if(!!!t?.trim()||this._classification!=="external"){this._elementRef.nativeElement.removeAttribute("target"),this._elementRef.nativeElement.removeAttribute("rel");return}this._elementRef.nativeElement.setAttribute("target","_blank"),this._elementRef.nativeElement.setAttribute("rel","noopener noreferrer");}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["","mspotSmartLink",""]],hostBindings:function(i,a){i&1&&Zv$1("click",function(o){return a.onClick(o)});}});}}return e})();var d$5=e=>e?"src"in e:false,D$a=(()=>{class e{constructor(){this.loadErr=false,this.placeholder=A$8;}imgLoadFailed(t){!this.loadErr&&d$5(t?.target)&&(this.loadErr=true,t.target.src=this.placeholder||A$8);}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["","mspotImgLoadErr",""]],hostBindings:function(i,a){i&1&&Zv$1("error",function(o){return a.imgLoadFailed(o)});},inputs:{placeholder:[0,"mspotImgLoadErr","placeholder"]}});}}return e})();var Le$6=ve$b.enum(["moderators-only","members-via-access","open","open-no-access"]);Le$6.options;function Fe$3(i){return i===void 0||i==="members-via-access"||i==="open"||i==="open-no-access"}function et$7(i){return i===void 0||i==="open"||i==="open-no-access"}
1252function we$5(i){return i.isModerator?true:Fe$3(i.chatMode)}var a$6={chatList:"member-chats-infinite",chat:"member-chat",chatMessages:"member-chat-messages",memberSearch:"member-search",counter:"member-messages-counter",blockedUsers:"member-chat-blocked-users",inChatSearch:"member-chat-in-chat-search",aroundAnchor:"member-chat-around-anchor",globalSearch:"member-chat-global-search"},X$7=1e3*60*15,_t$6=(()=>{class i{constructor(){this._chatApiService=g$k(q$7),this._memberAreaQuery=g$k(f$8),this._queryClient=g$k(_$d),this._noti=g$k(wi$1),this._schoolUserService=g$k(Oe$5),this._schoolId=YG(this._memberAreaQuery.selectSchoolId()),this._currentUser=this._schoolUserService.getCurrentUser(),this.chatMode=YG(this._memberAreaQuery.selectChatMode()),this.isModerator=qd$1(()=>!!this._currentUser()?.isModerator),this.canStartChat=qd$1(()=>we$5({chatMode:this.chatMode(),isModerator:this.isModerator()})),this.sendMessageMutation=re$7(()=>({mutationFn:async e=>{let t=this._schoolId();if(!t)throw new Error("School ID required");return EI(this._chatApiService.sendChatMessage(e,t))},onMutate:async e=>{let t=this._schoolId(),r=this._currentUser()?.uid;if(!t||!r)return;let o=this._createOptimisticMessage(e,t,r);return this._queryClient.setQueryData([a$6.chatMessages,t,e.chatId],n=>{if(!n)return {pages:[[o]],pageParams:[0]};let{messageId:l,pageIndex:p}=Vt$3(n.pages);return s$e(r$d({},n),{pages:n.pages.map((A,D)=>{let J=p!==-1&&D===p?Zt$4(A,l):A;return D===0?[o,...J]:J})})}),{optimisticMessage:o}},onError:(e,t,r)=>{let o=this._schoolId();!o||!r||this._queryClient.setQueryData([a$6.chatMessages,o,t.chatId],n=>n&&s$e(r$d({},n),{pages:n.pages.map(l=>l.map(p=>p.id===r.optimisticMessage.id?s$e(r$d({},p),{error:true}):p))}));},onSuccess:(e,t)=>{let r=this._schoolId();r&&this._queryClient.setQueryData([a$6.chatMessages,r,t.chatId],o=>o?s$e(r$d({},o),{pages:o.pages.map(n=>n.map(l=>l.id.startsWith("temp-")?e:l))}):{pages:[[e]],pageParams:[0]});}})),this.createPrivateChatMutation=re$7(()=>({meta:{hideToast:true},mutationFn:async e=>{let t=this._schoolId();if(!t)throw new Error("School ID required");return EI(this._chatApiService.createPrivateChat(e,t))},onSuccess:()=>{this._queryClient.invalidateQueries({queryKey:[a$6.chatList,this._schoolId()]});}})),this.deleteChatMutation=re$7(()=>({mutationFn:async e=>{let t=this._schoolId();if(!t)throw new Error("School ID required");return EI(this._chatApiService.deleteChat(e,t))},onSuccess:()=>{this._queryClient.invalidateQueries({queryKey:[a$6.chatList,this._schoolId()]});}})),this.blockUserMutation=re$7(()=>({meta:{hideToast:true},mutationFn:async e=>{let t=this._schoolId();if(!t)throw new Error("School ID required");return EI(this._chatApiService.blockUser(e,t))},onSuccess:()=>{this._invalidateBlockRelatedQueries(),this._noti.successIntl("memberChat.block.blocked");},onError:()=>this._noti.errorIntl("memberChat.block.blockError")})),this.unblockUserMutation=re$7(()=>({meta:{hideToast:true},mutationFn:async e=>{let t=this._schoolId();if(!t)throw new Error("School ID required");return EI(this._chatApiService.unblockUser(e,t))},onSuccess:()=>{this._invalidateBlockRelatedQueries(),this._noti.successIntl("memberChat.block.unblocked");},onError:()=>this._noti.errorIntl("memberChat.block.unblockError")})),this.removeChatFromList=e=>{let{chatId:t,schoolId:r}=e;this._queryClient.getQueryData([a$6.chatList,r,{query:"",filter:D$c.ALL}])?.pages?.some(l=>l.some(p=>p.chatId===t&&!p.lastMessageSnippet))&&this._queryClient.invalidateQueries({queryKey:[a$6.chatList,r],exact:false});},this.clearUnreadList=e=>{let{schoolId:t}=e;this._queryClient.setQueryData([a$6.chatList,t,{query:"",filter:D$c.UNREAD}],r=>r&&s$e(r$d({},r),{pages:r.pages.map(o=>o.filter(n=>n.unreadCount!==0))}));},this._createOptimisticMessage=(e,t,r)=>({id:`temp-${Date.now()}`,schoolId:t,chatId:e.chatId,senderId:r,content:e.content,type:e.type,metadata:e.metadata,readBy:[],createdAt:new Date,updatedAt:new Date});}createUserChatsInfiniteQuery(e){return se$b(()=>{let{query:t,filter:r}=e(),o=!t||r===D$c.UNREAD;return {queryKey:[a$6.chatList,this._schoolId(),e()],queryFn:async({pageParam:n=1})=>{let l=this._schoolId();if(!l)throw new Error("School ID required");return EI(this._chatApiService.getUserChats({schoolId:l,page:n,limit:20,search:t,filter:r}))},initialPageParam:1,getNextPageParam:(n,l)=>{if(!(!n||n.length<20))return l.length+1},enabled:qd$1(()=>!!this._schoolId()),gcTime:o?0:X$7,staleTime:o?0:X$7}})}getChatMessagesInfiniteQuery(e){return se$b(()=>({queryKey:[a$6.chatMessages,this._schoolId(),e().chatId],queryFn:async({pageParam:t=1})=>{let r=this._schoolId(),o=e().chatId;if(!r)throw new Error("School ID required");if(!o)throw new Error("Chat ID required");return EI(this._chatApiService.getChatMessages({schoolId:r,chatId:o,page:t}))},initialPageParam:1,getNextPageParam:(t,r)=>{if(!(!t||t.length<50))return r.length+1},enabled:qd$1(()=>!!this._schoolId()&&!!e()?.chatId)}))}getChatByIdQuery(e){return ie$b(()=>({enabled:qd$1(()=>!!this._schoolId()&&!!e()?.chatId),queryKey:[a$6.chat,this._schoolId(),e()?.chatId],queryFn:async()=>{let t=this._schoolId(),r=e()?.chatId;if(!t)throw new Error("School ID required");if(!r)throw new Error("Chat ID required");return EI(this._chatApiService.getChatById(r,t))}}))}getGlobalUnreadCounterQuery(){return ie$b(()=>({enabled:qd$1(()=>!!this._schoolId()&&!!this._currentUser()),queryKey:[a$6.counter,this._schoolId(),this._currentUser()?.uid],queryFn:async()=>{let e=this._schoolId();if(!e)throw new Error("School ID required");return EI(this._chatApiService.getGlobalUnreadCounter(e))}}))}getBlockedUsersQuery(){return ie$b(()=>({enabled:qd$1(()=>!!this._schoolId()),queryKey:[a$6.blockedUsers,this._schoolId()],queryFn:async()=>{let e=this._schoolId();if(!e)throw new Error("School ID required");return EI(this._chatApiService.getBlockedUsers(e))},staleTime:X$7}))}searchMembersInfiniteQuery(e){return se$b(()=>{let t=e().trim();return {queryKey:[a$6.memberSearch,this._schoolId(),t],queryFn:async({pageParam:r})=>{let o=this._schoolId();if(!o)throw new Error("School ID required");return qE$1(this._chatApiService.searchMembers({schoolId:o,query:t,page:r,limit:20}))},initialPageParam:1,getNextPageParam:(r,o,n)=>n<r.totalPages?n+1:void 0,enabled:!!this._schoolId()&&t.length>2}})}createInChatSearchInfiniteQuery(e,t){return se$b(()=>{let r=t().trim();return {queryKey:[a$6.inChatSearch,this._schoolId(),e(),r],queryFn:async({pageParam:o})=>{let n=this._schoolId();if(!n)throw new Error("School ID required");return EI(this._chatApiService.searchInChat({schoolId:n,chatId:e(),query:r,cursor:o}))},initialPageParam:void 0,getNextPageParam:o=>o.nextCursor??void 0,enabled:!!this._schoolId()&&!!e()&&r.length>=2,gcTime:0,staleTime:0}})}createGlobalSearchInfiniteQuery(e){return se$b(()=>{let t=e().trim();return {queryKey:[a$6.globalSearch,this._schoolId(),t],queryFn:async({pageParam:r})=>{let o=this._schoolId();if(!o)throw new Error("School ID required");return EI(this._chatApiService.searchGlobal({schoolId:o,query:t,cursor:r}))},initialPageParam:void 0,getNextPageParam:r=>r.nextCursor??void 0,enabled:!!this._schoolId()&&t.length>=2,gcTime:0,staleTime:0}})}getFlattenedSearchHits(e){return e?.pages?e.pages.flatMap(t=>t.hits):[]}async fetchChatById(e){let t=this._schoolId();if(!t)throw new Error("School ID required");return this._queryClient.fetchQuery({queryKey:[a$6.chat,t,e],queryFn:()=>EI(this._chatApiService.getChatById(e,t))})}
1252async fetchMessagesAroundAnchor(e,t){let r=this._schoolId();if(!r)throw new Error("School ID required");return this._queryClient.fetchQuery({queryKey:[a$6.aroundAnchor,r,e,t],queryFn:()=>qE$1(this._chatApiService.getMessagesAroundAnchor(r,e,t)),staleTime:0,gcTime:0})}replaceMessagesWithAnchorData(e,t){let r=this._schoolId();if(!r)return;let o=[...[...t.after].reverse(),...t.anchor?[t.anchor]:[],...[...t.before].reverse()];this._queryClient.setQueryData([a$6.chatMessages,r,e],{pages:[o],pageParams:[1]});}appendMessagesToAnchorCache(e,t,r){let o=this._schoolId();!o||t.length===0||this._queryClient.setQueryData([a$6.chatMessages,o,e],n=>{if(!n?.pages?.[0])return n;let l=new Set(n.pages[0].map(D=>D.id)),p=t.filter(D=>!l.has(D.id));if(p.length===0)return n;let A=r==="older"?[...n.pages[0],...p.reverse()]:[...p.reverse(),...n.pages[0]];return s$e(r$d({},n),{pages:[A]})});}resetMessagesQuery(e){let t=this._schoolId();t&&this._queryClient.invalidateQueries({queryKey:[a$6.chatMessages,t,e]});}undoErrorMessage(e){this._queryClient.setQueryData([a$6.chatMessages,e.schoolId,e.chatId],t=>t&&s$e(r$d({},t),{pages:t.pages.map(r=>r.filter(o=>o.id!==e.id))}));}getFlattenedData(e){return e?.pages?e.pages.flat():[]}_invalidateBlockRelatedQueries(){this._queryClient.invalidateQueries({queryKey:[a$6.chatList,this._schoolId()]}),this._queryClient.invalidateQueries({queryKey:[a$6.blockedUsers,this._schoolId()]});}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Pe$2=(()=>{class i extends D$a{constructor(){super(...arguments),this.placeholder=R$6;}static{this.\u0275fac=(()=>{let e;return function(r){return (e||(e=Wg$1(i)))(r||i)}})();}static{this.\u0275dir=mt$d({type:i,selectors:[["","mspotProfileImgLoadErr",""]],features:[pv$1]});}}return i})();var Te$5=i=>({name:i});function Be$4(i,h){if(i&1&&QM(0),i&2){let e=yM(2).$implicit;Gd$1(" ",e("memberChat.block.title")," ");}}function Qe$4(i,h){if(i&1&&QM(0),i&2){let e=yM(2).$implicit;Gd$1(" ",e("memberChat.block.unblockTitle")," ");}}function Ne$5(i,h){if(i&1&&(ta$3(0,"h1",3),eM$1(1,Be$4,1,1)(2,Qe$4,1,1),Pd$1()),i&2){let e=yM(2);uT(),tM$1(e.data.mode==="block"?1:2);}}function Ke$3(i,h){if(i&1&&(Vv$1(0,"img",12),ta$3(1,"p",3),QM(2),EN(3,"communityUsername"),Pd$1()),i&2){let e=yM().$implicit,t=yM();jv$1("src",t.data.participantPhoto??t.placeholderImg,Gm$1)("alt",e("memberChat.alt.avatar")),uT(2),Gd$1(" ",CN(3,3,t.data.participantName)," ");}}function Oe$3(i,h){if(i&1&&(QM(0),EN(1,"communityUsername")),i&2){let e=yM().$implicit,t=yM();Gd$1(" ",e("memberChat.block.message",fN(3,Te$5,CN(1,1,t.data.participantName)))," ");}}function $e$3(i,h){if(i&1&&(QM(0),EN(1,"communityUsername")),i&2){let e=yM().$implicit,t=yM();Gd$1(" ",e("memberChat.block.unblockMessage",fN(3,Te$5,CN(1,1,t.data.participantName)))," ");}}function je$3(i,h){if(i&1&&(ta$3(0,"button",10),QM(1),Pd$1()),i&2){let e=yM().$implicit;jv$1("mat-dialog-close",true),uT(),Gd$1(" ",e("memberChat.block.confirm")," ");}}function Re$4(i,h){if(i&1&&(ta$3(0,"button",11),QM(1),Pd$1()),i&2){let e=yM().$implicit;jv$1("mat-dialog-close",true),uT(),Gd$1(" ",e("memberChat.block.unblockConfirm")," ");}}function Ve$3(i,h){if(i&1){let e=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2),eM$1(3,Ne$5,3,1,"h1",3)(4,Ke$3,4,5),Pd$1(),ta$3(5,"button",4),Vv$1(6,"ng-icon",5),Pd$1()(),ta$3(7,"div",6)(8,"div",7),eM$1(9,Oe$3,2,5)(10,$e$3,2,5),Pd$1()(),ta$3(11,"div",8)(12,"button",9),Zv$1("click",function(){sh$1(e);let r=yM();return ah$1(r.dialogRef.close())}),QM(13),Pd$1(),eM$1(14,je$3,2,2,"button",10)(15,Re$4,2,2,"button",11),Pd$1(),$d$1();}if(i&2){let e=h.$implicit,t=yM();uT(3),tM$1(t.data.isMobile?3:4),uT(2),Pv$1("aria-label",e("memberChat.aria.closeDialog")),uT(4),tM$1(t.data.mode==="block"?9:10),uT(4),Gd$1(" ",e("memberChat.block.abort")," "),uT(),tM$1(t.data.mode==="block"?14:15);}}var wt$8=(()=>{class i{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9),this.placeholderImg=R$6;}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-chat-block-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","items-center","justify-between"],[1,"flex","flex-1","items-center","gap-x-2"],[1,"text-text-strong","text-sm","font-semibold"],["type","button","mat-dialog-close","",1,"navIconButton"],["name","heroXMark"],[1,"pb-5","pt-7"],[1,"text-text-default","font-semibold"],[1,"flex","flex-col-reverse","justify-end","gap-2","py-3","sm:flex-row"],[1,"btn","btn-gray","bg-backgrounds-surface-raised","w-full","sm:w-auto",3,"click"],["cdkFocusInitial","",1,"btn","bg-backgrounds-fill-danger-strong","text-text-inverse","w-full","sm:w-auto",3,"mat-dialog-close"],["cdkFocusInitial","",1,"btn","btn-primary","w-full","sm:w-auto",3,"mat-dialog-close"],["mspotProfileImgLoadErr","",1,"h-8","w-8","rounded-full",3,"src","alt"]],template:function(t,r){t&1&&gv$1(0,Ve$3,16,5,"ng-container",0);},dependencies:[jt$8,le$9,Pe$2,yt$a,u$7],encapsulation:2});}}return i})();var Ue$3=i=>({$implicit:i});function Ge$2(i,h){if(i&1&&(yh$1(),ta$3(0,"svg",4),Vv$1(1,"path",5)(2,"path",6),Pd$1()),i&2){let e=yM().$implicit,t=yM();uT(),iD("text-red-500",e.pinned)("text-text-subtle",!e.pinned&&!t._isDisabled())("text-text-quaternary",t._isDisabled()),uT(),iD("text-red-500",e.pinned)("text-text-subtle",!e.pinned&&!t._isDisabled())("text-text-quaternary",t._isDisabled()),Pv$1("fill",e.pinned?"currentColor":"none");}}function He$4(i,h){if(i&1&&(Vv$1(0,"mspot-emoji-icon-color",3),ta$3(1,"span"),QM(2),Pd$1(),eM$1(3,Ge$2,3,13,":svg:svg",4)),i&2){let e=h.$implicit,t=yM();jv$1("icon",e.icon),uT(2),yD(e.name),uT(),tM$1(t.editable()?3:-1);}}function ze$3(i,h){if(i&1){let e=fM();ta$3(0,"button",7),Zv$1("click",function(){sh$1(e);let r=yM();return ah$1(r._onChipClick())}),$v$1(1,8),Pd$1();}if(i&2){let e=yM(),t=TM(2),r=tN(0);BM(e._chipClasses()),iD("cursor-pointer",!e._isDisabled())("cursor-not-allowed",e._isDisabled()),jv$1("disabled",e._isDisabled()),Pv$1("aria-label",r.name)("aria-pressed",r.pinned?"true":"false"),uT(),jv$1("ngTemplateOutlet",t)("ngTemplateOutletContext",fN(11,Ue$3,r));}}function We$3(i,h){if(i&1&&(ta$3(0,"div"),$v$1(1,8),Pd$1()),i&2){let e=yM(),t=TM(2),r=tN(0);BM(e._chipClasses()),uT(),jv$1("ngTemplateOutlet",t)("ngTemplateOutletContext",fN(4,Ue$3,r));}}var Ze$5="inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1.5 text-sm font-medium transition-colors",Bt$4=(()=>{class i{constructor(){this.badgeData=X8.required(),this.editable=X8(false),this.disabled=X8(false),this.togglePin=J8(),this._isDisabled=qd$1(()=>this.disabled()&&!this.badgeData().pinned),this._chipClasses=qd$1(()=>`${Ze$5} ${this._chipVariantClasses()}`),this._chipVariantClasses=qd$1(()=>{let e=this.badgeData(),t=this.editable(),r=this._isDisabled();return e.pinned?"border-red-200 bg-red-50 text-red-700":r?"border-borders-primary bg-backgrounds-subtle text-text-quaternary opacity-60":t?"border-borders-primary bg-backgrounds-surface-raised text-text-default hover:border-borders-secondary hover:bg-backgrounds-subtle":"border-borders-primary bg-backgrounds-surface-raised text-text-default"});}_onChipClick(){this.editable()&&!this._isDisabled()&&this.togglePin.emit(this.badgeData().badgeId);}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-badge-chip"]],inputs:{badgeData:[1,"badgeData"],editable:[1,"editable"],disabled:[1,"disabled"]},outputs:{togglePin:"togglePin"},decls:5,vars:2,consts:[["chipContent",""],["type","button",3,"class","cursor-pointer","cursor-not-allowed","disabled"],[3,"class"],["size","xs",1,"flex","shrink-0",3,"icon"],["width","16","height","16","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true","focusable","false",1,"ml-0.5"],["d","M7.125 10.875L2.25 15.75","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M3.75 7.11431L10.6443 14.0086L11.9171 12.7358L11.623 9.89615L15.7548 6.39117L11.3675 2.00391L7.8625 6.1356L5.0228 5.84152L3.75 7.11431Z","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["type","button",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){t&1&&(wD(0),gv$1(1,He$4,4,3,"ng-template",null,0,SN),eM$1(3,ze$3,2,13,"button",1)(4,We$3,2,6,"div",2)),t&2&&(eN(r.badgeData()),uT(3),tM$1(r.editable()?3:4));},dependencies:[Ix$1,fe$a],encapsulation:2});}}return i})(); 1253var O$8=(()=>{class s{constructor(){this._breakpointObserver=g$k(z$h),this.isLandscape$=this._breakpointObserver.observe(["(orientation: landscape)"]).pipe(st$c(e=>e.matches)),this.isMobileInPortraitOrLandscape$=this._breakpointObserver.observe([p$b.HandsetPortrait,p$b.HandsetLandscape]).pipe(st$c(e=>{let t=e.breakpoints[p$b.HandsetPortrait],m=e.breakpoints[p$b.HandsetLandscape];return t||m})),this.isXs$=this._breakpointObserver.observe(["(max-width: 639px)"]).pipe(st$c(e=>e.matches)),this.isHandset$=this._breakpointObserver.observe(["(max-width: 1023px)"]).pipe(st$c(e=>e.matches)),this.isMdDown$=this._breakpointObserver.observe(["(max-width: 767px)"]).pipe(st$c(e=>e.matches)),this.isSm$=_I([this._breakpointObserver.observe(["(min-width: 640px)"]),this._breakpointObserver.observe(["(max-width: 767px)"])]).pipe(st$c(([e,t])=>e.matches&&t.matches)),this.isMd$=_I([this._breakpointObserver.observe(["(min-width: 768px)"]),this._breakpointObserver.observe(["(max-width: 1023px)"])]).pipe(st$c(([e,t])=>e.matches&&t.matches)),this.isLg$=_I([this._breakpointObserver.observe(["(min-width: 1024px)"]),this._breakpointObserver.observe(["(max-width: 1279px)"])]).pipe(st$c(([e,t])=>e.matches&&t.matches)),this.gtLg$=this._breakpointObserver.observe(["(min-width: 1280px)"]).pipe(st$c(e=>e.matches)),this.isFullWidth$=this._breakpointObserver.observe(["(min-width: 1535px)"]).pipe(st$c(e=>e.matches)),this.breakpoints$=_I([this.isXs$.pipe(st$c(e=>e?"xs":null)),this.isSm$.pipe(st$c(e=>e?"sm":null)),this.isMd$.pipe(st$c(e=>e?"md":null)),this.isLg$.pipe(st$c(e=>e?"lg":null)),this.gtLg$.pipe(st$c(e=>e?"xl":null))]).pipe(sp$2(0),st$c(e=>e.find(t=>!!t)),pp$2());}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=L$l({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();var T$5={getDemoUserAuthToken:t=>`/admin-users/demo-token/${t}`,GET_INTERCOM_SECRET:()=>({url:"/admin-users/intercom-secret",method:b$e.GET}),GET_UPVOTY_JWT:()=>({url:"/admin-users/upvoty-jwt",method:b$e.GET}),GET_AHA_JWT:()=>({url:"/admin-users/aha-jwt",method:b$e.GET}),VERIFY_EMAIL:t=>({url:`/emails/verify/${t}`,method:b$e.POST}
1253),CREATE_PROFILE:t=>({url:"/admin-users/create-profile",data:t,method:b$e.POST}),UPDATE_PROFILE:t=>({url:"/admin-users/update-profile",data:t,method:b$e.PATCH}),UPDATE_PROFILE_PICTURE:t=>({url:"/admin-users/update-profile-picture",data:t,method:b$e.PATCH}),UPDATE_LANGUAGE:t=>({url:"/admin-users/set-language",data:t,method:b$e.PATCH}),UPDATE_LAST_LOGIN:t=>({url:`/admin-users/last-login/${t.schoolId}`,data:t,method:b$e.PATCH}),UPDATE_TERMS:t=>({url:"/admin-users/terms",data:t,method:b$e.PATCH}),GET_USER_TOKEN:(t,a)=>({url:`/admin-users/user-token/${t}/${a}`,method:b$e.GET}),RECALCULATE_PROGRESS:(t,a)=>({url:`/admin-users/recalculate-progress/${t}/${a}`,method:b$e.POST}),CREATE_MISSING_DRIP_TASKS:(t,a)=>({url:`/admin-users/create-missing-drip-tasks/${t}/${a}`,method:b$e.POST}),GET_SCHOOLS_USER_IS_OWNER_IN:()=>({url:"/admin-users/get-user-owner-schools",method:b$e.GET}),DELETE_PROFILE:()=>({url:"/admin-users/delete-profile",method:b$e.GET})};var O$7=(()=>{class t{constructor(){this._http=g$k(Ce$a);}updateUser(o){let r={photoUrl:o};return this._http.generic(T$5.UPDATE_PROFILE_PICTURE(r))}updateUserInSchool(o,r){let s={photoUrl:r};return this._http.generic(l$6.USER.UPDATE_PROFILE_PICTURE(o,s))}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var j$a=(()=>{class t{constructor(){this._afAuth=g$k(nt$c),this.user$=ie$d(this._afAuth),this.isMobile=YG(g$k(O$8).isXs$);}async updateProfile(o){let r=this._afAuth.currentUser;if(r)return ea$4(r,{photoURL:o})}async createImageUploadData(o,r){let s=this._afAuth.currentUser,i="jpeg";return {filePath:o?`schools/${o}/profiles/${s?.uid}/profile.${i}`:`profiles/${s?.uid}/profile.${i}`,aspectRatio:16/16,resizeToWidth:250,format:i,customTemplate:r}}async createCoverPhotoUploadData(o,r){let s=this._afAuth.currentUser,i="jpeg";return {filePath:o?`schools/${o}/profiles/${s?.uid}/cover.${i}`:`profiles/${s?.uid}/cover.${i}`,aspectRatio:1180/240,resizeToWidth:1180,format:i,customTemplate:r}}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var r$8=class r extends et$9{constructor(t){super(t),this.store=t;}selectActiveIdAfterLoading(){return this.selectLoading().pipe(Pt$b(t=>!t),Kf$1(()=>this.selectActiveId()))}selectEntityAfterLoading(t){return this.selectLoading().pipe(Pt$b(i=>!i),Kf$1(()=>this.selectEntity(t)))}selectAllNullLoading(t){return this.nullLoading(()=>t?this.selectAll(t):this.selectAll())}selectActiveNullLoading(){return this.nullLoading(()=>this.selectActive())}selectEntityNullLoading(t){return this.nullLoading(()=>this.selectEntity(t))}nullLoading(t){return this.selectLoading().pipe(Kf$1(i=>i?yI(null):t()))}};var f$4=(()=>{let t=class o extends z$f{constructor(){super();}static{this.\u0275fac=function(a){return new(a||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}};return t=k0([we$8({name:"spaces"}),F0("design:paramtypes",[])],t),t})();var M$9=(()=>{class t extends r$8{constructor(){super(g$k(f$4));}selectAllWithIcons(){return this.selectAll()}selectAllAfterLoading(){return this.selectLoading().pipe(Pt$b(n=>!n),Kf$1(()=>this.selectAll()))}static{this.\u0275fac=function(a){return new(a||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var g$7=10,i$5=kr$4.object({id:kr$4.string(),addedAt:kr$4.coerce.date(),updatedAt:kr$4.coerce.date()}),h=i$5.extend({type:kr$4.literal("file"),link:kr$4.string().url()}),y$6=i$5.extend({type:kr$4.literal("text"),content:kr$4.string()}),k$8=i$5.extend({type:kr$4.literal("media"),videoId:kr$4.string().optional(),link:kr$4.string().url().optional()}),A$6=i$5.extend({type:kr$4.literal("link"),links:kr$4.array(kr$4.string().url()).max(g$7)}),b$5=kr$4.discriminatedUnion("type",[h,y$6,k$8,A$6]);var I$5=kr$4.enum(["open","submitted","completed","retry"]),j$9=kr$4.object({uid:kr$4.string(),name:kr$4.string(),avatar:kr$4.string().optional(),isTutor:kr$4.boolean().default(false)}),v$6=kr$4.object({criterionIndex:kr$4.number().int().min(0),selectedLevelIndex:kr$4.number().int().min(0),percentage:kr$4.number().min(0).max(100)}),L$7=kr$4.object({adminUser:j$9,note:kr$4.string(),givenAt:kr$4.coerce.date(),rubricGrades:kr$4.array(v$6).optional()}),F$8=kr$4.object({state:I$5,rating:kr$4.number().min(0).max(100),startedAt:kr$4.coerce.date(),completedAt:kr$4.coerce.date(),commentCount:kr$4.number().default(0)});F$8.extend({id:kr$4.string(),attemptNumber:kr$4.number().default(1),files:kr$4.array(b$5).default([]),additionalNotes:kr$4.string().optional(),feedback:L$7.optional(),feedbackVideoId:kr$4.string().optional()});var m$5={GET_NOTIFICATIONS_V2:o=>({url:`/client-notification/v2/${o}`,method:b$e.GET}),GET_NOTIFICATIONS_V3:o=>({url:`/client-notification/v3/${o}`,method:b$e.GET}),MARK_ALL_AS_READ:o=>({url:`/client-notification/mark-as-read/${o}`,method:b$e.POST}),MARK_SPACE_AS_READ:(o,n)=>({url:`/client-notification/mark-space-as-read/${o}/${n}`,method:b$e.POST}),MARK_SPACE_JOIN_REQUESTS_AS_READ:o=>({url:`/client-notification/mark-space-join-requests-as-read/${o}`,method:b$e.POST}),MARK_ONE_AS_READ:(o,n)=>({url:`/client-notification/mark-as-read/${o}/${n}`,method:b$e.POST}),DELETE_ALL:o=>({url:`/client-notification/${o}`,method:b$e.DELETE}),DELETE_ONE:(o,n)=>({url:`/client-notification/${o}/${n}`,method:b$e.DELETE})};var q$6=ve$b.enum(["manual","expired","automatic"]);ve$b.object({schoolId:ve$b.string(),memberId:ve$b.string(),badgeId:ve$b.string(),badgeName:ve$b.string(),badgeType:S$9,reason:q$6});ve$b.object({uid:ve$b.string(),schoolId:ve$b.string(),createdAt:ve$b.date(),isRead:ve$b.boolean().optional(),emailSent:ve$b.boolean().optional(),emailDigestSendAt:ve$b.date().optional(),actor:n$a});var X$6=ve$b.enum(["newPost","mention","comment","pendingPost","approvedPost","rejectedPost","reaction","postStatus","spaceJoinRequested","spaceJoinApproved","spaceJoinRejected","contentReport","submissionCommented","submissionCommentReaction","submissionStateChanged","chatMessage","levelUp","badgeEarned","badgeRemoved","todoAssigned","todoDue"]);var Z$5=["contentReport"],ee$4=["submissionCommented","submissionCommentReaction","submissionStateChanged"],te$4=["chatMessage"],ie$6=["levelUp","badgeEarned","badgeRemoved"],oe$5=["todoAssigned","todoDue"],se$6=ve$b.object({type:ve$b.enum(["newPost","mention","comment","pendingPost","approvedPost","rejectedPost","reaction","postStatus"]),spaceId:ve$b.string(),spaceName:ve$b.string(),spacePostId:ve$b.string(),postTitle:ve$b.string().optional(),thumbnail:ve$b.string().optional(),reactorCount:ve$b.number().optional(),reaction:ve$b.string().nullish(),spacePostCommentId:ve$b.string().nullish(),statusLabel:ve$b.string().optional()}),ae$4=ve$b.object({type:ve$b.enum(["spaceJoinRequested","spaceJoinApproved","spaceJoinRejected"]),spaceId:ve$b.string(),spaceName:ve$b.string(),joinRequestId:ve$b.string().optional(),requesterUid:ve$b.string().optional(),requesterName:ve$b.string().optional(),joinRequestMessage:ve$b.string().optional(),joinDecisionNote:ve$b.string().optional()}),ne$4=ve$b.object({type:ve$b.literal("contentReport"),spaceId:ve$b.string(),spaceName:ve$b.string(),spacePostId:ve$b.string(),spacePostCommentId:ve$b.string().optional(),contentReportId:ve$b.string(),targetType:y$7,category:g$8}),re$2=ve$b.object({type:ve$b.literal("submissionCommented"),submissionId:ve$b.string(),taskTitle:ve$b.string(),courseId:ve$b.string(),courseName:ve$b.string(),commentText:ve$b.string(),chapterId:ve$b.string(),lessonId:ve$b.string()}),ce$4=ve$b.object({type:ve$b.literal("submissionCommentReaction"),submissionId:ve$b.string(),taskTitle:ve$b.string(),courseId:ve$b.string(),courseName:ve$b.string(),commentId:ve$b.string(),emoji:ve$b.string(),chapterId:ve$b.string(),lessonId:ve$b.string()}),de$4=ve$b.object({type:ve$b.literal("submissionStateChanged"),submissionId:ve$b.string(),taskTitle:ve$b.string(),courseId:ve$b.string().optional(),courseName:ve$b.string().optional(),newState:I$5,chapterId:ve$b.string(),lessonId:ve$b.string()}),pe$5=ve$b.object({type:ve$b.literal("chatMessage"),chatId:ve$b.string(),senderName:ve$b.string(),messageSnippet:ve$b.string()}),le$4=ve$b.object({type:ve$b.literal("levelUp"),spaceId:ve$b.string(),badgeId:ve$b.string(),badgeKey:v$9.optional(),previousLevel:ve$b.number(),previousLevelName:ve$b.string().optional(),previousLevelThreshold:ve$b.number().optional(),newLevel:ve$b.number(),newLevelName:ve$b.string(),totalPoints:ve$b.number(),currentLevelThreshold:ve$b.number(),nextLevelThreshold:ve$b.number().optional(),nextLevelName:ve$b.string().optional()}),ue$3=ve$b.object({type:ve$b.literal("badgeEarned"),spaceId:ve$b.string().optional(),badgeId:ve$b.string(),badgeName:ve$b.string(),badgeType:S$9,currentLevel:ve$b.number().optional(),totalPoints:ve$b.number().optional()}),me$5=ve$b.object({type:ve$b.literal("badgeRemoved"),badgeId:ve$b.string(),badgeName:ve$b.string(),badgeType:S$9,reason:q$6}),he$5=ve$b.object({type:ve$b.literal("todoAssigned"),todoId:ve$b.string(),title:ve$b.string(),dueDate:ve$b.string().datetime().optional(),additionalCount:ve$b.number().int().nonnegative().optional()}),_e$4=ve$b.object({type:ve$b.literal("todoDue"),todoId:ve$b.string(),title:ve$b.string(),dueDate:ve$b.string().datetime()}),ye$6=ve$b.discriminatedUnion("type",[re$2,se$6,ae$4,ne$4,ce$4,de$4,pe$5,le$4,ue$3,me$5,he$5,_e$4]),ge$3=ve$b.object({uid:ve$b.string(),schoolId:ve$b.string(),createdAt:ve$b.date(),isRead:ve$b.boolean().optional(),emailSent:ve$b.boolean().optional(),emailDigestSendAt:ve$b.date().optional(),actor:n$a,payload:ye$6});ve$b.object({_id:ve$b.string()}).merge(ge$3);ve$b.object({type:X$6,uid:ve$b.string(),schoolId:ve$b.string(),spaceId:ve$b.string(),spacePostId:ve$b.string().optional(),spaceName:ve$b.string(),postTitle:ve$b.string().optional(),createdAt:ve$b.date(),isRead:ve$b.boolean().optional(),emailSent:ve$b.boolean().optional(),user:n$a,thumbnail:ve$b.string().optional()});var fe$3=["newPost","mention","comment","pendingPost","approvedPost","rejectedPost","reaction","postStatus"],Ie=["spaceJoinRequested","spaceJoinApproved","spaceJoinRejected"];function g$6(o){let n=o.payload.type;return fe$3.includes(n)}function k$7(o){let n=o.payload.type;return Ie.includes(n)}function Le$5(o){return Z$5.includes(o.payload.type)}function J$a(o){return ee$4.includes(o.payload.type)}function $$9(o){return te$4.includes(o.payload.type)}function j$8(o){return ie$6.includes(o.payload.type)}function Y$a(o){return oe$5.includes(o.payload.type)}var Se$5=250,V$7=(()=>{class o{constructor(){this._destroyRef=g$k(de$b),this._queryClient=g$k(_$d),this._memberAreaQuery=g$k(f$8),this._schoolUserQuery=g$k(M$a),this._refreshRequests$=new le$d,this._refreshRequests$.pipe(sp$2(Se$5),qG(this._destroyRef)).subscribe(()=>this._invalidateOwnProfileQueries());}requestRefresh(){this._refreshRequests$.next();}
1253_invalidateOwnProfileQueries(){let t=this._memberAreaQuery.getSchoolId(),i=this._schoolUserQuery.getValue()?.uid;!t||!i||(this._queryClient.invalidateQueries({queryKey:["community-profile",t,i],exact:true}),this._queryClient.invalidateQueries({queryKey:["gamification","my-stats",t],exact:true}));}static{this.\u0275fac=function(i){return new(i||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var H$7=(()=>{class o{constructor(){this._httpBackend=g$k(Ce$a);}getClientNotificationsV3(t){return this._httpBackend.generic(m$5.GET_NOTIFICATIONS_V3(t))}markAllAsRead(t){return this._httpBackend.generic(m$5.MARK_ALL_AS_READ(t))}markSpacePostNotificationsAsRead(t,i){return this._httpBackend.generic(m$5.MARK_SPACE_AS_READ(t,i))}markSpaceJoinRequestsAsRead(t){return this._httpBackend.generic(m$5.MARK_SPACE_JOIN_REQUESTS_AS_READ(t))}markOneAsRead(t,i){return this._httpBackend.generic(m$5.MARK_ONE_AS_READ(t,i))}deleteAll(t){return this._httpBackend.generic(m$5.DELETE_ALL(t))}deleteOne(t,i){return this._httpBackend.generic(m$5.DELETE_ONE(t,i))}static{this.\u0275fac=function(i){return new(i||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var z$a="client-notifications";function O$6(o,n){o.invalidateQueries({queryKey:["spacePost",n.schoolId,n.spaceId,n.spacePostId]});}function Re$3(o,n){o.invalidateQueries({queryKey:["spacePostComments",n.schoolId,n.spaceId,n.spacePostId]}),o.invalidateQueries({queryKey:["mentions",n.schoolId,n.spaceId,n.spacePostId]});}function E$6(o,n){o.invalidateQueries({predicate:t=>t.queryKey[0]==="communityPosts"&&t.queryKey[1]===n.schoolId&&t.queryKey[3]===n.spaceId});}function W$a(o,n){o.invalidateQueries({queryKey:["communityPosts","pending-review-count",n]});}function be$5(o,n){o.invalidateQueries({queryKey:["client-todos",n]});}var ve$5=100,ut$6=(()=>{class o{constructor(){this._api=g$k(H$7),this._qc=g$k(_$d),this._maQuery=g$k(f$8),this._logger=g$k($E),this._gamificationProfileRefresh=g$k(V$7),this._schoolId=YG(this._maQuery.selectSchoolId()),this._uid=YG(g$k(M$a).select(t=>t?.uid)),this._resetOnSchoolChange=g$k(Y$c).schoolChanged$.pipe(qG()).subscribe(t=>{this._qc.removeQueries({predicate:i=>i.queryKey[0]===z$a&&i.queryKey[1]!==t});}),this.levelUpReceived$=new le$d,this.notificationsQuery=ie$b(()=>({enabled:!!this._schoolId()&&!!this._uid(),queryKey:this._queryKey(this._schoolId()),queryFn:()=>{let t=this._schoolId();if(!t)throw new Error("schoolId is not set");return EI(this._api.getClientNotificationsV3(t))},staleTime:6e4})),this.notifications=qd$1(()=>this.notificationsQuery.data()??[]),this.hasUnread=qd$1(()=>this.notifications().some(t=>!t.isRead)),this.unreadCount=qd$1(()=>this.notifications().filter(t=>!t.isRead).length),this.unreadNewPostsBySpace=qd$1(()=>{let t={};for(let i of this.notifications())i.isRead||!g$6(i)||i.payload.type==="newPost"&&(t[i.payload.spaceId]=(t[i.payload.spaceId]??0)+1);return t}),this.markAllAsReadMutation=re$7(()=>({mutationFn:t=>EI(this._api.markAllAsRead(t.schoolId)),onMutate:({schoolId:t})=>this._patchOptimistic(t,i=>i.map(s=>s.isRead?s:s$e(r$d({},s),{isRead:true}))),onError:(t,i,s)=>this._rollbackOptimistic(s),onSettled:(t,i,s,a)=>this._settleOptimistic(a),meta:{hideToast:true}})),this.markOneAsReadMutation=re$7(()=>({mutationFn:t=>EI(this._api.markOneAsRead(t.schoolId,t.notificationId)),onMutate:({schoolId:t,notificationId:i})=>this._patchOptimistic(t,s=>s.map(a=>a._id===i&&!a.isRead?s$e(r$d({},a),{isRead:true}):a)),onError:(t,i,s)=>this._rollbackOptimistic(s),onSettled:(t,i,s,a)=>this._settleOptimistic(a),meta:{hideToast:true}})),this.markSpacePostsAsReadMutation=re$7(()=>({mutationFn:t=>EI(this._api.markSpacePostNotificationsAsRead(t.schoolId,t.spaceId)),onMutate:({schoolId:t,spaceId:i})=>this._patchOptimistic(t,s=>s.map(a=>a.isRead||!g$6(a)||a.payload.type!=="newPost"||a.payload.spaceId!==i?a:s$e(r$d({},a),{isRead:true}))),onError:(t,i,s)=>this._rollbackOptimistic(s),onSettled:(t,i,s,a)=>this._settleOptimistic(a),meta:{hideToast:true}})),this.markSpaceJoinRequestsAsReadMutation=re$7(()=>({mutationFn:t=>EI(this._api.markSpaceJoinRequestsAsRead(t.schoolId)),onMutate:({sc
1253hoolId:t})=>this._patchOptimistic(t,i=>i.map(s=>s.isRead||!k$7(s)||s.payload.type!=="spaceJoinRequested"?s:s$e(r$d({},s),{isRead:true}))),onError:(t,i,s)=>this._rollbackOptimistic(s),onSettled:(t,i,s,a)=>this._settleOptimistic(a),meta:{hideToast:true}})),this.deleteAllMutation=re$7(()=>({mutationFn:t=>EI(this._api.deleteAll(t.schoolId)),onMutate:({schoolId:t})=>this._patchOptimistic(t,()=>[]),onError:(t,i,s)=>this._rollbackOptimistic(s),onSettled:(t,i,s,a)=>this._settleOptimistic(a),meta:{hideToast:true}})),this.deleteOneMutation=re$7(()=>({mutationFn:t=>EI(this._api.deleteOne(t.schoolId,t.notificationId)),onMutate:({schoolId:t,notificationId:i})=>this._patchOptimistic(t,s=>s.filter(a=>a._id!==i)),onError:(t,i,s)=>this._rollbackOptimistic(s),onSettled:(t,i,s,a)=>this._settleOptimistic(a),meta:{hideToast:true}}));}unreadNewPostNoti(t){return qd$1(()=>{let i=t();if(i)return this.notifications().find(s=>s.isRead||!g$6(s)?false:s.payload.type==="newPost"&&s.payload.spacePostId===i)})}updateCommunityPostLocation(t,i,s,a){let c=this._queryKey(t),l=this._qc.getQueryData(c);l&&this._qc.setQueryData(c,l.map(d=>!g$6(d)||d.payload.spacePostId!==i||d.payload.spaceId===s&&d.payload.spaceName===a?d:s$e(r$d({},d),{payload:s$e(r$d({},d.payload),{spaceId:s,spaceName:a})})));}upsertOne(t){if(!this._isKnownType(t)){this._logger.warn("Unknown notification type, skipping:",t.payload.type);return}let i=this._schoolId();if(!i||t.schoolId!==i)return;let s=this._queryKey(t.schoolId),a=this._qc.getQueryData(s),c=!!a&&!a.some(l=>l._id===t._id);this._qc.setQueryData(s,(l=[])=>{let d=l.findIndex(R=>R._id===t._id);if(d>=0){let R=l.slice();return R[d]=t,R}return [t,...l].slice(0,ve$5)}),c&&(this._emitLevelUp(t),this._maybeRequestGamificationRefresh(t),this._invalidateRelatedQueries(t));}_invalidateRelatedQueries(t){let{schoolId:i}=t;if(g$6(t)){let{payload:a}=t,c={schoolId:i,spaceId:a.spaceId,spacePostId:a.spacePostId};switch(a.type){case "mention":case "comment":O$6(this._qc,c),Re$3(this._qc,c);return;case "reaction":O$6(this._qc,c);return;case "postStatus":O$6(this._qc,c),E$6(this._qc,c);return;case "newPost":E$6(this._qc,c);return;case "approvedPost":case "rejectedPost":O$6(this._qc,c),E$6(this._qc,c),W$a(this._qc,i);return;case "pendingPost":E$6(this._qc,c),W$a(this._qc,i);return}}let s=t.payload.type;(s==="todoAssigned"||s==="todoDue")&&be$5(this._qc,i);}invalidate(){this._qc.invalidateQueries({queryKey:this._queryKey(this._schoolId())});}_queryKey(t){return [z$a,t]}async _patchOptimistic(t,i){let s=this._queryKey(t);if(this._qc.getQueryData(s)===void 0)return {key:s,prev:void 0};await this._qc.cancelQueries({queryKey:s});let a=this._qc.getQueryData(s);return a===void 0?{key:s,prev:void 0}:(this._qc.setQueryData(s,i(a)),{key:s,prev:a})}_rollbackOptimistic(t){t?.prev!==void 0&&this._qc.getQueryData(t.key)!==void 0&&this._qc.setQueryData(t.key,t.prev);}_settleOptimistic(t){t&&t.prev===void 0&&this._qc.invalidateQueries({queryKey:t.key});}_isKnownType(t){return g$6(t)||k$7(t)||J$a(t)||$$9(t)||j$8(t)||Y$a(t)}_emitLevelUp(t){!t.isRead&&j$8(t)&&t.payload.type==="levelUp"&&this.levelUpReceived$.next(t);}_maybeRequestGamificationRefresh(t){let i=t.payload.type;(i==="reaction"||i==="levelUp"||i==="badgeEarned"||i==="badgeRemoved")&&this._gamificationProfileRefresh.requestRefresh();}static{this.\u0275fac=function(i){return new(i||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var n$8=r=>{r&&ji$2({id:r});},s$6=()=>{ji$2(null);};var P$3=(function(r){return r.Unimplemented="UNIMPLEMENTED",r.Unavailable="UNAVAILABLE",r})(P$3||{}),L$6=class L extends Error{constructor(e,t,i){super(e),this.message=e,this.code=t,this.data=i;}},K$9=r=>{var e,t;return r?.androidBridge?"android":!((t=(e=r?.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||t===void 0)&&t.bridge?"ios":"web"},M$8=r=>{let e=r.CapacitorCustomPlatform||null,t=r.Capacitor||{},i=t.Plugins=t.Plugins||{},s=()=>e!==null?e.name:K$9(r),n=()=>s()!=="web",o=a=>{let c=g.get(a);return !!(c?.platforms.has(s())||l(a))},l=a=>{var c;return (c=t.PluginHeaders)===null||c===void 0?void 0:c.find(C=>C.name===a)},u=a=>r.console.error(a),g=new Map,k=(a,c={})=>{let C=g.get(a);if(C)return console.warn(`Capacitor plugin "${a}" already registered. Cannot register plugins twice.`),C.proxy;let m=s(),p=l(a),b,_=async()=>(!b&&m in c?b=typeof c[m]=="function"?b=await c[m]():b=c[m]:e!==null&&!b&&"web"in c&&(b=typeof c.web=="function"?b=await c.web():b=c.web),b),q=(d,f)=>{var w,v;if(p){let y=p?.methods.find(h=>f===h.name);if(y)return y.rtype==="promise"?h=>t.nativePromise(a,f.toString(),h):(h,O)=>t.nativeCallback(a,f.toString(),h,O);if(d)return (w=d[f])===null||w===void 0?void 0:w.bind(d)}else {if(d)return (v=d[f])===null||v===void 0?void 0:v.bind(d);throw new L$6(`"${a}" plugin is not implemented on ${m}`,P$3.Unimplemented)}},$=d=>{let f,w=(...v)=>{let y=_().then(h=>{let O=q(h,d);if(O){let A=O(...v);return f=A?.remove,A}else throw new L$6(`"${a}.${d}()" is not implemented on ${m}`,P$3.Unimplemented)});return d==="addListener"&&(y.remove=async()=>f()),y};return w.toString=()=>`${d.toString()}() { [capacitor code] }`,Object.defineProperty(w,"name",{value:d,writable:false,configurable:false}),w},R=$("addListener"),H=$("removeListener"),I=(d,f)=>{let w=R({eventName:d},f),v=async()=>{let h=await w;H({eventName:d,callbackId:h},f);},y=new Promise(h=>w.then(()=>h({remove:v})));return y.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await v();},y},x=new Proxy({},{get(d,f){switch(f){case "$$typeof":return;case "toJSON":return ()=>({});case "addListener":return p?I:R;case "removeListener":return H;default:return $(f)}}});return i[a]=x,g.set(a,{name:a,proxy:x,platforms:new Set([...Object.keys(c),...p?[m]:[]])}),x};return t.convertFileSrc||(t.convertFileSrc=a=>a),t.getPlatform=s,t.handleError=u,t.isNativePlatform=n,t.isPluginAvailable=o,t.registerPlugin=k,t.Exception=L$6,t.DEBUG=!!t.DEBUG,t.isLoggingEnabled=!!t.isLoggingEnabled,t},G$6=r=>r.Capacitor=M$8(r),U$5=G$6(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),T$4=U$5.registerPlugin,E$5=class E{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={};}addListener(e,t){let i=false;this.listeners[e]||(this.listeners[e]=[],i=true),this.listeners[e].push(t);let n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n),i&&this.sendRetainedArgumentsForEvent(e);let o=async()=>this.removeListener(e,t);return Promise.resolve({remove:o})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={};}notifyListeners(e,t,i){let s=this.listeners[e];if(!s){if(i){let n=this.retainedEventArguments[e];n||(n=[]),n.push(t),this.retainedEventArguments[e]=n;}return}s.forEach(n=>n(t));}hasListeners(e){var t;return !!(!((t=this.listeners[e])===null||t===void 0)&&t.length)}registerWindowListener(e,t){this.windowListeners[t]={registered:false,windowEventName:e,pluginEventName:t,handler:i=>{this.notifyListeners(t,i);}};}unimplemented(e="not implemented"){return new U$5.Exception(e,P$3.Unimplemented)}unavailable(e="not available"){return new U$5.Exception(e,P$3.Unavailable)}async removeListener(e,t){let i=this.listeners[e];if(!i)return;let s=i.indexOf(t);this.listeners[e].splice(s,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e]);}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=true;}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=false);}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(i=>
1253{this.notifyListeners(e,i);}));}};var F$7=r=>encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),B$a=r=>r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),j$7=class j extends E$5{async getCookies(){let e=document.cookie,t={};return e.split(";").forEach(i=>{if(i.length<=0)return;let[s,n]=i.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");s=B$a(s).trim(),n=B$a(n).trim(),t[s]=n;}),t}async setCookie(e){try{let t=F$7(e.key),i=F$7(e.value),s=e.expires?`; expires=${e.expires.replace("expires=","")}`:"",n=(e.path||"/").replace("path=",""),o=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${t}=${i||""}${s}; path=${n}; ${o};`;}catch(t){return Promise.reject(t)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`;}catch(t){return Promise.reject(t)}}async clearCookies(){try{let e=document.cookie.split(";")||[];for(let t of e)document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`);}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies();}catch(e){return Promise.reject(e)}}};T$4("CapacitorCookies",{web:()=>new j$7});var V$6=async r=>new Promise((e,t)=>{let i=new FileReader;i.onload=()=>{let s=i.result;e(s.indexOf(",")>=0?s.split(",")[1]:s);},i.onerror=s=>t(s),i.readAsDataURL(r);}),W$9=(r={})=>{let e=Object.keys(r);return Object.keys(r).map(s=>s.toLocaleLowerCase()).reduce((s,n,o)=>(s[n]=r[e[o]],s),{})},z$9=(r,e=true)=>r?Object.entries(r).reduce((i,s)=>{let[n,o]=s,l,u;return Array.isArray(o)?(u="",o.forEach(g=>{l=e?encodeURIComponent(g):g,u+=`${n}=${l}&`;}),u.slice(0,-1)):(l=e?encodeURIComponent(o):o,u=`${n}=${l}`),`${i}&${u}`},"").substr(1):null,J$9=(r,e={})=>{let t=Object.assign({method:r.method||"GET",headers:r.headers},e),s=W$9(r.headers)["content-type"]||"";if(typeof r.data=="string")t.body=r.data;else if(s.includes("application/x-www-form-urlencoded")){let n=new URLSearchParams;for(let[o,l]of Object.entries(r.data||{}))n.set(o,l);t.body=n.toString();}else if(s.includes("multipart/form-data")||r.data instanceof FormData){let n=new FormData;if(r.data instanceof FormData)r.data.forEach((l,u)=>{n.append(u,l);});else for(let l of Object.keys(r.data))n.append(l,r.data[l]);t.body=n;let o=new Headers(t.headers);o.delete("content-type"),t.headers=o;}else (s.includes("application/json")||typeof r.data=="object")&&(t.body=JSON.stringify(r.data));return t},D$9=class D extends E$5{async request(e){let t=J$9(e,e.webFetchExtra),i=z$9(e.params,e.shouldEncodeUrlParams),s=i?`${e.url}?${i}`:e.url,n=await fetch(s,t),o=n.headers.get("content-type")||"",{responseType:l="text"}=n.ok?e:{};o.includes("application/json")&&(l="json");let u,g;switch(l){case "arraybuffer":case "blob":g=await n.blob(),u=await V$6(g);break;case "json":u=await n.json();break;default:u=await n.text();}let k={};return n.headers.forEach((a,c)=>{k[c]=a;}),{data:u,headers:k,status:n.status,url:n.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}};T$4("CapacitorHttp",{web:()=>new D$9});var Q$4=(function(r){return r.Dark="DARK",r.Light="LIGHT",r.Default="DEFAULT",r})(Q$4||{}),X$5=(function(r){return r.StatusBar="StatusBar",r.NavigationBar="NavigationBar",r})(X$5||{}),S$5=class S extends E$5{async setStyle(){this.unavailable("not available for web");}async setAnimation(){this.unavailable("not available for web");}async show(){this.unavailable("not available for web");}async hide(){this.unavailable("not available for web");}},N$2=T$4("SystemBars",{web:()=>new S$5});var r$7=T$4("Preferences",{web:()=>import('./chunk-DXwpWYFU.js').then(t=>new t.PreferencesWeb)});var n$7=T$4("SecureStoragePlugin",{web:()=>import('./chunk-DTFndGHD.js').then(t=>new t.SecureStoragePluginWeb)});var i$4="genericClientOtpAuthorized",c$8="genericClientSchoolList",s$5="genericClientOtpLoginToken",w$4=(()=>{class t{async hasOtpAuthorization(){return (await r$7.get({key:i$4})).value==="true"}async storeOtpAuthorization(e,a){await r$7.set({key:i$4,value:"true"}),await this.storeSchoolList(e),await n$7.set({key:s$5,value:a});}async storeSchoolList(e){await r$7.set({key:c$8,value:JSON.stringify(e)});}async getStoredSchools(){let e=await r$7.get({key:c$8});if(!e.value)return null;try{return JSON.parse(e.value)}catch{return null}}async clearOtpAuthorization(){await r$7.remove({key:i$4}),await r$7.remove({key:c$8});try{await n$7.remove({key:s$5});}catch{}}async getOtpLoginToken(){try{let{value:e}=await n$7.get({key:s$5});return e}catch{return null}}static{this.\u0275fac=function(a){return new(a||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Ft$3=x$o((q,Se)=>
1253{(function(e,r){typeof q=="object"&&typeof Se=="object"?Se.exports=r():typeof define=="function"&&define.amd?define([],r):typeof q=="object"?q.bowser=r():e.bowser=r();})(q,function(){return (function(e){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=r,i.d=function(a,s,u){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:u});},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0});},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var d in a)i.d(u,d,function(t){return a[t]}.bind(null,d));return u},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=90)})({17:function(e,r,i){"use strict";r.__esModule=!0,r.default=void 0;var a=i(18),s=(function(){function u(){}return u.getFirstMatch=function(d,t){var n=t.match(d);return n&&n.length>0&&n[1]||""},u.getSecondMatch=function(d,t){var n=t.match(d);return n&&n.length>1&&n[2]||""},u.matchAndReturnConst=function(d,t,n){if(d.test(t))return n},u.getWindowsVersionName=function(d){switch(d){case "NT":return "NT";case "XP":return "XP";case "NT 5.0":return "2000";case "NT 5.1":return "XP";case "NT 5.2":return "2003";case "NT 6.0":return "Vista";case "NT 6.1":return "7";case "NT 6.2":return "8";case "NT 6.3":return "8.1";case "NT 10.0":return "10";default:return}},u.getMacOSVersionName=function(d){var t=d.split(".").splice(0,2).map(function(n){return parseInt(n,10)||0});if(t.push(0),t[0]===10)switch(t[1]){case 5:return "Leopard";case 6:return "Snow Leopard";case 7:return "Lion";case 8:return "Mountain Lion";case 9:return "Mavericks";case 10:return "Yosemite";case 11:return "El Capitan";case 12:return "Sierra";case 13:return "High Sierra";case 14:return "Mojave";case 15:return "Catalina";default:return}},u.getAndroidVersionName=function(d){var t=d.split(".").splice(0,2).map(function(n){return parseInt(n,10)||0});if(t.push(0),!(t[0]===1&&t[1]<5))return t[0]===1&&t[1]<6?"Cupcake":t[0]===1&&t[1]>=6?"Donut":t[0]===2&&t[1]<2?"Eclair":t[0]===2&&t[1]===2?"Froyo":t[0]===2&&t[1]>2?"Gingerbread":t[0]===3?"Honeycomb":t[0]===4&&t[1]<1?"Ice Cream Sandwich":t[0]===4&&t[1]<4?"Jelly Bean":t[0]===4&&t[1]>=4?"KitKat":t[0]===5?"Lollipop":t[0]===6?"Marshmallow":t[0]===7?"Nougat":t[0]===8?"Oreo":t[0]===9?"Pie":void 0},u.getVersionPrecision=function(d){return d.split(".").length},u.compareVersions=function(d,t,n){n===void 0&&(n=!1);var o=u.getVersionPrecision(d),l=u.getVersionPrecision(t),c=Math.max(o,l),f=0,v=u.map([d,t],function(m){var h=c-u.getVersionPrecision(m),y=m+new Array(h+1).join(".0");return u.map(y.split("."),function(p){return new Array(20-p.length).join("0")+p}).reverse()});for(n&&(f=c-Math.min(o,l)),c-=1;c>=f;){if(v[0][c]>v[1][c])return 1;if(v[0][c]===v[1][c]){if(c===f)return 0;c-=1;}else if(v[0][c]<v[1][c])return -1}},u.map=function(d,t){var n,o=[];if(Array.prototype.map)return Array.prototype.map.call(d,t);for(n=0;n<d.length;n+=1)o.push(t(d[n]));return o},u.find=function(d,t){var n,o;if(Array.prototype.find)return Array.prototype.find.call(d,t);for(n=0,o=d.length;n<o;n+=1){var l=d[n];if(t(l,n))return l}},u.assign=function(d){for(var t,n,o=d,l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];if(Object.assign)return Object.assign.apply(Object,[d].concat(c));var v=function(){var m=c[t];typeof m=="object"&&m!==null&&Object.keys(m).forEach(function(h){o[h]=m[h];});};for(t=0,n=c.length;t<n;t+=1)v();return d},u.getBrowserAlias=function(d){return a.BROWSER_ALIASES_MAP[d]},u.getBrowserTypeByAlias=function(d){return a.BROWSER_MAP[d]||""},u})();r.default=s,e.exports=r.default;},18:function(e,r,i){"use strict";r.__esModule=!0,r.ENGINE_MAP=r.OS_MAP=r.PLATFORMS_MAP=r.BROWSER_MAP=r.BROWSER_ALIASES_MAP=void 0,r.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},r.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},r.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},r.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},r.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};},90:function(e,r,i){"use strict";r.__esModule=!0,r.default=void 0;var a,s=(a=i(91))&&a.__esModule?a:{default:a},u=i(18);function d(n,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,c.key,c);}}var t=(function(){function n(){}var o,l,c;return n.getParser=function(f,v){if(v===void 0&&(v=!1),typeof f!="string")throw new Error("UserAgent should be a string");return new s.default(f,v)},n.parse=function(f){return new s.default(f).getResult()}
1253,o=n,c=[{key:"BROWSER_MAP",get:function(){return u.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return u.ENGINE_MAP}},{key:"OS_MAP",get:function(){return u.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return u.PLATFORMS_MAP}}],(l=null)&&d(o.prototype,l),c&&d(o,c),n})();r.default=t,e.exports=r.default;},91:function(e,r,i){"use strict";r.__esModule=!0,r.default=void 0;var a=n(i(92)),s=n(i(93)),u=n(i(94)),d=n(i(95)),t=n(i(17));function n(l){return l&&l.__esModule?l:{default:l}}var o=(function(){function l(f,v){if(v===void 0&&(v=!1),f==null||f==="")throw new Error("UserAgent parameter can't be empty");this._ua=f,this.parsedResult={},v!==!0&&this.parse();}var c=l.prototype;return c.getUA=function(){return this._ua},c.test=function(f){return f.test(this._ua)},c.parseBrowser=function(){var f=this;this.parsedResult.browser={};var v=t.default.find(a.default,function(m){if(typeof m.test=="function")return m.test(f);if(m.test instanceof Array)return m.test.some(function(h){return f.test(h)});throw new Error("Browser's test function is not valid")});return v&&(this.parsedResult.browser=v.describe(this.getUA())),this.parsedResult.browser},c.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},c.getBrowserName=function(f){return f?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},c.getBrowserVersion=function(){return this.getBrowser().version},c.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},c.parseOS=function(){var f=this;this.parsedResult.os={};var v=t.default.find(s.default,function(m){if(typeof m.test=="function")return m.test(f);if(m.test instanceof Array)return m.test.some(function(h){return f.test(h)});throw new Error("Browser's test function is not valid")});return v&&(this.parsedResult.os=v.describe(this.getUA())),this.parsedResult.os},c.getOSName=function(f){var v=this.getOS().name;return f?String(v).toLowerCase()||"":v||""},c.getOSVersion=function(){return this.getOS().version},c.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},c.getPlatformType=function(f){f===void 0&&(f=!1);var v=this.getPlatform().type;return f?String(v).toLowerCase()||"":v||""},c.parsePlatform=function(){var f=this;this.parsedResult.platform={};var v=t.default.find(u.default,function(m){if(typeof m.test=="function")return m.test(f);if(m.test instanceof Array)return m.test.some(function(h){return f.test(h)});throw new Error("Browser's test function is not valid")});return v&&(this.parsedResult.platform=v.describe(this.getUA())),this.parsedResult.platform},c.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},c.getEngineName=function(f){return f?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},c.parseEngine=function(){var f=this;this.parsedResult.engine={};var v=t.default.find(d.default,function(m){if(typeof m.test=="function")return m.test(f);if(m.test instanceof Array)return m.test.some(function(h){return f.test(h)});throw new Error("Browser's test function is not valid")});return v&&(this.parsedResult.engine=v.describe(this.getUA())),this.parsedResult.engine},c.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},c.getResult=function(){return t.default.assign({},this.parsedResult)},c.satisfies=function(f){var v=this,m={},h=0,y={},p=0;if(Object.keys(f).forEach(function(_){var G=f[_];typeof G=="string"?(y[_]=G,p+=1):typeof G=="object"&&(m[_]=G,h+=1);}),h>0){var S=Object.keys(m),M=t.default.find(S,function(_){return v.isOS(_)});if(M){var A=this.satisfies(m[M]);if(A!==void 0)return A}var V=t.default.find(S,function(_){return v.isPlatform(_)});if(V){var R=this.satisfies(m[V]);if(R!==void 0)return R}}if(p>0){var N=Object.keys(y),g=t.default.find(N,function(_){return v.isBrowser(_,!0)});if(g!==void 0)return this.compareVersion(y[g])}},c.isBrowser=function(f,v){v===void 0&&(v=!1);var m=this.getBrowserName().toLowerCase(),h=f.toLowerCase(),y=t.default.getBrowserTypeByAlias(h);return v&&y&&(h=y.toLowerCase()),h===m},c.compareVersion=function(f){var v=[0],m=f,h=!1,y=this.getBrowserVersion();if(typeof y=="string")return f[0]===">"||f[0]==="<"?(m=f.substr(1),f[1]==="="?(h=!0,m=f.substr(2)):v=[],f[0]===">"?v.push(1):v.push(-1)):f[0]==="="?m=f.substr(1):f[0]==="~"&&(h=!0,m=f.substr(1)),v.indexOf(t.default.compareVersions(y,m,h))>-1},c.isOS=function(f){return this.getOSName(!0)===String(f).toLowerCase()},c.isPlatform=function(f){return this.getPlatformType(!0)===String(f).toLowerCase()},c.isEngine=function(f){return this.getEngineName(!0)===String(f).toLowerCase()},c.is=function(f,v){return v===void 0&&(v=!1),this.isBrowser(f,v)||this.isOS(f)||this.isPlatform(f)},c.some=function(f){var v=this;return f===void 0&&(f=[]),f.some(function(m){return v.is(m)})},l})();r.default=o,e.exports=r.default;},92:function(e,r,i){"use strict";r.__esModule=!0,r.default=void 0;var a,s=(a=i(17))&&a.__esModule?a:{default:a},u=/version\/(\d+(\.?_?\d+)+)/i,d=[{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},o=s.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},o=s.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},o=s.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},o=s.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},o=s.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},o=s.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},o=s.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"}
vendor: 7,829 bytes, line 1253
1253,o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},o=s.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},o=s.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},o=s.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},o=s.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/edg([ea]|ios)/i],describe:function(t){var n={name:"Microsoft Edge"},o=s.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/vivaldi/i],describe:function(t){var n={name:"Vivaldi"},o=s.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},o=s.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},o=s.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return o&&(n.version=o),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},o=s.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},o=s.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},o=s.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},o=s.default.getFirstMatch(u,t)||s.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},o=s.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},o=s.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},o=s.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},o=s.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},o=s.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},o=s.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},o=s.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},o=s.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},o=s.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:function(t){var n=!t.test(/like android/i),o=t.test(/android/i);return n&&o},describe:function(t){var n={name:"Android Browser"},o=s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},o=s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},o=s.default.getFirstMatch(u,t);return o&&(n.version=o),n}},{test:[/.*/i],describe:function(t){var n=t.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return {name:s.default.getFirstMatch(n,t),version:s.default.getSecondMatch(n,t)}}}];r.default=d,e.exports=r.default;},93:function(e,r,i){"use strict";r.__esModule=!0,r.default=void 0;var a,s=(a=i(17))&&a.__esModule?a:{default:a},u=i(18),d=[{test:[/Roku\/DVP/],describe:function(t){var n=s.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return {name:u.OS_MAP.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=s.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return {name:u.OS_MAP.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=s.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),o=s.default.getWindowsVersionName(n);return {name:u.OS_MAP.Windows,version:n,versionName:o}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var n={name:u.OS_MAP.iOS},o=s.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return o&&(n.version=o),n}},{test:[/macintosh/i],describe:function(t){var n=s.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),o=s.default.getMacOSVersionName(n),l={name:u.OS_MAP.MacOS,version:n};return o&&(l.versionName=o),l}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=s.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return {name:u.OS_MAP.iOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),o=t.test(/android/i);return n&&o},describe:function(t){var n=s.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),o=s.default.getAndroidVersionName(n),l={name:u.OS_MAP.Android,version:n};return o&&(l.versionName=o),l}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=s.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),o={name:u.OS_MAP.WebOS};return n&&n.length&&(o.version=n),o}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=s.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||s.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||s.default.getFirstMatch(/\bbb(\d+)/i,t);return {name:u.OS_MAP.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=s.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return {name:u.OS_MAP.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=s.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return {name:u.OS_MAP.Tizen,version:n}}},{test:[/linux/i],describe:function(){return {name:u.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return {name:u.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=s.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);
1253return {name:u.OS_MAP.PlayStation4,version:n}}}];r.default=d,e.exports=r.default;},94:function(e,r,i){"use strict";r.__esModule=!0,r.default=void 0;var a,s=(a=i(17))&&a.__esModule?a:{default:a},u=i(18),d=[{test:[/googlebot/i],describe:function(){return {type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var n=s.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",o={type:u.PLATFORMS_MAP.mobile,vendor:"Huawei"};return n&&(o.model=n),o}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return {type:u.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return {type:u.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return {type:u.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return {type:u.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return {type:u.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return {type:u.PLATFORMS_MAP.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),o=t.test(/like (ipod|iphone)/i);return n&&!o},describe:function(t){var n=s.default.getFirstMatch(/(ipod|iphone)/i,t);return {type:u.PLATFORMS_MAP.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return {type:u.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return {type:u.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName(!0)==="blackberry"},describe:function(){return {type:u.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return t.getBrowserName(!0)==="bada"},describe:function(){return {type:u.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName()==="windows phone"},describe:function(){return {type:u.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}}
1253,{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&n>=3},describe:function(){return {type:u.PLATFORMS_MAP.tablet}}},{test:function(t){return t.getOSName(!0)==="android"},describe:function(){return {type:u.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getOSName(!0)==="macos"},describe:function(){return {type:u.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return t.getOSName(!0)==="windows"},describe:function(){return {type:u.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="linux"},describe:function(){return {type:u.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="playstation 4"},describe:function(){return {type:u.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="roku"},describe:function(){return {type:u.PLATFORMS_MAP.tv}}}];r.default=d,e.exports=r.default;},95:function(e,r,i){"use strict";r.__esModule=!0,r.default=void 0;var a,s=(a=i(17))&&a.__esModule?a:{default:a},u=i(18),d=[{test:function(t){return t.getBrowserName(!0)==="microsoft edge"},describe:function(t){if(/\sedg\//i.test(t))return {name:u.ENGINE_MAP.Blink};var n=s.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return {name:u.ENGINE_MAP.EdgeHTML,version:n}}},{test:[/trident/i],describe:function(t){var n={name:u.ENGINE_MAP.Trident},o=s.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:u.ENGINE_MAP.Presto},o=s.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:function(t){var n=t.test(/gecko/i),o=t.test(/like gecko/i);return n&&!o},describe:function(t){var n={name:u.ENGINE_MAP.Gecko},o=s.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return {name:u.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:u.ENGINE_MAP.WebKit},o=s.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return o&&(n.version=o),n}}];r.default=d,e.exports=r.default;}})});});var Ue$2="capacitor_device_id",Xn$3=(()=>{class e{constructor(){this._logger=g$k($E),this._stableDeviceIdPromise=null;}async getStableDeviceId(){return this._stableDeviceIdPromise??=this._loadStableDeviceId(),this._stableDeviceIdPromise}async _loadStableDeviceId(){if(!U$5.isNativePlatform())return null;try{let a=await r$7.get({key:Ue$2});if(a.value)return a.value}catch(a){this._logger.warn("Failed to read stable device id from Preferences",{error:a});}let i=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`cap-${Date.now()}-${Math.random().toString(36).slice(2,12)}`;try{await r$7.set({key:Ue$2,value:i});}catch(a){this._logger.warn("Failed to persist stable device id",{error:a});}return i}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var le$3="mspot_preview",Je$2=(()=>{class e{constructor(){this._auth=g$k(nt$c),this._isPreviewSession=On$7(sessionStorage.getItem(le$3)==="1"),this.isPreviewSession=this._isPreviewSession.asReadonly();}markAsPreview(){sessionStorage.setItem(le$3,"1"),this._isPreviewSession.set(true);}clearPreview(){sessionStorage.removeItem(le$3),this._isPreviewSession.set(false);}doubleLogin(){window.location.href="/double-login";}async signOut(){try{await this._auth.signOut();}finally{this.clearPreview(),s$6();}}async checkToken(i,a,s=false){return a&&(this._auth.tenantId=a),s&&await sa$3(this._auth,Pn$8),await Vo$5(this._auth,i)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ct$3="4.6.2";function se$5(e,r){return new Promise(function(i){return setTimeout(i,e,r)})}function Rt$5(){return new Promise(function(e){var r=new MessageChannel;r.port1.onmessage=function(){return e()},r.port2.postMessage(null);})}function It$5(e,r){r===void 0&&(r=1/0);var i=window.requestIdleCallback;return i?new Promise(function(a){return i.call(window,function(){return a()},{timeout:r})}):se$5(Math.min(e,r))}function dt$3(e){return !!e&&typeof e.then=="function"}function Qe$3(e,r){try{var i=e();dt$3(i)?i.then(function(a){return r(!0,a)},function(a){return r(!1,a)}):r(!0,i);}catch(a){r(false,a);}}function Ke$2(e,r,i){return i===void 0&&(i=16),Ff$1(this,void 0,void 0,function(){var a,s,u,d;return L0(this,function(t){switch(t.label){case 0:a=Array(e.length),s=Date.now(),u=0,t.label=1;case 1:return u<e.length?(a[u]=r(e[u],u),d=Date.now(),d>=s+i?(s=d,[4,Rt$5()]):[3,3]):[3,4];case 2:t.sent(),t.label=3;case 3:return ++u,[3,1];case 4:return [2,a]}})})}function U$4(e){return e.then(void 0,function(){}),e}function Et$5(e,r){for(var i=0,a=e.length;i<a;++i)if(e[i]===r)return true;return false}function Ct$7(e,r){return !Et$5(e,r)}function be$4(e){return parseInt(e)}function C$1(e){return parseFloat(e)}function W$8(e,r){return typeof e=="number"&&isNaN(e)?r:e}function k$6(e){return e.reduce(function(r,i){return r+(i?1:0)},0)}function ft$5(e,r){if(r===void 0&&(r=1),Math.abs(r)>=1)return Math.round(e/r)*r;var i=1/r;return Math.round(e*i)/i}function Ot$3(e){for(var r,i,a="Unexpected syntax '".concat(e,"'"),s=/^\s*([a-z-]*)(.*)$/i.exec(e),u=s[1]||void 0,d={},t=/([.:#][\w-]+|\[.+?\])/gi,n=function(f,v){d[f]=d[f]||[],d[f].push(v);};;){var o=t.exec(s[2]);if(!o)break;var l=o[0];switch(l[0]){case ".":n("class",l.slice(1));break;case "#":n("id",l.slice(1));break;
1253case "[":{var c=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(c)n(c[1],(i=(r=c[4])!==null&&r!==void 0?r:c[5])!==null&&i!==void 0?i:"");else throw new Error(a);break}default:throw new Error(a)}}return [u,d]}function Vt$2(e){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a>127)return new TextEncoder().encode(e);r[i]=a;}return r}function B$9(e,r){var i=e[0]>>>16,a=e[0]&65535,s=e[1]>>>16,u=e[1]&65535,d=r[0]>>>16,t=r[0]&65535,n=r[1]>>>16,o=r[1]&65535,l=0,c=0,f=0,v=0;v+=u+o,f+=v>>>16,v&=65535,f+=s+n,c+=f>>>16,f&=65535,c+=a+t,l+=c>>>16,c&=65535,l+=i+d,l&=65535,e[0]=l<<16|c,e[1]=f<<16|v;}function x$4(e,r){var i=e[0]>>>16,a=e[0]&65535,s=e[1]>>>16,u=e[1]&65535,d=r[0]>>>16,t=r[0]&65535,n=r[1]>>>16,o=r[1]&65535,l=0,c=0,f=0,v=0;v+=u*o,f+=v>>>16,v&=65535,f+=s*o,c+=f>>>16,f&=65535,f+=u*n,c+=f>>>16,f&=65535,c+=a*o,l+=c>>>16,c&=65535,c+=s*n,l+=c>>>16,c&=65535,c+=u*t,l+=c>>>16,c&=65535,l+=i*o+a*n+s*t+u*d,l&=65535,e[0]=l<<16|c,e[1]=f<<16|v;}function D$8(e,r){var i=e[0];r%=64,r===32?(e[0]=e[1],e[1]=i):r<32?(e[0]=i<<r|e[1]>>>32-r,e[1]=e[1]<<r|i>>>32-r):(r-=32,e[0]=e[1]<<r|i>>>32-r,e[1]=i<<r|e[1]>>>32-r);}function L$5(e,r){r%=64,r!==0&&(r<32?(e[0]=e[1]>>>32-r,e[1]=e[1]<<r):(e[0]=e[1]<<r-32,e[1]=0));}function w$3(e,r){e[0]^=r[0],e[1]^=r[1];}var Wt$4=[4283543511,3981806797],Nt$3=[3301882366,444984403];function qe$2(e){var r=[0,e[0]>>>1];w$3(e,r),x$4(e,Wt$4),r[1]=e[0]>>>1,w$3(e,r),x$4(e,Nt$3),r[1]=e[0]>>>1,w$3(e,r);}var ie$5=[2277735313,289559509],oe$4=[1291169091,658871167],$e$2=[0,5],Tt$5=[0,1390208809],Bt$3=[0,944331445];function Gt$2(e,r){var i=Vt$2(e);r=r||0;var a=[0,i.length],s=a[1]%16,u=a[1]-s,d=[0,r],t=[0,r],n=[0,0],o=[0,0],l;for(l=0;l<u;l=l+16)n[0]=i[l+4]|i[l+5]<<8|i[l+6]<<16|i[l+7]<<24,n[1]=i[l]|i[l+1]<<8|i[l+2]<<16|i[l+3]<<24,o[0]=i[l+12]|i[l+13]<<8|i[l+14]<<16|i[l+15]<<24,o[1]=i[l+8]|i[l+9]<<8|i[l+10]<<16|i[l+11]<<24,x$4(n,ie$5),D$8(n,31),x$4(n,oe$4),w$3(d,n),D$8(d,27),B$9(d,t),x$4(d,$e$2),B$9(d,Tt$5),x$4(o,oe$4),D$8(o,33),x$4(o,ie$5),w$3(t,o),D$8(t,31),B$9(t,d),x$4(t,$e$2),B$9(t,Bt$3);n[0]=0,n[1]=0,o[0]=0,o[1]=0;var c=[0,0];switch(s){case 15:c[1]=i[l+14],L$5(c,48),w$3(o,c);case 14:c[1]=i[l+13],L$5(c,40),w$3(o,c);case 13:c[1]=i[l+12],L$5(c,32),w$3(o,c);case 12:c[1]=i[l+11],L$5(c,24),w$3(o,c);case 11:c[1]=i[l+10],L$5(c,16),w$3(o,c);case 10:c[1]=i[l+9],L$5(c,8),w$3(o,c);case 9:c[1]=i[l+8],w$3(o,c),x$4(o,oe$4),D$8(o,33),x$4(o,ie$5),w$3(t,o);case 8:c[1]=i[l+7],L$5(c,56),w$3(n,c);case 7:c[1]=i[l+6],L$5(c,48),w$3(n,c);case 6:c[1]=i[l+5],L$5(c,40),w$3(n,c);case 5:c[1]=i[l+4],L$5(c,32),w$3(n,c);case 4:c[1]=i[l+3],L$5(c,24),w$3(n,c);case 3:c[1]=i[l+2],L$5(c,16),w$3(n,c);case 2:c[1]=i[l+1],L$5(c,8),w$3(n,c);case 1:c[1]=i[l],w$3(n,c),x$4(n,ie$5),D$8(n,31),x$4(n,oe$4),w$3(d,n);}return w$3(d,a),w$3(t,a),B$9(d,t),B$9(t,d),qe$2(d),qe$2(t),B$9(d,t),B$9(t,d),("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(t[0]>>>0).toString(16)).slice(-8)+("00000000"+(t[1]>>>0).toString(16)).slice(-8)}function jt$3(e){var r;return Of$1({name:e.name,message:e.message,stack:(r=e.stack)===null||r===void 0?void 0:r.split(` 1254`)},e)}function Zt$3(e){return /^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Dt$4(e){return typeof e!="function"}function Yt$3(e,r){var i=U$4(new Promise(function(a){var s=Date.now();Qe$3(e.bind(null,r),function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var t=Date.now()-s;if(!u[0])return a(function(){return {error:u[1],duration:t}});var n=u[1];if(Dt$4(n))return a(function(){return {value:n,duration:t}});a(function(){return new Promise(function(o){var l=Date.now();Qe$3(n,function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var v=t+Date.now()-l;if(!c[0])return o({error:c[1],duration:v});o({value:c[1],duration:v});});})});});}));return function(){return i.then(function(s){return s()})}}function zt$3(e,r,i,a){var s=Object.keys(e).filter(function(d){return Ct$7(i,d)}),u=U$4(Ke$2(s,function(d){return Yt$3(e[d],r)},a));return function(){return Ff$1(this,void 0,void 0,function(){var t,n,o,l,c;return L0(this,function(f){switch(f.label){case 0:return [4,u];case 1:return t=f.sent(),[4,Ke$2(t,function(v){return U$4(v())},a)];case 2:return n=f.sent(),[4,Promise.all(n)];case 3:for(o=f.sent(),l={},c=0;c<s.length;++c)l[s[c]]=o[c];return [2,l]}})})}}function lt$5(){var e=window,r=navigator;return k$6(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in r,"msPointerEnabled"in r])>=4}function Xt$3(){var e=window,r=navigator;return k$6(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in r,"msSaveBlob"in r])>=3&&!lt$5()}function J$8(){var e=window,r=navigator;return k$6(["webkitPersistentStorage"in r,"webkitTemporaryStorage"in r,(r.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>
1254=5}function O$5(){var e=window,r=navigator;return k$6(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,r.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function ye$5(){var e=window,r=e.HTMLElement,i=e.Document;return k$6(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),r&&!("autocapitalize"in r.prototype),i&&"pointerLockElement"in i.prototype])>=4}function Q$3(){var e=window;return Zt$3(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function vt$4(){var e,r,i=window;return k$6(["buildID"in navigator,"MozAppearance"in((r=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&r!==void 0?r:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4}function Ht$4(){var e=window;return k$6([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Ut$3(){var e=window,r=e.URLPattern;return k$6(["union"in Set.prototype,"Iterator"in e,r&&"hasRegExpGroups"in r.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Jt$3(){var e=window;return k$6(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function K$8(){var e=window,r=navigator,i=e.CSS,a=e.HTMLButtonElement;return k$6([!("getStorageUpdates"in r),a&&"popover"in a.prototype,"CSSCounterStyleRule"in e,i.supports("font-size-adjust: ex-height 0.5"),i.supports("text-transform: full-width")])>=4}function Qt$4(){if(navigator.platform==="iPad")return true;var e=screen,r=e.width/e.height;return k$6(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,r>.65&&r<1.53])>=2}function Kt$3(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function qt$2(){var e=document;return (e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function we$4(){var e=J$8(),r=vt$4(),i=window,a=navigator,s="connection";return e?k$6([!("SharedWorker"in i),a[s]&&"ontypechange"in a[s],!("sinkId"in new Audio)])>=2:r?k$6(["onorientationchange"in i,"orientation"in i,/android/i.test(a.appVersion)])>=2:false}function $t$4(){var e=navigator,r=window,i=Audio.prototype,a=r.visualViewport;return k$6(["srLatency"in i,"srChannelCount"in i,"devicePosture"in e,a&&"segments"in a,"getTextInformation"in Image.prototype])>=3}function er$4(){return nr$4()?-4:tr$4()}function tr$4(){var e=window,r=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!r)return -2;if(rr$5())return -1;var i=4500,a=5e3,s=new r(1,a,44100),u=s.createOscillator();u.type="triangle",u.frequency.value=1e4;var d=s.createDynamicsCompressor();d.threshold.value=-50,d.knee.value=40,d.ratio.value=12,d.attack.value=0,d.release.value=.25,u.connect(d),d.connect(s.destination),u.start(0);var t=ir$5(s),n=t[0],o=t[1],l=U$4(n.then(function(c){return or$3(c.getChannelData(0).subarray(i))},function(c){if(c.name==="timeout"||c.name==="suspended")return -3;throw c}));return function(){return o(),l}}function rr$5(){return O$5()&&!ye$5()&&!Jt$3()}function nr$4(){return O$5()&&K$8()&&Q$3()||J$8()&&$t$4()&&Ut$3()}function ir$5(e){var r=3,i=500,a=500,s=5e3,u=function(){},d=new Promise(function(t,n){var o=false,l=0,c=0;e.oncomplete=function(m){return t(m.renderedBuffer)};var f=function(){setTimeout(function(){return n(et$6("timeout"))},Math.min(a,c+s-Date.now()));},v=function(){try{var m=e.startRendering();switch(dt$3(m)&&U$4(m),e.state){case "running":c=Date.now(),o&&f();break;case "suspended":document.hidden||l++,o&&l>=r?n(et$6("suspended")):setTimeout(v,i);break}}catch(h){n(h);}};v(),u=function(){o||(o=true,c>0&&f());};});return [d,u]}function or$3(e){for(var r=0,i=0;i<e.length;++i)r+=Math.abs(e[i]);return r}function et$6(e){var r=new Error(e);return r.name=e,r}function mt$5(e,r,i){var a,s,u;return i===void 0&&(i=50),Ff$1(this,void 0,void 0,function(){var d,t;return L0(this,function(n){switch(n.label){case 0:d=document,n.label=1;case 1:return d.body?[3,3]:[4,se$5(i)];case 2:return n.sent(),[3,1];case 3:t=d.createElement("iframe"),n.label=4;case 4:return n.trys.push([4,,10,11]),[4,new Promise(function(o,l){var c=false,f=function(){c=true,o();},v=function(y){c=true,l(y);};t.onload=f,t.onerror=v;var m=t.style;m.setProperty("display","block","important"),m.position="absolute",m.top="0",m.left="0",m.visibility="hidden",r&&"srcdoc"in t?t.srcdoc=r:t.src="about:blank",d.body.appendChild(t);var h=function(){var y,p;c||(((p=(y=t.contentWindow)===null||y===void 0?void 0:y.document)===null||p===void 0?void 0:p.readyState)==="complete"?f():setTimeout(h,10));};h();})];case 5:n.sent(),n.label=6;case 6:return !((s=(a=t.contentWindow)===null||a===void 0?void 0:a.document)===null||s===void 0)&&s.body?[3,8]:[4,se$5(i)];case 7:return n.sent(),[3,6];case 8:return [4,e(t,t.contentWindow)];case 9:return [2,n.sent()];case 10:return (u=t.parentNode)===null||u===void 0||u.removeChild(t),[7];case 11:return [2]}})})}function ar$3(e){for(var r=Ot$3(e),i=r[0],a=r[1],s=document.createElement(i??"div"),u=0,d=Object.keys(a);
1254u<d.length;u++){var t=d[u],n=a[t].join(" ");t==="style"?sr$4(s.style,n):s.setAttribute(t,n);}return s}function sr$4(e,r){for(var i=0,a=r.split(";");i<a.length;i++){var s=a[i],u=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(s);if(u){var d=u[1],t=u[2],n=u[4];e.setProperty(d,t,n||"");}}}function ur$4(){for(var e=window;;){var r=e.parent;if(!r||r===e)return false;try{if(r.location.origin!==e.location.origin)return !0}catch(i){if(i instanceof Error&&i.name==="SecurityError")return true;throw i}e=r;}}var cr$4="mmMwWLliI0O&1",dr$4="48px",Y$9=["monospace","sans-serif","serif"],tt$5=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function fr$4(){var e=this;return mt$5(function(r,i){var a=i.document;return Ff$1(e,void 0,void 0,function(){var s,u,d,t,n,o,l,c,f,v,m,h;return L0(this,function(y){for(s=a.body,s.style.fontSize=dr$4,u=a.createElement("div"),u.style.setProperty("visibility","hidden","important"),d={},t={},n=function(p){var S=a.createElement("span"),M=S.style;return M.position="absolute",M.top="0",M.left="0",M.fontFamily=p,S.textContent=cr$4,u.appendChild(S),S},o=function(p,S){return n("'".concat(p,"',").concat(S))},l=function(){return Y$9.map(n)},c=function(){for(var p={},S=function(R){p[R]=Y$9.map(function(N){return o(R,N)});},M=0,A=tt$5;M<A.length;M++){var V=A[M];S(V);}return p},f=function(p){return Y$9.some(function(S,M){return p[M].offsetWidth!==d[S]||p[M].offsetHeight!==t[S]})},v=l(),m=c(),s.appendChild(u),h=0;h<Y$9.length;h++)d[Y$9[h]]=v[h].offsetWidth,t[Y$9[h]]=v[h].offsetHeight;return [2,tt$5.filter(function(p){return f(m[p])})]})})})}function lr$4(){var e=navigator.plugins;if(e){for(var r=[],i=0;i<e.length;++i){var a=e[i];if(a){for(var s=[],u=0;u<a.length;++u){var d=a[u];s.push({type:d.type,suffixes:d.suffixes});}r.push({name:a.name,description:a.description,mimeTypes:s});}}return r}}function vr$4(){return mr$4(Sr$4())}function mr$4(e){var r,i=false,a,s,u=hr$4(),d=u[0],t=u[1];return pr$4(d,t)?(i=gr$5(t),e?a=s="skipped":(r=br$4(d,t),a=r[0],s=r[1])):a=s="unsupported",{winding:i,geometry:a,text:s}}function hr$4(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function pr$4(e,r){return !!(r&&e.toDataURL)}function gr$5(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function br$4(e,r){yr$4(e,r);var i=ve$4(e),a=ve$4(e);if(i!==a)return ["unstable","unstable"];wr$3(e,r);var s=ve$4(e);return [s,i]}function yr$4(e,r){e.width=240,e.height=60,r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(100,1,62,20),r.fillStyle="#069",r.font='11pt "Times New Roman"';var i="Cwm fjordbank gly ".concat("\u{1F603}");r.fillText(i,2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText(i,4,45);}function wr$3(e,r){e.width=122,e.height=110,r.globalCompositeOperation="multiply";for(var i=0,a=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];i<a.length;i++){var s=a[i],u=s[0],d=s[1],t=s[2];r.fillStyle=u,r.beginPath(),r.arc(d,t,40,0,Math.PI*2,true),r.closePath(),r.fill();}r.fillStyle="#f9c",r.arc(60,60,60,0,Math.PI*2,true),r.arc(60,60,20,0,Math.PI*2,true),r.fill("evenodd");}function ve$4(e){return e.toDataURL()}function Sr$4(){return O$5()&&K$8()&&Q$3()}function Mr$4(){var e=navigator,r=0,i;e.maxTouchPoints!==void 0?r=be$4(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(r=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),i=!0;}catch{i=false;}var a="ontouchstart"in window;return {maxTouchPoints:r,touchEvent:i,touchStart:a}}function Pr$3(){return navigator.oscpu}function Fr$3(){var e=navigator,r=[],i=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;
1254if(i!==void 0&&r.push([i]),Array.isArray(e.languages))J$8()&&Ht$4()||r.push(e.languages);else if(typeof e.languages=="string"){var a=e.languages;a&&r.push(a.split(","));}return r}function kr$3(){return window.screen.colorDepth}function Lr$3(){return W$8(C$1(navigator.deviceMemory),void 0)}function Ar$4(){if(!(O$5()&&K$8()&&Q$3()))return _r$4()}function _r$4(){var e=screen,r=function(a){return W$8(be$4(a),null)},i=[r(e.width),r(e.height)];return i.sort().reverse(),i}var xr$4=2500,Rr$3=10,ae$3,me$4;function Ir$3(){if(me$4===void 0){var e=function(){var r=pe$4();ge$2(r)?me$4=setTimeout(e,xr$4):(ae$3=r,me$4=void 0);};e();}}function Er$4(){var e=this;return Ir$3(),function(){return Ff$1(e,void 0,void 0,function(){var r;return L0(this,function(i){switch(i.label){case 0:return r=pe$4(),ge$2(r)?ae$3?[2,P0([],ae$3)]:Kt$3()?[4,qt$2()]:[3,2]:[3,2];case 1:i.sent(),r=pe$4(),i.label=2;case 2:return ge$2(r)||(ae$3=r),[2,r]}})})}}function Cr$4(){var e=this;if(O$5()&&K$8()&&Q$3())return function(){return Promise.resolve(void 0)};var r=Er$4();return function(){return Ff$1(e,void 0,void 0,function(){var i,a;return L0(this,function(s){switch(s.label){case 0:return [4,r()];case 1:return i=s.sent(),a=function(u){return u===null?null:ft$5(u,Rr$3)},[2,[a(i[0]),a(i[1]),a(i[2]),a(i[3])]]}})})}}function pe$4(){var e=screen;return [W$8(C$1(e.availTop),null),W$8(C$1(e.width)-C$1(e.availWidth)-W$8(C$1(e.availLeft),0),null),W$8(C$1(e.height)-C$1(e.availHeight)-W$8(C$1(e.availTop),0),null),W$8(C$1(e.availLeft),null)]}function ge$2(e){for(var r=0;r<4;++r)if(e[r])return false;return true}function Or$3(){return W$8(be$4(navigator.hardwareConcurrency),void 0)}function Vr$4(){var e,r=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(r){var i=new r().resolvedOptions().timeZone;if(i)return i}var a=-Wr$3();return "UTC".concat(a>=0?"+":"").concat(a)}function Wr$3(){var e=new Date().getFullYear();return Math.max(C$1(new Date(e,0,1).getTimezoneOffset()),C$1(new Date(e,6,1).getTimezoneOffset()))}function Nr$2(){try{return !!window.sessionStorage}catch{return true}}function Tr$4(){try{return !!window.localStorage}catch{return true}}function Br$3(){if(!(lt$5()||Xt$3()))try{return !!window.indexedDB}catch{return true}}function Gr$3(){return !!window.openDatabase}function jr$3(){return navigator.cpuClass}function Zr$3(){var e=navigator.platform;return e==="MacIntel"&&O$5()&&!ye$5()?Qt$4()?"iPad":"iPhone":e}function Dr$3(){return navigator.vendor||""}function Yr$3(){for(var e=[],r=0,i=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];r<i.length;r++){var a=i[r],s=window[a];s&&typeof s=="object"&&e.push(a);}return e.sort()}function zr$4(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var r=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",r}catch{return false}}function Xr$3(){var e=atob;return {abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-
1254portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiX
1254Q=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Hr$3(e){var r=e===void 0?{}:e,i=r.debug;return Ff$1(this,void 0,void 0,function(){var a,s,u,d,t,n;return L0(this,function(o){switch(o.label){case 0:return Ur$2()?(a=Xr$3(),s=Object.keys(a),u=(n=[]).concat.apply(n,s.map(function(l){return a[l]})),[4,Jr$3(u)]):[2,void 0];case 1:return d=o.sent(),i&&Qr$3(a,d),t=s.filter(function(l){var c=a[l],f=k$6(c.map(function(v){return d[v]}));return f>c.length*.6}),t.sort(),[2,t]}})})}function Ur$2(){return O$5()||we$4()}function Jr$3(e){var r;return Ff$1(this,void 0,void 0,function(){var i,a,s,u,n,d,t,n;return L0(this,function(o){switch(o.label){case 0:for(i=document,a=i.createElement("div"),s=new Array(e.length),u={},rt$5(a),n=0;n<e.length;++n)d=ar$3(e[n]),d.tagName==="DIALOG"&&d.show(),t=i.createElement("div"),rt$5(t),t.appendChild(d),a.appendChild(t),s[n]=d;o.label=1;case 1:return i.body?[3,3]:[4,se$5(50)];case 2:return o.sent(),[3,1];case 3:i.body.appendChild(a);try{for(n=0;n<e.length;++n)s[n].offsetParent||(u[e[n]]=!0);}finally{(r=a.parentNode)===null||r===void 0||r.removeChild(a);}return [2,u]}})})}function rt$5(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important");}function Qr$3(e,r){for(var i="DOM blockers debug:\n```",a=0,s=Object.keys(e);a<s.length;a++){var u=s[a];i+=` 1255`.concat(u,":");for(var d=0,t=e[u];d<t.length;d++){var n=t[d];i+=` 1256 `.concat(r[n]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(n);}}console.log("".concat(i,"\n```"));}function Kr$3(){for(var e=0,r=["rec2020","p3","srgb"];e<r.length;e++){var i=r[e];if(matchMedia("(color-gamut: ".concat(i,")")).matches)return i}}function qr$3(){if(nt$6("inverted"))return true;if(nt$6("none"))return false}function nt$6(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function $r$3(){if(it$5("active"))return true;if(it$5("none"))return false}function it$5(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var en$4=100;function tn$4(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=en$4;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function rn$4(){if(z$8("no-preference"))return 0;if(z$8("high")||z$8("more"))return 1;if(z$8("low")||z$8("less"))return -1;if(z$8("forced"))return 10}function z$8(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function nn$3(){if(ot$5("reduce"))return true;if(ot$5("no-preference"))return false}function ot$5(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function on$4(){if(at$7("reduce"))return true;if(at$7("no-preference"))return false}function at$7(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function an$2(){if(st$5("high"))return true;if(st$5("standard"))return false}function st$5(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var b$4=Math,F$6=function(){return 0};function sn$4(){var e=b$4.acos||F$6,r=b$4.acosh||F$6,i=b$4.asin||F$6,a=b$4.asinh||F$6,s=b$4.atanh||F$6,u=b$4.atan||F$6,d=b$4.sin||F$6,t=b$4.sinh||F$6,n=b$4.cos||F$6,o=b$4.cosh||F$6,l=b$4.tan||F$6,c=b$4.tanh||F$6,f=b$4.exp||F$6,v=b$4.expm1||F$6,m=b$4.log1p||F$6,h=function(g){return b$4.pow(b$4.PI,g)},y=function(g){return b$4.log(g+b$4.sqrt(g*g-1))},p=function(g){return b$4.log(g+b$4.sqrt(g*g+1))},S=function(g){return b$4.log((1+g)/(1-g))/2},M=function(g){return b$4.exp(g)-1/b$4.exp(g)/2},A=function(g){return (b$4.exp(g)+1/b$4.exp(g))/2},V=function(g){return b$4.exp(g)-1},R=function(g){return (b$4.exp(2*g)-1)/(b$4.exp(2*g)+1)},N=function(g){return b$4.log(1+g)};return {acos:e(.12312423423423424),acosh:r(1e308),acoshPf:y(1e154),asin:i(.12312423423423424),asinh:a(1),asinhPf:p(1),atanh:s(.5),atanhPf:S(.5),atan:u(.5),sin:d(-1e300),sinh:t(1),sinhPf:M(1),cos:n(10.000000000123),cosh:o(1),coshPf:A(1),tan:l(-1e300),tanh:c(1),tanhPf:R(1),exp:f(1),expm1:v(1),expm1Pf:V(1),log1p:m(10),log1pPf:N(10),powPI:h(-100)}}var un$4="mmMwWLliI0fiflO&1",he$4={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function cn$4(){return dn$4(function(e,r){for(var i={},a={},s=0,u=Object.keys(he$4);s<u.length;s++){var d=u[s],t=he$4[d],n=t[0],o=n===void 0?{}:n,l=t[1],c=l===void 0?un$4:l,f=e.createElement("span");f.textContent=c,f.style.whiteSpace="nowrap";for(var v=0,m=Object.keys(o);v<m.length;v++){var h=m[v],y=o[h];y!==void 0&&(f.style[h]=y);}i[d]=f,r.append(e.createElement("br"),f);}for(var p=0,S=Object.keys(he$4);p<S.length;p++){var d=S[p];a[d]=i[d].getBoundingClientRect().width;}return a})}function dn$4(e,r){return r===void 0&&(r=4e3),mt$5(function(i,a){var s=a.document,u=s.body,d=u.style;d.width="".concat(r,"px"),d.webkitTextSizeAdjust=d.textSizeAdjust="none",J$8()?u.style.zoom="".concat(1/a.devicePixelRatio):O$5()&&(u.style.zoom="reset");var t=s.createElement("div");return t.textContent=P0([],Array(r/20<<0)).map(function(){return "word"}).join(" "),u.appendChild(t),e(s,u)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function fn$5(){return navigator.pdfViewerEnabled}
1256function ln$4(){var e=new Float32Array(1),r=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],r[3]}function vn$3(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return -1;if(mn$4())return -3;try{return e.canMakePayments()?1:0}catch(r){return hn$4(r)}}var mn$4=ur$4;function hn$4(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return -2;throw e}function pn$4(){var e,r=document.createElement("a"),i=(e=r.attributionSourceId)!==null&&e!==void 0?e:r.attributionsourceid;return i===void 0?void 0:String(i)}var ht$4=-1,pt$6=-2,gn$4=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),bn$3=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),yn$3=["FRAGMENT_SHADER","VERTEX_SHADER"],wn$2=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],gt$6="WEBGL_debug_renderer_info",Sn$2="WEBGL_polygon_mode";function Mn$3(e){var r,i,a,s,u,d,t=e.cache,n=bt$6(t);if(!n)return ht$4;if(!wt$7(n))return pt$6;var o=yt$5()?null:n.getExtension(gt$6);return {version:((r=n.getParameter(n.VERSION))===null||r===void 0?void 0:r.toString())||"",vendor:((i=n.getParameter(n.VENDOR))===null||i===void 0?void 0:i.toString())||"",vendorUnmasked:o?(a=n.getParameter(o.UNMASKED_VENDOR_WEBGL))===null||a===void 0?void 0:a.toString():"",renderer:((s=n.getParameter(n.RENDERER))===null||s===void 0?void 0:s.toString())||"",rendererUnmasked:o?(u=n.getParameter(o.UNMASKED_RENDERER_WEBGL))===null||u===void 0?void 0:u.toString():"",shadingLanguageVersion:((d=n.getParameter(n.SHADING_LANGUAGE_VERSION))===null||d===void 0?void 0:d.toString())||""}}function Pn$3(e){var r=e.cache,i=bt$6(r);if(!i)return ht$4;if(!wt$7(i))return pt$6;var a=i.getSupportedExtensions(),s=i.getContextAttributes(),u=[],d=[],t=[],n=[],o=[];if(s)for(var l=0,c=Object.keys(s);l<c.length;l++){var f=c[l];d.push("".concat(f,"=").concat(s[f]));}for(var v=ut$5(i),m=0,h=v;m<h.length;m++){var y=h[m],p=i[y];t.push("".concat(y,"=").concat(p).concat(gn$4.has(p)?"=".concat(i.getParameter(p)):""));}if(a)for(var S=0,M=a;S<M.length;S++){var A=M[S];if(!(A===gt$6&&yt$5()||A===Sn$2&&Ln$3())){var V=i.getExtension(A);if(!V){u.push(A);continue}for(var R=0,N=ut$5(V);R<N.length;R++){var y=N[R],p=V[y];n.push("".concat(y,"=").concat(p).concat(bn$3.has(p)?"=".concat(i.getParameter(p)):""));}}}for(var g=0,_=yn$3;g<_.length;g++)for(var G=_[g],ue=0,Me=wn$2;ue<Me.length;ue++){var Pe=Me[ue],At=Fn$3(i,G,Pe);o.push("".concat(G,".").concat(Pe,"=").concat(At.join(",")));}return n.sort(),t.sort(),{contextAttributes:d,parameters:t,shaderPrecisions:o,extensions:a,extensionParameters:n,unsupportedExtensions:u}}function bt$6(e){if(e.webgl)return e.webgl.context;var r=document.createElement("canvas"),i;r.addEventListener("webglCreateContextError",function(){return i=void 0});for(var a=0,s=["webgl","experimental-webgl"];a<s.length;a++){var u=s[a];try{i=r.getContext(u);}catch{}if(i)break}return e.webgl={context:i},i}function Fn$3(e,r,i){var a=e.getShaderPrecisionFormat(e[r],e[i]);return a?[a.rangeMin,a.rangeMax,a.precision]:[]}function ut$5(e){var r=Object.keys(e.__proto__);return r.filter(kn$2)}function kn$2(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function yt$5(){return vt$4()}function Ln$3(){return J$8()||O$5()}function wt$7(e){return typeof e.getParameter=="function"}function An$3(){var e=we$4()||O$5();if(!e)return -2;if(!window.AudioContext)return -1;var r=new AudioContext().baseLatency;return r==null?-1:isFinite(r)?r:-3}function _n$3(){if(!window.Intl)return -1;var e=window.Intl.DateTimeFormat;if(!e)return -2;var r=e().resolvedOptions().locale;return !r&&r!==""?-3:r}var xn$2={fonts:fr$4,domBlockers:Hr$3,fontPreferences:cn$4,audio:er$4,screenFrame:Cr$4,canvas:vr$4,osCpu:Pr$3,languages:Fr$3,colorDepth:kr$3,deviceMemory:Lr$3,screenResolution:Ar$4,hardwareConcurrency:Or$3,timezone:Vr$4,sessionStorage:Nr$2,localStorage:Tr$4,indexedDB:Br$3,openDatabase:Gr$3,cpuClass:jr$3,platform:Zr$3,plugins:lr$4,touchSupport:Mr$4,vendor:Dr$3,vendorFlavors:Yr$3,cookiesEnabled:zr$4,colorGamut:Kr$3,invertedColors:qr$3,forcedColors:$r$3,monochrome:tn$4,contrast:rn$4,reducedMotion:nn$3,reducedTransparency:on$4,hdr:an$2,math:sn$4,pdfViewerEnabled:fn$5,architecture:ln$4,applePay:vn$3,privateClickMeasurement:pn$4,audioBaseLatency:An$3,dateTimeLocale:_n$3,webGlBasics:Mn$3,webGlExtensions:Pn$3};function Rn$3(e){return zt$3(xn$2,e,[])}var In$3="$ if upgrade to Pro: https://fpjs.dev/pro";function En$2(e){var r=Cn$2(e),i=On$2(r);return {score:r,comment:In$3.replace(/\$/g,"".concat(i))}}function Cn$2(e){if(we$4())return .4;if(O$5())return ye$5()&&!(K$8()&&Q$3())?.5:.3;var r="value"in e.platform?e.platform.value:"";return /^Win/.test(r)?.6:/^Mac/.test(r)?.5:.7}function On$2(e){return ft$5(.99+.01*e,1e-4)}function Vn$3(e){for(var r="",i=0,a=Object.keys(e).sort();i<a.length;i++){var s=a[i],u=e[s],d="error"in u?"error":JSON.stringify(u.value);r+="".concat(r?"|":"").concat(s.replace(/([:|\\])/g,"\\$1"),":").concat(d);}return r}function St$4(e){return JSON.stringify(e,function(r,i){return i instanceof Error?jt$3(i):i},2)}function Mt$4(e){return Gt$2(Vn$3(e))}function Wn$4(e){var r,i=En$2(e);return {get visitorId(){return r===void 0&&(r=Mt$4(this.components)),r}
1256,set visitorId(a){r=a;},confidence:i,components:e,version:ct$3}}function Nn$3(e){return e===void 0&&(e=50),It$5(e,e*2)}function Tn$3(e,r){var i=Date.now();return {get:function(a){return Ff$1(this,void 0,void 0,function(){var s,u,d;return L0(this,function(t){switch(t.label){case 0:return s=Date.now(),[4,e()];case 1:return u=t.sent(),d=Wn$4(u),(r||a?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(d.version,` 1257userAgent: `).concat(navigator.userAgent,` 1258timeBetweenLoadAndGet: `).concat(s-i,` 1259visitorId: `).concat(d.visitorId,` 1260components: `).concat(St$4(u),"\n```")),[2,d]}})})}}}function Bn$3(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(ct$3,"/npm-monitoring"),!0),e.send();}catch(r){console.error(r);}}function Gn$4(e){var r;return e===void 0&&(e={}),Ff$1(this,void 0,void 0,function(){var i,a,s;return L0(this,function(u){switch(u.label){case 0:return (!((r=e.monitoring)!==null&&r!==void 0)||r)&&Bn$3(),i=e.delayFallback,a=e.debug,[4,Nn$3(i)];case 1:return u.sent(),s=Rn$3({cache:{},debug:a}),[2,Tn$3(s,a)]}})})}var Pt$3={load:Gn$4,hashComponents:Mt$4,componentsToDebugString:St$4};var kt$5=A$j(Ft$3());var Lt$3=(()=>{class e{constructor(){this._maQuery=g$k(f$8),this._http=g$k(Ce$a),this._window=g$k(A$7);}getFpIfActive(){return this._maQuery.select().pipe($f$1(),Kf$1(i=>i.fingerprint?.active?this.getFingerprint():yI(null)))}getFingerprint(){return this.fpRes?this.fpRes:(this.fpRes=new gn$a(1),this.getFingerprintFromServer())}getFingerprintFromServer(){return _I([je$e(Pt$3.load().then(i=>i.get())).pipe(Kf$1(i=>{let a=l$6.USER.FINGERPRINT(this._maQuery.getSchoolId(),{visitorId:i.visitorId});return U$5.isNativePlatform()?this._http.generic(a):this._http.postCustomBackend("/api",a.url,a.data)})),yI(kt$5.default.parse(this._window.navigator.userAgent))]).pipe(st$c(([i,a])=>({visitorId:i.visitorId,browserName:a.browser.name,os:a.os.name})),Ip$1(i=>this.fpRes?.next(i)))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Ai=(()=>{class e{constructor(){this._queryClient=g$k(_$d),this._uid=YG(g$k(u$c)),this._maQuery=g$k(f$8),this._authService=g$k(Je$2),this._http=g$k(Ce$a),this._fingerprintService=g$k(Lt$3),this._schoolUserService=g$k(Oe$5),this._schoolUserDataService=g$k(W$d),this._schoolUserQuery=g$k(M$a),this._appVersion=g$k(RE),this.getUserDevicesQuery=i=>ie$b(()=>({queryKey:["user-devices"],queryFn:()=>this._getUserDevices()}),{injector:i});}get schoolId(){return this._maQuery.getSchoolId()}get uid(){return this._uid()}registerDevice(i,a,s){return this._schoolUserService.registerDevice(this.schoolId,{visitorId:i,browserName:a,os:s,dateAdded:new Date})}removeDevice(i){return this._schoolUserService.removeDevice(this.schoolId,i)}invalidateUserDevicesQuery(){this._queryClient.invalidateQueries({queryKey:["user-devices"]});}_getUserDevices(){return qE$1(this._http.generic(l$6.USER.GET_USER_DEVICES(this.schoolId)))}updateLastLogin(){return this.triggerLastLogin().subscribe({error:Ce$c})}triggerLastLogin(){return this._authService.isPreviewSession()?yI(null):this._fingerprintService.getFpIfActive().pipe(Kf$1(i=>_I([this._maQuery.select().pipe($f$1()),yI(i),this._http.generic(l$6.USER.UPDATE_LAST_LOGIN(this.schoolId,{visitorId:i?i.visitorId:null,version:this._appVersion||"0"}))])),Ip$1(([,i])=>{i&&this._schoolUserService.updateLastVisitorId(i.visitorId);}),Kf$1(([i,a])=>a&&i?.fingerprint?.singleLogin?this.startVisitorIdWatch(a.visitorId):yI(null)))}startVisitorIdWatch(i){return this._schoolUserQuery.selectLastVisitorId().pipe(sp$2(1500),Pt$b(a=>a!==i),Ip$1(()=>{console.log("detected login on other device"),this._authService.doubleLogin();}))}updateDarkThemeSettings(i){return this._schoolUserService.updateUserPropMutation.mutate({update:{darkTheme:i}})}updateUserProp(i){return this._schoolUserService.updateUserPropMutation.mutate({update:i})}updateBookmarks(i){return this._schoolUserService.updateBookmarksMutation.mutate({bookmarks:i})}getUserNextLessons(){return this._schoolUserDataService.getUserNextLessons(this.schoolId)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})(); 1261var he$3=(()=>{class o{constructor(){this.fileDropped=new Ct$h;}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.fileOver=true;}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.fileOver=false;}ondrop(e){e.preventDefault(),e.stopPropagation(),this.fileOver=false;let t=e.dataTransfer?.files;t&&t.length>0&&this.fileDropped.emit(t);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275dir=mt$d({type:o,selectors:[["","mspotFiledrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&Zv$1("dragover",function(n){return i.onDragOver(n)})("dragleave",function(n){return i.onDragLeave(n)})("drop",function(n){return i.ondrop(n)}),t&2&&iD("bg-mspot-neutral-200",i.fileOver);},outputs:{fileDropped:"fileDropped"}}
1261);}}return o})();var _e$3=o=>({size:o});function Ce$2(o,c){if(o&1&&(ta$3(0,"div",3)(1,"p",5),QM(2),Pd$1(),Vv$1(3,"mat-progress-bar",6),Pd$1()),o&2){let e=yM().$implicit,t=yM();uT(2),Gd$1(" ",e("fileList.fileIsBeingUploaded")+" "+t.uploadProgress()+"%"," "),uT(),jv$1("value",t.uploadProgress());}}function De$4(o,c){if(o&1&&Vv$1(0,"ng-icon",7),o&2){let e=yM(3);jv$1("name",e.uploadIcon());}}function xe$2(o,c){o&1&&(yh$1(),ta$3(0,"svg",8),Vv$1(1,"path",14),Pd$1());}function ye$4(o,c){if(o&1){let e=fM();ta$3(0,"div",4),eM$1(1,De$4,1,1,"ng-icon",7)(2,xe$2,2,0,":svg:svg",8),ta$3(3,"div",9)(4,"label",10),Zv$1("keydown.enter",function(){sh$1(e);let i=TM(8);return ah$1(i.click())})("keydown.space",function(){sh$1(e);let i=TM(8);return ah$1(i.click())}),ta$3(5,"span"),QM(6),Pd$1(),ta$3(7,"input",11,0),Zv$1("change",function(i){sh$1(e);let l=TM(8),n=yM(2);return ah$1(n.fileInput(i,l))}),Pd$1()(),ta$3(9,"p",12),QM(10),Pd$1()(),ta$3(11,"p",13),QM(12),Pd$1()();}if(o&2){let e=yM().$implicit,t=yM();uT(),tM$1(t.uploadIcon()?1:2),uT(3),jv$1("for",t.id),uT(2),yD(t.multiple?e("dialog.file.chooseFiles"):e("dialog.file.chooseFile")),uT(),jv$1("id",t.id)("accept",t.accept),Pv$1("multiple",t.multiple?true:null),uT(3),yD(e("dialog.file.dnd")),uT(2),Gd$1(" ",e(t.uploadFileSizeLimit()!==null?"fileList.fileUploadLimit":t.hint,fN(8,_e$3,t.uploadFileSizeLimit()))," ");}}function we$3(o,c){if(o&1){let e=fM();ta$3(0,"div",2),Zv$1("fileDropped",function(i){sh$1(e);let l=yM();return ah$1(l.dropped(i))}),eM$1(1,Ce$2,4,2,"div",3)(2,ye$4,13,10,"div",4),Pd$1();}if(o&2){let e=yM();jv$1("ngClass",e.styles),uT(),tM$1(e.uploadProgress()?1:2);}}var Ze$4=(()=>{class o{constructor(){this._noti=g$k(wi$1),this.accept="*",this.multiple=false,this.hint="dialog.file.images",this.styles="py-10",this.uploadIcon=X8(),this.uploadProgress=X8(null),this.uploadFileSizeLimit=X8(null),this.id=Math.random().toString(),this.fileDropped=new Ct$h;}dropped(e){this.emitFileList(Array.from(e));}fileInput(e,t){let l=e.currentTarget.files;l&&this.emitFileList(Array.from(l),t);}isFileAccepted(e){if(this.accept==="*")return true;let t=this.accept.split(",").map(n=>n.trim().toLowerCase()).filter(n=>!!n);if(!t.length)return true;let i=e.type.toLowerCase(),l=`.${e.name.split(".").pop()?.toLowerCase()||""}`;return t.some(n=>!!(i===n||n.endsWith("/*")&&i.startsWith(n.slice(0,-1))||n.startsWith(".")&&l===n))}async emitFileList(e,t){if(!this.multiple&&e.length>1){this._noti.errorIntl("dialog.file.onlyOneFile");return}let i=[],l=[],n=[],P=this.uploadFileSizeLimit(),R=P?P*1024*1024:null;for(let w of e){if(!await this.isThisAFile(w)||!this.isFileAccepted(w)){l.push(w.name);continue}if(R&&w.size>R){n.push(w.name);continue}let ve={file:w,isFile:true};i.push(ve);}l.length>0&&this._noti.errorIntl("admin.notifications.upload.notAllowedFileType",{hint:this.hint}),n.length>0&&this._noti.errorIntl("admin.notifications.upload.fileTooLarge",{limit:this.uploadFileSizeLimit()}),i.length>0&&this.fileDropped.emit(i),t&&(t.value="");}isThisAFile(e){return new Promise(t=>{if(e.type!=="")return t(true);let i=new FileReader;i.onloadend=()=>{if(i.error&&(i.error.name==="NotFoundError"||i.error.name==="NotReadableError"))return t(false);t(true);},i.readAsBinaryString(e);})}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["mspot-dropzone"]],inputs:{accept:"accept",multiple:"multiple",hint:"hint",styles:"styles",uploadIcon:[1,"uploadIcon"],uploadProgress:[1,"uploadProgress"],uploadFileSizeLimit:[1,"uploadFileSizeLimit"]},outputs:{fileDropped:"fileDropped"},decls:1,vars:0,consts:[["input",""],["class","bg-mspot-neutral-100 flex w-full justify-center rounded-lg px-4","mspotFiledrop","",3,"ngClass","fileDropped",4,"transloco"],["mspotFiledrop","",1,"bg-mspot-neutral-100","flex","w-full","justify-center","rounded-lg","px-4",3,"fileDropped","ngClass"],[1,"flex","h-[5.75rem]","w-full","flex-col","justify-center","gap-2"],[1,"space-y-1","text-center"],[1,"text-text-subtle","text-sm"],["mode","determinate",3,"value"],["strokeWidth","2",1,"text-icons-subtle","text-[3rem]",3,"name"],["stroke","currentColor","fill","none","viewBox","0 0 48 48","aria-hidden","true",1,"text-mspot-neutral-400","mx-auto","h-12","w-12"],[1,"text-mspot-neutral-600","flex","flex-wrap","justify-center","text-sm"],["tabindex","0","role","button",1,"text-primary","focus-primary","relative","cursor-pointer","whitespace-nowrap","rounded-md","font-medium","hover:underline",3,"keydown.enter","keydown.space","for"],["name","file-upload","type","file","tabindex","-1","data-cy","dropzone-file-input",1,"sr-only",3,"change","id","accept"],[1,"whitespace-nowrap","pl-1"],[1,"text-text-subtle","text-xs"],["d","M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"]],template:function(t,i){t&1&&gv$1(0,we$3,3,2,"div",1);}
1261,dependencies:[kx$1,mx$1,bt$b,yt$a,he$3,le$9,Yr$4,mn$6],encapsulation:2});}}return o})();var be$3=(()=>{class o{constructor(){this._el=g$k(gt$f),this._focusMonitor=g$k(be$a),this._destroyRef=g$k(de$b),this.focused=On$7(false),this.focusVisible=On$7(false);let e=this._el.nativeElement;this._focusMonitor.monitor(e,true).pipe(qG(this._destroyRef)).subscribe(t=>{this.focused.set(t!==null),this.focusVisible.set(t==="keyboard");}),this._destroyRef.onDestroy(()=>{this._focusMonitor.stopMonitoring(e);});}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275dir=mt$d({type:o,selectors:[["","mspotFocusVisible",""]],hostVars:2,hostBindings:function(t,i){t&2&&Pv$1("data-focused",i.focused()?"":null)("data-focus-visible",i.focusVisible()?"":null);}});}}return o})();var Me$2=["*"],ke$2=(o,c)=>[o,c];function Fe$2(o,c){if(o&1&&(ta$3(0,"span",3),yh$1(),ta$3(1,"svg",4),Vv$1(2,"path",5),Pd$1()(),vh$1(),ta$3(3,"span",3),yh$1(),ta$3(4,"svg",6),Vv$1(5,"path",7),Pd$1()()),o&2){let e=yM();BM(e.resolvedValue()?"opacity-0 duration-100 ease-out":"opacity-100 duration-200 ease-in"),uT(3),BM(e.resolvedValue()?"opacity-100 duration-200 ease-in":"opacity-0 duration-100 ease-out"),uT(),BM(e.resolvedDisabled()?"text-text-disabled":"text-primary");}}function Te$4(o,c){o&1&&(ta$3(0,"span",10),QM(1,"*"),Pd$1());}function Le$4(o,c){if(o&1&&(ta$3(0,"span",11),QM(1),Pd$1()),o&2){let e=yM(2);jv$1("id",e.subtitleId),uT(),yD(e.subtitle());}}function Se$4(o,c){if(o&1&&Vv$1(0,"mspot-tooltip",12),o&2){let e=yM(2);jv$1("text",e.tooltip());}}function ze$2(o,c){if(o&1){let e=fM();ta$3(0,"label",8),Zv$1("click",function(i){sh$1(e);let l=yM();return ah$1(l.onLabelClick(i))}),ta$3(1,"span",9),QM(2),eM$1(3,Te$4,2,0,"span",10),Pd$1(),eM$1(4,Le$4,2,2,"span",11),eM$1(5,Se$4,1,1,"mspot-tooltip",12),ta$3(6,"div",13),Zv$1("click",function(i){return i.stopPropagation()})("keydown",function(i){return i.stopPropagation()}),EM(7),Pd$1()();}if(o&2){let e=yM();iD("cursor-not-allowed",e.resolvedDisabled())("cursor-pointer",!e.resolvedDisabled()),Pv$1("for",e.switchId),uT(),jv$1("id",e.labelId),uT(),Gd$1(" ",e.label()," "),uT(),tM$1(e.showRequiredIndicator()?3:-1),uT(),tM$1(e.subtitle()?4:-1),uT(),tM$1(e.tooltip()?5:-1);}}var bt$5=(()=>{class o{constructor(){this._cdr=g$k(Va$2),this._cva=E$e(),this._ariaRegistry=g$k(w$d,{optional:true}),this.switchId=U$c("mspot-toggle-switch"),this.labelId=U$c("mspot-toggle-label"),this.subtitleId=U$c("mspot-toggle-subtitle"),this.value=X8(false,{transform:ni$7}),this.disabled=X8(false,{transform:ni$7}),this.label=X8(),this.subtitle=X8(),this.switchOrder=X8(false,{transform:ni$7}),this.dataCy=X8(null),this.onboardingTarget=X8(null),this.ariaDescribedBy=X8(null),this.required=X8(false,{transform:ni$7}),this.showRequiredIndicator=X8(false,{transform:ni$7}),this.tooltip=X8(""),this.stopEnterPropagation=X8(false),this.ariaLabelledby=X8(),this.ariaLabel=X8("Toggle"),this.size=X8("md"),this.dataState=X8("default"),this.valueChange=J8(),this._value=ON(()=>this.value()),this.resolvedValue=this._value.asReadonly(),this._formDisabled=On$7(false),this.resolvedDisabled=qd$1(()=>this.disabled()||this._formDisabled()),this.switchClass=qd$1(()=>{let e=this._value(),t=this.resolvedDisabled(),i=!t&&this.dataState()==="error";return mo$2("focus-primary relative inline-flex flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",this.size()==="sm"?"h-[18px] w-[30px]":"h-6 w-11",t?"bg-backgrounds-fill-neutral-disabled cursor-not-allowed":e?"cursor-pointer bg-primary":"bg-backgrounds-tertiary cursor-pointer",i?"ring-borders-danger ring-1":"",this.switchOrder()?"order-1":"")}),this.resolvedAriaLabelledby=qd$1(()=>this.ariaLabelledby()?this.ariaLabelledby():this.label()?this.labelId:null),this.resolvedAriaDescribedBy=qd$1(()=>{let e=q$e(this._ariaRegistry?.describedBy(),this.ariaDescribedBy()),t=this.subtitle()?this.subtitleId:null;return [e,t].filter(Boolean).join(" ")||null}),this.resolvedAriaInvalid=qd$1(()=>!this.resolvedDisabled()&&this.dataState()==="error"?"true":null),this.resolvedAriaRequired=qd$1(()=>this.required()?"true":null),this.setDisabledState=H$e(this._formDisabled);}setValue(e){this._value.set(e),this._cdr.markForCheck();}
1261toggle(){let e=!this._value();this._cva.commitValue(e,()=>this.resolvedDisabled())&&(this._value.set(e),this.valueChange.emit(e),this._cdr.markForCheck());}onLabelClick(e){let t=e.target;t instanceof HTMLElement&&t.closest("mspot-tooltip, a, button")&&e.preventDefault();}onBlur(){this._cva.markTouched();}writeValue(e){this._cva.writeValue(()=>{this._value.set(!!e),this._cdr.markForCheck();});}registerOnChange(e){this._cva.registerOnChange(e);}registerOnTouched(e){this._cva.registerOnTouched(e);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=qS({type:o,selectors:[["mspot-toggle"]],hostAttrs:[1,"inline-flex","items-center","gap-3"],inputs:{value:[1,"value"],disabled:[1,"disabled"],label:[1,"label"],subtitle:[1,"subtitle"],switchOrder:[1,"switchOrder"],dataCy:[1,"dataCy"],onboardingTarget:[1,"onboardingTarget"],ariaDescribedBy:[1,"ariaDescribedBy"],required:[1,"required"],showRequiredIndicator:[1,"showRequiredIndicator"],tooltip:[1,"tooltip"],stopEnterPropagation:[1,"stopEnterPropagation"],ariaLabelledby:[1,"ariaLabelledby"],ariaLabel:[1,"ariaLabel"],size:[1,"size"],dataState:[1,"dataState"]},outputs:{valueChange:"valueChange"},features:[cN([{provide:E$f,useExisting:Qi$3(()=>o),multi:true}])],ngContentSelectors:Me$2,decls:4,vars:19,consts:[["mspotFocusVisible","","role","switch","type","button",3,"click","blur","keydown.enter","id","disabled"],[1,"bg-backgrounds-surface-default","pointer-events-none","relative","inline-block","transform","rounded-full","shadow","ring-0","transition","duration-200","ease-in-out"],[1,"flex","items-center",3,"cursor-not-allowed","cursor-pointer"],["aria-hidden","true",1,"absolute","inset-0","flex","h-full","w-full","items-center","justify-center","transition-opacity"],["fill","none","viewBox","0 0 12 12",1,"text-text-disabled","h-3","w-3"],["d","M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["fill","currentColor","viewBox","0 0 12 12",1,"size-3"],["d","M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"],[1,"flex","items-center",3,"click"],[1,"text-text-default","inline-flex","items-center","gap-1","whitespace-pre-line","text-sm","font-medium","leading-5",3,"id"],["aria-hidden","true",1,"text-text-danger"],[1,"text-text-subtle","ml-2","text-sm",3,"id"],[3,"text"],["tabindex","-1",1,"flex","items-center",3,"click","keydown"]],template:function(t,i){t&1&&(DM(),ta$3(0,"button",0),Zv$1("click",function(){return i.toggle()})("blur",function(){return i.onBlur()})("keydown.enter",function(n){return i.stopEnterPropagation()?n.stopPropagation():null}),ta$3(1,"span",1),eM$1(2,Fe$2,6,6),Pd$1()(),eM$1(3,ze$2,8,10,"label",2)),t&2&&(BM(i.switchClass()),jv$1("id",i.switchId)("disabled",i.resolvedDisabled()),Pv$1("aria-checked",i.resolvedValue())("aria-labelledby",i.resolvedAriaLabelledby())("aria-describedby",i.resolvedAriaDescribedBy())("aria-invalid",i.resolvedAriaInvalid())("aria-required",i.resolvedAriaRequired())("aria-label",i.resolvedAriaLabelledby()?null:i.ariaLabel())("data-cy",i.dataCy()??null)("data-onboarding",i.onboardingTarget()),uT(),BM(pN(16,ke$2,i.size()==="sm"?"size-[14px]":"size-5",i.resolvedValue()?i.size()==="sm"?"translate-x-3":"translate-x-5":"translate-x-0")),uT(),tM$1(i.size()!=="sm"?2:-1),uT(),tM$1(i.label()?3:-1));},dependencies:[K$f,be$3],encapsulation:2});}}return o})();var _t$5=(()=>{class o{constructor(){this.#e="text-mspot-neutral-500 hover:bg-mspot-neutral-200 hover:text-mspot-neutral-700",this.#t="text-mspot-neutral-400 hover:bg-mspot-neutral-600",this.size="md",this.theme="default";}#e;#t;get hostClass(){let e="";switch(this.size){case "sm":e="p-1";break;case "md":e="p-2";break;case "lg":e="p-3";break;default:e="p-2";}return `${e} ${this.theme==="dark"?this.#t:this.#e}`}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275dir=mt$d({type:o,selectors:[["","mspotCloseButton",""]],hostAttrs:[1,"flex","aspect-square","rounded-full","text-xl","transition-colors","focus-primary"],hostVars:2,hostBindings:function(t,i){t&2&&BM(i.hostClass);},inputs:{size:"size",theme:"theme"}});}}return o}
1261)();var R$5="bg-gradient-to-br from-primary/25 via-primary/15 to-primary/10",j$6="text-primary",Y$8="bg-backgrounds-fill-danger-subtle",Z$4="text-icons-danger";function k$5(t){let{variant:e,size:n}=t;return e==="search"?{variant:e,size:n,tone:"brand",motion:false,actionPolicy:"hidden",iconBgClass:t.iconBgClass??R$5,iconColorClass:t.iconColorClass??j$6}:e==="error"?{variant:e,size:n,tone:"danger",motion:false,actionPolicy:"allowed",iconBgClass:t.iconBgClass??Y$8,iconColorClass:t.iconColorClass??Z$4}:{variant:e,size:n,tone:"brand",motion:true,actionPolicy:"allowed",iconBgClass:t.iconBgClass??R$5,iconColorClass:t.iconColorClass??j$6}}function H$6(t,e){return {icon:e.icon,title:e.title,description:e.description,actionLabel:e.actionLabel,actionIcon:e.actionIcon,actionDataCy:e.actionDataCy,showAction:t.actionPolicy==="allowed"&&!!e.actionLabel}}var F$5={lg:"size-28",sm:"size-16"},q$5={lg:"text-5xl",sm:"text-3xl"},J$7={lg:"mt-4 text-2xl",sm:"mt-3 text-lg"};function K$7(t){return t.variant==="first-use"&&t.size==="md"}function V$5(t){let{motion:e}=t,n=K$7(t)?"lg":"sm";return {mediaBadge:mo$2("flex items-center justify-center rounded-full shadow-sm ring-1 ring-inset ring-white/10",F$5[n],e&&"motion-opacity-in motion-preset-slide-up-sm motion-delay-100",t.iconBgClass),mediaGlyph:mo$2(q$5[n],t.iconColorClass),title:mo$2("text-text-default max-w-md text-pretty text-center font-semibold",J$7[n],e&&"motion-preset-slide-up-sm motion-delay-150"),description:mo$2("text-text-subtle max-w-md text-center text-sm",e&&"motion-preset-slide-up-sm motion-opacity-in motion-delay-200"),action:mo$2("mt-4",e&&"motion-preset-slide-up-sm motion-ease-out motion-delay-[.35s]")}}var Q$2=["*"];function U$3(t,e){if(t&1&&(ta$3(0,"div"),Vv$1(1,"ng-icon",1),Pd$1()),t&2){yM();let n=tN(2);BM(n.mediaBadge),uT(),BM(n.mediaGlyph),jv$1("name",e);}}function W$7(t,e){if(t&1&&(ta$3(0,"h2"),QM(1),Pd$1()),t&2){let n=yM();yM();let o=tN(2);BM(o.title),uT(),Gd$1(" ",n," ");}}function X$4(t,e){if(t&1&&(ta$3(0,"h3"),QM(1),Pd$1()),t&2){let n=yM();yM();let o=tN(2);BM(o.title),uT(),Gd$1(" ",n," ");}}function $$8(t,e){if(t&1&&eM$1(0,W$7,2,3,"h2",0)(1,X$4,2,3,"h3",0),t&2){yM();let n=tN(0);tM$1(n.variant==="first-use"?0:1);}}function tt$4(t,e){if(t&1&&(ta$3(0,"p"),QM(1),Pd$1()),t&2){yM();let n=tN(2);BM(n.description),uT(),Gd$1(" ",e," ");}}function et$5(t,e){t&1&&Vv$1(0,"ng-icon",3),t&2&&jv$1("name",e);}function nt$5(t,e){if(t&1){let n=fM();ta$3(0,"div")(1,"button",2),Zv$1("click",function(){sh$1(n);let a=yM();return ah$1(a.action.emit())}),eM$1(2,et$5,1,1,"ng-icon",3),QM(3),Pd$1()();}if(t&2){let n,o=yM(),a=tN(1),x=tN(2);BM(x.action),uT(),Pv$1("data-cy",a.actionDataCy??null)("data-onboarding",o.actionOnboardingTarget()??null),uT(),tM$1((n=a.actionIcon)?2:-1,n),uT(),Gd$1(" ",a.actionLabel," ");}}var gt$5=(()=>{class t{constructor(){this.variant=X8("first-use"),this.size=X8("md"),this.icon=X8(),this.iconBgClass=X8(),this.iconColorClass=X8(),this.title=X8(),this.description=X8(),this.actionLabel=X8(),this.actionIcon=X8(),this.actionDataCy=X8(),this.actionOnboardingTarget=X8(),this.action=J8(),this.presentation=qd$1(()=>k$5({variant:this.variant(),size:this.size(),iconBgClass:this.iconBgClass(),iconColorClass:this.iconColorClass()})),this.content=qd$1(()=>H$6(this.presentation(),{icon:this.icon(),title:this.title(),description:this.description(),actionLabel:this.actionLabel(),actionIcon:this.actionIcon(),actionDataCy:this.actionDataCy()})),this.classes=qd$1(()=>V$5(this.presentation()));}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-empty-state"]],hostAttrs:[1,"flex","flex-1","flex-col","items-center","justify-center","gap-2","rounded-lg"],hostVars:4,hostBindings:function(o,a){o&2&&iD("py-8",a.size()==="md")("pb-6",a.size()==="sm");},inputs:{variant:[1,"variant"],size:[1,"size"],icon:[1,"icon"],iconBgClass:[1,"iconBgClass"],iconColorClass:[1,"iconColorClass"],title:[1,"title"],description:[1,"description"],actionLabel:[1,"actionLabel"],actionIcon:[1,"actionIcon"],actionDataCy:[1,"actionDataCy"],actionOnboardingTarget:[1,"actionOnboardingTarget"]},outputs:{action:"action"},ngContentSelectors:Q$2,decls:8,vars:7,consts:[[3,"class"],[3,"name"],["type","button","mspot-button","","variant","primary",3,"click"],["data-button-icon","","aria-hidden","true",3,"name"]],template:function(o,a){if(o&1&&(DM(),wD(0)(1)(2),eM$1(3,U$3,2,5,"div",0),eM$1(4,$$8,2,1),eM$1(5,tt$4,2,3,"p",0),EM(6),eM$1(7,nt$5,4,6,"div",0)),o&2){let x,h,E;eN(a.presentation()),uT();let f=eN(a.content());uT(),eN(a.classes()),uT(),tM$1((x=f.icon)?3:-1,x),uT(),tM$1((h=f.title)?4:-1,h),uT(),tM$1((E=f.description)?5:-1,E),uT(2),tM$1(f.showAction?7:-1);}},dependencies:[le$9,q$b],encapsulation:2});}}return t})();var u$3=(()=>{class t{constructor(){this._elRef=g$k(gt$f),this.ngControl=g$k(y$b,{optional:true,self:true});}get host(){return this._elRef.nativeElement}get invalid(){return this.parentCdr?.markForCheck(),this.ngControl?.invali
1261d&&this.ngControl?.touched?this.errorClasses:this.ngControl?.disabled?this.disabledClasses:this.validClasses}registerCdr(r){this.parentCdr=r;}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275dir=mt$d({type:t,hostAttrs:["data-1p-ignore",""],hostVars:2,hostBindings:function(e,i){e&2&&BM(i.invalid);}});}}return t})();var B$8=(()=>{class t extends u$3{constructor(){super(...arguments),this.errorClasses="pr-10 border-red-300 text-mspot-error-700 placeholder-red-300 focus-error",this.disabledClasses="pr-10",this.validClasses="border-mspot-neutral-300 focus-primary";}get classes(){return ` 1262 block 1263 rounded-lg 1264 text-sm 1265 bg-backgrounds-surface-raised 1266 shadow-sm 1267 `.trim()}static{this.\u0275fac=(()=>{let r;return function(i){return (r||(r=Wg$1(t)))(i||t)}})();}static{this.\u0275dir=mt$d({type:t,hostAttrs:["autocomplete","off","type","text"],hostVars:2,hostBindings:function(e,i){e&2&&BM(i.classes);},features:[pv$1]});}}return t})();var X$3=(()=>{class e{constructor(){this.inputClass=X8(),this.class=qd$1(()=>this.inputClass()||"block mt-1 text-sm text-mspot-error-700");}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-error"]],inputs:{errors:"errors",inputClass:[1,"inputClass"]},decls:3,vars:5,template:function(o,i){o&1&&(jd$1(0,"div"),QM(1),EN(2,"errorObj"),Vd$1()),o&2&&(BM(i.class()),uT(),Gd$1(" ",CN(2,3,i.errors),` 1268`));},dependencies:[ir$7],encapsulation:2});}}return e})();var G$5=["*",[["","suffix",""]]],$$7=["*","[suffix]"];function J$6(e,u){e&1&&EM(0,1);}function K$6(e,u){e&1&&(ta$3(0,"div",2),yh$1(),ta$3(1,"svg",3),Vv$1(2,"path",4),Pd$1()());}function W$6(e,u){if(e&1&&eM$1(0,K$6,3,0,"div",2),e&2){let t=yM();tM$1(t.hideErrorSuffix()?-1:0);}}function Y$7(e,u){if(e&1&&Vv$1(0,"mspot-error",1),e&2){let t=yM();jv$1("errors",t.errors)("inputClass",t.customErrorClass());}}var M$7=(()=>{class e{constructor(){this.hideError=X8(false),this.hideErrorSuffix=X8(false),this.customErrorClass=X8();}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-form-field-base"]],hostAttrs:[1,"block","relative"],inputs:{invalid:"invalid",errors:"errors",hideError:[1,"hideError"],hideErrorSuffix:[1,"hideErrorSuffix"],customErrorClass:[1,"customErrorClass"]},ngContentSelectors:$$7,decls:5,vars:2,consts:[[1,"relative"],["data-cy","formField-error",3,"errors","inputClass"],[1,"pointer-events-none","absolute","inset-y-0","right-0","flex","items-center","pr-3"],["fill","currentColor","viewBox","0 0 20 20",1,"text-mspot-error-700","h-5","w-5"],["fill-rule","evenodd","d","M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule","evenodd"]],template:function(o,i){o&1&&(DM(G$5),ta$3(0,"div",0),EM(1),eM$1(2,J$6,1,0)(3,W$6,1,1),Pd$1(),eM$1(4,Y$7,1,2,"mspot-error",1)),o&2&&(uT(2),tM$1(!i.invalid||i.hideErrorSuffix()?2:3),uT(2),tM$1(i.invalid&&!i.hideError()?4:-1));},dependencies:[X$3],encapsulation:2});}}return e})();var I$4=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["label","mspotFormLabel",""]],hostAttrs:[1,"block","mb-1","text-sm","text-mspot-neutral-700","font-medium"],hostVars:1,hostBindings:function(o,i){o&2&&Pv$1("for",i.for);},inputs:{for:"for"}});}}return e})();var Z$3=["*",[["","mspotInputSuffix",""]],[["","mspotFormLabelSuffix",""]]],ee$3=["*","[mspotInputSuffix]","[mspotFormLabelSuffix]"];function te$3(e,u){if(e&1&&(ta$3(0,"label",3),QM(1),EM(2,2),Pd$1()),e&2){let t=yM();BM(t.labelClass()),jv$1("for",t.id),uT(),Gd$1(" ",t.label," ");}}var ie$4=["*",[["","mspotInputSuffix",""]]],oe$3=["*","[mspotInputSuffix]"];function re$1(e,u){if(e&1&&(ta$3(0,"label",1),QM(1),Pd$1()),e&2){let t=yM();jv$1("for",t.id),uT(),Gd$1(" ",t.label," ");}}function ne$3(e,u){if(e&1&&Vv$1(0,"mspot-tooltip",2),e&2){let t=yM();jv$1("text",t.tooltip);}}var se$4=new b$g("input prefix"),le$2=new b$g("input suffix"),ae$2=(()=>{class e{constructor(){this._cdr=g$k(Va$2),this._renderer=g$k(Fr$6),this._elRef=g$k(gt$f),this.hideError=X8(false),this.hideErrorSuffix=X8(false),this.labelClass=X8(),this.customErrorClass=X8(),this.control=null;}set inputError(t){if(t){if(t.host.id)this.id=t.host.id;else {let o=Math.random().toString(16);this.id=o,t.host.id=o;}this._isNoMinInput(t)&&this._renderer.setStyle(this._elRef.nativeElement,"width",`${t.width}px`),this.control=t.ngControl,t.registerCdr(this._cdr),this._inputErrorDir=t;}}set inputPrefix(t){t&&this._inputErrorDir&&this._inputErrorDir.host.classList.add("pl-10");}set inputSuffix(t){t&&this._inputErrorDir&&this._inputErrorDir.host.classList.add("pr-10");}triggerChangeDetection(){this._cdr.markForCheck();}_isNoMinInput(t){return "width"in t}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-form-field-std",3,"tooltip",""]],contentQueries:function(o,i,g){if(o&1&&Kv$1(g,B$8,5)(g,se$4,5)(g,le$2,5),o&2){let h;CM(h=wM())&&(i.inputError=h.first),CM(h=wM())&&(i.inputPrefix=h.first),CM(h=wM())&&(i.inputSuffix=h.first);}},hostAttrs:[1,"block"],inputs:{label:"label",hideError:[1,"hideError"],hideErrorSuffix:[1,"hideErrorSuffix"],labelClass:[1,"labelClass"],customErrorClass:[1,"customErrorClass"]},ngContentSelectors:ee$3,decls:6,vars:6,consts:[["mspotFormLabel","",3,"class","for"],[3,"invali
1268d","errors","hideError","hideErrorSuffix","customErrorClass"],["suffix",""],["mspotFormLabel","",3,"for"]],template:function(o,i){o&1&&(DM(Z$3),eM$1(0,te$3,3,4,"label",0),ta$3(1,"div")(2,"mspot-form-field-base",1),EM(3),ta$3(4,"span",2),EM(5,1),Pd$1()()()),o&2&&(tM$1(i.label?0:-1),uT(2),jv$1("invalid",i.control?.touched&&i.control?.invalid)("errors",i.control?.errors)("hideError",i.hideError())("hideErrorSuffix",i.hideErrorSuffix())("customErrorClass",i.customErrorClass()));},dependencies:[I$4,M$7],encapsulation:2});}}return e})(),je$2=(()=>{class e extends ae$2{static{this.\u0275fac=(()=>{let t;return function(i){return (t||(t=Wg$1(e)))(i||e)}})();}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-form-field-std","tooltip",""]],inputs:{tooltip:"tooltip"},features:[pv$1],ngContentSelectors:oe$3,decls:8,vars:4,consts:[[1,"flex","items-center"],["mspotFormLabel","",3,"for"],[1,"mb-1",3,"text"],[3,"invalid","errors"],["suffix",""]],template:function(o,i){o&1&&(DM(ie$4),ta$3(0,"div",0),eM$1(1,re$1,2,2,"label",1),eM$1(2,ne$3,1,1,"mspot-tooltip",2),Pd$1(),ta$3(3,"div")(4,"mspot-form-field-base",3),EM(5),ta$3(6,"span",4),EM(7,1),Pd$1()()()),o&2&&(uT(),tM$1(i.label?1:-1),uT(),tM$1(i.tooltip?2:-1),uT(2),jv$1("invalid",i.control?.touched&&i.control?.invalid)("errors",i.control?.errors));},dependencies:[I$4,K$f,M$7],encapsulation:2});}}return e})();var fn$4="firebasestorage.googleapis.com",hn$3="storageBucket",jn$2=120*1e3,Wn$3=600*1e3,Gn$3=1e3;var Z$2=class t extends P$f{constructor(n,c,s=0){super(pt$5(n),`Firebase Storage: ${c} (${pt$5(n)})`),this.status_=s,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,t.prototype);}get status(){return this.status_}set status(n){this.status_=n;}_codeEquals(n){return pt$5(n)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(n){this.customData.serverResponse=n,this.customData.serverResponse?this.message=`${this._baseMessage} 1269${this.customData.serverResponse}`:this.message=this._baseMessage;}},K$5=(function(t){return t.UNKNOWN="unknown",t.OBJECT_NOT_FOUND="object-not-found",t.BUCKET_NOT_FOUND="bucket-not-found",t.PROJECT_NOT_FOUND="project-not-found",t.QUOTA_EXCEEDED="quota-exceeded",t.UNAUTHENTICATED="unauthenticated",t.UNAUTHORIZED="unauthorized",t.UNAUTHORIZED_APP="unauthorized-app",t.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",t.INVALID_CHECKSUM="invalid-checksum",t.CANCELED="canceled",t.INVALID_EVENT_NAME="invalid-event-name",t.INVALID_URL="invalid-url",t.INVALID_DEFAULT_BUCKET="invalid-default-bucket",t.NO_DEFAULT_BUCKET="no-default-bucket",t.CANNOT_SLICE_BLOB="cannot-slice-blob",t.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",t.NO_DOWNLOAD_URL="no-download-url",t.INVALID_ARGUMENT="invalid-argument",t.INVALID_ARGUMENT_COUNT="invalid-argument-count",t.APP_DELETED="app-deleted",t.INVALID_ROOT_OPERATION="invalid-root-operation",t.INVALID_FORMAT="invalid-format",t.INTERNAL_ERROR="internal-error",t.UNSUPPORTED_ENVIRONMENT="unsupported-environment",t})(K$5||{});function pt$5(t){return "storage/"+t}function Et$4(){let t="An unknown error occurred, please check the error payload for server response.";return new Z$2(K$5.UNKNOWN,t)}function Vn$2(t){return new Z$2(K$5.OBJECT_NOT_FOUND,"Object '"+t+"' does not exist.")}function Xn$2(t){return new Z$2(K$5.QUOTA_EXCEEDED,"Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function Kn$3(){let t="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new Z$2(K$5.UNAUTHENTICATED,t)}function Zn$3(){return new Z$2(K$5.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function Yn$2(t){return new Z$2(K$5.UNAUTHORIZED,"User does not have permission to access '"+t+"'.")}function dn$3(){return new Z$2(K$5.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function pn$3(){return new Z$2(K$5.CANCELED,"User canceled the upload/download.")}function Jn$3(t){return new Z$2(K$5.INVALID_URL,"Invalid URL '"+t+"'.")}function er$3(t){return new Z$2(K$5.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function tr$3(){return new Z$2(K$5.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+hn$3+"' property when initializing the app?")}function gn$3(){return new Z$2(K$5.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function nr$3(){return new Z$2(K$5.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}function rr$4(){return new Z$2(K$5.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function sr$3(t){return new Z$2(K$5.UNSUPPORTED_ENVIRONMENT,`${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function _t$4(t){return new Z$2(K$5.INVALID_ARGUMENT,t)}function _n$2(){return new Z$2(K$5.APP_DELETED,"The Firebase app was deleted.")}function ir$4(t){return new Z$2(K$5.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function Ve$2(t,n){return new Z$2(K$5.INVALID_FORMAT,"String does not match format '"+t+"': "+n)}function Ge$1(t){throw new Z$2(K$5.INTERNAL_ERROR,"Internal error: "+t)}var _e$2=class t{constructor(n,c){this.bucket=n,this.path_=c;}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){let n=encodeURIComponent;return "/b/"+n(this.bucket)+"/o/"+n(this.path)}bucketOnlyServerUrl(){return "/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(n,c){let s;try{s=t.makeFromUrl(n,c);}catch{return new t(n,"")}if(s.path==="")return s;throw er$3(n)}static makeFromUrl(n,c){let s=null,e="([A-Za-z0-9.\\-_]+)";function r(I){I.path.charAt(I.path.length-1)==="/"&&(I.path_=I.path_.slice(0,-1));}let l="(/(.*))?$",u=new RegExp("^gs://"+e+l,"i"),_={bucket:1,path:3};function b(I){I.path_=decodeURIComponent(I.path);}let i="v[A-Za-z0-9_]+",a=c.replace(/[.]/g,"\\."),o="(/([^?#]*).*)?$",f=new RegExp(`^https?://${a}/${i}/b/${e}/o${o}
1269`,"i"),m={bucket:1,path:3},T=c===fn$4?"(?:storage.googleapis.com|storage.cloud.google.com)":c,k="([^?#]*)",w=new RegExp(`^https?://${T}/${e}/${k}`,"i"),S=[{regex:u,indices:_,postModify:r},{regex:f,indices:m,postModify:b},{regex:w,indices:{bucket:1,path:2},postModify:b}];for(let I=0;I<S.length;I++){let B=S[I],A=B.regex.exec(n);if(A){let O=A[B.indices.bucket],d=A[B.indices.path];d||(d=""),s=new t(O,d),B.postModify(s);break}}if(s==null)throw Jn$3(n);return s}},mt$4=class mt{constructor(n){this.promise_=Promise.reject(n);}getPromise(){return this.promise_}cancel(n=false){}};function or$2(t,n,c){let s=1,e=null,r=null,l=false,u=0;function _(){return u===2}let b=false;function i(...k){b||(b=true,n.apply(null,k));}function a(k){e=setTimeout(()=>{e=null,t(f,_());},k);}function o(){r&&clearTimeout(r);}function f(k,...w){if(b){o();return}if(k){o(),i.call(null,k,...w);return}if(_()||l){o(),i.call(null,k,...w);return}s<64&&(s*=2);let S;u===1?(u=2,S=0):S=(s+Math.random())*1e3,a(S);}let m=false;function T(k){m||(m=true,o(),!b&&(e!==null?(k||(u=2),clearTimeout(e),a(0)):k||(u=1)));}return a(0),r=setTimeout(()=>{l=true,T(true);},c),T}function ar$2(t){t(false);}function lr$3(t){return t!==void 0}function ur$3(t){return typeof t=="function"}function cr$3(t){return typeof t=="object"&&!Array.isArray(t)}function nt$4(t){return typeof t=="string"||t instanceof String}function rn$3(t){return Rt$4()&&t instanceof Blob}function Rt$4(){return typeof Blob<"u"}function sn$3(t,n,c,s){if(s<n)throw _t$4(`Invalid value for '${t}'. Expected ${n} or greater.`);if(s>c)throw _t$4(`Invalid value for '${t}'. Expected ${c} or less.`)}function qe$1(t,n,c){let s=n;return c==null&&(s=`https://${n}`),`${c}://${s}/v0${t}`}function mn$3(t){let n=encodeURIComponent,c="?";for(let s in t)if(t.hasOwnProperty(s)){let e=n(s)+"="+n(t[s]);c=c+e+"&";}return c=c.slice(0,-1),c}var Le$3=(function(t){return t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT",t})(Le$3||{});function An$2(t,n){let c=t>=500&&t<600,e=[408,429].indexOf(t)!==-1,r=n.indexOf(t)!==-1;return c||e||r}var At$3=class At{constructor(n,c,s,e,r,l,u,_,b,i,a,o=true,f=false){this.url_=n,this.method_=c,this.headers_=s,this.body_=e,this.successCodes_=r,this.additionalRetryCodes_=l,this.callback_=u,this.errorCallback_=_,this.timeout_=b,this.progressCallback_=i,this.connectionFactory_=a,this.retry=o,this.isUsingEmulator=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=false,this.appDelete_=false,this.promise_=new Promise((m,T)=>{this.resolve_=m,this.reject_=T,this.start_();});}start_(){let n=(s,e)=>{if(e){s(false,new De$3(false,null,true));return}let r=this.connectionFactory_();this.pendingConnection_=r;let l=u=>{let _=u.loaded,b=u.lengthComputable?u.total:-1;this.progressCallback_!==null&&this.progressCallback_(_,b);};this.progressCallback_!==null&&r.addUploadProgressListener(l),r.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&r.removeUploadProgressListener(l),this.pendingConnection_=null;let u=r.getErrorCode()===Le$3.NO_ERROR,_=r.getStatus();if(!u||An$2(_,this.additionalRetryCodes_)&&this.retry){let i=r.getErrorCode()===Le$3.ABORT;s(false,new De$3(false,null,i));return}let b=this.successCodes_.indexOf(_)!==-1;s(true,new De$3(b,r));});},c=(s,e)=>{let r=this.resolve_,l=this.reject_,u=e.connection;if(e.wasSuccessCode)try{let _=this.callback_(u,u.getResponse());lr$3(_)?r(_):r();}catch(_){l(_);}else if(u!==null){let _=Et$4();_.serverResponse=u.getErrorText(),this.errorCallback_?l(this.errorCallback_(u,_)):l(_);}else if(e.canceled){let _=this.appDelete_?_n$2():pn$3();l(_);}else {let _=dn$3();l(_);}};this.canceled_?c(false,new De$3(false,null,true)):this.backoffId_=or$2(n,c,this.timeout_);}getPromise(){return this.promise_}cancel(n){this.canceled_=true,this.appDelete_=n||false,this.backoffId_!==null&&ar$2(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort();}},De$3=class De{constructor(n,c,s){this.wasSuccessCode=n,this.connection=c,this.canceled=!!s;}};function fr$3(t,n){n!==null&&n.length>0&&(t.Authorization="Firebase "+n);}function hr$3(t,n){t["X-Firebase-Storage-Version"]="webjs/"+(n??"AppManager");}function dr$3(t,n){n&&(t["X-Firebase-GMPID"]=n);}function pr$3(t,n){n!==null&&(t["X-Firebase-AppCheck"]=n);}
1269function gr$4(t,n,c,s,e,r,l=true,u=false){let _=mn$3(t.urlParams),b=t.url+_,i=Object.assign({},t.headers);return dr$3(i,n),fr$3(i,c),hr$3(i,r),pr$3(i,s),new At$3(b,t.method,i,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,e,l,u)}function _r$3(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function mr$3(...t){let n=_r$3();if(n!==void 0){let c=new n;for(let s=0;s<t.length;s++)c.append(t[s]);return c.getBlob()}else {if(Rt$4())return new Blob(t);throw new Z$2(K$5.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function Ar$3(t,n,c){return t.webkitSlice?t.webkitSlice(n,c):t.mozSlice?t.mozSlice(n,c):t.slice?t.slice(n,c):null}function br$3(t){if(typeof atob>"u")throw sr$3("base-64");return atob(t)}var me$3={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},Xe$1=class Xe{constructor(n,c){this.data=n,this.contentType=c||null;}};function bn$2(t,n){switch(t){case me$3.RAW:return new Xe$1(wn$1(n));case me$3.BASE64:case me$3.BASE64URL:return new Xe$1(yn$2(t,n));case me$3.DATA_URL:return new Xe$1(yr$3(n),vr$3(n))}throw Et$4()}function wn$1(t){let n=[];for(let c=0;c<t.length;c++){let s=t.charCodeAt(c);if(s<=127)n.push(s);else if(s<=2047)n.push(192|s>>6,128|s&63);else if((s&64512)===55296)if(!(c<t.length-1&&(t.charCodeAt(c+1)&64512)===56320))n.push(239,191,189);else {let r=s,l=t.charCodeAt(++c);s=65536|(r&1023)<<10|l&1023,n.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63);}else (s&64512)===56320?n.push(239,191,189):n.push(224|s>>12,128|s>>6&63,128|s&63);}return new Uint8Array(n)}function wr$2(t){let n;try{n=decodeURIComponent(t);}catch{throw Ve$2(me$3.DATA_URL,"Malformed data URL.")}return wn$1(n)}function yn$2(t,n){switch(t){case me$3.BASE64:{let e=n.indexOf("-")!==-1,r=n.indexOf("_")!==-1;if(e||r)throw Ve$2(t,"Invalid character '"+(e?"-":"_")+"' found: is it base64url encoded?");break}case me$3.BASE64URL:{let e=n.indexOf("+")!==-1,r=n.indexOf("/")!==-1;if(e||r)throw Ve$2(t,"Invalid character '"+(e?"+":"/")+"' found: is it base64 encoded?");n=n.replace(/-/g,"+").replace(/_/g,"/");break}}let c;try{c=br$3(n);}catch(e){throw e.message.includes("polyfill")?e:Ve$2(t,"Invalid character found")}let s=new Uint8Array(c.length);for(let e=0;e<c.length;e++)s[e]=c.charCodeAt(e);return s}var tt$3=class tt{constructor(n){this.base64=false,this.contentType=null;let c=n.match(/^data:([^,]+)?,/);if(c===null)throw Ve$2(me$3.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let s=c[1]||null;s!=null&&(this.base64=Er$3(s,";base64"),this.contentType=this.base64?s.substring(0,s.length-7):s),this.rest=n.substring(n.indexOf(",")+1);}};function yr$3(t){let n=new tt$3(t);return n.base64?yn$2(me$3.BASE64,n.rest):wr$2(n.rest)}function vr$3(t){return new tt$3(t).contentType}function Er$3(t,n){return t.length>=n.length?t.substring(t.length-n.length)===n:false}var Ke$1=class t{constructor(n,c){let s=0,e="";rn$3(n)?(this.data_=n,s=n.size,e=n.type):n instanceof ArrayBuffer?(c?this.data_=new Uint8Array(n):(this.data_=new Uint8Array(n.byteLength),this.data_.set(new Uint8Array(n))),s=this.data_.length):n instanceof Uint8Array&&(c?this.data_=n:(this.data_=new Uint8Array(n.length),this.data_.set(n)),s=n.length),this.size_=s,this.type_=e;}size(){return this.size_}type(){return this.type_}slice(n,c){if(rn$3(this.data_)){let s=this.data_,e=Ar$3(s,n,c);return e===null?null:new t(e)}else {let s=new Uint8Array(this.data_.buffer,n,c-n);return new t(s,true)}}static getBlob(...n){if(Rt$4()){let c=n.map(s=>s instanceof t?s.data_:s);return new t(mr$3.apply(null,c))}else {let c=n.map(l=>nt$4(l)?bn$2(me$3.RAW,l).data:l.data_),s=0;c.forEach(l=>{s+=l.byteLength;});let e=new Uint8Array(s),r=0;return c.forEach(l=>{for(let u=0;u<l.length;u++)e[r++]=l[u];}),new t(e,true)}}uploadData(){return this.data_}};function vn$2(t){let n;try{n=JSON.parse(t);}catch{return null}return cr$3(n)?n:null}function Rr$2(t){if(t.length===0)return null;let n=t.lastIndexOf("/");return n===-1?"":t.slice(0,n)}function Tr$3(t,n){let c=n.split("/").filter(s=>s.length>0).join("/");return t.length===0?c:t+"/"+c}function En$1(t){let n=t.lastIndexOf("/",t.length-2);return n===-1?t:t.slice(n+1)}function Ur$1(t,n){return n}var se$3=class se{constructor(n,c,s,e){this.server=n,this.local=c||n,this.writable=!!s,this.xform=e||Ur$1;}},et$4=null;function kr$2(t){return !nt$4(t)||t.length<2?t:En$1(t)}
1269function rt$4(){if(et$4)return et$4;let t=[];t.push(new se$3("bucket")),t.push(new se$3("generation")),t.push(new se$3("metageneration")),t.push(new se$3("name","fullPath",true));function n(r,l){return kr$2(l)}let c=new se$3("name");c.xform=n,t.push(c);function s(r,l){return l!==void 0?Number(l):l}let e=new se$3("size");return e.xform=s,t.push(e),t.push(new se$3("timeCreated")),t.push(new se$3("updated")),t.push(new se$3("md5Hash",null,true)),t.push(new se$3("cacheControl",null,true)),t.push(new se$3("contentDisposition",null,true)),t.push(new se$3("contentEncoding",null,true)),t.push(new se$3("contentLanguage",null,true)),t.push(new se$3("contentType",null,true)),t.push(new se$3("metadata","customMetadata",true)),et$4=t,et$4}function Ir$2(t,n){function c(){let s=t.bucket,e=t.fullPath,r=new _e$2(s,e);return n._makeStorageReference(r)}Object.defineProperty(t,"ref",{get:c});}function Cr$3(t,n,c){let s={};s.type="file";let e=c.length;for(let r=0;r<e;r++){let l=c[r];s[l.local]=l.xform(s,n[l.server]);}return Ir$2(s,t),s}function Rn$2(t,n,c){let s=vn$2(n);return s===null?null:Cr$3(t,s,c)}function xr$3(t,n,c,s){let e=vn$2(n);if(e===null||!nt$4(e.downloadTokens))return null;let r=e.downloadTokens;if(r.length===0)return null;let l=encodeURIComponent;return r.split(",").map(b=>{let i=t.bucket,a=t.fullPath,o="/b/"+l(i)+"/o/"+l(a),f=qe$1(o,c,s),m=mn$3({alt:"media",token:b});return f+m})[0]}function Tn$2(t,n){let c={},s=n.length;for(let e=0;e<s;e++){let r=n[e];r.writable&&(c[r.server]=t[r.local]);}return JSON.stringify(c)}var Te$3=class Te{constructor(n,c,s,e){this.url=n,this.method=c,this.handler=s,this.timeout=e,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[];}};function Re$2(t){if(!t)throw Et$4()}function Tt$4(t,n){function c(s,e){let r=Rn$2(t,e,n);return Re$2(r!==null),r}return c}function Sr$3(t,n){function c(s,e){let r=Rn$2(t,e,n);return Re$2(r!==null),xr$3(r,e,t.host,t._protocol)}return c}function Ye$1(t){function n(c,s){let e;return c.getStatus()===401?c.getErrorText().includes("Firebase App Check token is invalid")?e=Zn$3():e=Kn$3():c.getStatus()===402?e=Xn$2(t.bucket):c.getStatus()===403?e=Yn$2(t.path):e=s,e.status=c.getStatus(),e.serverResponse=s.serverResponse,e}return n}function Ut$2(t){let n=Ye$1(t);function c(s,e){let r=n(s,e);return s.getStatus()===404&&(r=Vn$2(t.path)),r.serverResponse=e.serverResponse,r}return c}function Un$2(t,n,c){let s=n.fullServerUrl(),e=qe$1(s,t.host,t._protocol),r="GET",l=t.maxOperationRetryTime,u=new Te$3(e,r,Tt$4(t,c),l);return u.errorHandler=Ut$2(n),u}function Or$2(t,n,c){let s=n.fullServerUrl(),e=qe$1(s,t.host,t._protocol),r="GET",l=t.maxOperationRetryTime,u=new Te$3(e,r,Sr$3(t,c),l);return u.errorHandler=Ut$2(n),u}function Pr$2(t,n){let c=n.fullServerUrl(),s=qe$1(c,t.host,t._protocol),e="DELETE",r=t.maxOperationRetryTime;function l(_,b){}let u=new Te$3(s,e,l,r);return u.successCodes=[200,204],u.errorHandler=Ut$2(n),u}function Fr$2(t,n){return t&&t.contentType||n&&n.type()||"application/octet-stream"}function kn$1(t,n,c){let s=Object.assign({},c);return s.fullPath=t.path,s.size=n.size(),s.contentType||(s.contentType=Fr$2(null,n)),s}function In$2(t,n,c,s,e){let r=n.bucketOnlyServerUrl(),l={"X-Goog-Upload-Protocol":"multipart"};function u(){let S="";for(let I=0;I<2;I++)S=S+Math.random().toString().slice(2);return S}let _=u();l["Content-Type"]="multipart/related; boundary="+_;let b=kn$1(n,s,e),i=Tn$2(b,c),a="--"+_+`\r 1270Content-Type: application/json; charset=utf-8\r 1271\r 1272`+i+`\r 1273--`+_+`\r 1274Content-Type: `+b.contentType+`\r 1275\r 1276`,o=`\r 1277--`+_+"--",f=Ke$1.getBlob(a,s,o);if(f===null)throw gn$3();let m={name:b.fullPath},T=qe$1(r,t.host,t._protocol),k="POST",w=t.maxUploadRetryTime,M=new Te$3(T,k,Tt$4(t,c),w);return M.urlParams=m,M.headers=l,M.body=f.uploadData(),M.errorHandler=Ye$1(n),M}var He$3=class He{constructor(n,c,s,e){this.current=n,this.total=c,this.finalized=!!s,this.metadata=e||null;}};function kt$4(t,n){let c=null;try{c=t.getResponseHeader("X-Goog-Upload-Status");}catch{Re$2(false);}return Re$2(!!c&&(n||["active"]).indexOf(c)!==-1),c}function Br$2(t,n,c,s,e){let r=n.bucketOnlyServerUrl(),l=kn$1(n,s,e),u={name:l.fullPath},_=qe$1(r,t.host,t._protocol),b="POST",i={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${s.size()}`,"X-Goog-Upload-Header-Content-Type":l.contentType,"Content-Type":"application/json; charset=utf-8"},a=Tn$2(l,c),o=t.maxUploadRetryTime;function f(T){kt$4(T);let k;try{k=T.getResponseHeader("X-Goog-Upload-URL");}catch{Re$2(false);}return Re$2(nt$4(k)),k}let m=new Te$3(_,b,f,o);
1277return m.urlParams=u,m.headers=i,m.body=a,m.errorHandler=Ye$1(n),m}function Mr$3(t,n,c,s){let e={"X-Goog-Upload-Command":"query"};function r(b){let i=kt$4(b,["active","final"]),a=null;try{a=b.getResponseHeader("X-Goog-Upload-Size-Received");}catch{Re$2(false);}a||Re$2(false);let o=Number(a);return Re$2(!isNaN(o)),new He$3(o,s.size(),i==="final")}let l="POST",u=t.maxUploadRetryTime,_=new Te$3(c,l,r,u);return _.headers=e,_.errorHandler=Ye$1(n),_}var on$3=256*1024;function Nr$1(t,n,c,s,e,r,l,u){let _=new He$3(0,0);if(l?(_.current=l.current,_.total=l.total):(_.current=0,_.total=s.size()),s.size()!==_.total)throw nr$3();let b=_.total-_.current,i=b;e>0&&(i=Math.min(i,e));let a=_.current,o=a+i,f="";i===0?f="finalize":b===i?f="upload, finalize":f="upload";let m={"X-Goog-Upload-Command":f,"X-Goog-Upload-Offset":`${_.current}`},T=s.slice(a,o);if(T===null)throw gn$3();function k(I,B){let A=kt$4(I,["active","final"]),O=_.current+i,d=s.size(),p;return A==="final"?p=Tt$4(n,r)(I,B):p=null,new He$3(O,d,A==="final",p)}let w="POST",M=n.maxUploadRetryTime,S=new Te$3(c,w,k,M);return S.headers=m,S.body=T.uploadData(),S.progressCallback=u||null,S.errorHandler=Ye$1(t),S}var ce$3={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function gt$4(t){switch(t){case "running":case "pausing":case "canceling":return ce$3.RUNNING;case "paused":return ce$3.PAUSED;case "success":return ce$3.SUCCESS;case "canceled":return ce$3.CANCELED;case "error":return ce$3.ERROR;default:return ce$3.ERROR}}var bt$4=class bt{constructor(n,c,s){if(ur$3(n)||c!=null||s!=null)this.next=n,this.error=c??void 0,this.complete=s??void 0;else {let r=n;this.next=r.next,this.error=r.error,this.complete=r.complete;}}};function Ne$4(t){return (...n)=>{Promise.resolve().then(()=>t(...n));}}var wt$6=class wt{constructor(){this.sent_=false,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Le$3.NO_ERROR,this.sendPromise_=new Promise(n=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=Le$3.ABORT,n();}),this.xhr_.addEventListener("error",()=>{this.errorCode_=Le$3.NETWORK_ERROR,n();}),this.xhr_.addEventListener("load",()=>{n();});});}send(n,c,s,e,r){if(this.sent_)throw Ge$1("cannot .send() more than once");if(pe$g(n)&&s&&(this.xhr_.withCredentials=true),this.sent_=true,this.xhr_.open(c,n,true),r!==void 0)for(let l in r)r.hasOwnProperty(l)&&this.xhr_.setRequestHeader(l,r[l].toString());return e!==void 0?this.xhr_.send(e):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw Ge$1("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw Ge$1("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return -1}}getResponse(){if(!this.sent_)throw Ge$1("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw Ge$1("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort();}getResponseHeader(n){return this.xhr_.getResponseHeader(n)}
1277addUploadProgressListener(n){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",n);}removeUploadProgressListener(n){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",n);}},yt$4=class yt extends wt$6{initXhr(){this.xhr_.responseType="text";}};function Ee$3(){return new yt$4}var vt$3=class vt{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(n,c,s=null){this._transferred=0,this._needToFetchStatus=false,this._needToFetchMetadata=false,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=n,this._blob=c,this._metadata=s,this._mappings=rt$4(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=e=>{if(this._request=void 0,this._chunkMultiplier=1,e._codeEquals(K$5.CANCELED))this._needToFetchStatus=true,this.completeTransitions_();else {let r=this.isExponentialBackoffExpired();if(An$2(e.status,[]))if(r)e=dn$3();else {this.sleepTime=Math.max(this.sleepTime*2,Gn$3),this._needToFetchStatus=true,this.completeTransitions_();return}this._error=e,this._transition("error");}},this._metadataErrorHandler=e=>{this._request=void 0,e._codeEquals(K$5.CANCELED)?this.completeTransitions_():(this._error=e,this._transition("error"));},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r,this._start();}),this._promise.then(null,()=>{});}_makeProgressCallback(){let n=this._transferred;return c=>this._updateProgress(n+c)}_shouldDoResumable(n){return n.size()>256*1024}_start(){this._state==="running"&&this._request===void 0&&(this._resumable?this._uploadUrl===void 0?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload();},this.sleepTime):this._oneShotUpload());}_resolveToken(n){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([c,s])=>{switch(this._state){case "running":n(c,s);break;case "canceling":this._transition("canceled");break;case "pausing":this._transition("paused");break}});}_createResumable(){this._resolveToken((n,c)=>{let s=Br$2(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),e=this._ref.storage._makeRequest(s,Ee$3,n,c);this._request=e,e.getPromise().then(r=>{this._request=void 0,this._uploadUrl=r,this._needToFetchStatus=false,this.completeTransitions_();},this._errorHandler);});}_fetchStatus(){let n=this._uploadUrl;this._resolveToken((c,s)=>{let e=Mr$3(this._ref.storage,this._ref._location,n,this._blob),r=this._ref.storage._makeRequest(e,Ee$3,c,s);this._request=r,r.getPromise().then(l=>{l=l,this._request=void 0,this._updateProgress(l.current),this._needToFetchStatus=false,l.finalized&&(this._needToFetchMetadata=true),this.completeTransitions_();},this._errorHandler);});}_continueUpload(){let n=on$3*this._chunkMultiplier,c=new He$3(this._transferred,this._blob.size()),s=this._uploadUrl;this._resolveToken((e,r)=>{let l;try{l=Nr$1(this._ref._location,this._ref.storage,s,this._blob,n,this._mappings,c,this._makeProgressCallback());}catch(_){this._error=_,this._transition("error");return}let u=this._ref.storage._makeRequest(l,Ee$3,e,r,false);this._request=u,u.getPromise().then(_=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(_.current),_.finalized?(this._metadata=_.metadata,this._transition("success")):this.completeTransitions_();},this._errorHandler);});}_increaseMultiplier(){on$3*this._chunkMultiplier*2<32*1024*1024&&(this._chunkMultiplier*=2);}_fetchMetadata(){this._resolveToken((n,c)=>{let s=Un$2(this._ref.storage,this._ref._location,this._mappings),e=this._ref.storage._makeRequest(s,Ee$3,n,c);this._request=e,e.getPromise().then(r=>{this._request=void 0,this._metadata=r,this._transition("success");},this._metadataErrorHandler);});}_oneShotUpload(){this._resolveToken((n,c)=>{let s=In$2(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),e=this._ref.storage._makeRequest
1277(s,Ee$3,n,c);this._request=e,e.getPromise().then(r=>{this._request=void 0,this._metadata=r,this._updateProgress(this._blob.size()),this._transition("success");},this._errorHandler);});}_updateProgress(n){let c=this._transferred;this._transferred=n,this._transferred!==c&&this._notifyObservers();}_transition(n){if(this._state!==n)switch(n){case "canceling":case "pausing":this._state=n,this._request!==void 0?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case "running":let c=this._state==="paused";this._state=n,c&&(this._notifyObservers(),this._start());break;case "paused":this._state=n,this._notifyObservers();break;case "canceled":this._error=pn$3(),this._state=n,this._notifyObservers();break;case "error":this._state=n,this._notifyObservers();break;case "success":this._state=n,this._notifyObservers();break}}completeTransitions_(){switch(this._state){case "pausing":this._transition("paused");break;case "canceling":this._transition("canceled");break;case "running":this._start();break}}get snapshot(){let n=gt$4(this._state);return {bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:n,metadata:this._metadata,task:this,ref:this._ref}}on(n,c,s,e){let r=new bt$4(c||void 0,s||void 0,e||void 0);return this._addObserver(r),()=>{this._removeObserver(r);}}then(n,c){return this._promise.then(n,c)}catch(n){return this.then(null,n)}_addObserver(n){this._observers.push(n),this._notifyObserver(n);}_removeObserver(n){let c=this._observers.indexOf(n);c!==-1&&this._observers.splice(c,1);}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(c=>{this._notifyObserver(c);});}_finishPromise(){if(this._resolve!==void 0){let n=true;switch(gt$4(this._state)){case ce$3.SUCCESS:Ne$4(this._resolve.bind(null,this.snapshot))();break;case ce$3.CANCELED:case ce$3.ERROR:let c=this._reject;Ne$4(c.bind(null,this._error))();break;default:n=false;break}n&&(this._resolve=void 0,this._reject=void 0);}}_notifyObserver(n){switch(gt$4(this._state)){case ce$3.RUNNING:case ce$3.PAUSED:n.next&&Ne$4(n.next.bind(n,this.snapshot))();break;case ce$3.SUCCESS:n.complete&&Ne$4(n.complete.bind(n))();break;case ce$3.CANCELED:case ce$3.ERROR:n.error&&Ne$4(n.error.bind(n,this._error))();break;default:n.error&&Ne$4(n.error.bind(n,this._error))();}}resume(){let n=this._state==="paused"||this._state==="pausing";return n&&this._transition("running"),n}pause(){let n=this._state==="running";return n&&this._transition("pausing"),n}cancel(){let n=this._state==="running"||this._state==="pausing";return n&&this._transition("canceling"),n}};var Qe$2=class t{constructor(n,c){this._service=n,c instanceof _e$2?this._location=c:this._location=_e$2.makeFromUrl(c,n.host);}toString(){return "gs://"+this._location.bucket+"/"+this._location.path}_newRef(n,c){return new t(n,c)}get root(){let n=new _e$2(this._location.bucket,"");return this._newRef(this._service,n)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return En$1(this._location.path)}get storage(){return this._service}get parent(){let n=Rr$2(this._location.path);if(n===null)return null;let c=new _e$2(this._location.bucket,n);return new t(this._service,c)}_throwIfRoot(n){if(this._location.path==="")throw ir$4(n)}};function Dr$2(t,n,c){t._throwIfRoot("uploadBytes");let s=In$2(t.storage,t._location,rt$4(),new Ke$1(n,true),c);return t.storage.makeRequestWithTokens(s,Ee$3).then(e=>({metadata:e,ref:t}))}function Lr$2(t,n,c){return t._throwIfRoot("uploadBytesResumable"),new vt$3(t,new Ke$1(n),c)}function Hr$2(t,n,c=me$3.RAW,s){t._throwIfRoot("uploadString");let e=bn$2(c,n),r=r$d({},s);return r.contentType==null&&e.contentType!=null&&(r.contentType=e.contentType),Dr$2(t,e.data,r)}function Qr$2(t){t._throwIfRoot("getMetadata");let n=Un$2(t.storage,t._location,rt$4());return t.storage.makeRequestWithTokens(n,Ee$3)}function qr$2(t){t._throwIfRoot("getDownloadURL");let n=Or$2(t.storage,t._location,rt$4());return t.storage.makeRequestWithTokens(n,Ee$3).then(c=>{if(c===null)throw rr$4();return c})}function zr$3(t){t._throwIfRoot("deleteObject");let n=Pr$2(t.storage,t._location);return t.storage.makeRequestWithTokens(n,Ee$3)}function $r$2(t,n){let c=Tr$3(t._location.path,n),s=new _e$2(t._location.bucket,c);return new Qe$2(t.storage,s)}function jr$2(t){return /^[A-Za-z]+:\/\//.test(t)}function Wr$2(t,n){return new Qe$2(t,n)}function Cn$1(t,n){if(t instanceof Ze$3){let c=t;if(c._bucket==null)throw tr$3();let s=new Qe$2(c,c._bucket);return n!=null?Cn$1(s,n):s}else return n!==void 0?$r$2(t,n):t}function Gr$2(t,n){if(n&&jr$2(n)){if(t instanceof Ze$3)return Wr$2(t,n);throw _t$4("To use ref(service, url), the first argument must be a Storage instance.")}else return Cn$1(t,n)}function ln$3(t,n){let c=n?.[hn$3];return c==null?null:_e$2.makeFromBucketSpec(c,t)}function Vr$3(t,n,c,s={}){t.host=`${n}:${c}`;let e=pe$g(n);e&&(xn$7(`https://${t.host}/b`),Fn$a("Storage",true)),t._isUsingEmulator=true,t._protocol=e?"https":"http";let{mockUserToken:r}=s;r&&(t._overrideAuthToken=typeof r=="string"?r:Fc$2(r,t.app.options.projectId));}var Ze$3=class Ze{constructor(n,c,s,e,r,l=false){this.app=n,this._authProvider=c,this._appCheckProvider=s,this._url=e,this._firebaseVersion=r,this._isUsingEmulator=l,this._bucket=null,this._host=fn$4,this._protocol="https",this._appId=null,this._deleted=false,this._maxOperationRetryTime=jn$2,this._maxUploadRetryTime=Wn$3,this._requests=new Set,e!=null?this._bucket=_e$2.makeFromBucketSpec(e,this._host):this._bucket=ln$3(this._host,this.app.options);}get host(){return this._host}set host(n){this._host=n,this._url!=null?this._bucket=_e$2.makeFromBucketSpec(this._url,n):this._bucket=ln$3(n,this.app.options);}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(n){sn$3("time",0,Number.POSITIVE_INFINITY,n),this._maxUploadRetryTime=n;}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(n){sn$3("time",0,Number.POSITIVE_INFINITY,n),this._maxOperationRetryTime=n;}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let n=this._authProvider.getImmediate({optional:true});if(n){let c=await n.getToken();if(c!==null)return c.accessToken}return null}async _getAppCheckToken(){if(E$m(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let n=this._appCheckProvider.getImmediate({optional:true});return n?(await n.getToken()).token:null}_delete(){return this._deleted||(this._deleted=true,this._requests.forEac
1277h(n=>n.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(n){return new Qe$2(this,n)}_makeRequest(n,c,s,e,r=true){if(this._deleted)return new mt$4(_n$2());{let l=gr$4(n,this._appId,s,e,c,this._firebaseVersion,r,this._isUsingEmulator);return this._requests.add(l),l.getPromise().then(()=>this._requests.delete(l),()=>this._requests.delete(l)),l}}async makeRequestWithTokens(n,c){let[s,e]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(n,c,s,e).getPromise()}},un$3="@firebase/storage",cn$3="0.14.0";var xn$1="storage";function cs$2(t,n,c,s){return t=p$g(t),Hr$2(t,n,c,s)}function fs$2(t,n,c){return t=p$g(t),Lr$2(t,n,c)}function hs$2(t){return t=p$g(t),Qr$2(t)}function ds$2(t){return t=p$g(t),qr$2(t)}function ps$2(t){return t=p$g(t),zr$3(t)}function gs$2(t,n){return t=p$g(t),Gr$2(t,n)}function _s$2(t=or$8(),n){t=p$g(t);let s=xt$e(t,xn$1).getImmediate({identifier:n}),e=xc$2("storage");return e&&Xr$2(s,...e),s}function Xr$2(t,n,c,s={}){Vr$3(t,n,c,s);}function Kr$2(t,{instanceIdentifier:n}){let c=t.getProvider("app").getImmediate(),s=t.getProvider("auth-internal"),e=t.getProvider("app-check-internal");return new Ze$3(c,s,e,n,ue$a)}function Zr$2(){ce$c(new O$s(xn$1,Kr$2,"PUBLIC").setMultipleInstances(true)),ae$e(un$3,cn$3,""),ae$e(un$3,cn$3,"esm2020");}Zr$2();var Yr$2=new b$g("Firebase Storage");function Rs$2(t){return fo$3([{provide:Yr$2,useFactory:t}])}function Ts$2(t){return Ht$a(new N$d(n=>{let c=s=>{n.next({progress:s.totalBytes?s.bytesTransferred/s.totalBytes*100:0,snapshot:s});};return c(t.snapshot),t.on("state_changed",c,s=>n.error(s),()=>{c(t.snapshot),n.complete();})}))}function Jr$2(t,n){return n.forEach(function(c){c&&typeof c!="string"&&!Array.isArray(c)&&Object.keys(c).forEach(function(s){if(s!=="default"&&!(s in t)){var e=Object.getOwnPropertyDescriptor(c,s);Object.defineProperty(t,s,e.get?e:{enumerable:true,get:function(){return c[s]}});}});}),Object.freeze(t)}function On$1(t,n){return new Promise(function(c,s){let e;return es$2(t).then(function(r){try{return e=r,c(new Blob([n.slice(0,2),e,n.slice(2)],{type:"image/jpeg"}))}catch(l){return s(l)}},s)})}var es$2=t=>new Promise((n,c)=>{let s=new FileReader;s.addEventListener("load",({target:{result:e}})=>{let r=new DataView(e),l=0;if(r.getUint16(l)!==65496)return c("not a valid JPEG");for(l+=2;;){let u=r.getUint16(l);if(u===65498)break;let _=r.getUint16(l+2);if(u===65505&&r.getUint32(l+4)===1165519206){let b=l+10,i;switch(r.getUint16(b)){case 18761:i=true;break;case 19789:i=false;break;default:return c("TIFF header contains invalid endian")}if(r.getUint16(b+2,i)!==42)return c("TIFF header contains invalid version");let a=r.getUint32(b+4,i),o=b+a+2+12*r.getUint16(b+a,i);for(let f=b+a+2;f<o;f+=12)if(r.getUint16(f,i)==274){if(r.getUint16(f+2,i)!==3)return c("Orientation data type is invalid");if(r.getUint32(f+4,i)!==1)return c("Orientation data count is invalid");r.setUint16(f+8,1,i);break}return n(e.slice(l,l+2+_))}l+=2+_;}return n(new Blob)}),s.readAsArrayBuffer(t);}),it$4={},ts$2={get exports(){return it$4},set exports(t){it$4=t;}};(function(t){var n,c,s={};ts$2.exports=s,s.parse=function(e,r){for(var l=s.bin.readUshort,u=s.bin.readUint,_=0,b={},i=new Uint8Array(e),a=i.length-4;u(i,a)!=101010256;)a--;_=a,_+=4;var o=l(i,_+=4);l(i,_+=2);var f=u(i,_+=2),m=u(i,_+=4);_+=4,_=m;for(var T=0;T<o;T++){u(i,_),_+=4,_+=4,_+=4,u(i,_+=4),f=u(i,_+=4);var k=u(i,_+=4),w=l(i,_+=4),M=l(i,_+2),S=l(i,_+4);_+=6;var I=u(i,_+=8);_+=4,_+=w+M+S,s._readLocal(i,I,b,f,k,r);}return b},s._readLocal=function(e,r,l,u,_,b){var i=s.bin.readUshort,a=s.bin.readUint;a(e,r),i(e,r+=4),i(e,r+=2);var o=i(e,r+=2);a(e,r+=2),a(e,r+=4),r+=4;var f=i(e,r+=8),m=i(e,r+=2);r+=2;var T=s.bin.readUTF8(e,r,f);if(r+=f,r+=m,b)l[T]={size:_,csize:u};else {var k=new Uint8Array(e.buffer,r);if(o==0)l[T]=new Uint8Array(k.buffer.slice(r,r+u));else {if(o!=8)throw "unknown compression method: "+o;var w=new Uint8Array(_);s.inflateRaw(k,w),l[T]=w;}}},s.inflateRaw=function(e,r){return s.F.inflate(e,r)},s.inflate=function(e,r){return e[0],e[1],s.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),r)},s.deflate=function(e,r){r==null&&(r={level:6});var l=0,u=new Uint8Array(50+Math.floor(1.1*e.length));u[l]=120,u[l+1]=156,l+=2,l=s.F.deflateRaw(e,u,l,r.level);var _=s.adler(e,0,e.length);return u[l+0]=_>>>24&255,u[l+1]=_>>>16&255,u[l+2]=_>>>8&255,u[l+3]=_>>>0&255,new Uint8Array(u.buffer,0,l+4)},s.deflateRaw=function(e,r){r==null&&(r={level:6});var l=new Uint8Array(50+Math.floor(1.1*e.length)),u=s.F.deflateRaw(e,l,u,r.level);return new Uint8Array(l.buffer,0,u)},s.encode=function(e,r){r==null&&(r=false);var l=0,u=s.bin.writeUint,_=s.bin.writeUshort,b={};for(var i in e){var a=!s._noNeed(i)&&!r,o=e[i],f=s.crc.crc(o,0,o.length);b[i]={cpr:a,usize:o.length,crc:f,file:a?s.deflateRaw(o):o};}for(var i in b)l+=b[i].file.length+30+46+2*s.bin.sizeUTF8(i);l+=22;var m=new Uint8Array(l),T=0,k=[];for(var i in b){var w=b[i];k.push(T),T=s._writeHeader(m,T,i,w,0);}var M=0,S=T;for(var i in b)w=b[i],k.push(T),T=s._writeHeader(m,T,i,w,1,k[M++]);var I=T-S;return u(m,T,101010256),T+=4,_(m,T+=4,M),_(m,T+=2,M),u(m,T+=2,I),u(m,T+=4,S),T+=4,T+=2,m.buffer},s._noNeed=function(e){var r=e.split(".").pop().toLowerCase();return "png,jpg,jpeg,zip".indexOf(r)!=-1},s._writeHeader=function(e,r,l,u,_,b){var i=s.bin.writeUint,a=s.bin.writeUshort,o=u.file;return i(e,r,_==0?67324752:33639248),r+=4,_==1&&(r+=2),a(e,r,20),a(e,r+=2,0),a(e,r+=2,u.cpr?8:0),i(e,r+=2,0),i(e,r+=4,u.crc),i(e,r+=4,o.length),i(e,r+=4,u.usize),a(e,r+=4,s.bin.sizeUTF8(l)),a(e,r+=2,0),r+=2,_==1&&(r+=2,r+=2,i(e,r+=6,b),r+=4),r+=s.bin.writeUTF8(e,r,l),_==0&&(e.set(o,r),r+=o.length),r},s.crc={table:(function(){for(var e=new Uint32Array(256),r=0;r<256;r++){for(var l=r,u=0;u<8;u++)1&l?l=3988292384^l>>>1:l>>>=1;e[r]=l;}return e})(),update:function(e,r,l,u){for(var _=0;_<u;_++)e=s.crc.table[255&(e^r[l+_])]^e>>>8;return e},crc:function(e,r,l){return 4294967295^s.crc.update(4294967295,e,r,l)}},s.adler=function(e,r,l){for(var u=1,_=0,b=r,i=r+l;b<i;){for(var a=Math.min(b+5552,i);b<a;)_+=u+=e[b++];u%=65521,_%=65521;}return _<<16|u},s.bin={readUshort:function(e,r){return e[r]|e[r+1]<<8},writeUshort:function(e,r,l){e[r]=255&l,e[r+1]=l>>8&255;},readUint:function(e,r){return 16777216*e[r+3]+(e[r+2]<<16|e[r+1]<<8|e[r])},writeUint:function(e,r,l){e[r]=255&l,e[r+1]=l>>8&255,e[r+2]=l>>16&255,e[r+3]=l>>24&255;},readASCII:function(e,r,l){for(var u="",_=0;_<l;_++)u+=String.fromCharCode(e[r+_]);return u},writeASCII:function(e,r,l){for(var u=0;u<l.length;u++)e[r+u]=l.charCodeAt(u);},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,r,l){for(var u,_="",b=0;b<l;b++)_+="%"+s.bin.pad(e[r+b].toString(16));try{u=decodeURIComponent(_);}catch{return s.bin.readASCII(e,r,l)}return u},writeUTF8:function(e,r,l){for(var u=l.length,_=0,b=0;b<u;b++){var i=l.charCodeAt(b);if((4294967168&i)==0)e[r+_]=i,_++;else if((4294965248&i)==0)e[r+_]=192|i>>6,e[r+_+1]=128|i>>0&63,_+=2;else if((4294901760&i)==0)e[r+_]=224|i>>12,e[r+_+1]=128|i>>6&63,e[r+_+2]=128|i>>0&63,_+=3;else {if((4292870144&i)!=0)throw "e";e[r+_]=240|i>>18,e[r+_+1]=128|i>>12&63,e[r+_+2]=128|i>>6&63,e[r+_+3]=128|i>>0&63,_+=4;}}return _},sizeUTF8:function(e){for(var r=e.length,l=0,u=0;u<r;u++){var _=e.charCodeAt(u);if((4294967168&_)==0)l++;else if((4294965248&_)==0)l+=2;else if((4294901760&_)==0)l+=3;else {if((4292870144&_)!=0)throw "e";l+=4;}}return l}},s.F={},s.F.deflateRaw=function(e,r,l,u){var _=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][u],b=s.F.U,i=s.F._goodIndex;s.F._hash;var a=s.F._putsE,o=0,f=l<<3,m=0,T=e.length;if(u==0){for(;o<T;)a(r,f,o+(R=Math.min(65535,T-o))==T?1:0),f=s.F._copyExact(e,o,R,r,f+8),o+=R;return f>>>3}var k=b.lits,w=b.strt,M=b.prev,S=0,I=0,B=0,A=0,O=0,d=0;for(T>2&&(w[d=s.F._hash(e,0)]=0),o=0;o<T;o++){if(O=d,o+1<T-2){d=s.F._hash(e,o+1);var p=o+1&32767;M[p]=w[d],w[d]=p;}if(m<=o){(S>14e3||I>26697)&&T-o>100&&(m<o&&(k[S]=o-m,S+=2,m=o),f=s.F._writeBlock(o==T-1||m==T?1:0,k,S,A,e,B,o-B,r,f),S=I=A=0,B=o);var v=0;o<T-2&&(v=s.F._bestMatch(e,o,M,O,Math.min(_[2],T-o),_[3]));var R=v>>>16,E=65535&v;if(v!=0){E=65535&v;var U=i(R=v>>>16,b.of0);b.lhst[257+U]++;var y=i(E,b.df0);b.dhst[y]++,A+=b.exb[U]+b.dxb[y],k[S]=R<<23|o-m,k[S+1]=E<<16|U<<8|y,S+=2,m=o+R;}else b.lhst[e[o]]++;I++;}}for(B==o&&e.length!=0||(m<o&&(k[S]=o-m,S+=2,m=o),f=s.F._writeBlock(1,k,S,A,e,B,o-B,r,f),S=0,I=0,S=I=A=0,B=o);(7&f)!=0;)f++;return f>>>3},s.F._bestMatch=function(e,r,l,u,_,b){var i=32767&r,a=l[i],o=i-a+32768&32767;if(a==i||u!=s.F._hash(e,r-o))return 0;for(var f=0,m=0,T=Math.min(32767,r);o<=T&&--b!=0&&a!=i;){if(f==0||e[r+f]==e[r+f-o]){var k=s.F._howLong(e,r,o);if(k>f){if(m=o,(f=k)>=_)break;o+2<k&&(k=o+2);for(var w=0,M=0;M<k-2;M++){var S=r-o+M+32768&32767,I=S-l[S]+32768&32767;I>w&&(w=I,a=S);}}}o+=(i=a)-(a=l[i])+32768&32767;}return f<<16|m},s.F._howLong=function(e,r,l){if(e[r]!=e[r-l]||e[r+1]!=e[r+1-l]||e[r+2]!=e[r+2-l])return 0;var u=r,_=Math.min(e.length,r+258);for(r+=3;r<_&&e[r]==e[r-l];)r++;return r-u},s.F._hash=function(e,r){return (e[r]<<8|e[r+1])+(e[r+2]<<4)&65535},s.saved=0,s.F._writeBlock=function(e,r,l,u,_,b,i,a,o){var f,m,T,k,w,M,S,I,B,A=s.F.U,O=s.F._putsF,d=s.F._putsE;A.lhst[256]++,m=(f=s.F.getTrees())[0],T=f[1],k=f[2],w=f[3],M=f[4],S=f[5],I=f[6],B=f[7];var p=32+((o+3&7)==0?0:8-(o+3&7))+(i<<3),v=u+s.F.contSize(A.fltree,A.lhst)+s.F.contSize(A.fdtree,A.dhst),R=u+s.F.contSize(A.ltree,A.lhst)+s.F.contSize(A.dtree,A.dhst);R+=14+3*S+s.F.contSize(A.itree,A.ihst)+(2*A.ihst[16]+3*A.ihst[17]+7*A.ihst[18]);for(var E=0;E<286;E++)A.lhst[E]=0;for(E=0;E<30;E++)A.dhst[E]=0;for(E=0;E<19;E++)A.ihst[E]=0;var U=p<v&&p<R?0:v<R?1:2;if(O(a,o,e),O(a,o+1,U),o+=3,U==0){for(;(7&o)!=0;)o++;o=s.F._copyExact(_,b,i,a,o);}else {var y,x;if(U==1&&(y=A.fltree,x=A.fdtree),U==2){s.F.makeCodes(A.ltree,m),s.F.revCodes(A.ltree,m),s.F.makeCodes(A.dtree,T),s.F.revCodes(A.dtree,T),s.F.makeCodes(A.itree,k),s.F.revCodes(A.itree,k),y=A.ltree,x=A.dtree,d(a,o,w-257),d(a,o+=5,M-1),d(a,o+=5,S-4),o+=4;for(var g=0;g<S;g++)d(a,o+3*g,A.itree[1+(A.ordr[g]<<1)]);o+=3*S,o=s.F._codeTiny(I,A.itree,a,o),o=s.F._codeTiny(B,A.itree,a,o);}for(var h=b,F=0;F<l;F+=2){for(var C=r[F],N=C>>>23,Q=h+(8388607&C);h<Q;)o=s.F._writeLit(_[h++],y,a,o);if(N!=0){var L=r[F+1],H=L>>16,D=L>>8&255,P=255&L;d(a,o=s.F._writeLit(257+D,y,a,o),N-A.of0[D]),o+=A.exb[D],O(a,o=s.F._writeLit(P,x,a,o),H-A.df0[P]),o+=A.dxb[P],h+=N;}}o=s.F._writeLit(256,y,a,o);}return o},s.F._copyExact=function(e,r,l,u,_){var b=_>>>3;return u[b]=l,u[b+1]=l>>>
12778,u[b+2]=255-u[b],u[b+3]=255-u[b+1],b+=4,u.set(new Uint8Array(e.buffer,r,l),b),_+(l+4<<3)},s.F.getTrees=function(){for(var e=s.F.U,r=s.F._hufTree(e.lhst,e.ltree,15),l=s.F._hufTree(e.dhst,e.dtree,15),u=[],_=s.F._lenCodes(e.ltree,u),b=[],i=s.F._lenCodes(e.dtree,b),a=0;a<u.length;a+=2)e.ihst[u[a]]++;for(a=0;a<b.length;a+=2)e.ihst[b[a]]++;for(var o=s.F._hufTree(e.ihst,e.itree,7),f=19;f>4&&e.itree[1+(e.ordr[f-1]<<1)]==0;)f--;return [r,l,o,_,i,f,u,b]},s.F.getSecond=function(e){for(var r=[],l=0;l<e.length;l+=2)r.push(e[l+1]);return r},s.F.nonZero=function(e){for(var r="",l=0;l<e.length;l+=2)e[l+1]!=0&&(r+=(l>>1)+",");return r},s.F.contSize=function(e,r){for(var l=0,u=0;u<r.length;u++)l+=r[u]*e[1+(u<<1)];return l},s.F._codeTiny=function(e,r,l,u){for(var _=0;_<e.length;_+=2){var b=e[_],i=e[_+1];u=s.F._writeLit(b,r,l,u);var a=b==16?2:b==17?3:7;b>15&&(s.F._putsE(l,u,i,a),u+=a);}return u},s.F._lenCodes=function(e,r){for(var l=e.length;l!=2&&e[l-1]==0;)l-=2;for(var u=0;u<l;u+=2){var _=e[u+1],b=u+3<l?e[u+3]:-1,i=u+5<l?e[u+5]:-1,a=u==0?-1:e[u-1];if(_==0&&b==_&&i==_){for(var o=u+5;o+2<l&&e[o+2]==_;)o+=2;(f=Math.min(o+1-u>>>1,138))<11?r.push(17,f-3):r.push(18,f-11),u+=2*f-2;}else if(_==a&&b==_&&i==_){for(o=u+5;o+2<l&&e[o+2]==_;)o+=2;var f=Math.min(o+1-u>>>1,6);r.push(16,f-3),u+=2*f-2;}else r.push(_,0);}return l>>>1},s.F._hufTree=function(e,r,l){var u=[],_=e.length,b=r.length,i=0;for(i=0;i<b;i+=2)r[i]=0,r[i+1]=0;for(i=0;i<_;i++)e[i]!=0&&u.push({lit:i,f:e[i]});var a=u.length,o=u.slice(0);if(a==0)return 0;if(a==1){var f=u[0].lit;return o=f==0?1:0,r[1+(f<<1)]=1,r[1+(o<<1)]=1,1}u.sort(function(I,B){return I.f-B.f});var m=u[0],T=u[1],k=0,w=1,M=2;for(u[0]={lit:-1,f:m.f+T.f,l:m,r:T,d:0};w!=a-1;)m=k!=w&&(M==a||u[k].f<u[M].f)?u[k++]:u[M++],T=k!=w&&(M==a||u[k].f<u[M].f)?u[k++]:u[M++],u[w++]={lit:-1,f:m.f+T.f,l:m,r:T};var S=s.F.setDepth(u[w-1],0);for(S>l&&(s.F.restrictDepth(o,l,S),S=l),i=0;i<a;i++)r[1+(o[i].lit<<1)]=o[i].d;return S},s.F.setDepth=function(e,r){return e.lit!=-1?(e.d=r,r):Math.max(s.F.setDepth(e.l,r+1),s.F.setDepth(e.r,r+1))},s.F.restrictDepth=function(e,r,l){var u=0,_=1<<l-r,b=0;for(e.sort(function(a,o){return o.d==a.d?a.f-o.f:o.d-a.d}),u=0;u<e.length&&e[u].d>r;u++){var i=e[u].d;e[u].d=r,b+=_-(1<<l-i);}for(b>>>=l-r;b>0;)(i=e[u].d)<r?(e[u].d++,b-=1<<r-i-1):u++;for(;u>=0;u--)e[u].d==r&&b<0&&(e[u].d--,b++);b!=0&&console.log("debt left");},s.F._goodIndex=function(e,r){var l=0;return r[16|l]<=e&&(l|=16),r[8|l]<=e&&(l|=8),r[4|l]<=e&&(l|=4),r[2|l]<=e&&(l|=2),r[1|l]<=e&&(l|=1),l},s.F._writeLit=function(e,r,l,u){return s.F._putsF(l,u,r[e<<1]),u+r[1+(e<<1)]},s.F.inflate=function(e,r){var l=Uint8Array;
1277if(e[0]==3&&e[1]==0)return r||new l(0);var u=s.F,_=u._bitsF,b=u._bitsE,i=u._decodeTiny,a=u.makeCodes,o=u.codes2map,f=u._get17,m=u.U,T=r==null;T&&(r=new l(e.length>>>2<<3));for(var k,w,M=0,S=0,I=0,B=0,A=0,O=0,d=0,p=0,v=0;M==0;)if(M=_(e,v,1),S=_(e,v+1,2),v+=3,S!=0){if(T&&(r=s.F._check(r,p+(1<<17))),S==1&&(k=m.flmap,w=m.fdmap,O=511,d=31),S==2){I=b(e,v,5)+257,B=b(e,v+5,5)+1,A=b(e,v+10,4)+4,v+=14;for(var R=0;R<38;R+=2)m.itree[R]=0,m.itree[R+1]=0;var E=1;for(R=0;R<A;R++){var U=b(e,v+3*R,3);m.itree[1+(m.ordr[R]<<1)]=U,U>E&&(E=U);}v+=3*A,a(m.itree,E),o(m.itree,E,m.imap),k=m.lmap,w=m.dmap,v=i(m.imap,(1<<E)-1,I+B,e,v,m.ttree);var y=u._copyOut(m.ttree,0,I,m.ltree);O=(1<<y)-1;var x=u._copyOut(m.ttree,I,B,m.dtree);d=(1<<x)-1,a(m.ltree,y),o(m.ltree,y,k),a(m.dtree,x),o(m.dtree,x,w);}for(;;){var g=k[f(e,v)&O];v+=15&g;var h=g>>>4;if(!(h>>>8))r[p++]=h;else {if(h==256)break;var F=p+h-254;if(h>264){var C=m.ldef[h-257];F=p+(C>>>3)+b(e,v,7&C),v+=7&C;}var N=w[f(e,v)&d];v+=15&N;var Q=N>>>4,L=m.ddef[Q],H=(L>>>4)+_(e,v,15&L);for(v+=15&L,T&&(r=s.F._check(r,p+(1<<17)));p<F;)r[p]=r[p++-H],r[p]=r[p++-H],r[p]=r[p++-H],r[p]=r[p++-H];p=F;}}}else {(7&v)!=0&&(v+=8-(7&v));var D=4+(v>>>3),P=e[D-4]|e[D-3]<<8;T&&(r=s.F._check(r,p+P)),r.set(new l(e.buffer,e.byteOffset+D,P),p),v=D+P<<3,p+=P;}return r.length==p?r:r.slice(0,p)},s.F._check=function(e,r){var l=e.length;if(r<=l)return e;var u=new Uint8Array(Math.max(l<<1,r));return u.set(e,0),u},s.F._decodeTiny=function(e,r,l,u,_,b){for(var i=s.F._bitsE,a=s.F._get17,o=0;o<l;){var f=e[a(u,_)&r];_+=15&f;var m=f>>>4;if(m<=15)b[o]=m,o++;else {var T=0,k=0;m==16?(k=3+i(u,_,2),_+=2,T=b[o-1]):m==17?(k=3+i(u,_,3),_+=3):m==18&&(k=11+i(u,_,7),_+=7);for(var w=o+k;o<w;)b[o]=T,o++;}}return _},s.F._copyOut=function(e,r,l,u){for(var _=0,b=0,i=u.length>>>1;b<l;){var a=e[b+r];u[b<<1]=0,u[1+(b<<1)]=a,a>_&&(_=a),b++;}for(;b<i;)u[b<<1]=0,u[1+(b<<1)]=0,b++;return _},s.F.makeCodes=function(e,r){for(var l,u,_,b,i=s.F.U,a=e.length,o=i.bl_count,f=0;f<=r;f++)o[f]=0;for(f=1;f<a;f+=2)o[e[f]]++;var m=i.next_code;for(l=0,o[0]=0,u=1;u<=r;u++)l=l+o[u-1]<<1,m[u]=l;for(_=0;_<a;_+=2)(b=e[_+1])!=0&&(e[_]=m[b],m[b]++);},s.F.codes2map=function(e,r,l){for(var u=e.length,_=s.F.U.rev15,b=0;b<u;b+=2)if(e[b+1]!=0)for(var i=b>>1,a=e[b+1],o=i<<4|a,f=r-a,m=e[b]<<f,T=m+(1<<f);m!=T;)l[_[m]>>>15-r]=o,m++;},s.F.revCodes=function(e,r){for(var l=s.F.U.rev15,u=15-r,_=0;_<e.length;_+=2){var b=e[_]<<r-e[_+1];e[_]=l[b]>>>u;}},s.F._putsE=function(e,r,l){l<<=7&r;var u=r>>>3;e[u]|=l,e[u+1]|=l>>>8;},s.F._putsF=function(e,r,l){l<<=7&r;var u=r>>>3;e[u]|=l,e[u+1]|=l>>>8,e[u+2]|=l>>>16;},s.F._bitsE=function(e,r,l){return (e[r>>>3]|e[1+(r>>>3)]<<8)>>>(7&r)&(1<<l)-1},s.F._bitsF=function(e,r,l){return (e[r>>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16)>>>(7&r)&(1<<l)-1},s.F._get17=function(e,r){return (e[r>>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16)>>>(7&r)},s.F._get25=function(e,r){return (e[r>>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16|e[3+(r>>>3)]<<24)>>>(7&r)},s.F.U=(n=Uint16Array,c=Uint32Array,{next_code:new n(16),bl_count:new n(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new n(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new c(32),flmap:new n(512),fltree:[],fdmap:new n(32),fdtree:[],lmap:new n(32768),ltree:[],ttree:[],dmap:new n(32768),dtree:[],imap:new n(512),itree:[],rev15:new n(32768),lhst:new c(286),dhst:new c(30),ihst:new c(19),lits:new c(15e3),strt:new n(65536),prev:new n(32768)}),(function(){for(var e=s.F.U,r=0;r<32768;r++){var l=r;l=(4278255360&(l=(4042322160&(l=(3435973836&(l=(2863311530&l)>>>1|(1431655765&l)<<1))>>>2|(858993459&l)<<2))>>>4|(252645135&l)<<4))>>>8|(16711935&l)<<8,e.rev15[r]=(l>>>16|l<<16)>>>17;}function u(_,b,i){for(;b--!=0;)_.push(0,i);}for(r=0;r<32;r++)e.ldef[r]=e.of0[r]<<3|e.exb[r],e.ddef[r]=e.df0[r]<<4|e.dxb[r];u(e.fltree,144,8),u(e.fltree,112,9),u(e.fltree,24,7),u(e.fltree,8,8),s.F.makeCodes(e.fltree,9),s.F.codes2map(e.fltree,9,e.flmap),s.F.revCodes(e.fltree,9),u(e.fdtree,32,5),s.F.makeCodes(e.fdtree,5),s.F.codes2map(e.fdtree,5,e.fdmap),s.F.revCodes(e.fdtree,5),u(e.itree,19,0),u(e.ltree,286,0),u(e.dtree,30,0),u(e.ttree,320,0);})();})();var ns$2=Jr$2({__proto__:null,default:it$4},[it$4]),Ae$2=(function(){var t={nextZero(i,a){for(;i[a]!=0;)a++;return a},readUshort:(i,a)=>i[a]<<8|i[a+1],writeUshort(i,a,o){i[a]=o>>8&255,i[a+1]=255&o;},readUint:(i,a)=>16777216*i[a]+(i[a+1]<<16|i[a+2]<<8|i[a+3]),writeUint(i,a,o){i[a]=o>>24&255,i[a+1]=o>>16&255,i[a+2]=o>>8&255,i[a+3]=255&o;},readASCII(i,a,o){let f="";for(let m=0;m<o;m++)f+=String.fromCharCode(i[a+m]);return f},writeASCII(i,a,o){for(let f=0;f<o.length;
1277f++)i[a+f]=o.charCodeAt(f);},readBytes(i,a,o){let f=[];for(let m=0;m<o;m++)f.push(i[a+m]);return f},pad:i=>i.length<2?`0${i}`:i,readUTF8(i,a,o){let f,m="";for(let T=0;T<o;T++)m+=`%${t.pad(i[a+T].toString(16))}`;try{f=decodeURIComponent(m);}catch{return t.readASCII(i,a,o)}return f}};function n(i,a,o,f){let m=a*o,T=r(f),k=Math.ceil(a*T/8),w=new Uint8Array(4*m),M=new Uint32Array(w.buffer),{ctype:S}=f,{depth:I}=f,B=t.readUshort;if(S==6){let C=m<<2;if(I==8)for(var A=0;A<C;A+=4)w[A]=i[A],w[A+1]=i[A+1],w[A+2]=i[A+2],w[A+3]=i[A+3];if(I==16)for(A=0;A<C;A++)w[A]=i[A<<1];}else if(S==2){let C=f.tabs.tRNS;if(C==null){if(I==8)for(A=0;A<m;A++){var O=3*A;M[A]=255<<24|i[O+2]<<16|i[O+1]<<8|i[O];}if(I==16)for(A=0;A<m;A++)O=6*A,M[A]=255<<24|i[O+4]<<16|i[O+2]<<8|i[O];}else {var d=C[0];let N=C[1],Q=C[2];if(I==8)for(A=0;A<m;A++){var p=A<<2;O=3*A,M[A]=255<<24|i[O+2]<<16|i[O+1]<<8|i[O],i[O]==d&&i[O+1]==N&&i[O+2]==Q&&(w[p+3]=0);}if(I==16)for(A=0;A<m;A++)p=A<<2,O=6*A,M[A]=255<<24|i[O+4]<<16|i[O+2]<<8|i[O],B(i,O)==d&&B(i,O+2)==N&&B(i,O+4)==Q&&(w[p+3]=0);}}else if(S==3){let C=f.tabs.PLTE,N=f.tabs.tRNS,Q=N?N.length:0;if(I==1)for(var v=0;v<o;v++){var R=v*k,E=v*a;for(A=0;A<a;A++){p=E+A<<2;var U=3*(y=i[R+(A>>3)]>>7-((7&A)<<0)&1);w[p]=C[U],w[p+1]=C[U+1],w[p+2]=C[U+2],w[p+3]=y<Q?N[y]:255;}}if(I==2)for(v=0;v<o;v++)for(R=v*k,E=v*a,A=0;A<a;A++)p=E+A<<2,U=3*(y=i[R+(A>>2)]>>6-((3&A)<<1)&3),w[p]=C[U],w[p+1]=C[U+1],w[p+2]=C[U+2],w[p+3]=y<Q?N[y]:255;if(I==4)for(v=0;v<o;v++)for(R=v*k,E=v*a,A=0;A<a;A++)p=E+A<<2,U=3*(y=i[R+(A>>1)]>>4-((1&A)<<2)&15),w[p]=C[U],w[p+1]=C[U+1],w[p+2]=C[U+2],w[p+3]=y<Q?N[y]:255;if(I==8)for(A=0;A<m;A++){var y;p=A<<2,U=3*(y=i[A]),w[p]=C[U],w[p+1]=C[U+1],w[p+2]=C[U+2],w[p+3]=y<Q?N[y]:255;}}else if(S==4){if(I==8)for(A=0;A<m;A++){p=A<<2;var x=i[g=A<<1];w[p]=x,w[p+1]=x,w[p+2]=x,w[p+3]=i[g+1];}if(I==16)for(A=0;A<m;A++){var g;p=A<<2,x=i[g=A<<2],w[p]=x,w[p+1]=x,w[p+2]=x,w[p+3]=i[g+2];}}else if(S==0)for(d=f.tabs.tRNS?f.tabs.tRNS:-1,v=0;v<o;v++){let C=v*k,N=v*a;if(I==1)for(var h=0;h<a;h++){var F=(x=255*(i[C+(h>>>3)]>>>7-(7&h)&1))==255*d?0:255;M[N+h]=F<<24|x<<16|x<<8|x;}else if(I==2)for(h=0;h<a;h++)F=(x=85*(i[C+(h>>>2)]>>>6-((3&h)<<1)&3))==85*d?0:255,M[N+h]=F<<24|x<<16|x<<8|x;else if(I==4)for(h=0;h<a;h++)F=(x=17*(i[C+(h>>>1)]>>>4-((1&h)<<2)&15))==17*d?0:255,M[N+h]=F<<24|x<<16|x<<8|x;else if(I==8)for(h=0;h<a;h++)F=(x=i[C+h])==d?0:255,M[N+h]=F<<24|x<<16|x<<8|x;else if(I==16)for(h=0;h<a;h++)x=i[C+(h<<1)],F=B(i,C+(h<<1))==d?0:255,M[N+h]=F<<24|x<<16|x<<8|x;}return w}function c(i,a,o,f){let m=r(i),T=Math.ceil(o*m/8),k=new Uint8Array((T+1+i.interlace)*f);return a=i.tabs.CgBI?e(a,k):s(a,k),i.interlace==0?a=l(a,i,0,o,f):i.interlace==1&&(a=(function(M,S){let I=S.width,B=S.height,A=r(S),O=A>>3,d=Math.ceil(I*A/8),p=new Uint8Array(B*d),v=0,R=[0,0,4,0,2,0,1],E=[0,4,0,2,0,1,0],U=[8,8,8,4,4,2,2],y=[8,8,4,4,2,2,1],x=0;for(;x<7;){let h=U[x],F=y[x],C=0,N=0,Q=R[x];for(;Q<B;)Q+=h,N++;let L=E[x];for(;L<I;)L+=F,C++;let H=Math.ceil(C*A/8);l(M,S,v,C,N);let D=0,P=R[x];for(;P<B;){let q=E[x],V=v+D*H<<3;for(;q<I;){var g;if(A==1&&(g=(g=M[V>>3])>>7-(7&V)&1,p[P*d+(q>>3)]|=g<<7-((7&q)<<0)),A==2&&(g=(g=M[V>>3])>>6-(7&V)&3,p[P*d+(q>>2)]|=g<<6-((3&q)<<1)),A==4&&(g=(g=M[V>>3])>>4-(7&V)&15,p[P*d+(q>>1)]|=g<<4-((1&q)<<2)),A>=8){let $=P*d+q*O;for(let z=0;z<O;z++)p[$+z]=M[(V>>3)+z];}V+=A,q+=F;}D++,P+=h;}C*N!=0&&(v+=N*(1+H)),x+=1;}return p})(a,i)),a}function s(i,a){return e(new Uint8Array(i.buffer,2,i.length-6),a)}var e=(function(){let i={H:{}};return i.H.N=function(a,o){let f=Uint8Array,m,T,k=0,w=0,M=0,S=0,I=0,B=0,A=0,O=0,d=0;if(a[0]==3&&a[1]==0)return o||new f(0);let p=i.H,v=p.b,R=p.e,E=p.R,U=p.n,y=p.A,x=p.Z,g=p.m,h=o==null;for(h&&(o=new f(a.length>>>2<<5));k==0;)if(k=v(a,d,1),w=v(a,d+1,2),d+=3,w!=0){if(h&&(o=i.H.W(o,O+(1<<17))),w==1&&(m=g.J,T=g.h,B=511,A=31),w==2){M=R(a,d,5)+257,S=R(a,d+5,5)+1,I=R(a,d+10,4)+4,d+=14;let C=1;for(var F=0;F<38;F+=2)g.Q[F]=0,g.Q[F+1]=0;for(F=0;F<I;F++){let L=R(a,d+3*F,3);g.Q[1+(g.X[F]<<1)]=L,L>C&&(C=L);}d+=3*I,U(g.Q,C),y(g.Q,C,g.u),m=g.w,T=g.d,d=E(g.u,(1<<C)-1,M+S,a,d,g.v);let N=p.V(g.v,0,M,g.C);B=(1<<N)-1;let Q=p.V(g.v,M,S,g.D);A=(1<<Q)-1,U(g.C,N),y(g.C,N,m),U(g.D,Q),y(g.D,Q,T);}for(;;){let C=m[x(a,d)&B];d+=15&C;let N=C>>>4;if(!(N>>>8))o[O++]=N;else {if(N==256)break;{let Q=O+N-254;if(N>264){let q=g.q[N-257];Q=O+(q>>>3)+R(a,d,7&q),d+=7&q;}let L=T[x(a,d)&A];
1277d+=15&L;let H=L>>>4,D=g.c[H],P=(D>>>4)+v(a,d,15&D);for(d+=15&D;O<Q;)o[O]=o[O++-P],o[O]=o[O++-P],o[O]=o[O++-P],o[O]=o[O++-P];O=Q;}}}}else {(7&d)!=0&&(d+=8-(7&d));let C=4+(d>>>3),N=a[C-4]|a[C-3]<<8;h&&(o=i.H.W(o,O+N)),o.set(new f(a.buffer,a.byteOffset+C,N),O),d=C+N<<3,O+=N;}return o.length==O?o:o.slice(0,O)},i.H.W=function(a,o){let f=a.length;if(o<=f)return a;let m=new Uint8Array(f<<1);return m.set(a,0),m},i.H.R=function(a,o,f,m,T,k){let w=i.H.e,M=i.H.Z,S=0;for(;S<f;){let I=a[M(m,T)&o];T+=15&I;let B=I>>>4;if(B<=15)k[S]=B,S++;else {let A=0,O=0;B==16?(O=3+w(m,T,2),T+=2,A=k[S-1]):B==17?(O=3+w(m,T,3),T+=3):B==18&&(O=11+w(m,T,7),T+=7);let d=S+O;for(;S<d;)k[S]=A,S++;}}return T},i.H.V=function(a,o,f,m){let T=0,k=0,w=m.length>>>1;for(;k<f;){let M=a[k+o];m[k<<1]=0,m[1+(k<<1)]=M,M>T&&(T=M),k++;}for(;k<w;)m[k<<1]=0,m[1+(k<<1)]=0,k++;return T},i.H.n=function(a,o){let f=i.H.m,m=a.length,T,k,w,M,S=f.j;for(var I=0;I<=o;I++)S[I]=0;for(I=1;I<m;I+=2)S[a[I]]++;let B=f.K;for(T=0,S[0]=0,k=1;k<=o;k++)T=T+S[k-1]<<1,B[k]=T;for(w=0;w<m;w+=2)M=a[w+1],M!=0&&(a[w]=B[M],B[M]++);},i.H.A=function(a,o,f){let m=a.length,T=i.H.m.r;for(let k=0;k<m;k+=2)if(a[k+1]!=0){let w=k>>1,M=a[k+1],S=w<<4|M,I=o-M,B=a[k]<<I,A=B+(1<<I);for(;B!=A;)f[T[B]>>>15-o]=S,B++;}},i.H.l=function(a,o){let f=i.H.m.r,m=15-o;for(let T=0;T<a.length;T+=2){let k=a[T]<<o-a[T+1];a[T]=f[k]>>>m;}},i.H.M=function(a,o,f){f<<=7&o;let m=o>>>3;a[m]|=f,a[m+1]|=f>>>8;},i.H.I=function(a,o,f){f<<=7&o;let m=o>>>3;a[m]|=f,a[m+1]|=f>>>8,a[m+2]|=f>>>16;},i.H.e=function(a,o,f){return (a[o>>>3]|a[1+(o>>>3)]<<8)>>>(7&o)&(1<<f)-1},i.H.b=function(a,o,f){return (a[o>>>3]|a[1+(o>>>3)]<<8|a[2+(o>>>3)]<<16)>>>(7&o)&(1<<f)-1},i.H.Z=function(a,o){return (a[o>>>3]|a[1+(o>>>3)]<<8|a[2+(o>>>3)]<<16)>>>(7&o)},i.H.i=function(a,o){return (a[o>>>3]|a[1+(o>>>3)]<<8|a[2+(o>>>3)]<<16|a[3+(o>>>3)]<<24)>>>(7&o)},i.H.m=(function(){let a=Uint16Array,o=Uint32Array;return {K:new a(16),j:new a(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new a(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new o(32),J:new a(512),_:[],h:new a(32),$:[],w:new a(32768),C:[],v:[],d:new a(32768),D:[],u:new a(512),Q:[],r:new a(32768),s:new o(286),Y:new o(30),a:new o(19),t:new o(15e3),k:new a(65536),g:new a(32768)}})(),(function(){let a=i.H.m;for(var o=0;o<32768;o++){let m=o;m=(2863311530&m)>>>1|(1431655765&m)<<1,m=(3435973836&m)>>>2|(858993459&m)<<2,m=(4042322160&m)>>>4|(252645135&m)<<4,m=(4278255360&m)>>>8|(16711935&m)<<8,a.r[o]=(m>>>16|m<<16)>>>17;}function f(m,T,k){for(;T--!=0;)m.push(0,k);}for(o=0;o<32;o++)a.q[o]=a.S[o]<<3|a.T[o],a.c[o]=a.p[o]<<4|a.z[o];f(a._,144,8),f(a._,112,9),f(a._,24,7),f(a._,8,8),i.H.n(a._,9),i.H.A(a._,9,a.J),i.H.l(
1277a._,9),f(a.$,32,5),i.H.n(a.$,5),i.H.A(a.$,5,a.h),i.H.l(a.$,5),f(a.Q,19,0),f(a.C,286,0),f(a.D,30,0),f(a.v,320,0);})(),i.H.N})();function r(i){return [1,null,3,1,2,null,4][i.ctype]*i.depth}function l(i,a,o,f,m){let T=r(a),k=Math.ceil(f*T/8),w,M;T=Math.ceil(T/8);let S=i[o],I=0;if(S>1&&(i[o]=[0,0,1][S-2]),S==3)for(I=T;I<k;I++)i[I+1]=i[I+1]+(i[I+1-T]>>>1)&255;for(let B=0;B<m;B++)if(w=o+B*k,M=w+B+1,S=i[M-1],I=0,S==0)for(;I<k;I++)i[w+I]=i[M+I];else if(S==1){for(;I<T;I++)i[w+I]=i[M+I];for(;I<k;I++)i[w+I]=i[M+I]+i[w+I-T];}else if(S==2)for(;I<k;I++)i[w+I]=i[M+I]+i[w+I-k];else if(S==3){for(;I<T;I++)i[w+I]=i[M+I]+(i[w+I-k]>>>1);for(;I<k;I++)i[w+I]=i[M+I]+(i[w+I-k]+i[w+I-T]>>>1);}else {for(;I<T;I++)i[w+I]=i[M+I]+u(0,i[w+I-k],0);for(;I<k;I++)i[w+I]=i[M+I]+u(i[w+I-T],i[w+I-k],i[w+I-T-k]);}return i}function u(i,a,o){let f=i+a-o,m=f-i,T=f-a,k=f-o;return m*m<=T*T&&m*m<=k*k?i:T*T<=k*k?a:o}function _(i,a,o){o.width=t.readUint(i,a),a+=4,o.height=t.readUint(i,a),a+=4,o.depth=i[a],a++,o.ctype=i[a],a++,o.compress=i[a],a++,o.filter=i[a],a++,o.interlace=i[a],a++;}function b(i,a,o,f,m,T,k,w,M){let S=Math.min(a,m),I=Math.min(o,T),B=0,A=0;for(let x=0;x<I;x++)for(let g=0;g<S;g++)if(k>=0&&w>=0?(B=x*a+g<<2,A=(w+x)*m+k+g<<2):(B=(-w+x)*a-k+g<<2,A=x*m+g<<2),M==0)f[A]=i[B],f[A+1]=i[B+1],f[A+2]=i[B+2],f[A+3]=i[B+3];else if(M==1){var O=i[B+3]*.00392156862745098,d=i[B]*O,p=i[B+1]*O,v=i[B+2]*O,R=f[A+3]*(1/255),E=f[A]*R,U=f[A+1]*R,y=f[A+2]*R;let h=1-O,F=O+R*h,C=F==0?0:1/F;f[A+3]=255*F,f[A+0]=(d+E*h)*C,f[A+1]=(p+U*h)*C,f[A+2]=(v+y*h)*C;}else if(M==2)O=i[B+3],d=i[B],p=i[B+1],v=i[B+2],R=f[A+3],E=f[A],U=f[A+1],y=f[A+2],O==R&&d==E&&p==U&&v==y?(f[A]=0,f[A+1]=0,f[A+2]=0,f[A+3]=0):(f[A]=d,f[A+1]=p,f[A+2]=v,f[A+3]=O);else if(M==3){if(O=i[B+3],d=i[B],p=i[B+1],v=i[B+2],R=f[A+3],E=f[A],U=f[A+1],y=f[A+2],O==R&&d==E&&p==U&&v==y)continue;if(O<220&&R>20)return false}return true}return {decode:function(a){let o=new Uint8Array(a),f=8,m=t,T=m.readUshort,k=m.readUint,w={tabs:{},frames:[]},M=new Uint8Array(o.length),S,I=0,B=0,A=[137,80,78,71,13,10,26,10];for(var O=0;O<8;O++)if(o[O]!=A[O])throw "The input is not a PNG file!";for(;f<o.length;){let x=m.readUint(o,f);f+=4;let g=m.readASCII(o,f,4);if(f+=4,g=="IHDR")_(o,f,w);else if(g=="iCCP"){for(var d=f;o[d]!=0;)d++;m.readASCII(o,f,d-f),o[d+1];let h=o.slice(d+2,f+x),F=null;try{F=s(h);}catch{F=e(h);}w.tabs[g]=F;}else if(g=="CgBI")w.tabs[g]=o.slice(f,f+4);else if(g=="IDAT"){for(O=0;O<x;O++)M[I+O]=o[f+O];I+=x;}else if(g=="acTL")w.tabs[g]={num_frames:k(o,f),num_plays:k(o,f+4)},S=new Uint8Array(o.length);else if(g=="fcTL"){B!=0&&((y=w.frames[w.frames.length-1]).data=c(w,S.slice(0,B),y.rect.width,y.rect.height),B=0);let h={x:k(o,f+12),y:k(o,f+16),width:k(o,f+4),height:k(o,f+8)},F=T(o,f+22);F=T(o,f+20)/(F==0?100:F);let C={rect:h,delay:Math.round(1e3*F),dispose:o[f+24],blend:o[f+25]};w.frames.push(C);}else if(g=="fdAT"){for(O=0;O<x-4;O++)S[B+O]=o[f+O+4];B+=x-4;}else if(g=="pHYs")w.tabs[g]=[m.readUint(o,f),m.readUint(o,f+4),o[f+8]];else if(g=="cHRM")for(w.tabs[g]=[],O=0;O<8;O++)w.tabs[g].push(m.readUint(o,f+4*O));else if(g=="tEXt"||g=="zTXt"){w.tabs[g]==null&&(w.tabs[g]={});var p=m.nextZero(o,f),v=m.readASCII(o,f,p-f),R=f+x-p-1;if(g=="tEXt")U=m.readASCII(o,p+1,R);else {var E=s(o.slice(p+2,p+2+R));U=m.readUTF8(E,0,E.length);}w.tabs[g][v]=U;}else if(g=="iTXt"){w.tabs[g]==null&&(w.tabs[g]={}),p=0,d=f,p=m.nextZero(o,d),v=m.readASCII(o,d,p-d);let h=o[d=p+1];var U;o[d+1],d+=2,p=m.nextZero(o,d),m.readASCII(o,d,p-d),d=p+1,p=m.nextZero(o,d),m.readUTF8(o,d,p-d),R=x-((d=p+1)-f),h==0?U=m.readUTF8(o,d,R):(E=s(o.slice(d,d+R)),U=m.readUTF8(E,0,E.length)),w.tabs[g][v]=U;}else if(g=="PLTE")w.tabs[g]=m.readBytes(o,f,x);else if(g=="hIST"){let h=w.tabs.PLTE.length/3;for(w.tabs[g]=[],O=0;O<h;O++)w.tabs[g].push(T(o,f+2*O));}else if(g=="tRNS")w.ctype==3?w.tabs[g]=m.readBytes(o,f,x):w.ctype==0?w.tabs[g]=T(o,f):w.ctype==2&&(w.tabs[g]=[T(o,f),T(o,f+2),T(o,f+4)]);else if(g=="gAMA")w.tabs[g]=m.readUint(o,f)/1e5;else if(g=="sRGB")w.tabs[g]=o[f];else if(g=="bKGD")w.ctype==0||w.ctype==4?w.tabs[g]=[T(o,f)]:w.ctype==2||w.ctype==6?w.tabs[g]=[T(o,f),T(o,f+2),T(o,f+4)]:w.ctype==3&&(w.tabs[g]=o[f]);else if(g=="IEND")break;f+=x,m.readUint(o,f),f+=4;}var y;return B!=0&&((y=w.frames[w.frames.length-1]).data=c(w,S.slice(0,B),y.rect.width,y.rect.height)),w.data=c(w,M,w.width,w.height),delete w.compress,delete w.interlace,delete w.filter,w},toRGBA8:function(a){let o=a.width,f=a.height;if(a.tabs.acTL==null)return [n(a.data,o,f,a).buffer];let m=[];a.frames[0].data==null&&(a.frames[0].data=a.data);let T=o*f*4,k=new Uint8Array(T),w=new Uint8Array(T),M=new Uint8Array(T);for(let I=0;I<a.frames.length;
1277I++){let B=a.frames[I],A=B.rect.x,O=B.rect.y,d=B.rect.width,p=B.rect.height,v=n(B.data,d,p,a);if(I!=0)for(var S=0;S<T;S++)M[S]=k[S];if(B.blend==0?b(v,d,p,k,o,f,A,O,0):B.blend==1&&b(v,d,p,k,o,f,A,O,1),m.push(k.buffer.slice(0)),B.dispose!=0){if(B.dispose==1)b(w,d,p,k,o,f,A,O,0);else if(B.dispose==2)for(S=0;S<T;S++)k[S]=M[S];}}return m},_paeth:u,_copyTile:b,_bin:t}})();(function(){let{_copyTile:t}=Ae$2,{_bin:n}=Ae$2,c=Ae$2._paeth;var s={table:(function(){let d=new Uint32Array(256);for(let p=0;p<256;p++){let v=p;for(let R=0;R<8;R++)1&v?v=3988292384^v>>>1:v>>>=1;d[p]=v;}return d})(),update(d,p,v,R){for(let E=0;E<R;E++)d=s.table[255&(d^p[v+E])]^d>>>8;return d},crc:(d,p,v)=>4294967295^s.update(4294967295,d,p,v)};function e(d,p,v,R){p[v]+=d[0]*R>>4,p[v+1]+=d[1]*R>>4,p[v+2]+=d[2]*R>>4,p[v+3]+=d[3]*R>>4;}function r(d){return Math.max(0,Math.min(255,d))}function l(d,p){let v=d[0]-p[0],R=d[1]-p[1],E=d[2]-p[2],U=d[3]-p[3];return v*v+R*R+E*E+U*U}function u(d,p,v,R,E,U,y){y==null&&(y=1);let x=R.length,g=[];for(var h=0;h<x;h++){let P=R[h];g.push([P>>>0&255,P>>>8&255,P>>>16&255,P>>>24&255]);}for(h=0;h<x;h++){let P=4294967295;for(var F=0,C=0;C<x;C++){var N=l(g[h],g[C]);C!=h&&N<P&&(P=N,F=C);}}let Q=new Uint32Array(E.buffer),L=new Int16Array(p*v*4),H=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(h=0;h<H.length;h++)H[h]=255*((H[h]+.5)/16-.5);for(let P=0;P<v;P++)for(let q=0;q<p;q++){var D;h=4*(P*p+q),y!=2?D=[r(d[h]+L[h]),r(d[h+1]+L[h+1]),r(d[h+2]+L[h+2]),r(d[h+3]+L[h+3])]:(N=H[4*(3&P)+(3&q)],D=[r(d[h]+N),r(d[h+1]+N),r(d[h+2]+N),r(d[h+3]+N)]),F=0;let V=16777215;for(C=0;C<x;C++){let j=l(D,g[C]);j<V&&(V=j,F=C);}let $=g[F],z=[D[0]-$[0],D[1]-$[1],D[2]-$[2],D[3]-$[3]];y==1&&(q!=p-1&&e(z,L,h+4,7),P!=v-1&&(q!=0&&e(z,L,h+4*p-4,3),e(z,L,h+4*p,5),q!=p-1&&e(z,L,h+4*p+4,1))),U[h>>2]=F,Q[h>>2]=R[F];}}function _(d,p,v,R,E){E==null&&(E={});let{crc:U}=s,y=n.writeUint,x=n.writeUshort,g=n.writeASCII,h=8,F=d.frames.length>1,C,N=false,Q=33+(F?20:0);if(E.sRGB!=null&&(Q+=13),E.pHYs!=null&&(Q+=21),E.iCCP!=null&&(C=pako.deflate(E.iCCP),Q+=21+C.length+4),d.ctype==3){for(var L=d.plte.length,H=0;H<L;H++)d.plte[H]>>>24!=255&&(N=true);Q+=8+3*L+4+(N?8+1*L+4:0);}for(var D=0;D<d.frames.length;D++)F&&(Q+=38),Q+=($=d.frames[D]).cimg.length+12,D!=0&&(Q+=4);Q+=12;let P=new Uint8Array(Q),q=[137,80,78,71,13,10,26,10];for(H=0;H<8;H++)P[H]=q[H];if(y(P,h,13),h+=4,g(P,h,"IHDR"),h+=4,y(P,h,p),h+=4,y(P,h,v),h+=4,P[h]=d.depth,h++,P[h]=d.ctype,h++,P[h]=0,h++,P[h]=0,h++,P[h]=0,h++,y(P,h,U(P,h-17,17)),h+=4,E.sRGB!=null&&(y(P,h,1),h+=4,g(P,h,"sRGB"),h+=4,P[h]=E.sRGB,h++,y(P,h,U(P,h-5,5)),h+=4),E.iCCP!=null){let z=13+C.length;y(P,h,z),h+=4,g(P,h,"iCCP"),h+=4,g(P,h,"ICC profile"),h+=11,h+=2,P.set(C,h),h+=C.length,y(P,h,U(P,h-(z+4),z+4)),h+=4;}if(E.pHYs!=null&&(y(P,h,9),h+=4,g(P,h,"pHYs"),h+=4,y(P,h,E.pHYs[0]),h+=4,y(P,h,E.pHYs[1]),h+=4,P[h]=E.pHYs[2],h++,y(P,h,U(P,h-13,13)),h+=4),F&&(y(P,h,8),h+=4,g(P,h,"acTL"),h+=4,y(P,h,d.frames.length),h+=4,y(P,h,E.loop!=null?E.loop:0),h+=4,y(P,h,U(P,h-12,12)),h+=4),d.ctype==3){for(y(P,h,3*(L=d.plte.length)),h+=4,g(P,h,"PLTE"),h+=4,H=0;H<L;H++){let z=3*H,j=d.plte[H],J=255&j,ne=j>>>8&255,xe=j>>>16&255;P[h+z+0]=J,P[h+z+1]=ne,P[h+z+2]=xe;}if(h+=3*L,y(P,h,U(P,h-3*L-4,3*L+4)),h+=4,N){for(y(P,h,L),h+=4,g(P,h,"tRNS"),h+=4,H=0;H<L;H++)P[h+H]=d.plte[H]>>>24&255;h+=L,y(P,h,U(P,h-L-4,L+4)),h+=4;}}let V=0;for(D=0;D<d.frames.length;D++){var $=d.frames[D];F&&(y(P,h,26),h+=4,g(P,h,"fcTL"),h+=4,y(P,h,V++),h+=4,y(P,h,$.rect.width),h+=4,y(P,h,$.rect.height),h+=4,y(P,h,$.rect.x),h+=4,y(P,h,$.rect.y),h+=4,x(P,h,R[D]),h+=2,x(P,h,1e3),h+=2,P[h]=$.dispose,h++,P[h]=$.blend,h++,y(P,h,U(P,h-30,30)),h+=4);let z=$.cimg;y(P,h,(L=z.length)+(D==0?0:4)),h+=4;let j=h;g(P,h,D==0?"IDAT":"fdAT"),h+=4,D!=0&&(y(P,h,V++),h+=4),P.set(z,h),h+=L,y(P,h,U(P,j,h-j)),h+=4;}return y(P,h,0),h+=4,g(P,h,"IEND"),h+=4,y(P,h,U(P,h-4,4)),h+=4,P.buffer}function b(d,p,v){for(let R=0;R<d.frames.length;R++){let E=d.frames[R];E.rect.width;let U=E.rect.height,y=new Uint8Array(U*E.bpl+U);E.cimg=f(E.img,U,E.bpp,E.bpl,y,p,v);}}function i(d,p,v,R,E){let U=E[0],y=E[1],x=E[2],g=E[3],h=E[4],F=E[5],C=6,N=8,Q=255;for(var L=0;L<d.length;L++){let ie=new Uint8Array(d[L]);for(var H=ie.length,D=0;D<H;D+=4)Q&=ie[D+3];}let P=Q!=255,q=(function(X,W,re,ae,ee,he){let te=[];for(var G=0;G<X.length;G++){let le=new Uint8Array(X[G]),ge=new Uint32Array(le.buffer);var de;let pe=0,ve=0,we=W,Oe=re,ct=ae?1:0;if(G!=0){let zn=he||ae||G==1||te[G-2].dispose!=0?1:2,ft=0,St=1e9;for(let $e=0;$e<zn;$e++){var Ue=new Uint8Array(X[G-1-$e]);let $n=new Uint32Array(X[G-1-$e]),ke=W,Ie=re,Me=-1,je=-1;for(let Pe=0;Pe<re;Pe++)for(let Fe=0;Fe<W;Fe++)ge[oe=Pe*W+Fe]!=$n[oe]&&(Fe<ke&&(ke=Fe),Fe>Me&&(Me=Fe),Pe<Ie&&(Ie=Pe),Pe>je&&(je=Pe));Me==-1&&(ke=Ie=Me=je=0),ee&&((1&ke)==1&&ke--,(1&Ie)==1&&Ie--);let Ot=(Me-ke+1)*(je-Ie+1);Ot<St&&(St=Ot,ft=$e,pe=ke,ve=Ie,we=Me-ke+1,Oe=je-Ie+1);}
1277Ue=new Uint8Array(X[G-1-ft]),ft==1&&(te[G-1].dispose=2),de=new Uint8Array(we*Oe*4),t(Ue,W,re,de,we,Oe,-pe,-ve,0),ct=t(le,W,re,de,we,Oe,-pe,-ve,3)?1:0,ct==1?o(le,W,re,de,{x:pe,y:ve,width:we,height:Oe}):t(le,W,re,de,we,Oe,-pe,-ve,0);}else de=le.slice(0);te.push({rect:{x:pe,y:ve,width:we,height:Oe},img:de,blend:ct,dispose:0});}if(ae)for(G=0;G<te.length;G++){if((Se=te[G]).blend==1)continue;let le=Se.rect,ge=te[G-1].rect,pe=Math.min(le.x,ge.x),ve=Math.min(le.y,ge.y),we={x:pe,y:ve,width:Math.max(le.x+le.width,ge.x+ge.width)-pe,height:Math.max(le.y+le.height,ge.y+ge.height)-ve};te[G-1].dispose=1,G-1!=0&&a(X,W,re,te,G-1,we,ee),a(X,W,re,te,G,we,ee);}let Je=0;if(X.length!=1)for(var oe=0;oe<te.length;oe++){var Se;Je+=(Se=te[oe]).rect.width*Se.rect.height;}return te})(d,p,v,U,y,x),V={},$=[],z=[];if(R!=0){let ie=[];for(D=0;D<q.length;D++)ie.push(q[D].img.buffer);let X=(function(ee){let he=0;for(var te=0;te<ee.length;te++)he+=ee[te].byteLength;let G=new Uint8Array(he),de=0;for(te=0;te<ee.length;te++){let Ue=new Uint8Array(ee[te]),Je=Ue.length;for(let oe=0;oe<Je;oe+=4){let Se=Ue[oe],le=Ue[oe+1],ge=Ue[oe+2],pe=Ue[oe+3];pe==0&&(Se=le=ge=0),G[de+oe]=Se,G[de+oe+1]=le,G[de+oe+2]=ge,G[de+oe+3]=pe;}de+=Je;}return G.buffer})(ie),W=T(X,R);for(D=0;D<W.plte.length;D++)$.push(W.plte[D].est.rgba);let re=0;for(D=0;D<q.length;D++){let ae=(J=q[D]).img.length;var j=new Uint8Array(W.inds.buffer,re>>2,ae>>2);z.push(j);let ee=new Uint8Array(W.abuf,re,ae);F&&u(J.img,J.rect.width,J.rect.height,$,ee,j),J.img.set(ee),re+=ae;}}else for(L=0;L<q.length;L++){var J=q[L];let ie=new Uint32Array(J.img.buffer);var ne=J.rect.width;for(H=ie.length,j=new Uint8Array(H),z.push(j),D=0;D<H;D++){let X=ie[D];if(D!=0&&X==ie[D-1])j[D]=j[D-1];else if(D>ne&&X==ie[D-ne])j[D]=j[D-ne];else {let W=V[X];if(W==null&&(V[X]=W=$.length,$.push(X),$.length>=300))break;j[D]=W;}}}let xe=$.length;for(xe<=256&&h==0&&(N=xe<=2?1:xe<=4?2:xe<=16?4:8,N=Math.max(N,g)),L=0;L<q.length;L++){(J=q[L]).rect.x,J.rect.y,ne=J.rect.width;let ie=J.rect.height,X=J.img;new Uint32Array(X.buffer);let W=4*ne,re=4;if(xe<=256&&h==0){W=Math.ceil(N*ne/8);var be=new Uint8Array(W*ie);let ae=z[L];for(let ee=0;ee<ie;ee++){D=ee*W;let he=ee*ne;if(N==8)for(var Y=0;Y<ne;Y++)be[D+Y]=ae[he+Y];else if(N==4)for(Y=0;Y<ne;Y++)be[D+(Y>>1)]|=ae[he+Y]<<4-4*(1&Y);else if(N==2)for(Y=0;Y<ne;Y++)be[D+(Y>>2)]|=ae[he+Y]<<6-2*(3&Y);else if(N==1)for(Y=0;Y<ne;Y++)be[D+(Y>>3)]|=ae[he+Y]<<7-1*(7&Y);}X=be,C=3,re=1;}else if(P==0&&q.length==1){be=new Uint8Array(ne*ie*3);let ae=ne*ie;for(D=0;D<ae;D++){let ee=3*D,he=4*D;be[ee]=X[he],be[ee+1]=X[he+1],be[ee+2]=X[he+2];}X=be,C=2,re=3,W=3*ne;}J.img=X,J.bpl=W,J.bpp=re;}return {ctype:C,depth:N,plte:$,frames:q}}function a(d,p,v,R,E,U,y){let x=Uint8Array,g=Uint32Array,h=new x(d[E-1]),F=new g(d[E-1]),C=E+1<d.length?new x(d[E+1]):null,N=new x(d[E]),Q=new g(N.buffer),L=p,H=v,D=-1,P=-1;for(let V=0;V<U.height;V++)for(let $=0;$<U.width;$++){let z=U.x+$,j=U.y+V,J=j*p+z,ne=Q[J];ne==0||R[E-1].dispose==0&&F[J]==ne&&(C==null||C[4*J+3]!=0)||(z<L&&(L=z),z>D&&(D=z),j<H&&(H=j),j>P&&(P=j));}D==-1&&(L=H=D=P=0),y&&((1&L)==1&&L--,(1&H)==1&&H--),U={x:L,y:H,width:D-L+1,height:P-H+1};let q=R[E];q.rect=U,q.blend=1,q.img=new Uint8Array(U.width*U.height*4),R[E-1].dispose==0?(t(h,p,v,q.img,U.width,U.height,-U.x,-U.y,0),o(N,p,v,q.img,U)):t(N,p,v,q.img,U.width,U.height,-U.x,-U.y,0);}function o(d,p,v,R,E){t(d,p,v,R,E.width,E.height,-E.x,-E.y,2);}function f(d,p,v,R,E,U,y){let x=[],g,h=[0,1,2,3,4];U!=-1?h=[U]:(p*R>5e5||v==1)&&(h=[0]),y&&(g={level:0});let F=ns$2;for(var C=0;C<h.length;C++){for(let L=0;L<p;L++)m(E,d,L,R,v,h[C]);x.push(F.deflate(E,g));}let N,Q=1e9;for(C=0;C<x.length;C++)x[C].length<Q&&(N=C,Q=x[C].length);return x[N]}function m(d,p,v,R,E,U){let y=v*R,x=y+v;if(d[x]=U,x++,U==0)if(R<500)for(var g=0;g<R;g++)d[x+g]=p[y+g];else d.set(new Uint8Array(p.buffer,y,R),x);else if(U==1){for(g=0;g<E;g++)d[x+g]=p[y+g];for(g=E;g<R;g++)d[x+g]=p[y+g]-p[y+g-E]+256&255;}else if(v==0){for(g=0;g<E;g++)d[x+g]=p[y+g];if(U==2)for(g=E;g<R;g++)d[x+g]=p[y+g];if(U==3)for(g=E;g<R;g++)d[x+g]=p[y+g]-(p[y+g-E]>>1)+256&255;if(U==4)for(g=E;g<R;g++)d[x+g]=p[y+g]-c(p[y+g-E],0,0)+256&255;}else {if(U==2)for(g=0;g<R;g++)d[x+g]=p[y+g]+256-p[y+g-R]&255;if(U==3){for(g=0;g<E;g++)d[x+g]=p[y+g]+256-(p[y+g-R]>>1)&255;for(g=E;g<R;g++)d[x+g]=p[y+g]+256-(p[y+g-R]+p[y+g-E]>>1)&255;}if(U==4){for(g=0;g<E;g++)d[x+g]=p[y+g]+256-c(0,p[y+g-R],0)&255;for(g=E;g<R;g++)d[x+g]=p[y+g]+256-c(p[y+g-E],p[y+g-R],p[y+g-E-R])&255;}}}function T(d,p){let v=new Uint8Array(d),R=v.slice(0),E=new Uint32Array(R.buffer),U=k(R,p),y=U[0],x=U[1],g=v.length,h=new Uint8Array(g>>2),F;if(v.length<2e7)for(var C=0;C<g;C+=4)F=w(y,N=v[C]*(1/255),Q=v[C+1]*(1/255),L=v[C+2]*(1/255),H=v[C+3]*(1/255)),h[
1277C>>2]=F.ind,E[C>>2]=F.est.rgba;else for(C=0;C<g;C+=4){var N=v[C]*.00392156862745098,Q=v[C+1]*(1/255),L=v[C+2]*(1/255),H=v[C+3]*(1/255);for(F=y;F.left;)F=M(F.est,N,Q,L,H)<=0?F.left:F.right;h[C>>2]=F.ind,E[C>>2]=F.est.rgba;}return {abuf:R.buffer,inds:h,plte:x}}function k(d,p,v){v==null&&(v=1e-4);let R=new Uint32Array(d.buffer),E={i0:0,i1:d.length,bst:null,est:null,tdst:0,left:null,right:null};E.bst=B(d,E.i0,E.i1),E.est=A(E.bst);let U=[E];for(;U.length<p;){let x=0,g=0;for(var y=0;y<U.length;y++)U[y].est.L>x&&(x=U[y].est.L,g=y);if(x<v)break;let h=U[g],F=S(d,R,h.i0,h.i1,h.est.e,h.est.eMq255);if(h.i0>=F||h.i1<=F){h.est.L=0;continue}let C={i0:h.i0,i1:F,bst:null,est:null,tdst:0,left:null,right:null};C.bst=B(d,C.i0,C.i1),C.est=A(C.bst);let N={i0:F,i1:h.i1,bst:null,est:null,tdst:0,left:null,right:null};for(N.bst={R:[],m:[],N:h.bst.N-C.bst.N},y=0;y<16;y++)N.bst.R[y]=h.bst.R[y]-C.bst.R[y];for(y=0;y<4;y++)N.bst.m[y]=h.bst.m[y]-C.bst.m[y];N.est=A(N.bst),h.left=C,h.right=N,U[g]=C,U.push(N);}for(U.sort((x,g)=>g.bst.N-x.bst.N),y=0;y<U.length;y++)U[y].ind=y;return [E,U]}function w(d,p,v,R,E){if(d.left==null)return d.tdst=(function(C,N,Q,L,H){let D=N-C[0],P=Q-C[1],q=L-C[2],V=H-C[3];return D*D+P*P+q*q+V*V})(d.est.q,p,v,R,E),d;let U=M(d.est,p,v,R,E),y=d.left,x=d.right;U>0&&(y=d.right,x=d.left);let g=w(y,p,v,R,E);if(g.tdst<=U*U)return g;let h=w(x,p,v,R,E);return h.tdst<g.tdst?h:g}function M(d,p,v,R,E){let{e:U}=d;return U[0]*p+U[1]*v+U[2]*R+U[3]*E-d.eMq}function S(d,p,v,R,E,U){for(R-=4;v<R;){for(;I(d,v,E)<=U;)v+=4;for(;I(d,R,E)>U;)R-=4;if(v>=R)break;let y=p[v>>2];p[v>>2]=p[R>>2],p[R>>2]=y,v+=4,R-=4;}for(;I(d,v,E)>U;)v-=4;return v+4}function I(d,p,v){return d[p]*v[0]+d[p+1]*v[1]+d[p+2]*v[2]+d[p+3]*v[3]}function B(d,p,v){let R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=[0,0,0,0],U=v-p>>2;for(let y=p;y<v;y+=4){let x=d[y]*.00392156862745098,g=d[y+1]*(1/255),h=d[y+2]*(1/255),F=d[y+3]*(1/255);E[0]+=x,E[1]+=g,E[2]+=h,E[3]+=F,R[0]+=x*x,R[1]+=x*g,R[2]+=x*h,R[3]+=x*F,R[5]+=g*g,R[6]+=g*h,R[7]+=g*F,R[10]+=h*h,R[11]+=h*F,R[15]+=F*F;}return R[4]=R[1],R[8]=R[2],R[9]=R[6],R[12]=R[3],R[13]=R[7],R[14]=R[11],{R,m:E,N:U}}function A(d){let{R:p}=d,{m:v}=d,{N:R}=d,E=v[0],U=v[1],y=v[2],x=v[3],g=R==0?0:1/R,h=[p[0]-E*E*g,p[1]-E*U*g,p[2]-E*y*g,p[3]-E*x*g,p[4]-U*E*g,p[5]-U*U*g,p[6]-U*y*g,p[7]-U*x*g,p[8]-y*E*g,p[9]-y*U*g,p[10]-y*y*g,p[11]-y*x*g,p[12]-x*E*g,p[13]-x*U*g,p[14]-x*y*g,p[15]-x*x*g],F=h,C=O,N=[Math.random(),Math.random(),Math.random(),Math.random()],Q=0,L=0;if(R!=0)for(let D=0;D<16&&(N=C.multVec(F,N),L=Math.sqrt(C.dot(N,N)),N=C.sml(1/L,N),!(D!=0&&Math.abs(L-Q)<1e-9));D++)Q=L;let H=[E*g,U*g,y*g,x*g];return {Cov:h,q:H,e:N,L:Q,eMq255:C.dot(C.sml(255,H),N),eMq:C.dot(N,H),rgba:(Math.round(255*H[3])<<24|Math.round(255*H[2])<<16|Math.round(255*H[1])<<8|Math.round(255*H[0])<<0)>>>0}}var O={multVec:(d,p)=>[d[0]*p[0]+d[1]*p[1]+d[2]*p[2]+d[3]*p[3],d[4]*p[0]+d[5]*p[1]+d[6]*p[2]+d[7]*p[3],d[8]*p[0]+d[9]*p[1]+d[10]*p[2]+d[11]*p[3],d[12]*p[0]+d[13]*p[1]+d[14]*p[2]+d[15]*p[3]],dot:(d,p)=>d[0]*p[0]+d[1]*p[1]+d[2]*p[2]+d[3]*p[3],sml:(d,p)=>[d*p[0],d*p[1],d*p[2],d*p[3]]};Ae$2.encode=function(p,v,R,E,U,y,x){E==null&&(E=0),x==null&&(x=false);let g=i(p,v,R,E,[false,false,false,0,x,false]);return b(g,-1),_(g,v,R,U,y)},Ae$2.encodeLL=function(p,v,R,E,U,y,x,g){let h={ctype:0+(E==1?0:2)+(U==0?0:4),depth:y,frames:[]},F=(E+U)*y,C=F*v;for(let N=0;N<p.length;N++)h.frames.push({rect:{x:0,y:0,width:v,height:R},img:new Uint8Array(p[N]),blend:0,dispose:1,bpp:Math.ceil(F/8),bpl:Math.ceil(C/8)});return b(h,0,true),_(h,v,R,x,g)},Ae$2.encode.compress=i,Ae$2.encode.dither=u,Ae$2.quantize=T,Ae$2.quantize.getKDtree=k,Ae$2.quantize.getNearest=w;})();var Pn$2={toArrayBuffer(t,n){let c=t.width,s=t.height,e=c<<2,r=t.getContext("2d").getImageData(0,0,c,s),l=new Uint32Array(r.data.buffer),u=(32*c+31)/32<<2,_=u*s,b=122+_,i=new ArrayBuffer(b),a=new DataView(i),o=1<<20,f,m,T,k,w=o,M=0,S=0,I=0;function B(d){a.setUint16(S,d,true),S+=2;}function A(d){a.setUint32(S,d,true),S+=4;}function O(d){S+=d;}B(19778),A(b),O(4),A(122),A(108),A(c),A(-s>>>0),B(1),B(32),A(3),A(_),A(2835),A(2835),O(8),A(16711680),A(65280),A(255),A(4278190080),A(1466527264),(function d(){for(;M<s&&w>0;){for(k=122+M*u,f=0;f<e;)w--,m=l[I++],T=m>>>24,a.setUint32(k+f,m<<8|T),f+=4;M++;}I<l.length?(w=o,setTimeout(d,Pn$2._dly)):n(i);})();},toBlob(t,n){this.toArrayBuffer(t,c=>
1277{n(new Blob([c],{type:"image/bmp"}));});},_dly:9},fe$2={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},rs$2={[fe$2.CHROME]:16384,[fe$2.FIREFOX]:11180,[fe$2.DESKTOP_SAFARI]:16384,[fe$2.IE]:8192,[fe$2.IOS]:4096,[fe$2.ETC]:8192},Ct$6=typeof window<"u",Fn$2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ot$4=Ct$6&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),ss$2=(Ct$6||Fn$2)&&(ot$4&&ot$4.getOriginalSymbol(window,"File")||typeof File<"u"&&File),Bn$2=(Ct$6||Fn$2)&&(ot$4&&ot$4.getOriginalSymbol(window,"FileReader")||typeof FileReader<"u"&&FileReader);function xt$4(t,n,c=Date.now()){return new Promise(s=>{let e=t.split(","),r=e[0].match(/:(.*?);/)[1],l=globalThis.atob(e[1]),u=l.length,_=new Uint8Array(u);for(;u--;)_[u]=l.charCodeAt(u);let b=new Blob([_],{type:r});b.name=n,b.lastModified=c,s(b);})}function Mn$2(t){return new Promise((n,c)=>{let s=new Bn$2;s.onload=()=>n(s.result),s.onerror=e=>c(e),s.readAsDataURL(t);})}function Nn$2(t){return new Promise((n,c)=>{let s=new Image;s.onload=()=>n(s),s.onerror=e=>c(e),s.src=t;})}function Be$3(){if(Be$3.cachedResult!==void 0)return Be$3.cachedResult;let t=fe$2.ETC,{userAgent:n}=navigator;return /Chrom(e|ium)/i.test(n)?t=fe$2.CHROME:/iP(ad|od|hone)/i.test(n)&&/WebKit/i.test(n)?t=fe$2.IOS:/Safari/i.test(n)?t=fe$2.DESKTOP_SAFARI:/Firefox/i.test(n)?t=fe$2.FIREFOX:(/MSIE/i.test(n)||document.documentMode)&&(t=fe$2.IE),Be$3.cachedResult=t,Be$3.cachedResult}function Dn$2(t,n){let c=Be$3(),s=rs$2[c],e=t,r=n,l=e*r,u=e>r?r/e:e/r;for(;l>s*s;){let _=(s+e)/2,b=(s+r)/2;_<b?(r=b,e=b*u):(r=_*u,e=_),l=e*r;}return {width:e,height:r}}function ut$4(t,n){let c,s;try{if(c=new OffscreenCanvas(t,n),s=c.getContext("2d"),s===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{c=document.createElement("canvas"),s=c.getContext("2d");}return c.width=t,c.height=n,[c,s]}function Ln$2(t,n){let{width:c,height:s}=Dn$2(t.width,t.height),[e,r]=ut$4(c,s);return n&&/jpe?g/.test(n)&&(r.fillStyle="white",r.fillRect(0,0,e.width,e.height)),r.drawImage(t,0,0,e.width,e.height),e}function st$4(){return st$4.cachedResult!==void 0||(st$4.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof document<"u"&&"ontouchend"in document),st$4.cachedResult}function at$6(t,n={}){return new Promise(function(c,s){let e,r;var l=function(){try{return r=Ln$2(e,n.fileType||t.type),c([e,r])}catch(_){return s(_)}},u=function(_){try{var b=function(i){try{throw i}catch(a){return s(a)}};try{let i;return Mn$2(t).then(function(a){try{return i=a,Nn$2(i).then(function(o){try{return e=o,(function(){try{return l()}catch(f){return s(f)}})()}catch(f){return b(f)}},b)}catch(o){return b(o)}},b)}catch(i){b(i);}}catch(i){return s(i)}};try{if(st$4()||[fe$2.DESKTOP_SAFARI,fe$2.MOBILE_SAFARI].includes(Be$3()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(t).then(function(_){try{return e=_,l()}catch{return u()}},u)}catch{u();}})}function lt$4(t,n,c,s,e=1){return new Promise(function(r,l){let u;if(n==="image/png"){let b,i,a;return b=t.getContext("2d"),{data:i}=b.getImageData(0,0,t.width,t.height),a=Ae$2.encode([i.buffer],t.width,t.height,4096*e),u=new Blob([a],{type:n}),u.name=c,u.lastModified=s,_.call(this)}{let b=function(){return _.call(this)};if(n==="image/bmp")return new Promise(i=>Pn$2.toBlob(t,i)).then(function(i){try{return u=i,u.name=c,u.lastModified=s,b.call(this)}catch(a){return l(a)}}.bind(this),l);{let i=function(){return b.call(this)};if(typeof OffscreenCanvas=="function"&&t instanceof OffscreenCanvas)return t.convertToBlob({type:n,quality:e}).then(function(a){try{return u=a,u.name=c,u.lastModified=s,i.call(this)}catch(o){return l(o)}}.bind(this),l);{let a;return a=t.toDataURL(n,e),xt$4(a,c,s).then(function(o){try{return u=o,i.call(this)}catch(f){return l(f)}}.bind(this),l)}}}function _(){return r(u)}})}function ye$3(t){t.width=0,t.height=0;}function ze$1(){return new Promise(function(t,n){let s,e,r,l;return ze$1.cachedResult!==void 0?t(ze$1.cachedResult):(xt$4("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(u){try{return s=u,at$6(s).then(function(_){try{return e=_[1],lt$4(e,s.type,s.name,s.lastModified).then(function(b){try{return r=b,ye$3(e),at$6(r).then(function(i){try{return l=i[0],ze$1.cachedResult=l.width===1&&l.height===2,t(ze$1.cachedResult)}catch(a){return n(a)}},n)}catch(i){return n(i)}},n)}catch(b){return n(b)}},n)}catch(_){return n(_)}}
1277,n))})}function Hn$2(t){return new Promise((n,c)=>{let s=new Bn$2;s.onload=e=>{let r=new DataView(e.target.result);if(r.getUint16(0,false)!=65496)return n(-2);let l=r.byteLength,u=2;for(;u<l;){if(r.getUint16(u+2,false)<=8)return n(-1);let _=r.getUint16(u,false);if(u+=2,_==65505){if(r.getUint32(u+=2,false)!=1165519206)return n(-1);let b=r.getUint16(u+=6,false)==18761;u+=r.getUint32(u+4,b);let i=r.getUint16(u,b);u+=2;for(let a=0;a<i;a++)if(r.getUint16(u+12*a,b)==274)return n(r.getUint16(u+12*a+8,b))}else {if((65280&_)!=65280)break;u+=r.getUint16(u,false);}}return n(-1)},s.onerror=e=>c(e),s.readAsArrayBuffer(t);})}function Qn$3(t,n){let{width:c}=t,{height:s}=t,{maxWidthOrHeight:e}=n,r,l=t;return isFinite(e)&&(c>e||s>e)&&([l,r]=ut$4(c,s),c>s?(l.width=e,l.height=s/c*e):(l.width=c/s*e,l.height=e),r.drawImage(t,0,0,l.width,l.height),ye$3(t)),l}function qn$3(t,n){let{width:c}=t,{height:s}=t,[e,r]=ut$4(c,s);switch(n>4&&n<9?(e.width=s,e.height=c):(e.width=c,e.height=s),n){case 2:r.transform(-1,0,0,1,c,0);break;case 3:r.transform(-1,0,0,-1,c,s);break;case 4:r.transform(1,0,0,-1,0,s);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,s,0);break;case 7:r.transform(0,-1,-1,0,s,c);break;case 8:r.transform(0,-1,1,0,0,c);}return r.drawImage(t,0,0,c,s),ye$3(t),e}function Sn$1(t,n,c=0){return new Promise(function(s,e){let r,l,u,_,b,i,a,o,f,m,T,k,w,M,S,I,B,A,O,d;function p(R=5){if(n.signal&&n.signal.aborted)throw n.signal.reason;r+=R,n.onProgress(Math.min(r,100));}function v(R){if(n.signal&&n.signal.aborted)throw n.signal.reason;r=Math.min(Math.max(R,r),100),n.onProgress(r);}return r=c,l=n.maxIteration||10,u=1024*n.maxSizeMB*1024,p(),at$6(t,n).then(function(R){try{return [,_]=R,p(),b=Qn$3(_,n),p(),new Promise(function(E,U){var y;if(!(y=n.exifOrientation))return Hn$2(t).then(function(g){try{return y=g,x.call(this)}catch(h){return U(h)}}.bind(this),U);function x(){return E(y)}return x.call(this)}).then(function(E){try{return i=E,p(),ze$1().then(function(U){try{return a=U?b:qn$3(b,i),p(),o=n.initialQuality||1,f=n.fileType||t.type,lt$4(a,f,t.name,t.lastModified,o).then(function(y){try{{let g=function(){if(l--&&(S>u||S>w)){let F,C;return F=d?.95*O.width:O.width,C=d?.95*O.height:O.height,[B,A]=ut$4(F,C),A.drawImage(O,0,0,F,C),o*=f==="image/png"?.85:.95,lt$4(B,f,t.name,t.lastModified,o).then(function(N){try{return I=N,ye$3(O),O=B,S=I.size,v(Math.min(99,Math.floor((M-S)/(M-u)*100))),g}catch(Q){return e(Q)}},e)}return [1]},h=function(){return ye$3(O),ye$3(B),ye$3(b),ye$3(a),ye$3(_),v(100),s(I)};if(m=y,p(),T=m.size>u,k=m.size>t.size,!T&&!k)return v(100),s(m);var x;return w=t.size,M=m.size,S=M,O=a,d=!n.alwaysKeepResolution&&T,(x=function(F){for(;F;){if(F.then)return void F.then(x,e);try{if(F.pop){if(F.length)return F.pop()?h.call(this):F;F=g;}else F=F.call(this);}catch(C){return e(C)}}}.bind(this))(g)}}catch(g){return e(g)}}.bind(this),e)}catch(y){return e(y)}}.bind(this),e)}catch(U){return e(U)}}.bind(this),e)}catch(E){return e(E)}}.bind(this),e)})}var is$2=` 1278let scriptImported = false 1279self.addEventListener('message', async (e) => { 1280 const { file, id, imageCompressionLibUrl, options } = e.data 1281 options.onProgress = (progress) => self.postMessage({ progress, id }) 1282 try { 1283 if (!scriptImported) { 1284 // console.log('[worker] importScripts', imageCompressionLibUrl) 1285 self.importScripts(imageCompressionLibUrl) 1286 scriptImported = true 1287 } 1288 // console.log('[worker] self', self) 1289 const compressedFile = await imageCompression(file, options) 1290 self.postMessage({ file: compressedFile, id }) 1291 } catch (e) { 1292 // console.error('[worker] error', e) 1293 self.postMessage({ error: e.message + '\\n' + e.stack, id }) 1294 } 1295}) 1296`,It$4;function os$2(t,n){return new Promise((c,s)=>{It$4||(It$4=(function(l){let u=[];return u.push(l),URL.createObjectURL(new Blob(u))})(is$2));let e=new Worker(It$4);e.addEventListener("message",function(l){if(n.signal&&n.signal.aborted)e.terminate();else if(l.data.progress===void 0){if(l.data.error)return s(new Error(l.data.error)),void e.terminate();c(l.data.file),e.terminate();}else n.onProgress(l.data.progress);}),e.addEventListener("error",s),n.signal&&n.signal.addEventListener("abort",()=>{s(n.signal.reason),e.terminate();}),e.postMessage({file:t,imageCompressionLibUrl:n.libURL,options:s$e(r$d({},n),{onProgress:void 0,signal:void 0})});})}function ue$2(t,n){return new Promise(function(c,s){let e,r,l,u,_,b;if(e=r$d({},n),l=0,{onProgress:u}=e,e.maxSizeMB=e.maxSizeMB||Number.POSITIVE_INFINITY,_=typeof e.useWebWorker!="boolean"||e.useWebWorker,delete e.useWebWorker,e.onProgress=f=>{l=f,typeof u=="function"&&u(l);},!(t instanceof Blob||t instanceof ss$2))return s(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(t.type))return s(new Error("The file given is not an image"));if(b=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!_||typeof Worker!="function"||b)return Sn$1(t,e).then(function(f){try{return r=f,o.call(this)}catch(m){return s(m)}}.bind(this),s);var i=function(){try{return o.call(this)}catch(f){return s(f)}}.bind(this),a=function(f){try{return Sn$1(t,e).then(function(m){try{return r=m,i()}catch(T){return s(T)}},s)}catch(m){return s(m)}};try{return e.libURL=e.libURL||"https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js",os$2(t,e).then(function(f){try{return r=f,i()}catch{return a()}},a)}catch{a();}function o(){try{r.name=t.name,r.lastModified=t.lastModified;}catch{}try{e.preserveExif&&t.type==="image/jpeg"&&(!e.fileType||e.fileType&&e.fileType===t.type)&&(r=On$1(t,r));}catch{}return c(r)}})}ue$2.getDataUrlFromFile=Mn$2,ue$2.getFilefromDataUrl=xt$4,ue$2.loadImage=Nn$2,ue$2.drawImageInCanvas=Ln$2,ue$2.drawFileInCanvas=at$6,ue$2.canvasToFile=lt$4,ue$2.getExifOrientation=Hn$2,ue$2.handleMaxWidthOrHeight=Qn$3,ue$2.followExifOrientation=qn$3,ue$2.cleanupCanvasMemory=ye$3,ue$2.isAutoOrientationInBrowser=ze$1,ue$2.approximateBelowMaximumCanvasSizeOfBrowser=Dn$2,ue$2.copyExifWithoutOrientation=On$1,ue$2.getBrowserName=Be$3,ue$2.version="2.0.2";var Ds$2=(()=>{class t{constructor(){this.colorClass="icon-color";}static{this.\u0275fac=function(s){return new(s||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-input-prefix"]],hostAttrs:[1,"block","absolute","
1296inset-y-0","left-0","flex","items-center","pl-3","pointer-events-none"],hostVars:2,hostBindings:function(s,e){s&2&&BM(e.colorClass);},inputs:{icon:"icon",colorClass:"colorClass"},features:[cN([{provide:se$4,useExisting:Qi$3(()=>t)}])],decls:1,vars:1,consts:[[1,"text-lg",3,"name"]],template:function(s,e){s&1&&Vv$1(0,"ng-icon",0),s&2&&jv$1("name",e.icon);},dependencies:[le$9],encapsulation:2});}}return t})(); 1297var v$5=(()=>{class e{constructor(){this.loadingText="Wird geladen ...",this.size="h-5 w-5";}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-load-spinner-new"]],inputs:{loadingText:"loadingText",size:"size"},decls:6,vars:2,consts:[[1,"flex","items-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"mr-2","animate-spin",3,"ngClass"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],[1,"text-mspot-neutral-500","text-sm"]],template:function(t,a){t&1&&(ta$3(0,"div",0),yh$1(),ta$3(1,"svg",1),Vv$1(2,"circle",2)(3,"path",3),Pd$1(),vh$1(),ta$3(4,"div",4),QM(5),Pd$1()()),t&2&&(uT(),jv$1("ngClass",a.size),uT(4),yD(a.loadingText));},dependencies:[mx$1],encapsulation:2});}}return e})(); 1298var z$7=class z extends Error{},rt$3=class rt extends z$7{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`);}},nt$3=class nt extends z$7{constructor(e){super(`Invalid Interval: ${e.toMessage()}`);}},st$3=class st extends z$7{constructor(e){super(`Invalid Duration: ${e.toMessage()}`);}},V$4=class V extends z$7{},oe$2=class oe extends z$7{constructor(e){super(`Invalid unit ${e}`);}},E$4=class E extends z$7{},A$5=class A extends z$7{constructor(){super("Zone is an abstract class");}};var c$7="numeric",H$5="short",v$4="long",Y$6={year:c$7,month:c$7,day:c$7},De$2={year:c$7,month:H$5,day:c$7},Ot$2={year:c$7,month:H$5,day:c$7,weekday:H$5},xe$1={year:c$7,month:v$4,day:c$7},Me$1={year:c$7,month:v$4,day:c$7,weekday:v$4},Fe$1={hour:c$7,minute:c$7},Ne$3={hour:c$7,minute:c$7,second:c$7},ve$3={hour:c$7,minute:c$7,second:c$7,timeZoneName:H$5},Le$2={hour:c$7,minute:c$7,second:c$7,timeZoneName:v$4},We$2={hour:c$7,minute:c$7,hourCycle:"h23"},be$2={hour:c$7,minute:c$7,second:c$7,hourCycle:"h23"},Ce$1={hour:c$7,minute:c$7,second:c$7,hourCycle:"h23",timeZoneName:H$5},_e$1={hour:c$7,minute:c$7,second:c$7,hourCycle:"h23",timeZoneName:v$4},Ve$1={year:c$7,month:c$7,day:c$7,hour:c$7,minute:c$7},Ae$1={year:c$7,month:c$7,day:c$7,hour:c$7,minute:c$7,second:c$7},He$2={year:c$7,month:H$5,day:c$7,hour:c$7,minute:c$7},Ze$2={year:c$7,month:H$5,day:c$7,hour:c$7,minute:c$7,second:c$7},kt$3={year:c$7,month:H$5,day:c$7,weekday:H$5,hour:c$7,minute:c$7},Ue$1={year:c$7,month:v$4,day:c$7,hour:c$7,minute:c$7,timeZoneName:H$5},$e$1={year:c$7,month:v$4,day:c$7,hour:c$7,minute:c$7,second:c$7,timeZoneName:H$5},Re$1={year:c$7,month:v$4,day:c$7,weekday:v$4,hour:c$7,minute:c$7,timeZoneName:v$4},ze={year:c$7,month:v$4,day:c$7,weekday:v$4,hour:c$7,minute:c$7,second:c$7,timeZoneName:v$4};var L$4=class L{get type(){throw new A$5}get name(){throw new A$5}get ianaName(){return this.name}get isUniversal(){throw new A$5}offsetName(e,r){throw new A$5}formatOffset(e,r){throw new A$5}offset(e){throw new A$5}equals(e){throw new A$5}get isValid(){throw new A$5}};var It$3=null,X$2=class t extends L$4{static get instance(){return It$3===null&&(It$3=new t),It$3}get type(){return "system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:r,locale:n}){return at$5(e,r,n)}formatOffset(e,r){return G$4(this.offset(e),r)}offset(e){return -new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}};var ut$3={};function In$1(t){return ut$3[t]||(ut$3[t]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ut$3[t]}var Dn$1={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function xn(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,o,u,l,d]=n;return [a,s,i,o,u,l,d]}function Mn$1(t,e){let r=t.formatToParts(e),n=[];for(let s=0;s<r.length;s++){let{type:i,value:a}=r[s],o=Dn$1[i];i==="era"?n[o]=a:f$3(o)||(n[o]=parseInt(a,10));}return n}var ot$3={},F$4=class t extends L$4{static create(e){return ot$3[e]||(ot$3[e]=new t(e)),ot$3[e]}static resetCache(){ot$3={},ut$3={};}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return false;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return false}}
1298constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e);}get type(){return "iana"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(e,{format:r,locale:n}){return at$5(e,r,n,this.name)}formatOffset(e,r){return G$4(this.offset(e),r)}offset(e){let r=new Date(e);if(isNaN(r))return NaN;let n=In$1(this.name),[s,i,a,o,u,l,d]=n.formatToParts?Mn$1(n,r):xn(n,r);o==="BC"&&(s=-Math.abs(s)+1);let k=ue$1({year:s,month:i,day:a,hour:u===24?0:u,minute:l,second:d,millisecond:0}),h=+r,I=h%1e3;return h-=I>=0?I:1e3+I,(k-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var ur$2={};function Fn$1(t,e={}){let r=JSON.stringify([t,e]),n=ur$2[r];return n||(n=new Intl.ListFormat(t,e),ur$2[r]=n),n}var Dt$3={};function xt$3(t,e={}){let r=JSON.stringify([t,e]),n=Dt$3[r];return n||(n=new Intl.DateTimeFormat(t,e),Dt$3[r]=n),n}var Mt$3={};function Nn$1(t,e={}){let r=JSON.stringify([t,e]),n=Mt$3[r];return n||(n=new Intl.NumberFormat(t,e),Mt$3[r]=n),n}var Ft$2={};function vn$1(t,e={}){let a=e,{base:r}=a,n=v$m(a,["base"]),s=JSON.stringify([t,n]),i=Ft$2[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Ft$2[s]=i),i}var qe=null;function Ln$1(){return qe||(qe=new Intl.DateTimeFormat().resolvedOptions().locale,qe)}var lr$2={};function Wn$2(t){let e=lr$2[t];if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,lr$2[t]=e;}return e}function bn$1(t){let e=t.indexOf("-x-");
1298e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return [t];{let n,s;try{n=xt$3(t).resolvedOptions(),s=t;}catch{let u=t.substring(0,r);n=xt$3(u).resolvedOptions(),s=u;}let{numberingSystem:i,calendar:a}=n;return [s,i,a]}}function Cn(t,e,r){return (r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function _n$1(t){let e=[];for(let r=1;r<=12;r++){let n=w$2.utc(2009,r,1);e.push(t(n));}return e}function Vn$1(t){let e=[];for(let r=1;r<=7;r++){let n=w$2.utc(2016,11,13+r);e.push(t(n));}return e}function lt$3(t,e,r,n){let s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}function An$1(t){return t.numberingSystem&&t.numberingSystem!=="latn"?false:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var Nt$2=class Nt{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||false;let o=n,{padTo:s,floor:i}=o,a=v$m(o,["padTo","floor"]);if(!r||Object.keys(a).length>0){let u=r$d({useGrouping:false},n);n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=Nn$1(e,u);}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else {let r=this.floor?Math.floor(e):le$1(e,3);return S$4(r,this.padTo)}}},vt$2=class vt{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&F$4.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i=r$d({},this.opts);i.timeZone=i.timeZone||s,this.dtf=xt$3(r,i);}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return s$e(r$d({},r),{value:n})}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Lt$2=class Lt{constructor(e,r,n){this.opts=r$d({style:"long"},n),!r&&ct$2()&&(this.rtf=vn$1(e,n));}format(e,r){return this.rtf?this.rtf.format(e,r):cr$2(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Hn$1={firstDay:1,minimalDays:4,weekend:[6,7]},p$5=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=false){let a=e||T$3.defaultLocale,o=a||(i?"en-US":Ln$1()),u=r||T$3.defaultNumberingSystem,l=n||T$3.defaultOutputCalendar,d=Ye(s)||T$3.defaultWeekSettings;return new t(o,u,l,d,a)}static resetCache(){qe=null,Dt$3={},Mt$3={},Ft$2={};}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return t.create(e,r,n,s)}constructor(e,r,n,s,i){let[a,o,u]=bn$1(e);this.locale=a,this.numberingSystem=r||o||null,this.outputCalendar=n||u||null,this.weekSettings=s,this.intl=Cn(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null;}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=An$1(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return !e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Ye(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}redefaultToEN(e={}){return this.clone(s$e(r$d({},e),{defaultToEN:true}))}redefaultToSystem(e={}){return this.clone(s$e(r$d({},e),{defaultToEN:false}))}months(e,r=false){return lt$3(this,e,Wt$3,()=>{let n=r?{month:e,day:"numeric"}:{month:e},s=r?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=_n$1(i=>
1298this.extract(i,n,"month"))),this.monthsCache[s][e]})}weekdays(e,r=false){return lt$3(this,e,bt$3,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=Vn$1(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return lt$3(this,void 0,()=>Ct$5,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[w$2.utc(2016,11,13,9),w$2.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"));}return this.meridiemCache})}eras(e){return lt$3(this,e,_t$3,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[w$2.utc(-40,1,1),w$2.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let s=this.dtFormatter(e,r),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new Nt$2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new vt$2(e,this.intl,r)}relFormatter(e={}){return new Lt$2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Fn$1(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ft$4()?Wn$2(this.locale):Hn$1}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var At$2=null,D$7=class t extends L$4{static get utcInstance(){return At$2===null&&(At$2=new t(0)),At$2}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(ee$2(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e;}get type(){return "fixed"}get name(){return this.fixed===0?"UTC":`UTC${G$4(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${G$4(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return G$4(this.fixed,r)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}};var Ge=class extends L$4{constructor(e){super(),this.zoneName=e;}get type(){return "invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return ""}offset(){return NaN}equals(){return false}get isValid(){return false}};function Z$1(t,e){if(f$3(t)||t===null)return e;if(t instanceof L$4)return t;if(fr$2(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?X$2.instance:n==="utc"||n==="gmt"?D$7.utcInstance:D$7.parseSpecifier(n)||F$4.create(t)}else return U$2(t)?D$7.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Ge(t)}var Ht$3={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},mr$2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Zn$2=Ht$3.hanidec.replace(/[\[|\]]/g,"").split("");function dr$2(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(Ht$3.hanidec)!==-1)e+=Zn$2.indexOf(t[r]);else for(let s in mr$2){let[i,a]=mr$2[s];n>=i&&n<=a&&(e+=n-i);}}return parseInt(e,10)}else return e}var ce$2={};function hr$2(){ce$2={};}function b$3({numberingSystem:t},e=""){let r=t||"latn";return ce$2[r]||(ce$2[r]={}),ce$2[r][e]||(ce$2[r][e]=new RegExp(`${Ht$3[r]}${e}`)),ce$2[r][e]}var yr$2=()=>
1298Date.now(),Tr$2="system",pr$2=null,gr$3=null,wr$1=null,Sr$2=60,Er$2,Or$1=null,T$3=class T{static get now(){return yr$2}static set now(e){yr$2=e;}static set defaultZone(e){Tr$2=e;}static get defaultZone(){return Z$1(Tr$2,X$2.instance)}static get defaultLocale(){return pr$2}static set defaultLocale(e){pr$2=e;}static get defaultNumberingSystem(){return gr$3}static set defaultNumberingSystem(e){gr$3=e;}static get defaultOutputCalendar(){return wr$1}static set defaultOutputCalendar(e){wr$1=e;}static get defaultWeekSettings(){return Or$1}static set defaultWeekSettings(e){Or$1=Ye(e);}static get twoDigitCutoffYear(){return Sr$2}static set twoDigitCutoffYear(e){Sr$2=e%100;}static get throwOnInvalid(){return Er$2}static set throwOnInvalid(e){Er$2=e;}static resetCaches(){p$5.resetCache(),F$4.resetCache(),w$2.resetCache(),hr$2();}};var x$3=class x{constructor(e,r){this.reason=e,this.explanation=r;}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var kr$1=[0,31,59,90,120,151,181,212,243,273,304,334],Ir$1=[0,31,60,91,121,152,182,213,244,274,305,335];function C(t,e){return new x$3("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function mt$3(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let s=n.getUTCDay();return s===0?7:s}function Dr$1(t,e,r){return r+(re(t)?Ir$1:kr$1)[e-1]}function xr$2(t,e){let r=re(t)?Ir$1:kr$1,n=r.findIndex(i=>i<e),s=e-r[n];return {month:n+1,day:s}}function dt$2(t,e){return (t-e+7)%7+1}function Pe$1(t,e=4,r=1){let{year:n,month:s,day:i}=t,a=Dr$1(n,s,i),o=dt$2(mt$3(n,s,i),r),u=Math.floor((a-o+14-e)/7),l;return u<1?(l=n-1,u=te$2(l,e,r)):u>te$2(n,e,r)?(l=n+1,u=1):l=n,r$d({weekYear:l,weekNumber:u,weekday:o},Be$2(t))}function Zt$2(t,e=4,r=1){let{weekYear:n,weekNumber:s,weekday:i}=t,a=dt$2(mt$3(n,1,e),r),o=P$2(n),u=s*7+i-a-7+e,l;u<1?(l=n-1,u+=P$2(l)):u>o?(l=n+1,u-=P$2(n)):l=n;let{month:d,day:y}=xr$2(l,u);return r$d({year:l,month:d,day:y},Be$2(t))}function ht$3(t){let{year:e,month:r,day:n}=t,s=Dr$1(e,r,n);return r$d({year:e,ordinal:s},Be$2(t))}function Ut$1(t){let{year:e,ordinal:r}=t,{month:n,day:s}=xr$2(e,r);return r$d({year:e,month:n,day:s},Be$2(t))}function $t$3(t,e){if(!f$3(t.localWeekday)||!f$3(t.localWeekNumber)||!f$3(t.localWeekYear)){if(!f$3(t.weekday)||!f$3(t.weekNumber)||!f$3(t.weekYear))throw new V$4("Cannot mix locale-based week fields with ISO-based week fields");return f$3(t.localWeekday)||(t.weekday=t.localWeekday),f$3(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),f$3(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return {minDaysInFirstWeek:4,startOfWeek:1}}function Mr$2(t,e=4,r=1){let n=Je$1(t.weekYear),s=W$5(t.weekNumber,1,te$2(t.weekYear,e,r)),i=W$5(t.weekday,1,7);return n?s?i?false:C("weekday",t.weekday):C("week",t.weekNumber):C("weekYear",t.weekYear)}function Fr$1(t){let e=Je$1(t.year),r=W$5(t.ordinal,1,P$2(t.year));return e?r?false:C("ordinal",t.ordinal):C("year",t.year)}function Rt$3(t){let e=Je$1(t.year),r=W$5(t.month,1,12),n=W$5(t.day,1,fe$1(t.year,t.month));return e?r?n?false:C("day",t.day):C("month",t.month):C("year",t.year)}function zt$2(t){let{hour:e,minute:r,second:n,millisecond:s}=t,i=W$5(e,0,23)||e===24&&r===0&&n===0&&s===0,a=W$5(r,0,59),o=W$5(n,0,59),u=W$5(s,0,999);return i?a?o?u?false:C("millisecond",s):C("second",n):C("minute",r):C("hour",e)}function f$3(t){return typeof t>"u"}function U$2(t){return typeof t=="number"}function Je$1(t){return typeof t=="number"&&t%1===0}function fr$2(t){return typeof t=="string"}function vr$2(t){return Object.prototype.toString.call(t)==="[object Date]"}function ct$2(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return false}}function ft$4(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return false}}function Lr$1(t){return Array.isArray(t)?t:[t]}function qt$1(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{let i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function Wr$1(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function J$5(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ye(t){if(t==null)return null;if(typeof t!="object")throw new E$4("Week settings must be an object");
1298if(!W$5(t.firstDay,1,7)||!W$5(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!W$5(e,1,7)))throw new E$4("Invalid week settings");return {firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function W$5(t,e,r){return Je$1(t)&&t>=e&&t<=r}function Un$1(t,e){return t-e*Math.floor(t/e)}function S$4(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function q$4(t){if(!(f$3(t)||t===null||t===""))return parseInt(t,10)}function B$7(t){if(!(f$3(t)||t===null||t===""))return parseFloat(t)}function je$1(t){if(!(f$3(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function le$1(t,e,r=false){let n=10**e;return (r?Math.trunc:Math.round)(t*n)/n}function re(t){return t%4===0&&(t%100!==0||t%400===0)}function P$2(t){return re(t)?366:365}function fe$1(t,e){let r=Un$1(e-1,12)+1,n=t+(e-r)/12;return r===2?re(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ue$1(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Nr(t,e,r){return -dt$2(mt$3(t,1,e),r)+e-1}function te$2(t,e=4,r=1){let n=Nr(t,e,r),s=Nr(t+1,e,r);return (P$2(t)-n+s)/7}function Ke(t){return t>99?t:t>T$3.twoDigitCutoffYear?1900+t:2e3+t}function at$5(t,e,r,n=null){let s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let a=r$d({timeZoneName:e},i),o=new Intl.DateTimeFormat(r,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function ee$2(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function Yt$2(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new E$4(`Invalid unit value ${t}`);return e}function me$2(t,e){let r={};for(let n in t)if(J$5(t,n)){let s=t[n];if(s==null)continue;r[e(n)]=Yt$2(s);}return r}function G$4(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case "short":return `${s}${S$4(r,2)}:${S$4(n,2)}`;case "narrow":return `${s}${r}${n>0?`:${n}`:""}`;case "techie":return `${s}${S$4(r,2)}${S$4(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Be$2(t){return Wr$1(t,["hour","minute","second","millisecond"])}var $n$2=["January","February","March","April","May","June","July","August","September","October","November","December"],Gt$1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Rn$1=["J","F","M","A","M","J","J","A","S","O","N","D"];function Wt$3(t){switch(t){case "narrow":return [...Rn$1];case "short":return [...Gt$1];case "long":return [...$n$2];case "numeric":return ["1","2","3","4","5","6","7","8","9","10","11","12"];case "2-digit":return ["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Pt$2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Jt$2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],zn$1=["M","T","W","T","F","S","S"];function bt$3(t){switch(t){case "narrow":return [...zn$1];case "short":return [...Jt$2];case "long":return [...Pt$2];case "numeric":return ["1","2","3","4","5","6","7"];default:return null}}var Ct$5=["AM","PM"],qn$2=["Before Christ","Anno Domini"],Yn$1=["BC","AD"],Gn$2=["B","A"];function _t$3(t){switch(t){case "narrow":return [...Gn$2];case "short":return [...Yn$1];case "long":return [...qn$2];default:return null}}function br$2(t){return Ct$5[t.hour<12?0:1]}function Cr$2(t,e){return bt$3(e)[t.weekday-1]}function _r$2(t,e){return Wt$3(e)[t.month-1]}function Vr$2(t,e){return _t$3(e)[t.year<0?0:1]}function cr$2(t,e,r="always",n=false){let s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){let y=t==="days";switch(e){case 1:return y?"tomorrow":`next ${s[t][0]}`;case -1:return y?"yesterday":`last ${s[t][0]}`;case 0:return y?"today":`this ${s[t][0]}`;}}let a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[t],d=n?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return a?`${o} ${d} ago`:`in ${o} ${d}`}function Ar$2(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Pn$1={D:Y$6,DD:De$2,DDD:xe$1,DDDD:Me$1,t:Fe$1,tt:Ne$3,ttt:ve$3,tttt:Le$2,T:We$2,TT:be$2,TTT:Ce$1,TTTT:_e$1,f:Ve$1,ff:He$2,fff
1298:Ue$1,ffff:Re$1,F:Ae$1,FF:Ze$2,FFF:$e$1,FFFF:ze},M$6=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",s=false,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);o==="'"?(n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),r=null,n="",s=!s):s||o===r?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,r=o);}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Pn$1[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null;}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,r$d(r$d({},this.opts),r)).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,r$d(r$d({},this.opts),r))}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return S$4(e,r);let n=r$d({},this.opts);return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,I)=>this.loc.extract(e,h,I),a=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",o=()=>n?br$2(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,I)=>n?_r$2(e,h):i(I?{month:h}:{month:h,day:"numeric"},"month"),l=(h,I)=>n?Cr$2(e,h):i(I?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),d=h=>{let I=t.macroTokenToFormatOpts(h);return I?this.formatWithSystemDefault(e,I):h},y=h=>n?Vr$2(e,h):i({era:h},"era"),k=h=>{switch(h){case "S":return this.num(e.millisecond);case "u":case "SSS":return this.num(e.millisecond,3);case "s":return this.num(e.second);case "ss":return this.num(e.second,2);case "uu":return this.num(Math.floor(e.millisecond/10),2);case "uuu":return this.num(Math.floor(e.millisecond/100));case "m":return this.num(e.minute);case "mm":return this.num(e.minute,2);case "h":return this.num(e.hour%12===0?12:e.hour%12);case "hh":return this.num(e.hour%12===0?12:e.hour%12,2);case "H":return this.num(e.hour);case "HH":return this.num(e.hour,2);case "Z":return a({format:"narrow",allowZ:this.opts.allowZ});case "ZZ":return a({format:"short",allowZ:this.opts.allowZ});case "ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case "ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case "ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case "z":return e.zoneName;case "a":return o();case "d":return s?i({day:"numeric"},"day"):this.num(e.day);case "dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case "c":return this.num(e.weekday);case "ccc":return l("short",true);case "cccc":return l("long",true);case "ccccc":return l("narrow",true);case "E":return this.num(e.weekday);case "EEE":return l("short",false);case "EEEE":return l("long",false);case "EEEEE":return l("narrow",false);case "L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case "LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case "LLL":return u("short",true);case "LLLL":return u("long",true);case "LLLLL":return u("narrow",true);case "M":return s?i({month:"numeric"},"month"):this.num(e.month);case "MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case "MMM":return u("short",false);case "MMMM":return u("long",false);case "MMMMM":return u("narrow",false);case "y":return s?i({year:"numeric"},"year"):this.num(e.year);case "yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case "yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case "yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case "G":return y("short");case "GG":return y("long");case "GGGGG":return y("narrow");case "kk":return this.num(e.weekYear.toString().slice(-2),2);case "kkkk":return this.num(e.weekYear,4);case "W":return this.num(e.weekNumber);case "WW":return this.num(e.weekNumber,2);case "n":return this.num(e.localWeekNumber);case "nn":return this.num(e.localWeekNumber,2);case "ii":return this.num(e.localWeekYear.toString().slice(-2),2);case "iiii":return this.num(e.localWeekYear,4);case "o":return this.num(e.ordinal);case "ooo":return this.num(e.ordinal,3);case "q":return this.num(e.quarter);case "qq":return this.num(e.quarter,2);case "X":return this.num(Math.floor(e.ts/1e3));case "x":return this.num(e.ts);default:return d(h)}};return Ar$2(t.parseFormat(r),k)}formatDurationFromString(e,r){let n=u=>{switch(u[0]){case "S":return "millisecond";case "s":return "second";case "m":return "minute";case "h":return "hour";case "d":return "day";case "w":return "week";case "M":return "month";case "y":return "year";default:return null}},s=u=>l=>{let d=n(l);return d?this.num(u.get(d),l.length):l},i=t.parseFormat(r),a=i.reduce((u,{literal:l,val:d})=>l?u:u.concat(d),[]),o=e.shiftTo(...a.map(n).filter(u=>u));
1298return Ar$2(i,s(o))}};var Zr$1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function he$2(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function ye$2(...t){return e=>t.reduce(([r,n,s],i)=>{let[a,o,u]=i(e,s);return [r$d(r$d({},r),a),o||n,u]},[{},null,1]).slice(0,2)}function Te$2(t,...e){if(t==null)return [null,null];for(let[r,n]of e){let s=r.exec(t);if(s)return n(s)}return [null,null]}function Ur(...t){return (e,r)=>{let n={},s;for(s=0;s<t.length;s++)n[t[s]]=q$4(e[r+s]);return [n,null,r+s]}}var $r$1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Jn$2=`(?:${$r$1.source}?(?:\\[(${Zr$1.source})\\])?)?`,Bt$2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Rr$1=RegExp(`${Bt$2.source}${Jn$2}`),jt$2=RegExp(`(?:T${Rr$1.source})?`),Bn$1=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,jn$1=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Kn$2=/(\d{4})-?(\d{3})/,Qn$2=Ur("weekYear","weekNumber","weekDay"),Xn$1=Ur("year","ordinal"),es$1=/(\d{4})-(\d\d)-(\d\d)/,zr$2=RegExp(`${Bt$2.source} ?(?:${$r$1.source}|(${Zr$1.source}))?`),ts$1=RegExp(`(?: ${zr$2.source})?`);function de$3(t,e,r){let n=t[e];return f$3(n)?r:q$4(n)}function rs$1(t,e){return [{year:de$3(t,e),month:de$3(t,e+1,1),day:de$3(t,e+2,1)},null,e+3]}function pe$3(t,e){return [{hours:de$3(t,e,0),minutes:de$3(t,e+1,0),seconds:de$3(t,e+2,0),milliseconds:je$1(t[e+3])},null,e+4]}function Qe$1(t,e){let r=!t[e]&&!t[e+1],n=ee$2(t[e+1],t[e+2]),s=r?null:D$7.instance(n);return [{},s,e+3]}function Xe(t,e){let r=t[e]?F$4.create(t[e]):null;return [{},r,e+1]}var ns$1=RegExp(`^T?${Bt$2.source}$`),ss$1=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function is$1(t){let[e,r,n,s,i,a,o,u,l]=t,d=e[0]==="-",y=u&&u[0]==="-",k=(h,I=false)=>h!==void 0&&(I||h&&d)?-h:h;return [{years:k(B$7(r)),months:k(B$7(n)),weeks:k(B$7(s)),days:k(B$7(i)),hours:k(B$7(a)),minutes:k(B$7(o)),seconds:k(B$7(u),u==="-0"),milliseconds:k(je$1(l),y)}]}var as$1={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Kt$2(t,e,r,n,s,i,a){let o={year:e.length===2?Ke(q$4(e)):q$4(e),month:Gt$1.indexOf(r)+1,day:q$4(n),hour:q$4(s),minute:q$4(i)};return a&&(o.second=q$4(a)),t&&(o.weekday=t.length>3?Pt$2.indexOf(t)+1:Jt$2.indexOf(t)+1),o}var os$1=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function us$1(t){let[,e,r,n,s,i,a,o,u,l,d,y]=t,k=Kt$2(e,s,n,r,i,a,o),h;return u?h=as$1[u]:l?h=0:h=ee$2(d,y),[k,new D$7(h)]}function ls$1(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var cs$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,fs$1=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ms$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Hr$1(t){let[,e,r,n,s,i,a,o]=t;return [Kt$2(e,s,n,r,i,a,o),D$7.utcInstance]}function ds$1(t){let[,e,r,n,s,i,a,o]=t;return [Kt$2(e,o,r,n,s,i,a),D$7.utcInstance]}var hs$1=he$2(Bn$1,jt$2),ys$1=he$2(jn$1,jt$2),Ts$1=he$2(Kn$2,jt$2),ps$1=he$2(Rr$1),qr$1=ye$2(rs$1,pe$3,Qe$1,Xe),gs$1=ye$2(Qn$2,pe$3,Qe$1,Xe),ws$1=ye$2(Xn$1,pe$3,Qe$1,Xe),Ss$1=ye$2(pe$3,Qe$1,Xe);function Yr$1(t){return Te$2(t,[hs$1,qr$1],[ys$1,gs$1],[Ts$1,ws$1],[ps$1,Ss$1])}function Gr$1(t){return Te$2(ls$1(t),[os$1,us$1])}function Pr$1(t){return Te$2(t,[cs$1,Hr$1],[fs$1,Hr$1],[ms$1,ds$1])}function Jr$1(t){return Te$2(t,[ss$1,is$1])}var Es$1=ye$2(pe$3);function Br$1(t){return Te$2(t,[ns$1,Es$1])}var Os$1=he$2(es$1,ts$1),ks$1=he$2(zr$2),Is$1=ye$2(pe$3,Qe$1,Xe);function jr$1(t){return Te$2(t,[Os$1,qr$1],[ks$1,Is$1])}var Kr$1="Invalid Duration",Xr$1={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ds$1=r$d({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3}},Xr$1),_$3=146097/400,ge$1=146097/4800,xs$1=r$d({years:{quarters:4,months:12,weeks:_$3/7,days:_$3,hours:_$3*24,minutes:_$3*24*60,seconds:_$3*24*60*60,milliseconds:_$3*24*60*60*1e3},quarters:{months:3,weeks:_$3/28,days:_$3/4,hours:_$3*24/4,minutes:_$3*24*60/4,seconds:_$3*24*60*60/4,milliseconds:_$3*24*60*60*1e3/4},months:{weeks:ge$1/7,days:ge$1,hours:ge$1*24,minutes:ge$1*24*60,seconds:ge$1*24*60*60,milliseconds:ge$1*24*60*60*1e3}},Xr$1),ne$2=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ms$1=ne$2.slice(0).reverse();function j$5(t,e,r=false){let n={values:r?e.values:r$d(r$d({},t.values),e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new O$4(n)}function en$3(t,e){let r=e.milliseconds??0;for(let n of Ms$1.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function Qr$1(t,e){let r=en$3(t,e)<0?-1:1;ne$2.reduceRight((n,s)=>{if(f$3(e[s]))return n;if(n){let i=e[n]*r,a=t[s][n],o=Math.floor(i/a);e[s]+=o*r,e[n]-=o*a*r;}return s},null),ne$2.reduce((n,s)=>{if(f$3(e[s]))return n;if(n){let i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s];}return s},null);}function Fs$1(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var O$4=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||false,n=r?xs$1:Ds$1;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||p$5.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=true;}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new E$4(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:me$2(e,t.normalizeUnit),loc:p$5.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(U$2(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new E$4(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=Jr$1(e);
1298return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=Br$1(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new E$4("need to specify a reason the Duration is invalid");let n=e instanceof x$3?e:new x$3(e,r);if(T$3.throwOnInvalid)throw new st$3(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new oe$2(e);return r}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n=s$e(r$d({},r),{floor:r.round!==false&&r.floor!==false});return this.isValid?M$6.create(this.loc,n).formatDurationFromString(this,e):Kr$1}toHuman(e={}){if(!this.isValid)return Kr$1;let r=ne$2.map(n=>{let s=this.values[n];return f$3(s)?null:this.loc.numberFormatter(s$e(r$d({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(s)}).filter(n=>n);return this.loc.listFormatter(r$d({type:"conjunction",style:e.listStyle||"narrow"},e)).format(r)}toObject(){return this.isValid?r$d({},this.values):{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=le$1(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e=s$e(r$d({suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended"},e),{includeOffset:false}),w$2.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?en$3(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let s of ne$2)(J$5(r.values,s)||J$5(this.values,s))&&(n[s]=r.get(s)+this.get(s));return j$5(this,{values:n},true)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=Yt$2(e(this.values[n],n));return j$5(this,{values:r},true)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r=r$d(r$d({},this.values),me$2(e,t.normalizeUnit));return j$5(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){let a={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return j$5(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Qr$1(this.matrix,e),j$5(this,{values:e},true)}rescale(){if(!this.isValid)return this;let e=Fs$1(this.normalize().shiftToAll().toObject());return j$5(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>t.normalizeUnit(a));let r={},n={},s=this.toObject(),i;for(let a of ne$2)if(e.indexOf(a)>=0){i=a;let o=0;for(let l in n)o+=this.matrix[l][a]*n[l],n[l]=0;U$2(s[a])&&(o+=s[a]);let u=Math.trunc(o);r[a]=u,n[a]=(o*1e3-u*1e3)/1e3;}else U$2(s[a])&&(n[a]=s[a]);for(let a in n)n[a]!==0&&(r[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return Qr$1(this.matrix,r),j$5(this,{values:r},true)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return j$5(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return false;function r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(let n of ne$2)if(!r(this.values[n],e.values[n]))return false;return true}};var we$2="Invalid Interval";function Ns$1(t,e){return !t||!t.isValid?K$4.invalid("missing or invalid start"):!e||!e.isValid?K$4.invalid("missing or invalid end"):e<t?K$4.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var K$4=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=true;}
1298static invalid(e,r=null){if(!e)throw new E$4("need to specify a reason the Interval is invalid");let n=e instanceof x$3?e:new x$3(e,r);if(T$3.throwOnInvalid)throw new nt$3(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=Se$3(e),s=Se$3(r),i=Ns$1(n,s);return i??new t({start:n,end:s})}static after(e,r){let n=O$4.fromDurationLike(r),s=Se$3(e);return t.fromDateTimes(s,s.plus(n))}static before(e,r){let n=O$4.fromDurationLike(r),s=Se$3(e);return t.fromDateTimes(s.minus(n),s)}static fromISO(e,r){let[n,s]=(e||"").split("/",2);if(n&&s){let i,a;try{i=w$2.fromISO(n,r),a=i.isValid;}catch{a=false;}let o,u;try{o=w$2.fromISO(s,r),u=o.isValid;}catch{u=false;}if(a&&u)return t.fromDateTimes(i,o);if(a){let l=O$4.fromISO(s,r);if(l.isValid)return t.after(i,l)}else if(u){let l=O$4.fromISO(n,r);if(l.isValid)return t.before(o,l)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||false}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),s;return r?.useLocaleWeeks?s=this.end.reconfigure({locale:n.locale}):s=this.end,s=s.startOf(e,r),Math.floor(s.diff(n,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):false}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:false}isBefore(e){return this.isValid?this.e<=e:false}contains(e){return this.isValid?this.s<=e&&this.e>e:false}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return [];let r=e.map(Se$3).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),n=[],{s}=this,i=0;for(;s<this.e;){let a=r[i]||this.e,o=+a>+this.e?this.e:a;n.push(t.fromDateTimes(s,o)),s=o,i+=1;}return n}splitBy(e){let r=O$4.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return [];let{s:n}=this,s=1,i,a=[];for(;n<this.e;){let o=this.start.plus(r.mapUnits(u=>u*s));i=+o>+this.e?this.e:o,a.push(t.fromDateTimes(n,i)),n=i,s+=1;}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:false}abutsEnd(e){return this.isValid?+e.e==+this.s:false}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:false}equals(e){return !this.isValid||!e.isValid?false:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,l)=>u.time-l.time);for(let u of o)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&s.push(t.fromDateTimes(r,u.time)),r=null);return t.merge(s)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:we$2}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Y$6,r={}){return this.isValid?M$6.create(this.s.loc.clone(r),e).formatInterval(this):we$2}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:we$2}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:we$2}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:we$2}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:we$2}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):O$4.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var Q$1=class Q{static hasDST(e=T$3.defaultZone){let r=w$2.now().setZone(e).set({month:12});return !e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return F$4.isValidZone(e)}static normalizeZone(e){return Z$1(e,T$3.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return (r||p$5.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return (r||p$5.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return (r||p$5.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return (s||p$5.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return (s||p$5.create(r,n,i)).months(e,true)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return (s||p$5.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return (s||p$5.create(r,n,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return p$5.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return p$5.create(r,null,"gregory").eras(e)}static features(){return {relative:ct$2(),localeWeek:ft$4()}}};function tn$3(t,e){let r=s=>s.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(O$4.fromMillis(n).as("days"))}function vs$1(t,e,r){let n=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{let d=tn$3(u,l);return (d-d%7)/7}],["days",tn$3]],s={},i=t,a,o;for(let[u,l]of n)r.indexOf(u)>=0&&(a=u,s[u]=l(t,e),o=i.plus(s),o>e?(s[u]--,t=i.plus(s),t>
1298e&&(o=t,s[u]--,t=i.plus(s))):t=o);return [t,s,o,a]}function rn$2(t,e,r,n){let[s,i,a,o]=vs$1(t,e,r),u=e-s,l=r.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);l.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));let d=O$4.fromObject(i,n);return l.length>0?O$4.fromMillis(u,n).shiftTo(...l).plus(d):d}var Ls$1="missing Intl.DateTimeFormat.formatToParts support";function g$5(t,e=r=>r){return {regex:t,deser:([r])=>e(dr$2(r))}}var Ws$1="\xA0",an$1=`[ ${Ws$1}]`,on$2=new RegExp(an$1,"g");function bs$1(t){return t.replace(/\./g,"\\.?").replace(on$2,an$1)}function nn$2(t){return t.replace(/\./g,"").replace(on$2," ").toLowerCase()}function $$6(t,e){return t===null?null:{regex:RegExp(t.map(bs$1).join("|")),deser:([r])=>t.findIndex(n=>nn$2(r)===nn$2(n))+e}}function sn$2(t,e){return {regex:t,deser:([,r,n])=>ee$2(r,n),groups:e}}function yt$3(t){return {regex:t,deser:([e])=>e}}function Cs$1(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function _s$1(t,e){let r=b$3(e),n=b$3(e,"{2}"),s=b$3(e,"{3}"),i=b$3(e,"{4}"),a=b$3(e,"{6}"),o=b$3(e,"{1,2}"),u=b$3(e,"{1,3}"),l=b$3(e,"{1,6}"),d=b$3(e,"{1,9}"),y=b$3(e,"{2,4}"),k=b$3(e,"{4,6}"),h=R=>({regex:RegExp(Cs$1(R.val)),deser:([ae])=>ae,literal:true}),ie=(R=>{if(t.literal)return h(R);switch(R.val){case "G":return $$6(e.eras("short"),0);case "GG":return $$6(e.eras("long"),0);case "y":return g$5(l);case "yy":return g$5(y,Ke);case "yyyy":return g$5(i);case "yyyyy":return g$5(k);case "yyyyyy":return g$5(a);case "M":return g$5(o);case "MM":return g$5(n);case "MMM":return $$6(e.months("short",true),1);case "MMMM":return $$6(e.months("long",true),1);case "L":return g$5(o);case "LL":return g$5(n);case "LLL":return $$6(e.months("short",false),1);case "LLLL":return $$6(e.months("long",false),1);case "d":return g$5(o);case "dd":return g$5(n);case "o":return g$5(u);case "ooo":return g$5(s);case "HH":return g$5(n);case "H":return g$5(o);case "hh":return g$5(n);case "h":return g$5(o);case "mm":return g$5(n);case "m":return g$5(o);case "q":return g$5(o);case "qq":return g$5(n);case "s":return g$5(o);case "ss":return g$5(n);case "S":return g$5(u);case "SSS":return g$5(s);case "u":return yt$3(d);case "uu":return yt$3(o);case "uuu":return g$5(r);case "a":return $$6(e.meridiems(),0);case "kkkk":return g$5(i);case "kk":return g$5(y,Ke);case "W":return g$5(o);case "WW":return g$5(n);case "E":case "c":return g$5(r);case "EEE":return $$6(e.weekdays("short",false),1);case "EEEE":return $$6(e.weekdays("long",false),1);case "ccc":return $$6(e.weekdays("short",true),1);case "cccc":return $$6(e.weekdays("long",true),1);case "Z":case "ZZ":return sn$2(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case "ZZZ":return sn$2(new RegExp(`([+-]${o.source})(${n.source})?`),2);case "z":return yt$3(/[a-z_+-/]{1,256}?/i);case " ":return yt$3(/[^\S\n\r]/);default:return h(R)}})(t)||{invalidReason:Ls$1};return ie.token=t,ie}var Vs$1={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function As$1(t,e,r){let{type:n,value:s}=t;if(n==="literal"){let u=/^\s+$/.test(s);return {literal:!u,val:u?" ":s}}let i=e[n],a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=r.hour12?"hour12":"hour24");let o=Vs$1[a];if(typeof o=="object"&&(o=o[i]),o)return {literal:false,val:o}}function Hs$1(t){return [`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function Zs$1(t,e,r){let n=t.match(e);if(n){let s={},i=1;for(let a in r)if(J$5(r,a)){let o=r[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(n.slice(i,i+u))),i+=u;}return [n,s]}else return [n,{}]}function Us$1(t){let e=i=>{switch(i){case "S":return "millisecond";case "s":return "second";case "m":return "minute";case "h":case "H":return "hour";case "d":return "day";case "o":return "ordinal";case "L":case "M":return "month";case "y":return "year";case "E":case "c":return "weekday";case "W":return "weekNumber";case "k":return "weekYear";case "q":return "quarter";default:return null}},r=null,n;return f$3(t.z)||(r=F$4.create(t.z)),f$3(t.Z)||(r||(r=new D$7(t.Z)),n=t.Z),f$3(t.q)||(t.M=(t.q-1)*3+1),f$3(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&
1298(t.y=-t.y),f$3(t.u)||(t.S=je$1(t.u)),[Object.keys(t).reduce((i,a)=>{let o=e(a);return o&&(i[o]=t[a]),i},{}),r,n]}var Qt$3=null;function $s$1(){return Qt$3||(Qt$3=w$2.fromMillis(1555555555555)),Qt$3}function Rs$1(t,e){if(t.literal)return t;let r=M$6.macroTokenToFormatOpts(t.val),n=tr$2(r,e);return n==null||n.includes(void 0)?t:n}function Xt$2(t,e){return Array.prototype.concat(...t.map(r=>Rs$1(r,e)))}var et$3=class et{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Xt$2(M$6.parseFormat(r),e),this.units=this.tokens.map(n=>_s$1(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,s]=Hs$1(this.units);this.regex=RegExp(n,"i"),this.handlers=s;}}explainFromTokens(e){if(this.isValid){let[r,n]=Zs$1(e,this.regex,this.handlers),[s,i,a]=n?Us$1(n):[null,null,void 0];if(J$5(n,"a")&&J$5(n,"H"))throw new V$4("Can't include meridiem when specifying 24-hour format");return {input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:s,zone:i,specificOffset:a}}else return {input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return !this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
1298dReason:null}};function er$2(t,e,r){return new et$3(t,r).explainFromTokens(e)}function un$2(t,e,r){let{result:n,zone:s,specificOffset:i,invalidReason:a}=er$2(t,e,r);return [n,s,i,a]}function tr$2(t,e){if(!t)return null;let n=M$6.create(e,t).dtFormatter($s$1()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>As$1(a,t,i))}var rr$3="Invalid DateTime",ln$2=864e13;function tt$2(t){return new x$3("unsupported zone",`the zone "${t.name}" is not supported`)}function nr$2(t){return t.weekData===null&&(t.weekData=Pe$1(t.c)),t.weekData}function sr$2(t){return t.localWeekData===null&&(t.localWeekData=Pe$1(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function se$2(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new w$2(s$e(r$d(r$d({},r),e),{old:r}))}function Tn$1(t,e,r){let n=t-e*60*1e3,s=r.offset(n);if(e===s)return [n,e];n-=(s-e)*60*1e3;let i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Tt$3(t,e){t+=e*60*1e3;let r=new Date(t);return {year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function gt$3(t,e,r){return Tn$1(ue$1(t),e,r)}function cn$2(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i=s$e(r$d({},t.c),{year:n,month:s,day:Math.min(t.c.day,fe$1(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),a=O$4.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=ue$1(i),[u,l]=Tn$1(o,r,t.zone);return a!==0&&(u+=a,l=t.zone.offset(u)),{ts:u,o:l}}function Ee$2(t,e,r,n,s,i){let{setZone:a,zone:o}=r;if(t&&Object.keys(t).length!==0||e){let u=e||o,l=w$2.fromObject(t,s$e(r$d({},r),{zone:u,specificOffset:i}));return a?l:l.setZone(o)}else return w$2.invalid(new x$3("unparsable",`the input "${s}" can't be parsed as ${n}`))}function pt$4(t,e,r=true){return t.isValid?M$6.create(p$5.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(t,e):null}function ir$3(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=S$4(t.c.year,r?6:4),e?(n+="-",n+=S$4(t.c.month),n+="-",n+=S$4(t.c.day)):(n+=S$4(t.c.month),n+=S$4(t.c.day)),n}function fn$3(t,e,r,n,s,i){let a=S$4(t.c.hour);return e?(a+=":",a+=S$4(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=":")):a+=S$4(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(a+=S$4(t.c.second),(t.c.millisecond!==0||!n)&&(a+=".",a+=S$4(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=S$4(Math.trunc(-t.o/60)),a+=":",a+=S$4(Math.trunc(-t.o%60))):(a+="+",a+=S$4(Math.trunc(t.o/60)),a+=":",a+=S$4(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}var pn$2={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zs$1={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},qs$1={ordinal:1,hour:0,minute:0,second:0,millisecond:0},gn$2=["year","month","day","hour","minute","second","millisecond"],Ys$1=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Gs$1=["year","ordinal","hour","minute","second","millisecond"];function Ps(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new oe$2(t);return e}function mn$2(t){switch(t.toLowerCase()){case "localweekday":case "localweekdays":return "localWeekday";case "localweeknumber":case "localweeknumbers":return "localWeekNumber";case "localweekyear":case "localweekyears":return "localWeekYear";default:return Ps(t)}}function Js$1(t){return St$3[t]||(wt$5===void 0&&(wt$5=T$3.now()),St$3[t]=t.offset(wt$5)),St$3[t]}function dn$2(t,e){let r=Z$1(e.zone,T$3.defaultZone);if(!r.isValid)return w$2.invalid(tt$2(r));let n=p$5.fromObject(e),s,i;if(f$3(t.year))s=T$3.now();else {for(let u of gn$2)f$3(t[u])&&(t[u]=pn$2[u]);let a=Rt$3(t)||zt$2(t);if(a)return w$2.invalid(a);let o=Js$1(r);[s,i]=gt$3(t,o,r);}return new w$2({ts:s,zone:r,loc:n,o:i})}function hn$2(t,e,r){let n=f$3(r.round)?true:r.round,s=(a,o)=>(a=le$1(a,n||r.calendary?0:2,true),e.loc.clone(r).relFormatter(r).format(a,o)),i=a=>r.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(r.unit)return s(i(r.unit),r.unit);for(let a of r.units){let o=i(a);if(Math.abs(o)>=1)return s(o,a)}return s(t>e?-0:0,r.units[r.units.length-1])}function yn$1(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var wt$5,St$3={},w$2=class t{constructor(e){let r=e.zone||T$3.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new x$3("invalid input"):null)||(r.isValid?null:tt$2(r));this.ts=f$3(e.ts)?T$3.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else {let o=U$2(e.o)&&!e.old?e.o:r.offset(this.ts);s=Tt$3(this.ts,o),n=Number.isNaN(s.year)?new x$3("invalid input"):null,s=n?null:s,i=n?null:o;}this._zone=r,this.loc=e.loc||p$5.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=true;}static now(){return new t({})}static local(){let[e,r]=yn$1(arguments),[n,s,i,a,o,u,l]=r;return dn$2({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static utc(){let[e,r]=yn$1(arguments),[n,s,i,a,o,u,l]=r;return e.zone=D$7.utcInstance,dn$2({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static fromJSDate(e,r={}){let n=vr$2(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let s=Z$1(r.zone,T$3.defaultZone);return s.isValid?new t({ts:n,zone:s,loc:p$5.fromObject(r)}
1298):t.invalid(tt$2(s))}static fromMillis(e,r={}){if(U$2(e))return e<-ln$2||e>ln$2?t.invalid("Timestamp out of range"):new t({ts:e,zone:Z$1(r.zone,T$3.defaultZone),loc:p$5.fromObject(r)});throw new E$4(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(U$2(e))return new t({ts:e*1e3,zone:Z$1(r.zone,T$3.defaultZone),loc:p$5.fromObject(r)});throw new E$4("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=Z$1(r.zone,T$3.defaultZone);if(!n.isValid)return t.invalid(tt$2(n));let s=p$5.fromObject(r),i=me$2(e,mn$2),{minDaysInFirstWeek:a,startOfWeek:o}=$t$3(i,s),u=T$3.now(),l=f$3(r.specificOffset)?n.offset(u):r.specificOffset,d=!f$3(i.ordinal),y=!f$3(i.year),k=!f$3(i.month)||!f$3(i.day),h=y||k,I=i.weekYear||i.weekNumber;if((h||d)&&I)throw new V$4("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(k&&d)throw new V$4("Can't mix ordinal dates with month/day");let ie=I||i.weekday&&!h,R,ae,Oe=Tt$3(u,l);ie?(R=Ys$1,ae=zs$1,Oe=Pe$1(Oe,a,o)):d?(R=Gs$1,ae=qs$1,Oe=ht$3(Oe)):(R=gn$2,ae=pn$2);let ar=false;for(let Ie of R){let kn=i[Ie];f$3(kn)?ar?i[Ie]=ae[Ie]:i[Ie]=Oe[Ie]:ar=true;}let wn=ie?Mr$2(i,a,o):d?Fr$1(i):Rt$3(i),or=wn||zt$2(i);if(or)return t.invalid(or);let Sn=ie?Zt$2(i,a,o):d?Ut$1(i):i,[En,On]=gt$3(Sn,l,n),ke=new t({ts:En,zone:n,o:On,loc:s});return i.weekday&&h&&e.weekday!==ke.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${ke.toISO()}`):ke.isValid?ke:t.invalid(ke.invalid)}static fromISO(e,r={}){let[n,s]=Yr$1(e);return Ee$2(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,s]=Gr$1(e);return Ee$2(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,s]=Pr$1(e);return Ee$2(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(f$3(e)||f$3(r))throw new E$4("fromFormat requires an input string and a format");let{locale:s=null,numberingSystem:i=null}=n,a=p$5.fromOpts({locale:s,numberingSystem:i,defaultToEN:true}),[o,u,l,d]=un$2(a,e,r);return d?t.invalid(d):Ee$2(o,u,n,`format ${r}`,e,l)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,s]=jr$1(e);return Ee$2(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new E$4("need to specify a reason the DateTime is invalid");let n=e instanceof x$3?e:new x$3(e,r);if(T$3.throwOnInvalid)throw new rt$3(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,r={}){let n=tr$2(e,p$5.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return Xt$2(M$6.parseFormat(e),p$5.fromObject(r)).map(s=>s.val).join("")}static resetCache(){wt$5=void 0,St$3={};}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
1298get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?nr$2(this).weekYear:NaN}get weekNumber(){return this.isValid?nr$2(this).weekNumber:NaN}get weekday(){return this.isValid?nr$2(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?sr$2(this).weekday:NaN}get localWeekNumber(){return this.isValid?sr$2(this).weekNumber:NaN}get localWeekYear(){return this.isValid?sr$2(this).weekYear:NaN}get ordinal(){return this.isValid?ht$3(this.c).ordinal:NaN}get monthShort(){return this.isValid?Q$1.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Q$1.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Q$1.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Q$1.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?false:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return [this];let e=864e5,r=6e4,n=ue$1(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*r),o=this.zone.offset(n-i*r);if(a===o)return [this];let u=n-a*r,l=n-o*r,d=Tt$3(u,a),y=Tt$3(l,o);return d.hour===y.hour&&d.minute===y.minute&&d.second===y.second&&d.millisecond===y.millisecond?[se$2(this,{ts:u}),se$2(this,{ts:l})]:[this]}get isInLeapYear(){return re(this.year)}get daysInMonth(){return fe$1(this.year,this.month)}get daysInYear(){return this.isValid?P$2(this.year):NaN}get weeksInWeekYear(){return this.isValid?te$2(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?te$2(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:s}=M$6.create(this.loc.clone(e),e).resolvedOptions(this);return {locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(D$7.instance(e),r)}toLocal(){return this.setZone(T$3.defaultZone)}setZone(e,{keepLocalTime:r=false,keepCalendarTime:n=false}={}){if(e=Z$1(e,T$3.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){let i=e.offset(this.ts),a=this.toObject();[s]=gt$3(a,i,e);}return se$2(this,{ts:s,zone:e})}else return t.invalid(tt$2(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return se$2(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=me$2(e,mn$2),{minDaysInFirstWeek:n,startOfWeek:s}=$t$3(r,this.loc),i=!f$3(r.weekYear)||!f$3(r.weekNumber)||!f$3(r.weekday),a=!f$3(r.ordinal),o=!f$3(r.year),u=!f$3(r.month)||!f$3(r.day),l=o||u,d=r.weekYear||r.weekNumber;if((l||a)&&d)throw new V$4("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new V$4("Can't mix ordinal dates with month/day");let y;i?y=Zt$2(r$d(r$d({},Pe$1(this.c,n,s)),r),n,s):f$3(r.ordinal)?(y=r$d(r$d({},this.toObject()),r),f$3(r.day)&&(y.day=Math.min(fe$1(y.year,y.month),y.day))):y=Ut$1(r$d(r$d({},ht$3(this.c)),r));let[k,h]=gt$3(y,this.o,this.zone);return se$2(this,{ts:k,o:h})}plus(e){if(!this.isValid)return this;let r=O$4.fromDurationLike(e);return se$2(this,cn$2(this,r))}minus(e){if(!this.isValid)return this;let r=O$4.fromDurationLike(e).negate();return se$2(this,cn$2(this,r))}startOf(e,{useLocaleWeeks:r=false}={}){if(!this.isValid)return this;let n={},s=O$4.normalizeUnit(e);switch(s){case "years":n.month=1;case "quarters":case "months":n.day=1;case "weeks":case "days":n.hour=0;case "hours":n.minute=0;case "minutes":n.second=0;case "seconds":n.millisecond=0;break;}if(s==="weeks")if(r){let i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i;}else n.weekday=1;if(s==="quarters"){let i=Math.ceil(this.month/3);n.month=(i-1)*3+1;}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?M$6.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):rr$3}
1298toLocaleString(e=Y$6,r={}){return this.isValid?M$6.create(this.loc.clone(r),e).formatDateTime(this):rr$3}toLocaleParts(e={}){return this.isValid?M$6.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=false,suppressMilliseconds:n=false,includeOffset:s=true,extendedZone:i=false}={}){if(!this.isValid)return null;let a=e==="extended",o=ir$3(this,a);return o+="T",o+=fn$3(this,a,r,n,s,i),o}toISODate({format:e="extended"}={}){return this.isValid?ir$3(this,e==="extended"):null}toISOWeekDate(){return pt$4(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=false,suppressSeconds:r=false,includeOffset:n=true,includePrefix:s=false,extendedZone:i=false,format:a="extended"}={}){return this.isValid?(s?"T":"")+fn$3(this,a==="extended",r,e,n,i):null}toRFC2822(){return pt$4(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",false)}toHTTP(){return pt$4(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ir$3(this,true):null}toSQLTime({includeOffset:e=true,includeZone:r=false,includeOffsetSpace:n=true}={}){let s="HH:mm:ss.SSS";return (r||e)&&(n&&(s+=" "),r?s+="z":e&&(s+="ZZ")),pt$4(this,s,true)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():rr$3}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return {};let r=r$d({},this.c);return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return O$4.invalid("created by diffing an invalid DateTime");let s=r$d({locale:this.locale,numberingSystem:this.numberingSystem},n),i=Lr$1(r).map(O$4.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,l=rn$2(o,u,i,s);return a?l.negate():l}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?K$4.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return false;let s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:true});return i.startOf(r,n)<=s&&s<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),hn$2(r,this.plus(n),s$e(r$d({},e),{numeric:"always",units:s,unit:i}))}toRelativeCalendar(e={}){return this.isValid?hn$2(e.base||t.fromObject({},{zone:this.zone}),this,s$e(r$d({},e),{numeric:"auto",units:["years","months","days"],calendary:true})):null}static min(...e){if(!e.every(t.isDateTime))throw new E$4("min requires all arguments be DateTimes");return qt$1(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new E$4("max requires all arguments be DateTimes");return qt$1(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:s=null,numberingSystem:i=null}=n,a=p$5.fromOpts({locale:s,numberingSystem:i,defaultToEN:true});return er$2(a,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:s=null}=r,i=p$5.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return new et$3(i,e)}static fromFormatParser(e,r,n={}){if(f$3(e)||f$3(r))throw new E$4("fromFormatParser requires an input string and a format parser");let{locale:s=null,numberingSystem:i=null}=n,a=p$5.fromOpts({locale:s,numberingSystem:i,defaultToEN:true});if(!a.equals(r.locale))throw new E$4(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${r.locale}`);let{result:o,zone:u,specificOffset:l,invalidReason:d}=r.explainFromTokens(e);
1298return d?t.invalid(d):Ee$2(o,u,n,`format ${r.format}`,e,l)}static get DATE_SHORT(){return Y$6}static get DATE_MED(){return De$2}static get DATE_MED_WITH_WEEKDAY(){return Ot$2}static get DATE_FULL(){return xe$1}static get DATE_HUGE(){return Me$1}static get TIME_SIMPLE(){return Fe$1}static get TIME_WITH_SECONDS(){return Ne$3}static get TIME_WITH_SHORT_OFFSET(){return ve$3}static get TIME_WITH_LONG_OFFSET(){return Le$2}static get TIME_24_SIMPLE(){return We$2}static get TIME_24_WITH_SECONDS(){return be$2}static get TIME_24_WITH_SHORT_OFFSET(){return Ce$1}static get TIME_24_WITH_LONG_OFFSET(){return _e$1}static get DATETIME_SHORT(){return Ve$1}static get DATETIME_SHORT_WITH_SECONDS(){return Ae$1}static get DATETIME_MED(){return He$2}static get DATETIME_MED_WITH_SECONDS(){return Ze$2}static get DATETIME_MED_WITH_WEEKDAY(){return kt$3}static get DATETIME_FULL(){return Ue$1}static get DATETIME_FULL_WITH_SECONDS(){return $e$1}static get DATETIME_HUGE(){return Re$1}static get DATETIME_HUGE_WITH_SECONDS(){return ze}};function Se$3(t){if(w$2.isDateTime(t))return t;if(t&&t.valueOf&&U$2(t.valueOf()))return w$2.fromJSDate(t);if(t&&typeof t=="object")return w$2.fromObject(t);throw new E$4(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var M$5=["*"];function F$3(e,d){if(e&1&&(yh$1(),Vv$1(0,"animate",7)),e&2){let t=yM();Pv$1("keyTimes",t.keyTimes)("values",t.animationValues[0],pb$1)("dur",t.duration);}}function D$6(e,d){if(e&1&&(yh$1(),Vv$1(0,"animate",7)),e&2){let t=yM();Pv$1("keyTimes",t.keyTimes)("values",t.animationValues[1],pb$1)("dur",t.duration);}}function I$3(e,d){if(e&1&&(yh$1(),Vv$1(0,"animate",7)),e&2){let t=yM();Pv$1("keyTimes",t.keyTimes)("values",t.animationValues[2],pb$1)("dur",t.duration);}}function T$2(){return Math.random().toString(36).substring(2)}var _$2=(()=>{class e{constructor(){this.fixedId=T$2(),this.idClip=`${this.fixedId}-diff`,this.idGradient=`${this.fixedId}-animated-diff`,this.idAria=`${this.fixedId}-aria`,this.animate=true,this.baseUrl="",this.speed=1.2,this.viewBox="0 0 400 130",this.gradientRatio=2,this.backgroundColor="#f5f6f7",this.backgroundOpacity=1,this.foregroundColor="#eee",this.foregroundOpacity=1,this.rtl=false,this.interval=.25,this.style={},this.animationValues=[];}ngOnInit(){this.clipPath=`url(${this.baseUrl}#${this.idClip})`,this.fillStyle={fill:`url(${this.baseUrl}#${this.idGradient})`},this.style=this.rtl?s$e(r$d({},this.style),{transform:"scaleX(-1)"}):this.style,this.duration=`${this.speed}s`,this.keyTimes=`0; ${this.interval}; 1`,this.animationValues=[`${-this.gradientRatio}; ${-this.gradientRatio}; 1`,`${-this.gradientRatio/2}; ${-this.gradientRatio/2}; ${1+this.gradientRatio/2}`,`0; 0; ${1+this.gradientRatio}`];}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=qS({type:e,selectors:[["content-loader"]],inputs:{animate:"animate",baseUrl:"baseUrl",speed:"speed",viewBox:"viewBox",gradientRatio:"gradientRatio",backgroundColor:"backgroundColor",backgroundOpacity:"backgroundOpacity",foregroundColor:"foregroundColor",foregroundOpacity:"foregroundOpacity",rtl:"rtl",interval:"interval",style:"style"},standalone:false,ngContentSelectors:M$5,decls:12,vars:15,consts:[[3,"ngStyle"],["role","presentation","x","0","y","0","width","100%","height","100%",3,"ngStyle"],["role","presentation"],["offset","0%"],["attributeName","offset","repeatCount","indefinite",4,"ngIf"],["offset","50%"],["offset","100%"],["attributeName","offset","repeatCount","indefinite"]],template:function(t,n){t&1&&(DM(),yh$1(),ta$3(0,"svg",0),Vv$1(1,"rect",1),ta$3(2,"defs",2)(3,"clipPath"),EM(4),Pd$1(),ta$3(5,"linearGradient")(6,"stop",3),gv$1(7,F$3,1,3,"animate",4),Pd$1(),ta$3(8,"stop",5),gv$1(9,D$6,1,3,"animate",4),Pd$1(),ta$3(10,"stop",6),gv$1(11,I$3,1,3,"animate",4),Pd$1()()()()),t&2&&(jv$1("ngStyle",n.style),Pv$1("viewBox",n.viewBox),uT(),jv$1("ngStyle",n.fillStyle),Pv$1("clip-path",n.clipPath),uT(2),Pv$1("id",n.idClip),uT(2),Pv$1("id",n.idGradient),uT(),Pv$1("stop-color",n.backgroundColor)("stop-opacity",n.backgroundOpacity),uT(),jv$1("ngIf",n.animate),uT(),Pv$1("stop-color",n.foregroundColor)("stop-opacity",n.foregroundOpacity),uT(),jv$1("ngIf",n.animate),uT(),Pv$1("stop-color",n.backgroundColor)("stop-opacity",n.backgroundOpacity),uT(),jv$1("ngIf",n.animate));},dependencies:[Ex$1,Dx$1],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var S$3=(()=>{class e{static forRoot(){return {ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Sa$2({type:e}),e.\u0275inj=io$5({imports:[[kx$1]]}),e})();var V$3=["*"],A$4=(()=>{class e{constructor(){this.viewBox="0 0 400 130";}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-content-loader"]],hostAttrs:[1,"block"],inputs:{viewBox:"viewBox"},ngContentSelectors:V$3,decls:2,vars:1,consts:[["foregroundColor","rgb(var(--mspot-neutral-300) / 1)","backgroundColor","rgb(var(--mspot-neutral-200) / 1)",3,"viewBox"]],template:function(n,k){n&1&&(DM(),ta$3(0,"content-loader",0),EM(1),Pd$1()),n&2&&jv$1("viewB
1298ox",k.viewBox);},dependencies:[S$3,_$2],encapsulation:2});}}return e})();var v$3=(()=>{class t extends B$8{constructor(){super(...arguments),this.fullWidth=true;}static{this.\u0275fac=(()=>{let i;return function(r){return (i||(i=Wg$1(t)))(r||t)}})();}static{this.\u0275dir=mt$d({type:t,selectors:[["","mspotInput","",3,"width",""]],hostAttrs:["autocomplete","off",1,"min-w-input"],hostVars:2,hostBindings:function(s,r){s&2&&iD("w-full",r.fullWidth);},inputs:{fullWidth:"fullWidth"},features:[cN([{provide:B$8,useExisting:Qi$3(()=>t)}]),pv$1]});}}return t})();var Wn$1=new b$g("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>g$k(jr$6)}),Ze$1="Method not implemented",Y$5=class Y{locale;_localeChanges=new le$d;localeChanges=this._localeChanges;setTime(i,e,t,n){throw new Error(Ze$1)}getHours(i){throw new Error(Ze$1)}getMinutes(i){throw new Error(Ze$1)}getSeconds(i){throw new Error(Ze$1)}parseTime(i,e){throw new Error(Ze$1)}addSeconds(i,e){throw new Error(Ze$1)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next();}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let t=this.isValid(i),n=this.isValid(e);return t&&n?!this.compareDate(i,e):t==n}return i==e}sameTime(i,e){if(i&&e){let t=this.isValid(i),n=this.isValid(e);return t&&n?!this.compareTime(i,e):t==n}return i==e}clampDate(i,e,t){return e&&this.compareDate(i,e)<0?e:t&&this.compareDate(i,t)>0?t:i}},Oe$2=new b$g("mat-date-formats");var fl=(()=>{class a{isErrorState(e,t){return !!(e&&e.invalid&&(e.touched||t&&t.submitted))}isSignalErrorState(e){if(!e)return false;let t=e().invalid(),n=e().touched();return t&&n}static \u0275fac=function(t){return new(t||a)};static \u0275prov=Wn$9({token:a,factory:a.\u0275fac})}return a})();var Yr={capture:true},jr=["focus","mousedown","mouseenter","touchstart"],$n$1="mat-ripple-loader-uninitialized",qn$1="mat-ripple-loader-class-name",Xi$2="mat-ripple-loader-centered",Xt$1="mat-ripple-loader-disabled",Zi$1=(()=>{class a{_document=g$k(Te$g);_animationsDisabled=h$7();_globalRippleOptions=g$k(yn$5,{optional:true});_platform=g$k(w$c);_ngZone=g$k(ge$b);_injector=g$k(oe$e);_eventCleanups;_hosts=new Map;constructor(){let e=g$k(Lo$4).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>jr.map(t=>e.listen(this._document,t,this._onInteraction,Yr)));}ngOnDestroy(){let e=this._hosts.keys();for(let t of e)this.destroyRipple(t);this._eventCleanups.forEach(t=>t());}configureRipple(e,t){e.setAttribute($n$1,this._globalRippleOptions?.namespace??""),(t.className||!e.hasAttribute(qn$1))&&e.setAttribute(qn$1,t.className||""),t.centered&&e.setAttribute(Xi$2,""),t.disabled&&e.setAttribute(Xt$1,"");}setDisabled(e,t){let n=this._hosts.get(e);n?(n.target.rippleDisabled=t,!t&&!n.hasSetUpEvents&&(n.hasSetUpEvents=true,n.renderer.setupTriggerEvents(e))):t?e.setAttribute(Xt$1,""):e.removeAttribute(Xt$1);}_onInteraction=e=>{let t=E$d(e);if(t instanceof HTMLElement){let n=t.closest(`[${$n$1}="${this._globalRippleOptions?.namespace??""}"]`);n&&this._createRipple(n);}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let t=this._document.createElement("span");t.classList.add("mat-ripple",e.getAttribute(qn$1)),e.append(t);let n=this._globalRippleOptions,r=this._animationsDisabled?0:n?.animation?.enterDuration??Kt$4.enterDuration,o=this._animationsDisabled?0:n?.animation?.exitDuration??Kt$4.exitDuration,p={rippleDisabled:this._animationsDisabled||n?.disabled||e.hasAttribute(Xt$1),rippleConfig:{centered:e.hasAttribute(Xi$2),terminateOnPointerUp:n?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:o}}},x=new ze$6(p,this._ngZone,t,this._platform,this._injector),I=!p.rippleDisabled;I&&x.setupTriggerEvents(e),this._hosts.set(e,{target:p,renderer:x,hasSetUpEvents:I}),e.removeAttribute($n$1);}destroyRipple(e){let t=this._hosts.get(e);t&&(t.renderer._removeTriggerEvents(),this._hosts.delete(e));}static \u0275fac=function(t){return new(t||a)};static \u0275prov=Wn$9({token:a,factory:a.\u0275fac})}return a})();var Ji$1=class Ji{_defaultMatcher;_parentFormGroup;_parentForm;_stateChanges;errorState=false;matcher;ngControl;formField;constructor(i,e,t,n,r){this._defaultMatcher=i,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=r,e?Co$4(e.field)&&!e.updateValueAndValidity?(this.formField=e,this.ngControl=null):(this.formField=null,this.ngControl=e):this.ngControl=this.formField=null;}updateErrorState(){let i=this.errorState,e=this._getCurrentErrorState(this.matcher||this._defaultMatcher);e!==i&&(this.errorState=e,this._stateChanges.next());}_getCurrentErrorState(i){if(this.formField&&i?.isSignalErrorState)return i.isSignalErrorState(this.formField.field())??false;let e=this._parentFormGroup||this._parentForm,t=this.ngControl?this.ngControl.control:null;return i?.isErrorState(t,e)??false}};var Wr=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,$r=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Gn$1(a,i){let e=Array(a);for(let t=0;t<a;t++)e[t]=i(t);return e}var qr=(()=>{class a extends Y$5{_matDateLocale=g$k(Wn$1,{optional:true});constructor(){super();let e=g$k(Wn$1,{optional:true});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale);}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Gn$1(12,n=>this._format(t,new Date(2017,n,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gn$1(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){let t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Gn$1(7,n=>this._format(t,new Date(2017,0,n+1)))}getYearName(e){let t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),t=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return t===7?0:t}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,n){let r=this._createDateWithOverflow(e,t,n);return r.getMonth()!=t,r}today(){return new Date}parse(e,t){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let n=new Intl.DateTimeFormat(this.locale,s$e(r$d({},t),{timeZone:"utc"}));return this._format(n,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,t*12)}addCalendarMonths(e,t){let n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return [e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(Wr.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return !isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,t,n,r){let o=this.clone(e);return o.setHours(t,n,r,0),o}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,t){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let n=e.trim();if(n.length===0)return null;let r=this._parseTimeString(n);if(r===null){let o=n.replace(/[^0-9:(AM|PM)]/gi,"").trim();o.length>0&&(r=this._parseTimeString(o));}return r||this.invalid()}addSeconds(e,t){return new Date(e.getTime()+t*1e3)}_createDateWithOverflow(e,t,n){let r=new Date;return r.setFullYear(e,t,n),r.setHours(0,0,0,0),r}_2digit(e){return ("00"+e).slice(-2)}_format(e,t){let n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}_parseTimeString(e){let t=e.toUpperCase().match($r);if(t){let n=parseInt(t[1]),r=parseInt(t[2]),o=t[3]==null?void 0:parseInt(t[3]),p=t[4];if(n===12?n=p==="AM"?0:n:p==="PM"&&(n+=12),Qn$1(n,0,23)&&Qn$1(r,0,59)&&(o==null||Qn$1(o,0,59)))return this.setTime(this.today(),n,r,o||0)}return null}static \u0275fac=function(t){return new(t||a)};static \u0275prov=Wn$9({token:a,factory:a.\u0275fac,autoProvided:false})}return a})();function Qn$1(a,i,e){return !isNaN(a)&&a>=i&&a<=e}var Gr={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};function Fl(a=Gr){return [{provide:Y$5,useClass:qr},{provide:Oe$2,useValue:a}]}var Zt$1=new b$g("file cdn");var jl=(()=>{class a{constructor(){this._breakpointObserver=g$k(z$h),this.isXs$=this._breakpointObserver.observe(["(max-width: 639px)"]).pipe(st$c(e=>e.matches)),this.isHandset$=this._breakpointObserver.observe(["(max-width: 1023px)"]).pipe(st$c(e=>e.matches)),this.isMdDown$=this._breakpointObserver.observe(["(max-width: 767px)"]).pipe(st$c(e=>e.matches)),this.isSm$=_I([this._breakpointObserver.observe(["(min-width: 640px)"]),this._breakpointObserver.observe(["(max-width: 767px)"])]).pipe(st$c(([e,t])=>e.matches&&t.matches)),this.isMd$=_I([this._breakpointObserver.observe(["(min-width: 768px)"]),this._breakpointObserver.observe(["(max-width: 1023px)"])]).pipe(st$c(([e,t])=>e.matches&&t.matches)),this.isLg$=_I([this._breakpointObserver.observe(["(min-width: 1024px)"]),this._breakpointObserver.observe(["(max-width: 1279px)"])]).pipe(st$c(([e,t])=>e.matches&&t.matches)),this.gtLg$=this._breakpointObserver.observe(["(min-width: 1280px)"]).pipe(st$c(e=>e.matches)),this.isXl$=_I([this._breakpointObserver.observe(["(min-width: 1280px)"]),this._breakpointObserver.observe(["(max-width: 1534px)"])]).pipe(st$c(([e,t])=>e.matches&&t.matches)),this.isFullWidth$=this._breakpointObserver.observe(["(min-width: 1535px)"]).pipe(st$c(e=>e.matches)),this.breakpoints$=_I([this.isXs$.pipe(st$c(e=>e?"xs":null)),this.isSm$.pipe(st$c(e=>e?"sm":null)),this.isMd$.pipe(st$c(e=>e?"md":null)),this.isLg$.pipe(st$c(e=>e?"lg":null)),this.gtLg$.pipe(st$c(e=>e?"xl":null))]).pipe(sp$2(0),st$c(e=>e.find(t=>!!t)),pp$2());}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275prov=L$l({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var Kl=(()=>{class a{constructor(){this._translocoService=g$k(Ce$5);}transform(e){if(!e)return "";let t=new Date(e);return new Date().valueOf()-t.valueOf()<6e4?this._translocoService.translate("text.recentlyCreated"):w$2.fromJSDate(t).toRelative({locale:this._translocoService.getActiveLang()})||""}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275pipe=Yn$8({name:"toRelativeDateString",type:a,pure:true});}}return a})();var er$1=a=>new Promise((i,e)=>{let t=new FileReader;t.onerror=e,t.onload=()=>{i(t.result);}
1298,t.readAsDataURL(a);});var Jt$1="image/webp",Kn$1="webp",tr$1="png",Qr=new Set(["image/svg+xml","image/gif","image/vnd.microsoft.icon","image/x-icon"]),Kr={maxWidthOrHeight:2e3,initialQuality:.9};function Je(a){return !a||!a.startsWith("image/")?false:!Qr.has(a)}function Xn(a){let i=/^data:([^;,]+)[;,]/.exec(a);return i?i[1]:void 0}function nr$1(a){return en$2(a,Kn$1)}function en$2(a,i){let e=a.lastIndexOf("/"),t=a.lastIndexOf(".");return t<=e?`${a}.${i}`:`${a.substring(0,t+1)}${i}`}var Xr={"image/webp":"webp","image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/svg+xml":"svg","image/bmp":"bmp","image/x-icon":"ico","image/vnd.microsoft.icon":"ico"};function tn$2(a){return Xr[a]}async function Zr(a,i={}){let e=r$d(r$d({},Kr),i),t=a instanceof File?a:new File([a],"image",{type:a.type});return ue$2(t,{maxWidthOrHeight:e.maxWidthOrHeight,initialQuality:e.initialQuality,fileType:Jt$1,useWebWorker:true})}async function nn$1(a,i={}){if(Xn(a)===Jt$1)return a;let t=await(await fetch(a)).blob(),n=await Zr(t,i);return er$1(n)}var ar$1=(()=>{class a{pasteGetBase64(e,t,n){this.paste(e,true,t,n);}pasteGetFile(e,t,n){this.paste(e,false,t,n);}paste(e,t,n,r){let o=e.clipboardData?.items;if(!(!o?.length||!r))for(let p=0;p<o.length;p++){let x=e.clipboardData?.items?.[p];if(!x||!x.type)continue;let I=/(image|text\/html)/;if(!I.test(x.type))break;if(I.test(x.type)){e.preventDefault();let $=x.getAsFile();if(!$)continue;if(this.handleClipboardImage($,t,r),n)break}}}handleClipboardImage(e,t,n){let r=Je(e.type);je$e(ue$2(e,r$d({maxWidthOrHeight:2e3,useWebWorker:true,initialQuality:.8},r?{fileType:Jt$1}:{}))).pipe(gc$1(()=>yI(e)),Kf$1(o=>{let x=r||o.size<e.size?o:e;return t?this.readBlobAsBase64(x):yI(x)})).subscribe(o=>{n&&n(o);});}readBlobAsBase64(e){return new N$d(t=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t.next(n.result),t.complete();};})}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275prov=L$l({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var hd$1=(()=>{class a{static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["button","mspotInputSuffix",""]],hostAttrs:["type","button",1,"block","absolute","inset-y-0","right-0","flex","items-center","m-3","focus-primary--rounded"],inputs:{icon:[0,"mspotInputSuffix","icon"]},features:[cN([{provide:le$2,useExisting:Qi$3(()=>a)}])],decls:1,vars:1,consts:[[1,"text-xl",3,"name"]],template:function(t,n){t&1&&Vv$1(0,"ng-icon",0),t&2&&jv$1("name",n.icon);},dependencies:[le$9],encapsulation:2});}}return a})();function ir$2(a,i){if(!i||i.trim()==="*")return true;let e=i.split(",").map(p=>p.trim().toLowerCase()).filter(Boolean);if(!e.length)return true;let t=(a.type??"").toLowerCase(),n=a.name??"",r=n.lastIndexOf("."),o=r>=0?n.substring(r).toLowerCase():"";return e.some(p=>!!(t&&t===p||p.endsWith("/*")&&t.startsWith(p.slice(0,-1))||p.startsWith(".")&&o===p))}var Zn$1=(a,i)=>`schools/${a}/contentimg/${i}`;var Jn$1=(a,i,e,t)=>`schools/${a}/community/${e}/${t}/${i}`;var an=(a,i)=>a.replace(/https:\/\/firebasestorage\.googleapis\.com\/v0\/b\/.*\/o\//g,i);var Jr=["wrapper"],eo$1=["sourceImage"];function to$1(a,i){if(a&1){let e=fM();ta$3(0,"img",5,0),Zv$1("load",function(){sh$1(e);let n=yM();return ah$1(n.imageLoadedInView())})("mousedown",function(n){sh$1(e);let r=yM();
1298return ah$1(r.startMove(n,r.moveTypes.Drag))})("touchstart",function(n){sh$1(e);let r=yM();return ah$1(r.startMove(n,r.moveTypes.Drag))})("error",function(n){sh$1(e);let r=yM();return ah$1(r.loadImageError(n))}),Pd$1();}if(a&2){let e=i.ngIf,t=yM();Ma$2("visibility",t.imageVisible?"visible":"hidden")("transform",t.safeTransformStyle()),iD("ngx-ic-draggable",!t.disabled&&t.allowMoveImage),jv$1("src",e,Gm$1),Pv$1("alt",t.imageAltText);}}function no$1(a,i){if(a&1){let e=fM();Hd$1(0),ta$3(1,"span",9),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"topleft"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"topleft"))}),Vv$1(2,"span",10),Pd$1(),ta$3(3,"span",11),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"topright"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"topright"))}),Vv$1(4,"span",10),Pd$1(),ta$3(5,"span",12),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);
1298return ah$1(r.startMove(n,r.moveTypes.Resize,"bottomright"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"bottomright"))}),Vv$1(6,"span",10),Pd$1(),ta$3(7,"span",13),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"bottomleft"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"bottomleft"))}),Vv$1(8,"span",10),Pd$1(),ta$3(9,"span",14),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"top"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"top"))}),Pd$1(),ta$3(10,"span",15),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"top"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"top"))}),Vv$1(11,"span",10),Pd$1(),ta$3(12,"span",16),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"right"))})("touchstart",function(n){sh$1(e);let r=yM(2);
1298return ah$1(r.startMove(n,r.moveTypes.Resize,"right"))}),Pd$1(),ta$3(13,"span",17),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"right"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"right"))}),Vv$1(14,"span",10),Pd$1(),ta$3(15,"span",18),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"bottom"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"bottom"))}),Pd$1(),ta$3(16,"span",19),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"bottom"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"bottom"))}),Vv$1(17,"span",10),Pd$1(),ta$3(18,"span",20),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"left"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"left"))}),Pd$1(),ta$3(19,"span",21),Zv$1("mousedown",function(n){sh$1(e);let r=yM(2);
1298return ah$1(r.startMove(n,r.moveTypes.Resize,"left"))})("touchstart",function(n){sh$1(e);let r=yM(2);return ah$1(r.startMove(n,r.moveTypes.Resize,"left"))}),Vv$1(20,"span",10),Pd$1(),$d$1();}}function ao(a,i){if(a&1){let e=fM();ta$3(0,"div",6),Zv$1("keydown",function(n){sh$1(e);let r=yM();return ah$1(r.keyboardAccess(n))}),ta$3(1,"div",7),Zv$1("mousedown",function(n){sh$1(e);let r=yM();return ah$1(r.startMove(n,r.moveTypes.Move))})("touchstart",function(n){sh$1(e);let r=yM();return ah$1(r.startMove(n,r.moveTypes.Move))}),Pd$1(),gv$1(2,no$1,21,0,"ng-container",8),Pd$1();}if(a&2){let e=yM();Ma$2("top",e.state.cropper().y1,"px")("left",e.state.cropper().x1,"px")("width",e.state.cropper().x2-e.state.cropper().x1,"px")("height",e.state.cropper().y2-e.state.cropper().y1,"px")("margin-left",e.state.options.alignImage==="center"?e.marginLeft:null)("visibility",e.imageVisible?"visible":"hidden"),iD("ngx-ic-round",e.state.options.roundCropper),Pv$1("aria-label",e.state.options.cropperFrameAriaLabel),uT(2),jv$1("ngIf",!e.state.options.hideResizeSquares&&!(e.state.options.cropperStaticWidth&&e.state.options.cropperStaticHeight));}}function mt$2(a,i,e){return a=io$1(a,i),rn$1(a,i,e)}function io$1(a,i){let e=a.x2-a.x1,t=a.y2-a.y1,n=a.x1+e/2,r=a.y1+t/2;i.options.cropperStaticHeight&&i.options.cropperStaticWidth?(e=i.maxSize().width>i.options.cropperStaticWidth?i.options.cropperStaticWidth:i.maxSize().width,t=i.maxSize().height>i.options.cropperStaticHeight?i.options.cropperStaticHeight:i.maxSize().height):(e=Math.max(i.cropperScaledMinWidth,Math.min(e,i.cropperScaledMaxWidth,i.maxSize().width)),t=Math.max(i.cropperScaledMinHeight,Math.min(t,i.cropperScaledMaxHeight,i.maxSize().height)),i.options.maintainAspectRatio&&(i.maxSize().width/i.options.aspectRatio<i.maxSize().height?t=e/i.options.aspectRatio:e=t*i.options.aspectRatio));let o=n-e/2,p=o+e,x=r-t/2,I=x+t;return {x1:o,x2:p,y1:x,y2:I}}function rn$1(a,i,e=false){return a.x1<0&&(a=s$e(r$d({},a),{x1:0,x2:a.x2-(e?a.x1:0)})),a.y1<0&&(a=s$e(r$d({},a),{y2:a.y2-(e?a.y1:0),y1:0})),a.x2>i.maxSize().width&&(a=s$e(r$d({},a),{x1:a.x1-(e?a.x2-i.maxSize().width:0),x2:i.maxSize().width})),a.y2>i.maxSize().height&&(a=s$e(r$d({},a),{y1:a.y1-(e?a.y2-i.maxSize().height:0),y2:i.maxSize().height})),a}function ro$1(a,i){let e=on$1(a)-i.clientX,t=sn$1(a)-i.clientY;return {x1:i.cropper.x1+e,y1:i.cropper.y1+t,x2:i.cropper.x2+e,y2:i.cropper.y2+t}}function rr$2(a,i,e){let t=r$d({},e.cropper()),n=on$1(a)-i.clientX,r=sn$1(a)-i.clientY;switch(i.position){case "left":t.x1=Math.min(Math.max(i.cropper.x1+n,t.x2-e.cropperScaledMaxWidth),t.x2-e.cropperScaledMinWidth);break;case "topleft":t.x1=Math.min(Math.max(i.cropper.x1+n,t.x2-e.cropperScaledMaxWidth),t.x2-e.cropperScaledMinWidth),t.y1=Math.min(Math.max(i.cropper.y1+r,t.y2-e.cropperScaledMaxHeight),t.y2-e.cropperScaledMinHeight);break;case "top":t.y1=Math.min(Math.max(i.cropper.y1+r,t.y2-e.cropperScaledMaxHeight),t.y2-e.cropperScaledMinHeight);break;case "topright":t.x2=Math.max(Math.min(i.cropper.x2+n,t.x1+e.cropperScaledMaxWidth),t.x1+e.cropperScaledMinWidth),t.y1=Math.min(Math.max(i.cropper.y1+r,t.y2-e.cropperScaledMaxHeight),t.y2-e.cropperScaledMinHeight);break;case "right":t.x2=Math.max(Math.min(i.cropper.x2+n,t.x1+e.cropperScaledMaxWidth),t.x1+e.cropperScaledMinWidth);break;case "bottomright":t.x2=Math.max(Math.min(i.cropper.x2+n,t.x1+e.cropperScaledMaxWidth),t.x1+e.cropperScaledMinWidth),t.y2=Math.max(Math.min(i.cropper.y2+r,t.y1+e.cropperScaledMaxHeight),t.y1+e.cropperScaledMinHeight);break;case "bottom":t.y2=Math.max(Math.min(i.cropper.y2+r,t.y1+e.cropperScaledMaxHeight),t.y1+e.cropperScaledMinHeight);break;case "bottomleft":t.x1=Math.min(Math.max(i.cropper.x1+n,t.x2-e.cropperScaledMaxWidth),t.x2-e.cropperScaledMinWidth),t.y2=Math.max(Math.min(i.cropper.y2+r,t.y1+e.cropperScaledMaxHeight),t.y1+e.cropperScaledMinHeight);break;case "center":let o="scale"in a?a.scale:1,p=Math.min(Math.max(e.cropperScaledMinWidth,Math.abs(i.cropper.x2-i.cropper.x1)*o),e.cropperScaledMaxWidth),x=Math.min(Math.max(e.cropperScaledMinHeight,Math.abs(i.cropper.y2-i.cropper.y1)*o),e.cropperScaledMaxHeight);t.x1=i.clientX-p/2,t.x2=i.clientX+p/2,t.y1=i.clientY-x/2,t.y2=i.clientY+x/2,t.x1<0?(t.x2-=t.x1,t.x1=0):t.x2>e.maxSize().width&&(t.x1-=t.x2-e.maxSize().width,t.x2=e.maxSize().width),t.y1<0?(t.y2-=t.y1,t.y1=0):t.y2>e.maxSize().height&&(t.y1-=t.y2-e.maxSize().height,t.y2=e.maxSize().height);break}return e.options.maintainAspectRatio?oo$1(i.position,t,e):t}function oo$1(a,i,e){i=r$d({},i);let t=0,n=0;switch(a){case "top":i.x2=i.x1+(i.y2-i.y1)*e.options.aspectRatio,t=Math.max(i.x2-e.maxSize().width,0),n=Math.max(0-i.y1,0),(t>0||n>0)&&(i.x2-=n*e.options.aspectRatio>t?n*e.options.aspectRatio:t,i.y1+=n*e.options.aspectRatio>t?n:t/e.options.aspectRatio);break;case "bottom":i.x2=i.x1+(i.y2-i.y1)*e.options.aspectRatio,t=Math.max(i.x2-e.maxSize().width,0),n=Math.max(i.y2-e.maxSize().height,0),(t>0||n>0)&&(i.x2-=n*e.options.aspectRatio>t?n*e.options.aspectRatio:t,i.y2-=n*e.options.aspectRatio>t?n:t/e.options.aspectRatio);break;case "topleft":i.y1=i.y2-(i.x2-i.x1)/e.options.aspectRatio,t=Math.max(0-i.x1,0),n=Math.max(0-i.y1,0),(t>0||n>0)&&(i.x1+=n*e.options.aspectRatio>t?n*e.options.aspectRatio:t,i.y1+=n*e.options.aspectRatio>t?n:t/e.options.aspectRatio);break;case "topright":i.y1=i.y2-(i.x2-i.x1)/e.options.aspectRatio,t=Math.max(i.x2-e.maxSize().width,0),n=Math.max(0-i.y1,0),(t>0||n>0)&&(i.x2-=n*e.options.aspectRatio>t?n*e.options.aspectRatio:t,i.y1+=n*e.options.aspectRatio>t?n:t/e.options.aspectRatio);break;case "right":case "bottomright":i.y2=i.y1+(i.x2-i.x1)/e.options.aspectRatio,t=Math.max(i.x2-e.maxSize().width,0),n=Math.max(i.y2-e.maxSize().height,0),(t>0||n>0)&&(i.x2-=n*e.options.aspectRatio>t?n*e.options.aspectRatio:t,i.y2-=n*e.options.aspectRatio>t?n:t/e.options.aspectRatio);break;
1298case "left":case "bottomleft":i.y2=i.y1+(i.x2-i.x1)/e.options.aspectRatio,t=Math.max(0-i.x1,0),n=Math.max(i.y2-e.maxSize().height,0),(t>0||n>0)&&(i.x1+=n*e.options.aspectRatio>t?n*e.options.aspectRatio:t,i.y2-=n*e.options.aspectRatio>t?n:t/e.options.aspectRatio);break;case "center":i.x2=i.x1+(i.y2-i.y1)*e.options.aspectRatio,i.y2=i.y1+(i.x2-i.x1)/e.options.aspectRatio;let r=Math.max(0-i.x1,0),o=Math.max(i.x2-e.maxSize().width,0),p=Math.max(i.y2-e.maxSize().height,0),x=Math.max(0-i.y1,0);(r>0||o>0||p>0||x>0)&&(i.x1+=p*e.options.aspectRatio>r?p*e.options.aspectRatio:r,i.x2-=x*e.options.aspectRatio>o?x*e.options.aspectRatio:o,i.y1+=x*e.options.aspectRatio>o?x:o/e.options.aspectRatio,i.y2-=p*e.options.aspectRatio>r?p:r/e.options.aspectRatio);break}return i}function on$1(a){return "touches"in a&&a.touches[0]?a.touches[0].clientX:"clientX"in a?a.clientX:0}function sn$1(a){return "touches"in a&&a.touches[0]?a.touches[0].clientY:"clientX"in a?a.clientY:0}var ea=class{constructor(){this.cropper=On$7({x1:0,x2:0,y1:0,y2:0}),this.maxSize=On$7({width:0,height:0}),this.transform={},this.options={format:"png",output:"blob",autoCrop:true,maintainAspectRatio:true,aspectRatio:1,resetCropOnAspectRatioChange:true,resizeToWidth:0,resizeToHeight:0,cropperMinWidth:0,cropperMinHeight:0,cropperMaxHeight:0,cropperMaxWidth:0,cropperStaticWidth:0,cropperStaticHeight:0,canvasRotation:0,roundCropper:false,onlyScaleDown:false,imageQuality:92,backgroundColor:void 0,containWithinAspectRatio:false,hideResizeSquares:false,alignImage:"center",cropperFrameAriaLabel:void 0,checkImageType:true},this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=3;}setOptionsFromChanges(i){i.options?.currentValue&&this.setOptions(i.options.currentValue);let e=Object.entries(i).filter(([t])=>t in this.options).reduce((t,[n,r])=>s$e(r$d({},t),{[n]:r.currentValue}),{});Object.keys(e).length>0&&this.setOptions(e);}setOptions(i){if(this.options=r$d(r$d({},this.options),i||{}),this.validateOptions(),!this.loadedImage?.transformed.image.complete||!this.maxSize)return;let e=false;this.options.maintainAspectRatio&&i.aspectRatio||"maintainAspectRatio"in i?(this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.options.maintainAspectRatio&&(this.options.resetCropOnAspectRatioChange||!this.aspectRatioIsCorrect())&&(this.cropper.set(this.maxSizeCropperPosition()),e=true)):((i.cropperMinWidth||i.cropperMinHeight)&&(this.setCropperScaledMinSize(),e=true),(i.cropperMaxWidth||i.cropperMaxHeight)&&(this.setCropperScaledMaxSize(),e=true),(i.cropperStaticWidth||i.cropperStaticHeight)&&(e=true)),e&&this.cropper.update(t=>mt$2(t,this,false));}validateOptions(){if(this.options.maintainAspectRatio&&!this.options.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}setMaxSize(i,e){this.maxSize.set({width:i,height:e}),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize();}setCropperScaledMinSize(){this.loadedImage?.transformed.size?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20);}setCropperScaledMinWidth(){this.cropperScaledMinWidth=this.options.cropperMinWidth>0?Math.max(20,this.options.cropperMinWidth/this.loadedImage.transformed.size.width*this.maxSize().width):20;}setCropperScaledMinHeight(){this.options.maintainAspectRatio?this.cropperScaledMinHeight=Math.max(20,this.cropperScaledMinWidth/this.options.aspectRatio):this.options.cropperMinHeight>0?this.cropperScaledMinHeight=Math.max(20,this.options.cropperMinHeight/this.loadedImage.transformed.size.height*this.maxSize().height):this.cropperScaledMinHeight=20;}setCropperScaledMaxSize(){if(this.loadedImage?.transformed.size){let i=this.loadedImage.transformed.size.width/this.maxSize().width;this.cropperScaledMaxWidth=this.options.cropperMaxWidth>20?this.options.cropperMaxWidth/i:this.maxSize().width,this.cropperScaledMaxHeight=this.options.cropperMaxHeight>20?this.options.cropperMaxHeight/i:this.maxSize().height,this.options.maintainAspectRatio&&(this.cropperScaledMaxWidth>this.cropperScaledMaxHeight*this.options.aspectRatio?this.cropperScaledMaxWidth=this.cropperScaledMaxHeight*this.options.aspectRatio:this.cropperScaledMaxWidth<this.cropperScaledMaxHeight*this.options.aspectRatio&&(this.cropperScaledMaxHeight=this.cropperScaledMaxWidth/this.options.aspectRatio));}else this.cropperScaledMaxWidth=this.maxSize().width,this.cropperScaledMaxHeight=this.maxSize().height;}equalsCropperPosition(i){let e=this.cropper();return e==null&&i==null||e!=null&&i!=null&&e.x1.toFixed(3)===i.x1.toFixed(3)&&e.y1.toFixed(3)===i.y1.toFixed(3)&&e.x2.toFixed(3)===i.x2.toFixed(3)&&e.y2.toFixed(3)===i.y2.toFixed(3)}equalsTransformTranslate(i){return (this.transform.translateH??0)===(i.translateH??0)&&(this.transform.translateV??0)===(i.translateV??0)}equalsTransform(i){return this.equalsTransformTranslate(i)&&(this.transform.scale??1)===(i.scale??1)&&(this.transform.rotate??0)===(i.rotate??0)&&(this.transform.flipH??false)===(i.flipH??false)&&(this.transform.flipV??false)===(i.flipV??false)}
1298aspectRatioIsCorrect(){let i=this.cropper();return (i.x2-i.x1)/(i.y2-i.y1)===this.options.aspectRatio}resizeCropperPosition(i){(i.width!==this.maxSize().width||i.height!==this.maxSize().height)&&this.cropper.update(e=>({x1:e.x1*this.maxSize().width/i.width,x2:e.x2*this.maxSize().width/i.width,y1:e.y1*this.maxSize().height/i.height,y2:e.y2*this.maxSize().height/i.height}));}maxSizeCropperPosition(){return {x1:0,y1:0,x2:this.maxSize().width,y2:this.maxSize().height}}toCropInput(){return {cropper:this.cropper(),maxSize:this.maxSize(),transform:this.transform,loadedImage:this.loadedImage,options:r$d({},this.options)}}},ae$1=(function(a){return a.Drag="drag",a.Move="move",a.Resize="resize",a.Pinch="pinch",a})(ae$1||{});function so(a,i,e){let t=a.width,n=a.height;i=Math.round(i),e=Math.round(e);let r=t/i,o=n/e,p=Math.ceil(r/2),x=Math.ceil(o/2),I=a.getContext("2d");if(I){let $=I.getImageData(0,0,t,n),_e=I.createImageData(i,e),q=$.data,G=_e.data;for(let be=0;be<e;be++)for(let Ye=0;Ye<i;Ye++){let _t=(Ye+be*i)*4,Lr=be*o,Ce=0,bt=0,ba=0,va=0,xa=0,ya=0,Ca=0,Nr=Math.floor(Ye*r),Br=Math.floor(be*o),yn=Math.ceil((Ye+1)*r),Cn=Math.ceil((be+1)*o);yn=Math.min(yn,t),Cn=Math.min(Cn,n);for(let vt=Br;vt<Cn;vt++){let wa=Math.abs(Lr-vt)/x,Ur=Ye*r,Hr=wa*wa;for(let xt=Nr;xt<yn;xt++){let Da=Math.abs(Ur-xt)/p,je=Math.sqrt(Hr+Da*Da);if(je>=1)continue;Ce=2*je*je*je-3*je*je+1;let We=4*(xt+vt*t);Ca+=Ce*q[We+3],ba+=Ce,q[We+3]<255&&(Ce=Ce*q[We+3]/250),va+=Ce*q[We],xa+=Ce*q[We+1],ya+=Ce*q[We+2],bt+=Ce;}}G[_t]=va/bt,G[_t+1]=xa/bt,G[_t+2]=ya/bt,G[_t+3]=Ca/ba;}a.width=i,a.height=e,I.putImageData(_e,0,0);}}function or$1(a,i){return a/100*i}var ta=class{crop(i,e){let t=this.getImagePosition(i),n=t.x2-t.x1,r=t.y2-t.y1,o=document.createElement("canvas");o.width=n,o.height=r;let p=o.getContext("2d");if(!p)return null;i.options?.backgroundColor!=null&&(p.fillStyle=i.options.backgroundColor,p.fillRect(0,0,n,r));let x=(i.transform?.scale||1)*(i.transform?.flipH?-1:1),I=(i.transform?.scale||1)*(i.transform?.flipV?-1:1),{translateH:$,translateV:_e}=this.getCanvasTranslate(i),q=i.loadedImage.transformed;p.setTransform(x,0,0,I,q.size.width/2+$,q.size.height/2+_e),p.translate(-t.x1/x,-t.y1/I),p.rotate((i.transform?.rotate||0)*Math.PI/180),p.drawImage(q.image,-q.size.width/2,-q.size.height/2);let G={width:n,height:r,imagePosition:t,cropperPosition:r$d({},i.cropper)};i.options?.containWithinAspectRatio&&(G.offsetImagePosition=this.getOffsetImagePosition(i));let be=this.getResizeRatio(n,r,i.options);return be!==1&&(G.width=Math.round(n*be),G.height=i.options?.maintainAspectRatio?Math.round(G.width/(i.options?.aspectRatio??1)):Math.round(r*be),so(o,G.width,G.height)),e==="blob"?this.cropToBlob(G,o,i):(G.base64=o.toDataURL("image/"+(i.options?.format??"png"),this.getQuality(i.options)),G)}async cropToBlob(i,e,t){return i.blob=await new Promise(n=>e.toBlob(n,"image/"+(t.options?.format??"png"),this.getQuality(t.options))),i.blob&&(i.objectUrl=URL.createObjectURL(i.blob)),i}getCanvasTranslate(i){if(i.transform?.translateUnit==="px"){let e=this.getRatio(i);return {translateH:(i.transform?.translateH||0)*e,translateV:(i.transform?.translateV||0)*e}}else return {translateH:i.transform?.translateH?or$1(i.transform.translateH,i.loadedImage.transformed.size.width):0,translateV:i.transform?.translateV?or$1(i.transform.translateV,i.loadedImage.transformed.size.height):0}}getRatio(i){return i.loadedImage.transformed.size.width/i.maxSize.width}getImagePosition(i){let e=this.getRatio(i),t={x1:Math.round(i.cropper.x1*e),y1:Math.round(i.cropper.y1*e),x2:Math.round(i.cropper.x2*e),y2:Math.round(i.cropper.y2*e)};return i.options?.containWithinAspectRatio||(t.x1=Math.max(t.x1,0),t.y1=Math.max(t.y1,0),t.x2=Math.min(t.x2,i.loadedImage.transformed.size.width),t.y2=Math.min(t.y2,i.loadedImage.transformed.size.height)),t}getOffsetImagePosition(i){let e=(i.options?.canvasRotation??0)+i.loadedImage.exifTransform.rotate,t=this.getRatio(i),n,r;e%2?(n=(i.loadedImage.transformed.size.width-i.loadedImage.original.size.height)/2,r=(i.loadedImage.transformed.size.height-i.loadedImage.original.size.width)/2):(n=(i.loadedImage.transformed.size.width-i.loadedImage.original.size.width)/2,r=(i.loadedImage.transformed.size.height-i.loadedImage.original.size.height)/2);let o=i.cropper,p={x1:Math.round(o.x1*t)-n,y1:Math.round(o.y1*t)-r,x2:Math.round(o.x2*t)-n,y2:Math.round(o.y2*t)-r};return i.options?.containWithinAspectRatio||(p.x1=Math.max(p.x1,0),p.y1=Math.max(p.y1,0),p.x2=Math.min(p.x2,i.loadedImage.transformed.size.width),p.y2=Math.min(p.y2,i.loadedImage.transformed.size.height)),p}getResizeRatio(i,e,t){let n=new Array;t?.resizeToWidth&&t.resizeToWidth>0&&n.push(t.resizeToWidth/i),t?.resizeToHeight&&t.resizeToHeight>0&&n.push(t.resizeToHeight/e);let r=n.length===0?1:Math.min(...n);return r>1&&!t?.onlyScaleDown?r:Math.min(r,1)}getQuality(i){return Math.min(1,Math.max(0,(i?.imageQuality??92)/100))}},lo=[new Uint8Array([255,216,255,225,0,34,69,120,105,102,0,0,77,77,0,42,0,0,0,8,0,1,1,18,0,3,0,0,0,1,0,6,0,0,0,0,0,0,255,219,0,132,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,255,192,0,17,8,0,1,0,2,3,1,17,0,2,17,1,3,17,1,255,196,0,74,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,16,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,218,0,12,3,1,0,2,17,3,17,0,63,0,63,240,127,255,217])],co=URL.createObjectURL(new Blob(lo,{type:"image/jpeg"}));function mo(){return new Promise(a=>{let i=new Image;i.onload=()=>{let e=i.width===1&&i.height===2;a(e);},i.src=co;})}function po(a){switch(typeof a=="object"&&(a=uo$1(a)),a){case 2:return {rotate:0,flip:true};case 3:return {rotate:2,flip:false};case 4:return {rotate:2,flip:true};case 5:return {rotate:1,flip:true};case 6:return {rotate:1,flip:false};case 7:return {rotate:3,flip:true};case 8:return {rotate:3,flip:false};default:return {rotate:0,flip:false}}}function uo$1(a){let i=new DataView(a);if(i.getUint16(0,false)!==65496)return -2;let e=i.byteLength,t=2;for(;t<e;){if(i.getUint16(t+2,false)<=8)return -1;let n=i.getUint16(t,false);
1298if(t+=2,n==65505){if(i.getUint32(t+=2,false)!==1165519206)return -1;let r=i.getUint16(t+=6,false)==18761;t+=i.getUint32(t+4,r);let o=i.getUint16(t,r);t+=2;for(let p=0;p<o;p++)if(i.getUint16(t+p*12,r)==274)return i.getUint16(t+p*12+8,r)}else {if((n&65280)!==65280)break;t+=i.getUint16(t,false);}}return -1}var na=class{constructor(){this.autoRotateSupported=mo();}async loadImageFile(i,e){let t=await i.arrayBuffer();return e.checkImageType?await this.checkImageTypeAndLoadImageFromArrayBuffer(t,i.type,e):await this.loadImageFromArrayBuffer(t,e)}checkImageTypeAndLoadImageFromArrayBuffer(i,e,t){return this.isValidImageType(e)?this.loadImageFromArrayBuffer(i,t,e):Promise.reject(new Error("Invalid image type"))}isValidImageType(i){return /image\/(png|jpg|jpeg|heic|bmp|gif|tiff|svg|webp|x-icon|vnd.microsoft.icon)/.test(i)}async loadImageFromURL(i,e){let n=await(await fetch(i)).blob(),r=await n.arrayBuffer();return await this.loadImageFromArrayBuffer(r,e,n.type)}loadBase64Image(i,e){let t=this.base64ToArrayBuffer(i);return this.loadImageFromArrayBuffer(t,e)}base64ToArrayBuffer(i){i=i.replace(/^data:([^;]+);base64,/gmi,"");let e=atob(i),t=e.length,n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=e.charCodeAt(r);return n.buffer}async loadImageFromArrayBuffer(i,e,t){let n=await new Promise(async(r,o)=>{try{let p=new Blob([i],t?{type:t}:void 0),x=URL.createObjectURL(p),I=new Image,_e=t==="image/svg+xml"?await this.get
1298SvgImageSize(p):void 0;I.onload=()=>r({originalImage:I,originalImageSize:_e,originalObjectUrl:x,originalArrayBuffer:i}),I.onerror=o,I.src=x;}catch(p){o(p);}});return await this.transformImageFromArrayBuffer(n,e,n.originalImageSize!=null)}async getSvgImageSize(i){let n=new DOMParser().parseFromString(await i.text(),"image/svg+xml").querySelector("svg");if(!n)throw Error("Failed to parse SVG image");let r=n.getAttribute("width"),o=n.getAttribute("height");if(r&&o)return null;let p=n.getAttribute("viewBox")||n.getAttribute("viewbox");if(p){let x=p.split(" ");return {width:+x[2],height:+x[3]}}throw Error("Failed to load SVG image. SVG must have width + height or viewBox definition.")}async transformImageFromArrayBuffer(i,e,t=false){let n=await this.autoRotateSupported,r=po(n?-1:i.originalArrayBuffer);if(!i.originalImage||!i.originalImage.complete)return Promise.reject(new Error("No image loaded"));let o={original:{objectUrl:i.originalObjectUrl,image:i.originalImage,size:i.originalImageSize??{width:i.originalImage.naturalWidth,height:i.originalImage.naturalHeight}},exifTransform:r};return this.transformLoadedImage(o,e,t)}async transformLoadedImage(i,e,t=false){let n=(e.canvasRotation??0)+i.exifTransform.rotate,r=i.original.size;if(!t&&n===0&&!i.exifTransform.flip&&!e.containWithinAspectRatio)return {original:{objectUrl:i.original.objectUrl,image:i.original.image,size:r$d({},r)},transformed:{objectUrl:i.original.objectUrl,image:i.original.image,size:r$d({},r)},exifTransform:i.exifTransform};let o=this.getTransformedSize(r,i.exifTransform,e),p=document.createElement("canvas");p.width=o.width,p.height=o.height;let x=p.getContext("2d");x?.setTransform(i.exifTransform.flip?-1:1,0,0,1,p.width/2,p.height/2),x?.rotate(Math.PI*(n/2)),x?.drawImage(i.original.image,-r.width/2,-r.height/2);let I=await new Promise(q=>p.toBlob(q,"image/"+(e.format??"png")));if(!I)throw new Error("Failed to get Blob for transformed image.");let $=URL.createObjectURL(I),_e=await this.loadImageFromObjectUrl($);return {original:{objectUrl:i.original.objectUrl,image:i.original.image,size:r$d({},r)},transformed:{objectUrl:$,image:_e,size:{width:_e.width,height:_e.height}},exifTransform:i.exifTransform}}loadImageFromObjectUrl(i){return new Promise((e,t)=>{let n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=i;})}getTransformedSize(i,e,t){let n=(t.canvasRotation??0)+e.rotate;if(t.containWithinAspectRatio)if(n%2){let r=i.width*(t.aspectRatio??1),o=i.height/(t.aspectRatio??1);return {width:Math.max(i.height,r),height:Math.max(i.width,o)}}else {let r=i.height*(t.aspectRatio??1),o=i.width/(t.aspectRatio??1);return {width:Math.max(i.width,r),height:Math.max(i.height,o)}}return n%2?{height:i.width,width:i.height}:{width:i.width,height:i.height}}};function ho$1(a){switch(a){case "ArrowUp":return "top";case "ArrowRight":return "right";case "ArrowDown":return "bottom";default:return "left"}}function fo(a){switch(a){case "ArrowUp":return "bottom";case "ArrowRight":return "left";case "ArrowDown":return "top";default:return "right"}}function go$1(a,i){switch(a){case "ArrowUp":return {clientX:0,clientY:i*-1};case "ArrowRight":return {clientX:i,clientY:0};case "ArrowDown":return {clientX:0,clientY:i};default:return {clientX:i*-1,clientY:0}}}var sr$1=(()=>{class a{get alignImageStyle(){return this.state.options.alignImage}constructor(e){this.sanitizer=e,this.pinchStart$=new le$d,this.cropService=new ta,this.loadImageService=new na,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=false,this.moveTypes=ae$1,this.state=new ea,this.safeImgDataUrl=On$7(void 0),this.safeTransformStyle=On$7(void 0),this.marginLeft="0px",this.imageVisible=false,this.allowMoveImage=false,this.checkImageType=true,this.disabled=false,this.hidden=false,this.imageCropped=J8(),this.startCropImage=J8(),this.imageLoaded=J8(),this.cropperReady=J8(),this.loadImageFailed=J8(),this.transformChange=J8(),this.cropperChange=J8(),this.reset();}ngOnInit(){this.state.stepSize=this.initialStepSize||this.state.stepSize;}ngOnChanges(e){let t=this.state.cropper(),n=this.state.transform,r=this.state.options.backgroundColor;if(this.state.setOptionsFromChanges(e),this.onChangesInputImage(e),e.transform&&this.transform&&(this.state.transform=this.transform,this.setCssTransform()),!this.state.loadedImage?.transformed.image.complete||!this.state.maxSize)return;if(this.containWithinAspectRatio&&e.aspectRatio||e.containWithinAspectRatio||e.canvasRotation){this.loadImageService.transformLoadedImage(this.state.loadedImage,this.state.options).then(p=>this.setLoadedImage(p)).catch(p=>this.loadImageError(p));return}e.cropper&&this.cropper&&this.state.cropper.set(mt$2(this.cropper,this.state,true));let o=!this.state.equalsCropperPosition(t);o&&(!this.cropper||!this.state.equalsCropperPosition(this.cropper))&&this.cropperChange.emit(this.state.cropper()),(o||!this.state.equalsTransform(n)||this.state.options.backgroundColor!==r)&&this.doAutoCrop(),e.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=false;});}onChangesInputImage(e){(e.imageChangedEvent||e.imageURL||e.imageBase64||e.imageFile)&&this.reset(),e.
1298imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),e.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),e.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),e.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile);}isValidImageChangedEvent(){let e=this.imageChangedEvent?.target?.files;return e instanceof FileList&&e.length>0}reset(){this.state.loadedImage=void 0,this.state.maxSize.set({width:0,height:0}),this.imageVisible=false;}loadImageFile(e){this.loadImageService.loadImageFile(e,this.state.options).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t));}loadBase64Image(e){this.loadImageService.loadBase64Image(e,this.state.options).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t));}loadImageFromURL(e){this.loadImageService.loadImageFromURL(e,this.state.options).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t));}setLoadedImage(e){this.state.loadedImage=e,this.safeImgDataUrl.set(this.sanitizer.bypassSecurityTrustResourceUrl(e.transformed.objectUrl));}loadImageError(e){console.error(e),this.loadImageFailed.emit();}setCssTransform(){let e=this.state.transform?.translateUnit||"%";this.safeTransformStyle.set(this.sanitizer.bypassSecurityTrustStyle(`translate(${this.state.transform.translateH||0}${e}, ${this.state.transform.translateV||0}${e}) scaleX(`+(this.state.transform.scale||1)*(this.state.transform.flipH?-1:1)+") scaleY("+(this.state.transform.scale||1)*(this.state.transform.flipV?-1:1)+") rotate("+(this.state.transform.rotate||0)+"deg)"));}imageLoadedInView(){this.state.loadedImage!=null&&(this.imageLoaded.emit(this.state.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()));}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.cropper&&(!this.maintainAspectRatio||this.state.aspectRatioIsCorrect())?(this.state.cropper.set(mt$2(this.cropper,this.state,true)),this.emitCropperPositionChange(this.cropper)):(this.state.cropper.set(mt$2(this.state.maxSizeCropperPosition(),this.state,true)),this.cropperChange.emit(this.state.cropper())),this.imageVisible=true,this.cropperReady.emit(this.state.maxSize()),this.doAutoCrop()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50));}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>1}onResize(){if(this.state.loadedImage)if(this.hidden)this.resizedWhileHidden=true;else {let e=this.state.maxSize();this.setMaxSize(),this.state.resizeCropperPosition(e);}}keyboardAccess(e){this.changeKeyboardStepSize(e),this.keyboardMoveCropper(e);}changeKeyboardStepSize(e){let t=+e.key;t>=1&&t<=9&&(this.state.stepSize=t);}keyboardMoveCropper(e){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e.key))return;let n=e.shiftKey?ae$1.Resize:ae$1.Move,r=e.altKey?fo(e.key):ho$1(e.key),o=go$1(e.key,this.state.stepSize);e.preventDefault(),e.stopPropagation(),this.moveStart={type:n,position:r,clientX:0,clientY:0,transform:this.state.transform,cropper:this.state.cropper()},this.handleMouseMove(o),this.handleMouseUp();}startMove(e,t,n=null){this.disabled||this.moveStart&&this.moveStart.type===ae$1.Pinch||t===ae$1.Drag&&!this.allowMoveImage||("preventDefault"in e&&e.preventDefault(),this.moveStart={type:t,position:n,clientX:on$1(e),clientY:sn$1(e),transform:this.state.transform,cropper:this.state.cropper()},this.initMouseMove());}initMouseMove(){xI(cc$1(document,"mousemove"),cc$1(document,"touchmove")).pipe(Pi$2(xI(cc$1(document,"mouseup"),cc$1(document,"touchend"),this.pinchStart$).pipe($f$1()))).subscribe({next:e=>this.handleMouseMove(e),complete:()=>this.handleMouseUp()});}handleMouseMove(e){if(this.moveStart){if("stopPropagation"in e&&e.stopPropagation(),"preventDefault"in e&&e.preventDefault(),this.moveStart.type===ae$1.Move)this.state.cropper.set(rn$1(ro$1(e,this.moveStart),this.state,true));else if(this.moveStart.type===ae$1.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.state.cropper.set(rn$1(rr$2(e,this.moveStart,this.state),this.state,false));else if(this.moveStart.type===ae$1.Drag){let t=on$1(e)-this.moveStart.clientX,n=sn$1(e)-this.moveStart.clientY;this.state.transform=s$e(r$d({},this.state.transform),{translateH:(this.moveStart.transform?.translateH||0)+t,translateV:(this.moveStart.transform?.translateV||0)+n}),this.setCssTransform();}}}handleMouseUp(){!this.moveStart||this.moveStart.type===ae$1.Pinch||((!this.state.equalsCropperPosition(this.moveStart.cropper)||this.moveStart.transform&&!this.state.equalsTransform(this.moveStart.transform))&&(this.moveStart.type===ae$1.Drag?this.transformChange.emit(this.state.transform):this.cropperChange.emit(this.state.cropper()),this.doAutoCrop()),this.moveStart=void 0);}startPinch(e){if(this.disabled||!this.sourceImageLoaded()||e.touches.length<2)return;"preventDefault"in e&&e.preventDefault();let t=this.state.cropper();this.moveStart={type:ae$1.Pinch,position:"center",clientX:t.x1+(t.x2-t.x1)/2,clientY:t.y1+(t.y2-t.y1)/2,cropper:t},this.initPinch();}initPinch(){this.pinchStart$.next(),cc$1(document,"touchmove").pipe(Pi$2(cc$1(document,"touchend"))).subscribe({next:e=>
1298this.handlePinchMove(e),complete:()=>this.handlePinchStop()});}handlePinchMove(e){this.moveStart&&(e.preventDefault&&e.preventDefault(),this.moveStart.type===ae$1.Pinch&&!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.state.cropper.set(rn$1(rr$2(e,this.moveStart,this.state),this.state,false)));}handlePinchStop(){this.moveStart&&(this.state.equalsCropperPosition(this.moveStart.cropper)||(this.emitCropperPositionChange(this.moveStart.cropper),this.doAutoCrop()),this.moveStart=void 0);}setMaxSize(){if(this.sourceImage){let e=getComputedStyle(this.sourceImage.nativeElement);this.state.setMaxSize(parseFloat(e.width),parseFloat(e.height)),this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.state.maxSize().width/2+"px)");}}emitCropperPositionChange(e){this.state.equalsCropperPosition(e)||this.cropperChange.emit(this.state.cropper());}doAutoCrop(){this.state.options.autoCrop&&this.crop();}crop(e=this.state.options.output){if(this.state.loadedImage?.transformed?.image!=null){if(this.startCropImage.emit(),e==="blob")return this.cropToBlob();if(e==="base64")return this.cropToBase64()}return null}cropToBlob(){return new Promise(async(e,t)=>{let n=await this.cropService.crop(this.state.toCropInput(),"blob");n?(this.imageCropped.emit(n),e(n)):t("Crop image failed");})}cropToBase64(){let e=this.cropService.crop(this.state.toCropInput(),"base64");return e?(this.imageCropped.emit(e),e):null}resetCropperPosition(){this.state.cropper.set(mt$2(this.state.maxSizeCropperPosition(),this.state,true)),this.cropperChange.emit(this.state.cropper());}ngOnDestroy(){this.pinchStart$.complete();}static{this.\u0275fac=function(t){return new(t||a)(q$l(En$7))};}static{this.\u0275cmp=qS({type:a,selectors:[["image-cropper"]],viewQuery:function(t,n){if(t&1&&Jv$1(Jr,7)(eo$1,5),t&2){let r;CM(r=wM())&&(n.wrapper=r.first),CM(r=wM())&&(n.sourceImage=r.first);}},hostVars:6,hostBindings:function(t,n){t&1&&Zv$1("resize",function(){return n.onResize()},gb$1),t&2&&(Ma$2("text-align",n.alignImageStyle),iD("disabled",n.disabled)("ngx-ic-hidden",n.hidden));},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",options:"options",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",autoCrop:"autoCrop",cropper:"cropper",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",checkImageType:"checkImageType",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange",cropperChange:"cropperChange"},features:[Ar$8],decls:4,vars:10,consts:[["sourceImage",""],[3,"touchstart"],["class","ngx-ic-source-image","role","presentation",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left",3,"mousedown","touchstart"]],template:function(t,n){t&1&&(ta$3(0,"div",1),Zv$1("touchstart",function(o){return n.startPinch(o)}),gv$1(1,to$1,2,8,"img",2),Vv$1(2,"div",3),gv$1(3,ao,3,16,"div",4),Pd$1()),t&2&&(Ma$2("background",n.imageVisible&&n.state.options.backgroundColor),uT(),jv$1("ngIf",n.safeImgDataUrl()),uT(),Ma$2("width",n.state.maxSize().width||0,"px")("height",n.state.maxSize().height||0,"px")("margin-left",n.state.options.alignImage==="center"?n.marginLeft:null),uT(),jv$1("ngIf",n.imageVisible));},dependencies:[Dx$1],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{display:inline;max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;
1298outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:var(--cropper-color, #53535C);background:transparent;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:var(--cropper-border, 1px solid rgba(255, 255, 255, .5))}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:hover .ngx-ic-move[_ngcontent-%COMP%]{border:var(--cropper-hover-border, var(--cropper-border, 1px solid rgba(255, 255, 255, .5)))}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border:var(--cropper-focus-border, 2px solid dodgerblue)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{background:var(--cropper-resize-square-focus-bg, var(--cropper-resize-square-bg, #53535C));border:var(--cropper-resize-square-focus-border, var(--cropper-resize-square-border, 1px solid rgba(255, 255, 255, .5)))}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;width:6px;height:6px;box-sizing:content-box;background:var(--cropper-resize-square-bg, #53535C);border:var(--cropper-resize-square-border, 1px solid rgba(255, 255, 255, .5))}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]:hover .ngx-ic-square[_ngcontent-%COMP%]{background:var(--cropper-resize-square-hover-bg, var(--cropper-resize-square-bg, #53535C));border:var(--cropper-resize-square-hover-border, var(--cropper-resize-square-border, 1px solid rgba(255, 255, 255, .5)))}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;
1298cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ic-hidden[_nghost-%COMP%]{display:none}']});}}return a})();var _o$1=["*"],ln$1=(()=>{class a{constructor(){this._cdr=g$k(Va$2),this.disabled=false,this.name="",this.id=Math.random().toString(),this.valueChanged=new le$d,this._groupDisabled=false;}get isDisabled(){return this.disabled||this._groupDisabled}updateValue(e){this.checked=this.value===e,this._cdr.markForCheck();}setDisabledState(e){this._groupDisabled=e,this._cdr.markForCheck();}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-radio-button"]],hostAttrs:[1,"flex","items-center","gap-2"],inputs:{value:"value",label:"label",disabled:"disabled"},ngContentSelectors:_o$1,decls:3,vars:5,consts:[["type","radio",3,"change","disabled","checked","name","id"],[1,"text-sm","font-medium",3,"for"]],template:function(t,n){t&1&&(DM(),jd$1(0,"input",0),Yv$1("change",function(){return n.valueChanged.next(n.value)}
1298),Vd$1(),jd$1(1,"label",1),EM(2),Vd$1()),t&2&&(zv$1("disabled",n.isDisabled)("checked",n.checked)("name",n.name)("id",n.id),uT(),zv$1("htmlFor",n.id));},encapsulation:2});}}return a})();var lr$1=(()=>{class a{constructor(){this._cdr=g$k(Va$2),this._injector=g$k(oe$e),this.name="",this.disabled=false,this.valueChanged=new Ct$h,this.changed=e=>{},this.touched=()=>{};}set radioButtons(e){this._radioButtons=e;let t=this.name||this._injector.get(y$b)?.name||Math.random().toString();e.forEach(n=>{n.name=t,n.updateValue(this.value),this.disabled&&n.setDisabledState(this.disabled);}),this.subscription&&this.subscription.unsubscribe(),this.subscription=new Q$f,this.subscription.add(xI(...e.map(n=>n.valueChanged)).subscribe(n=>this.updateValue(n)));}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe();}updateValue(e){this.value=e,this.updateChildValues(),this.touched(),this.changed(e),this.valueChanged.emit(e);}writeValue(e){this.value=e,this.updateChildValues(),this._cdr.markForCheck();}registerOnChange(e){this.changed=e;}registerOnTouched(e){this.touched=e;}setDisabledState(e){this.disabled=e,this._radioButtons?.forEach(t=>t.setDisabledState(e));}updateChildValues(){this._radioButtons?.forEach(e=>e.updateValue(this.value));}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["ng-component"]],contentQueries:function(t,n,r){if(t&1&&Kv$1(r,ln$1,5),t&2){let o;CM(o=wM())&&(n.radioButtons=o);}},inputs:{name:"name",disabled:"disabled"},outputs:{valueChanged:"valueChanged"},decls:0,vars:0,template:function(t,n){},encapsulation:2});}}return a})();var bo$1=["*"],dr$1=(()=>{class a extends lr$1{static{this.\u0275fac=(()=>{let e;return function(n){return (e||(e=Wg$1(a)))(n||a)}})();}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-radio-group","horizontal",""]],features:[cN([{provide:E$f,useExisting:Qi$3(()=>a),multi:true}]),pv$1],ngContentSelectors:bo$1,decls:2,vars:0,consts:[[1,"flex","flex-row","flex-wrap","items-center","gap-4"]],template:function(t,n){t&1&&(DM(),jd$1(0,"div",0),EM(1),Vd$1());},encapsulation:2});}}return a})();var dn$1=(()=>{class a{constructor(){this.template=g$k(rn$a);}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275dir=mt$d({type:a,selectors:[["","mspotLazyTabContent",""]]});}}return a})();var vo$1=["*"];function xo$1(a,i){a&1&&EM(0);}var cn$1=(()=>{class a{constructor(){this._viewContainerRef=g$k(Rt$f),this.position=null,this._contentPortal=null,this.label="",this.headerBadge="",this.mobileIcon="",this.onboardingTarget=X8(),this.isActive=false;}get content(){return this._contentPortal}ngOnInit(){this._contentPortal=new U$b(this._explicitContent||this._implicitContent,this._viewContainerRef);}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-tab"]],contentQueries:function(t,n,r){if(t&1&&Kv$1(r,dn$1,7,rn$a),t&2){let o;CM(o=wM())&&(n._explicitContent=o.first);}},viewQuery:function(t,n){if(t&1&&Jv$1(rn$a,7),t&2){let r;CM(r=wM())&&(n._implicitContent=r.first);}},inputs:{label:"label",headerBadge:"headerBadge",mobileIcon:"mobileIcon",dataCy:"dataCy",onboardingTarget:[1,"onboardingTarget"]},exportAs:["mspotTab"],ngContentSelectors:vo$1,decls:1,vars:0,template:function(t,n){t&1&&(DM(),mv$1(0,xo$1,1,0,"ng-template"));},encapsulation:2});}}return a})();function yo$1(a,i){}function Co$1(a,i){if(a&1&&(ta$3(0,"div",1,0),gv$1(2,yo$1,0,0,"ng-template",2),Pd$1()),a&2){let e=yM();jv$1("hidden",!e.isActive);}}var wo$1=(()=>{class a extends wi$2{constructor(){super(...arguments),this._host=g$k(Qi$3(()=>aa));}ngOnInit(){super.ngOnInit(),this.hasAttached()||this.attach(this._host.content);}static{this.\u0275fac=(()=>{let e;return function(n){return (e||(e=Wg$1(a)))(n||a)}})();}static{this.\u0275dir=mt$d({type:a,selectors:[["","mspotTabBodyHost",""]],features:[pv$1]});}}return a})(),aa=(()=>{class a{constructor(){this._isActive=false,this.wasActive=false,this.preserveContent=false;}get isActive(){return this._isActive}set isActive(e){this.preserveContent&&!this.wasActive&&e&&(this.wasActive=true),this._isActive=e;}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-tab-body"]],viewQuery:function(t,n){if(t&1&&Jv$1(wi$2,5),t&2){let r;CM(r=wM())&&(n._portalHost=r.first);}},hostAttrs:[1,"block"],inputs:{preserveContent:"preserveContent",isActive:"isActive",content:"content"},decls:1,vars:1,consts:[["content",""],["cdkScrollable","",1,"h-full",3,"hidden"],["mspotTabBodyHost",""]],template:function(t,n){t&1&&eM$1(0,Co$1,3,1,"div",1),t&2&&tM$1(n.isActive||n.wasActive?0:-1);},dependencies:[Nt$8,wo$1],encapsulation:2});}}return a})();var Do$1=["navEl"],Mo$1=(a,i,e)=>({"border-primary text-primary":a,"text-text-subtle hover:border-mspot-neutral-300 hover:text-mspot-neutral-700 border-transparent":i,"w-full justify-center":e}),So$1=(a,i)=>i.label;function Io$1(a,i){if(a&1){let e=fM();ta$3(0,"button",7),Zv$1("click",function(){sh$1(e);let n=yM();return ah$1(n.scrollNav("left"))}),Vv$1(1,"ng-icon",8),Pd$1();}}function Ao$1(a,i){if(a&1&&Vv$1(0,"ng-icon",11),a&2){let e=yM().$implicit;jv$1("name",e.mobileIcon);}}function ko$1(a,i){if(a&1&&Vv$1(0,"ng-icon",12),a&2){let e=yM().$implicit;jv$1("name",e.headerBadge);}}function Eo$1(a,i){if(a&1){let e=fM();ta$3(0,"button",9),Zv$1("click",function(n){let r=sh$1(e).$implicit;return yM().selectTab(r),ah$1(n.stopPropagation())})("focus",function(n){sh$1(e);let r=yM();return ah$1(r.onButtonFocus(n))}),ta$3(1,"span",10),QM(2),Pd$1(),eM$1(3,Ao$1,1,1,"ng-icon",11),eM$1(4,ko$1,1,1,"ng-icon",12),Pd$1();}if(a&2){let e=i.$implicit,t=yM();iD("active",e.isActive),jv$1("ngClass",hN(9,Mo$1,e.isActive,!e.isActive,t.justifyTabs==="around")),Pv$1("data-cy",e.dataCy??null)("data-onboarding",e.onboardingTarget()??null),uT(),jv$1("ngClass",e.mobileIcon?"hidden sm:inline":""),uT(),Gd$1(" ",e.label," "),uT(),tM$1(e.mobileIcon?3:-1),uT(),tM$1(e.headerBadge?4:-1);}}function To$1(a,i){if(a&1){let e=fM();ta$3(0,"button",13),Zv$1("click",function(){sh$1(e);let n=yM();return ah$1(n.scrollNav("right"))}),Vv$1(1,"ng-icon",14),Pd$1();}}function Ro$2(a,i){if(a&1){let e=fM();ta$3(0,"button",15),Zv$1("click",function(){sh$1(e);let n=yM();
1298return ah$1(n.closeClicked.emit())}),Vv$1(1,"ng-icon",16),Pd$1();}}var cr$1=(()=>{class a{constructor(){this.tabs=[],this.showClose=false,this.justifyTabs="start",this.selectedIndexChange=new Ct$h,this.closeClicked=new Ct$h,this._navEl=t3.required("navEl"),this.scrollLeft=On$7(0),this.navWidth=ON(()=>this._navEl().nativeElement.clientWidth),this.canScrollLeft=qd$1(()=>this.scrollLeft()>0),this.canScrollRight=qd$1(()=>{let e=this._navEl().nativeElement;return this.scrollLeft()+this.navWidth()<e.scrollWidth-1}),this.resizeObserverSetupEffect=Es$3(()=>{let e=this._navEl().nativeElement;new ResizeObserver(()=>{this.navWidth.set(e.clientWidth);}).observe(e);});}onButtonFocus(e){e.target.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"});}scrollNav(e){this._navEl()?.nativeElement?.scrollBy({left:e==="right"?150:-150,behavior:"smooth"});}selectTab(e){if(!this.tabs)return;let t=this.tabs.indexOf(e);if(t<0)throw new Error("Could not find clicked tab");this.selectedIndexChange.emit(t);}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-tab-header"]],viewQuery:function(t,n){t&1&&eD(n._navEl,Do$1,5),t&2&&bM();},hostAttrs:[1,"grid","grid-cols-[1fr_max-content]","border-b","border-mspot-neutral-200"],inputs:{tabs:"tabs",noPadding:"noPadding",showClose:"showClose",justifyTabs:"justifyTabs"},outputs:{selectedIndexChange:"selectedIndexChange",closeClicked:"closeClicked"},decls:8,vars:8,consts:[["navEl",""],[1,"relative","min-w-0","flex-1"],["mspotButton","","size","icon","variant","ghost","aria-label","Scroll tabs left",1,"[&:not(:hover)]:bg-backgrounds-surface-raised","absolute","left-0","top-1/2","z-10","-translate-y-1/2","[&:not(:hover)]:backdrop-blur-sm"],["aria-label","Tabs",1,"scrollbar-hide","-mb-px","flex","gap-1","overflow-x-auto",3,"scroll","ngClass"],["type","button",1,"focus-primary--inner-outline","flex","cursor-pointer","items-center","whitespace-nowrap","border-b-2","px-2","py-4","text-sm","font-medium",3,"active","ngClass"],["mspotButton","","size","icon","variant","ghost","aria-label","Scroll tabs right",1,"[&:not(:hover)]:bg-backgrounds-surface-raised","absolute","right-0","top-1/2","z-10","-translate-y-1/2","[&:not(:hover)]:backdrop-blur-sm"],["mspotCloseButton","","size","sm",1,"ml-2","self-center"],["mspotButton","","size","icon","variant","ghost","aria-label","Scroll tabs left",1,"[&:not(:hover)]:bg-backgrounds-surface-raised","absolute","left-0","top-1/2","z-10","-translate-y-1/2","[&:not(:hover)]:backdrop-blur-sm",3,"click"],["name","heroChevronLeft",1,"text-icons-subtle","text-base"],["type","button",1,"focus-primary--inner-outline","flex","cursor-pointer","items-center","whitespace-nowrap","border-b-2","px-2","py-4","text-sm","font-medium",3,"click","focus","ngClass"],[3,"ngClass"],[1,"inline-flex","w-10","justify-center","text-xl","sm:hidden",3,"name"],[1,"ml-2","text-xl",3,"name"],["mspotButton","","size","icon","variant","ghost","aria-label","Scroll tabs right",1,"[&:not(:hover)]:bg-backgrounds-surface-raised","absolute","right-0","top-1/2","z-10","-translate-y-1/2","[&:not(:hover)]:backdrop-blur-sm",3,"click"],["name","heroChevronRight",1,"text-icons-subtle","text-base"],["mspotCloseButton","","size","sm",1,"ml-2","self-center",3,"click"],["name","heroXMark"]],template:function(t,n){if(t&1){let r=fM();ta$3(0,"div",1),eM$1(1,Io$1,2,0,"button",2),ta$3(2,"nav",3,0),Zv$1("scroll",function(){sh$1(r);let p=TM(3);return ah$1(n.scrollLeft.set(p.scrollLeft))}),oM(4,Eo$1,5,13,"button",4,So$1),Pd$1(),eM$1(6,To$1,2,0,"button",5),Pd$1(),eM$1(7,Ro$2,2,0,"button",6);}t&2&&(uT(),tM$1(n.canScrollLeft()?1:-1),uT(),iD("justify-start",n.justifyTabs==="start")("justify-around",n.justifyTabs==="around"),jv$1("ngClass",n.noPadding?"space-x-4":"space-x-8 px-6"),uT(2),iM(n.tabs),uT(2),tM$1(n.canScrollRight()?6:-1),uT(),tM$1(n.showClose?7:-1));},dependencies:[mx$1,le$9,_t$5,g$a],encapsulation:2});}}return a})();var Fo$1=(a,i)=>[a,i];function Vo$1(a,i){if(a&1&&Vv$1(0,"mspot-tab-body",4),a&2){let e=i.$implicit,t=i.$index,n=yM();jv$1("content",e.content)("isActive",n.selectedIndex===t)("preserveContent",n.preserveContent)("ngClass",n.selectedIndex===t?"min-h-0 flex-1":"");}}var mr$1=(()=>{class a{constructor(){this._changeDetectorRef=g$k(Va$2),this.noPadding=false,this.hideHeader=false,this.showClose
1298=false,this.justifyTabs="start",this.closeClicked=new Ct$h,this.tabArray=[],this.cdrHack=Math.random.toString(),this._selectedIndex=null,this.preserveContent=false,this.selectedIndexChange=new Ct$h;}set tabs(e){this._tabs=e;let t=this.selectedIndex||0;this.tabArray?.length!==e?.length&&!t&&(t=0),this.tabArray=e?.toArray()||[],this.onSelectedIndexChanged(t);}get tabs(){return this._tabs}set selectedIndex(e){this._selectedIndex=C$5(e,null);}get selectedIndex(){return this._selectedIndex}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=C$5(e,null);}onSelectedIndexChanged(e){if(!this.tabs)return;let t=this.tabs.toArray();t.forEach(o=>o.isActive=false);let n=t[e],r=t[0];n?(n.isActive=true,this._selectedIndex=e,this.selectedIndexChange.emit(e)):r&&(r.isActive=true,this._selectedIndex=0,this.selectedIndexChange.emit(0)),this._changeDetectorRef.detectChanges();}trackByFn(e,t){return t.label}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-tab-group"]],contentQueries:function(t,n,r){if(t&1&&Kv$1(r,cn$1,5),t&2){let o;CM(o=wM())&&(n.tabs=o);}},hostAttrs:[1,"block","flex","flex-col"],inputs:{headerClass:"headerClass",noPadding:"noPadding",hideHeader:"hideHeader",showClose:"showClose",justifyTabs:"justifyTabs",selectedIndex:"selectedIndex",contentTabIndex:"contentTabIndex",preserveContent:"preserveContent"},outputs:{closeClicked:"closeClicked",selectedIndexChange:"selectedIndexChange"},decls:6,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],[3,"selectedIndexChange","closeClicked","tabs","showClose","noPadding","justifyTabs","ngClass"],[1,"flex","w-full","flex-1","flex-col","overflow-y-auto"],[1,"w-full",3,"content","isActive","preserveContent","ngClass"]],template:function(t,n){t&1&&(ta$3(0,"mspot-tab-header",2,0),Zv$1("selectedIndexChange",function(o){return n.onSelectedIndexChanged(o)})("closeClicked",function(){return n.closeClicked.emit()}),Pd$1(),ta$3(2,"div",3,1),oM(4,Vo$1,1,4,"mspot-tab-body",4,n.trackByFn,true),Pd$1()),t&2&&(jv$1("tabs",n.tabArray)("showClose",n.showClose)("noPadding",n.noPadding)("justifyTabs",n.justifyTabs)("ngClass",pN(5,Fo$1,n.headerClass||"",n.hideHeader?"hidden":"")),uT(4),iM(n.tabs));},dependencies:[cr$1,mx$1,aa],encapsulation:2});}}return a})();var mn$1=(()=>{class a{constructor(){this._afStorage=g$k(Yr$2),this._fileCdn=g$k(Zt$1);}uploadFile(e,t){let n=gs$2(this._afStorage,e);return fs$2(n,t,{cacheControl:"public, max-age=31919000"})}deleteFile(e){let t=gs$2(this._afStorage,e);return ps$2(t)}uploadDataUrl(e,t){let n=gs$2(this._afStorage,e);return cs$2(n,t,"data_url",{cacheControl:"public, max-age=31919000"})}uploadDataUrlReturnImage(e,t){return je$e(this.uploadDataUrl(e,t)).pipe(Kf$1(()=>_I([this.getMetaData(e),this.getDownloadUrl(e)])),st$c(([n,r])=>({downloadUrl:r,size:n.size,path:e})))}getMetaData(e){return hs$2(gs$2(this._afStorage,e))}getDownloadUrl(e){return je$e(ds$2(gs$2(this._afStorage,e))).pipe(st$c(t=>this._getCdnUrl(t)))}_getCdnUrl(e){return an(e,this._fileCdn)}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275prov=L$l({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var ia="image/jpeg,image/png,image/webp,image/heic,image/bmp";var pn$1={GET_UNSPLASH_IMAGES:a=>({url:"/images/unsplash"+(a?`?search=${a}`:""),method:b$e.GET}),DOWNDLOAD_UNSPLASH_IMAGE:a=>({url:"/images/unsplash/download",data:a,method:b$e.POST}),GET_PIXABAY_IMAGES:a=>({url:"/images/pixabay"+(a?`?search=${a}`:""),method:b$e.GET})};var pr$1=(()=>{class a{constructor(){this._httpService=g$k(Ce$a);}getUnsplashImages(e){return this._httpService.generic(pn$1.GET_UNSPLASH_IMAGES(e))}getPixybayImages(e){return this._httpService.generic(pn$1.GET_PIXABAY_IMAGES(e))}downloadImage(e){return this._httpService.generic(pn$1.DOWNDLOAD_UNSPLASH_IMAGE({downloadLocation:e}))}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275prov=L$l({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var Po$1=a=>({"mt-6":a}),zo$1=a=>({"md:w-auto md:max-w-[385px]":a}),Lo$1=a=>({"hover:scale-102 transition-transform":a}),No$1=(a,i)=>i.id;function Bo$1(a,i){a&1&&(ta$3(0,"div",8)(1,"mspot-content-loader",9),yh$1(),Vv$1(2,"rect",10),Pd$1()());}function Uo$2(a,i){if(a&1&&(ta$3(0,"div",7),oM(1,Bo$1,3,0,"div",8,J_$1().trackByFn,true),Pd$1()),a&2){let e=yM(3);uT(),iM(e.emptyArray);}}function Ho$1(a,i){if(a&1&&(ta$3(0,"div",2),QM(1),Pd$1()),a&2){let e=yM(2).$implicit;uT(),Gd$1(" ",e("text.errorAgainLater")," ");}}function Yo$2(a,i){if(a&1){let e=fM();ta$3(0,"button",14),Zv$1("click",function(){let n=sh$1(e).$implicit,r=yM(5);return ah$1(r.downloadImage(n))}),Vv$1(1,"img",15),Pd$1();}if(a&2){let e=i.$implicit,t=yM(4).$implicit,n=yM();jv$1("ngClass",fN(4,Lo$1,!n.isCustom())),Pv$1("aria-label",t("common.select")),uT(),jv$1("src",e.previewURL,Gm$1)("ngClass",n.isCustom()?"aspect-video w-full":"h-[130px] w-[197px]");}}function jo$2(a,i){if(a&1&&(ta$3(0,"div",11),oM(1,Yo$2,2,6,"button",13,No$1),Pd$1()),a&2){yM();let e=tN(0),t=yM(3);jv$1("ngClass",t.isCustom()?"max-h-64 grid-cols-2 gap-2 overflow-y-scroll":"gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"),uT(),iM(e.hits);}}function Wo$2(a,i){if(a&1&&Vv$1(0,"mspot-empty-state",12),a&2){let e=yM(3).$implicit;jv$1("description",e("search.noResults"));}}function $o$2(a,i){if(a&1&&(wD(0),eM$1(1,jo$2,3,1,"div",11)(2,Wo$2,1,1,"mspot-empty-state",12)),a&2){let e=eN(yM(3).imagesState().data);uT(),tM$1(e.hits.length?1:2);}}function qo$2(a,i){if(a&1&&(ta$3(0,"div",3)(1,"mspot-form-field-std",4),Vv$1(2,"mspot-input-prefix",5)(3,"input",6),iS(),Pd$1()(),eM$1(4,Uo$2,3,0,"div",7)(5,Ho$1,2,1,"div",2)(6,$o$2,3,2)),a&2){let e=yM().$implicit,t=yM();jv$1("ngClass",fN(5,Po$1,!t.isCustom())),uT(),jv$1("ngClass",fN(7,zo$1,!t.isCustom())),uT(2),jv$1("formControl",t.searchCtrl)("placeholder",e("common.search")),aS(),uT(),tM$1(t.imagesState().status==="loading"?4:t.imagesState().status==="error"?5:6);}}function Go$2(a,i){a&1&&(ta$3(0,"div",1)(1,"mspot-content-loader",9),yh$1(),Vv$1(2,"rect",10),Pd$1()());}function Qo$2(a,i){if(a&1&&(ta$3(0,"div",2),QM(1),Pd$1()),a&2){let e=yM().$implicit;uT(),Gd$1(" ",e("text.errorAgainLater")," ");}}function Ko$2(a,i){if(a&1&&(Hd$1(0),eM$1(1,qo$2,7,9)(2,Go$2,3,0,"div",1)(3,Qo$2,2,1,"div",2),$d$1()),a&2){let e=yM();uT(),tM$1(e.downloadState()===null?1:e.downloadState()?.status==="loading"?2:e.downloadState()?.status==="error"?3:-1);}}var un$1=(()=>
1298{class a{constructor(){this.isCustom=X8(false),this._unsplashService=g$k(pr$1),this.searchCtrl=new B$k(""),this._downloadTrigger$=new le$d,this.imagesState=YG(this.searchCtrl.valueChanges.pipe(up$1(500),Qf$1(""),Kf$1(e=>this._unsplashService.getPixybayImages(e?.substring(0,30)).pipe(st$c(t=>({status:"success",data:t})),Qf$1({status:"loading",data:null}),gc$1(()=>yI({status:"error",data:null}))))),{initialValue:{status:"loading",data:null}}),this.downloadState=YG(this._downloadTrigger$.pipe(Kf$1(e=>je$e((async()=>{let t=await fetch(e.largeImageURL);if(!t.ok)throw new Error(`Pixabay download failed: ${t.status}`);let n=await t.blob(),r=n.type.split("/")[1]??"jpg";return new File([n],`pixabay-${e.id}.${r}`,{type:n.type})})()).pipe(st$c(t=>({status:"success",data:t})),Qf$1({status:"loading",data:null}),gc$1(()=>yI({status:"error",data:null}))))),{initialValue:null}),this.imageSelected=J8(),this.onDownloadSuccess=Es$3(()=>{let e=this.downloadState();e?.status==="success"&&e.data&&this.imageSelected.emit([{file:e.data,isFile:true}]);});}get hostClasses(){return this.isCustom()?"":"block px-6"}get emptyArray(){return Array.from({length:12},(e,t)=>({id:t}))}downloadImage(e){this._downloadTrigger$.next(e);}trackByFn(e,t){return t.id}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-pixabay-image"]],hostVars:2,hostBindings:function(t,n){t&2&&BM(n.hostClasses);},inputs:{isCustom:[1,"isCustom"]},outputs:{imageSelected:"imageSelected"},decls:1,vars:0,consts:[[4,"transloco"],[1,"mx-auto","mt-6","max-w-[95%]"],[1,"text-mspot-neutral-500","mt-6","text-center","text-sm"],[3,"ngClass"],[1,"w-full","flex-grow",3,"ngClass"],["icon","hero-magnifying-glass",1,"icon-color"],["mspotInput","","autocomplete","off","type","text",1,"pr-10",3,"formControl","placeholder"],[1,"mt-6","grid","grid-cols-1","gap-4","sm:grid-cols-2","md:grid-cols-3","lg:grid-cols-4"],[1,""],["viewBox","0 0 178 100"],["x","0","y","0","width","178","height","100","rx","6"],[1,"mt-6","grid","grid-cols-1",3,"ngClass"],["variant","search",1,"mt-6",3,"description"],[1,"focus-primary--inner-outline","flex","justify-center",3,"ngClass"],[1,"focus-primary--inner-outline","flex","justify-center",3,"click","ngClass"],["alt","",1,"rounded-md","object-cover",3,"src","ngClass"]],template:function(t,n){t&1&&gv$1(0,Ko$2,4,1,"ng-container",0);},dependencies:[A$4,mx$1,gt$5,ae$2,Ds$2,oi$5,Qe$b,Xn$7,Vn$7,v$3,yt$a],encapsulation:2});}}return a})();function Xo$2(a,i){if(a&1){let e=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2),Vv$1(3,"ng-icon",3),ta$3(4,"span",4),QM(5),Pd$1()(),ta$3(6,"mspot-dropzone",5),Zv$1("fileDropped",function(n){sh$1(e);let r=yM();return ah$1(r.droppedNew(n))}),Pd$1()(),$d$1();}if(a&2){let e=i.$implicit,t=yM();uT(),jv$1("ngClass",t.isMobile()?"w-full":"w-[27.5rem]"),uT(4),yD(e("dialog.communityOnboarding.uploadProfileImage")),uT(),jv$1("accept",t.accept())("styles","items-center h-80 border-2 border-dashed border-borders-secondary !bg-backgrounds-canvas");}}var ur$1=(()=>{class a{constructor(){this.isMobile=X8.required(),this.accept=X8("image/*"),this.fileDropped=J8();}droppedNew(e){this.fileDropped.emit(e);}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-drop-upload"]],inputs:{isMobile:[1,"isMobile"],accept:[1,"accept"]},outputs:{fileDropped:"fileDropped"},decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-col","gap-4",3,"ngClass"],[1,"flex","items-center"],["strokeWidth","2","name","heroPhoto",1,"text-text-default","m-2","text-2xl"],[1,"text-text-default","my-2.5","ml-4","text-sm","font-semibold"],[3,"fileDropped","accept","styles"]],template:function(t,n){t&1&&gv$1(0,Xo$2,7,4,"ng-container",0);},dependencies:[yt$a,Ze$4,le$9,mx$1],encapsulation:2});}}return a})();function Zo$2(a,i){if(a&1){let e=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2),Vv$1(3,"ng-icon",3),ta$3(4,"span",4),QM(5),Pd$1()(),ta$3(6,"mspot-pixabay-image",5),Zv$1("imageSelected",function(n){sh$1(e);let r=yM();return ah$1(r.onSelect(n))}),Pd$1()(),$d$1();}if(a&2){let e=i.$implicit,t=yM();uT(),jv$1("ngClass",t.isMobile()?"w-full":"w-[27.5rem]"),uT(4),yD(e("dialog.communityOnboarding.uploadProfileImageFromPixabay")),uT(),jv$1("isCustom",true);}}var hr$1=(()=>{class a{constructor(){this.isMobile=X8.required(),this.imageSelected=J8();}onSelect(e){this.imageSelected.emit(e);}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-pixabay-upload"]],inputs:{isMobile:[1,"isMobile"]},outputs:{imageSelected:"imageSelected"},decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-col","gap-4",3,"ngClass"],[1,"flex","items-center"],["strokeWidth","2","name","heroRectangleGroup",1,"text-text-default","m-2","text-2xl"],[1,"text-text-default","my-2.5","ml-4","text-sm","font-semibold"],[3,"imageSelected","isCustom"]],template:function(t,n){t&1&&gv$1(0,Zo$2,7,3,"ng-container",0);},dependencies:[le$9,yt$a,un$1,mx$1],encapsulation:2});}}return a})();function Jo$2(a,i){if(a&1){let e=fM();ta$3(0,"button",4),Zv$1("click",function(){sh$1(e);let n=yM(2);return ah$1(n.removeProfileImage())}),Vv$1(1,"ng-icon",9),ta$3(2,"span",10),QM(3),Pd$1()();}if(a&2){let e=yM().$implicit;uT(3),yD(e("dialog.communityOnboarding.removeProfileImage"));}}function es(a,i){if(a&1){let e=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2),QM(3),Pd$1(),ta$3(4,"div",3)(5,"button",4),Zv$1("click",function(){sh$1(e);let n=yM();return ah$1(n.changeContent(1))}),Vv$1(6,"ng-icon",5),ta$3(7,"span",6),QM(8),Pd$1()(),ta$3(9,"button",4),Zv$1("click",function(){sh$1(e);let n=yM();return ah$1(n.changeContent(2))}),Vv$1(10,"ng-icon",7),ta$3(11,"span",6),QM(12),Pd$1()(),eM$1(13,Jo$2,4,1,"button",8),Pd$1()(),$d$1();}if(a&2){let e=i.$implicit,t=yM();uT(),jv$1("ngClass",t.isMobile()?"w-full":"w-[27.5rem]"),uT(2),Gd$1(" ",e("dialog.communityOnboarding.description")," "),uT(5),yD(e("dialog.communityOnboarding.uploadProfileImage")),uT(4),yD(e("dialog.communityOnboarding.uploadProfileImageFromPixabay")),uT(),tM$1(t.isProfileImageSet()?13:-1);}}var fr$1=(()=>{class a{constructor(){this.isMobile=X8.required(),this.isProfileImageSet=X8.required(),this.changeUI=J8(),this.removeImage=J8();}changeContent(e){this.changeUI.emit(e);}removeProfileImage(){this.removeImage.emit();}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["mspot-upload-options"]],inputs:{isMobile:[1,"isMobile"],isProfileImageSet:[1,"isProfileImageSet"]},outputs:{changeUI:"changeUI",removeImage:"removeImage"},decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-col","gap-4",3,"ngClass"],[1,"text-text-subtle","text-sm"],[1,"flex","flex-col","gap-2"],[1,"focus-primary--rounded","flex","items-center",3,"click"],["strokeWidth","2","name","heroPhoto",1,"text-text-default","m-2","text-2xl"],[1,"text-text-default","my-2.5","ml-4","text-sm","font-semibold"],["strokeWidth","2","name","heroRectangleGroup",1,"text-text-default","m-2","text-2xl"],[1,"focus-primary--rounded","flex","items-center"],["strokeWidth","2","name","heroTrash",1,"text-text-danger","m-2","text-2xl"],[1,"text-text-danger","my-2.5","ml-4","text-sm","font-semibold"]],template:function(t,n){t&1&&gv$1(0,es,14,5,"ng-container",0);},dependencies:[yt$a,le$9,mx$1],encapsulation:2});}}return a})();var gr$2=()=>({width:"32px","height.px":32}),_r$1=()=>({"max-width":"370px","max-height.px":300}
1298);function ts(a,i){if(a&1&&(ta$3(0,"div",8),Vv$1(1,"mspot-load-spinner-new",12),Pd$1()),a&2){let e=yM(2).$implicit;uT(),jv$1("loadingText",e("text.isSaving"));}}function ns(a,i){a&1&&(ta$3(0,"div",9)(1,"mspot-content-loader",13),yh$1(),Vv$1(2,"rect",14),Pd$1()());}function as(a,i){if(a&1){let e=fM();ta$3(0,"div",20)(1,"mspot-dropzone",21),Zv$1("fileDropped",function(n){sh$1(e);let r=yM(5);return ah$1(r.droppedNew(n))}),Pd$1()();}if(a&2){let e=yM(5);uT(),jv$1("accept",e._effectiveAccept());}}function is(a,i){if(a&1){let e=fM();ta$3(0,"mspot-pixabay-image",22),Zv$1("imageSelected",function(n){sh$1(e);let r=yM(5);return ah$1(r.droppedNew(n))}),Pd$1();}}function rs(a,i){if(a&1&&(ta$3(0,"div",15)(1,"mspot-tab-group",17)(2,"mspot-tab",18),gv$1(3,as,2,1,"ng-template",19),Pd$1(),ta$3(4,"mspot-tab",18),gv$1(5,is,1,0,"ng-template",19),Pd$1()()()),a&2){let e=yM(3).$implicit;uT(2),jv$1("label",e("text.upload")),uT(2),jv$1("label","Pixabay");}}function os(a,i){a&1&&(ta$3(0,"mspot-radio-button",25),QM(1,"5:7"),Pd$1(),ta$3(2,"mspot-radio-button",25),QM(3,"4:5"),Pd$1()),a&2&&(jv$1("value",5/7),uT(2),jv$1("value",4/5));}function ss(a,i){if(a&1&&(ta$3(0,"div",10)(1,"div",23),QM(2),Pd$1(),ta$3(3,"mspot-radio-group",24)(4,"mspot-radio-button",25),QM(5),Pd$1(),ta$3(6,"mspot-radio-button",25),QM(7,"3:2"),Pd$1(),ta$3(8,"mspot-radio-button",25),QM(9,"16:9"),Pd$1(),ta$3(10,"mspot-radio-button",25),QM(11),Pd$1(),eM$1(12,os,4,2),Pd$1(),iS(),Pd$1()),a&2){let e=yM(3).$implicit,t=yM();uT(2),yD(e("dialog.aspectRatio")),uT(),jv$1("formControl",t.aspectRatioCtrl),aS(),uT(),jv$1("value",null),uT(),yD(e("dialog.free")),uT(),jv$1("value",3/2),uT(2),jv$1("value",16/9),uT(2),jv$1("value",1),uT(),yD(e("dialog.square")),uT(),tM$1(t.data.portraitAspectRatioOptions?12:-1);}}function ls(a,i){if(a&1&&(ta$3(0,"div",26)(1,"div",10)(2,"div")(3,"b"),QM(4),Pd$1()(),ta$3(5,"div",28),Vv$1(6,"img",29),Pd$1()()()),a&2){let e=yM(4).$implicit,t=yM();uT(4),Gd$1(" ",e("dialog.preview")," "),uT(),jv$1("ngClass",t.isIco?"":"flex justify-center"),uT(),jv$1("ngStyle",t.isIco?dN(4,gr$2):dN(5,_r$1))("src",t.passthroughPreviewUrl,Gm$1);}}function ds(a,i){a&1&&$v$1(0);}function cs(a,i){if(a&1&&(ta$3(0,"div",27)(1,"div"),gv$1(2,ds,1,0,"ng-container",30),Pd$1()()),a&2){yM(4);let e=TM(4),t=yM();jv$1("ngClass",t.loading?"h-0 overflow-hidden":""),uT(2),jv$1("ngTemplateOutlet",e);}}function ms(a,i){if(a&1&&(ta$3(0,"div",16),eM$1(1,ls,7,6,"div",26)(2,cs,3,2,"div",27),Pd$1()),a&2){let e=yM(4);uT(),tM$1(e.isPassthrough?1:2);}}function ps(a,i){if(a&1&&(ta$3(0,"div",10),eM$1(1,rs,6,2,"div",15),eM$1(2,ss,13,9,"div",10),eM$1(3,ms,3,1,"div",16),Pd$1()),a&2){let e=yM(3);uT(),tM$1(!e.loading&&!e.imageFile?1:-1),uT(),tM$1(e.imageFile&&!e.isPassthrough&&e.imgLoaded&&e.data.aspectRatioOptions?2:-1),uT(),tM$1(e.imageFile?3:-1);}}function us(a,i){a&1&&Vv$1(0,"mspot-ai-content-label-select",31),a&2&&jv$1("control",i);}function hs(a,i){if(a&1){let e=fM();ta$3(0,"div",11),eM$1(1,us,1,1,"mspot-ai-content-label-select",31),ta$3(2,"button",32),Zv$1("click",function(){sh$1(e);let n=yM(3);return ah$1(n.close())}),QM(3),Pd$1(),ta$3(4,"button",33),Zv$1("click",function(){sh$1(e);let n=yM(3);return ah$1(n.save())}),QM(5),Pd$1()();}if(a&2){let e,t=yM(2).$implicit,n=yM();uT(),tM$1((e=n.imgLoaded&&n.data.aiLabelControl)?1:-1,e),uT(),jv$1("disabled",n.saving),uT(),Gd$1(" ",t("common.abort")," "),uT(),jv$1("disabled",!n.imgLoaded||n.saving||n.loading),uT(),Gd$1(" ",t("common.save")," ");}}function fs(a,i){if(a&1){let e=fM();ta$3(0,"div",4)(1,"h1",5),QM(2),Pd$1(),ta$3(3,"button",6),Zv$1("click",function(){sh$1(e);let n=yM(2);return ah$1(n.close())}),Vv$1(4,"ng-icon",7),Pd$1()(),ta$3(5,"div"),eM$1(6,ts,2,1,"div",8),eM$1(7,ns,3,0,"div",9),eM$1(8,ps,4,3,"div",10),Pd$1(),eM$1(9,hs,6,5,"div",11);}if(a&2){let e=yM().$implicit,t=yM();uT(2),yD(e("dialog.uploadPicture")),uT(),Lv$1("aria-label",e("common.close")),jv$1("disabled",t.saving),uT(3),tM$1(t.saving?6:-1),uT(),tM$1(t.loading?7:-1),uT(),tM$1(t.saving?-1:8),uT(),tM$1(t.saving?-1:9);}}function gs(a,i){if(a&1){let e=fM();ta$3(0,"button",42),Zv$1("click",function(){sh$1(e);let n=yM(3);return ah$1(n.currentComponent.set(0))}),Vv$1(1,"ng-icon",43),Pd$1();}if(a&2){let e=yM(2).$implicit,t=yM();Lv$1("aria-label",e("common.back")),jv$1("disabled",t.saving);}}function _s(a,i){if(a&1){let e=fM();ta$3(0,"mspot-drop-upload",44),Zv$1("fileDropped",function(n){sh$1(e);let r=yM(3);return ah$1(r.droppedNew(n))}),Pd$1();}if(a&2){let e=yM(3);jv$1("isMobile",e.data.customTemplate?.isMobile??false)("accept",e._effectiveAccept());}}function bs(a,i){if(a&1){let e=fM();ta$3(0,"mspot-pixabay-upload",45),Zv$1("imageSelected",function(n){sh$1(e);let r=yM(3);return ah$1(r.droppedNew(n))}),Pd$1();}if(a&2){let e=yM(3);jv$1("isMobile",e.data.customTemplate?.isMobile??false);}}function vs(a,i){if(a&1&&(ta$3(0,"div",46),Vv$1(1,"img",29),Pd$1()),a&2){let e=yM(4);uT(),jv$1("ngStyle",e.isIco?dN(2,gr$2):dN(3,_r$1))("src",e.passthroughPreviewUrl,Gm$1);}}function xs(a,i){a&1&&$v$1(0);}function ys(a,i){if(a&1&&gv$1(0,xs,1,0,"ng-container",30),a&2){yM(3);let e=TM(4);jv$1("ngTemplateOutlet",e);}}function Cs(a,i){if(a&1){let e=fM();eM$1(0,vs,2,4,"div",46)(1,ys,1,1,"ng-container"),ta$3(2,"div",47)(3,"button",32),Zv$1("click",function(){sh$1(e);let n=yM(3);return ah$1(n.close())}),QM(4),Pd$1(),ta$3(5,"button",33),Zv$1("click",function(){sh$1(e);let n=yM(3);return ah$1(n.save())}),QM(6),Pd$1()();}if(a&2){let e=yM(2).$implicit,t=yM();tM$1(t.isPassthrough?0:1),uT(3),jv$1("disabled",t.saving),uT(),Gd$1(" ",e("common.abort")," "),uT(),jv$1("disabled",!t.imgLoaded||t.saving||t.loading),uT(),Gd$1(" ",e("common.save")," ");}}function ws(a,i){if(a&1){let e=fM();ta$3(0,"mspot-upload-options",48),Zv$1("changeUI",function(n){sh$1(e);let r=yM(3);
1298return ah$1(r.setCurrentComponent(n))})("removeImage",function(){sh$1(e);let n=yM(3);return ah$1(n.removeProfileImage())}),Pd$1();}if(a&2){let e=yM(3);jv$1("isMobile",e.data.customTemplate?.isMobile??false)("isProfileImageSet",e.data.customTemplate?.isProfileImageSet??false);}}function Ds(a,i){if(a&1){let e=fM();ta$3(0,"div",2)(1,"div",34)(2,"div",35),eM$1(3,gs,2,2,"button",36),ta$3(4,"span",37),QM(5),Pd$1()(),ta$3(6,"button",6),Zv$1("click",function(){sh$1(e);let n=yM(2);return ah$1(n.close())}),Vv$1(7,"ng-icon",7),Pd$1()(),ta$3(8,"div",38),eM$1(9,_s,1,2,"mspot-drop-upload",39)(10,bs,1,1,"mspot-pixabay-upload",40)(11,Cs,7,5)(12,ws,1,2,"mspot-upload-options",41),Pd$1()();}if(a&2){let e,t=yM().$implicit,n=yM();uT(),jv$1("ngClass",n.data.customTemplate?.isMobile?"px-4 py-5":"py-6 pl-6 pr-4"),uT(2),tM$1(n.currentComponent()!==0?3:-1),uT(2),yD(t("dialog.communityOnboarding.title")),uT(),Lv$1("aria-label",t("common.close")),jv$1("disabled",n.saving),uT(2),jv$1("ngClass",n.data.customTemplate?.isMobile?"px-4 pb-6 pt-5":"px-5 py-4"),uT(),tM$1((e=n.currentComponent())===1?9:e===2?10:e===3?11:12);}}function Ms(a,i){if(a&1){let e=fM();ta$3(0,"image-cropper",49),EN(1,"async"),EN(2,"async"),Zv$1("imageCropped",function(n){sh$1(e);let r=yM(2);return ah$1(r.imageCropped(n))})("imageLoaded",function(){sh$1(e);let n=yM(2);return ah$1(n.imageLoaded())})("cropperReady",function(){sh$1(e);let n=yM(2);return ah$1(n.cropperReady())})("loadImageFailed",function(){sh$1(e);let n=yM(2);return ah$1(n.loadImageFailed())}),Pd$1();}if(a&2){let e=yM().$implicit,t=yM();Ma$2("background-color",t.data.logoThemeModeBgColor),jv$1("format",t.fileType)("imageFile",t.imageFile)("maintainAspectRatio",!!CN(1,12,t.aspectRatio$))("aspectRatio",CN(2,14,t.aspectRatio$)||1)("resizeToWidth",t.data.resizeToWidth||0)("resizeToHeight",t.data.resizeToHeight||0)("onlyScaleDown",t.data.onlyScaleDown??true)("imageQuality",90)("backgroundColor",null),Pv$1("aria-label",e("dialog.imageCropper.label"));}}function Ss(a,i){if(a&1&&(Hd$1(0),eM$1(1,fs,10,7)(2,Ds,13,7,"div",2),gv$1(3,Ms,3,16,"ng-template",null,0,SN),ta$3(5,"div",3),QM(6),Pd$1(),$d$1()),a&2){let e=i.$implicit,t=yM();uT(),tM$1(t.data.customTemplate?2:1),uT(5),Gd$1(" ",e("dialog.imageCropper.instructions")," ");}}
1298var hn$1=1024*1024,Is={"image/gif":8*hn$1,"image/svg+xml":1*hn$1,"image/x-icon":1*hn$1,"image/vnd.microsoft.icon":1*hn$1},ra=(()=>{class a{get data(){return this.dialogData??this.bottomSheetData}get isPassthrough(){return this.passthroughMime!==null}get isIco(){return this.passthroughMime==="image/vnd.microsoft.icon"||this.passthroughMime==="image/x-icon"}get fileType(){return this.data.outputFormat==="png"?"png":"webp"}constructor(){this._destroyRef=g$k(de$b),this._imageService=g$k(mn$1),this._noti=g$k(wi$1),this._cdr=g$k(Va$2),this._sanitizer=g$k(En$7),this._translocoService=g$k(Ce$5),this._imagePasteService=g$k(ar$1),this.dialogRef=g$k(O$c,{optional:true}),this.bottomSheetRef=g$k(X$b,{optional:true}),this.dialogData=g$k(Ze$9,{optional:true}),this.bottomSheetData=g$k(Dn$5,{optional:true}),this.currentComponent=On$7(0),this.saving=false,this.loading=false,this.imgLoaded=false,this.passthroughMime=null,this.aspectRatio$=new gn$a(1),this.croppedImage="",this.text="",this.defaultAspectRatio=16/9,this.aspectRatioCtrl=new Qn$7({value:this.defaultAspectRatio,disabled:false}),this.formValueChanged=this.aspectRatioCtrl.valueChanges.pipe(qG(this._destroyRef)).subscribe(e=>{this.aspectRatio$.next(e);}),this.imagePasted=e=>{this._loadFile(e);},this.setText(),this.data.file&&(this.imageFile=this.data.file);}ngOnInit(){if(this.data.aspectRatioOptions){let e=this.data.aspectRatio!==void 0?this.data.aspectRatio:this.defaultAspectRatio;this.aspectRatio$.next(e),this.aspectRatioCtrl.patchValue(e);}else this.data.aspectRatio&&(this.aspectRatio$.next(this.data.aspectRatio),this.aspectRatioCtrl.patchValue(this.data.aspectRatio||this.defaultAspectRatio));}pasted(e){e.stopPropagation(),this._imagePasteService.pasteGetFile(e,true,this.imagePasted);}setText(){let e=this.data?.tip;if(!e){let n=this.data?.resizeToWidth,r=this.data?.resizeToHeight,o=this.data?.aspectRatio;if(n&&o){let p=n/o;e=`${n} x ${p}`;}else r&&o?e=`${r*o} x ${r}`:r&&n?e=`${n} x ${r}`:r?e=`${this._translocoService.translate("text.height")}: ${r}`:n&&(e=`${this._translocoService.translate("text.width")}: ${n}`);}let t="";this.text=e?`${e}`:t;}imageCropped(e){this.croppedImage=e.base64;}imageLoaded(){}cropperReady(){this.imgLoaded=true,this.loading=false,this._cdr.detectChanges();}loadImageFailed(e){this._resetUploadState(),this._noti.errorIntl("upload.notifications.imageSupportedFormat",{message:e});}_resetUploadState(){this.imgLoaded=false,this.loading=false,this.imageFile=null,this.croppedImage="",this.passthroughMime=null,this.passthroughPreviewUrl=void 0,this._cdr.detectChanges();}setUploadProgress(e){this.uploadPercent=parseInt(e.toFixed(2),10),this._cdr.detectChanges();}save(){if(this.saving=true,this.data.filePath){let e=this._buildUploadPath(this.data.filePath);(this.isPassthrough||this.data.outputFormat==="png"?yI(this.croppedImage):je$e(nn$1(this.croppedImage))).pipe(Kf$1(n=>je$e(this._imageService.uploadDataUrl(e,n))),Kf$1(()=>_I([this._imageService.getMetaData(e),this._imageService.getDownloadUrl(e)])),Ip$1(([n,r])=>{this._noti.successIntl("upload.notifications.imageUploadedSuccessfully"),this.close({downloadUrl:r,size:n.size,path:e});}),gc$1(()=>(this._noti.errorIntl("upload.notifications.error"),pn$a)),hp$1(()=>{this.saving=false,this._cdr.detectChanges();})).subscribe();}else this.close({image:this.croppedImage});}close(e){let t=e&&this.data.aiLabelControl?s$e(r$d({},e),{aiLabel:this.data.aiLabelControl.value}):e;this.dialogRef?.close(t),this.bottomSheetRef?.dismiss(t);}_effectiveAccept(){return this.data.accept??ia}_buildUploadPath(e){if(!this.passthroughMime)return this.data.outputFormat==="png"?en$2(e,tr$1):nr$1(e);let t=tn$2(this.passthroughMime);return t?en$2(e,t):e}_loadPassthrough(e){this.passthroughMime=e.type,this.passthroughPreviewUrl=void 0,this.croppedImage="",this.imgLoaded=false,this.loading=true,this._cdr.detectChanges();let t=new FileReader;t.onload=n=>{if(typeof n.target?.result!="string"){this.loadImageFailed();return}let r=n.target.result;this.croppedImage=r,this.passthroughPreviewUrl=this._sanitizer.bypassSecurityTrustResourceUrl(r),this.imgLoaded=true,this.loading=false,this._cdr.detectChanges();},t.onerror=()=>
1298this.loadImageFailed(),t.readAsDataURL(e);}droppedNew(e){if(e.length>1){this._noti.errorIntl("upload.notifications.max1ImageUpload");return}for(let t of e)t?.isFile?(this._cdr.detach(),this.loading=true,this._cdr.detectChanges(),this._loadFile(t.file),this._cdr.reattach(),this.currentComponent.set(3)):this.loadImageFailed(this._translocoService.translate("upload.notifications.pleaseCheckSpecialCharacters"));}_loadFile(e){if(!e.type.includes("image")){this.loadImageFailed(),this._cdr.reattach();return}if(!ir$2(e,this._effectiveAccept())){this._cdr.reattach(),this._resetUploadState(),this._noti.errorIntl("admin.notifications.upload.notAllowedFileType",{hint:"dialog.file.images"});return}if(Je(e.type))this.passthroughMime=null,this.passthroughPreviewUrl=void 0;else {let t=Is[e.type];if(t!==void 0&&e.size>t){this._cdr.reattach(),this._resetUploadState(),this._noti.errorIntl("notifications.upload.fileTooLarge",{limit:Math.round(t/1024/1024)});return}this._loadPassthrough(e);}this.imageFile=e,this._cdr.detectChanges(),setTimeout(()=>this._cdr.detectChanges(),200);}setCurrentComponent(e){this.currentComponent.set(e);}removeProfileImage(){this.close({downloadUrl:""});}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275cmp=qS({type:a,selectors:[["lib-image-upload"]],hostBindings:function(t,n){t&1&&Zv$1("paste",function(o){return n.pasted(o)},gb$1);},decls:1,vars:0,consts:[["imageCropperTemplate",""],[4,"transloco"],[1,"border-borders-secondary","flex","flex-col","rounded-lg","border"],["id","cropper-instructions",1,"sr-only"],[1,"flex","items-center","justify-between","gap-4"],[1,"heading2"],["mspot-icon-button","","type","button","variant","subtle","size","sm",3,"click","aria-label","disabled"],["data-button-icon","","name","heroXMark","aria-hidden","true"],["data-cy","imageUpload-saving-dialog",1,"my-8","flex","justify-center"],[1,"mx-auto","mt-6","max-w-[95%]"],[1,"flex","flex-col"],[1,"mt-6","flex","items-center","justify-end","gap-4"],["size","h-10 w-10",3,"loadingText"],["viewBox","0 0 178 100"],["x","0","y","0","width","178","height","100","rx","6"],[1,"center","-mx-6"],[1,"mt-2"],[1,"h-full"],[1,"h-full",3,"label"],["mspotLazyTabContent",""],[1,"mt-6","px-6"],["data-cy","imageUpload__filePick",3,"fileDropped","accept"],[3,"imageSelected"],[1,"subtitle-new"],["horizontal","","aria-labelledby","example-radio-group-label",1,"rd-group",3,"formControl"],[1,"rd-button",3,"value"],[1,"w-full"],[1,"flex","justify-center",3,"ngClass"],[3,"ngClass"],[1,"img-preview",3,"ngStyle","src"],[4,"ngTemplateOutlet"],[1,"inline-flex",3,"control"],["mspot-button","","type","button","variant","secondary",3,"click","disabled"],["mspot-button","","type","button","variant","primary","data-cy","imageUpload__save",3,"click","disabled"],[1,"flex","items-center","justify-between",3,"ngClass"],[1,"flex","items-center","gap-2"],["mspot-icon-button","","type","button","variant","subtle","size","sm",1,"-ml-2",3,"aria-label","disabled"],[1,"text-text-strong","font-medium"],[1,"border-borders-secondary","border-t",3,"ngClass"],[3,"isMobile","accept"],[3,"isMobile"],[3,"isMobile","isProfileImageSet"],["mspot-icon-button","","type","button","variant","subtle","size","sm",1,"-ml-2",3,"click","aria-label","disabled"],["data-button-icon","","name","heroArrowLeft","aria-hidden","true"],[3,"fileDropped","isMobile","accept"],[3,"imageSelected","isMobile"],[1,"flex","justify-center"],[1,"mt-4","flex","justify-end","gap-4"],[3,"changeUI","removeImage","isMobile","isProfileImageSet"],["output","base64","role","region","aria-describedby","cropper-instructions",3,"imageCropped","imageLoaded","cropperReady","loadImageFailed","format","imageFile","maintainAspectRatio","aspectRatio","resizeToWidth","resizeToHeight","onlyScaleDown","imageQuality","backgroundColor"]],template:function(t,n){t&1&&gv$1(0,Ss,7,2,"ng-container",1);},dependencies:[yt$a,v$5,A$4,mr$1,cn$1,dn$1,Ze$4,un$1,dr$1,oi$5,Xn$7,Vn$7,ln$1,Ex$1,mx$1,Ix$1,le$9,ur$1,hr$1,fr$1,sr$1,q$b,Z$8,Xo$4,bx$1],styles:[".img-preview[_ngcontent-%COMP%]{padding:10px;border:2px groove var(--border--light);border-radius:4px;object-fit:contain}.rd-group[_ngcontent-%COMP%]{margin:15px 0}.rd-button[_ngcontent-%COMP%]{margin:5px}"]});}}return a})();var Bp$1=(()=>{class a{constructor(){this._bottomSheet=g$k(Sn$5),this._dialogService=g$k(Ss$2),this._imageUploadService=g$k(mn$1),this._fileCdn=g$k(Zt$1);}uploadThumbnail(e,t){let n=this._createUniquId(),r={filePath:`${e}/${n}
1298-thumbnail.webp`,aspectRatio:16/9,aspectRatioOptions:true,resizeToHeight:900};return this._uploadThumbnailInternal(n,r,t)}uploadSpacePostImgWithIds(e,t,n,r,o=true,p=null,x){if(!e||!t||!n||!r)throw new Error("missing parameter");let I=this._createUniquId(),$={filePath:`${Jn$1(e,t,n,r)}/${I}-img.webp`,aspectRatio:p,aspectRatioOptions:o,resizeToWidth:1600,onlyScaleDown:true,hideRecommendation:true,accept:"image/*",aiLabelControl:x};return this._uploadThumbnailInternal(I,$,"")}uploadContentImgWithIds(e,t,n){if(!e||!t)throw new Error("missing parameter");return this.uploadContentImg(Zn$1(e,t),n)}uploadContentImg(e,t){let n=this._createUniquId(),r={filePath:`${e}/${n}-img.webp`,aspectRatio:null,aspectRatioOptions:true,resizeToWidth:2e3,onlyScaleDown:true,hideRecommendation:true,file:t,accept:"image/*"};return this._uploadThumbnailInternal(n,r,"")}pasteContentImgWithIds(e,t,n){if(!e||!t||!n)throw new Error("missing parameter");return this.pasteContentImg(Zn$1(e,t),n)}pasteSpacePostImgWithIds(e,t,n,r,o){if(!e||!t||!n||!r||!o)throw new Error("missing parameter");return this.pasteContentImg(Jn$1(e,t,n,r),o)}pasteContentImg(e,t){let n=this._createUniquId();return this._prepareForUpload(t,`${e}/${n}-img`).pipe(Kf$1(({filePath:r,payload:o})=>this._imageUploadService.uploadDataUrlReturnImage(r,o)),st$c(r=>({id:n,url:r.downloadUrl,size:r.size,path:r.path})))}uploadDataUrl(e,t,n){let r=this._createUniquId();return this._prepareForUpload(t,`${e}/${r}-thumbnail`).pipe(Kf$1(({filePath:o,payload:p})=>this._imageUploadService.uploadDataUrlReturnImage(o,p)),st$c(o=>({id:r,url:o.downloadUrl,size:o.size,path:o.path,linkedTo:[n]})))}uploadImageGetDownloadUrl(e){return this._uploadImage(e).pipe(st$c(t=>t.downloadUrl))}_uploadThumbnailInternal(e,t,n){return this._uploadImage(t).pipe(st$c(r=>{let o={id:e,url:this._getCdnUrl(r.downloadUrl),size:r.size,path:r.path,linkedTo:[n]};return r$d(r$d({},o),r.aiLabel!==void 0?{aiLabel:r.aiLabel}:{})}))}_uploadImage(e){return e.customTemplate?.isMobile?this._bottomSheet.open(ra,{data:e,panelClass:"mat-bottom-sheet-container-p-0",disableClose:true}).afterDismissed().pipe(hn$9(1),Pt$b(t=>!!t?.downloadUrl||!!e.customTemplate&&t?.downloadUrl==="")):this._dialogService.open(ra,{data:e,dialogConfig:{disableClose:true,panelClass:e.customTemplate?[H$a.SIZE_NO_PADDING,H$a.DEFAULT_BACKGROUND]:H$a.SIZE_SMALL_LG}}).pipe(Pt$b(t=>!!t.downloadUrl||!!e.customTemplate&&t.downloadUrl===""))}_createUniquId(){return a$9()}_getCdnUrl(e){return an(e,this._fileCdn)}_prepareForUpload(e,t){let n=Xn(e);if(n&&!Je(n)){let o=tn$2(n)??"bin";return yI({filePath:`${t}.${o}`,payload:e})}let r=`${t}.${Kn$1}`;return je$e(nn$1(e)).pipe(st$c(o=>({filePath:r,payload:o})))}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275prov=L$l({token:a,factory:a.\u0275fac,providedIn:"root"});}}return a})();var As=["*",[["","progressIndicator",""]]],ks=["*","[progressIndicator]"];function Es(a,i){a&1&&(jd$1(0,"div",1),EM(1,1),Vd$1());}var Ts=new b$g("MAT_BUTTON_CONFIG");function br$1(a){return a==null?void 0:mf$1(a)}var oa=(()=>{class a{_elementRef=g$k(gt$f);_ngZone=g$k(ge$b);_animationsDisabled=h$7();_config=g$k(Ts,{optional:true});_focusMonitor=g$k(be$a);_cleanupClick;_renderer=g$k(Fr$6);_rippleLoader=g$k(Zi$1);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e;}showProgress=X8(false,{transform:ni$7});constructor(){g$k(R$9).load(tn$5);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation());}));}static \u0275fac=function(t){return new(t||a)};static \u0275dir=mt$d({type:a,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(t,n){t&2&&(Pv$1("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled())("tabindex",n._getTabIndex()),BM(n.color?"mat-"+n.color:""),iD("mat-mdc-button-progress-indicator-shown",n.showProgress())("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("mat-unthemed",!n.color)("_mat-animation-noopable",n._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",ni$7],disabled:[2,"disabled","disabled",ni$7],ariaDisabled:[2,"aria-disabled","ariaDisabled",ni$7],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ni$7],tabIndex:[2,"tabIndex","tabIndex",br$1],_tabindex:[2,"tabindex","_tabindex",br$1],showProgress:[1,"showProgress"]}})}return a})(),fn$2=(()=>{class a extends oa{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[pv$1],ngContentSelectors:ks,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(DM(As),Bv$1(0,"span",0),EM(1),eM$1(2,Es,2,0,"div",1),Bv$1(3,"span",2)(4,"span",3)),t&2&&(uT(2),tM$1(n.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button { 1299 -webkit-user-select: none; 1300 user-select: none; 1301 display: inline-block; 1302 position: relative; 1303 box-sizing: border-box; 1304 border: none; 1305 outline: none; 1306 background-color: transparent; 1307 fill: currentColor; 1308 text-decoration: none; 1309 cursor: pointer; 1310 z-index: 0; 1311 overflow: visible; 1312 border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%)); 1313 flex-shrink: 0; 1314 text-align: center; 1315 width: var(--mat-icon-button-state-layer-size, 40px); 1316 height: var(--mat-icon-button-state-layer-size, 40px); 1317 padding: calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2); 1318 font-size: var(--mat-icon-button-icon-size, 24px); 1319 color: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant)); 1320 -webkit-tap-highlight-color: transparent; 1321} 1322.mat-mdc-icon-button .mat-mdc-button-ripple, 1323.mat-mdc-icon-button .mat-mdc-button-persistent-ripple, 1324.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { 1325 top: 0; 1326 left: 0; 1327 right: 0; 1328 bottom: 0; 1329 position: absolute; 1330 pointer-events: none; 1331 border-radius: inherit; 1332} 1333.mat-mdc-icon-button .mat-mdc-button-ripple { 1334 overflow: hidden; 1335} 1336.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { 1337 content: ""; 1338 opacity: 0; 1339} 1340.mat-mdc-icon-button .mdc-button__label, 1341.mat-mdc-icon-button .mat-icon { 1342 z-index: 1; 1343 position: relative; 1344} 1345.mat-mdc-icon-button .mat-focus-indicator { 1346 top: 0; 1347 left: 0; 1348 right: 0; 1349 bottom: 0; 1350 position: absolute; 1351 border-radius: inherit; 1352} 1353.mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before { 1354 content: ""; 1355 border-radius: inherit; 1356} 1357.mat-mdc-icon-button .mat-ripple-element { 1358 background-color: var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1359} 1360.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before { 1361 background-color: var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant)); 1362} 1363.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1364 background-color: var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 1365} 1366.mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before { 1367 opacity: var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1368} 1369.mat-mdc-icon-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1370 opacity: var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1371} 1372.mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before { 1373 opacity: var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1374} 1375.mat-mdc-icon-button .mat-mdc-button-touch-target { 1376 position: absolute; 1377 top: 50%; 1378 height: var(--mat-icon-button-touch-target-size, 48px); 1379 display: var(--mat-icon-button-touch-target-display, block); 1380 left: 50%; 1381 width: var(--mat-icon-button-touch-target-size, 48px); 1382 transform: translate(-50%, -50%); 1383} 1384.mat-mdc-icon-button._mat-animation-noopable { 1385 transition: none !important; 1386 animation: none !important; 1387} 1388.mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled { 1389 cursor: default; 1390 pointer-events: none; 1391 color: var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1392} 1393.mat-mdc-icon-button.mat-mdc-button-disabled-interactive { 1394 pointer-events: auto; 1395} 1396.mat-mdc-icon-button img, 1397.mat-mdc-icon-button svg { 1398 width: var(--mat-icon-button-icon-size, 24px); 1399 height: var(--mat-icon-button-icon-size, 24px); 1400 vertical-align: baseline; 1401} 1402.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__determinate-circle-graphic { 1403 width: inherit; 1404 height: inherit; 1405} 1406.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__indeterminate-circle-graphic { 1407 height: 100%; 1408} 1409.mat-mdc-icon-button .mat-mdc-button-persistent-ripple { 1410 border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%)); 1411} 1412.mat-mdc-icon-button[hidden] { 1413 display: none; 1414} 1415.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before { 1416 background: transparent; 1417 opacity: 1; 1418} 1419 1420.mat-mdc-button-progress-indicator-container { 1421 position: absolute; 1422 inset-inline-start: 0; 1423 inset-block-start: 0; 1424 display: flex; 1425 align-items: center; 1426 justify-content: center; 1427 width: 100%; 1428 height: 100%; 1429 box-sizing: border-box; 1430} 1431 1432.mat-mdc-button-progress-indicator-shown mat-icon { 1433 visibility: hidden; 1434} 1435`,`@media (forced-colors: active) { 1436 .mat-mdc-button:not(.mdc-button--outlined), 1437 .mat-mdc-unelevated-button:not(.mdc-button--outlined), 1438 .mat-mdc-raised-button:not(.mdc-button--outlined), 1439 .mat-mdc-outlined-button:not(.mdc-button--outlined), 1440 .mat-mdc-button-base.mat-tonal-button, 1441 .mat-mdc-icon-button.mat-mdc-icon-button, 1442 .mat-mdc-outlined-button .mdc-button__ripple { 1443 outline: solid 1px; 1444 } 1445} 1446`],encapsulation:2})}return a})();var Rs=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],Fs=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];
1446function Vs(a,i){a&1&&(jd$1(0,"div",2),EM(1,3),Vd$1());}var vr$1=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),sa=(()=>{class a extends oa{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let e=Os(this._elementRef.nativeElement);e&&this.setAppearance(e);}setAppearance(e){if(e===this._appearance)return;let t=this._elementRef.nativeElement.classList,n=this._appearance?vr$1.get(this._appearance):null,r=vr$1.get(e);n&&t.remove(...n),t.add(...r),this._appearance=e;}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[pv$1],ngContentSelectors:Fs,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(DM(Rs),Bv$1(0,"span",0),EM(1),jd$1(2,"span",1),EM(3,1),Vd$1(),EM(4,2),eM$1(5,Vs,2,0,"div",2),Bv$1(6,"span",3)(7,"span",4)),t&2&&(iD("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),uT(5),tM$1(n.showProgress()?5:-1));},styles:[`.mat-mdc-button-base { 1447 text-decoration: none; 1448} 1449.mat-mdc-button-base .mat-icon { 1450 min-height: fit-content; 1451 flex-shrink: 0; 1452} 1453@media (hover: none) { 1454 .mat-mdc-button-base:hover > span.mat-mdc-button-persistent-ripple::before { 1455 opacity: 0; 1456 } 1457} 1458 1459.mdc-button { 1460 -webkit-user-select: none; 1461 user-select: none; 1462 position: relative; 1463 display: inline-flex; 1464 align-items: center; 1465 justify-content: center; 1466 box-sizing: border-box; 1467 min-width: 64px; 1468 border: none; 1469 outline: none; 1470 line-height: inherit; 1471 -webkit-appearance: none; 1472 overflow: visible; 1473 vertical-align: middle; 1474 background: transparent; 1475 padding: 0 8px; 1476} 1477.mdc-button::-moz-focus-inner { 1478 padding: 0; 1479 border: 0; 1480} 1481.mdc-button:active { 1482 outline: none; 1483} 1484.mdc-button:hover { 1485 cursor: pointer; 1486} 1487.mdc-button:disabled { 1488 cursor: default; 1489 pointer-events: none; 1490} 1491.mdc-button[hidden] { 1492 display: none; 1493} 1494.mdc-button .mdc-button__label { 1495 position: relative; 1496} 1497 1498.mat-mdc-button { 1499 padding: 0 var(--mat-button-text-horizontal-padding, 12px); 1500 height: var(--mat-button-text-container-height, 40px); 1501 font-family: var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font)); 1502 font-size: var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size)); 1503 letter-spacing: var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking)); 1504 text-transform: var(--mat-button-text-label-text-transform); 1505 font-weight: var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight)); 1506} 1507.mat-mdc-button, .mat-mdc-button .mdc-button__ripple { 1508 border-radius: var(--mat-button-text-container-shape, var(--mat-sys-corner-full)); 1509} 1510.mat-mdc-button:not(:disabled) { 1511 color: var(--mat-button-text-label-text-color, var(--mat-sys-primary)); 1512} 1513.mat-mdc-button[disabled], .mat-mdc-button.mat-mdc-button-disabled { 1514 cursor: default; 1515 pointer-events: none; 1516 color: var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1517} 1518.mat-mdc-button.mat-mdc-button-disabled-interactive { 1519 pointer-events: auto; 1520} 1521.mat-mdc-button:has(.material-icons, mat-icon, [matButtonIcon]) { 1522 padding: 0 var(--mat-button-text-with-icon-horizontal-padding, 16px); 1523} 1524.mat-mdc-button > .mat-icon { 1525 margin-right: var(--mat-button-text-icon-spacing, 8px); 1526 margin-left: var(--mat-button-text-icon-offset, -4px); 1527} 1528[dir=rtl] .mat-mdc-button > .mat-icon { 1529 margin-right: var(--mat-button-text-icon-offset, -4px); 1530 margin-left: var(--mat-button-text-icon-spacing, 8px); 1531} 1532.mat-mdc-button .mdc-button__label + .mat-icon { 1533 margin-right: var(--mat-button-text-icon-offset, -4px); 1534 margin-left: var(--mat-button-text-icon-spacing, 8px); 1535} 1536[dir=rtl] .mat-mdc-button .mdc-button__label + .mat-icon { 1537 margin-right: var(--mat-button-text-icon-spacing, 8px); 1538 margin-left: var(--mat-button-text-icon-offset, -4px); 1539} 1540.mat-mdc-button .mat-ripple-element { 1541 background-color: var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1542} 1543.mat-mdc-button .mat-mdc-button-persistent-ripple::before { 1544 background-color: var(--mat-button-text-state-layer-color, var(--mat-sys-primary)); 1545} 1546.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1547 background-color: var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 1548} 1549.mat-mdc-button:hover > .mat-mdc-button-persistent-ripple::before { 1550 opacity: var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1551} 1552.mat-mdc-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1553 opacity: var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1554} 1555.mat-mdc-button:active > .mat-mdc-button-persistent-ripple::before { 1556 opacity: var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1557} 1558.mat-mdc-button .mat-mdc-button-touch-target { 1559 position: absolute; 1560 top: 50%; 1561 height: var(--mat-button-text-touch-target-size, 48px); 1562 display: var(--mat-button-text-touch-target-display, block); 1563 left: 0; 1564 right: 0; 1565 transform: translateY(-50%); 1566} 1567 1568.mat-mdc-unelevated-button { 1569 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); 1570 height: var(--mat-button-filled-container-height, 40px); 1571 font-family: var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font)); 1572 font-size: var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size)); 1573 letter-spacing: var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking)); 1574 text-transform: var(--mat-button-filled-label-text-transform); 1575 font-weight: var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight)); 1576 padding: 0 var(--mat-button-filled-horizontal-padding, 24px); 1577} 1578.mat-mdc-unelevated-button > .mat-icon { 1579 margin-right: var(--mat-button-filled-icon-spacing, 8px); 1580 margin-left: var(--mat-button-filled-icon-offset, -8px); 1581} 1582[dir=rtl] .mat-mdc-unelevated-button > .mat-icon { 1583 margin-right: var(--mat-button-filled-icon-offset, -8px); 1584 margin-left: var(--mat-button-filled-icon-spacing, 8px); 1585} 1586.mat-mdc-unelevated-button .mdc-button__label + .mat-icon { 1587 margin-right: var(--mat-button-filled-icon-offset, -8px); 1588 margin-left: var(--mat-button-filled-icon-spacing, 8px); 1589} 1590[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label + .mat-icon { 1591 margin-right: var(--mat-button-filled-icon-spacing, 8px); 1592 margin-left: var(--mat-button-filled-icon-offset, -8px); 1593} 1594.mat-mdc-unelevated-button .mat-ripple-element { 1595 background-color: var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1596} 1597.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before { 1598 background-color: var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary)); 1599} 1600.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1601 background-color: var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 1602} 1603.mat-mdc-unelevated-button:hover > .mat-mdc-button-persistent-ripple::before { 1604 opacity: var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1605} 1606.mat-mdc-unelevated-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1607 opacity: var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1608} 1609.mat-mdc-unelevated-button:active > .mat-mdc-button-persistent-ripple::before { 1610 opacity: var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1611} 1612.mat-mdc-unelevated-button .mat-mdc-button-touch-target { 1613 position: absolute; 1614 top: 50%; 1615 height: var(--mat-button-filled-touch-target-size, 48px); 1616 display: var(--mat-button-filled-touch-target-display, block); 1617 left: 0; 1618 right: 0; 1619 transform: translateY(-50%); 1620} 1621.mat-mdc-unelevated-button:not(:disabled) { 1622 color: var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary)); 1623 background-color: var(--mat-button-filled-container-color, var(--mat-sys-primary)); 1624} 1625.mat-mdc-unelevated-button, .mat-mdc-unelevated-button .mdc-button__ripple { 1626 border-radius: var(--mat-button-filled-container-shape, var(--mat-sys-corner-full)); 1627} 1628.mat-mdc-unelevated-button .mat-mdc-button-progress-indicator-container { 1629 --mat-progress-spinner-active-indicator-color: var(--mat-button-filled-progress-active-indicator-color, var(--mat-sys-on-primary)); 1630} 1631.mat-mdc-unelevated-button[disabled], .mat-mdc-unelevated-button.mat-mdc-button-disabled { 1632 cursor: default; 1633 pointer-events: none; 1634 color: var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1635 background-color: var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 1636} 1637.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive { 1638 pointer-events: auto; 1639} 1640 1641.mat-mdc-raised-button { 1642 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); 1643 box-shadow: var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1)); 1644 height: var(--mat-button-protected-container-height, 40px); 1645 font-family: var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font)); 1646 font-size: var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size)); 1647 letter-spacing: var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking)); 1648 text-transform: var(--mat-button-protected-label-text-transform); 1649 font-weight: var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight)); 1650 padding: 0 var(--mat-button-protected-horizontal-padding, 24px); 1651} 1652.mat-mdc-raised-button > .mat-icon { 1653 margin-right: var(--mat-button-protected-icon-spacing, 8px); 1654 margin-left: var(--mat-button-protected-icon-offset, -8px); 1655} 1656[dir=rtl] .mat-mdc-raised-button > .mat-icon { 1657 margin-right: var(--mat-button-protected-icon-offset, -8px); 1658 margin-left: var(--mat-button-protected-icon-spacing, 8px); 1659} 1660.mat-mdc-raised-button .mdc-button__label + .mat-icon { 1661 margin-right: var(--mat-button-protected-icon-offset, -8px); 1662 margin-left: var(--mat-button-protected-icon-spacing, 8px); 1663} 1664[dir=rtl] .mat-mdc-raised-button .mdc-button__label + .mat-icon { 1665 margin-right: var(--mat-button-protected-icon-spacing, 8px); 1666 margin-left: var(--mat-button-protected-icon-offset, -8px); 1667} 1668.mat-mdc-raised-button .mat-ripple-element { 1669 background-color: var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1670} 1671.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before { 1672 background-color: var(--mat-button-protected-state-layer-color, var(--mat-sys-primary)); 1673} 1674.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1675 background-color: var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 1676} 1677.mat-mdc-raised-button:hover > .mat-mdc-button-persistent-ripple::before { 1678 opacity: var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1679} 1680.mat-mdc-raised-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1681 opacity: var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1682} 1683.mat-mdc-raised-button:active > .mat-mdc-button-persistent-ripple::before { 1684 opacity: var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1685} 1686.mat-mdc-raised-button .mat-mdc-button-touch-target { 1687 position: absolute; 1688 top: 50%; 1689 height: var(--mat-button-protected-touch-target-size, 48px); 1690 display: var(--mat-button-protected-touch-target-display, block); 1691 left: 0; 1692 right: 0; 1693 transform: translateY(-50%); 1694} 1695.mat-mdc-raised-button:not(:disabled) { 1696 color: var(--mat-button-protected-label-text-color, var(--mat-sys-primary)); 1697 background-color: var(--mat-button-protected-container-color, var(--mat-sys-surface)); 1698} 1699.mat-mdc-raised-button, .mat-mdc-raised-button .mdc-button__ripple { 1700 border-radius: var(--mat-button-protected-container-shape, var(--mat-sys-corner-full)); 1701} 1702@media (hover: hover) { 1703 .mat-mdc-raised-button:hover { 1704 box-shadow: var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2)); 1705 } 1706} 1707.mat-mdc-raised-button:focus { 1708 box-shadow: var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1)); 1709} 1710.mat-mdc-raised-button:active, .mat-mdc-raised-button:focus:active { 1711 box-shadow: var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1)); 1712} 1713.mat-mdc-raised-button[disabled], .mat-mdc-raised-button.mat-mdc-button-disabled { 1714 cursor: default; 1715 pointer-events: none; 1716 color: var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1717 background-color: var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 1718} 1719.mat-mdc-raised-button[disabled].mat-mdc-button-disabled, .mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled { 1720 box-shadow: var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0)); 1721} 1722.mat-mdc-raised-button.mat-mdc-button-disabled-interactive { 1723 pointer-events: auto; 1724} 1725 1726.mat-mdc-outlined-button { 1727 border-style: solid; 1728 transition: border 280ms cubic-bezier(0.4, 0, 0.2, 1); 1729 height: var(--mat-button-outlined-container-height, 40px); 1730 font-family: var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font)); 1731 font-size: var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size)); 1732 letter-spacing: var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking)); 1733 text-transform: var(--mat-button-outlined-label-text-transform); 1734 font-weight: var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight)); 1735 border-radius: var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full)); 1736 border-width: var(--mat-button-outlined-outline-width, 1px); 1737 padding: 0 var(--mat-button-outlined-horizontal-padding, 24px); 1738} 1739.mat-mdc-outlined-button > .mat-icon { 1740 margin-right: var(--mat-button-outlined-icon-spacing, 8px); 1741 margin-left: var(--mat-button-outlined-icon-offset, -8px); 1742} 1743[dir=rtl] .mat-mdc-outlined-button > .mat-icon { 1744 margin-right: var(--mat-button-outlined-icon-offset, -8px); 1745 margin-left: var(--mat-button-outlined-icon-spacing, 8px); 1746} 1747.mat-mdc-outlined-button .mdc-button__label + .mat-icon { 1748 margin-right: var(--mat-button-outlined-icon-offset, -8px); 1749 margin-left: var(--mat-button-outlined-icon-spacing, 8px); 1750} 1751[dir=rtl] .mat-mdc-outlined-button .mdc-button__label + .mat-icon { 1752 margin-right: var(--mat-butt
1752on-outlined-icon-spacing, 8px); 1753 margin-left: var(--mat-button-outlined-icon-offset, -8px); 1754} 1755.mat-mdc-outlined-button .mat-ripple-element { 1756 background-color: var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1757} 1758.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before { 1759 background-color: var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary)); 1760} 1761.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1762 background-color: var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 1763} 1764.mat-mdc-outlined-button:hover > .mat-mdc-button-persistent-ripple::before { 1765 opacity: var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1766} 1767.mat-mdc-outlined-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1768 opacity: var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1769} 1770.mat-mdc-outlined-button:active > .mat-mdc-button-persistent-ripple::before { 1771 opacity: var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1772} 1773.mat-mdc-outlined-button .mat-mdc-button-touch-target { 1774 position: absolute; 1775 top: 50%; 1776 height: var(--mat-button-outlined-touch-target-size, 48px); 1777 display: var(--mat-button-outlined-touch-target-display, block); 1778 left: 0; 1779 right: 0; 1780 transform: translateY(-50%); 1781} 1782.mat-mdc-outlined-button:not(:disabled) { 1783 color: var(--mat-button-outlined-label-text-color, var(--mat-sys-primary)); 1784 border-color: var(--mat-button-outlined-outline-color, var(--mat-sys-outline)); 1785} 1786.mat-mdc-outlined-button[disabled], .mat-mdc-outlined-button.mat-mdc-button-disabled { 1787 cursor: default; 1788 pointer-events: none; 1789 color: var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1790 border-color: var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 1791} 1792.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive { 1793 pointer-events: auto; 1794} 1795 1796.mat-tonal-button { 1797 transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); 1798 height: var(--mat-button-tonal-container-height, 40px); 1799 font-family: var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font)); 1800 font-size: var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size)); 1801 letter-spacing: var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking)); 1802 text-transform: var(--mat-button-tonal-label-text-transform); 1803 font-weight: var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight)); 1804 padding: 0 var(--mat-button-tonal-horizontal-padding, 24px); 1805} 1806.mat-tonal-button:not(:disabled) { 1807 color: var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container)); 1808 background-color: var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container)); 1809} 1810.mat-tonal-button, .mat-tonal-button .mdc-button__ripple { 1811 border-radius: var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full)); 1812} 1813.mat-tonal-button[disabled], .mat-tonal-button.mat-mdc-button-disabled { 1814 cursor: default; 1815 pointer-events: none; 1816 color: var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 1817 background-color: var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent)); 1818} 1819.mat-tonal-button.mat-mdc-button-disabled-interactive { 1820 pointer-events: auto; 1821} 1822.mat-tonal-button > .mat-icon { 1823 margin-right: var(--mat-button-tonal-icon-spacing, 8px); 1824 margin-left: var(--mat-button-tonal-icon-offset, -8px); 1825} 1826[dir=rtl] .mat-tonal-button > .mat-icon { 1827 margin-right: var(--mat-button-tonal-icon-offset, -8px); 1828 margin-left: var(--mat-button-tonal-icon-spacing, 8px); 1829} 1830.mat-tonal-button .mdc-button__label + .mat-icon { 1831 margin-right: var(--mat-button-tonal-icon-offset, -8px); 1832 margin-left: var(--mat-button-tonal-icon-spacing, 8px); 1833} 1834[dir=rtl] .mat-tonal-button .mdc-button__label + .mat-icon { 1835 margin-right: var(--mat-button-tonal-icon-spacing, 8px); 1836 margin-left: var(--mat-button-tonal-icon-offset, -8px); 1837} 1838.mat-tonal-button .mat-ripple-element { 1839 background-color: var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)); 1840} 1841.mat-tonal-button .mat-mdc-button-persistent-ripple::before { 1842 background-color: var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container)); 1843} 1844.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before { 1845 background-color: var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant)); 1846} 1847.mat-tonal-button:hover > .mat-mdc-button-persistent-ripple::before { 1848 opacity: var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); 1849} 1850.mat-tonal-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before { 1851 opacity: var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); 1852} 1853.mat-tonal-button:active > .mat-mdc-button-persistent-ripple::before { 1854 opacity: var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); 1855} 1856.mat-tonal-button .mat-mdc-button-touch-target { 1857 position: absolute; 1858 top: 50%; 1859 height: var(--mat-button-tonal-touch-target-size, 48px); 1860 display: var(--mat-button-tonal-touch-target-display, block); 1861 left: 0; 1862 right: 0; 1863 transform: translateY(-50%); 1864} 1865 1866.mat-mdc-button, 1867.mat-mdc-unelevated-button, 1868.mat-mdc-raised-button, 1869.mat-mdc-outlined-button, 1870.mat-tonal-button { 1871 -webkit-tap-highlight-color: transparent; 1872} 1873.mat-mdc-button .mat-mdc-button-ripple, 1874.mat-mdc-button .mat-mdc-button-persistent-ripple, 1875.mat-mdc-button .mat-mdc-button-persistent-ripple::before, 1876.mat-mdc-unelevated-button .mat-mdc-button-ripple, 1877.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple, 1878.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before, 1879.mat-mdc-raised-button .mat-mdc-button-ripple, 1880.mat-mdc-raised-button .mat-mdc-button-persistent-ripple, 1881.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before, 1882.mat-mdc-outlined-button .mat-mdc-button-ripple, 1883.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple, 1884.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before, 1885.mat-tonal-button .mat-mdc-button-ripple, 1886.mat-tonal-button .mat-mdc-button-persistent-ripple, 1887.mat-tonal-button .mat-mdc-button-persistent-ripple::before { 1888 top: 0; 1889 left: 0; 1890 right: 0; 1891 bottom: 0; 1892 position: absolute; 1893 pointer-events: none; 1894 border-radius: inherit; 1895} 1896.mat-mdc-button .mat-mdc-button-ripple, 1897.mat-mdc-unelevated-button .mat-mdc-button-ripple, 1898.mat-mdc-raised-button .mat-mdc-button-ripple, 1899.mat-mdc-outlined-button .mat-mdc-button-ripple, 1900.mat-tonal-button .mat-mdc-button-ripple { 1901 overflow: hidden; 1902} 1903.mat-mdc-button .mat-mdc-button-persistent-ripple::before, 1904.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before, 1905.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before, 1906.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before, 1907.mat-tonal-button .mat-mdc-button-persistent-ripple::before { 1908 content: ""; 1909 opacity: 0; 1910} 1911.mat-mdc-button .mdc-button__label, 1912.mat-mdc-button .mat-icon, 1913.mat-mdc-unelevated-button .mdc-button__label, 1914.mat-mdc-unelevated-button .mat-icon, 1915.mat-mdc-raised-button .mdc-button__label, 1916.mat-mdc-raised-button .mat-icon, 1917.mat-mdc-outlined-button .mdc-button__label, 1918.mat-mdc-outlined-button .mat-icon, 1919.mat-tonal-button .mdc-button__label, 1920.mat-tonal-button .mat-icon { 1921 z-index: 1; 1922 position: relative; 1923} 1924.mat-mdc-button .mat-focus-indicator, 1925.mat-mdc-unelevated-button .mat-focus-indicator, 1926.mat-mdc-raised-button .mat-focus-indicator, 1927.mat-mdc-outlined-button .mat-focus-indicator, 1928.mat-tonal-button .mat-focus-indicator { 1929 top: 0; 1930 left: 0; 1931 right: 0; 1932 bottom: 0; 1933 position: absolute; 1934 border-radius: inherit; 1935} 1936.mat-mdc-button:focus-visible > .mat-focus-indicator::before, 1937.mat-mdc-unelevated-button:focus-visible > .mat-focus-indicator::before, 1938.mat-mdc-raised-button:focus-visible > .mat-focus-indicator::before, 1939.mat-mdc-outlined-button:focus-visible > .mat-focus-indicator::before, 1940.mat-tonal-button:focus-visible > .mat-focus-indicator::before { 1941 content: ""; 1942 border-radius: inherit; 1943} 1944.mat-mdc-button._mat-animation-noopable, 1945.mat-mdc-unelevated-button._mat-animation-noopable, 1946.mat-mdc-raised-button._mat-animation-noopable, 1947.mat-mdc-outlined-button._mat-animation-noopable, 1948.mat-tonal-button._mat-animation-noopable { 1949 transition: none !important; 1950 animation: none !important; 1951} 1952.mat-mdc-button > .mat-icon, 1953.mat-mdc-unelevated-button > .mat-icon, 1954.mat-mdc-raised-button > .mat-icon, 1955.mat-mdc-outlined-button > .mat-icon, 1956.mat-tonal-button > .mat-icon { 1957 display: inline-block; 1958 position: relative; 1959 vertical-align: top; 1960 font-size: 1.125rem; 1961 height: 1.125rem; 1962 width: 1.125rem; 1963} 1964 1965.mat-mdc-outlined-button .mat-mdc-button-ripple, 1966.mat-mdc-outlined-button .mdc-button__ripple { 1967 top: -1px; 1968 left: -1px; 1969 bottom: -1px; 1970 right: -1px; 1971} 1972 1973.mat-mdc-unelevated-button .mat-focus-indicator::before, 1974.mat-tonal-button .mat-focus-indicator::before, 1975.mat-mdc-raised-button .mat-focus-indicator::before { 1976 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1); 1977} 1978 1979.mat-mdc-outlined-button .mat-focus-indicator::before { 1980 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1); 1981} 1982 1983.mat-mdc-button-progress-indicator-container { 1984 position: absolute; 1985 inset-inline-start: 0; 1986 inset-block-start: 0; 1987 display: flex; 1988 align-items: center; 1989 justify-content: center; 1990 width: 100%; 1991 height: 100%; 1992 box-sizing: border-box; 1993} 1994 1995.mat-mdc-button-progress-indicator-shown mat-icon, 1996.mat-mdc-button-progress-indicator-shown [matButtonIcon], 1997.mat-mdc-button-progress-indicator-shown .mdc-button__label { 1998 visibility: hidden; 1999} 2000`,`@media (forced-colors: active) { 2001 .mat-mdc-button:not(.mdc-button--outlined), 2002 .mat-mdc-unelevated-button:not(.mdc-button--outlined), 2003 .mat-mdc-raised-button:not(.mdc-button--outlined), 2004 .mat-mdc-outlined-button:not(.mdc-button--outlined), 2005 .mat-mdc-button-base.mat-tonal-button, 2006 .mat-mdc-icon-button.mat-mdc-icon-button, 2007 .mat-mdc-outlined-button .mdc-button__ripple { 2008 outline: solid 1px; 2009 } 2010} 2011`],encapsulation:2})}return a})();function Os(a){return a.hasAttribute("mat-raised-button")?"elevated":a.hasAttribute("mat-stroked-button")?"outlined":a.hasAttribute("mat-flat-button")?"filled":a.hasAttribute("mat-button")?"text":null}var xr$1=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=Sa$2({type:a});static \u0275inj=io$5({imports:[nn$4,K$j]})}return a})();var yr$1=new b$g("MAT_INPUT_VALUE_ACCESSOR");var zs=(()=>{class a{value=null;stateChanges;id;placeholder;ngControl=null;focused=false;empty=false;shouldLabelFloat=false;required=false;disabled=false;errorState=false;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||a)};static \u0275dir=mt$d({type:a})}return a})();
2011var Cr$1=new b$g("MatFormField");var Tu$1=new b$g("");function Ls(a,i){return this._trackRow(i)}var Er$1=(a,i)=>i.id;function Ns(a,i){if(a&1&&(jd$1(0,"tr",0)(1,"td",3),QM(2),Vd$1()()),a&2){let e=yM();uT(),Ma$2("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Pv$1("colspan",e.numCols),uT(),Gd$1(" ",e.label," ");}}function Bs(a,i){if(a&1&&(jd$1(0,"td",3),QM(1),Vd$1()),a&2){let e=yM(2);Ma$2("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Pv$1("colspan",e._firstRowOffset),uT(),Gd$1(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ");}}function Us(a,i){if(a&1){let e=fM();jd$1(0,"td",6)(1,"button",7),Yv$1("click",function(n){let r=sh$1(e).$implicit,o=yM(2);return ah$1(o._cellClicked(r,n))})("focus",function(n){let r=sh$1(e).$implicit,o=yM(2);return ah$1(o._emitActiveDateChange(r,n))}),jd$1(2,"span",8),QM(3),Vd$1(),Bv$1(4,"span",9),Vd$1()();}if(a&2){let e=i.$implicit,t=i.$index,n=yM().$index,r=yM();Ma$2("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),Pv$1("data-mat-row",n)("data-mat-col",t),uT(),BM(e.cssClasses),iD("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(n,t))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,n,t))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,n,t))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),zv$1("tabIndex",r._isActiveCell(n,t)?0:-1),Pv$1("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),uT(),iD("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),uT(),Gd$1(" ",e.displayValue," ");}}function Hs(a,i){if(a&1&&(jd$1(0,"tr",1),eM$1(1,Bs,2,6,"td",4),oM(2,Us,5,49,"td",5,Er$1),Vd$1()),a&2){let e=i.$implicit,t=i.$index,n=yM();uT(),tM$1(t===0&&n._firstRowOffset?1:-1),uT(),iM(e);}}function Ys(a,i){if(a&1&&(ta$3(0,"th",2)(1,"span",6),QM(2),Pd$1(),ta$3(3,"span",3),QM(4),Pd$1()()),a&2){let e=i.$implicit;uT(2),yD(e.long),uT(2),yD(e.narrow);}}var js=["*"];function Ws(a,i){}function $s(a,i){if(a&1){let e=fM();ta$3(0,"mat-month-view",4),ID("activeDateChange",function(n){sh$1(e);let r=yM();return XM(r.activeDate,n)||(r.activeDate=n),ah$1(n)}),Zv$1("_userSelection",function(n){sh$1(e);let r=yM();return ah$1(r._dateSelected(n))})("dragStarted",function(n){sh$1(e);let r=yM();return ah$1(r._dragStarted(n))})("dragEnded",function(n){sh$1(e);let r=yM();return ah$1(r._dragEnded(n))}),Pd$1();}if(a&2){let e=yM();ED("activeDate",e.activeDate),jv$1("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag);}}function qs(a,i){if(a&1){let e=fM();ta$3(0,"mat-year-view",5),ID("activeDateChange",function(n){sh$1(e);let r=yM();return XM(r.activeDate,n)||(r.activeDate=n),ah$1(n)}),Zv$1("monthSelected",function(n){sh$1(e);let r=yM();return ah$1(r._monthSelectedInYearView(n))})("selectedChange",function(n){sh$1(e);let r=yM();return ah$1(r._goToDateInView(n,"month"))}),Pd$1();}if(a&2){let e=yM();ED("activeDate",e.activeDate),jv$1("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass);}}function Gs(a,i){if(a&1){let e=fM();ta$3(0,"mat-multi-year-view",6),ID("activeDateChange",function(n){sh$1(e);let r=yM();return XM(r.activeDate,n)||(r.activeDate=n),ah$1(n)}),Zv$1("yearSelected",function(n){sh$1(e);let r=yM();return ah$1(r._yearSelectedInMultiYearView(n))})("selectedChange",function(n){sh$1(e);let r=yM();return ah$1(r._goToDateInView(n,"year"))}),Pd$1();}if(a&2){let e=yM();ED("activeDate",e.activeDate),jv$1("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass);}}function Qs(a,i){}var Ks=["button"],Xs=[[["","matDatepickerToggleIcon",""]]],Zs=["[matDatepickerToggleIcon]"];function Js(a,i){a&1&&(yh$1(),ta$3(0,"svg",2),Vv$1(1,"path",3),Pd$1());}var it$3=(()=>{class a{changes=new le$d;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";
2011switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,t){return `${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return `${e} to ${t}`}static \u0275fac=function(t){return new(t||a)};static \u0275prov=Wn$9({token:a,factory:a.\u0275fac})}return a})(),el=0,ht$2=class ht{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=el++;cssClasses;constructor(i,e,t,n,r,o=i,p){this.value=i,this.displayValue=e,this.ariaLabel=t,this.enabled=n,this.compareValue=o,this.rawValue=p,this.cssClasses=r instanceof Set?Array.from(r):r;}},tl={passive:false,capture:true},gn$1={passive:true,capture:true},wr={passive:true},at$4=(()=>{class a{_elementRef=g$k(gt$f);_ngZone=g$k(ge$b);_platform=g$k(w$c);_intl=g$k(it$3);_eventCleanups;_skipNextFocus=false;_focusActiveCellAfterViewChecked=false;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=false);}isRange=false;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new Ct$h;previewChange=new Ct$h;activeDateChange=new Ct$h;dragStarted=new Ct$h;dragEnded=new Ct$h;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=false;_injector=g$k(oe$e);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=g$k(Fr$6),t=g$k(S$g);this._startDateLabelId=t.getId("mat-calendar-body-start-"),this._endDateLabelId=t.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=t.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=t.getId("mat-calendar-body-comparison-end-"),g$k(R$9).load(tn$5),this._ngZone.runOutsideAngular(()=>{let n=this._elementRef.nativeElement,r=[e.listen(n,"touchmove",this._touchmoveHandler,tl),e.listen(n,"mouseenter",this._enterHandler,gn$1),e.listen(n,"focus",this._enterHandler,gn$1),e.listen(n,"mouseleave",this._leaveHandler,gn$1),e.listen(n,"blur",this._leaveHandler,gn$1),e.listen(n,"mousedown",this._mousedownHandler,wr),e.listen(n,"touchstart",this._mousedownHandler,wr)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r;});}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t});}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t});}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:n,numCols:r}=this;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?r-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/r}%`);}ngOnDestroy(){this._eventCleanups.forEach(e=>e());}_isActiveCell(e,t){let n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(e=true){Xl$1(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=true),t.focus());});},{injector:this._injector});}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=true;}_isRangeStart(e){return ca(e,this.startValue,this.endValue)}_isRangeEnd(e){return ma(e,this.startValue,this.endValue)}_isInRange(e){return pa(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return ca(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,n){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return false;let r=this.rows[t][n-1];if(!r){let o=this.rows[t-1];r=o&&o[o.length-1];}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,t,n){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return false;let r=this.rows[t][n+1];if(!r){let o=this.rows[t+1];r=o&&o[0];}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return ma(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return pa(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return ca(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ma(e,this.previewStart,this.previewEnd)}_isInPreview(e){return pa(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return `${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return `${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=false;return}if(e.target&&this.isRange){let t=this._getCellFromElement(e.target);t&&this._ngZone.run(()=>this.previewChange.emit({value:t.enabled?t:null,event:e}));}};_touchmoveHandler=e=>{if(!this.isRange)return;let t=Dr(e),n=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=true),da(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:n?.enabled?n:null,event:e}));};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=true),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})));};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=false;let t=e.target&&this._getCellFromElement(e.target);!t||!this._isInRange(t.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:t.rawValue,event:e});});};_mouseupHandler=e=>{if(!this.isRange)return;let t=da(e.target);if(!t){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e});});return}t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let n=this._getCellFromElement(t);this.dragEnded.emit({value:n?.rawValue??null,event:e});});};_touchendHandler=e=>{let t=Dr(e);t&&this._mouseupHandler({target:t});};_getCellFromElement(e){let t=da(e);if(t){let n=t.getAttribute("data-mat-row"),r=t.getAttribute("data-mat-col");if(n&&r)return this.rows[parseInt(n)]?.[parseInt(r)]||null}return null}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numC
2011ols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Ar$8],decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,n){t&1&&(eM$1(0,Ns,3,6,"tr",0),oM(1,Hs,4,1,"tr",1,Ls,true),jd$1(3,"span",2),QM(4),Vd$1(),jd$1(5,"span",2),QM(6),Vd$1(),jd$1(7,"span",2),QM(8),Vd$1(),jd$1(9,"span",2),QM(10),Vd$1()),t&2&&(tM$1(n._firstRowOffset<n.labelMinRequiredCells?0:-1),uT(),iM(n.rows),uT(2),zv$1("id",n._startDateLabelId),uT(),Gd$1(" ",n.startDateAccessibleName,` 2012`),uT(),zv$1("id",n._endDateLabelId),uT(),Gd$1(" ",n.endDateAccessibleName,` 2013`),uT(),zv$1("id",n._comparisonStartDateLabelId),uT(),vD(" ",n.comparisonDateAccessibleName," ",n.startDateAccessibleName,` 2014`),uT(),zv$1("id",n._comparisonEndDateLabelId),uT(),vD(" ",n.comparisonDateAccessibleName," ",n.endDateAccessibleName,` 2015`));},styles:[`.mat-calendar-body { 2016 min-width: 224px; 2017} 2018 2019.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 2020 border-color: var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary)); 2021} 2022 2023.mat-calendar-body-label { 2024 height: 0; 2025 line-height: 0; 2026 text-align: start; 2027 padding-left: 4.7142857143%; 2028 padding-right: 4.7142857143%; 2029 font-size: var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size)); 2030 font-weight: var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight)); 2031 color: var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface)); 2032} 2033 2034.mat-calendar-body-hidden-label { 2035 display: none; 2036} 2037 2038.mat-calendar-body-cell-container { 2039 position: relative; 2040 height: 0; 2041 line-height: 0; 2042} 2043 2044.mat-calendar-body-cell { 2045 position: absolute; 2046 top: 0; 2047 left: 0; 2048 width: 100%; 2049 height: 100%; 2050 background: none; 2051 text-align: center; 2052 outline: none; 2053 margin: 0; 2054 font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); 2055 font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size)); 2056 -webkit-user-select: none; 2057 user-select: none; 2058 cursor: pointer; 2059 outline: none; 2060 border: none; 2061 -webkit-tap-highlight-color: transparent; 2062} 2063.mat-calendar-body-cell::-moz-focus-inner { 2064 border: 0; 2065} 2066 2067.mat-calendar-body-cell::before, 2068.mat-calendar-body-cell::after, 2069.mat-calendar-body-cell-preview { 2070 content: ""; 2071 position: absolute; 2072 top: 5%; 2073 left: 0; 2074 z-index: 0; 2075 box-sizing: border-box; 2076 display: block; 2077 height: 90%; 2078 width: 100%; 2079} 2080 2081.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before, 2082.mat-calendar-body-range-start::after, 2083.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before, 2084.mat-calendar-body-comparison-start::after, 2085.mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 2086 left: 5%; 2087 width: 95%; 2088 border-top-left-radius: 999px; 2089 border-bottom-left-radius: 999px; 2090} 2091[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before, 2092[dir=rtl] .mat-calendar-body-range-start::after, 2093[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before, 2094[dir=rtl] .mat-calendar-body-comparison-start::after, 2095[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 2096 left: 0; 2097 border-radius: 0; 2098 border-top-right-radius: 999px; 2099 border-bottom-right-radius: 999px; 2100} 2101
2102.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before, 2103.mat-calendar-body-range-end::after, 2104.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before, 2105.mat-calendar-body-comparison-end::after, 2106.mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 2107 width: 95%; 2108 border-top-right-radius: 999px; 2109 border-bottom-right-radius: 999px; 2110} 2111[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before, 2112[dir=rtl] .mat-calendar-body-range-end::after, 2113[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before, 2114[dir=rtl] .mat-calendar-body-comparison-end::after, 2115[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 2116 left: 5%; 2117 border-radius: 0; 2118 border-top-left-radius: 999px; 2119 border-bottom-left-radius: 999px; 2120} 2121 2122[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after, 2123[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after { 2124 width: 95%; 2125 border-top-right-radius: 999px; 2126 border-bottom-right-radius: 999px; 2127} 2128 2129.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after, [dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after, 2130.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after, 2131[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after { 2132 width: 90%; 2133} 2134 2135.mat-calendar-body-in-preview { 2136 color: var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary)); 2137} 2138.mat-calendar-body-in-preview .mat-calendar-body-cell-preview { 2139 border-top: dashed 1px; 2140 border-bottom: dashed 1px; 2141} 2142 2143.mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 2144 border-left: dashed 1px; 2145} 2146[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview { 2147 border-left: 0; 2148 border-right: dashed 1px; 2149} 2150 2151.mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 2152 border-right: dashed 1px; 2153} 2154[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview { 2155 border-right: 0; 2156 border-left: dashed 1px; 2157} 2158 2159.mat-calendar-body-disabled { 2160 cursor: default; 2161} 2162.mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 2163 color: var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 2164} 2165.mat-calendar-body-disabled > .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 2166 border-color: var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 2167} 2168@media (forced-colors: active) { 2169 .mat-calendar-body-disabled { 2170 opacity: 0.5; 2171 } 2172} 2173 2174.mat-calendar-body-cell-content { 2175 top: 5%; 2176 left: 5%; 2177 z-index: 1; 2178 display: flex; 2179 align-items: center; 2180 justify-content: center; 2181 box-sizing: border-box; 2182 width: 90%; 2183 height: 90%; 2184 line-height: 1; 2185 border-width: 1px; 2186 border-style: solid; 2187 border-radius: 999px; 2188 color: var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface)); 2189 border-color: var(--mat-datepicker-calendar-date-outline-color, transparent); 2190} 2191.mat-calendar-body-cell-content.mat-focus-indicator { 2192 position: absolute; 2193} 2194.mat-calendar-body-cell-content::before { 2195 border-radius: 50%; 2196} 2197@media (forced-colors: active) { 2198 .mat-calendar-body-cell-content { 2199 border: none; 2200 } 2201} 2202 2203.cdk-keyboard-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), .cdk-program-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 2204 background-color: var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); 2205} 2206 2207@media (hover: hover) { 2208 .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { 2209 background-color: var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); 2210 } 2211} 2212.mat-calendar-body-selected { 2213 background-color: var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary)); 2214 color: var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary)); 2215} 2216.mat-calendar-body-disabled > .mat-calendar-body-selected { 2217 background-color: var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); 2218} 2219.mat-calendar-body-selected.mat-calendar-body-today { 2220 box-shadow: inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary)); 2221} 2222 2223.mat-calendar-body-in-range::before { 2224 background: var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)); 2225} 2226 2227.mat-calendar-body-comparison-identical, 2228.mat-calendar-body-in-comparison-range::before { 2229 background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)); 2230} 2231 2232.mat-calendar-body-comparison-identical, 2233.mat-calendar-body-in-comparison-range::before { 2234 background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)); 2235} 2236 2237.mat-calendar-body-comparison-bridge-start::before, 2238[dir=rtl] .mat-calendar-body-comparison-bridge-end::before { 2239 background: linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%); 2240} 2241 2242.mat-calendar-body-comparison-bridge-end::before, 2243[dir=rtl] .mat-calendar-body-comparison-bridge-start::before { 2244 background: linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%); 2245} 2246 2247.mat-calendar-body-in-range > .mat-calendar-body-comparison-identical, 2248.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after { 2249 background: var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container)); 2250} 2251 2252.mat-calendar-body-comparison-identical.mat-calendar-body-selected, 2253.mat-calendar-body-in-comparison-range > .mat-calendar-body-selected { 2254 background: var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary)); 2255} 2256 2257@media (forced-colors: active) { 2258 .mat-datepicker-popup:not(:empty), 2259 .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected { 2260 outline: solid 1px; 2261 } 2262 .mat-calendar-body-today { 2263 outline: dotted 1px; 2264 } 2265 .mat-calendar-body-cell::before, 2266 .mat-calendar-body-cell::after, 2267 .mat-calendar-body-selected { 2268 background: none; 2269 } 2270 .mat-calendar-body-in-range::before, 2271 .mat-calendar-body-comparison-bridge-start::before, 2272 .mat-calendar-body-comparison-bridge-end::before { 2273 border-top: solid 1px; 2274 border-bottom: solid 1px; 2275 } 2276 .mat-calendar-body-range-start::before { 2277 border-left: solid 1px; 2278 } 2279 [dir=rtl] .mat-calendar-body-range-start::before { 2280 border-left: 0; 2281 border-right: solid 1px; 2282 } 2283 .mat-calendar-body-range-end::before { 2284 border-right: solid 1px; 2285 } 2286 [dir=rtl] .mat-calendar-body-range-end::before { 2287 border-right: 0; 2288 border-left: solid 1px; 2289 } 2290 .mat-calendar-body-in-comparison-range::before { 2291 border-top: dashed 1px; 2292 border-bottom: dashed 1px; 2293 } 2294 .mat-calendar-body-comparison-start::before { 2295 border-left: dashed 1px; 2296 } 2297 [dir=rtl] .mat-calendar-body-comparison-start::before { 2298 border-left: 0; 2299 border-right: dashed 1px; 2300 }
2301 .mat-calendar-body-comparison-end::before { 2302 border-right: dashed 1px; 2303 } 2304 [dir=rtl] .mat-calendar-body-comparison-end::before { 2305 border-right: 0; 2306 border-left: dashed 1px; 2307 } 2308} 2309`],encapsulation:2})}return a})();function la(a){return a?.nodeName==="TD"}function da(a){let i;return la(a)?i=a:la(a.parentNode)?i=a.parentNode:la(a.parentNode?.parentNode)&&(i=a.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function ca(a,i,e){return e!==null&&i!==e&&a<e&&a===i}function ma(a,i,e){return i!==null&&i!==e&&a>=i&&a===e}function pa(a,i,e,t){return t&&i!==null&&e!==null&&i!==e&&a>=i&&a<=e}function Dr(a){let i=a.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var pe$2=class pe{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e;}},ft$3=(()=>{class a{selection;_adapter;_selectionChanged=new le$d;selectionChanged=this._selectionChanged;constructor(e,t){this.selection=e,this._adapter=t,this.selection=e;}updateSelection(e,t){let n=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:n});}ngOnDestroy(){this._selectionChanged.complete();}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(t){pS();};static \u0275prov=L$l({token:a,factory:a.\u0275fac})}return a})(),nl$1=(()=>{class a extends ft$3{constructor(e){super(null,e);}add(e){super.updateSelection(e,this);}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new a(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(t){return new(t||a)(G$k(Y$5))};static \u0275prov=L$l({token:a,factory:a.\u0275fac})}return a})();var Tr$1={provide:ft$3,useFactory:()=>g$k(ft$3,{optional:true,skipSelf:true})||new nl$1(g$k(Y$5))};var Rr=new b$g("MAT_DATE_RANGE_SELECTION_STRATEGY");var ua=7,al=0,Mr$1=(()=>{class a{_changeDetectorRef=g$k(Va$2);_dateFormats=g$k(Oe$2,{optional:true});_dateAdapter=g$k(Y$5,{optional:true});_dir=g$k(z$g,{optional:true});_rangeStrategy=g$k(Rr,{optional:true});_rerenderSubscription=Q$f.EMPTY;_selectionKeyPressed=false;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init();}_activeDate;get selected(){return this._selected}set selected(e){e instanceof pe$2?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected);}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new Ct$h;_userSelection=new Ct$h;dragStarted=new Ct$h;dragEnded=new Ct$h;activeDateChange=new Ct$h;_matCalendarBody;_monthLabel=On$7("");_weeks=On$7([]);_firstWeekOffset=On$7(0);_rangeStart=On$7(null);_rangeEnd=On$7(null);_comparisonRangeStart=On$7(null);_comparisonRangeEnd=On$7(null);_previewStart=On$7(null);_previewEnd=On$7(null);_isRange=On$7(false);_todayDate=On$7(null);_weekdays=On$7([]);constructor(){g$k(R$9).load(M$c),this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qf$1(null)).subscribe(()=>this._init());}ngOnChanges(e){let t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview();}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_dateSelected(e){let t=e.value,n=this._getDateFromDayOfMonth(t),r,o;this._selected instanceof pe$2?(r=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):r=o=this._getDateInCurrentMonth(this._selected),(r!==t||o!==t)&&this.selectedChange.emit(n),this._userSelection.emit({value:n,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck();}_updateActiveDate(e){let t=e.value,n=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t),this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this._activeDate);}_handleCalendarBodyKeydown(e){let t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=true,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!K$k(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=false);}
2309_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((ua+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%ua),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck();}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e);}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_previewChanged({event:e,value:t}){if(this._rangeStrategy){let n=t?t.rawValue:null,r=this._rangeStrategy.createPreview(n,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&n){let o=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,n,e);o&&(this._previewStart.set(this._getCellCompareValue(o.start)),this._previewEnd.set(this._getCellCompareValue(o.end)));}}}_dragEnded(e){if(this.activeDrag)if(e.value){let t=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:t??null,event:e.event});}else this.dragEnded.emit({value:null,event:e.event});}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((o,p)=>({long:o,narrow:t[p],id:al++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)));}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames(),n=[[]];for(let r=0,o=this._firstWeekOffset();r<e;r++,o++){o==ua&&(n.push([]),o=0);let p=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),r+1),x=this._shouldEnableDate(p),I=this._dateAdapter.format(p,this._dateFormats.display.dateA11yLabel),$=this.dateClass?this.dateClass(p,"month"):void 0;n[n.length-1].push(new ht$2(r+1,t[r],I,x,$,this._getCellCompareValue(p),p));}this._weeks.set(n);}_shouldEnableDate(e){return !!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return !!(e&&t&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){let t=this._dateAdapter.getYear(e),n=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(t,n,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof pe$2?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(true)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(false)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd));}_canSelect(e){return !this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null);}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["mat-month-view"]],viewQuery:function(t,n){if(t&1&&Jv$1(at$4,5),t&2){let r;CM(r=wM())&&(n._matCalendarBody=r.first);}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ar$8],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(t,n){t&1&&(ta$3(0,"table",0)(1,"thead",1)(2,"tr"),oM(3,Ys,5,2,"th",2,Er$1),Pd$1(),ta$3(5,"tr",3),Vv$1(6,"th",4),Pd$1()(),ta$3(7,"tbody",5),Zv$1("selectedValueChange",function(o){return n._dateSelected(o)})("activeDateChange",function(o){return n._updateActiveDate(o)})("previewChange",function(o){return n._previewChanged(o)})("dragStarted",function(o){return n.dragStarted.emit(o)})("dragEnded",function(o){return n._dragEnded(o)})("keyup",function(o){return n._handleCalendarBodyKeyup(o)})("keydown",function(o){return n._handleCalendarBodyKeydown(o)}),Pd$1()()),t&2&&(uT(3),iM(n._weekdays()),uT(4),jv$1("label",n._monthLabel())("rows",n._weeks())("todayValue",n._todayDate(
2309))("startValue",n._rangeStart())("endValue",n._rangeEnd())("comparisonStart",n._comparisonRangeStart())("comparisonEnd",n._comparisonRangeEnd())("previewStart",n._previewStart())("previewEnd",n._previewEnd())("isRange",n._isRange())("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1)("startDateAccessibleName",n.startDateAccessibleName)("endDateAccessibleName",n.endDateAccessibleName));},dependencies:[at$4],encapsulation:2})}return a})(),ie$3=24,ha=4,Sr$1=(()=>{class a{_changeDetectorRef=g$k(Va$2);_dateAdapter=g$k(Y$5,{optional:true});_dir=g$k(z$g,{optional:true});_rerenderSubscription=Q$f.EMPTY;_selectionKeyPressed=false;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Fr(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init();}_activeDate;get selected(){return this._selected}set selected(e){e instanceof pe$2?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e);}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;selectedChange=new Ct$h;yearSelected=new Ct$h;activeDateChange=new Ct$h;_matCalendarBody;_years=On$7([]);_todayYear=On$7(0);_selectedYear=On$7(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qf$1(null)).subscribe(()=>this._init());}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let t=this._dateAdapter.getYear(this._activeDate)-pt$3(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),n=[];for(let r=0,o=[];r<ie$3;r++)o.push(t+r),o.length==ha&&(n.push(o.map(p=>this._createCellForYear(p))),o=[]);this._years.set(n),this._changeDetectorRef.markForCheck();}_yearSelected(e){let t=e.value,n=this._dateAdapter.createDate(t,0,1),r=this._getDateFromYear(t);this.yearSelected.emit(n),this.selectedChange.emit(r);}_updateActiveDate(e){let t=e.value,n=this._activeDate;this.activeDate=this._getDateFromYear(t),this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate);}_handleCalendarBodyKeydown(e){let t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ha);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ha);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-pt$3(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie$3-pt$3(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-ie$3*10:-ie$3);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?ie$3*10:ie$3);break;case 13:case 32:this._selectionKeyPressed=true;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=false);}_getActiveCell(){return pt$3(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell();}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_getDateFromYear(e){let t=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),n))}
2309_createCellForYear(e){let t=this._dateAdapter.createDate(e,0,1),n=this._dateAdapter.getYearName(t),r=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new ht$2(e,n,n,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return false;if(!this.dateFilter)return true;let t=this._dateAdapter.createDate(e,0,1);for(let n=t;this._dateAdapter.getYear(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return true;return false}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear.set(null),e instanceof pe$2){let t=e.start||e.end;t&&this._selectedYear.set(this._dateAdapter.getYear(t));}else e&&this._selectedYear.set(this._dateAdapter.getYear(e));}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["mat-multi-year-view"]],viewQuery:function(t,n){if(t&1&&Jv$1(at$4,5),t&2){let r;CM(r=wM())&&(n._matCalendarBody=r.first);}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(t,n){t&1&&(ta$3(0,"table",0)(1,"thead",1)(2,"tr"),Vv$1(3,"th",2),Pd$1()(),ta$3(4,"tbody",3),Zv$1("selectedValueChange",function(o){return n._yearSelected(o)})("activeDateChange",function(o){return n._updateActiveDate(o)})("keyup",function(o){return n._handleCalendarBodyKeyup(o)})("keydown",function(o){return n._handleCalendarBodyKeydown(o)}),Pd$1()()),t&2&&(uT(4),jv$1("rows",n._years())("todayValue",n._todayYear())("startValue",n._selectedYear())("endValue",n._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",n._getActiveCell()));},dependencies:[at$4],encapsulation:2})}return a})();function Fr(a,i,e,t,n){let r=a.getYear(i),o=a.getYear(e),p=Vr$1(a,t,n);return Math.floor((r-p)/ie$3)===Math.floor((o-p)/ie$3)}function pt$3(a,i,e,t){let n=a.getYear(i);return il(n-Vr$1(a,e,t),ie$3)}function Vr$1(a,i,e){let t=0;return e?t=a.getYear(e)-ie$3+1:i&&(t=a.getYear(i)),t}function il(a,i){return (a%i+i)%i}var Ir=(()=>{class a{_changeDetectorRef=g$k(Va$2);_dateFormats=g$k(Oe$2,{optional:true});_dateAdapter=g$k(Y$5,{optional:true});_dir=g$k(z$g,{optional:true});_rerenderSubscription=Q$f.EMPTY;_selectionKeyPressed=false;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init();}_activeDate;get selected(){return this._selected}set selected(e){e instanceof pe$2?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e);}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;selectedChange=new Ct$h;monthSelected=new Ct$h;activeDateChange=new Ct$h;_matCalendarBody;_months=On$7([]);_yearLabel=On$7("");_todayMonth=On$7(null);_selectedMonth=On$7(null);constructor(){this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Qf$1(null)).subscribe(()=>this._init());}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_monthSelected(e){let t=e.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(n);let r=this._getDateFromMonth(t);this.selectedChange.emit(r);}_updateActiveDate(e){let t=e.value,n=this._activeDate;this.activeDate=this._getDateFromMonth(t),this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate);}_handleCalendarBodyKeydown(e){let t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=true;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=false);}
2309_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(n=>this._createCellForMonth(n,e[n])))),this._changeDetectorRef.markForCheck();}_focusActiveCell(){this._matCalendarBody._focusActiveCell();}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),n=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n))}_createCellForMonth(e,t){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(n,"year"):void 0;return new ht$2(e,t.toLocaleUpperCase(),r,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){let t=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return false;if(!this.dateFilter)return true;let n=this._dateAdapter.createDate(t,e,1);for(let r=n;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return true;return false}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){let n=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&t>r}return false}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){let n=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&t<r}return false}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof pe$2?this._selectedMonth.set(this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end)):this._selectedMonth.set(this._getMonthInCurrentYear(e));}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["mat-year-view"]],viewQuery:function(t,n){if(t&1&&Jv$1(at$4,5),t&2){let r;CM(r=wM())&&(n._matCalendarBody=r.first);}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(t,n){t&1&&(ta$3(0,"table",0)(1,"thead",1)(2,"tr"),Vv$1(3,"th",2),Pd$1()(),ta$3(4,"tbody",3),Zv$1("selectedValueChange",function(o){return n._monthSelected(o)})("activeDateChange",function(o){return n._updateActiveDate(o)})("keyup",function(o){return n._handleCalendarBodyKeyup(o)})("keydown",function(o){return n._handleCalendarBodyKeydown(o)}),Pd$1()()),t&2&&(uT(4),jv$1("label",n._yearLabel())("rows",n._months())("todayValue",n._todayMonth())("startValue",n._selectedMonth())("endValue",n._selectedMonth())("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",n._dateAdapter.getMonth(n.activeDate)));},dependencies:[at$4],encapsulation:2})}return a})(),Or=(()=>{class a{_intl=g$k(it$3);calendar=g$k(fa);_dateAdapter=g$k(Y$5,{optional:true});_dateFormats=g$k(Oe$2,{optional:true});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){g$k(R$9).load(M$c);let e=g$k(Va$2);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck();});}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month";}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-ie$3));}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:ie$3));}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):true}nextEnabled(){return !this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,t=this._intl,n=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=n.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=n.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=t.switchToMultiYearViewLabel,this._prevButtonLabel=t.prevMonthLabel,this._nextButtonLabel=t.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=n.getYearName(e.activeDate),this._periodButtonDescription=n.getYearName(e.activeDate),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevYearLabel,this._nextButtonLabel=t.nextYearLabel):(this._periodButtonText=t.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=t.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevMultiYearLabel,this._nextButtonLabel=t.nextMultiYearLabel);}_isSameView(e,t){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):Fr(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let t=this._dateAdapter.getYear(this.calendar.activeDate)-pt$3(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),n=t+ie$3-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1));return [r,o]}_periodButtonLabelId=g$k(S$g).getId("mat-calendar-period-label-");static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:js,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-control
2309s"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(t,n){t&1&&(DM(),ta$3(0,"div",0)(1,"div",1)(2,"span",2),QM(3),Pd$1(),ta$3(4,"button",3),Zv$1("click",function(){return n.currentPeriodClicked()}),ta$3(5,"span",4),QM(6),Pd$1(),yh$1(),ta$3(7,"svg",5),Vv$1(8,"polygon",6),Pd$1()(),vh$1(),Vv$1(9,"div",7),EM(10),ta$3(11,"button",8),Zv$1("click",function(){return n.previousClicked()}),yh$1(),ta$3(12,"svg",9),Vv$1(13,"path",10),Pd$1()(),vh$1(),ta$3(14,"button",11),Zv$1("click",function(){return n.nextClicked()}),yh$1(),ta$3(15,"svg",9),Vv$1(16,"path",12),Pd$1()()()()),t&2&&(uT(2),jv$1("id",n._periodButtonLabelId),uT(),yD(n.periodButtonDescription),uT(),Pv$1("aria-label",n.periodButtonLabel)("aria-describedby",n._periodButtonLabelId),uT(2),yD(n.periodButtonText),uT(),iD("mat-calendar-invert",n.calendar.currentView!=="month"),uT(4),jv$1("disabled",!n.previousEnabled())("matTooltip",n.prevButtonLabel),Pv$1("aria-label",n.prevButtonLabel),uT(3),jv$1("disabled",!n.nextEnabled())("matTooltip",n.nextButtonLabel),Pv$1("aria-label",n.nextButtonLabel));},dependencies:[sa,fn$2,mt$7],encapsulation:2})}return a})(),fa=(()=>{class a{_dateAdapter=g$k(Y$5,{optional:true});_dateFormats=g$k(Oe$2,{optional:true});_changeDetectorRef=g$k(Va$2);_elementRef=g$k(gt$f);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=false;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof pe$2?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new Ct$h;yearSelected=new Ct$h;monthSelected=new Ct$h;viewChanged=new Ct$h(true);_userSelection=new Ct$h;_userDragDrop=new Ct$h;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck();}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=true,this._changeDetectorRef.markForCheck(),t&&(this.stateChanges.next(),this.viewChanged.emit(t));}_currentView;_activeDrag=null;stateChanges=new le$d;constructor(){this._intlChanges=g$k(it$3).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next();});}ngAfterContentInit(){this._calendarHeaderPortal=new At$6(this.headerComponent||Or),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView;}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=false,this.focusActiveCell());}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete();}ngOnChanges(e){let t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,n=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=t||n||e.dateFilter;if(r&&!r.firstChange){let o=this._getCurrentViewComponent();o&&(this._elementRef.nativeElement.contains(I$a())&&(this._moveFocusOnNextTick=true),this._changeDetectorRef.detectChanges(),o._init());}this.stateChanges.next();}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(false);}updateTodaysDate(){this._getCurrentViewComponent()?._init();}_dateSelected(e){let t=e.value;(this.selected instanceof pe$2||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e);}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e);}_monthSelectedInYearView(e){this.monthSelected.emit(e);}_goToDateInView(e,t){this.activeDate=e,this.currentView=t;}_dragStarted(e){this._activeDrag=e;}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null);}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["mat-calendar"]],viewQuery:function(t,n){if(t&1&&Jv$1(Mr$1,5)(Ir,5)(Sr$1,5),t&2){let r;CM(r=wM())&&(n.monthView=r.first),CM(r=wM())&&(n.yearView=r.first),CM(r=wM())&&(n.multiYearView=r.first);}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[cN([Tr$1]),Ar$8],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(t,n){if(t&1&&(gv$1(0,Ws,0,0,"ng-template",0),ta$3(1,"div",1),eM$1(2,$s,1,11,"mat-month-view",2)(3,qs,1,6,"mat-year-view",3)(4,Gs,1,6,"mat-multi-year-view",3),Pd$1()),t&2){let r;jv$1("cdkPortalOutlet",n._calendarHeaderPortal),uT(2),tM$1((r=n.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1);}},dependencies:[wi$2,Fe$a,Mr$1,Ir,Sr$1],styles:[`.mat-calendar { 2310 display: block; 2311 line-height: normal; 2312 font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); 2313 font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size)); 2314} 2315 2316.mat-calendar-header { 2317 padding: 8px 8px 0 8px; 2318} 2319 2320.mat-calendar-content { 2321 padding: 0 8px 8px 8px; 2322 outline: none; 2323} 2324
2325.mat-calendar-controls { 2326 display: flex; 2327 align-items: center; 2328 margin: 5% calc(4.7142857143% - 16px); 2329} 2330 2331.mat-calendar-spacer { 2332 flex: 1 1 auto; 2333} 2334 2335.mat-calendar-period-button { 2336 min-width: 0; 2337 margin: 0 8px; 2338 font-size: var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size)); 2339 font-weight: var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight)); 2340 --mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant)); 2341} 2342 2343.mat-calendar-arrow { 2344 display: inline-block; 2345 width: 10px; 2346 height: 5px; 2347 margin: 0 0 0 5px; 2348 vertical-align: middle; 2349 fill: var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant)); 2350} 2351.mat-calendar-arrow.mat-calendar-invert { 2352 transform: rotate(180deg); 2353} 2354[dir=rtl] .mat-calendar-arrow { 2355 margin: 0 5px 0 0; 2356} 2357@media (forced-colors: active) { 2358 .mat-calendar-arrow { 2359 fill: CanvasText; 2360 } 2361} 2362 2363.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled), 2364.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled) { 2365 color: var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant)); 2366} 2367[dir=rtl] .mat-calendar-previous-button, 2368[dir=rtl] .mat-calendar-next-button { 2369 transform: rotate(180deg); 2370} 2371 2372.mat-calendar-table { 2373 border-spacing: 0; 2374 border-collapse: collapse; 2375 width: 100%; 2376} 2377 2378.mat-calendar-table-header th { 2379 text-align: center; 2380 padding: 0 0 8px 0; 2381 color: var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant)); 2382 font-size: var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size)); 2383 font-weight: var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight)); 2384} 2385 2386.mat-calendar-table-header-divider { 2387 position: relative; 2388 height: 1px; 2389} 2390.mat-calendar-table-header-divider::after { 2391 content: ""; 2392 position: absolute; 2393 top: 0; 2394 left: -8px; 2395 right: -8px; 2396 height: 1px; 2397 background: var(--mat-datepicker-calendar-header-divider-color, transparent); 2398} 2399 2400.mat-calendar-body-cell-content::before { 2401 margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1); 2402} 2403 2404.mat-calendar-body-cell:focus-visible .mat-focus-indicator::before { 2405 content: ""; 2406} 2407`],encapsulation:2})}return a})(),rl=new b$g("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let a=g$k(oe$e);return ()=>Yt$6(a)}}),Pr=(()=>{class a{_elementRef=g$k(gt$f);_animationsDisabled=h$7();_changeDetectorRef=g$k(Va$2);_globalModel=g$k(ft$3);_dateAdapter=g$k(Y$5);_ngZone=g$k(ge$b);_rangeSelectionStrategy=g$k(Rr,{optional:true});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=false;_animationDone=new le$d;_isAnimating=false;_closeButtonText;_closeButtonFocused=false;_actionsPortal=null;_dialogLabelId=null;constructor(){if(g$k(R$9).load(M$c),this._closeButtonText=g$k(it$3).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,t=g$k(Fr$6);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"animationstart",this._handleAnimationEvent),t.listen(e,"animationend",this._handleAnimationEvent),t.listen(e,"animationcancel",this._handleAnimationEvent)]);}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck();}),this._calendar.focusActiveCell();}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete();}_handleUserSelection(e){let t=this._model.selection,n=e.value,r=t instanceof pe$2;if(r&&this._rangeSelectionStrategy){let o=this._rangeSelectionStrategy.selectionFinished(n,t,e.event);this._model.updateSelection(o,this);}else n&&(r||!this._dateAdapter.sameDate(n,t))&&this._model.add(n);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close();}_handleUserDragDrop(e){this._model.updateSelection(e.value,this);}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next();},200));}_handleAnimationEvent=e=>{let t=this._elementRef.nativeElement;e.target!==t||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",t.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next());};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this);}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges();}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["mat-datepicker-content"]],viewQuery:function(t,n){if(t&1&&Jv$1(fa,5),t&2){let r;CM(r=wM())&&(n._calendar=r.first);}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(t,n){t&2&&(BM(n.color?"mat-"+n.color:""),iD("mat-datepicker-content-touch",n.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!n._animationsDisabled));},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(t,n){t&1&&(ta$3(0,"div",0)(1,"mat-calendar",1),Zv$1("yearSelected",function(o){return n.datepicker._selectYear(o)})("monthSelected",function(o){return n.datepicker._selectMonth(o)})("viewChanged",function(o){return n.datepicker._viewChanged(o)})("_userSelection",function(o){return n._handleUserSelection(o)})("_userDragDrop",function(o){return n._handleUserDragDrop(o)}),Pd$1(),gv$1(2,Qs,0,0,"ng-template",2),ta$3(3,"button",3),Zv$1("focus",function(){return n._closeButtonF
2407ocused=true})("blur",function(){return n._closeButtonFocused=false})("click",function(){return n.datepicker.close()}),QM(4),Pd$1()()),t&2&&(iD("mat-datepicker-content-container-with-custom-header",n.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",n._actionsPortal),Pv$1("aria-modal",true)("aria-labelledby",n._dialogLabelId??void 0),uT(),BM(n.datepicker.panelClass),jv$1("id",n.datepicker.id)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("startDateAccessibleName",n.startDateAccessibleName)("endDateAccessibleName",n.endDateAccessibleName),uT(),jv$1("cdkPortalOutlet",n._actionsPortal),uT(),iD("cdk-visually-hidden",!n._closeButtonFocused),jv$1("color",n.color||"primary"),uT(),yD(n._closeButtonText));},dependencies:[Ve$a,fa,wi$2,sa],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { 2408 from { 2409 opacity: 0; 2410 transform: scaleY(0.8); 2411 } 2412 to { 2413 opacity: 1; 2414 transform: none; 2415 } 2416} 2417@keyframes _mat-datepicker-content-dialog-enter { 2418 from { 2419 opacity: 0; 2420 transform: scale(0.8); 2421 } 2422 to { 2423 opacity: 1; 2424 transform: none; 2425 } 2426} 2427@keyframes _mat-datepicker-content-exit { 2428 from { 2429 opacity: 1; 2430 } 2431 to { 2432 opacity: 0; 2433 } 2434} 2435.mat-datepicker-content { 2436 display: block; 2437 background-color: var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high)); 2438 color: var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface)); 2439 box-shadow: var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)); 2440 border-radius: var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large)); 2441} 2442.mat-datepicker-content.mat-datepicker-content-animations-enabled { 2443 animation: _mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1); 2444} 2445.mat-datepicker-content .mat-calendar { 2446 width: 296px; 2447 height: 354px; 2448} 2449.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar { 2450 height: auto; 2451} 2452.mat-datepicker-content .mat-datepicker-close-button { 2453 position: absolute; 2454 top: 100%; 2455 left: 0; 2456 margin-top: 8px; 2457} 2458.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button { 2459 display: none; 2460} 2461 2462.mat-datepicker-content-container { 2463 display: flex; 2464 flex-direction: column; 2465 justify-content: space-between; 2466} 2467 2468.mat-datepicker-content-touch { 2469 display: block; 2470 max-height: 80vh; 2471 box-shadow: var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)); 2472 border-radius: var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large)); 2473 position: relative; 2474 overflow: visible; 2475 min-height: fit-content; 2476} 2477.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled { 2478 animation: _mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1); 2479} 2480.mat-datepicker-content-touch .mat-datepicker-content-container { 2481 min-height: 312px; 2482 max-height: 788px; 2483 min-width: 250px; 2484 max-width: 750px; 2485} 2486.mat-datepicker-content-touch .mat-calendar { 2487 width: 100%; 2488 height: auto; 2489} 2490 2491.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled { 2492 animation: _mat-datepicker-content-exit 100ms linear; 2493} 2494 2495@media all and (orientation: landscape) { 2496 .mat-datepicker-content-touch .mat-datepicker-content-container { 2497 width: 64vh; 2498 height: 80vh; 2499 } 2500} 2501@media all and (orientation: portrait) { 2502 .mat-datepicker-content-touch .mat-datepicker-content-container { 2503 width: 80vw; 2504 height: 100vw; 2505 } 2506 .mat-datepicker-content-touch .mat-datepicker-content-container-with-actions { 2507 height: 115vw; 2508 } 2509} 2510`],encapsulation:2})}return a})(),Ar$1=(()=>{class a{_injector=g$k(oe$e);
2510_viewContainerRef=g$k(Rt$f);_dateAdapter=g$k(Y$5,{optional:true});_dir=g$k(z$g,{optional:true});_model=g$k(ft$3);_animationsDisabled=h$7();_scrollStrategy=g$k(rl);_inputStateChanges=Q$f.EMPTY;_document=g$k(Te$g);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e;}_color;touchUi=false;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0));}_disabled;xPosition="start";yPosition="below";restoreFocus=true;yearSelected=new Ct$h;monthSelected=new Ct$h;viewChanged=new Ct$h(true);dateClass;openedStream=new Ct$h;closedStream=new Ct$h;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=l$8(e);}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close();}_opened=false;id=g$k(S$g).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new le$d;_changeDetectorRef=g$k(Va$2);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck();});}ngOnChanges(e){let t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;n instanceof St$9&&(this._setConnectedPositions(n),this.opened&&this._overlayRef.updatePosition());}this.stateChanges.next(void 0);}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete();}select(e){this._model.add(e);}_selectYear(e){this.yearSelected.emit(e);}_selectMonth(e){this.monthSelected.emit(e);}_viewChanged(e){this.viewChanged.emit(e);}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,true);}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,true));}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=I$a(),this._openOverlay(),this._opened=true,this.openedStream.emit());}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",t=()=>{this._opened&&(this._opened=false,this.closedStream.emit());};if(this._componentRef){let{instance:n,location:r}=this._componentRef;n._animationDone.pipe(hn$9(1)).subscribe(()=>{let o=this._document.activeElement;e&&(!o||o===this._document.activeElement||r.nativeElement.contains(o))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay();}),n._startExitAnimation();}e?setTimeout(t):t();}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection();}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,false);}_openOverlay(){this._destroyOverlay();let e=this.touchUi,t=new At$6(Pr,this._viewContainerRef),n=this._overlayRef=Zt$7(this._injector,new J$g({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:true,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?ze$b(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(n).subscribe(r=>{r&&r.preventDefault(),this.close();}),n.keydownEvents().subscribe(r=>{let o=r.keyCode;(o===38||o===40||o===37||o===39||o===33||o===34)&&r.preventDefault();}),this._componentRef=n.attach(t),this._forwardContentValues(this._componentRef.instance),e||Xl$1(()=>{n.updatePosition();},{injector:this._injector});}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null);}_getDialogStrategy(){return Ze$d(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Xt$7(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(false).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",n=t==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",o=r==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:o,overlayX:t,overlayY:r},{originX:t,originY:r,overlayX:t,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:o}])}_getCloseStream(e){let t=["ctrlKey","shiftKey","metaKey"];return xI(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Pt$b(n=>n.keyCode===27&&!K$k(n)||this.datepickerInput&&K$k(n,"altKey")&&n.keyCode===38&&t.every(r=>!K$k(n,r)))))}static \u0275fac=function(t){return new(t||a)};
2510static \u0275dir=mt$d({type:a,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",ni$7],disabled:[2,"disabled","disabled",ni$7],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",ni$7],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",ni$7]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ar$8]})}return a})(),fh$1=(()=>{class a extends Ar$1{static \u0275fac=(()=>{let e;return function(n){return (e||(e=Wg$1(a)))(n||a)}})();static \u0275cmp=qS({type:a,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[cN([Tr$1,{provide:Ar$1,useExisting:a}]),pv$1],decls:0,vars:0,template:function(t,n){},encapsulation:2})}return a})(),et$2=class et{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value;}},ol=(()=>{class a{_elementRef=g$k(gt$f);_dateAdapter=g$k(Y$5,{optional:true});_dateFormats=g$k(Oe$2,{optional:true});_isInitialized=false;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,true);}_model;get disabled(){return !!this._disabled||this._parentDisabled()}set disabled(e){let t=e,n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&n.blur&&n.blur();}_disabled;dateChange=new Ct$h;dateInput=new Ct$h;stateChanges=new le$d;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Q$f.EMPTY;_localeSubscription=Q$f.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return !t||this._matchesFilter(t)?null:{matDatepickerFilter:true}};_minValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this._getMinDate();return !n||!t||this._dateAdapter.compareDate(n,t)<=0?null:{matDatepickerMin:{min:n,actual:t}}};_maxValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this._getMaxDate();return !n||!t||this._dateAdapter.compareDate(n,t)>=0?null:{matDatepickerMax:{max:n,actual:t}}};_getValidators(){return [this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){let n=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(n),this._cvaOnChange(n),this._onTouched(),this._formatValue(n),this.dateInput.emit(new et$2(this,this._elementRef.nativeElement)),this.dateChange.emit(new et$2(this,this._elementRef.nativeElement));}});}_lastValueValid=false;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,true);});}ngAfterViewInit(){this._isInitialized=true;}ngOnChanges(e){sl(e,this._dateAdapter)&&this.stateChanges.next(void 0);}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete();}registerOnValidatorChange(e){this._validatorOnChange=e;}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value);}registerOnChange(e){this._cvaOnChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}_onKeydown(e){let t=["ctrlKey","shiftKey","metaKey"];K$k(e,"altKey")&&e.keyCode===40&&t.every(r=>!K$k(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault());}_onInput(e){let t=e.target.value,n=this._lastValueValid,r=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(t&&!this.value&&this._cvaOnChange(r),n!==this._lastValueValid&&this._val
2510idatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new et$2(this,this._elementRef.nativeElement)));}_onChange(){this.dateChange.emit(new et$2(this,this._elementRef.nativeElement));}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched();}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):"";}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e;}_isValidValue(e){return !e||this._dateAdapter.isValid(e)}_parentDisabled(){return false}_assignValueProgrammatically(e,t){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),t&&this._formatValue(e);}_matchesFilter(e){let t=this._getDateFilter();return !t||t(e)}static \u0275fac=function(t){return new(t||a)};static \u0275dir=mt$d({type:a,inputs:{value:"value",disabled:[2,"disabled","disabled",ni$7]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ar$8]})}return a})();function sl(a,i){let e=Object.keys(a);for(let t of e){let{previousValue:n,currentValue:r}=a[t];if(i.isDateInstance(n)&&i.isDateInstance(r)){if(!i.sameDate(n,r))return true}else return true}return false}var ll={provide:E$f,useExisting:Qi$3(()=>zr$1),multi:true},dl$1={provide:_$a,useExisting:Qi$3(()=>zr$1),multi:true},zr$1=(()=>{class a extends ol{_formField=g$k(Cr$1,{optional:true});_closedSubscription=Q$f.EMPTY;_openedSubscription=Q$f.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null);}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id);}),this._registerModel(e.registerInput(this)));}_datepicker;_ariaOwns=On$7(null);get min(){return this._min}set min(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange());}_min=null;get max(){return this._max}set max(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange());}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange();}_dateFilter;_validator=null;constructor(){super(),this._validator=Ce$8.compose(super._getValidators());}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe();}_openPopup(){this._datepicker&&this._datepicker.open();}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this);}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(t){return new(t||a)};static \u0275dir=mt$d({type:a,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,n){t&1&&Zv$1("input",function(o){return n._onInput(o)})("change",function(){return n._onChange()})("blur",function(){return n._onBlur()})("keydown",function(o){return n._onKeydown(o)}),t&2&&(zv$1("disabled",n.disabled),Pv$1("aria-haspopup",n._datepicker?"dialog":null)("aria-owns",n._ariaOwns())("min",n.min?n._dateAdapter.toIso8601(n.min):null)("max",n.max?n._dateAdapter.toIso8601(n.max):null)("data-mat-calendar",n._datepicker?n._datepicker.id:null));},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[cN([ll,dl$1,{provide:yr$1,useExisting:a}]),pv$1]})}return a})(),cl=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275dir=mt$d({type:a,selectors:[["","matDatepickerToggleIcon",""]]})}return a})(),ml=(()=>{class a{_intl=g$k(it$3);_changeDetectorRef=g$k(Va$2);_stateChanges=Q$f.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e;}_disabled;disableRipple=false;_customIcon;_button;constructor(){let e=g$k(new JD("tabindex"),{optional:true}),t=Number(e);this.tabIndex=t||t===0?t:null;}ngOnChanges(e){e.datepicker&&this._watchStateChanges();}ngOnDestroy(){this._stateChanges.unsubscribe();}ngAfterContentInit(){this._watchStateChanges();}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation());}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:yI(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:yI(),n=this.datepicker?xI(this.datepicker.openedStream,this.datepicker.closedStream):yI();this._stateChanges.unsubscribe(),this._stateChanges=xI(this._intl.changes,e,t,n).subscribe(()=>this._changeDetectorRef.markForCheck());}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=qS({type:a,selectors:[["mat-datepicker-toggle"]],c
2510ontentQueries:function(t,n,r){if(t&1&&Kv$1(r,cl,5),t&2){let o;CM(o=wM())&&(n._customIcon=o.first);}},viewQuery:function(t,n){if(t&1&&Jv$1(Ks,5),t&2){let r;CM(r=wM())&&(n._button=r.first);}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,n){t&1&&Zv$1("click",function(o){return n._open(o)}),t&2&&(Pv$1("tabindex",null)("data-mat-calendar",n.datepicker?n.datepicker.id:null),iD("mat-datepicker-toggle-active",n.datepicker&&n.datepicker.opened)("mat-accent",n.datepicker&&n.datepicker.color==="accent")("mat-warn",n.datepicker&&n.datepicker.color==="warn"));},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",ni$7],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ar$8],ngContentSelectors:Zs,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,n){t&1&&(DM(Xs),ta$3(0,"button",1,0),eM$1(2,Js,2,0,":svg:svg",2),EM(3),Pd$1()),t&2&&(jv$1("tabIndex",n.disabled?-1:n.tabIndex)("disabled",n.disabled)("disableRipple",n.disableRipple),Pv$1("aria-haspopup",n.datepicker?"dialog":null)("aria-label",n.ariaLabel||n._intl.openCalendarLabel)("aria-expanded",n.datepicker?n.datepicker.opened:null),uT(2),tM$1(n._customIcon?-1:2));},dependencies:[fn$2],styles:[`.mat-datepicker-toggle { 2511 pointer-events: auto; 2512 color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant)); 2513} 2514.mat-datepicker-toggle button { 2515 color: inherit; 2516} 2517 2518.mat-datepicker-toggle-active { 2519 color: var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary)); 2520} 2521 2522@media (forced-colors: active) { 2523 .mat-datepicker-toggle-default-icon { 2524 color: CanvasText; 2525 } 2526} 2527`],encapsulation:2})}return a})();var gh$1=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=Sa$2({type:a});static \u0275inj=io$5({providers:[it$3],imports:[xr$1,pi$4,We$9,Oe$8,Pr,ml,Or,K$j,Tt$b]})}return a})();var bh$1=(()=>{class a{transform(e,t){if(!e)return "";let n=t?parseInt(t,10):20;return e.length>n?e.substring(0,n)+"...":e}static{this.\u0275fac=function(t){return new(t||a)};}static{this.\u0275pipe=Yn$8({name:"truncate",type:a,pure:true});}}return a})();var n$6=(function(e){return e.De="de",e.Eng="en",e})(n$6||{});var p$4="mspot-language",n$5=Object.values(n$6);function r$6(e){return n$5.find(o=>o===e)}var c$6=["*"],s$4=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-error-plain"]],hostAttrs:["data-cy","control-error-plain",1,"block","mt-1","text-sm","text-mspot-error-700"],ngContentSelectors:c$6,decls:1,vars:0,template:function(o,a){o&1&&(DM(),EM(0));},encapsulation:2});}}return t})();function wt$4(i,a){if(i&1&&(ta$3(0,"div")(1,"mspot-form-field-std",8),Vv$1(2,"input",9),iS(),Pd$1()()),i&2){let t=yM().$implicit,e=yM();uT(),jv$1("label",t("auth.currentPassword")),uT(),jv$1("formControl",e.password),aS();}}function bt$2(i,a){if(i&1&&(ta$3(0,"div",4),QM(1),Pd$1()),i&2){let t=yM().$implicit;uT(),Gd$1(" ",t("auth.OR")," ");}}function yt$2(i,a){if(i&1){let t=fM();ta$3(0,"div",5)(1,"button",6),Zv$1("click",function(){sh$1(t);let s=yM(2);return ah$1(s.reAuthenticateGoogle())}),yh$1(),ta$3(2,"svg",10)(3,"g",11),Vv$1(4,"path",12)(5,"path",13)(6,"path",14)(7,"path",15)(8,"path",16),Pd$1()(),QM(9),Pd$1(),vh$1(),ta$3(10,"mspot-error-plain"),QM(11),EN(12,"errorObj"),Pd$1()();}if(i&2){let t=yM().$implicit,e=yM();uT(9),Gd$1(" ",t("auth.logInWithGoogle")," "),uT(2),yD(CN(12,2,e.googleLogin.errors));}}function kt$2(i,a){if(i&1){let t=fM();ta$3(0,"div",5)(1,"button",6),Zv$1("click",function(){sh$1(t);let s=yM(2);return ah$1(s.reAuthenticateApple())}),Vv$1(2,"img",17),QM(3),Pd$1(),ta$3(4,"mspot-error-plain"),QM(5),EN(6,"errorObj"),Pd$1()();}if(i&2){let t=yM().$implicit,e=yM();uT(3),Gd$1(" ",t("auth.logInWithApple")," "),uT(2),yD(CN(6,2,e.appleLogin.errors));}}function St$2(i,a){if(i&1){let t=fM();Hd$1(0),Vv$1(1,"mspot-dialog-header",1),ta$3(2,"div",2)(3,"div",3),QM(4),Pd$1(),eM$1(5,wt$4,3,2,"div"),eM$1(6,bt$2,2,1,"div",4),eM$1(7,yt$2,13,4,"div",5),eM$1(8,kt$2,7,4,"div",5),Pd$1(),ta$3(9,"mspot-dialog-footer")(10,"button",6),Zv$1("click",function(){sh$1(t);let s=yM();return ah$1(s.dialogRef.close(false))}),QM(11),Pd$1(),ta$3(12,"button",7),Zv$1("click",function(){sh$1(t);let s=yM();return ah$1(s.reAuthenticateEmail())}),QM(13),Pd$1()(),$d$1();}if(i&2){let t=a.$implicit,e=yM();uT(),jv$1("titleKey","profile.profileDialog.profileDialogTitle"),uT(3),Gd$1(" ",t("profile.profileDialog.proceedNote")," "),uT(),tM$1(e.hasPassword?5:-1),uT(),tM$1(e.hasPassword&&(e.hasGoogleLogin||e.hasAppleLogin)?6:-1),uT(),tM$1(e.hasGoogleLogin?7:-1),uT(),tM$1(e.hasAppleLogin?8:-1),uT(3),Gd$1(" ",t("common.abort")," "),uT(),jv$1("disabled",e.password.invalid),uT(),Gd$1(" ",t("common.confirm")," ");}}var Ct$4=(()=>{class i{constructor(){this._afAuth=g$k(nt$c),this._cdr=g$k(Va$2),this.dialogRef=g$k(O$c),this.password=new Qn$7("",[Ce$8.required,Ce$8.minLength(6)]),this.googleLogin=new Qn$7(""),this.appleLogin=new Qn$7(""),this.dialogRef.addPanelClass("dialog--no-padding");}async ngOnInit(){if(this.user=this._afAuth.currentUser,!!this.user){for(let t of this.user.providerData)switch(t?.providerId){case "password":this.hasPassword=true;break;case "google.com":this.hasGoogleLogin=true;break;case "apple.com":this.hasAppleLogin=true;break}this._cdr.markForCheck();}}async reAuthenticateEmail(){if(!this.user?.email)return;let t=Rn$8.credential(this.user.email,this.password.value);try{await xo$5(this.user,t),this.dialogRef.close(!0);}catch(e){if(this._closeWithMfaResolver(e))return;this.password.setErrors({wrongPassword:true}),this._cdr.markForCheck();}}async reAuthenticateGoogle(){if(this.user)try{await Ba$2(this.user,new ko$5,Ii$3),this.dialogRef.close(!0);}catch(t){if(this._closeWithMfaResolver(t))return;switch(t?.code){case "auth/popup-closed-by-user":break;case "auth/user-mismatch":this.googleLogin.setErrors({wrongUser:true}),this._cdr.markForCheck();break;default:this.googleLogin.setErrors({unknownError:true}),this._cdr.markForCheck();break}}}async reAuthenticateApple(){if(this.user)try{await Ba$2(this.user,new Zt$d("apple.com"),Ii$3),this.dialogRef.close(!0);}catch(t){if(this._closeWithMfaResolver(t))return;switch(t?.code){case "auth/popup-closed-by-user":break;case "auth/user-mismatch":this.appleLogin.setErrors({wrongUser:true}),this._cdr.markForCheck();break;default:this.appleLogin.setErrors({unknownError:true}),this._cdr.markForCheck();break}}}_closeWithMfaResolver(t){return t?.code!=="auth/multi-factor-auth-required"?false:(this.dialogRef.close({resolver:ua$4(this._afAuth,t)}),true)}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-reauthenticate-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"titleKey"],[1,"p-6"],[1,"subtitle-new","mb-4"],[1,"seperator__container"],[1,"mt-4","flex","flex-col","justify-center"],["mspotButton","","variant","weak","color","primary","type","button",3,"click"],["mspotButton","","variant","strong","color","primary","type","button",3,"click","disabled"],[3,"label"],["mspotInput","","type","password","autocomplete","off",3,"formControl"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 118 120",1,"mr-2","size-4"],["fill","none","fill-rule","evenodd"],["d","M117.6 61.364c0-4.255-.382-8.346-1.09-12.273H60V72.3h32.29c-1.39 7.5-5.617 13.855-11.972 18.11v15.054H99.71c11.346-10.446 17.891-25.828 17.891-44.1z","fill","#4285F4"],["d","M60 120c16.2 0 29.782-5.373 39.71-14.536L80.317 90.409c-5.373 3.6-12.245 5.727-20.318 5.727-15.627 0-28.855-10.554-33.573-24.736H6.382v15.545C16.255 106.555 36.545 120 60 120z","fill","#34A853"],["d","M26.427 71.4c-1.2-3.6-1.882-7.445-1.882-11.4s.682-7.8 1.882-11.4V33.055H6.382A59.976 59.976 0 000 60a59.976 59.976 0 006.382 26.945L26.427 71.4z","fill","#FBBC0
25275"],["d","M60 23.864c8.81 0 16.718 3.027 22.936 8.972l17.21-17.209C89.754 5.945 76.172 0 60 0 36.545 0 16.255 13.445 6.382 33.055L26.427 48.6C31.145 34.418 44.373 23.864 60 23.864z","fill","#EA4335"],["d","M0 0h120v120H0V0z"],["src","assets/svgs/apple_logo.svg","alt","Apple Login",1,"mr-2","size-4"]],template:function(e,s){e&1&&gv$1(0,St$2,14,9,"ng-container",0);},dependencies:[yt$a,ae$2,oi$5,Qe$b,Xn$7,Vn$7,v$3,s$4,O$b,Ut$7,g$a,ir$7],styles:['.seperator__container[_ngcontent-%COMP%]{display:flex;width:100%;margin-top:10px;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;text-align:center;color:#cbd6e2}.seperator__container[_ngcontent-%COMP%]:before, .seperator__container[_ngcontent-%COMP%]:after{content:"";border-top:2px solid rgb(203,214,226);margin:0 30px 0 0;flex:1 0 20px}.seperator__container[_ngcontent-%COMP%]:after{margin:0 0 0 30px}.login-btn[_ngcontent-%COMP%]{width:100%;height:45px;margin-top:20px;margin-bottom:20px}']});}}return i})();var Yt$1=(()=>{class i{constructor(){this._auth=g$k(nt$c),this._noti=g$k(wi$1),this._dialogService=g$k(Ss$2),this._http=g$k(Ce$a),this._logger=g$k($E),this._passwordUpdateState=On$7("idle"),this.passwordUpdateState=this._passwordUpdateState.asReadonly();}async updateName(t){let e=this._auth.currentUser;e&&await this._update(()=>ea$4(e,{displayName:t}));}async updatePassword(t){this._passwordUpdateState.set("loading"),this._reAuthenticate().pipe(gc$1(()=>(this._passwordUpdateState.set("done"),yI(false)))).subscribe(async e=>{let s=this._auth.currentUser;if(!s){this._passwordUpdateState.set("done");return}e?(await this._update(()=>na$3(s,t)),await this._syncAuthProviders(),this._passwordUpdateState.set("done")):(this._noti.infoIntl("profile.passwordNotChanged"),this._passwordUpdateState.set("done"));});}reAuthenticate(){return this._reAuthenticate()}async revokeAllSessions(){try{return (await qE$1(this._http.generic({url:"/admin-users/revoke-sessions",method:b$e.POST})))?.partial&&this._noti.warningIntl("profile.sessionsRevokedPartially"),!0}catch(t){return this._logger.warn("Failed to revoke sessions",t),this._noti.stdErrorIntl(),false}}async _update(t){try{await t(),this._noti.stdSuccessIntl();}catch(e){this._logger.error("Profile update failed",e);}}_reAuthenticate(){return this._dialogService.open(Ct$4,{dialogConfig:{disableClose:true,panelClass:H$a.SIZE_420}})}async _syncAuthProviders(){try{await qE$1(this._http.generic({url:"/admin-users/sync-providers",method:b$e.POST}));}catch(t){this._logger.warn("Failed to sync auth providers",t);}}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac});}}return i})();async function ee$1(i,a,t){await oa$4(i),s$6(),a.sessionStorage.clear(),a.localStorage.clear(),U$5.isNativePlatform()?setTimeout(()=>{a.location.href="/auth/generic-client/school-select";},0):setTimeout(()=>{a.location.href="/auth/login?force=true";},0);} 2528var o$3=T$4("App",{web:()=>import('./chunk-CACMTyN6.js').then(e=>new e.AppWeb)});var a$5=(()=>{class e{constructor(){this._http=g$k(Ce$a);}requestOtp(t){let o={email:t};return this._http.postUnAuth("/school-users/generic-client/request-otp",o)}verifyOtp(t,o){let h={email:t,code:o};return this._http.postUnAuth("/school-users/generic-client/verify-otp",h)}exchangeSsoToken(t){return this._http.postUnAuth("/school-users/auth/exchange-token",t)}silentExchange(t){return this._http.post("/school-users/auth/silent-exchange",t)}logout(t){return this._http.postUnAuth("/school-users/auth/logout",t)}getMySchools(t){return this._http.get("/school-users/auth/my-schools",{idTokenOverride:t})}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var d$4=class d extends Error{constructor(t,e){super(e),this.kind=t,this.name="AuthManagerError";}};var $$5="firebase",B$6="12.9.0";ae$e($$5,B$6,"app");var W$4=new b$g("Firebase app");function at$3(c){return fo$3([{provide:W$4,useFactory:c}])}var V$2="school-",m$4="auth_manager_school_sessions",O$3="auth_manager_current_school",z$6="SCHOOL_NOT_LISTED_FOR_MOBILE_APPS",J$4=class c{constructor(){this._http=g$k(rr$7),this._backendUrl=g$k(Bt$a),this._genericClientAuth=g$k(w$4),this._logger=g$k($E),this._noti=g$k(wi$1),this._defaultAuth=g$k(nt$c),this._firebaseConfig=null,this._apps=new Map,this._auths=new Map,this._tenantIds=new Map,this._currentSchoolId=null;}static{this._REFRESH_THRESHOLD_MS=300*1e3;}static{this._SESSION_EXPIRED_CODES=new Set(["auth/user-token-expired","auth/user-disabled","auth/user-not-found","auth/invalid-user-token","auth/requires-recent-login"]);}async initialize(t){if(!U$5.isNativePlatform())return [];this._logger.info("[DIAG][AuthManager] initialize() start"),this._firebaseConfig=t;let e=await r$7.get({key:m$4}),r=[];if(e.value)try{r=JSON.parse(e.value);}catch{r=[];}let i=(await Promise.all(r.map(async o=>{let g=this._getOrCreateApp(o.schoolId),_=this._getOrCreateAuth(o.schoolId,o.tenantId,g),n=await this._waitForAuthReady(_);return this._logger.info("[DIAG][AuthManager] restored session",{schoolId:o.schoolId,tenantId:o.tenantId,hasUser:!!n,uid:n?.uid}),n?{schoolId:o.schoolId}:null}))).filter(o=>o!==null),a=await r$7.get({key:O$3});return a.value&&this._apps.has(a.value)?this._currentSchoolId=a.value:i.length>
25280&&(this._currentSchoolId=i[0].schoolId,await this._persistCurrentSchool(this._currentSchoolId)),this._logger.info("[DIAG][AuthManager] initialize picked current school",{currentSchoolId:this._currentSchoolId,activeCount:i.length,storedSessionCount:r.length}),this._mintAndSyncDefaultApp(),this._logger.info("[DIAG][AuthManager] initialize() done"),i}async authenticateWithSchool(t,e,r){if(!U$5.isNativePlatform())throw new Error("AuthManager is for native platform only");let s;try{s=await qE$1(this._http.post(`${this._backendUrl}/school-users/auth/exchange-token`,{ssoToken:r,schoolId:t}));}catch(o){throw this._isUnauthorized(o)?(this._logger.warn("[AuthManager] SSO token rejected by backend (401)",r$d({schoolId:t},this._extractErrorDetails(o))),new d$4("sso-token-invalid","SSO token rejected by backend")):this._isMobileAppsListingDisabled(o)?(this._logger.warn("[AuthManager] School opted out of mobile apps listing",r$d({schoolId:t},this._extractErrorDetails(o))),new d$4("school-not-listed-for-mobile-apps","School is not available in mobile apps")):(this._logger.error("[AuthManager] authenticateWithSchool failed",r$d({path:"sso-exchange",schoolId:t},this._extractErrorDetails(o))),new d$4("network-error","Failed to exchange SSO token"))}if(!s.customToken)throw new d$4("school-inactive","School is currently inactive");let i=this._getOrCreateApp(t),a=this._getOrCreateAuth(t,e,i);await Vo$5(a,s.customToken),await this._addSessionToStorage(t,e),this._currentSchoolId=t,await this._persistCurrentSchool(t),await this._syncDefaultApp(e,s.customToken);}async switchSchool(t,e){if(!U$5.isNativePlatform())return {success:false,needsAuthentication:true};this._logger.info("[DIAG][AuthManager] switchSchool() called",{targetSchoolId:t,tenantId:e,previousSchoolId:this._currentSchoolId});let r=this._apps.get(t),s=r?this._auths.get(t):void 0,i=s?await this._waitForAuthReady(s):null;if(!!s&&i!==null)return this._logger.info("[DIAG][AuthManager] switchSchool \u2014 fast-switch path",{path:"fast-switch",schoolId:t}),this._currentSchoolId=t,this._tenantIds.set(t,e),await this._persistCurrentSchool(t),await this._mintAndSyncDefaultApp(),{success:true};this._logger.info("[DIAG][AuthManager] switchSchool \u2014 fast-switch unavailable",{path:"fast-switch",schoolId:t,hasApp:!!r,hasAuth:!!s,currentUserPresent:i!==null});let o=await this._genericClientAuth.getOtpLoginToken();if(o)try{let n=await qE$1(this._http.post(`${this._backendUrl}/school-users/auth/exchange-token`,{ssoToken:o,schoolId:t}));if(!n.customToken)return this._logger.warn("[DIAG][AuthManager] switchSchool \u2014 SSO exchange returned no customToken (school inactive)",{path:"sso-exchange",schoolId:t}),{success:!1,schoolInactive:!0};let S=this._getOrCreateApp(t),y=this._getOrCreateAuth(t,e,S);return await Vo$5(y,n.customToken),await this._addSessionToStorage(t,e),this._currentSchoolId=t,await this._persistCurrentSchool(t),await this._syncDefaultApp(e,n.customToken),this._logger.info("[DIAG][AuthManager] switchSchool \u2014 SSO exchange success",{path:"sso-exchange",schoolId:t}),{success:!0}}catch(n){if(this._isMobileAppsListingDisabled(n))return this._logger.warn("[AuthManager] switchSchool blocked: school opted out of mobile apps listing",{path:"sso-exchange",schoolId:t}),{success:false,schoolNotListedForMobileApps:true};this._logger.error("[AuthManager] switchSchool failed",r$d({path:"sso-exchange",schoolId:t},this._extractErrorDetails(n)));}else this._logger.info("[DIAG][AuthManager] switchSchool \u2014 no OTP SSO token available, trying silent-exchange",{path:"sso-exchange",schoolId:t});let _=(this._currentSchoolId?this._auths.get(this._currentSchoolId):void 0)?.currentUser??null;if(_&&this._currentSchoolId)try{let n=await this.getCurrentIdToken(),S=await qE$1(this._http.post(`${this._backendUrl}/school-users/auth/silent-exchange`,{targetSchoolId:t,currentSchoolId:this._currentSchoolId},{headers:{authorization:n??""}}));if(!S.customToken)return this._logger.warn("[DIAG][AuthManager] switchSchool \u2014 silent exchange returned no customToken (school inactive)",{path:"silent-exchange",schoolId:t}),{success:!1,schoolInactive:!0};let y=this._getOrCreateApp(t),E=this._getOrCreateAuth(t,e,y);return await Vo$5(E,S.customToken),await this._addSessionToStorage(t,e),this._currentSchoolId=t,await this._persist
2528CurrentSchool(t),await this._syncDefaultApp(e,S.customToken),this._logger.info("[DIAG][AuthManager] switchSchool \u2014 silent exchange success",{path:"silent-exchange",schoolId:t}),{success:!0}}catch(n){if(this._isMobileAppsListingDisabled(n))return this._logger.warn("[AuthManager] switchSchool blocked: school opted out of mobile apps listing",{path:"silent-exchange",schoolId:t}),{success:false,schoolNotListedForMobileApps:true};this._logger.error("[AuthManager] switchSchool failed",r$d({path:"silent-exchange",schoolId:t},this._extractErrorDetails(n)));}else this._logger.info("[DIAG][AuthManager] switchSchool \u2014 silent-exchange unavailable",{path:"silent-exchange",schoolId:t,hasCurrentSchool:!!this._currentSchoolId,hasCurrentUser:!!_});return this._logger.warn("[AuthManager] switchSchool exhausted all paths",{path:"exhausted",schoolId:t,hasCurrentSchool:!!this._currentSchoolId}),{success:false,needsOtp:true}}async getCurrentIdToken(t=false){return this._currentSchoolId?this.getIdTokenForSchool(this._currentSchoolId,t):null}async getIdTokenForSchool(t,e=false){let s=this._auths.get(t)?.currentUser??null;return s?s.getIdToken(e):null}async refreshTokensForActiveSchools(t=5e3){if(!U$5.isNativePlatform())return {refreshed:[],skipped:[],failed:[],expired:[]};let e=[],r=[],s=[],i=[];return await Promise.all(Array.from(this._auths.entries()).map(async([a,o])=>{let g=o.currentUser;if(g)try{let _=await g.getIdTokenResult(!1);if(new Date(_.expirationTime).getTime()-Date.now()>c._REFRESH_THRESHOLD_MS){r.push(a);return}await Promise.race([g.getIdToken(!0),new Promise((y,E)=>setTimeout(()=>E(new Error("refresh-timeout")),t))]),e.push(a);}catch(_){let n=_?.code;if(n&&c._SESSION_EXPIRED_CODES.has(n)){i.push(a),await this._removeSchoolSessionLocally(a),this._logger.info("[AuthManager] Removed expired session",{schoolId:a,code:n});return}this._logger.warn("[AuthManager] Token refresh failed on resume",{schoolId:a,code:n,message:_?.message}),s.push(a);}})),this._logger.info("[AuthManager] Token refresh batch complete",{refreshed:e,skipped:r,failed:s,expired:i}),{refreshed:e,skipped:r,failed:s,expired:i}}async _removeSchoolSessionLocally(t){if(this._auths.delete(t),this._apps.delete(t),this._tenantIds.delete(t),this._currentSchoolId===t){this._currentSchoolId=null;try{await this._clearCurrentSchool();}catch(e){this._logger.error("[AuthManager] Failed to clear current-school storage",r$d({schoolId:t},this._extractErrorDetails(e)));}try{await oa$4(this._defaultAuth);}catch(e){this._logger.error("[AuthManager] Failed to sign out default app for expired current school",r$d({schoolId:t},this._extractErrorDetails(e)));}}try{await this._removeSessionFromStorage(t);}catch(e){this._logger.error("[AuthManager] Failed to clear session storage",r$d({schoolId:t},this._extractErrorDetails(e)));}}getCurrentSchoolId(){return this._currentSchoolId}getCurrentAuth(){if(!this._currentSchoolId)return null;let t=this._auths.get(this._currentSchoolId);return t||null}hasSession(t){let e=this._auths.get(t);return e?.currentUser!==null&&e?.currentUser!==void 0}getActiveSchoolIds(){let t=[];for(let[e,r]of this._auths.entries())r.currentUser&&t.push(e);return t}async logoutFromCurrentSchool(){if(!this._currentSchoolId)return;let t=this._auths.get(this._currentSchoolId);if(t){await this._removeSessionFromStorage(this._currentSchoolId),await oa$4(t),this._auths.delete(this._currentSchoolId),this._apps.delete(this._currentSchoolId),this._tenantIds.delete(this._currentSchoolId),this._currentSchoolId=null,await this._clearCurrentSchool();try{await oa$4(this._defaultAuth);}catch(e){this._logger.error("Failed to sign out default Firebase app",e);}}}async logoutFromAllSchools(){let t=Array.from(this._auths.entries());await Promise.all(t.map(async([e,r])=>{try{await oa$4(r);}catch(s){this._logger.error("[AuthManager] Failed to sign out school during full logout",r$d({schoolId:e},this._extractErrorDetails(s)));}})),this._auths.clear(),this._apps.clear(),this._tenantIds.clear(),this._currentSchoolId=null;try{await r$7.remove({key:m$4});}catch(e){this._logger.error("Failed to clear school sessions storage",e);}await this._clearCurrentSchool();try{await oa$4(this._defaultAuth);}catch(e){this._logger.error("Failed to sign out default Firebase app during full logout",e);}}async _removeSessionFromStorage(t){let e=await r$7.get({key:m$4}),r=[];if(e.value)try{r=JSON.parse(e.value);}catch{r=[];}let s=r.filter(i=>i.schoolId!==t);await r$7.set({key:m$4,value:JSON.stringify(s)});}_getOrCreateApp(t){let e=this._apps.get(t);if(!e){let r=`${V$2}${t}`;try{e=or$8(r);}catch{if(!this._firebaseConfig)throw new Error("AuthManager not initialized with Firebase config");e=As$4(this._firebaseConfig,r);}this._apps.set(t,e);}return e}_getOrCreateAuth(t,e,r){let s=this._auths.get(t);if(!s){try{s=Gr$7(r,{persistence:di$6});}catch{s=Dc$2(r);}s.tenantId=e,this._auths.set(t,s);}return this._tenantIds.set(t,e),s}async _waitForAuthReady(t){return await Promise.race([t.authStateReady(),new Promise(e=>setTimeout(e,5e3))]),t.currentUser}async _addSessionToStorage(t,e){let r=await r$7.get({key:m$4}),s=[];if(r.value)try{s=JSON.parse(r.value);}catch{s=[];}let i=s.find(g=>g.schoolId===t),a={schoolId:t,tenantId:e,createdAt:i?.createdAt??new Date().toISOString()},o=s.filter(g=>g.schoolId!==t);o.push(a),await r$7.set({key:m$4,value:JSON.stringify(o)});}
2528async _persistCurrentSchool(t){await r$7.set({key:O$3,value:t});}async _clearCurrentSchool(){await r$7.remove({key:O$3}),this._currentSchoolId=null;}async _syncDefaultApp(t,e){try{if(this._logger.info("[DIAG][AuthManager] _syncDefaultApp start",{tenantId:t,previousTenantId:this._defaultAuth.tenantId,previousUid:this._defaultAuth.currentUser?.uid}),await this._defaultAuth.authStateReady(),this._defaultAuth.currentUser)try{await oa$4(this._defaultAuth);}catch(r){this._logger.error("[AuthManager] Failed to sign out stale user on default Firebase app",this._extractErrorDetails(r));}this._defaultAuth.tenantId=t,await Vo$5(this._defaultAuth,e),this._logger.info("[DIAG][AuthManager] _syncDefaultApp success",{tenantId:t,uid:this._defaultAuth.currentUser?.uid});}catch(r){this._logger.error("[AuthManager] Failed to sync default Firebase app with current school",r$d({tenantId:t},this._extractErrorDetails(r)));}}async _mintAndSyncDefaultApp(){let t=this._currentSchoolId;if(!t){this._logger.info("[DIAG][AuthManager] _mintAndSyncDefaultApp: no current school, skipping");return}let e=this._tenantIds.get(t),s=this._auths.get(t)?.currentUser;if(this._logger.info("[DIAG][AuthManager] _mintAndSyncDefaultApp start",{schoolId:t,tenantId:e,hasUser:!!s,uid:s?.uid}),!e||!s){this._logger.warn("[DIAG][AuthManager] Skipping default-app sync: missing tenant or user",{schoolId:t,hasTenantId:!!e,hasUser:!!s});return}if(await this._defaultAuth.authStateReady(),this._defaultAuth.tenantId===e&&this._defaultAuth.currentUser?.uid===s.uid){this._logger.info("[DIAG][AuthManager] default app already in sync, skipping silent-exchange",{schoolId:t,tenantId:e,uid:s.uid});return}try{let i=await s.getIdToken(),a=await qE$1(this._http.post(`${this._backendUrl}/school-users/auth/silent-exchange`,{targetSchoolId:t,currentSchoolId:t},{headers:{authorization:i}}));a.customToken?(this._logger.info("[DIAG][AuthManager] silent-exchange success, syncing default app",{schoolId:t}),await this._syncDefaultApp(e,a.customToken)):this._logger.warn("[DIAG][AuthManager] silent-exchange returned no customToken; default app not synced",{schoolId:t});}catch(i){let a=this._extractErrorDetails(i);this._logger.error("[AuthManager] Failed to mint custom token for default app sync",r$d({schoolId:t},a));}}_extractErrorDetails(t){return t instanceof H$j?{status:t.status,statusText:t.statusText,url:t.url,message:typeof t.error=="object"&&t.error!==null?t.error.message:t.message}:t instanceof Error?{name:t.name,message:t.message}:{raw:String(t)}}_isUnauthorized(t){return t instanceof H$j&&t.status===401}_isMobileAppsListingDisabled(t){if(!(t instanceof H$j)||t.status!==400)return false;let e=t.error,r=typeof e=="object"&&e!==null?e.message:null;return r===z$6||Array.isArray(r)&&r.includes(z$6)}static{this.\u0275fac=function(e){return new(e||c)};}static{this.\u0275prov=L$l({token:c,factory:c.\u0275fac,providedIn:"root"});}};var M$4="memberspot_school_id",x$2="memberspot_school_url",K$3="memberspot_school_last_selected",Y$4="memberspot_school_last_used_map",q$3=(()=>{class c{constructor(){this._logger=g$k($E);}async getStoredSchoolUrl(){if(typeof window>"u")return null;if(U$5.isNativePlatform())try{return (await r$7.get({key:x$2})).value}catch(e){this._logger.error("Error getting stored school URL from Capacitor Preferences",e);}return null}async getStoredSchoolId(){if(typeof window>"u")return null;if(U$5.isNativePlatform())try{return (await r$7.get({key:M$4})).value}catch(e){this._logger.error("Error getting stored school ID from Capacitor Preferences",e);}return null}async setLastSelectedSchool(e){if(!(typeof window>"u")&&U$5.isNativePlatform())try{await r$7.set({key:K$3,value:e});let r=await this._readLastUsedMap();r[e]=Date.now(),await r$7.set({key:Y$4,value:JSON.stringify(r)});}catch(r){this._logger.error("Error setting last selected school id from Capacitor Preferences",r);}}async getSchoolLastUsedMap(){return typeof window>"u"||!U$5.isNativePlatform()?{}:this._readLastUsedMap()}async _readLastUsedMap(){try{let e=await r$7.get({key:Y$4});if(!e.value)return {};let r=JSON.parse(e.value);if(r&&typeof r=="object"&&!Array.isArray(r)){let s={};for(let[i,a]of Object.entries(r))typeof a=="number"&&Number.isFinite(a)&&(s[i]=a);return s}return {}}catch(e){return this._logger.error("Error reading school last-used map from Capacitor Preferences",e),{}}}async getLastSelectedSchool(){if(typeof window>"u")return null;if(U$5.isNativePlatform())try{return (await r$7.get({key:K$3})).value}catch(e){this._logger.error("Error getting last selected school id from Capacitor Preferences",e);}return null}async setStoredSchoolId(e,r){if(typeof window>"u")return;let s=e.trim(),i=r?.trim()||"";if(U$5.isNativePlatform())try{await r$7.set({key:M$4,value:s}),i&&await r$7.set({key:x$2,value:i});return}catch(a){this._logger.error("Error storing school ID in Capacitor Preferences",a),i&&this._logger.error("Error storing school URL in Capacitor Preferences",a);return}}async clearStoredSchoolId(){if(!(typeof window>"u")&&U$5.isNativePlatform())try{await r$7.remove({key:M$4}),await r$7.remove({key:x$2});return}catch(e){this._logger.error("Error clearing school ID and URL in Capacitor Preferences",e);return}}static{this.\u0275fac=function(r){return new(r||c)};}static{this.\u0275prov=L$l({token:c,factory:c.\u0275fac,providedIn:"root"});}}return c})();var a$4={resetPassword:()=>"/emails/reset-password",RESET_PASSWORD:(e,s)=>({url:`/emails/reset-password${s?"/"+s:""}`,data:e,method:b$e.POST_UNAUTH})},t$5={GET_BY_URL:e=>
2528({url:"/member-area/by-url",method:b$e.GET_UNAUTH,params:{url:e}})},o$2=Object.freeze({Emails:a$4,MemberArea:t$5});var R$4=5e3,M$3=Symbol("transport_error"),k$4=(()=>{class e{constructor(){this._store=g$k(d$b),this._http=g$k(Ce$a),this._router=g$k(H$8),this._afAuth=g$k(nt$c),this._syncInitialized=false,this._lastSyncedUrl=null,this._hadSuccessfulSync=false;}retrySync(){return this._lastSyncedUrl?this.syncMaByUrl(this._lastSyncedUrl,true):yI(null)}syncMaByUrl(t,r){return this._syncInitialized&&this._lastSyncedUrl===t&&!r?yI(null):(this._syncInitialized&&this._lastSyncedUrl!==t&&this._store.reset(),this._syncInitialized=true,this._lastSyncedUrl=t,this._http.generic(o$2.MemberArea.GET_BY_URL(t)).pipe(rp$2(R$4),gc$1(()=>yI(M$3)),Ip$1(a=>{if(this._lastSyncedUrl!==t)return;if(a===M$3){this._store.setLoading(false);return}let o=a;if(!o){this._store.reset(),this._hadSuccessfulSync&&this._router.navigate(["moved"]),this._store.setLoading(false);return}o.tenantId&&!this._afAuth.tenantId&&(this._afAuth.tenantId=o.tenantId),o.schoolId&&(window.schoolId=o.schoolId);let h=this._store.getValue().id;this._store.update(r$d({},o)),h&&o.id!==h&&!r&&window.location.reload(),this._store.setLoading(false),this._hadSuccessfulSync=true;})))}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var W$3=(()=>{class e{constructor(){this._authManager=g$k(J$4),this._clientAuthService=g$k(w$4),this._logger=g$k($E),this._schoolUserOtpService=g$k(a$5);}async getStoredSchoolsWithFreshMetadata(){let t=await this._clientAuthService.getStoredSchools();return this.refreshStoredSchoolsIfAuthenticated(t)}async refreshStoredSchoolsIfAuthenticated(t){try{let r=await this._authManager.getCurrentIdToken(!0);if(!r)return t;let c=await qE$1(this._schoolUserOtpService.getMySchools(r));return await this._clientAuthService.storeSchoolList(c.schools),c.schools}catch(r){return this._logger.warn("[GenericClientSchoolListService] Failed to refresh stored schools",{error:r}),t}}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var I$2=(()=>{class r{constructor(){this._authManager=g$k(J$4),this._clientSchoolListService=g$k(W$3),this._mobileStorage=g$k(q$3),this._maService=g$k(k$4),this._logger=g$k($E),this._switchCompleted=new le$d,this.switchCompleted$=this._switchCompleted.asObservable();}async switchToSchool(t){let i=(await this._clientSchoolListService.getStoredSchoolsWithFreshMetadata())?.find(s=>s.schoolId===t);if(!i)return this._logger.warn("[SchoolSwitchService] Cannot switch \u2014 school not in stored schools",{schoolId:t}),false;let a=false;try{return (await this._authManager.switchSchool(i.schoolId,i.tenantId??"")).success?(a=!0,await this._mobileStorage.setLastSelectedSchool(i.schoolId),await this._mobileStorage.setStoredSchoolId(i.schoolId,i.url),await qE$1(this._maService.syncMaByUrl(i.url,!0)),this._switchCompleted.next(t),!0):!1}catch(s){return this._logger.error("[SchoolSwitchService] switchToSchool threw",s),a&&this._switchCompleted.next(t),a}}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275prov=L$l({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();var O$2=(()=>{class r{constructor(){this._router=g$k(H$8),this._mobileStorage=g$k(q$3),this._logger=g$k($E),this._window=g$k(A$7),this._clientHost=g$k(xE),this._schoolSwitch=g$k(I$2),this._destroyRef=g$k(de$b),this._capacitorHost=null,this._capacitorHostInit=null,this._capacitorHostGeneration=0,this._ensureCapacitorHostResolved(),this._schoolSwitch.switchCompleted$.pipe(qG(this._destroyRef)).subscribe(()=>this._invalidateCapacitorHost());}initialize(){return this._ensureCapacitorHostResolved()}getActiveSchoolHost(){return U$5.isNativePlatform()?this._capacitorHost:this._window.location.hostname.toLowerCase()}isInternalUrl(t){return c$a(t,{activeHostname:this.getActiveSchoolHost(),currentPathname:this._currentPathname()})!==null}getSchoolBaseUrl(){return U$5.isNativePlatform()&&this._capacitorHost?`https://${this._capacitorHost}`:this._window.location.origin}navigateInternal(t){let e=c$a(t,{activeHostname:this.getActiveSchoolHost(),currentPathname:this._currentPathname()});return e?(this._router.navigateByUrl(e).catch(i=>{this._logger.error("[InternalLinkRouter] navigateByUrl rejected",{path:e,message:this._errorMessage(i)});}),true):false}async _ensureCapacitorHostResolved(){if(!U$5.isNativePlatform())return;if(this._capacitorHostInit)return this._capacitorHostInit;let t=this._capacitorHostGeneration;return this._capacitorHostInit=(async()=>{try{let e=await this._mobileStorage.getStoredSchoolUrl();if(t!==this._capacitorHostGeneration)return;this._capacitorHost=this._normalizeStoredSchoolUrl(e);}catch(e){if(this._logger.error("[InternalLinkRouter] Failed to read stored school URL \u2014 will retry on next call",{message:this._errorMessage(e)}),t!==this._capacitorHostGeneration)return;this._capacitorHost=null,this._capacitorHostInit=null;}}
2528)(),this._capacitorHostInit}_invalidateCapacitorHost(){this._capacitorHostGeneration+=1,this._capacitorHostInit=null,this._ensureCapacitorHostResolved();}_currentPathname(){return this._router.url.split("?")[0].split("#")[0]}_normalizeStoredSchoolUrl(t){if(!t)return null;let e=t.trim();if(!e)return null;let i=e.includes(".")||e.includes("://"),a=`${this._clientHost}${this._clientHost.includes("localhost")?"":".de"}`,s=e.includes("://")?e:i?`https://${e}`:`https://${e}.${a}`;try{return new URL(s).hostname.toLowerCase()}catch{return null}}_errorMessage(t){return t instanceof Error?t.message:String(t)}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275prov=L$l({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})(); 2529var a$3=(function(t){return t.CLEAR=" clear",t.LOADING="loading",t.SUCCESS="success",t})(a$3||{});var D$5=["*"],M$2=t=>({"white-spinner":t}),b$2=t=>({color:t});function k$3(t,c){t&1&&EM(0);}function A$3(t,c){if(t&1&&(ta$3(0,"div",5),QM(1),EN(2,"transloco"),Pd$1()),t&2){let e=yM(3);uT(),Gd$1(" ",e.loadingText||CN(2,1,"common.processing")," ");}}function N$1(t,c){if(t&1&&(ta$3(0,"div",0)(1,"div",1),yh$1(),ta$3(2,"svg",2),Vv$1(3,"circle",3)(4,"path",4),Pd$1()(),eM$1(5,A$3,3,3,"div",5),Pd$1()),t&2){let e=yM(2);uT(),jv$1("ngClass",fN(5,M$2,e.whiteSpinner)),uT(),iD("-ml-1",e.showText&&!e.customLoadingIconStyles()),jv$1("ngClass",e.customLoadingIconStyles()||"h-4 w-4"),uT(3),tM$1(e.showText?5:-1);}}function G$3(t,c){if(t&1&&(ta$3(0,"div",0)(1,"div",6),yh$1(),ta$3(2,"svg",7),Vv$1(3,"path",8),Pd$1()(),vh$1(),ta$3(4,"div",9),QM(5),EN(6,"transloco"),Pd$1()()),t&2){let e=yM(2);uT(),jv$1("ngStyle",fN(4,b$2,e.whiteSpinner?"white":null)),uT(4),Gd$1(" ",e.successText||CN(6,2,"common.success")," ");}}function z$5(t,c){if(t&1&&eM$1(0,N$1,6,7,"div",0)(1,G$3,7,6,"div",0),t&2){let e=yM();tM$1(e.success?1:0);}}var J$3=(()=>{class t{constructor(){this.loading=false,this.showText=true,this.whiteSpinner=false,this.success=false,this.customLoadingIconStyles=X8("");}set state(e){switch(e){case a$3.LOADING:this.loading=true;break;case a$3.SUCCESS:this.success=true;break;case a$3.CLEAR:default:this.loading=false,this.success=false;break}}static{this.\u0275fac=function(l){return new(l||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-load-btn"]],inputs:{state:"state",loading:"loading",showText:"showText",loadingText:"loadingText",whiteSpinner:"whiteSpinner",success:"success",successText:"successText",customLoadingIconStyles:[1,"customLoadingIconStyles"]},ngContentSelectors:D$5,decls:2,vars:1,consts:[[1,"flex","items-center"],[3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"animate-spin",3,"ngClass"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],[1,"ml-2","text-sm"],[3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor",1,"-ml-1","mr-2","h-4","w-4"],["fill-rule","evenodd","d","M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule","evenodd"],[1,"text-sm"]],template:function(l,_){l&1&&(DM(),eM$1(0,k$3,1,0)(1,z$5,2,1)),l&2&&tM$1(!_.loading&&!_.success?0:1);},dependencies:[mx$1,Ex$1,Tt$a],encapsulation:2});}}return t})(); 2530var s$3=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275mod=Sa$2({type:o});}static{this.\u0275inj=io$5({imports:[kx$1]});}}return o})();var Zi=x$o((Pt,kt)=>{(function(i,r){typeof Pt=="object"&&typeof kt<"u"?kt.exports=r():typeof define=="function"&&define.amd?define(r):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=r();})(Pt,function(){"use strict";var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,e=/\d/,t=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,f={},k=function(d){return (d=+d)+(d>68?1900:2e3)},u=function(d){return function(g){this[d]=+g;}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=(function(g){if(!g||g==="Z")return 0;var v=g.match(/([+-]|\d\d)/g),C=60*v[1]+(+v[2]||0);return C===0?0:v[0]==="+"?-C:C})(d);}],F=function(d){var g=f[d];return g&&(g.indexOf?g:g.s.concat(g.f))},z=function(d,g){var v,C=f.meridiem;if(C){for(var U=1;U<=24;U+=1)if(d.indexOf(C(U,0,g))>-1){v=U>12;break}}else v=d===(g?"pm":"PM");return v},P={A:[a,function(d){this.afternoon=z(d,!1);}],a:[a,function(d){this.afternoon=z(d,!0);}],Q:[e,function(d){this.month=3*(d-1)+1;}],S:[e,function(d){this.milliseconds=100*+d;}],SS:[t,function(d){this.milliseconds=10*+d;}],SSS:[/\d{3}/,function(d){this.milliseconds=+d;}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[t,u("day")],Do:[a,function(d){var g=f.ordinal,v=d.match(/\d+/);if(this.day=v[0],g)for(var C=1;C<=31;C+=1)g(C).replace(/\[|\]/g,"")===d&&(this.day=C);}],w:[o,u("week")],ww:[t,u("week")],M:[o,u("month")],MM:[t,u("month")],MM
2530M:[a,function(d){var g=F("months"),v=(F("monthsShort")||g.map(function(C){return C.slice(0,3)})).indexOf(d)+1;if(v<1)throw new Error;this.month=v%12||v;}],MMMM:[a,function(d){var g=F("months").indexOf(d)+1;if(g<1)throw new Error;this.month=g%12||g;}],Y:[/[+-]?\d+/,u("year")],YY:[t,function(d){this.year=k(d);}],YYYY:[/\d{4}/,u("year")],Z:E,ZZ:E};function ie(d){var g,v;g=d,v=f&&f.formats;for(var C=(d=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(ue,oe,X){var K=X&&X.toUpperCase();return oe||v[X]||i[X]||v[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ne,re,he){return re||he.slice(1)})})).match(r),U=C.length,w=0;w<U;w+=1){var q=C[w],fe=P[q],W=fe&&fe[0],ee=fe&&fe[1];C[w]=ee?{regex:W,parser:ee}:q.replace(/^\[|\]$/g,"");}return function(ue){for(var oe={},X=0,K=0;X<U;X+=1){var ne=C[X];if(typeof ne=="string")K+=ne.length;else {var re=ne.regex,he=ne.parser,$e=ue.slice(K),xe=re.exec($e)[0];he.call(oe,xe),ue=ue.replace(xe,"");}}return (function(ge){var je=ge.afternoon;if(je!==void 0){var H=ge.hours;je?H<12&&(ge.hours+=12):H===12&&(ge.hours=0),delete ge.afternoon;}})(oe),oe}}return function(d,g,v){v.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(k=d.parseTwoDigitYear);var C=g.prototype,U=C.parse;C.parse=function(w){var q=w.date,fe=w.utc,W=w.args;this.$u=fe;var ee=W[1];if(typeof ee=="string"){var ue=W[2]===!0,oe=W[3]===!0,X=ue||oe,K=W[2];oe&&(K=W[2]),f=this.$locale(),!ue&&K&&(f=v.Ls[K]),this.$d=(function($e,xe,ge,je){try{if(["x","X"].indexOf(xe)>-1)return new Date((xe==="X"?1e3:1)*$e);var H=ie(xe)($e),ht=H.year,Qe=H.month,ao=H.day,so=H.hours,lo=H.minutes,co=H.seconds,mo=H.milliseconds,Ft=H.zone,At=H.week,gt=new Date,_t=ao||(ht||Qe?1:gt.getDate()),yt=ht||gt.getFullYear(),qe=0;ht&&!Qe||(qe=Qe>0?Qe-1:gt.getMonth());var He,vt=so||0,Ct=lo||0,bt=co||0,xt=mo||0;return Ft?new Date(Date.UTC(yt,qe,_t,vt,Ct,bt,xt+60*Ft.offset*1e3)):ge?new Date(Date.UTC(yt,qe,_t,vt,Ct,bt,xt)):(He=new Date(yt,qe,_t,vt,Ct,bt,xt),At&&(He=je(He).week(At).toDate()),He)}catch{return new Date("")}})(q,ee,fe,v),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),X&&q!=this.format(ee)&&(this.$d=new Date("")),f={};}else if(ee instanceof Array)for(var ne=ee.length,re=1;re<=ne;re+=1){W[1]=ee[re-1];var he=v.apply(this,W);if(he.isValid()){this.$d=he.$d,this.$L=he.$L,this.init();break}re===ne&&(this.$d=new Date(""));}else U.call(this,w);};}});});var wt$3=T$4("Badge",{web:()=>import('./chunk-CHu_91Qs.js').then(i=>new i.BadgeWeb)});var fn$1=(()=>{class i{constructor(){this._notifications=g$k(ut$6),this._logger=g$k($E),this._isNative=U$5.isNativePlatform(),this._syncEffect=Es$3(()=>{if(!this._isNative)return;let e=this._notifications.unreadCount();this._setBadge(e);});}async clear(){await this._setBadge(0);}async _setBadge(e){if(this._isNative)try{e>0?await wt$3.set({count:e}):await wt$3.clear();}catch(t){this._logger.warn("[AppBadge] Failed to update app icon badge",{count:e,error:t});}}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Yi=new b$g("CHAT_OPENER");var Oe$1=T$4("LocalNotifications",{web:()=>import('./chunk-Dm-6kC3-.js').then(i=>new i.LocalNotificationsWeb)});var te$1=T$4("PushNotifications",{});var Ri=(()=>{class i{constructor(){this._http=g$k(Ce$a),this._maQuery=g$k(f$8);}registerPushToken(e){return this._maQuery.selectSchoolId().pipe(hn$9(1),Kf$1(t=>this._http.generic(l$6.USER.REGISTER_DEVICE(t,e))))}registerPushTokenForSchool(e,t,o){return this._http.generic(l$6.USER.REGISTER_DEVICE(e,t),o)}removeDeviceForSchool(e,t,o){let a=l$6.USER.REMOVE_DEVICE(e,{visitorId:t});return this._http.generic(a,o)}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var uo=T$4("FCMToken",{web:()=>({getToken:async()=>{throw new Error("FCMToken plugin is not available on web")}})}),Vi=uo;var Oi=(()=>{class i{constructor(){this._isLoading=On$7(false),this._safetyTimer=null,this.isLoading=this._isLoading.asReadonly();}static{this._SAFETY_TIMEOUT_MS=1e4;}show(){this._isLoading.set(true),this._clearSafetyTimer(),this._safetyTimer=setTimeout(()=>{this._isLoading.set(false),this._safetyTimer=null;},i._SAFETY_TIMEOUT_MS);}hide(){this._clearSafetyTimer(),this._isLoading.set(false);}_clearSafetyTimer(){this._safetyTimer!==null&&(clearTimeout(this._safetyTimer),this._safetyTimer=null);}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var ir$1=(()=>
2530{class i{static{this._registrationEventTimeoutMs=2e3;}static{this._registrationEventCheckIntervalMs=100;}static{this._fcmRetryMaxAttempts=5;}static{this._fcmRetryDelayMs=500;}static{this._pushTokenStorageKey="lastSentPushToken";}constructor(){this._listenersInitialized=false,this._currentToken=null,this._registrationInFlight=null,this._switchSubscription=null,this._logger=g$k($E),this._router=g$k(H$8),this._pushDataService=g$k(Ri),this._maQuery=g$k(f$8),this._chatOpener=g$k(Yi,{optional:true}),this._notifications=g$k(ut$6),this._authManager=g$k(J$4),this._schoolSwitch=g$k(I$2),this._deviceIdentity=g$k(Xn$3),this._noti=g$k(wi$1),this._loading=g$k(Oi),this._switchSubscription=this._schoolSwitch.switchCompleted$.subscribe(()=>{this.syncRegistrationsForActiveSchools();});}async initializeListeners(){if(!U$5.isNativePlatform()){this._logger.info("Push notifications not available on web");return}this._setupListeners();}async requestPermissionsAndRegister(){if(!U$5.isNativePlatform())return this._logger.info("Push notifications not available on web"),false;this._setupListeners();try{return (await te$1.requestPermissions()).receive==="granted"?(await Oe$1.requestPermissions(),await te$1.register(),await this._waitForTokenOrFallback(),this._logger.info("Push notification permission granted and registered"),!0):(this._logger.warn("Push notification permission denied by user"),!1)}catch(e){return this._logger.error("Error requesting push notification permissions",e),false}}async _waitForTokenOrFallback(){if(await this._waitForRegistrationEvent()&&this._currentToken){await this._registerTokenIfChanged(this._currentToken);return}this._logger.warn("Registration event did not fire within timeout, attempting manual token retrieval"),U$5.getPlatform()==="ios"?await this._retrieveFCMTokenWithRetry():this._logger.warn("Registration event did not fire on Android");}async _waitForRegistrationEvent(){let e=0;for(;e<i._registrationEventTimeoutMs;){if(this._currentToken)return true;await new Promise(t=>setTimeout(t,i._registrationEventCheckIntervalMs)),e+=i._registrationEventCheckIntervalMs;}return false}async _retrieveFCMTokenWithRetry(){let e=0;for(;e<i._fcmRetryMaxAttempts;){try{let t=await Vi.getToken();if(t?.value){this._logger.info("Retrieved FCM token via custom plugin",{token:t.value.substring(0,20)+"...",attempt:e+1}),this._currentToken=t.value,await this._registerTokenIfChanged(t.value);return}}catch(t){this._logger.warn(`FCM token retrieval attempt ${e+1} failed`,t);}e=e+1,e<i._fcmRetryMaxAttempts&&await new Promise(t=>setTimeout(t,i._fcmRetryDelayMs));}this._logger.warn("Could not retrieve FCM token after all retry attempts");}_setupListeners(){this._listenersInitialized||(te$1.addListener("registration",async e=>{this._logger.info("Push registration success",{platform:U$5.getPlatform()}),this._currentToken=e.value;try{await this._registerTokenIfChanged(e.value);}catch(t){this._logger.warn("Failed to register push token",{platform:U$5.getPlatform(),error:t});}}),Oe$1.addListener("localNotificationActionPerformed",e=>{this._handleNotificationTap(e.notification.extra);}),te$1.addListener("registrationError",e=>{this._logger.error("Push registration error",e);}),te$1.addListener("pushNotificationReceived",async e=>{await te$1.removeAllDeliveredNotifications();let t=Math.floor(Math.random()*2147483647);await Oe$1.schedule({notifications:[{id:t,title:e.title||"New notification",body:e.body||"",schedule:{at:new Date(Date.now()+100)},extra:e.data}]});}),te$1.addListener("pushNotificationActionPerformed",e=>{this._handleNotificationTap(e.notification.data);}),this._listenersInitialized=true);}async _handleNotificationTap(e){this._loading.show();try{await this._handleNotificationTapInner(e);}catch(t){this._logger.error("[PushTap] handler failed",{error:t?.message??String(t)});}finally{this._loading.hide();}}async _handleNotificationTapInner(e){if(!e){this._logger.warn("[PushTap] no data payload, falling back to /community"),await this._router.navigate(["/community"]);return}let t=e.schoolId,o=this._authManager.getCurrentSchoolId(),a=U$5.isNativePlatform()&&!!t&&t!==o;if(this._logger.info("[PushTap] tap received",{type:e.type??"(missing)",targetSchoolId:t??"(missing)",currentSchoolId:o??"(null)",needsSchoolSwitch:a,hasSpaceId:!!e.spaceId,hasSpacePostId:!!e.spacePostId,hasCourseId:!!e.courseId,hasChapterId:!!e.chapterId,hasLessonId:!!e.lessonId,hasChatId:!!e.chatId,dataKeys:Object.keys(e).join(",")}),a){if(!await this._schoolSwitch.switchToSchool(t)){this._logger.warn("[PushTap] school-switch failed, aborting navigation",{targetSchoolId:t,currentSchoolId:o??"(null)"}),this._noti.warningIntl("common.notificationUnavailable");return}this._logger.info("[PushTap] school-switch completed",{targetSchoolId:t});}await this._markInAppNotificationAsRead(e),await this._navigateByNotificationType(e);}async syncRegistrationsForActiveSchools(){if(U$5.isNativePlatform()){if(!this._currentToken){this._logger.info("No cached FCM token yet; registration will run when `registration` listener fires");return}try{await this._registerTokenIfChanged(this._currentToken);}catch(e){this._logger.error("Failed to sync push registrations for active schools",e);}}}async _markInAppNotificationAsRead(e){let{notificationId:t,schoolId:o}=e;if(!(!t||!o))try{await this._notifications.markOneAsReadMutation.mutateAsync({schoolId:o,notificationId:t});}catch(a){this._logger.error("Failed to mark notification as read via push tap",a);}}async _navigateByNotificationType(e){let{type:t,courseId:o,chapterId:a,lessonId:f,
2530spaceId:k,spacePostId:u,spacePostCommentId:E,chatId:F}=e;switch(t){case "todoAssigned":case "todoDue":this._logger.info("[PushTap] navigating to todos overview",{type:t,hasTodoId:!!e.todoId}),await this._router.navigate(["/user/todos"]);break;case "submissionStateChanged":case "submissionCommented":case "submissionCommentReaction":o&&a&&f?(this._logger.info("[PushTap] navigating to submission detail",{courseId:o,chapterId:a,lessonId:f}),await this._router.navigate(["library",o,a,f,"details"])):(this._logger.warn("[PushTap] submission notification missing routing params, falling back to /library",{type:t,hasCourseId:!!o,hasChapterId:!!a,hasLessonId:!!f}),await this._router.navigate(["/library"]));break;case "startpage":this._logger.info("[PushTap] navigating to /startpage"),await this._router.navigate(["/startpage"]);break;case "chatMessage":F&&this._chatOpener?(this._logger.info("[PushTap] opening chat",{chatId:F}),await this._chatOpener(F)):(this._logger.warn("[PushTap] chat notification missing chatId or no chat opener, falling back to /home",{hasChatId:!!F,hasChatOpener:!!this._chatOpener}),await this._router.navigate(["/home"]));break;case "spaceJoinRequested":this._logger.info("[PushTap] navigating to join-requests review"),await this._router.navigate(["/community","join-requests"]);break;case "spaceJoinApproved":k?(this._logger.info("[PushTap] navigating to approved space",{spaceId:k}),await this._router.navigate(["/community",k])):await this._router.navigate(["/community"]);break;case "spaceJoinRejected":this._logger.info("[PushTap] join request rejected, opening community"),await this._router.navigate(["/community"]);break;default:k&&u?(this._logger.info("[PushTap] navigating to space post",{spaceId:k,spacePostId:u}),await this._router.navigate(["/community",k,u],{queryParams:E?{commentId:E}:{}})):(this._logger.warn("[PushTap] default notification missing spaceId/spacePostId, falling back to /community",{type:t??"(missing)",hasSpaceId:!!k,hasSpacePostId:!!u}),await this._router.navigate(["/community"]));break}}async cleanup(){if(U$5.isNativePlatform())try{await te$1.removeAllListeners(),await Oe$1.removeAllListeners(),this._listenersInitialized=!1,this._currentToken=null;}catch(e){this._logger.error("Error cleaning up push notifications",e);}}async _registerTokenIfChanged(e){for(;this._registrationInFlight;)await this._registrationInFlight.catch(()=>{});let t=this._doRegisterTokenIfChanged(e);this._registrationInFlight=t;try{await t;}finally{this._registrationInFlight===t&&(this._registrationInFlight=null);}}async _doRegisterTokenIfChanged(e){let t=this._collectActiveSchoolIds();if(t.length===0){this._logger.warn("No active schools available, cannot register push token");return}let o=await this._getCachedTokenData(i._pushTokenStorageKey),a=new Set(o?.schoolIds??[]),f=o?.token===e;if(f&&t.every(E=>a.has(E))&&a.size===t.length){this._logger.info("Push token and school set unchanged, skipping backend update",{schoolIds:t});return}let u=f?t.filter(E=>!a.has(E)):t;u.length!==0&&(this._logger.info("Registering push token for schools",{tokenRotated:!f,schoolsToRegister:u,activeSchoolIds:t}),await this._registerToken(e,u,t,i._pushTokenStorageKey));}_collectActiveSchoolIds(){if(U$5.isNativePlatform()){let t=this._authManager.getActiveSchoolIds();if(t.length>0)return t}let e=this._maQuery.getSchoolId();return e?[e]:[]}async _getCachedTokenData(e){try{let t=await r$7.get({key:e});if(!t.value)return null;let o=JSON.parse(t.value);return o?.token?Array.isArray(o.schoolIds)?o:typeof o.schoolId=="string"?{token:o.token,schoolIds:[o.schoolId],lastUpdated:o.lastUpdated??Date.now()}:null:null}catch{return null}}async _registerToken(e,t,o,a){let f=U$5.getPlatform(),k="Capacitor";try{let u=await o$3.getInfo(),E=await this._deviceIdentity.getStableDeviceId();if(!E){this._logger.error("No stable device id available; aborting push registration");return}let F={pushToken:e,visitorId:E,os:f,browserName:k,appVersion:u.version},z=[],P=[];if(await Promise.all(t.map(async w=>{try{let q=await this._authManager.getIdTokenForSchool(w);if(!q){this._logger.warn("Skipping push registration \u2014 no ID token for school",{schoolId:w}),P.push({schoolId:w,error:new Error("no id token")});return}await qE$1(this._pushDataService.registerPushTokenForSchool(w,F,q)),z.push(w);}catch(q){P.push({schoolId:w,error:q}),this._logger.error("Failed to register push token for school",{schoolId:w,message:q?.message,status:q?.status});}})),z.length===0&&P.length>0)throw this._logger.error("Push token registration failed for every school",{failedSchools:P.map(w=>w.schoolId),appVersion:u.version}),P[P.length-1].error;let ie=await this._getCachedTokenData(a),d=ie?.schoolIds??[],v=ie?.token!==e?[]:d.filter(w=>o.includes(w)),C=new Set([...v,...z]),U={token:e,schoolIds:Array.from(C),visitorId:E,lastUpdated:Date.now()};await r$7.set({key:a,value:JSON.stringify(U)}),this._logger.info("Push token registration batch complete",{succeeded:z,failedCount:P.length,failedSchools:P.map(w=>w.schoolId),appVersion:u.version});}catch(u){throw this._logger.error("Error registering push token",u),u}}async unregisterDevice(){if(!U$5.isNativePlatform())return;let e=await this._getCachedTokenData(i._pushTokenStorageKey);if(!e||e.schoolIds.length===0){this._logger.info("No cached push registration to unregister");return}let t=e.visitorId??await this._deviceIdentity.getStableDeviceId();if(!t){this._logger.warn("Cannot unregister device \u2014 no cached visitorId");return}this._logger.info("Unregistering push device for schools",{schoolIds:e.schoolIds}),await Promise.all(e.schoolIds.map(async o=>{try{let a=await this._authManager.getIdTokenForSchool(o);if(!a){this._logger.warn("Skipping device unregister \u2014 no ID token for school",{schoolId:o});return}await qE$1(this._pushDataService.removeDeviceForSchool(o,t,a));}catch(a){this._logger.error("Failed to unregister push device for school",{schoolId:o,message:a?.message,status:a?.status});}}));try{await r$7.remove({key:i._pushTokenStorageKey});}catch(o){this._logger.error("Failed to clear push token cache",o);}}async unregisterDeviceForSchool(e){if(!U$5.isNativePlatform())return;let t=await this._getCachedTokenData(i._pushTokenStorageKey);if(!t||!t.schoolIds.includes(e))return;let o=t.visitorId??await this._deviceIdentity.getStableDeviceId();if(!o){this._logger.warn("Cannot unregister device for school \u2014 no cached visitorId",{schoolId:e});return}try{let f=await this._authManager.getIdTokenForSchool(e);f?await qE$1(this._pushDataService.removeDeviceForSchool(e,o,f)):this._logger.warn("Skipping per-school device unregister \u2014 no ID token",{schoolId:e});}catch(f){this._logger.error("Failed to unregister push device for school",{schoolId:e,message:f?.message,status:f?.status});}let a=t.schoolIds.filter(f=>f!==e);try{a.length===0?await r$7.remove({key:i._pushTokenStorageKey}):await r$7.set({key:i._pushTokenStorageKey,value:JSON.stringify(s$e(r$d({},t),{schoolIds:a,lastUpdated:Date.now()}))});}catch(f){this._logger.error("Failed to update push token cache after per-school unregister",f);}}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Ne$2="/school-user-todos-client",Ui=(()=>{class i{constructor(){this._http=g$k(Ce$a);}getTodos(e,t){return this._http.get(`${Ne$2}/${e}`,{params:this._toQueryParams(t)})}createTodo(e,t){return this._http.post(`${Ne$2}/${e}`,t)}updateTodo(e,t,o){return this._http.patch(`${Ne$2}/${e}/${t}`,o)}toggleCompleted(e,t,o){return this._http.patch(`${Ne$2}/${e}/${t}/complete`,{completed:o})}deleteTodo(e,t){return this._http.delete(`${Ne$2}/${e}/${t}`)}reorderTodo(e,t){return this._http.patch(`${Ne$2}/${e}/reorder`,t)}_toQueryParams(e){if(!e)return;let t={};return e.status&&(t.status=e.status),e.limit!==void 0&&(t.limit=String(e.limit)),Object.keys(t).length>0?t:void 0}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var It$2="client-todos",gr$1=(()=>{class i{constructor(){this._data=g$k(Ui),this._qc=g$k(_$d),this._maQuery=g$k(f$8),this._schoolId=YG(this._maQuery.selectSchoolId()),this.schoolId=qd$1(()=>this._schoolId()),this.createMutation=re$7(()=>({meta:{hideToast:false},mutationFn:e=>{let t=this._schoolId();if(!t)throw new Error("schoolId is not set");return EI(this._data.createTodo(t,e.dto))},onSuccess:()=>{this._invalidateAll();}})),this.updateMutation=re$7(()=>({meta:{hideToast:false},mutationFn:e=>{let t=this._schoolId();if(!t)throw new Error("schoolId is not set");return EI(this._data.updateTodo(t,e.todoId,e.dto))},onSuccess:()=>{this._invalidateAll();}})),this.toggleCompletedMutation=re$7(()=>({meta:{hideToast:true},mutationFn:e=>{let t=this._schoolId();if(!t)throw new Error("schoolId is not set");return EI(this._data.toggleCompleted(t,e.todoId,e.completed))},onMutate:e=>{let t=this._schoolId();return {buckets:this._optimisticPatch(t,e.todoId,a=>s$e(r$d({},a),{completed:e.completed,completedAt:e.completed?new Date:void 0}))}},onError:(e,t,o)=>{o?.buckets?.forEach(({key:a,prev:f})=>{this._qc.setQueryData(a,f);});},onSettled:()=>{this._invalidateAll();}})),this.deleteMutation=re$7(()=>({meta:{hideToast:false},mutationFn:e=>{let t=this._schoolId();if(!t)throw new Error("schoolId is not set");return EI(this._data.deleteTodo(t,e.todoId))},onSuccess:()=>{this._invalidateAll();}})),this.reorderMutation=re$7(()=>({meta:{hideToast:true},mutationFn:e=>{let t=this._schoolId();if(!t)throw new Error("schoolId is not set");return EI(this._data.reorderTodo(t,e))},onSettled:()=>{this._invalidateAll();}}));}todosQuery(e=()=>"all",t){let o=t?.limit;return ie$b(()=>({enabled:!!this._schoolId()&&(t?.enabled?.()??true),queryKey:this._queryKey(this._schoolId(),e(),o),queryFn:()=>{let a=this._schoolId();if(!a)throw new Error("schoolId is not set");return EI(this._data.getTodos(a,r$d({status:e()},o!==void 0&&{limit:o})))}}))}_queryKey(e,t,o){return [It$2,e,t,o]}_invalidateAll(){this._qc.invalidateQueries({queryKey:[It$2,this._schoolId()]});}_optimisticPatch(e,t,o){if(!e)return [];let a=this._qc.getQueriesData({queryKey:[It$2,e]}),f=[];for(let[k,u]of a)f.push({key:k,prev:u}),u&&this._qc.setQueryData(k,(E=[])=>E.map(F=>F._id===t?o(F):F));return f}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();function ho(i,r){if(i&1){let e=fM();ta$3(0,"input",3),Zv$1("paste",function(o){sh$1(e);let a=yM(2);return ah$1(a.onPaste(o))}),Pd$1(),iS(),ta$3(1,"span",4,0),QM(3," https:// "),Pd$1();}if(i&2){let e=TM(2),t=yM(2);Ma$2("padding-left",e.offsetWidth+10+"px"),jv$1("placeholder",t.placeholder)("formControl",t.control),aS();}}function go(i,r){if(i&1&&(ta$3(0,"mspot-form-field-std",2),eM$1(1,ho,4,4),Pd$1()),i&2){let e=yM();jv$1("label",e.label),uT(),tM$1(e.control?1:-1);}}var $i=(()=>{class i{constructor(){this._destroyRef=g$k(de$b),this.label="",this.placeholder="",this.control=null;}#e;set formFieldStdComponent(e){this.#e=e;}onPaste(e){e.preventDefault();let t=e?.clipboardData?.getData("text"),o=vr$5(t);this.control?.markAsDirty(),this.control?.markAsTouched(),this.control?.patchValue(o);}ngOnInit(){this.control?.valueChanges.pipe(qG(this._destroyRef)).subscribe(()=>{this.#e?.triggerChangeDetection();});}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-input-type-http"]],viewQuery:function(t,o){if(t&1&&Jv$1(ae$2,5),t&2){let a;CM(a=wM())&&(o.formFieldStdComponent=a.first);}},inputs:{label:"label",placeholder:"placeholder",control:"control"},decls:1,vars:0,consts:[["prefix",""],["class","group relative z-[1]",3,"label",4,"transloco"],[1,"group","relative","z-[1]",3,"label"],["mspotInput","",3,"paste","placeholder","formControl"],[1,"bg-mspot-neutral-100","text-mspot-neutral-600","absolute","bottom-[
25301px]","left-[1px]","top-[1px]","z-0","flex","cursor-default","select-none","items-center","rounded-bl-md","rounded-tl-md","px-3","text-sm"]],template:function(t,o){t&1&&gv$1(0,go,2,2,"mspot-form-field-std",1);},dependencies:[yt$a,ae$2,oi$5,Qe$b,Xn$7,Vn$7,v$3],encapsulation:2});}}return i})();function _o(i,r){if(i&1){let e=fM();Hd$1(0),ta$3(1,"button",1),Zv$1("click",function(){sh$1(e);let o=yM();return ah$1(o.cancelClick.emit())}),QM(2),Pd$1(),ta$3(3,"button",2),Zv$1("click",function(){sh$1(e);let o=yM();return ah$1(o.saveClick.emit())}),ta$3(4,"mspot-load-btn",3),QM(5),Pd$1()(),$d$1();}if(i&2){let e=r.$implicit,t=yM();uT(),jv$1("disabled",t.isCancelDisabled),uT(),Gd$1(" ",e("common.cancel")," "),uT(),jv$1("disabled",t.isSaveDisabled),uT(),jv$1("loading",t.isSaving||t.isLoading)("loadingText",t.isSaving?e("text.isSaving"):e("text.isChecking")),uT(),Gd$1(" ",e("common.save")," ");}}var ji=(()=>{class i{constructor(){this.isLoading=false,this.isSaving=false,this.isSaveDisabled=false,this.isCancelDisabled=false,this.cancelClick=new Ct$h,this.saveClick=new Ct$h;}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-form-action-buttons"]],hostAttrs:[1,"flex","gap-3"],inputs:{isLoading:"isLoading",isSaving:"isSaving",isSaveDisabled:"isSaveDisabled",isCancelDisabled:"isCancelDisabled"},outputs:{cancelClick:"cancelClick",saveClick:"saveClick"},decls:1,vars:0,consts:[[4,"transloco"],["type","button","mspot-button","","variant","secondary",3,"click","disabled"],["type","button","mspot-button","","variant","primary",3,"click","disabled"],[1,"pointer-events-none","flex","w-full","justify-center",3,"loading","loadingText"]],template:function(t,o){t&1&&gv$1(0,_o,6,6,"ng-container",0);},dependencies:[yt$a,J$3,q$b],encapsulation:2});}}return i})();var Tt$2=3;ve$b.enum(["hidden","ageOnly","birthdayOnly","birthdayAndAge"]);function Qi(i){let r=new Date(i),t=(r.getUTCHours()!==0||r.getUTCMinutes()!==0||r.getUTCSeconds()!==0||r.getUTCMilliseconds()!==0)&&r.getUTCHours()>=12?1:0;return new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()+t))}var qi=(()=>{class i{constructor(){this.#e=g$k(M$a),this.#t=g$k(f$8),this.canShowCommunityProfile$=_I([this.#e.select(e=>e.communityOnboarding),this.#t.select(e=>e.spacesActive)]).pipe(st$c(([e,t])=>e&&t||false),vp({bufferSize:1,refCount:true}));}#e;#t;static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();function yo(i,r){i&1&&Vv$1(0,"div",4);}function vo(i,r){if(i&1){let e=fM();ta$3(0,"button",9),Zv$1("click",function(o){return sh$1(e),yM(2).deleteImage(),ah$1(o.stopPropagation())}),Vv$1(1,"ng-icon",10),Pd$1();}if(i&2){let e=yM().$implicit;Pv$1("aria-label",e("clientProfile.settings.generalTab.removeCoverPhoto"));}}function Co(i,r){if(i&1){let e=fM();Hd$1(0),ta$3(1,"section")(2,"p",1),QM(3),Pd$1(),ta$3(4,"p",2),QM(5),Pd$1()(),ta$3(6,"section",3),Zv$1("click",function(){sh$1(e);let o=yM();return ah$1(o.openImageDialog())}),eM$1(7,yo,1,0,"div",4),ta$3(8,"div",5)(9,"button",6),Zv$1("click",function(o){return sh$1(e),yM().openImageDialog(),ah$1(o.stopPropagation())}),Vv$1(10,"ng-icon",7),Pd$1()(),eM$1(11,vo,2,1,"button",8),Pd$1(),$d$1();}if(i&2){let e=r.$implicit,t=yM();uT(3),Gd$1(" ",e("clientProfile.settings.generalTab.coverPhoto")," "),uT(2),Gd$1(" ",e("clientProfile.settings.generalTab.recommendedCoverPhotoSize")," "),uT(),Ma$2("background-image",t.imageSrc()?"url("+t.imageSrc()+")":null),iD("bg-primary",!t.imageSrc()),uT(),tM$1(t.imageSrc()?-1:7),uT(2),Pv$1("aria-label",e("clientProfile.settings.generalTab.changeCoverPhoto")),uT(2),tM$1(t.imageSrc()?11:-1);}}var Hi=(()=>{class i{constructor(){this._notiService=g$k(wi$1),this._profilePictureService=g$k(j$a),this._imageService=g$k(Bp$1),this._cdr=g$k(Va$2),this._dialogService=g$k(Ss$2),this._translocoService=g$k(Ce$5),this._queryClient=g$k(_$d),this._schoolUserService=g$k(Oe$5),this.schoolId=X8.required(),this._imageSrc=On$7(null),this.imageSrc=this._imageSrc.asReadonly(),this._communityProfileQuery=this._schoolUserService.getCommunityProfile(),Es$3(()=>{let e=this._communityProfileQuery.data();e&&this._imageSrc.set(e.coverPhotoUrl??null);});}deleteImage(){let e=this._translocoService.translate("clientProfile.settings.generalTab.deleteCoverPhotoText");this._dialogService.delete({name:e}).pipe(Pt$b(Boolean)).subscribe(t=>{t&&this._deleteImage();});}async openImageDialog(){let e=this._communityProfileQuery.data();if(!e)return;let t=e.coverPhotoUrl??null,o=await this._profilePictureService.createCoverPhotoUploadData(this.schoolId());this._imageService.uploadImageGetDownloadUrl(o).pipe(Ip$1(a=>{this._imageSrc.set(a),this._cdr.markForCheck();}),Kf$1(a=>this._schoolUserService.updateCommunityProfileMutation.mutateAsync({properties:{dis
2530playName:e.displayName,comLegalConsent:e.comLegalConsent,coverPhotoUrl:a}}))).subscribe({next:()=>{this._queryClient.invalidateQueries({queryKey:["community-profile",this.schoolId()],refetchType:"all"});},error:()=>{this._imageSrc.set(t),this._cdr.markForCheck(),this._notiService.errorIntl("profile.notifications.error");}});}_deleteImage(){let e=this._communityProfileQuery.data();if(!e)return;let t=e.coverPhotoUrl??null;this._imageSrc.set(null),this._cdr.markForCheck(),this._schoolUserService.updateCommunityProfileMutation.mutateAsync({properties:{displayName:e.displayName,comLegalConsent:e.comLegalConsent,coverPhotoUrl:""}}).then(()=>{this._notiService.stdSuccessIntl(),this._queryClient.invalidateQueries({queryKey:["community-profile",this.schoolId()],refetchType:"all"});}).catch(()=>{this._imageSrc.set(t),this._cdr.markForCheck(),this._notiService.errorIntl("profile.notifications.error");});}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-cover-photo-section"]],hostAttrs:[1,"flex","flex-col","gap-4"],inputs:{schoolId:[1,"schoolId"]},decls:1,vars:0,consts:[[4,"transloco"],[1,"text-mspot-neutral-900","text-base","font-semibold","leading-6"],[1,"text-mspot-neutral-600","text-sm","font-normal","leading-5"],[1,"group","relative","h-36","w-full","cursor-pointer","overflow-hidden","rounded-lg","bg-cover","bg-center","bg-no-repeat","sm:h-48",3,"click"],[1,"absolute","inset-0","rounded-lg","bg-black/40"],[1,"absolute","inset-0","flex","items-center","justify-center","opacity-0","transition-opacity","group-hover:opacity-100"],["mspotButton","","color","primary","variant","strong","size","icon","type","button",1,"bg-backgrounds-surface-raised","rounded-md",3,"click"],["name","heroPencilSquare","strokeWidth","2",1,"text-icons-subtle","text-lg"],["mspotButton","","color","primary","variant","strong","size","icon","type","button",1,"bg-backgrounds-surface-raised","absolute","right-2","top-2","rounded-md","opacity-0","transition-opacity","group-hover:opacity-100"],["mspotButton","","color","primary","variant","strong","size","icon","type","button",1,"bg-backgrounds-surface-raised","absolute","right-2","top-2","rounded-md","opacity-0","transition-opacity","group-hover:opacity-100",3,"click"],["name","heroTrash","strokeWidth","2",1,"text-mspot-error-700","text-lg"]],template:function(t,o){t&1&&gv$1(0,Co,12,9,"ng-container",0);},dependencies:[yt$a,g$a,le$9],encapsulation:2});}}return i})();var bo=[[["","slot","consenttext"]]],xo=["[slot='consentText']"];function So(i,r){if(i&1){let e=fM();ta$3(0,"button",5),Zv$1("keydown.enter",function(o){return o.stopPropagation()})("click",function(){sh$1(e);let o=yM(2);return ah$1(o.openConsentDialog.emit())}),QM(1),Pd$1();}if(i&2){let e=yM().$implicit;uT(),Gd$1(" ",e("clientProfile.settings.generalTab.readAgreement")," ");}}function wo(i,r){if(i&1&&(Hd$1(0),ta$3(1,"h3",1),QM(2),Pd$1(),EM(3),ta$3(4,"label",2),Vv$1(5,"mspot-toggle",3),iS(),Pd$1(),eM$1(6,So,2,1,"button",4),$d$1()),i&2){let e=r.$implicit,t=yM();uT(2),Gd$1(" ",e("clientProfile.settings.generalTab.legalConsent")," "),uT(3),jv$1("formControl",t.form)("label",e("clientProfile.settings.generalTab.legalConsentText"))("stopEnterPropagation",true),aS(),uT(),tM$1(t.showInlineConsent?-1:6);}}var zi=(()=>{class i{constructor(){this.showInlineConsent=false,this.openConsentDialog=new Ct$h;}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-legal-consent"]],hostAttrs:[1,"flex","flex-col","items-start","gap-4"],inputs:{form:"form",showInlineConsent:"showInlineConsent"},outputs:{openConsentDialog:"openConsentDialog"},ngContentSelectors:xo,decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new"],[1,"flex","flex-row-reverse","items-center","gap-2","sm:flex-row"],[3,"formControl","label","stopEnterPropagation"],["mspotButton","","variant","weak","color","primary","type","button"],["mspotButton","","variant","weak","color","primary","type","button",3,"keydown.enter","click"]],template:function(t,o){t&1&&(DM(bo),gv$1(0,wo,7,5,"ng-container",0));},dependencies:[bt$5,yt$a,oi$5,Xn$7,Vn$7,g$a],encapsulation:2});}}return i})();function Io(i,r){if(i&1){let e=fM();ta$3(0,"button",8),Zv$1("click",function(){sh$1(e);let o=yM(2);return ah$1(o.deleteImage())}),QM(1),Pd$1();}if(i&2){let e=yM().$implicit;uT(),Gd$1(" ",e("clientProfile.settings.generalTab.removePhoto")," ");}}function Do(i,r){if(i&1){let e=fM();Hd$1(0),ta$3(1,"section",1)(2,"img",2),EN(3,"safeUrl"),Zv$1("error",function(){sh$1(e);let o=yM();return ah$1(o.onImageError())}),Pd$1()(),ta$3(4,"section")(5,"p",3),QM(6),Pd$1(),ta$3(7,"p",4),QM(8),Pd$1(),ta$3(9,"div",5)(10,"button",6),Zv$1("click",function(){sh$1(e);let o=yM();return ah$1(o.openImageDialog())}),QM(11),Pd$1(),eM$1(12,Io,2,1,"button",7),Pd$1()(),$d$1();}if(i&2){let e=r.$implicit,t=yM();uT(2),jv$1("ngSrc",CN(3,6,t.imageSrc())||"assets/svgs/default-user-image.svg")("alt",e("clientProfile.settings.generalTab.profilePicture")),uT(4),Gd$1(" ",e("clientProfile.settings.generalTab.profilePicture")," "),uT(2),Gd$1(" ",e("clientProfile.settings.generalTab.recommendedImageSize")," "),uT(3),Gd$1(" ",e("clientProfile.settings.generalTab.uploadPhoto")," "),uT(),tM$1(t.imageSrc()?12:-1);}}var Ki=(()=>{class i{#e;#t;#o;#n;#r;#a;#s;#i;constructor(){this.#e=g$k(wi$1),this.#t=g$k(O$7),this.#o=g$k(j$a),this.#n=g$k(Bp$1),this.#r=g$k(Va$2),this.#a=g$k(Ss$2),this.#s=g$k(Ce$5),this._queryClient=g$k(_$d),this.#i=On$7(null),this.schoolId=null,this.hasImage=ZG(this.#i).pipe(st$c(e=>!!e)),this.imageSrc=this.#i.asReadonly(),this.#o.user$.pipe(Pt$b(e=>!!e),st$c(e=>e.photoURL),qG()).subscribe(e=>this.#i.set(e));}deleteImage(){let e=this.#s.translate("clientProfile.settings.generalTab.deleteProfileImageText");this.#a.delete({name:e}).pipe(Pt$b(Boolean)).subscribe(t=>{t&&this.#l();});}onImageError(){this.#i.set(null);}async openImageDialog(){let e=await this.#o.createImageUploadData(this.schoolId);
2530this.#n.uploadImageGetDownloadUrl(e).pipe(Ip$1(t=>{this.#i.set(t),this.#r.markForCheck();}),Kf$1(t=>_I([this.#o.updateProfile(t),this.schoolId?this.#t.updateUserInSchool(this.schoolId,t):this.#t.updateUser(t)]))).subscribe({next:()=>{this._queryClient.invalidateQueries({queryKey:["communityPosts"],refetchType:"all"}),this._queryClient.invalidateQueries({queryKey:["reactions"],refetchType:"all"}),this._queryClient.invalidateQueries({queryKey:["community-profile",this.schoolId],refetchType:"all"});},error:()=>this.#e.errorIntl("profile.notifications.error")});}#l(){this.#i.set(null),MI(()=>this.#o.updateProfile("")).pipe(Kf$1(()=>this.schoolId?this.#t.updateUserInSchool(this.schoolId,""):this.#t.updateUser("")),this.#e.observeIntl()).subscribe();}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-picture-section"]],hostAttrs:[1,"flex","flex-col","gap-4","sm:flex-row"],inputs:{schoolId:"schoolId"},outputs:{hasImage:"hasImage"},decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","justify-center","sm:block"],["height","100","width","100","priority","",1,"rounded-full","object-cover",3,"error","ngSrc","alt"],[1,"text-mspot-neutral-900","text-center","text-base","font-semibold","leading-6","sm:text-left"],[1,"text-mspot-neutral-600","text-center","text-sm","font-normal","leading-5","sm:text-left"],[1,"mt-3","flex","flex-col","gap-3","sm:flex-row"],["mspotButton","","variant","weak","color","primary",1,"w-full","sm:w-auto",3,"click"],["mspotButton","","variant","weak","color","primary",1,"text-mspot-error-700","w-full","sm:w-auto"],["mspotButton","","variant","weak","color","primary",1,"text-mspot-error-700","w-full","sm:w-auto",3,"click"]],template:function(t,o){t&1&&gv$1(0,Do,13,8,"ng-container",0);},dependencies:[OG,yt$a,g$a,br$5],encapsulation:2});}}return i})();function To(i,r){if(i&1){let e=fM();Hd$1(0),ta$3(1,"header",1)(2,"h1",2),QM(3),Pd$1(),ta$3(4,"button",3),Zv$1("click",function(){sh$1(e);let o=yM();return ah$1(o.dialogRef.close())}),Vv$1(5,"ng-icon",4),Pd$1()(),Vv$1(6,"div",5),$d$1();}if(i&2){let e=r.$implicit,t=yM();uT(3),Gd$1(" ",e("clientProfile.settings.generalTab.consentDialogTitle")," "),uT(),Pv$1("aria-label",e("common.close")),uT(2),jv$1("innerHtml",t.dialogData.spacesLegalConsentText||"",cb$1);}}var Gi=(()=>{class i{constructor(){this.dialogRef=g$k(T$b),this.dialogData=g$k(Ze$9);}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-consent-dialog"]],hostAttrs:[1,"flex","flex-col","gap-4"],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","items-center","gap-3"],[1,"heading2-new","flex-1"],["mspotButton","","size","icon-sm","variant","ghost","color","primary",3,"click"],["name","heroXMark",1,"text-xl"],[1,"text-mspot-neutral-600","mt-2","max-h-[600px]","overflow-y-auto","text-sm",3,"innerHtml"]],template:function(t,o){t&1&&gv$1(0,To,7,3,"ng-container",0);},dependencies:[le$9,yt$a,g$a],encapsulation:2});}}return i})();var Xi$1=(()=>{class i{#e=g$k(Ss$2);openDialog(e){return this.#e.open(Gi,{data:e,dialogConfig:{disableClose:true,panelClass:H$a.SIZE_MD}})}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac,providedIn:"root"});}}return i})();var Mt$2=A$j(fu$1()),Ji=A$j(Zi());Mt$2.default.extend(Ji.default);var Po=["YYYY-M-D","YYYY-MM-DD"],ko=["D.M.YYYY","DD.MM.YYYY","D/M/YYYY","DD/MM/YYYY","D-M-YYYY","DD-MM-YYYY"],Mo=["M.D.YYYY","MM.DD.YYYY","M/D/YYYY","MM/DD/YYYY","M-D-YYYY","MM-DD-YYYY"],Eo=new Date(2e3,10,22),Wi={parse:{dateInput:"birthdayDateInput"},display:{dateInput:{year:"numeric",month:"2-digit",day:"2-digit"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ut$2=class ut extends qr{parse(r,e){if(typeof r=="string"){let t=Fo(r,this.locale);if(t)return t}return super.parse(r,e)}};function Fo(i,r="de"){let e=i.trim();if(!e)return null;let t=No(e,Ao(r));return t?new Date(t.year(),t.month(),t.date()):null}function Ao(i){let r=Lo(i)?Mo:ko;return [...Po,...r]}function Lo(i){let r=Bo(i);if(!r)return false;let e=new Intl.DateTimeFormat(r,{day:"numeric",month:"numeric",year:"numeric"}).formatToParts(Eo).filter(({type:t})=>t==="day"||t==="month"||t==="year").map(({type:t})=>t);return e[0]==="month"&&e[1]==="day"}function Bo(i){try{return Intl.DateTimeFormat.supportedLocalesOf([i])[0]??null}catch{return null}}function No(i,r){for(let e of r){let t=(0, Mt$2.default)(i,e,true);if(t.isValid())return t}return null}function Yo$1(i,r){if(i&1&&(Hd$1(0),ta$3(1,"mspot-form-field-std",2),Vv$1(2,"input",3),iS(),Pd$1(),ta$3(3,"section")(4,"div")(5,"mspot-form-field-std",2),Vv$1(6,"input",3),iS(),Pd$1(),Vv$1(7,"mspot-checkbox",4),iS(),Pd$1(),ta$3(8,"div")(9,"mspot-form-field-std",2),Vv$1(10,"input",5),iS(),Pd$1(),Vv$1(11,"mspot-checkbox",4),iS(),Pd$1()(),ta$3(12,"section")(13,"mspot-form-field-std",2)(14,"div",6),Vv$1(15,"input",7),iS(),Vv$1(16,"mat-datepicker-toggle",8)(17,"mat-datepicker",null,0),Pd$1()(),ta$3(19,"mspot-form-field-std",2)(20,"select",9)(21,"option",10),QM(22),Pd$1(),ta$3(23,"option",11),QM(24),Pd$1(),ta$3(25,"option",12),QM(26),Pd$1(),ta$3(27,"option",13),QM(28),Pd$1()(),iS(),Pd$1()(),ta$3(29,"section")(30,"mspot-form-field-std",2),Vv$1(31,"input",3),iS(),Pd$1(),ta$3(32,"mspot-form-field-std",2)(33,"textarea",14),Zv$1("keydown.enter",function(t){return t.stopPropagation()}),Pd$1(),iS(),Pd$1()(),ta$3(34,"mspot-form-field-std",2),Vv$1(35,"input",3),iS(),Pd$1(),$d$1()),i&2){let e=r.$implicit,t=TM(18),o=yM();uT(),jv$1("label",e("text.displayName")+"*"),uT(),jv$1("formControl",o.form.controls.displayName)("placeholder",e("clientProfile.settings.placeholders.displayName")),aS(),uT(3),jv$1("label",e("text.phone")),uT(
2530),jv$1("formControl",o.form.controls.phoneNumber)("placeholder",e("clientProfile.settings.placeholders.phone")),aS(),uT(),jv$1("formControl",o.form.controls.makeMyPhoneNumberPublic)("label",e("clientProfile.settings.generalTab.makeMyPhoneNumberPublic")),aS(),uT(2),jv$1("label",e("text.email")),uT(),jv$1("formControl",o.form.controls.email)("placeholder",e("clientProfile.settings.placeholders.email")),aS(),uT(),jv$1("formControl",o.form.controls.makeMyEmailPublic)("label",e("clientProfile.settings.generalTab.makeMyEmailPublic")),aS(),uT(2),jv$1("label",e("clientProfile.settings.generalTab.dateOfBirth")),uT(2),jv$1("matDatepicker",t)("formControl",o.form.controls.dateOfBirth)("placeholder",e("clientProfile.settings.placeholders.dateOfBirth")),aS(),uT(),jv$1("for",t),uT(3),jv$1("label",e("clientProfile.settings.generalTab.dateOfBirthVisibility")),uT(),jv$1("formControl",o.form.controls.dateOfBirthVisibility),aS(),uT(2),Gd$1(" ",e("clientProfile.settings.dateOfBirthVisibility.hidden")," "),uT(2),Gd$1(" ",e("clientProfile.settings.dateOfBirthVisibility.ageOnly")," "),uT(2),Gd$1(" ",e("clientProfile.settings.dateOfBirthVisibility.birthdayOnly")," "),uT(2),Gd$1(" ",e("clientProfile.settings.dateOfBirthVisibility.birthdayAndAge")," "),uT(2),jv$1("label",e("clientProfile.onboarding.info")),uT(),jv$1("formControl",o.form.controls.headline)("placeholder",e("clientProfile.onboarding.infoPlaceholder")),aS(),uT(),jv$1("label",e("clientProfile.settings.generalTab.biography")),uT(),jv$1("formControl",o.form.controls.biography)("placeholder",e("clientProfile.settings.placeholders.biography")),aS(),uT(),jv$1("label",e("clientProfile.settings.generalTab.location")),uT(),jv$1("formControl",o.form.controls.location)("placeholder",e("clientProfile.settings.placeholders.location")),aS();}}var eo=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-community-data"]],hostAttrs:[1,"flex","flex-col","gap-4"],inputs:{form:"form"},features:[cN([{provide:Y$5,useClass:ut$2},{provide:Oe$2,useValue:Wi}])],decls:1,vars:0,consts:[["birthdayPicker",""],[4,"transloco"],[3,"label"],["mspotInput","",3,"formControl","placeholder"],[1,"mt-2","block","items-center",3,"formControl","label"],["mspotInput","",1,"cursor-not-allowed",3,"formControl","placeholder"],[1,"relative"],["mspotInput","",3,"matDatepicker","formControl","placeholder"],[1,"absolute","right-1","top-1/2","-translate-y-1/2",3,"for"],["mspotInput","",3,"formControl"],["value","hidden"],["value","ageOnly"],["value","birthdayOnly"],["value","birthdayAndAge"],["mspotInput","","rows","4",3,"keydown.enter","formControl","placeholder"]],template:function(t,o){t&1&&gv$1(0,Yo$1,36,33,"ng-container",1);},dependencies:[ae$2,v$3,gh$1,fh$1,zr$1,ml,oi$5,ti$5,ni$5,Qe$b,Ft$6,Xn$7,Vn$7,X$d,yt$a],styles:["section[_ngcontent-%COMP%]{display:grid;gap:1.5rem}@media(min-width:640px){section[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}"]});}}return i})();function Ro$1(i,r){if(i&1&&(Hd$1(0),ta$3(1,"h3",1),QM(2),Pd$1(),ta$3(3,"section"),Vv$1(4,"mspot-input-type-http",2)(5,"mspot-input-type-http",3),Pd$1(),ta$3(6,"section"),Vv$1(7,"mspot-input-type-http",4)(8,"mspot-input-type-http",5),Pd$1(),ta$3(9,"section"),Vv$1(10,"mspot-input-type-http",6),Pd$1(),$d$1()),i&2){let e=r.$implicit,t=yM();uT(2),Gd$1(" ",e("clientProfile.settings.generalTab.socialLinks")," "),uT(2),jv$1("control",t.form.controls.websiteLink),uT(),jv$1("control",t.form.controls.twitterLink),uT(2),jv$1("control",t.form.controls.facebookLink),uT(),jv$1("control",t.form.controls.instagramLink),uT(2),jv$1("control",t.form.controls.linkedinLink);}}var to=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-social-links"]],hostAttrs:[1,"flex","flex-col","gap-4"],inputs:{form:"form"},decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new"],["label","Website","placeholder","my-blog.com",3,"control"],["label","X","placeholder","x.com/username",3,"control"],["label","Facebook","placeholder","facebook.com/username",3,"control"],["label","Instagram","placeholder","instagram.com/username",3,"control"],["label","LinkedIn","placeholder","linkedin.com/in/username",3,"control"]],template:function(t,o){t&1&&gv$1(0,Ro$1,11,6,"ng-container",0);},dependencies:[yt$a,$i],styles:["section[_ngcontent-%COMP%]{display:grid;gap:1.5rem}@media(min-width:640px){section[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}"]});}}return i})();var io=Vo();function Vo(){return new I$b({displayName:new B$k("",[Ce$8.required,...zD.NameField[1]]),phoneNumber:new B$k("",zD.PhoneField[1]),email:new B$k({value:"",disabled:true},zD.EmailField[1]),makeMyPhoneNumberPublic:new B$k(false),makeMyEmailPublic:new B$k(false),dateOfBirth:new B$k(null),dateOfBirthVisibility:new B$k("hidden"),headline:new B$k("",zD.NameField[1]),biography:new B$k("",zD.LongField[1]),location:new B$k("",zD.NameField[1]),websiteLink:new B$k("",[O$e.urlRegexValidatorWithoutProtocol]),facebookLink:new B$k("",[O$e.urlRegexValidatorWithoutProtocol]),twitterLink:new B$k("",[O$e.urlRegexValidatorWithoutProtocol]),instagramLink:new B$k("",[O$e.urlRegexValidatorWithoutProtocol]),linkedinLink:new B$k("",[O$e.urlRegexValidatorWithoutProtocol]),comLegalConsent:new B$k(false)})}function oo(i,r){if(!i)throw new Error("form is required");let{displayName:e,comLegalConsent:t,facebookLink:o,instagramLink:a,twitterLink:f,websiteLink:k,linkedinLink:u,headline:E,location:F,makeMyPhoneNumberPublic:z,makeMyEmailPublic:P,phoneNumber:ie,biography:d,dateOfBirth:g,dateOfBirthVisibility:v}=i.value,C=[{type:"facebook",url:xr$5(o)??""},{type:"instagram",url:xr$5(a)??""},{type:"twitter",url:xr$5(f)??""},{type:"website",url:xr$5(k)??""},{type:"linkedin",url:xr$5(u)??""}];
2530return {displayName:e??"",comLegalConsent:r?true:t??false,phoneNumber:ie??"",biography:d??"",headline:E??"",location:F??"",makeMyEmailPublic:P??false,makeMyPhoneNumberPublic:z??false,dateOfBirth:Oo$1(g),dateOfBirthVisibility:v??"hidden",links:C.filter(U=>!!U.url)}}function no(i){return i.filter(r=>r.pinned).map(r=>r.badgeId)}function Et$3(i){if(!i)return {email:"",displayName:"",comLegalConsent:false,facebookLink:"",instagramLink:"",twitterLink:"",websiteLink:"",linkedinLink:"",headline:"",location:"",makeMyEmailPublic:false,makeMyPhoneNumberPublic:false,dateOfBirth:null,dateOfBirthVisibility:"hidden",phoneNumber:"",biography:""};let{displayName:r,comLegalConsent:e,phoneNumber:t,biography:o,headline:a,location:f,makeMyEmailPublic:k,makeMyPhoneNumberPublic:u,dateOfBirth:E,dateOfBirthVisibility:F,email:z}=i||{},{links:P}=i||{};P??=[],P=P.map(U=>s$e(r$d({},U),{url:vr$5(U.url)}));let ie=Ue(P,"facebook"),d=Ue(P,"instagram"),g=Ue(P,"twitter"),v=Ue(P,"website"),C=Ue(P,"linkedin");return {email:z,displayName:r,comLegalConsent:e,facebookLink:ie,instagramLink:d,twitterLink:g,websiteLink:v,linkedinLink:C,headline:a,location:f,makeMyEmailPublic:k,makeMyPhoneNumberPublic:u,dateOfBirth:Uo$1(E),dateOfBirthVisibility:F??"hidden",phoneNumber:t,biography:o}}function Ue(i,r){return i.find(e=>e.type===r)?.url}function Oo$1(i){return !i||Number.isNaN(i.getTime())?null:new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()))}function Uo$1(i){if(!i)return null;let r=new Date(i);if(Number.isNaN(r.getTime()))return null;let e=Qi(r);return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}var $o$1=(i,r)=>r.badgeId;function jo$1(i,r){if(i&1&&Vv$1(0,"mspot-profile-cover-photo-section",2),i&2){let e=yM(2);jv$1("schoolId",e.schoolId);}}function Qo$1(i,r){if(i&1){let e=fM();ta$3(0,"mspot-profile-badge-chip",12),Zv$1("togglePin",function(o){sh$1(e);let a=yM(4);return ah$1(a.toggleBadgePin(o))}),Pd$1();}if(i&2){let e=r.$implicit,t=yM(4);jv$1("badgeData",e)("editable",true)("disabled",t.isPinningDisabled());}}function qo$1(i,r){if(i&1&&(ta$3(0,"div",7)(1,"h3",8),QM(2),Pd$1(),ta$3(3,"p",9),QM(4),Pd$1(),ta$3(5,"div",10),oM(6,Qo$1,1,3,"mspot-profile-badge-chip",11,$o$1),Pd$1()()),i&2){let e=yM(2).$implicit,t=yM();uT(2),Gd$1(" ",e("clientProfile.badges")," "),uT(2),DD(" ",t.pinnedCount(),"/",t.MAX_PINNED_BADGES," ",e("clientProfile.badgesPinnedCount")," "),uT(2),iM(t.badgesForDisplay());}}function Ho(i,r){if(i&1){let e=fM();ta$3(0,"mspot-profile-legal-consent",13),Zv$1("openConsentDialog",function(){sh$1(e);let o=yM(3);return ah$1(o.openConsentDialog())}),Pd$1();}if(i&2){let e=yM(3);jv$1("form",e.form.controls.comLegalConsent);}}function zo(i,r){if(i&1&&(Vv$1(0,"mspot-profile-community-data",6),eM$1(1,qo$1,8,4,"div",7),Vv$1(2,"mspot-profile-social-links",6),eM$1(3,Ho,1,1,"mspot-profile-legal-consent",6)),i&2){let e=yM(2);jv$1("form",e.form),uT(),tM$1(e.gamificationEnabled()&&e.badgesForDisplay().length>0?1:-1),uT(),jv$1("form",e.form),uT(),tM$1(e.memberArea.spacesExternalConsent?-1:3);}}function Ko$1(i,r){if(i&1&&(ta$3(0,"mspot-form-field-std",14),Vv$1(1,"input",15),iS(),Pd$1(),ta$3(2,"mspot-form-field-std",14),Vv$1(3,"input",16),iS(),Pd$1()),i&2){let e=yM().$implicit,t=yM();jv$1("label",e("text.displayName")+"*"),uT(),jv$1("formControl",t.form.controls.displayName)("placeholder",e("clientProfile.settings.placeholders.displayName")),aS(),uT(),jv$1("label",e("text.email")),uT(),jv$1("formControl",t.form.controls.email)("placeholder",e("clientProfile.settings.placeholders.email")),aS();}}function Go$1(i,r){if(i&1){let e=fM();Hd$1(0),ta$3(1,"div",1),Vv$1(2,"mspot-profile-picture-section",2),eM$1(3,jo$1,1,1,"mspot-profile-cover-photo-section",2),ta$3(4,"form",3),Zv$1("keydown.enter",function(){sh$1(e);let o=yM();return ah$1(o.onSave())}),eM$1(5,zo,4,4)(6,Ko$1,4,6),Pd$1()(),ta$3(7,"div",4)(8,"mspot-form-action-buttons",5),EN(9,"formValid"),Zv$1("saveClick",function(){sh$1(e);let o=yM();return ah$1(o.onSave())})("cancelClick",function(){sh$1(e);let o=yM();return ah$1(o.onCancel())}),Pd$1()(),$d$1();}if(i&2){let e=yM(),t=e.canShowCommunityProfile();uT(2),jv$1("schoolId",e.schoolId),uT(),tM$1(t?3:-1),uT(),jv$1("formGroup",e.form),uT(),tM$1(t?5:6),uT(3),jv$1("isCancelDisabled",fal
2530se)("isSaveDisabled",e.form.pristine||CN(9,6,e.form));}}var ro=(()=>{class i{constructor(){this.saved=J8(),this.cancelled=J8(),this._noti=g$k(wi$1),this._profileConsentDialogService=g$k(Xi$1),this._memberAreaQuery=g$k(f$8),this._formSeeded=false,this.memberArea=this._memberAreaQuery.getValue(),this.schoolUserService=g$k(Oe$5),this.canShowCommunityProfile=YG(g$k(qi).canShowCommunityProfile$),this.schoolId=this.memberArea.schoolId,this.form=io,this.communityProfile=this.schoolUserService.getCommunityProfile(),this.gamificationEnabled=g$k(le$5).isGamificationEnabled,this._badgesState=On$7([]),this.badgesForDisplay=qd$1(()=>_$5(this._badgesState())),this.pinnedCount=qd$1(()=>this.badgesForDisplay().filter(e=>e.pinned).length),this.MAX_PINNED_BADGES=Tt$2,this.isPinningDisabled=qd$1(()=>this.pinnedCount()>=Tt$2),Es$3(()=>{let e=this.communityProfile.data();e&&(this._formSeeded||(this._formSeeded=true,this._resetFormValue=e,this._badgesState.set(e.badges??[]),this.form.patchValue(Et$3(e))));});}toggleBadgePin(e){let t=this._badgesState(),o=t.find(a=>a.badgeId===e);o&&(!o.pinned&&this.isPinningDisabled()||(this._badgesState.set(t.map(a=>a.badgeId===e?s$e(r$d({},a),{pinned:!a.pinned}):a)),this.form.markAsDirty()));}onSave(){if(this.form.invalid)return;this.form.markAsUntouched(),this.form.markAsPristine();let e=oo(this.form,this.memberArea.spacesExternalConsent),t=this._getPinnedBadgeIdsForSave();this.schoolUserService.updateCommunityProfileMutation.mutate({properties:s$e(r$d({},e),{pinnedBadgeIds:t})},{onSuccess:()=>{if(this._noti.stdSuccessIntl(),this.saved.emit(),!this._resetFormValue)return;let o=this._badgesState().map(a=>s$e(r$d({},a),{pinned:t.includes(a.badgeId)}));this._resetFormValue=s$e(r$d(r$d({},this._resetFormValue),e),{badges:o});},onError:()=>{this._noti.stdErrorIntl();}});}onCancel(){this._resetFormValue&&(this.form.reset(Et$3(this._resetFormValue)),this._badgesState.set(this._resetFormValue.badges??[]),this.cancelled.emit());}openConsentDialog(){this._profileConsentDialogService.openDialog({spacesLegalConsentText:this.memberArea.spacesLegalConsentText}).subscribe();}_getPinnedBadgeIdsForSave(){return no(this.badgesForDisplay())}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-profile-basic-information"]],hostAttrs:[1,"flex","min-h-0","flex-col"],outputs:{saved:"saved",cancelled:"cancelled"},features:[cN([j$a])],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-1","flex-col","gap-6","overflow-y-auto","p-6"],[3,"schoolId"],[1,"flex","flex-col","gap-8",3,"keydown.enter","formGroup"],[1,"border-borders-primary","flex","shrink-0","justify-end","border-t","px-6","py-4"],[3,"saveClick","cancelClick","isCancelDisabled","isSaveDisabled"],[3,"form"],[1,"flex","flex-col","gap-3"],[1,"heading-new"],[1,"text-text-subtle","-mt-2","text-sm"],[1,"flex","flex-wrap","gap-2"],[3,"badgeData","editable","disabled"],[3,"togglePin","badgeData","editable","disabled"],[3,"openConsentDialog","form"],[3,"label"],["mspotInput","",3,"formControl","placeholder"],["mspotInput","",1,"cursor-not-allowed",3,"formControl","placeholder"]],template:function(t,o){t&1&&gv$1(0,Go$1,10,8,"ng-container",0);},dependencies:[yt$a,ae$2,oi$5,ei$5,Qe$b,Xn$7,Yn$6,Vn$7,Fn$7,eo,to,ji,s$3,Ki,Hi,zi,Bt$4,v$3,n$c],encapsulation:2});}}return i})();function Xo$1(i,r){if(i&1){let e=fM();ta$3(0,"div",1)(1,"div",2)(2,"h2",3),QM(3),Pd$1(),ta$3(4,"button",4),Zv$1("click",function(){sh$1(e);let o=yM();return ah$1(o.dialogRef.close(false))}),Vv$1(5,"ng-icon",5),Pd$1()(),ta$3(6,"mspot-profile-basic-information",6),Zv$1("saved",function(){sh$1(e);let o=yM();return ah$1(o.dialogRef.close(true))})("cancelled",function(){sh$1(e);let o=yM();return ah$1(o.dialogRef.close(false))}),Pd$1()();}if(i&2){let e=r.$implicit;uT(3),Gd$1(" ",e("clientProfile.tooltips.editProfile")," "),uT(),Pv$1("aria-label",e("common.close"));}}var nl=(()=>{class i{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9,{optional:true})??null;}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-edit-profile-dialog"]],features:[cN([Yt$1,W$b()])],decls:1,vars:0,consts:[["class","flex max-h-[85vh] flex-col",4,"transloco"],[1,"flex","max-h-[85vh]","flex-col"],[1,"border-borders-primary","flex","shrink-0","items-center","justify-between","border-b","px-6","py-4"],[1,"text-text-strong","text-lg","font-semibold"],["type","button","mspotButton","","size","icon-sm","variant","ghost","color","primary",3,"click"],["name","heroXMark",1,"text-xl"],[1,"min-h-0","flex-1",3,"saved","cancelled"]],template:function(t,o){t&1&&gv$1(0,Xo$1,7,2,"div",0);},dependencies:[ro,yt$a,le$9,g$a],encapsulation:2});}}return i})();function Zo$1(i,r){if(i&1&&(Hd$1(0),QM(1),$d$1()),i&2){let e=r.$implicit,t=yM(2).$implicit;uT(),Gd$1(" ",e(t)," ");}}function Jo$1(i,r){i&1&&gv$1(0,Zo$1,2,1,"ng-container",4);}function Wo$1(i,r){if(i&1&&QM(0),i&2){let e=yM().$implicit;Gd$1(" ",e," ");}}function en$1(i,r){i&1&&Vv$1(0,"ng-icon",3);}function tn$1(i,r){if(i&1&&(ta$3(0,"div",1)(1,"span",2),eM$1(2,Jo$1,1,0,"ng-container")(3,Wo$1,1,1),Pd$1(),eM$1(4,en$1,1,0,"ng-icon",3),Pd$1()),i&2){let e=r.$index,t=yM();uT(2),tM$1(t.isTranslationKey()?2:3),uT(2),tM$1(e<t.breadcrumbs().length?4:-1);}}var dl=(()=>{class i{constructor(){this.customClass=X8("flex text-xs text-mspot-neutral-500 md:items-center flex-col space-y-1 md:flex-row md:space-y-0"),this.breadcrumbs=X8([]),this.isTranslationKey=X8(false);}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-search-result-item-breadcrumb"]],inputs:{customClass:[1,"customClass"],breadcrumbs:[1,"breadcrumbs"],isTranslationKey:[1,"isTranslationKey"]},decls:3,vars:1,consts:[[3,"ngClass"],[1,"text-text-subtle","flex","items-center"],[1,"whitespace-nowrap"],["name","heroChevronRight",1,"mx-1"],[4,"transloco"]],template:function(t,o){t&1&&(ta$3(0,"div",0),oM(1,tn$1,5,2,"div",1,nM),Pd$1()),t&2&&(jv$1("ngClass",o.customClass()),uT(),iM(o.breadcrumbs()));},dependencies:[le$9,mx$1,yt$a],encapsulation:2});}}return i})(); 2531var y$5={actions:{profile:"Kontaktinformationen",startChat:"Mitglied finden, um Chat zu starten",viewAllChats:"Zur \xDCbersicht"},alt:{avatar:"Benutzer-Avatar-Foto"},aria:{closeDialog:"Dialog schlie\xDFen",closeSearch:"Suche schlie\xDFen"},block:{abort:"Abbrechen",blockError:"Benutzer konnte nicht blockiert werden",blocked:"Benutzer wurde blockiert",blockedByMeTooltip:"Dieses Mitglied wurde blockiert \u2014 zum Freigeben in den Chat-Einstellungen entsperren",blockedByOther:"Nachrichten an dieses Mitglied k\xF6nnen nicht gesendet werden",cannotBlockAdmin:"Admins und Moderatoren k\xF6nnen nicht blockiert werden",confirm:"Blockieren",message:"M\xF6chtest du {{name}} wirklich blockieren? Die Person kann dir keine Nachrichten mehr senden.",title:"Benutzer blockieren",unblockConfirm:"Freigeben",unblockError:"Benutzer konnte nicht freigegeben werden",unblockMessage:"M\xF6chtest du {{name}} wirklich freigeben? Die Person kann dir wieder Nachrichten senden.",unblockTitle:"Benutzer freigeben",unblocked:"Benutzer wurde freigegeben"}
2531,cancel:"Abbrechen",cannotStart:{description:"In dieser Community starten nur Moderatoren neue Unterhaltungen. Erhaltene Nachrichten k\xF6nnen hier beantwortet werden.",title:"Chats werden von Moderatoren gestartet",tooltip:"Nur Moderatoren k\xF6nnen neue Unterhaltungen starten"},conversations:"Unterhaltungen",delete:{abort:"Unterhaltung behalten",confirm:"Unterhaltung l\xF6schen",message:"Chat mit {{name}} wirklich l\xF6schen?",title:"Unterhaltung l\xF6schen"},disabledChat:"Der Benutzer hat den Chat deaktiviert",drawer:{startNewConversation:"Neue Unterhaltung starten"},empty:"Keine Unterhaltungen",errors:{messageFailed:"Nachricht konnte nicht gesendet werden"},filter:{all:"alle",read:"gelesen",unread:"ungelesen"},input:{label:"Chat-Eingabefeld",placeholder:"Nachricht an {{name}}",sendButton:"Nachricht senden"},lastSeen:{now:"Zuletzt online: gerade eben",onDate:"Zuletzt online am {{date}} um {{time}}",onDay:"Zuletzt online am {{day}} um {{time}}",today:"Zuletzt online heute um {{time}}",yesterday:"Zuletzt online gestern um {{time}}"},members:{empty:"Keine Mitglieder entsprechen der Suchanfrage",startSearch:"Suchbegriff eingeben, um Mitglieder zu finden",title:"Mitglieder"},modeHint:{moderatorsOnly:"Neue Unterhaltungen werden nur von Moderatoren gestartet. Erhaltene Nachrichten k\xF6nnen hier weiterhin beantwortet werden.",search:{membersViaAccess:"In der Suche erscheinen nur Mitglieder mit passenden Paketen. Moderatoren k\xF6nnen \xFCber diese Liste nicht angeschrieben werden.",open:"In der Suche erscheinen nur Mitglieder mit passenden Paketen."}},newChat:"Neuer Chat",notStarted:{message:"Eine bestehende Unterhaltung \xF6ffnen oder ein Mitglied suchen, um eine neue zu starten.",newChat:"Neue Unterhaltung mit {{name}}",title:"Unterhaltung \xF6ffnen"},onboarding:{button:"Profil erstellen",description:"F\xFCr den Chat ist ein Community-Profil n\xF6tig. Profil jetzt erstellen, um loszulegen.",title:"Profil einrichten, um den Chat zu nutzen"},returnToLatest:"Zum Neuesten zur\xFCckkehren",search:{minChars:"Mindestens 2 Zeichen eingeben",noResults:"Keine Nachrichten gefunden",openInChat:"Nachrichten durchsuchen",placeholder:{conversation:"Unterhaltung finden",global:"Alle Nachrichten durchsuchen...",inChat:"Nachrichten durchsuchen...",member:"Mitglieder finden"},resultCount:"{count, plural, one {# Ergebnis} other {# Ergebnisse}}",truncated:"Teilergebnisse werden angezeigt. F\xFCr eine vollst\xE4ndige Suche pr\xE4zisere Begriffe verwenden."},state:{offline:"offline",online:"online"},today:"Heute",unreadMessages:"{{ counter }} ungelesene Nachrichten",yesterday:"Gestern"};var k$2={actions:{profile:"Contact Info",startChat:"Find member to start chat",viewAllChats:"Show Overview"},alt:{avatar:"User avatar photo"},aria:{closeDialog:"Close dialog",closeSearch:"Close search"},block:{abort:"Cancel",blockError:"Failed to block user",blocked:"User has been blocked",blockedByMeTooltip:"You have blocked this user \u2014 unblock to send messages",blockedByOther:"You can't message this user",cannotBlockAdmin:"You can't block an admin or moderator",confirm:"Block",message:"Are you sure you want to block {{name}}? They will no longer be able to send you messages.",title:"Block user",unblockConfirm:"Unblock",unblockError:"Failed to unblock user",unblockMessage:"Are you sure you want to unblock {{name}}? They will be able to send you messages again.",unblockTitle:"Unblock user",unblocked:"User has been unblocked"},cancel:"Cancel",cannotStart:{description:"In this community only moderators start new conversations. Received messages can be replied to here.",title:"Chats are started by moderators",tooltip:"Only moderators can start new conversations"},conversations:"Conversations",delete:{abort:"Keep conversation",confirm:"Delete conversation",message:"Do you really want to delete the chat with {{name}}?",title:"Delete conversation"},disabledChat:"User has disabled the chat",drawer:{startNewConversation:"Start a new Conversation"},empty:"No conversations",errors:{messageFailed:"Message could not be sent"},filter:{all:"all",read:"read",unread:"unread"},input:{label:"Chat input field",placeholder:"Message {{name}}",sendButton:"Send message"},lastSeen:{now:"Last seen just now",onDate:"Last seen on {{date}} at {{time}}",onDay:"Last seen on {{day}} at {{time}}",today:"Last seen today at {{time}}",yesterday:"Last seen yesterday at {{time}}"},members:{empty:"No members match the entered search string",startSearch:"Start typing to see search results",title:"Members"},modeHint:{moderatorsOnly:"Only moderators can start new conversations. Replies to received messages remain possible.",search:{membersViaAccess:"Only members with matching packages appear in the search. Moderators cannot be contacted from this list.",open:"Only members with matching packages appear in the search."}},newChat:"New chat",notStarted:{message:"Continue an existing conversation or search for community members to
2531start a new one.",newChat:"New conversation with {{name}}",title:"Open a conversation"},onboarding:{button:"Create profile",description:"To use the chat, you first need to create your community profile. Click below to get started.",title:"Set up your profile to start chatting"},returnToLatest:"Return to latest",search:{minChars:"Type at least 2 characters to search",noResults:"No messages found",openInChat:"Search messages",placeholder:{conversation:"Find conversation",global:"Search all messages...",inChat:"Search messages...",member:"Find members"},resultCount:"{count, plural, one {# result} other {# results}}",truncated:"Showing partial results. Try a more specific query to scan everything."},state:{offline:"offline",online:"online"},today:"Today",unreadMessages:"{{ counter }} unread Messages",yesterday:"Yesterday"};var z$4=(()=>{class t{constructor(){this._schoolUserQuery=g$k(M$a),this._router=g$k(H$8),this._maQuery=g$k(f$8);}canActivate(){return this._schoolUserQuery.selectLoading().pipe(Pt$b(e=>!e),Kf$1(()=>_I([this._schoolUserQuery.select(e=>e.communityOnboarding),this._maQuery.select("spacesActive")])),sp$2(0),st$c(([e,r])=>r?e?true:this._router.parseUrl("/user/onboarding"):this._router.parseUrl("/")))}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var u$2=(()=>{class t extends w$c{get IPAD(){return navigator?.platform==="MacIntel"&&navigator?.maxTouchPoints>1}get isTouchDevice(){return this.IOS||this.ANDROID||this.IPAD}get isIosTouchDevice(){return this.IOS||this.IPAD}get MAC(){return navigator.userAgent.includes("Mac")}get isPWA(){return window.matchMedia("(display-mode: standalone)").matches}get isStandalone(){return this.isPWA||navigator.standalone===true}static{this.\u0275fac=(()=>{let e;return function(n){return (e||(e=Wg$1(t)))(n||t)}})();}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var m$3=(()=>{class o{constructor(){this._document=g$k(Te$g),this._window=g$k(c$9),this._platformService=g$k(u$2),this.lastScrollPos=0,this._lockCount=0;}togglePortalOpenClass(t){if(t==="add")this._lockCount++,this._lockCount===1&&this._applyLock();else {if(this._lockCount===0)return;this._lockCount--,this._lockCount===0&&this._releaseLock();}}_applyLock(){let t=this.getBody(),s=this._window.innerWidth-this._document.documentElement.clientWidth;this._document.documentElement.style.setProperty("--body-scrollbar-width",`${s}px`),this._document.body.classList.add("portal-open"),this._platformService.isIosTouchDevice&&t&&(this.lastScrollPos=this._window.scrollY,t.style.top=`-${this.lastScrollPos}px`,t.style.position="fixed",t.style.width="100%");}_releaseLock(){let t=this.getBody();t?.classList.remove("portal-open"),this._platformService.isIosTouchDevice&&t&&(t.style.removeProperty("position"),t.style.removeProperty("top"),t.style.removeProperty("width"),this._window.scrollTo(0,this.lastScrollPos));}getBody(){return this._document.querySelector("body")}static{this.\u0275fac=function(s){return new(s||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var n$4=new b$g("Unread space items",{factory(){return yI({})}});var H$4=(()=>{class n{constructor(){this._window=g$k(c$9);}saveToSessionStorage(e,r){this._window.sessionStorage.setItem(e,JSON.stringify(r));}getDataFromSessionStorage(e){let r=this._window.sessionStorage.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return console.log("parsing failed"),null}}savePlainToLocalStorage(e,r){this._window.localStorage.setItem(e,r);}deleteKey(e){this._window.localStorage.removeItem(e);}getPlainFromLocalStorage(e){return this._window.localStorage.getItem(e)}saveToLocalStorage(e,r){this._window.localStorage.setItem(e,JSON.stringify(r));}getDataFromLocalStorage(e){let r=this._window.localStorage.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return console.log("parsing failed"),null}}static{this.\u0275fac=function(r){return new(r||n)};}static{this.\u0275prov=L$l({token:n,factory:n.\u0275fac,providedIn:"root"});}}return n})();var z$3=["determinateSpinner"];function L$3(n,V){if(n&1&&(yh$1(),ta$3(0,"svg",11),Vv$1(1,"circle",12),Pd$1()),n&2){let e=yM();
2531Pv$1("viewBox",e._viewBox()),uT(),Ma$2("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Pv$1("r",e._circleRadius());}}var j$4=new b$g("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:B$5})}),B$5=100,F$2=10,ne$1=(()=>{class n{_elementRef=g$k(gt$f);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=g$k(j$4),r=d$e(),t=this._elementRef.nativeElement;this._noopAnimations=r==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=t.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&r==="reduced-motion"&&t.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth));}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0));}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0;}_diameter=B$5;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return (this.diameter-F$2)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return `0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=qS({type:n,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,t){if(r&1&&Jv$1(z$3,5),r&2){let o;CM(o=wM())&&(t._determinateCircle=o.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,t){r&2&&(Pv$1("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",t.mode==="determinate"?t.value:null)("mode",t.mode),BM("mat-"+t.color),Ma$2("width",t.diameter,"px")("height",t.diameter,"px")("--mat-progress-spinner-size",t.diameter+"px")("--mat-progress-spinner-active-indicator-width",t.diameter+"px"),iD("_mat-animation-noopable",t._noopAnimations)("mdc-circular-progress--indeterminate",t.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",mf$1],diameter:[2,"diameter","diameter",mf$1],strokeWidth:[2,"strokeWidth","strokeWidth",mf$1]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,t){if(r&1&&(gv$1(0,L$3,2,8,"ng-template",null,0,SN),ta$3(2,"div",2,1),yh$1(),ta$3(4,"svg",3),Vv$1(5,"circle",4),Pd$1()(),vh$1(),ta$3(6,"div",5)(7,"div",6)(8,"div",7),$v$1(9,8),Pd$1(),ta$3(10,"div",9),$v$1(11,8),Pd$1(),ta$3(12,"div",10),$v$1(13,8),Pd$1()()()),r&2){let o=TM(1);uT(4),Pv$1("viewBox",t._viewBox()),uT(),Ma$2("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeDashOffset(),"px")("stroke-width",t._circleStrokeWidth(),"%"),Pv$1("r",t._circleRadius()),uT(4),jv$1("ngTemplateOutlet",o),uT(2),jv$1("ngTemplateOutlet",o),uT(2),jv$1("ngTemplateOutlet",o);}},dependencies:[Ix$1],styles:[`.mat-mdc-progress-spinner { 2532 --mat-progress-spinner-animation-multiplier: 1; 2533 display: block; 2534 overflow: hidden; 2535 line-height: 0; 2536 position: relative; 2537 direction: ltr; 2538 transition: opacity 250ms cubic-bezier(0.4, 0, 0.6, 1); 2539} 2540.mat-mdc-progress-spinner circle { 2541 stroke-width: var(--mat-progress-spinner-active-indicator-width, 4px); 2542} 2543.mat-mdc-progress-spinner._mat-animation-noopable, .mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle { 2544 transition: none !important; 2545} 2546.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic, 2547.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer, 2548.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container { 2549 animation: none !important; 2550} 2551.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle { 2552 stroke-dasharray: 0 !important; 2553} 2554@media (forced-colors: active) { 2555 .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic, 2556 .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle { 2557 stroke: currentColor; 2558 stroke: CanvasText; 2559 } 2560} 2561 2562.mat-progress-spinner-reduced-motion { 2563 --mat-progress-spinner-animation-multiplier: 1.25; 2564} 2565 2566.mdc-circular-progress__determinate-container, 2567.mdc-circular-progress__indeterminate-circle-graphic, 2568.mdc-circular-progress__indeterminate-container, 2569.mdc-circular-progress__spinner-layer { 2570 position: absolute; 2571 width: 100%; 2572 height: 100%; 2573} 2574 2575.mdc-circular-progress__determinate-container { 2576 transform: rotate(-90deg); 2577} 2578.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container { 2579 opacity: 0; 2580} 2581 2582.mdc-circular-progress__indeterminate-container { 2583 font-size: 0; 2584 letter-spacing: 0; 2585 white-space: nowrap; 2586 opacity: 0; 2587} 2588.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container { 2589 opacity: 1; 2590 animation: mdc-circular-progress-container-rotate calc(1568.2352941176ms * var(--mat-progress-spinner-animation-multiplier)) linear infinite; 2591} 2592 2593.mdc-circular-progress__determinate-circle-graphic, 2594.mdc-circular-progress__indeterminate-circle-graphic { 2595 fill: transparent; 2596} 2597 2598.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle, 2599.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic { 2600 stroke: var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary)); 2601} 2602@media (forced-colors: active) { 2603 .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle, 2604 .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic { 2605 stroke: CanvasText; 2606 } 2607} 2608 2609.mdc-circular-progress__determinate-circle { 2610 transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1); 2611} 2612 2613.mdc-circular-progress__gap-patch { 2614 position: absolute; 2615 top: 0; 2616 left: 47.5%; 2617 box-sizing: border-box; 2618 width: 5%; 2619 height: 100%; 2620 overflow: hidden; 2621} 2622 2623.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic { 2624 left: -900%; 2625 width: 2000%; 2626 transform: rotate(180deg); 2627} 2628.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic { 2629 width: 200%; 2630} 2631.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic { 2632 left: -100%; 2633} 2634.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic { 2635 animation: mdc-circular-progress-left-spin calc(1333ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both; 2636} 2637.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic { 2638 animation: mdc-circular-progress-right-spin calc(1333ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both; 2639} 2640 2641.mdc-circular-progress__circle-clipper { 2642 display: inline-flex; 2643 position: relative; 2644 width: 50%; 2645 height: 100%; 2646 overflow: hidden; 2647} 2648 2649.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer { 2650 animation: mdc-circular-progress-spinner-layer-rotate calc(5332ms * var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both; 2651} 2652 2653@keyframes mdc-circular-progress-container-rotate { 2654 to { 2655 transform: rotate(360deg); 2656 } 2657} 2658@keyframes mdc-circular-progress-spinner-layer-rotate { 2659 12.5% { 2660 transform: rotate(135deg); 2661 } 2662 25% { 2663 transform: rotate(270deg); 2664 } 2665 37.5% { 2666 transform: rotate(405deg); 2667 } 2668 50% { 2669 transform: rotate(540deg); 2670 } 2671 62.5% { 2672 transform: rotate(675deg); 2673 } 2674 75% { 2675 transform: rotate(810deg); 2676 } 2677 87.5% { 2678 transform: rotate(945deg); 2679 } 2680 100% { 2681 transform: rotate(1080deg); 2682 } 2683} 2684@keyframes mdc-circular-progress-left-spin { 2685 from { 2686 transform: rotate(265deg); 2687 } 2688 50% { 2689 transform: rotate(130deg); 2690 } 2691 to { 2692 transform: rotate(265deg); 2693 } 2694} 2695@keyframes mdc-circular-progress-right-spin { 2696 from { 2697 transform: rotate(-265deg); 2698 } 2699 50% { 2700 transform: rotate(-130deg); 2701 } 2702 to { 2703 transform: rotate(-265deg); 2704 } 2705} 2706`],encapsulation:2})}return n})();var ie$2=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275mod=Sa$2({type:n});static \u0275inj=io$5({imports:[K$j]})}return n})();
2706var o$1=class o{static hexToRgba(e,t){this._validateAlpha(t);let{r,g:a,b:s}=this._parseHex(e);return `rgba(${r}, ${a}, ${s}, ${t})`}static hexToRgbaObject(e,t){this._validateAlpha(t);let{r,g:a,b:s}=this._parseHex(e);return {r,g:a,b:s,a:t}}static rgbaToString(e){return `rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`}static parseHexToRgb(e){this._validateHexColor(e);let t=e.trim().slice(1);if(t.length===4||t.length===8)throw new Error(`parseHexToRgb does not accept ${t.length}-digit hex "${e}". Use parseHexToRgba instead.`);return this._parseHex(e)}static parseHexToRgba(e){this._validateHexColor(e);let t=e.trim().replace("#","");if(t.length===4){let n=parseInt(t[3]+t[3],16);return {r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:Math.round(n/255*1e3)/1e3}}if(t.length===8){let n=parseInt(t.slice(6,8),16);return {r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:Math.round(n/255*1e3)/1e3}}let{r,g:a,b:s}=this._parseHex(e);return {r,g:a,b:s,a:1}}static getLuminance(e){let{r:t,g:r,b:a}=this._parseHex(e),[s,n,c]=[t,r,a].map(l=>{let i=l/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)});return .2126*s+.7152*n+.0722*c}static getContrastRatio(e,t){let r=this.getLuminance(e),a=this.getLuminance(t),s=Math.max(r,a),n=Math.min(r,a);return (s+.05)/(n+.05)}static isLightColor(e){return this.getContrastRatio(e,"#FFFFFF")<4.5}static isColorConflict(e,t){return this.getContrastRatio(e,t)<4.5}static _validateHexColor(e){let t=e.trim();if(!t||t[0]!=="#")throw new Error('Invalid hex color: must be a non-empty string starting with "#"');if(!/^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{4}$|^[0-9A-Fa-f]{6}$|^[0-9A-Fa-f]{8}$/.test(t.replace("#","")))throw new Error(`Invalid hex color format: "${e}". Expected format: #RGB, #RGBA, #RRGGBB, or #RRGGBBAA`)}static _validateAlpha(e){if(e<0||e>1)throw new Error(`Invalid alpha value: "${e}". Expected value between 0 and 1`)}static _parseHex(e){this._validateHexColor(e);let t=e.trim().replace("#",""),r=t.length===3||t.length===4,a=parseInt(r?t[0]+t[0]:t.substring(0,2),16),s=parseInt(r?t[1]+t[1]:t.substring(2,4),16),n=parseInt(r?t[2]+t[2]:t.substring(4,6),16);return {r:a,g:s,b:n}}};var N=function(e){return typeof e=="function"},P$1=(function(){function e(){this._subs=[];}return e.prototype.add=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._subs=this._subs.concat(t);},Object.defineProperty(e.prototype,"sink",{set:function(t){this._subs.push(t);},enumerable:true,configurable:true}),e.prototype.unsubscribe=function(){this._subs.forEach(function(t){return t&&N(t.unsubscribe)&&t.unsubscribe()}),this._subs=[];},e})();var k$1=T$4("NightMode"),T$1=(()=>{class e{constructor(){this._logger=g$k($E);}async setNightMode(r){let o=U$5.getPlatform();if(!(!U$5.isNativePlatform()||o!=="android"&&o!=="ios")&&U$5.isPluginAvailable("NightMode"))try{await k$1.setNightMode({mode:r});}catch(i){this._logger.warn("Failed to set night mode",i);}}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var d$3={light:{bodyBg:"#F9F9FB",headerBg:"#FFFFFF",headerColor:"#404040",primary:"#2563EB"},dark:{headerBg:"#171717"}};function a$2(e,t,r,o){let i=[e.documentElement];o==="body"?i=[e.querySelector("body")]:o==="root-and-body"&&i.push(e.querySelector("body"));for(let n of i)r?n?.style.setProperty(t,r):n?.style.removeProperty(t);}var O$1=40;function p$3(e){let{r:t,g:r,b:o}=o$1.parseHexToRgba(e);return Math.max(t,r,o)-Math.min(t,r,o)<O$1}var A$2=4.5,w$1=[20],$$4=[20],H$3=[40,30,20,10],U$1={r:38,g:38,b:38},j$3={r:245,g:245,b:245},V$1={r:0,g:0,b:0},W$2={r:255,g:255,b:255};function B$4(e){return o$1.getContrastRatio("#ffffff",e)>o$1.getContrastRatio("#000000",e)}function z$2(e){return B$4(e)?j$3:U$1}function G$2(e,t,r){let o=r/100,i=(n,c)=>Math.round(n*(1-o)+c*o);return {r:i(e.r,t.r),g:i(e.g,t.g),b:i(e.b,t.b)}}function q$2({r:e,g:t,b:r}){let o=i=>i.toString(16).padStart(2,"0");return `#${o(e)}${o(t)}${o(r)}`}function x$1({r:e,g:t,b:r}){return `rgb(${e} ${t} ${r})`}function S$2(e,t){return o$1.getContrastRatio(q$2(e),t)>=A$2}function R$3(e,t){let r=z$2(e),o=o$1.parseHexToRgb(e);for(let i of t){let n=G$2(r,o,i);if(S$2(n,e))return n}return S$2(r,e)?r:B$4(e)?W$2:V$1}function M$1(e){let t=p$3(e)?[]:w$1;return x$1(R$3(e,t))}function _$1(e){let t=p$3(e)?$$4:H$3;return x$1(R$3(e,t))}var L$2=(e,t,r)=>{let o=t?.primaryColor||d$3.light.primary,i=t?.bodyBg||d$3.light.bodyBg,n=r?.sideNavEnabled?d$3.light.headerColor:t?.headerColor||d$3.light.headerColor;a$2(e,"--client-body-bg",t?.bodyBg);let c=t?.sideMenuBg||t?.bodyBg||d$3.light.bodyBg;e.documentElement.style.setProperty("--client-sidemenu-bg",c),e.documentElement.style.setProperty("--client-sidemenu-color",M$1(c)),e.documentElement.style.setProperty("--client-sidemenu-group-color",_$1(c));let l=t?.headerBg||d$3.light.headerBg;a$2(e,"--client-header-bg",t?.headerBg);let m=r?.sideNavEnabled?i:l;e.documentElement.classList.toggle("client-header-dark",o$1.getLuminance(m)<.5),a$2(e,"--client-header-color",n),e.documentElement.style.setProperty("--client-header-light-color",o$1.hexToRgba(n,.8)),e.documentElement.style.setProperty("--client-header-border-color",o$1.hexToRgba(n,.2)),e.documentElement.style.setProperty("--client-header-icon-color",o$1.hexToRgba(n,.7)),e.documentElement.style.setProperty("--client-header-icon-hover-color",o$1.hexToRgba(n,.8)),a$2(e,"--client-footer-bg",t?.footerBg),a$2(e,"--client-footer-color",t?.footerColor),a$2(e,"--client-footer2-color",t?.footer2Color,"body"),a$2(e,"--client-primary",t?.primaryColor,"root-and-body"),e.documentElement.style.setProperty("--client-header-link-tab-color",K$2(o,l)?"#ffffff"
2706:o);},K$2=(e,t)=>{let r=o$1.getLuminance(e),o=o$1.getLuminance(t),i=1,n=Math.abs(o-r);return Math.abs(o-i)>n};var Se$2=(()=>{class e{constructor(){this._document=g$k(Te$g),this._nightMode=g$k(T$1),this.isServer=xG(g$k(AC$1)),this._appliedDark=null,this._deviceThemeOverride$=new Gr$6(null),this.deviceThemeOverride$=this._deviceThemeOverride$.asObservable();}setDeviceThemeOverride(r){this._deviceThemeOverride$.next(r);}async setTheme(r){let o=r?.theme,i=r?.customView;L$2(this._document,o,{sideNavEnabled:r?.sideNavEnabled});let n;if(o?.primaryColor){let{r:l,g:m,b:D}=o$1.hexToRgbaObject(o.primaryColor,1);n=`${l} ${m} ${D}`;}a$2(this._document,"--primary",n,"root-and-body");let c=["--border-radius","--border-radius-md","--border-radius-lg","--border-radius-xl","--border-radius-2xl","--border-radius-3xl","--border-radius-4xl"];if(i?.disableBorderRadius)for(let l of c)this._document.documentElement.style.setProperty(l,"0px");else for(let l of c)this._document.documentElement.style.removeProperty(l);i?.baseFontSize?this._document.documentElement.style.setProperty("--base-font-size",`${i?.baseFontSize}px`):this._document.documentElement.style.removeProperty("--base-font-size"),this.isServer||(await import('./chunk-Deelyb0q.js')).setFont(o,this._document),this._document.documentElement.style.setProperty("--draft-text",`'${this._getDraftText(r)}'`);}setDarkTheme(r){if(this._appliedDark===r)return;let o=this._document.querySelector("body");o&&(r?(o.classList.remove("isLightTheme"),o.classList.add("isDarkTheme","dark")):(o.classList.remove("isDarkTheme","dark"),o.classList.add("isLightTheme")),this._appliedDark=r,this._nightMode.setNightMode(r?"dark":"light"));}_getDraftText(r){return (r?.customView?.languageMA||n$6.De)===n$6.De?"Entwurf":"Draft"}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var t$4=[{id:"Inter",name:"Inter"},{id:"Roboto",name:"Roboto"},{id:"Roboto Slab",name:"Roboto Slab"},{id:"Poppins",name:"Poppins"},{id:"Open Sans",name:"Open Sans"},{id:"Lato",name:"Lato"},{id:"Source Sans Pro",name:"Source Sans Pro"},{id:"Spectral",name:"Spectral"},{id:"Playfair Display",name:"Playfair Display"},{id:"Oswald",name:"Oswald"},{id:"Montserrat",name:"Montserrat"},{id:"Raleway",name:"Raleway"}],r$5=t$4.map(({id:a})=>a);function s$2(a){return r$5.some(e=>e===a)}var i$3={font:"Inter"};ve$b.enum(["courses","spaces","dashboard","agent"]);var d$2=a=>{let e=a?.customView;return e?!e.themeOption&&e.darkTheme?"lightModeDefault":e.themeOption||"forceLightMode":"forceLightMode"};var be$1=/^\d{4}-\d{2}-\d{2}$/;function je(t){if(!be$1.test(t))return false;let[a,e,r]=t.split("-").map(Number),o=new Date(Date.UTC(a,e-1,r));return o.getUTCFullYear()===a&&o.getUTCMonth()===e-1&&o.getUTCDate()===r}var de$2=class de{constructor(){this.subs=new P$1;}canActivate(a){return this.subs.sink=this.sync(a.params).subscribe(),true}canDeactivate(){return this.deactivateCallback(),this.subs.unsubscribe(),true}deactivateCallback(){}};var Ne$1=(()=>{class t{constructor(){this.queryClient=g$k(_$d),this.queryKey=["user-next-lessons"],this._userService=g$k(Ai),this.getUserNextLessons=()=>ie$b(()=>({queryKey:this.queryKey,queryFn:()=>EI(this._userService.getUserNextLessons())}));}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var We$1=(()=>{class t{constructor(){this._userService=g$k(Ai),this._schoolUserQuery=g$k(M$a),this._memberAreaQuery=g$k(f$8),this._router=g$k(H$8),this._fpService=g$k(Lt$3),this._noti=g$k(wi$1),this._injector=g$k(oe$e),this._authService=g$k(Je$2),this._logger=g$k($E),this._deviceIdentity=g$k(Xn$3);}canActivate(){return this._logger.info("[DIAG][FingerprintGuard] canActivate start"),this._authService.isPreviewSession()?yI(true):_I([this._memberAreaQuery.selectLoading(),this._schoolUserQuery.selectLoading()]).pipe(Ip$1(([e,r])=>this._logger.info("[DIAG][FingerprintGuard] loading tick",{mLoading:e,uLoading:r})),Pt$b(([e,r])=>!e&&!r),$f$1(),Ip$1(()=>this._logger.info("[DIAG][FingerprintGuard] both stores loaded, proceeding")),Kf$1(()=>this._memberAreaQuery.select()),PI(this._schoolUserQuery.select()),Kf$1(([e,r])=>(this._logger.info("[DIAG][FingerprintGuard] ma+user ready",{fpActive:e?.fingerprint?.active,fpDevices:e?.fingerprint?.fpDevices,fpDisabled:r?.fingerprintDisabled}),!e?.fingerprint?.active||!e?.fingerprint?.fpDevices||r?.fingerprintDisabled?yI(true):this.fingerPrint(e))))}fingerPrint(e){if(!this.devices$){let r=this._userService.getUserDevicesQuery(this._injector);this.devices$=ZG(r.data,{injector:this._injector});}return _I([this._fpService.getFingerprint(),this.devices$,je$e(this._deviceIdentity.getStableDeviceId())]).pipe(Pt$b(([r,o])=>!!r&&!!o),$f$1(),rp$2({first:8e3}),st$c(([r,o,s])=>{let v=U$5.isNativePlatform()&&s?s:r.visitorId;return o.length&&o.find(S=>S.visitorId===v)&&e?.fingerprint?.fpDevices>=o.length?true:o.length<e?.fingerprint?.fpDevices?(this._userService.registerDevice(v,r.browserName,r.os).pipe(Ip$1(()=>this._userService.invalidateUserDevicesQuery()),gc$1(()=>(this._noti.errorIntl("client.profile.fingerprint.noAccess"),yI(false)))).subscribe(),true):(this._noti.warningIntl("client.profile.fingerprint.noAccess"),this._router.parseUrl("/user/devices"))}),gc$1(r=>(this._logger.error("[DIAG][FingerprintGuard] timed out or errored \u2014 redirecting to /user/devices",{name:r?.name??String(r)}),yI(this._router.parseUrl("/user/devices")))))}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var ot$2=(()=>{class t{constructor(){this._router=g$k(H$8),this._location=g$k(DE$1
2706),this._history=[],this._router.events.pipe(Pt$b(e=>e instanceof O$9)).subscribe(e=>{this._history.push(e.urlAfterRedirects);});}async back(e){this._history.pop(),this._history.length>0?this._location.back():e();}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var ve$2=new b$g("google-tag-manager-config"),we$1=(()=>{class t{constructor(e){this._googleTagManagerConfig={id:null,gtm_auth:"",gtm_preview:""},e&&this.set(e);}set(e){this._googleTagManagerConfig=e;}get(){return this._googleTagManagerConfig}static{this.\u0275fac=function(r){return new(r||t)(G$k(ve$2,8))};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})(),pt$2=(()=>{class t{static forRoot(e){return {ngModule:t,providers:[{provide:ve$2,useValue:e}]}}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275mod=Sa$2({type:t});}static{this.\u0275inj=io$5({});}}return t})();var ye$1=(()=>{class t{constructor(e,r,o="noisy",s,v,S,Ie){this.googleTagManagerConfiguration=e,this.googleTagManagerId=r,this.googleTagManagerMode=o,this.googleTagManagerAuth=s,this.googleTagManagerPreview=v,this.googleTagManagerResourcePath=S,this.googleTagManagerCSPNonce=Ie,this.isLoaded=false,this.browserGlobals={windowRef(){return window},documentRef(){return document}},this.config=this.googleTagManagerConfiguration?.get(),this.config==null&&(this.config={id:null}),this.config=s$e(r$d({},this.config),{id:r||this.config.id,gtm_auth:s||this.config.gtm_auth,gtm_preview:v||this.config.gtm_preview,gtm_resource_path:S||this.config.gtm_resource_path}),this.config.id!=null;}checkForId(){if(this.googleTagManagerMode!=="silent"&&!this.config.id)throw new Error("Google tag manager ID not provided.");return !!this.config.id}getDataLayer(){this.checkForId();let e=this.browserGlobals.windowRef();return e.dataLayer=e.dataLayer||[],e.dataLayer}pushOnDataLayer(e){this.checkForId(),this.getDataLayer().push(e);}addGtmToDom(){return new Promise((e,r)=>{if(this.isLoaded)return e(this.isLoaded);if(!this.checkForId())return e(false);let o=this.browserGlobals.documentRef();this.pushOnDataLayer({"gtm.start":new Date().getTime(),event:"gtm.js"});let s=o.createElement("script");s.id="GTMscript",s.async=true,s.src=this.applyGtmQueryParams(this.config.gtm_resource_path?this.config.gtm_resource_path:"https://www.googletagmanager.com/gtm.js"),s.addEventListener("load",()=>e(this.isLoaded=true)),s.addEventListener("error",()=>r(false)),this.googleTagManagerCSPNonce&&s.setAttribute("nonce",this.googleTagManagerCSPNonce),o.head.insertBefore(s,o.head.firstChild);})}pushTag(e){return new Promise((r,o)=>{if(!this.checkForId())return r();if(!this.isLoaded)this.addGtmToDom().then(()=>(this.pushOnDataLayer(e),r())).catch(()=>o());else return this.pushOnDataLayer(e),r()})}applyGtmQueryParams(e){return e.indexOf("?")===-1&&(e+="?"),e+Object.keys(this.config).filter(r=>this.config[r]).map(r=>`${r}=${this.config[r]}`).join("&")}static{this.\u0275fac=function(r){return new(r||t)(G$k(we$1,8),G$k("googleTagManagerId",8),G$k("googleTagManagerMode",8),G$k("googleTagManagerAuth",8),G$k("googleTagManagerPreview",8),G$k("googleTagManagerResourcePath",8),G$k("googleTagManagerCSPNonce",8))};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Dt$2=(()=>{class t{constructor(){this._gtmService=g$k(ye$1),this._router=g$k(H$8),this._gtmId$=new le$d,this._init=false,this._auth=new le$d,this._lectureCompleted=new le$d,this._gtmId$.pipe($f$1(),Kf$1(()=>xI(this._pageEvent(),this._auth,this._lectureCompleted)),Kf$1(e=>this._gtmService.pushTag(e)),gc$1(e=>(console.error(e),yI(null)))).subscribe();}initService(e){this._init||(this._gtmId$.next(e),this._init=true);}authEvent(e,r){this._auth.next({user_email:e,user_name:r});}lectureCompletedEvent(){this._lectureCompleted.next({event:"lectureCompleted"});}_pageEvent(){return this._router.events.pipe(Pt$b(e=>e instanceof O$9),st$c(e=>({event:"page",pageName:e.url})))}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var _e=new b$g("DARK_THEME"),Ct$3={provide:_e,useFactory:()=>{let t=g$k(Se$2);return _I([Pe$4([g$k(f$8).selectAfterLoading(),g$k(M$a).select()]),t.deviceThemeOverride$]).pipe(st$c(([[a,e],r])=>
2706{if(r!==null)return r;let o=d$2(a),s=e?.userSettings?.darkTheme;switch(o){case "lightModeDefault":return s??false;case "darkModeDefault":return s??true;case "forceLightMode":return false;case "forceDarkMode":return true}}),pp$2(),Ip$1(a=>t.setDarkTheme(!!a)),vp({bufferSize:1,refCount:true}))}},Et$2=JS(()=>(a=>()=>a.pipe($f$1()))(g$k(_e))());var Se$1=(()=>{let t=class j extends z$f{constructor(){super();}static{this.\u0275fac=function(r){return new(r||j)};}static{this.\u0275prov=L$l({token:j,factory:j.\u0275fac,providedIn:"root"});}};return t=k0([we$8({name:"user-courses"}),F0("design:paramtypes",[])],t),t})();var Qt$2=(()=>{class t extends r$8{constructor(){super(g$k(Se$1));}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function De$1(t,a){if(!t)return [];let e=Object.values(t);return a&&(e=e.sort((r,o)=>(r[a]||0)-(o[a]||0))),e}var $t$2=(()=>{class t{transform(e,r){return De$1(e,r)}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=Yn$8({name:"objArr",type:t,pure:true});}}return t})();var Wt$2=(()=>{class t extends B$8{constructor(){super(),this.width=200;}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275dir=mt$d({type:t,selectors:[["","mspotInput","","width",""]],hostAttrs:["autocomplete","off"],hostVars:2,hostBindings:function(r,o){r&2&&Ma$2("width",o.width,"px");},inputs:{width:[2,"width","width",mf$1]},features:[cN([{provide:B$8,useExisting:Qi$3(()=>t)}]),pv$1]});}}return t})();var rr$1=(()=>{class t{constructor(){this._searchTermsKey="searchTerms",this._shortDescriptionKey="searchShortDescription",this._localStorageService=g$k(H$4),this.searchTermsSignal=On$7(this._getInitialSearchTermsFromLocalStorage()),this.shortDescriptionSignal=On$7(this._getInitialShortDescriptionFromLocalStorage());}saveSearchShortDescriptionInLocalStorage(e){this._setNewShortDescription(e);}saveSearchTermInLocalStorage(e){let r=this.searchTermsSignal();r.includes(e)?r.sort((o,s)=>o===e?-1:s===e?1:0):(r.length>4&&r.pop(),r.unshift(e)),this._setNewSearchTerms(r);}removeSearchedTerm(e){let r=this.searchTermsSignal().filter(o=>e!==o);this._setNewSearchTerms(r);}_getInitialShortDescriptionFromLocalStorage(){return this._localStorageService.getDataFromLocalStorage(this._shortDescriptionKey)??null}_setNewShortDescription(e){this._localStorageService.savePlainToLocalStorage(this._shortDescriptionKey,e),this.shortDescriptionSignal.set(e);}_getInitialSearchTermsFromLocalStorage(){return this._localStorageService.getDataFromLocalStorage(this._searchTermsKey)??[]}_setNewSearchTerms(e){this._localStorageService.saveToLocalStorage(this._searchTermsKey,e),this.searchTermsSignal.set([...e]);}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})(); 2707var s$1=new b$g("backend ai url"),m$2=(()=>{class t extends Ce$a{constructor(){super(...arguments),this._url=g$k(s$1);}static{this.\u0275fac=(()=>{let e;return function(a){return (e||(e=Wg$1(t)))(a||t)}})();}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();
2707function D$4(e,a){return ["aiPilotClientDetails",e,a]}function $$3(e,a,i,t){let o=e.get(`/aipilot/client/${a}/${i}`,{skipRetry:t?.skipRetry});return EI(t?.timeoutMs?o.pipe(rp$2(t.timeoutMs)):o)}var R$2=(()=>{class e{constructor(){this._route=g$k(G$8),this._httpBackendService=g$k(m$2),this._schoolIdSignal=YG(g$k(w$g),{initialValue:null}),this._aiPilotIdFromRoute=YG(this._route.paramMap.pipe(st$c(i=>i.get("aiPilotId"))),{initialValue:null}),this._explicitAiPilotId=On$7(null),this.aiPilotId=qd$1(()=>this._explicitAiPilotId()??this._aiPilotIdFromRoute());}sendMessageStream(i){let t=this._schoolIdSignal(),o=this.aiPilotId();if(!t||!o)return vI(()=>new Error("School ID or AI Pilot ID is not available for chat."));let l=s$e(r$d({},i),{aiPilotId:o}),s=`/aipilot/client/${t}/${o}/chat`;return this._httpBackendService.postGenericSseStream(s,l)}confirmAction(i,t){let o=this._schoolIdSignal(),l=this.aiPilotId();if(!o||!l)return vI(()=>new Error("School ID or AI Pilot ID is not available for confirm."));let s=`/aipilot/client/${o}/${l}/chat/${i}/confirm`;return this._httpBackendService.postGenericSseStream(s,t)}getAiPilotNameQuery(){return ie$b(()=>({queryKey:D$4(this._schoolIdSignal()??"",this.aiPilotId()??""),queryFn:()=>{let i=this._schoolIdSignal(),t=this.aiPilotId();if(!i||!t)throw new Error("School ID or AI Pilot ID is not defined.");return $$3(this._httpBackendService,i,t)},enabled:!!this._schoolIdSignal()&&!!this.aiPilotId(),retry:(i,t)=>t instanceof H$j&&[401,403,404].includes(t.status)?false:i<3}))}getRecentChatHistory(i=30){let t=this._schoolIdSignal(),o=this.aiPilotId();return !t||!o?vI(()=>new Error("School ID or AI Pilot ID is not available.")):this._httpBackendService.get(`/aipilot/client/${t}/chats?aiPilotId=${o}&limit=${i}`)}setExplicitAiPilotId(i){this._explicitAiPilotId.set(i??null);}setActiveAiPilotId(i){}getChatConversation(i){let t=this._schoolIdSignal();return t?this._httpBackendService.get(`/aipilot/client/${t}/chats/${i}`):vI(()=>new Error("School ID is not available."))}abortStream(i){let t=this._schoolIdSignal(),o=this.aiPilotId();return !t||!o?vI(()=>new Error("School ID or AI Pilot ID is not available for abort.")):this._httpBackendService.post(`/aipilot/client/${t}/${o}/chat/${i}/abort`,{})}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();var c$5={PREFIX:":",REGEX_IDENTIFIER:"/:[^/]+",REGEX_REPLACER:"/[^/]+"},v$2="@",B$3=s=>!!s&&Object.keys(s).length>0,se$1=(()=>{class s{constructor(){this.baseHref="/",this.dynamicBreadcrumbStore=[],this.currentBreadcrumbs=[],this.previousBreadcrumbs=[],this.breadcrumbs=new Gr$6([]),this.breadcrumbs$=this.breadcrumbs.asObservable(),this.activatedRoute=g$k(G$8),this.router=g$k(H$8),this.detectRouteChanges();}detectRouteChanges(){this.setupBreadcrumbs(this.activatedRoute.snapshot),this.router.events.pipe(Pt$b(e=>e instanceof yt$7)).subscribe(e=>{e.shouldActivate&&this.setupBreadcrumbs(e.state.root);});}setupBreadcrumbs(e){this.previousBreadcrumbs=this.currentBreadcrumbs;let t=this.getRootBreadcrumb();this.currentBreadcrumbs=t?[t]:[],this.prepareBreadcrumbList(e,this.baseHref);}getRootBreadcrumb(){let e=this.router.config.find(n=>n.path===""),t=this.extractObject(e?.data?.breadcrumb),r=this.getFromStore(t.alias,"/");if(B$3(t)||B$3(r))return r$d(s$e(r$d(r$d({},r),t),{routeLink:this.baseHref}),this.getQueryParamsFromPreviousList("/"))}prepareBreadcrumbItem(e,t){let{path:r,breadcrumb:n}=this.parseRouteData(e.routeConfig),a=this.resolvePathSegment(r,e),u=`${t}${a}`,l=this.getFromStore(n.alias,u),p=this.extractLabel(l?.label||n?.label,a),m=false,b="";return p||(m=true,b=a),r$d(s$e(r$d(r$d({},l),n),{label:m?b:p,routeLink:u,isAutoGeneratedLabel:m}),this.getQueryParamsFromPreviousList(u))}prepareBreadcrumbList(e,t){if(e.routeConfig?.path){let a=this.prepareBreadcrumbItem(e,t);if(this.currentBreadcrumbs.push(a),e.firstChild)return this.prepareBreadcrumbList(e.firstChild,a.routeLink+"/")}else if(e.firstChild)return this.prepareBreadcrumbList(e.firstChild,t);let r=this.currentBreadcrumbs[this.currentBreadcrumbs.length-1];this.setQueryParamsForActiveBreadcrumb(r,e);let n=this.currentBreadcrumbs.filter(a=>!a.skip);this.breadcrumbs.next(n);}getFromStore(e,t){return this.dynamicBreadcrumbStore.find(r=>e&&e===r.alias||t&&t===r.routeLink||this.matchRegex(t,r.routeRegex))}matchRegex(e,t){return e.match(new RegExp(t))?.[0]===e}resolvePathSegment(e,t){return e.includes(c$5.PREFIX)&&Object.entries(t.params).forEac
2707h(([r,n])=>{e=e.replace(`:${r}`,`${n}`);}),e}getQueryParamsFromPreviousList(e){let{queryParams:t,fragment:r}=this.previousBreadcrumbs.find(n=>n.routeLink===e)||{};return {queryParams:t,fragment:r}}setQueryParamsForActiveBreadcrumb(e,t){if(e){let{queryParams:r,fragment:n}=t;e.queryParams=r?r$d({},r):void 0,e.fragment=n;}}parseRouteData(e){let{path:t,data:r}=e,n=this.mergeWithBaseChildData(e,r?.breadcrumb);return {path:t,breadcrumb:n}}mergeWithBaseChildData(e,t){if(!e)return this.extractObject(t);let r;e.loadChildren?r=e._loadedRoutes.find(a=>a.path===""):e.children&&(r=e.children.find(a=>a.path===""));let n=r?.data?.breadcrumb;return n?this.mergeWithBaseChildData(r,r$d(r$d({},this.extractObject(t)),this.extractObject(n))):this.extractObject(t)}set(e,t){let r=this.extractObject(t),n;e.startsWith(v$2)?n=["alias",s$e(r$d({},r),{alias:e.slice(1)})]:e.includes(c$5.PREFIX)?n=["routeRegex",s$e(r$d({},r),{routeRegex:this.buildRegex(e)})]:n=["routeLink",s$e(r$d({},r),{routeLink:this.ensureLeadingSlash(e)})],n[1].isAutoGeneratedLabel=false,this.updateStore(...n),this.updateCurrentBreadcrumbs(...n);}updateStore(e,t){let r=this.dynamicBreadcrumbStore.findIndex(n=>t[e]===n[e]);r>-1?this.dynamicBreadcrumbStore[r]=r$d(r$d({},this.dynamicBreadcrumbStore[r]),t):this.dynamicBreadcrumbStore.push(r$d({},t));}updateCurrentBreadcrumbs(e,t){let r=this.currentBreadcrumbs.findIndex(n=>e==="routeRegex"?this.matchRegex(n.routeLink,t[e]):t[e]===n[e]);if(r>-1){this.currentBreadcrumbs[r]=r$d(r$d({},this.currentBreadcrumbs[r]),t);let n=this.currentBreadcrumbs.filter(a=>!a.skip);this.breadcrumbs.next([...n]);}}buildRegex(e){return this.ensureLeadingSlash(e).replace(new RegExp(c$5.REGEX_IDENTIFIER,"g"),c$5.REGEX_REPLACER)}ensureLeadingSlash(e){return e.startsWith("/")?e:`/${e}`}extractLabel(e,t){let r=typeof e=="object"?e.label:e;return typeof r=="function"?r(t):r}extractObject(e){return e&&(typeof e=="string"||typeof e=="function")?{label:e}:e||{}}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=L$l({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();var c$4="max-width-client",u$1=(()=>{class t{constructor(){this._router=g$k(H$8),this._containerClass=On$7(c$4),this.containerClass=this._containerClass.asReadonly(),this._router.events.pipe(Pt$b(e=>e instanceof re$3)).subscribe(()=>this._containerClass.set(c$4));}setContainerClass(e){this._containerClass.set(e);}static{this.\u0275fac=function(l){return new(l||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var n$3=new b$g("isHandset as stream",{providedIn:"root",factory:()=>g$k(O$8).isXs$});var gt$2=new b$g("isHandset as stream",{providedIn:"root",factory:()=>g$k(jl).isHandset$});var tt$1=["*"],et$1=(t,a)=>({"border-mspot-neutral-900/15 bg-mspot-neutral-900/[0.10] text-mspot-neutral-900":t,"bg-backgrounds-surface-raised text-mspot-neutral-600 hover:bg-mspot-neutral-900/15 border-transparent backdrop-blur-sm":a}),$$2=(()=>{class t{constructor(){this.isActive=false;}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-toggle-button"]],hostAttrs:[1,"block"],inputs:{isActive:"isActive"},ngContentSelectors:tt$1,decls:2,vars:5,consts:[["type","button","mspotButton","","size","none","variant","none","color","primary","extra","inner-outline",1,"focus-primary","focus-visible:bg-mspot-neutral-900/15","w-full","whitespace-nowrap","rounded-full","border-2","py-2","pl-2.5","pr-3",3,"ngClass"]],template:function(o,e){o&1&&(DM(),ta$3(0,"button",0),EM(1),Pd$1()),o&2&&(jv$1("ngClass",pN(2,et$1,e.isActive,!e.isActive)),Pv$1("aria-pressed",e.isActive));},dependencies:[mx$1,g$a],encapsulation:2});}}return t})();function wt$2(t){return t.scrollWidth>t.clientWidth}function G$1(t){return it$2(t)?"left":ot$1(t)?"right":"none"}function it$2(t){return t.scrollLeft<=5}function ot$1(t){return t.scrollWidth-(t.scrollLeft+t.clientWidth)<=5}var nt$2=["wrapper"],rt$2=["*"],st$2=t=>({"scrollbar:horizontal overflow-x-auto pb-2":t}),J$2=(t,a)=>({"opacity-100":t,"-z-[1] opacity-0":a});function at$2(t,a){if(t&1&&Vv$1(0,"div",4)(1,"div",5),t&2){let i=yM();jv$1("ngClass",pN(2,J$2,i.scrollEndPosition()!=="right",i.scrollEndPosition()==="right")),uT(),jv$1("ngClass",pN(5,J$2,i.scrollEndPosition()!=="left",i.scrollEndPosition()==="left"));}}function lt$2(t,a){if(t&1){let i=fM();ta$3(0,"mspot-toggle-button",6),Zv$1("click",function(){sh$1(i);let e=yM();return ah$1(e.toggleExpand())}),QM(1),EN(2,"transloco"),Pd$1();}if(t&2){let i=yM();uT(),Gd$1(" ",CN(2,1,i.isExpanded()?"common.less":"common.more"),"... ");}}var Ht$2=(()=>{class t{constructor(){this.isHorinzontalScrolling=X8(false),this.gap=X8(.75),this.#t=YG(cc$1(window,"resize").pipe(Qf$1(null),up$1(300))),this.wrapperElement=t3("wrapper"),this.isMobile=YG(g$k(n$3)),this.colorScheme=g$k(kE)?"admin":"client",this.scrollEndPosition=On$7("left"),this.isExpanded=On$7(false),this.isOverflowing=qd$1(()=>{let i=this.wrapperElement()?.nativeElement;return this.#t(),i?i.scrollWidth>i.clientWidth:false});}#t;toggleExpand(){this.isExpanded.update(i=>!i);}onScrollEnd(i){this.scrollEndPosition.set(G$1(i));}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275cmp=qS({type:t,selectors:[["mspot-responsive-list"]],viewQuery:function(o,e){o&1&&eD(e.wrapperElement,nt$2,5),o&2&&bM();},hostAttrs:[1,"flex","gap-2","overflow-hidden"],hostVars:4,hostBindings:function(o,e){o&2&&iD("flex-col",e.isExpanded())("client",e.colorScheme==="client");},inputs:{isHorinzontalScrolling:[1,"isHorinzontalScrolling"],gap:[1,"gap"]},ngContentSelectors:rt$2,decls:6,vars:13,consts:[["wrapper",""],[1,"relative","w-full","flex-1"],[1,"flex","flex-1",3,"scroll","ngClass"],[1,"h-full","self-start","lowercase"],[1,"fade-out","right-0","bg-gradient-to-l",3,"ngClass"],[1,"fade-out","left-0","bg-gradient-to-r",3,"ngClass"],[1,"h-full","self-start","lowercase",3,"click"]],template:function(o,e){if(o&1){let K=fM();DM(),ta$3(0,"div",1)(1,"div",2,0),Zv$1("scroll",function(){sh$1(K);let Y=TM(2);return ah$1(e.onScrollEnd(Y))}),EM(3),Pd$1(),eM$1(4,at$2,2,8),Pd$1(),eM$1(5,lt$2,3,3,"mspot-toggle-button",3);}o&2&&(iD("overflow-x-hidden",!e.isExpanded()&&!e.isMobile()&&!e.isHorinzontalScrolling()),uT(),Ma$2("gap",e.gap(),"rem"),iD("overflow-x-hidden",!e.isExpanded()&&!e.isMobile()&&!e.isHorinzontalScrolling())("flex-wrap",e.isExpanded()),jv$1("ngClass",fN(11,st$2,e.isMobile()||e.isHorinzontalScrolling())),uT(3),tM$1(!e.isExpanded()&&e.isOverflowing()?4:-1),uT(),tM$1(!e.isHorinzontalScrolling()&&!e.isMobile()&&(e.isOverflowing()||e.isExpanded())?5:-1));},dependencies:[$$2,mx$1,Tt$a],styles:[".fade-out[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:3.5rem;--tw-gradient-from: rgb(var(--mspot-neutral-50) / 1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(var(--mspot-neutral-50) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-out[_ngcontent-%COMP%]:is(.dark *){--tw-gradient-from: rgb(var(--mspot-neutral-50) / 1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(var(--mspot-neutral-50) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) }@media(min-width:640px){.fade-out[_ngcontent-%COMP%]{width:5rem}}.client[_nghost-%COMP%] .fade-out[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:3.5rem;--tw-gradient-from: var(--client-body-bg) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.client[_nghost-%COMP%] .fade-out[_ngcontent-%COMP%]:is(.dark *){--tw-gradient-from: rgb(var(--mspot-neutral-50) / 1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(var(--mspot-neutral-50) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) }@media(min-width:640px){.client[_nghost-%COMP%] .fade-out[_ngcontent-%COMP%]{width:5rem}}"]});}}return t})();var f$2=T$4("Browser",{web:()=>import('./chunk-BUiHd7J7.js').then(o=>new o.BrowserWeb)});var E$3=(()=>{class o{constructor(){this._logger=g$k($E),this._window=g$k(A$7);}open(n){let r;try{r=new URL(n,this._window.location.href);}catch(e){this._logger.warn("[ExternalLink] Could not parse url",{message:e instanceof Error?e.message:String(e)});return}if(r.protocol!=="http:"&&r.protocol!=="https:"){this._logger.warn("[ExternalLink] Refusing unsafe protocol",{protocol:r.protocol});return}let i=r.href,m=`${r.origin}${r.pathname}`;if(U$5.isNativePlatform()){f$2.open({url:i}
2707).catch(e=>{this._logger.error("[ExternalLink] Browser.open rejected",{url:m,message:e instanceof Error?e.message:String(e)});});return}this._window.open(i,"_blank","noopener,noreferrer");}static{this.\u0275fac=function(r){return new(r||o)};}static{this.\u0275prov=L$l({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var o=new b$g("CLIENT_DASHBOARD_USER_SERVICE_TOKEN");var t$3=new b$g("widgetData"),n=new b$g("show widget heading palceholder"),r$4=new b$g("user data for widgets");var e=new b$g("Bunny CDN video embed proxy origin");var D$3=(()=>{class i{constructor(){this._afAuth=g$k(nt$c),this._window=g$k(c$9);}async onClick(){await ee$1(this._afAuth,this._window);}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275dir=mt$d({type:i,selectors:[["","mspotSignOut",""]],hostBindings:function(t,f){t&1&&Zv$1("click",function(){return f.onClick()});}});}}return i})();var r$3=T$4("FirebaseAuthentication",{web:()=>import('./chunk-CTUeVOhc.js').then(t=>new t.FirebaseAuthenticationWeb)});var i$2=(function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e})(i$2||{}),c$3="*";function _(e,t){return {type:i$2.Trigger,name:e,definitions:t,options:{}}}function f$1(e,t=null){return {type:i$2.Animate,styles:t,timings:e}}function F$1(e,t=null){return {type:i$2.Sequence,steps:e,options:t}}function d$1(e){return {type:i$2.Style,styles:e,offset:null}}function y$4(e,t,s){return {type:i$2.State,name:e,styles:t,options:s}}function m$1(e){return {type:i$2.Keyframes,steps:e}}function p$2(e,t,s=null){return {type:i$2.Transition,expr:e,animation:t,options:s}}function g$4(e=null){return {type:i$2.AnimateChild,options:e}}function S$1(e,t,s=null){return {type:i$2.Query,selector:e,animation:t,options:s}}var a$1=class a{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(t=0,s=0){this.totalTime=t+s;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]);}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t);}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t);}onDestroy(t){this._onDestroyFns.push(t);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(t){this._position=this.totalTime?t*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let s=t=="start"?this._onStartFns:this._onDoneFns;s.forEach(n=>n()),s.length=0;}},l$1=class l{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let s=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++s==h&&this._onFinish();}),r.onDestroy(()=>{++n==h&&this._onDestroy();}),r.onStart(()=>{++o==h&&this._onStart();});}),this.totalTime=this.players.reduce((r,u)=>Math.max(r,u.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]);}init(){this.players.forEach(t=>t.init());}onStart(t){this._onStartFns.push(t);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(t=>t()),this._onStartFns=[]);}onDone(t){this._onDoneFns.push(t);}onDestroy(t){this._onDestroyFns.push(t);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEac
2707h(t=>t.play());}pause(){this.players.forEach(t=>t.pause());}restart(){this.players.forEach(t=>t.restart());}finish(){this._onFinish(),this.players.forEach(t=>t.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this.players.forEach(t=>t.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(t){let s=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,s/n.totalTime):1;n.setPosition(o);});}getPosition(){let t=this.players.reduce((s,n)=>s===null||n.totalTime>s.totalTime?n:s,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy();});}triggerCallback(t){let s=t=="start"?this._onStartFns:this._onDoneFns;s.forEach(n=>n()),s.length=0;}},D$2="!";var Y$3=(()=>{class i{constructor(){this.isLoading$=new gn$a(1),this.data=[];}setLoading(e){this.isLoading$.next(e);}getSearchedItems$(e,n){return e?yI(this.data.filter(t=>t?.[n].toLowerCase().includes(e.toLowerCase()))).pipe(Ip$1(()=>this.isLoading$.next(false))):yI(this.data).pipe(Ip$1(()=>this.isLoading$.next(false)))}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275prov=L$l({token:i,factory:i.\u0275fac});}}return i})();var st$1=["*"];function at$1(i,l){i&1&&(jd$1(0,"span",1),yh$1(),jd$1(1,"svg",2),Bv$1(2,"path",3),Vd$1()());}var A$1=(()=>{class i{constructor(){this._elRef=g$k(gt$f),this.selected=X8(false),this.showSelectedIcon=X8(true),this.value=X8(),this.customClasses=X8(),this._hostClass=qd$1(()=>{let e="group box-border h-10 cursor-default select-none relative py-2 text-mspot-neutral-700 hover:text-mspot-neutral-900 hover:bg-mspot-neutral-100 rounded-md mx-1 border-2 border-transparent focus-primary--inner-outline ";return e+=this.customClasses()||(this.selected()?"pl-3 pr-6":"px-3"),e});}getLabel(){throw new Error("Method not implemented.")}focus(){this._elRef.nativeElement.focus();}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["li","mspotOption",""]],hostAttrs:["attr.role","option","tabindex","-1"],hostVars:3,hostBindings:function(n,t){n&2&&(Pv$1("aria-disabled",t.disabled||null),BM(t._hostClass()));},inputs:{selected:[1,"selected"],showSelectedIcon:[1,"showSelectedIcon"],value:[1,"value"],customClasses:[1,"customClasses"],disabled:"disabled"},ngContentSelectors:st$1,decls:3,vars:3,consts:[[1,"block","truncate"],[1,"text-primary","absolute","inset-y-0","right-0","flex","items-center"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor","aria-hidden","true",1,"h-5","w-5"],["fill-rule","evenodd","d","M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule","evenodd"]],template:function(n,t){n&1&&(DM(),jd$1(0,"span",0),EM(1),Vd$1(),eM$1(2,at$1,3,0,"span",1)),n&2&&(iD("font-semibold",t.selected()),uT(2),tM$1(t.selected()&&t.showSelectedIcon()?2:-1));},encapsulation:2});}}return i})();var rt$1=["*"];function ct$1(i,l){i&1&&(ta$3(0,"span",2),yh$1(),ta$3(1,"svg",3),Vv$1(2,"path",4),Pd$1()());}var it$1=(()=>{class i{constructor(){this._elRef=g$k(gt$f),this.selected=false,this._selectedValue=[],this.role="option",this.tabindex="-1";}set selectedValue(e){this._selectedValue=e,e&&e?.includes(this.value)?this.selected=true:this.selected=false;}get selectedValue(){return this._selectedValue}get hostClass(){return `flex items-center group cursor-default select-none relative py-2 pl-3 pr-9 2708 text-mspot-neutral-700 hover:bg-mspot-neutral-100 rounded-md mx-1 border-2 focus-visible:rounded-lg border-transparent focus-visible:border-primary`}getLabel(){throw new Error("Method not implemented.")}focus(){this._elRef.nativeElement.focus();}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=qS({type:i,selectors:[["li","mspotMultiOption",""]],hostVars:4,hostBindings:function(n,t){n&2&&(zv$1("tabIndex",t.tabindex),Pv$1("role",t.role),BM(t.hostClass));},inputs:{value:"value",selectedValue:"selectedValue"},features:[cN([{provide:A$1,useExisting:Qi$3(()=>i)}])],ngContentSelectors:rt$1,decls:4,vars:5,consts:[[3,"value","noValueUpdate"],[1,"mr-2","flex","items-center","truncate"],[1,"text-primary","absolute","
2708inset-y-0","right-0","flex","items-center","pr-4"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor","aria-hidden","true",1,"h-5","w-5"],["fill-rule","evenodd","d","M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule","evenodd"]],template:function(n,t){n&1&&(DM(),Vv$1(0,"mspot-checkbox",0),ta$3(1,"span",1),EM(2),Pd$1(),eM$1(3,ct$1,3,0,"span",2)),n&2&&(jv$1("value",t.selected)("noValueUpdate",true),uT(),iD("font-semibold",t.selected),uT(2),tM$1(t.selected?3:-1));},dependencies:[X$d],encapsulation:2});}}return i})();var pt$1=["searchInput"],dt$1=["selectTrigger"],mt$1=6,nt$1=(()=>{class i{constructor(){this._destroyRef=g$k(de$b),this._cdr=g$k(Va$2),this._elRef=g$k(gt$f),this._dataSourceService=g$k(Y$3),this.disabled=false,this.loading=false,this.valueKey="id",this.labelKey="name",this.optionStylesKey="optionStyles",this.descriptionKey="description",this.translate=false,this.items=[],this.itemSize=40,this.description=false,this.enableNull=false,this.multi=false,this.tooltips=false,this.dataSource=this._dataSourceService,this.useGhostButtonStyle=false,this.matchTriggerWidth=true,this.iconName="heroChevronUpDown",this.selectTriggerDataCy="selectComponentDropDownBtn",this.selectTriggerOnboardingTarget=X8(),this.firstOptionOnboardingTarget=X8(),this.closeOnSelection=X8(false),this.customStyles=X8(""),this.additionalStyles=X8(""),this.selectionChange=new Ct$h,this.open=false,this.touched=false,this.width=210,this.searchCtrl=new B$k(""),this.searchItems$=this.searchCtrl.valueChanges.pipe(Ip$1(()=>this.dataSource.setLoading(true)),up$1(300),Qf$1(""),Kf$1(e=>this.dataSource.getSearchedItems$(e,this.labelKey))),this.search=new le$d,this.onChange=e=>{},this.onTouched=()=>{};}set searchInput(e){e&&e.nativeElement.focus();}get isSearchActive(){return this.searchable??(this.items?.length??0)>mt$1}ngOnDestroy(){this.search.complete();}ngOnInit(){this.search.pipe(qG(this._destroyRef),LI(this.search.pipe(up$1(500))),st$c(e=>this.items?.findIndex(n=>n?.[this.labelKey]?.toLocaleLowerCase().startsWith(e.join("").toLocaleLowerCase())))).subscribe(e=>e!==void 0&&e>=0?this._goToIndexAndFocus(e):null);}ngOnChanges(e){e.description&&(this.itemSize=this.description?60:40),(e.items||e.value)&&this.manualItemsChange();}manualItemsChange(){this._updateViewValue(),this._updateMultiValueWithMatchingItems(this.value),this._cdr.markForCheck(),this._dataSourceService.data=this.items||[];}selected(e,n){if(n?.preventDefault(),!(this.itemDisabledKey&&e!=null&&this.items?.find(o=>o[this.valueKey]===e)?.[this.itemDisabledKey])){if(this.multi){(!Array.isArray(this.value)||e===null)&&(this.value=[]);let t=[...this.value];if(t.includes(e)){let o=t.findIndex(d=>d===e);t.splice(o,1);}else t.push(e);this.value=[...t],this.focusedValue=e;}else this.value=e;this._updateViewValue(),this.onChange(this.value),this.selectionChange.emit(this.value),this.onTouched(),this.multi?this.closeOnSelection()&&(this.open=false,this.selectTrigger?.nativeElement.focus()):(this.open=false,this.focusedValue=void 0,this.selectTrigger?.nativeElement.focus());}}triggerMenuOpen(){!this.open&&!this.items?.length||(!this.open&&this.matchTriggerWidth&&(this.width=this._elRef.nativeElement.getBoundingClientRect().width),this._focus(),this.open=!this.open,this.open?(!this.multi&&this.viewIndex!==void 0&&setTimeout(()=>{let e=this.viewIndex;this.scrollPort?.scrollToIndex(e>0?e-1:0);},10),this.focusedValue=void 0):this.selectTrigger?.nativeElement.focus());}writeValue(e){this.multi&&this.items?.length?this._updateMultiValueWithMatchingItems(e):this.value=e,this._updateViewValue(),this._cdr.markForCheck();}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.disabled=e;}onKeydown(e,n=true){switch(e.keyCode){case 9:this._tabHandler(e);break;case 13:e.preventDefault(),this._enterHandler();break;case 27:e.preventDefault(),this._escHandler();break;case 38:e.preventDefault(),this._arrowUpHandler();break;case 40:e.preventDefault(),this._arrowDownHandler();break;default:n&&this.search.next(e.key);break}}createTrackByFn(){return (e,n)=>n?.[this.valueKey]||e}_enterHandler(){this.focusedValue!==void 0&&this.open?this.selected(this.focusedValue):this.triggerMenuOpen();}_tabHandler(e){this.open&&(e.preventDefault(),this.focusedValue!==void 0&&this.open?this.selected(this.focusedValue):this.triggerMenuOpen());}_escHandler(){this.open&&this.triggerMenuOpen();}_arrowUpHandler(){let e=-1;if(this.focusedValue===void 0){let t=this.items?this.items.length:0;this._goToIndexAndFocus(t);return}let n=this.opts?this.opts.length:0;for(let t=0;t<n;t++)if(this.opts?.get(t)?.value()===this.focusedValue){e=t>0?t-1:t,this._focusOption(t);break}for(let t=0;t<n;t++){if(t===e){this._focusOption(t);let o=this.scrollPort?.getRenderedRange();this.scrollPort?.scrollToIndex(t+this._getScrollPosStart(o));break}t===n-1&&this._focusOption(0);}}_arrowDownHandler(){if(this.focusedValue===void 0){this._focusFirstOption();return}if(!this.opts)return;let e;for(let n=0;n<this.opts?.length;n++)if(this.opts?.get(n)?.value()===this.focusedValue){if(e=n+1,e===this.opts.length)this._focusOption(this.opts.length-1);else {this._focusOption(n+1);let o=this.scrollPort?.getRenderedRange();this.scrollPort?.scrollToIndex(n+this._getScrollPosStart(o));}break}}_focus(){this.selectTrigger?.nativeElement?.focus();}_goToIndexAndFocus(e){this.scrollPort?.scrollToIndex(e),setTimeout(()=>{this._findOptionAndFocus(e);},10);}_findOptionAndFocus(e){if(this.items===null||this.items===void 0)return;let n=this.items[e];if(n===void 0)return;let t=this.opts?.find(o=>
2708o.value()===n[this.valueKey]);t?.focus(),this.focusedValue=t?.value();}_focusFirstOption(){this.scrollPort?.scrollToIndex(0),setTimeout(()=>{this._focusOption(0);},10);}_focusOption(e){let n=this.opts?.get(e);n?.focus(),this.focusedValue=n?.value();}_updateViewValue(){if(this.multi)this.viewValue=Array.isArray(this.value)?this.value.map(n=>this._findItemByValue(n)?.[this.labelKey]||"").join(", "):"";else {let n=this.items?.find(d=>d[this.valueKey]===this.value),t=n&&this.itemDisabledKey&&n[this.itemDisabledKey];if(n&&!t){let d=this.items?.indexOf(n);this.viewIndex=d;}this.selectedItem=t?void 0:n;let o=t?"":n?.[this.labelKey]||"";o!==this.viewValue&&(this.viewValue=o);}let e=this.items?.length||0;this.height=e>6?6*this.itemSize:e*this.itemSize;}_findItemByValue(e){return this.items?.find(n=>n?.[this.valueKey]===e)}_updateMultiValueWithMatchingItems(e){this.multi&&this.items?.length&&(Array.isArray(e)?this.value=e.filter(n=>this.items.findIndex(t=>t?.[this.valueKey]===n)>=0):this.value=[]);}_getScrollPosStart(e){return e?e.start:0}_setSearchControlAsDisabledIfApplicable(){this.isSearchActive&&(this.disabled||this.items?.length===0)&&this.searchCtrl.disable(),this.isSearchActive&&!this.disabled&&(this.items?.length||0)>0&&this.searchCtrl.enable();}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275dir=mt$d({type:i,viewQuery:function(n,t){if(n&1&&Jv$1(pt$1,5)(ai$4,5)(dt$1,5,gt$f)(A$1,5),n&2){let o;CM(o=wM())&&(t.searchInput=o.first),CM(o=wM())&&(t.scrollPort=o.first),CM(o=wM())&&(t.selectTrigger=o.first),CM(o=wM())&&(t.opts=o);}},inputs:{disabled:"disabled",loading:"loading",value:"value",label:"label",labelTooltip:"labelTooltip",valueKey:"valueKey",labelKey:"labelKey",optionStylesKey:"optionStylesKey",descriptionKey:"descriptionKey",translate:"translate",items:"items",itemSize:"itemSize",description:"description",enableNull:"enableNull",multi:"multi",searchable:"searchable",disableFn:"disableFn",itemDisabledKey:"itemDisabledKey",itemDisabledTooltipKey:"itemDisabledTooltipKey",tooltips:"tooltips",emptyMes:"emptyMes",placeholder:"placeholder",noBorder:"noBorder",dataSource:"dataSource",useGhostButtonStyle:"useGhostButtonStyle",matchTriggerWidth:"matchTriggerWidth",iconName:"iconName",dataCy:"dataCy",selectTriggerDataCy:"selectTriggerDataCy",selectTriggerOnboardingTarget:[1,"selectTriggerOnboardingTarget"],firstOptionOnboardingTarget:[1,"firstOptionOnboardingTarget"],closeOnSelection:[1,"closeOnSelection"],customStyles:[1,"customStyles"],additionalStyles:[1,"additionalStyles"]},outputs:{selectionChange:"selectionChange"},features:[Ar$8]});}}return i})();var ot=(()=>{class i{transform(e,n){if(n)return {[e]:n}}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275pipe=Yn$8({name:"mapIconInput",type:i,pure:true});}}return i})();var ut$1=["optionTpl"],ht$1=["buttonIcon"],ft$2=[[["","slot","icon"]],[["","slot","buttonprefix"]],[["","slot","selectbtncontent"]]],_t$2=["[slot='icon']","[slot='buttonPrefix']","[slot='selectBtnContent']"],ie$1=i=>({$implicit:i}),lt$1=i=>({"mt-2":i}),gt$1=i=>({"text-mspot-neutral-500":i});function yt$1(i,l){return this.createTrackByFn()(i,l)}function Ct$2(i,l){if(i&1&&Vv$1(0,"mspot-tooltip",20),i&2){let e=yM(2);jv$1("text",e.labelTooltip);}}function bt$1(i,l){if(i&1&&(ta$3(0,"label",11)(1,"span"),QM(2),Pd$1(),eM$1(3,Ct$2,1,1,"mspot-tooltip",20),Pd$1()),i&2){let e=yM();uT(2),Gd$1(" ",e.label," "),uT(),tM$1(e.labelTooltip?3:-1);}}function xt$2(i,l){i&1&&$v$1(0);}function vt$1(i,l){if(i&1&&Vv$1(0,"ng-icon",21),i&2){let e=yM(2);jv$1("name",e.iconName);}}function St$1(i,l){if(i&1&&eM$1(0,vt$1,1,1,"ng-icon",21),i&2){let e=yM();tM$1(e.customStyles()?-1:0);}}function Tt$1(i,l){i&1&&(yh$1(),ta$3(0,"svg",18),Vv$1(1,"circle",22)(2,"path",23),Pd$1());}function wt$1(i,l){i&1&&$v$1(0);}function Ot$1(i,l){if(i&1&&(ta$3(0,"div",30),gv$1(1,wt$1,1,0,"ng-container",33),Pd$1()),i&2){yM(3);let e=TM(28);uT(),jv$1("ngTemplateOutlet",e);}}function kt$1(i,l){if(i&1){let e=fM();ta$3(0,"mspot-form-field-std",25)(1,"input",29,9),EN(3,"transloco"),Zv$1("keydown",function(t){sh$1(e);let o=yM(2);return ah$1(o.onKeydown(t,false))}),Pd$1(),iS(),eM$1(4,Ot$1,2,1,"div",30),EN(5,"async"),ta$3(6,"span",31),Vv$1(7,"ng-icon",32),Pd$1()();}if(i&2){let e=yM(2);uT(),jv$1("formControl",e.searchCtrl)("placeholder",CN(3,3,"common.search")),aS(),uT(3),tM$1(CN(
27085,5,e.dataSource.isLoading$)?4:-1);}}function It$1(i,l){if(i&1){let e=fM();ta$3(0,"li",36),Zv$1("click",function(){sh$1(e);let t=yM(3);return ah$1(t.selected(null))}),QM(1," - "),Pd$1();}if(i&2){let e=yM(3);jv$1("value",null)("showSelectedIcon",e.showSelectedIcon);}}function Dt$1(i,l){if(i&1){let e=fM();ta$3(0,"li",37),Zv$1("click",function(){sh$1(e);let t=yM(3);return ah$1(t.selected(null))}),QM(1," - "),Pd$1();}i&2&&jv$1("value",null);}function Vt$1(i,l){if(i&1&&(ta$3(0,"ul",26),eM$1(1,It$1,2,2,"li",34)(2,Dt$1,2,1,"li",35),Pd$1()),i&2){let e=yM(2);jv$1("ngClass",fN(2,lt$1,!e.isSearchActive)),uT(),tM$1(e.multi?2:1);}}function Kt$1(i,l){i&1&&$v$1(0);}function Et$1(i,l){if(i&1){let e=fM();ta$3(0,"li",39,10),Zv$1("click",function(){let t=sh$1(e).$implicit,o=yM(3);return ah$1(o.selected(t[o.valueKey]))}),gv$1(2,Kt$1,1,0,"ng-container",16),Pd$1();}if(i&2){let e=l.$implicit,n=l.index,t=yM(3),o=TM(22),d=TM(24),N=TM(26),L=tN(0);iD("opacity-50",t.itemDisabledKey&&e[t.itemDisabledKey])("cursor-not-allowed",t.itemDisabledKey&&e[t.itemDisabledKey]),jv$1("selected",e[t.valueKey]===t.value)("value",e[t.valueKey])("matTooltip",t.itemDisabledTooltipKey&&t.itemDisabledKey&&e[t.itemDisabledKey]&&e[t.itemDisabledTooltipKey]?e[t.itemDisabledTooltipKey]:t.tooltips?e[t.labelKey]:"")("matTooltipDisabled",!(t.itemDisabledTooltipKey&&t.itemDisabledKey&&e[t.itemDisabledKey]&&e[t.itemDisabledTooltipKey]||t.tooltips))("matTooltipShowDelay",500)("showSelectedIcon",t.showSelectedIcon)("customClasses",e[t.optionStylesKey])("disabled",!!(t.itemDisabledKey&&e[t.itemDisabledKey])),Pv$1("data-cy","listbox-option-"+n)("data-onboarding",n===0?L:null),uT(2),jv$1("ngTemplateOutlet",t.optionTpl?t.optionTpl:t.icon&&t.iconKey?N:t.description?d:o)("ngTemplateOutletContext",fN(16,ie$1,e));}}function Bt$1(i,l){if(i&1&&(gv$1(0,Et$1,3,18,"li",38),EN(1,"async")),i&2){let e=yM(2);jv$1("cdkVirtualForOf",e.isSearchActive?CN(1,2,e.searchItems$):e.items)("cdkVirtualForTrackBy",e.createTrackByFn());}}function Mt$1(i,l){i&1&&$v$1(0);}function Rt$2(i,l){if(i&1){let e=fM();ta$3(0,"li",41),Zv$1("click",function(t){let o=sh$1(e).$implicit,d=yM(3);return ah$1(d.selected(o[d.valueKey],t))}),gv$1(1,Mt$1,1,0,"ng-container",16),Pd$1();}if(i&2){let e=l.$implicit,n=l.$index,t=yM(3),o=TM(22),d=TM(24),N=TM(26),L=tN(0);jv$1("value",e[t.valueKey])("selectedValue",t.value)("matTooltip",e[t.labelKey])("matTooltipDisabled",!t.tooltips)("matTooltipShowDelay",500),Pv$1("data-cy","listbox-option-"+n)("data-onboarding",n===0?L:null),uT(),jv$1("ngTemplateOutlet",t.optionTpl?t.optionTpl:t.icon&&t.iconKey?N:t.description?d:o)("ngTemplateOutletContext",fN(9,ie$1,e));}}function Ft$1(i,l){if(i&1&&(oM(0,Rt$2,2,11,"li",40,yt$1,true),EN(2,"async")),i&2){let e=yM(2);iM(e.isSearchActive?CN(2,0,e.searchItems$):e.items);}}function Pt$1(i,l){if(i&1){let e=fM();ta$3(0,"div",24),eM$1(1,kt$1,8,7,"mspot-form-field-std",25),eM$1(2,Vt$1,3,4,"ul",26),ta$3(3,"cdk-virtual-scroll-viewport",27),Zv$1("keydown",function(t){sh$1(e);let o=yM();return ah$1(o.onKeydown(t))}),eM$1(4,Bt$1,2,4,"li",28)(5,Ft$1,3,2),Pd$1()();}if(i&2){let e=yM();uT(),tM$1(e.isSearchActive?1:-1),uT(),tM$1(e.enableNull?2:-1),uT(),Ma$2("height",e.height,"px"),jv$1("ngClass",fN(10,lt$1,!e.isSearchActive&&!e.enableNull))("@openClose",void 0)("itemSize",e.itemSize)("minBufferPx",400)("maxBufferPx",600),uT(),tM$1(e.multi?5:4);}}function At$1(i,l){if(i&1&&(ta$3(0,"span",42),QM(1),EN(2,"transloco"),EN(3,"transloco"),Pd$1()),i&2){let e=yM();jv$1("ngClass",fN(6,gt$1,!e.disabled&&e.items?.length)),uT(),Gd$1(" ",e.items?.length?e.placeholder||(e.customStyles()||e.useGhostButtonStyle?"":CN(3,4,"common.select")):e.emptyMes||e.placeholder||(e.customStyles()||e.useGhostButtonStyle?"":CN(2,2,"common.select"))," ");}}function Nt$1(i,l){if(i&1&&(ta$3(0,"span",43),QM(1),EN(2,"transloco"),Pd$1()),i&2){let e=yM();uT(),Gd$1(" ",e.translate?CN(2,1,e.viewValue):e.viewValue," ");}}function Lt$1(i,l){if(i&1&&(ta$3(0,"span",43),QM(1),EN(2,"transloco"),Pd$1()),i&2){let e=l.$implicit,n=yM();uT(),Gd$1(" ",n.translate?CN(2,1,e&&e[n.labelKey]):e&&e[n.labelKey]," ");}}function Ht$1(i,l){if(i&1&&(ta$3(0,"div",44)(1,"span",43),QM(2),EN(3,"transloco"),Pd$1(),ta$3(4,"span",45),QM(5),EN(6,"transloco"),Pd$1()()),i&2){let e=l.$implicit,n=yM();uT(2),Gd$1(" ",n.translate?CN(3,2,e&&e[n.labelKey]):e&&e[n.labelKey]," "),uT(3),Gd$1(" ",n.translate?e&&CN(6,4,e[n.descriptionKey]):e&&e[n.descriptionKey]," ");}}function $t$1(i,l){}function Wt$1(i,l){if(i&1&&(ta$3(0,"span",47),gv$1(1,$t$1,0,0,"ng-template",49),EN(2,"mapIconInput"),Pd$1()),i&2){let e=l,n=yM().$implicit,t=yM();uT(),jv$1("ngComponentOutlet",e.component)("ngComponentOutletInputs",wN(2,2,e.iconInputKey,n?.[t.iconKey]));}}function jt$1(i,l){if(i&1&&Vv$1(0,"ng-icon",48),i&2){let e=yM().$implicit,n=yM();jv$1("name",e[n.iconKey]);}}function Qt$1(i,l){if(i&1&&(ta$3(0,"span",46),eM$1(1,Wt$1,3,5,"span",47)(2,jt$1,1,1,"ng-icon",48),QM(3),EN(4,"transloco"),Pd$1()),i&2){let e,n=l.$implicit,t=yM();uT(),tM$1((e=t.customOptionIcon())?1:2,e),uT(2),Gd$1(" ",t.translate?CN(4,2,n&&n[t.labelKey]):n&&n?.[t.labelKey]," ");}}function zt$1(i,l){i&1&&(yh$1(),ta$3(0,"svg",50),Vv$1(1,"circle",22)(2,"path",23),Pd$1());}var Xi=(()=>{class i extends nt$1{constructor(){super(...arguments),this.customOptionIcon=X8(),this.iconKey="icon",this.icon=false,this.showSelectedIcon=true,this.fullWidth=true,this.buttonIconRef=On$7(null);}get hostDataCy(){return this.dataCy??null}set buttonIcon(e){e&&this.buttonIconRef.set(e.nativeElement);}get buttonStyles(){let e="disabled:border-mspot-neutral-500 ";return this.customStyles()||(e+="w-full py-2 pl-3 pr-10 text-sm "),this.open&&(e+="ring-primary border-primary outline-none ring-1 "),
2708!this.noBorder&&!this.useGhostButtonStyle&&(e+="border shadow-sm "),(this.buttonIconRef()?.children?.length||0)>0&&(e+="flex items-center gap-2 "),!this.useGhostButtonStyle&&!this.customStyles()&&(e+="bg-backgrounds-surface-raised backdrop-blur-sm focus-primary relative w-full truncate rounded-lg border border-mspot-neutral-300 text-left shadow-sm transition-colors hover:enabled:border-mspot-neutral-900/40"),this.useGhostButtonStyle&&(e+="btn btn-gray--basic flex "),this.customStyles()&&(e+=this.customStyles()),this.additionalStyles()&&(e+=this.additionalStyles()),e}static{this.\u0275fac=(()=>{let e;return function(t){return (e||(e=Wg$1(i)))(t||i)}})();}static{this.\u0275cmp=qS({type:i,selectors:[["mspot-select"]],contentQueries:function(n,t,o){if(n&1&&Kv$1(o,ut$1,5,rn$a),n&2){let d;CM(d=wM())&&(t.optionTpl=d.first);}},viewQuery:function(n,t){if(n&1&&Jv$1(ht$1,5),n&2){let o;CM(o=wM())&&(t.buttonIcon=o.first);}},hostAttrs:[1,"relative","inline-block","text-left","min-w-0"],hostVars:3,hostBindings:function(n,t){n&2&&(Pv$1("data-cy",t.hostDataCy),iD("w-full",t.fullWidth));},inputs:{customOptionIcon:[1,"customOptionIcon"],iconKey:"iconKey",icon:"icon",showSelectedIcon:"showSelectedIcon",fullWidth:"fullWidth"},features:[cN([{provide:E$f,useExisting:Qi$3(()=>i),multi:true},Y$3]),pv$1],ngContentSelectors:_t$2,decls:29,vars:17,consts:[["trigger","cdkOverlayOrigin"],["selectTrigger",""],["buttonIcon",""],["emptyTpl",""],["titleTpl",""],["stdTpl",""],["descTpl",""],["iconTpl",""],["loadingTpl",""],["searchInput",""],["option",""],["id","listbox-label",1,"text-mspot-neutral-700","mb-1","flex","items-center","truncate","text-sm","font-medium"],["cdkOverlayOrigin",""],["type","button","aria-haspopup","listbox","aria-expanded","true","aria-labelledby","listbox-label","tabindex","0",2,"height","38px",3,"click","keydown","ngClass","disabled"],[1,"-ml-0.5","flex","items-center","empty:hidden"],[1,"empty:hidden"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"pointer-events-none","absolute","inset-y-0","right-0","flex","items-center","pr-2"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"text-text-subtle","h-5","w-5","animate-spin"],["cdkConnectedOverlay","",3,"backdropClick","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayOffsetY","cdkConnectedOverlayBackdropClass","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayWidth"],["position","below",3,"text"],[1,"text-icons-subtle","text-xl",3,"name"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],[1,"bg-backgrounds-surface-raised","ring-borders-primary","dark:border-borders-primary","flex","w-full","flex-col","rounded-md","text-sm","shadow-lg","ring-1","ring-opacity-5","backdrop-blur-sm","focus:outline-none","dark:border"],[1,"p-1.5"],["role","listbox",1,"mx-0","mb-0","mt-0","list-none","px-0",3,"ngClass"],["tabindex","-1","role","listbox","aria-labelledby","listbox-label",1,"scrollbar","mb-1","w-full",3,"keydown","ngClass","itemSize","minBufferPx","maxBufferPx"],["mspotOption","","matTooltipPosition","left",1,"list-none",3,"selected","value","matTooltip","matTooltipDisabled","matTooltipShowDelay","showSelectedIcon","customClasses","disabled","opacity-50","cursor-not-allowed"],["type","text",1,"peer/input","bg-mspot-neutral-100","h-10","w-full","rounded-lg","border-none","pl-9","pr-8","text-sm","shadow-none","focus:ring-0",3,"keydown","formControl","placeholder"],[1,"absolute","right-1","top-[50%]","translate-y-[-50%]","scale-75"],[1,"peer-focus/input:text-primary","text-mspot-neutral-400","peer-hover/input:text-mspot-neutral-500","pointer-events-none","absolute","inset-y-0","left-0","flex","items-center","justify-center","px-2","transition-colors"],["name","heroMagnifyingGlass",1,"text-lg","text-inherit"],[4,"ngTemplateOutlet"],["mspotOption","","data-cy","listbox-option-null",1,"list-none",3,"value","showSelectedIcon"],["mspotMultiOption","","data-cy","listbox-option-null",3,"value"],["mspotOption","","data-cy","listbox-option-null",1,"list-none",3,"click","value","showSelectedIcon"],["mspotMultiOption","","data-cy","listbox-option-null",3,"click","value"],["mspotOption","","matTooltipPosition","left","class","list-none",3,"selected","value","matTooltip","matTooltipDisabled","matTooltipShowDelay","showSelectedIcon","customClasses","disabled","opacity-50","cursor-not-allowed","click",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],["mspotOption","","matTooltipPosition","left",1,"list-none",3,"click","
2708selected","value","matTooltip","matTooltipDisabled","matTooltipShowDelay","showSelectedIcon","customClasses","disabled"],["mspotMultiOption","",3,"value","selectedValue","matTooltip","matTooltipDisabled","matTooltipShowDelay"],["mspotMultiOption","",3,"click","value","selectedValue","matTooltip","matTooltipDisabled","matTooltipShowDelay"],[1,"whitespace-nowrap",3,"ngClass"],[1,"block","truncate"],[1,"h-10"],[1,"text-mspot-neutral-500","block","truncate","font-normal"],[1,"flex","items-center","truncate"],[1,"mr-1"],[1,"mr-2","text-xl",3,"name"],[3,"ngComponentOutlet","ngComponentOutletInputs"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"text-mspot-neutral-400","h-5","w-5","animate-spin"]],template:function(n,t){if(n&1&&(DM(ft$2),wD(0),eM$1(1,bt$1,4,2,"label",11),ta$3(2,"div",12,0)(4,"button",13,1),Zv$1("click",function(){return t.triggerMenuOpen()})("keydown",function(d){return t.onKeydown(d)}),ta$3(6,"div",14,2),EM(8),Pd$1(),ta$3(9,"div",15),EM(10,1),Pd$1(),EM(11,2),gv$1(12,xt$2,1,0,"ng-container",16),ta$3(13,"span",17),eM$1(14,St$1,1,1)(15,Tt$1,3,0,":svg:svg",18),Pd$1()()(),gv$1(16,Pt$1,6,12,"ng-template",19),Zv$1("backdropClick",function(){return t.open=false}),gv$1(17,At$1,4,8,"ng-template",null,3,SN)(19,Nt$1,3,3,"ng-template",null,4,SN)(21,Lt$1,3,3,"ng-template",null,5,SN)(23,Ht$1,7,6,"ng-template",null,6,SN)(25,Qt$1,5,4,"ng-template",null,7,SN)(27,zt$1,3,0,"ng-template",null,8,SN)),n&2){let o=TM(3),d=TM(18),N=TM(20),L=TM(26);eN(t.firstOptionOnboardingTarget()),uT(),tM$1(t.label?1:-1),uT(3),jv$1("ngClass",t.buttonStyles)("disabled",t.disabled||!t.items?.length),Pv$1("data-cy",t.selectTriggerDataCy)("data-onboarding",t.selectTriggerOnboardingTarget()),uT(8),jv$1("ngTemplateOutlet",t.viewValue?t.optionTpl&&!t.multi?t.optionTpl:t.icon&&t.iconKey&&!t.customOptionIcon()?L:N:d)("ngTemplateOutletContext",fN(15,ie$1,t.selectedItem)),uT(2),tM$1(t.loading?15:14),uT(2),jv$1("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",t.open)("cdkConnectedOverlayOffsetY",1)("cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop")("cdkConnectedOverlayHasBackdrop",true)("cdkConnectedOverlayWidth",t.width);}},dependencies:[K$f,Wt$8,mx$1,Ix$1,le$9,ui$3,ae$2,oi$5,Qe$b,Xn$7,Vn$7,ai$4,ei$4,A$1,li$4,mt$7,it$1,yx$1,bx$1,Tt$a,ot],encapsulation:2,data:{animation:[_("openClose",[p$2(":leave",[d$1({opacity:1}),f$1("100ms ease-in",d$1({opacity:0}))])])]}});}}return i})(); 2709var I$1="30251d22-c91a-4e04-9d79-3f8e84ee928f";var E$2={envTag:"production",capawesomeAppId:I$1,production:true,loglevel:"error",hideErrors:true,firebase:{apiKey:"AIzaSyBsOSvyKi9LaUCQQSdFR3e3G_HEJanqDZ0",authDomain:"auth.memberspot.de",databaseURL:"https://memberhub-34cbd.firebaseio.com",projectId:"memberhub-34cbd",storageBucket:"memberhub-34cbd.appspot.com",messagingSenderId:"731603916140",appId:"1:731603916140:web:45fe8c3231b79fb1f24f49",measurementId:"G-WNT2CKRRMH"},clientHost:"mymemberspot",backend:"https://client-api.memberspot.de",backendBetaTest:"https://backend2.memberspot.de",backendAi:"https://server-ai.memberspot.de",backendChat:"https://server-chat.memberspot.de",scormServer:"https://server-scorm.memberspot.de",sseHost:"https://sse-dot-memberhub-34cbd.appspot.com",fileCdn:"https://files.mspotcdn.de/",userFilesBucket:"gs://memberhub-34cbd-userfiles",loadIconUrl:"https://europe-west1-memberhub-34cbd.cloudfunctions.net/getPwaIcon",bitmovinAnalyticsToken:"FD54FE7E-92D7-4779-BFAD-400F94A09551",featureToggles:{eInvoice:false,clientMfa:true,communityGamification:true,communityPostAttachments:true,tasksAndSubmissions:true,eventPlan:false},version:{actor:"86766276",build:"36979620117",env:"production",sha:"73fed18c16e126b2e6551a18f56aae57c132942c",tag:"2026-10-02-0937/server-client-frontend"}};var g$3=(e,t)=>(e.navigate(["auth",t]),false),M=()=>{if(U$5.isNativePlatform())return yI(true);let e=g$k(H$8);return g$k(f$8).select().pipe(st$c(r=>r&&(r.disabled||r.isLocked)?g$3(e,"member-area-disabled"):true))},R$1=()=>{if(U$5.isNativePlatform())return yI(true);let e=g$k(H$8);return g$k(f$8).select().pipe(st$c(({disabled:t,isLocked:r})=>t||r?true:g$3(e,"login")))};var U=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-blank"]],decls:2,vars:0,consts:[[1,"h-full","overflow-auto"]],template:function(i,k){i&1&&(ta$3(0,"div",0),Vv$1(1,"router-outlet"),Pd$1());},dependencies:[wr$4],encapsulation:2});}}return e})();var y$3=3e3;async function q$1(e){try{return await qE$1(ie$d(e).pipe(rp$2(y$3),gc$1(()=>yI(null))))}catch{return null}}function H$2(e){if(B$2(e)){let t=U$5.getPlatform();if(t==="android")return e.replace("localhost","10.0.2.2");if(t==="ios")return e}return e}function Y$2(){return U$5.isNativePlatform()}function B$2(e){return U$5.isNativePlatform()&&E$2.envTag==="development"&&e.includes("localhost")} 2710function t$2(n){return typeof n=="string"}function r$2(){return t$2}var l0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M12 2.25a.75.75 0 0 1 .75.75v16.19l6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06l6.22 6.22V3a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>';var e0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M12 3.75a.75.75 0 0 1 .75.75v13.19l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6.75 6.75a.75.75 0 0 1-1.06 0l-6.75-6.75a.75.75 0 1 1 1.06-1.06l5.47 5.47V4.5a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>';var o0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M15.75 2.25H21a.75.75 0 0 1 .75.75v5.25a.75.75 0 0 1-1.5 0V4.81L8.03 17.03a.75.75 0 0 1-1.06-1.06L19.19 3.75h-3.44a.75.75 0 0 1 0-1.5Zm-10.5 4.5a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h10.5a1.5 1.5 0 0 0 1.5-1.5V10.5a.75.75 0 0 1 1.5 0v8.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V8.25a3 3 0 0 1 3-3h8.25a.75.75 0 0 1 0 1.5H5.25Z" clip-rule="evenodd"></path></svg>';var t0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path d="M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"></path><path fill-rule="evenodd" d="M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z" clip-rule="evenodd"></path></svg>';var r0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M6.32 2.577a49.255 49.255 0 0 1 11.36 0c1.497.174 2.57 1.46 2.57 2.93V21a.75.75 0 0 1-1.085.67L12 18.089l-7.165 3.583A.75.75 0 0 1 3.75 21V5.507c0-1.47 1.073-2.756 2.57-2.93Z" clip-rule="evenodd"></path></svg>';var d0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path d="M4.913 2.658c2.075-.27 4.19-.408 6.337-.408 2.147 0 4.262.139 6.337.408 1.922.25 3.291 1.861 3.405 3.727a4.403 4.403 0 0 0-1.032-.211 50.89 50.89 0 0 0-8.42 0c-2.358.196-4.04 2.19-4.04 4.434v4.286a4.47 4.47 0 0 0 2.433 3.984L7.28 21.53A.75.75 0 0 1 6 21v-4.03a48.527 48.527 0 0 1-1.087-.128C2.905 16.58 1.5 14.833 1.5 12.862V6.638c0-1.97 1.405-3.718 3.413-3.979Z"></path><path d="M15.75 7.5c-1.376 0-2.739.057-4.086.169C10.124 7.797 9 9.103 9 10.609v4.285c0 1.507 1.128 2.814 2.67 2.94 1.243.102 2.5.157 3.768.165l2.782 2.781a.75.75 0 0 0 1.28-.53v-2.39l.33-.026c1.542-.125 2.67-1.433 2.67-2.94v-4.286c0-1.505-1.125-2.811-2.664-2.94A49.392 49.392 0 0 0 15.75 7.5Z"></path></svg>';var i0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z" clip-rule="evenodd"></path></svg>';var h0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M11.828 2.25c-.916 0-1.699.663-1.85 1.567l-.091.549a.798.798 0 0 1-.517.608 7.45 7.45 0 0 0-.478.198.798.798 0 0 1-.796-.064l-.453-.324a1.875 1.875 0 0 0-2.416.2l-.243.243a1.875 1.875 0 0 0-.2 2.416l.324.453a.798.798 0 0 1 .064.796 7.448 7.448 0 0 0-.198.478.798.798 0 0 1-.608.517l-.55.092a1.875 1.875 0 0 0-1.566 1.849v.344c0 .916.663 1.699 1.567 1.85l.549.091c.281.047.508.25.608.517.06.162.127.321.198.478a.798.798 0 0 1-.064.796l-.324.453a1.875 1.875 0 0 0 .2 2.416l.243.243c.648.648 1.67.733 2.416.2l.453-.324a.798.798 0 0 1 .796-.064c.157.071.316.137.478.198.267.1.47.327.517.608l.092.55c.15.903.932 1.566 1.849 1.566h.344c.916 0 1.699-.663 1.85-1.567l.091-.549a.798.798 0 0 1 .517-.608 7.52 7.52 0 0 0 .478-.198.798.798 0 0 1 .796.064l.453.324a1.875 1.875 0 0 0 2.416-.2l.243-.243c.648-.648.733-1.67.2-2.416l-.324-.453a.798.798 0 0 1-.064-.796c.071-.157.137-.316.198-.478.1-.267.327-.47.608-.517l.55-.091a1.875 1.875 0 0 0 1.566-1.85v-.344c0-.916-.663-1.699-1.567-1.85l-.549-.091a.798.798 0 0 1-.608-.517 7.507 7.507 0 0 0-.198-.478.798.798 0 0 1 .064-.796l.324-.453a1.875 1.875 0 0 0-.2-2.416l-.243-.243a1.875 1.875 0 0 0-2.416-.2l-.453.324a.798.798 0 0 1-.796.064 7.462 7.462 0 0 0-.478-.198.798.798 0 0 1-.517-.608l-.091-.55a1.875 1.875 0 0 0-1.85-1.566h-.344ZM12 15.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z" clip-rule="evenodd"></path></svg>',n0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path d="M17.004 10.407c.138.435-.216.842-.672.842h-3.465a.75.75 0 0 1-.65-.375l-1.732-3c-.229-.396-.053-.907.393-1.004a5.252 5.252 0 0 1 6.126 3.537ZM8.12 8.464c.307-.338.838-.235 1.066.16l1.732 3a.75.75 0 0 1 0 .75l-1.732 3c-.229.397-.76.5-1.067.161A5.23 5.23 0 0 1 6.75 12a5.23 5.23 0 0 1 1.37-3.536ZM10.878 17.13c-.447-.098-.623-.608-.394-1.004l1.733-3.002a.75.75 0 0 1 .65-.375h3.465c.457 0 .81.407.672.842a5.252 5.252 0 0 1-6.126 3.539Z"></path><path fill-rule="evenodd" d="M21 12.75a.75.75 0 1 0 0-1.5h-.783a8.22 8.22 0 0 0-.237-1.357l.734-.267a.75.75 0 1 0-.513-1.41l-.735.268a8.24 8.24 0 0 0-.689-1.192l.6-.503a.75.75 0 1 0-.964-1.149l-.6.504a8.3 8.3 0 0 0-1.054-.885l.391-.678a.75.75 0 1 0-1.299-.75l-.39.676a8.188 8.188 0 0 0-1.295-.47l.136-.77a.75.75 0 0 0-1.477-.26l-.136.77a8.36 8.36 0 0 0-1.377 0l-.136-.77a.75.75 0 1 0-1.477.26l.136.77c-.448.121-.88.28-1.294.47l-.39-.676a.75.75 0 0 0-1.3.75l.392.678a8.29 8.29 0 0 0-1.054.885l-.6-.504a.75.75 0 1 0-.965 1.149l.6.503a8.243 8.243 0 0 0-.689 1.192L3.8 8.216a.75.75 0 1 0-.513 1.41l.735.267a8.222 8.222 0 0 0-.238 1.356h-.783a.75.75 0 0 0 0 1.5h.783c.042.464.122.917.238 1.356l-.735.268a.75.75 0 0 0 .513 1.41l.735-.268c.197.417.428.816.69 1.191l-.6.504a.75.75 0 0 0 .963 1.15l.601-.505c.326.323.679.62 1.054.885l-.392.68a.75.75 0 0 0 1.3.75l.39-.679c.414.192.847.35 1.294.471l-.136.77a.75.75 0 0 0 1.477.261l.137-.772a8.332 8.332 0 0 0 1.376 0l.136.772a.75.75 0 1 0 1.477-.26l-.136-.771a8.19 8.19 0 0 0 1.294-.47l.391.677a.75.75 0 0 0 1.3-.75l-.393-.679a8.29 8.29 0 0 0 1.054-.885l.601.504a.75.75 0 0 0 .964-1.15l-.6-.503c.261-.375.492-.774.69-1.191l.735.267a.75.75 0 1 0 .512-1.41l-.734-.267c.115-.439.195-.892.237-1.356h.784Zm-2.657-3.06a6.744 6.744 0 0 0-1.19-2.053 6.784 6.784 0 0 0-1.82-1.51A6.705 6.705 0 0 0 12 5.25a6.8 6.8 0 0 0-1.225.11 6.7 6.7 0 0 0-2.15.793 6.784 6.784 0 0 0-2.952 3.489.76.76 0 0 1-.036.098A6.74 6.74 0 0 0 5.251 12a6.74 6.74 0 0 0 3.366 5.842l.009.005a6.704 6.704 0 0 0 2.18.798l.022.003a6.792 6.792 0 0 0 2.368-.004 6.704 6.704 0 0 0 2.205-.811 6.785 6.785 0 0 0 1.762-1.484l.009
2710-.01.009-.01a6.743 6.743 0 0 0 1.18-2.066c.253-.707.39-1.469.39-2.263a6.74 6.74 0 0 0-.408-2.309Z" clip-rule="evenodd"></path></svg>';var v0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd"></path></svg>';var s0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path d="M11.47 3.841a.75.75 0 0 1 1.06 0l8.69 8.69a.75.75 0 1 0 1.06-1.061l-8.689-8.69a2.25 2.25 0 0 0-3.182 0l-8.69 8.69a.75.75 0 1 0 1.061 1.06l8.69-8.689Z"></path><path d="m12 5.432 8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 0 1-.75-.75v-4.5a.75.75 0 0 0-.75-.75h-3a.75.75 0 0 0-.75.75V21a.75.75 0 0 1-.75.75H5.625a1.875 1.875 0 0 1-1.875-1.875v-6.198a2.29 2.29 0 0 0 .091-.086L12 5.432Z"></path></svg>';var c0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd"></path></svg>';var w0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z" clip-rule="evenodd"></path></svg>';var p0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path d="M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"></path></svg>';var u0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z" clip-rule="evenodd"></path></svg>';var g0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm14.024-.983a1.125 1.125 0 0 1 0 1.966l-5.603 3.113A1.125 1.125 0 0 1 9 15.113V8.887c0-.857.921-1.4 1.671-.983l5.603 3.113Z" clip-rule="evenodd"></path></svg>';var Z0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z" clip-rule="evenodd"></path></svg>';var m0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M9 4.5a.75.75 0 0 1 .721.544l.813 2.846a3.75 3.75 0 0 0 2.576 2.576l2.846.813a.75.75 0 0 1 0 1.442l-2.846.813a3.75 3.75 0 0 0-2.576 2.576l-.813 2.846a.75.75 0 0 1-1.442 0l-.813-2.846a3.75 3.75 0 0 0-2.576-2.576l-2.846-.813a.75.75 0 0 1 0-1.442l2.846-.813A3.75 3.75 0 0 0 7.466 7.89l.813-2.846A.75.75 0 0 1 9 4.5ZM18 1.5a.75.75 0 0 1 .728.568l.258 1.036c.236.94.97 1.674 1.91 1.91l1.036.258a.75.75 0 0 1 0 1.456l-1.036.258c-.94.236-1.674.97-1.91 1.91l-.258 1.036a.75.75 0 0 1-1.456 0l-.258-1.
2710036a2.625 2.625 0 0 0-1.91-1.91l-1.036-.258a.75.75 0 0 1 0-1.456l1.036-.258a2.625 2.625 0 0 0 1.91-1.91l.258-1.036A.75.75 0 0 1 18 1.5ZM16.5 15a.75.75 0 0 1 .712.513l.394 1.183c.15.447.5.799.948.948l1.183.395a.75.75 0 0 1 0 1.422l-1.183.395c-.447.15-.799.5-.948.948l-.395 1.183a.75.75 0 0 1-1.422 0l-.395-1.183a1.5 1.5 0 0 0-.948-.948l-1.183-.395a.75.75 0 0 1 0-1.422l1.183-.395c.447-.15.799-.5.948-.948l.395-1.183A.75.75 0 0 1 16.5 15Z" clip-rule="evenodd"></path></svg>';var f0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z" clip-rule="evenodd"></path></svg>';var M0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M4.5 7.5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-9a3 3 0 0 1-3-3v-9Z" clip-rule="evenodd"></path></svg>';var x0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z" clip-rule="evenodd"></path></svg>';var j$2=(function(l){return l.FREE="free",l.STARTER="starter",l.GROW="grow",l.SCALE="scale",l.ELITE="elite",l.ENTERPRISE="enterprise",l})(j$2||{});var S0=(()=>{class l{static{this.msPerDay=864e5;}static dateDiffInDays(a,e){let o=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate()),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate());return Math.floor((i-o)/this.msPerDay)}static addDaysToDate(a,e){let o=this.msPerDay*e,i=new Date;return i.setTime(a.getTime()+o),i}static dateDiffToTodayInDays(a){return this.dateDiffInDays(new Date,a)}}return l})();var K$1=["searchRef"],Q=["*"],X$1=["name","search-button"],Y$1=l=>({"md:max-w-[385px]":l});function $$1(l,d){l&1&&(yh$1(),ta$3(0,"svg",6),Vv$1(1,"circle",8)(2,"path",9),Pd$1());}function J$1(l,d){if(l&1){let a=fM();ta$3(0,"button",10),Zv$1("click",function(){sh$1(a);let o=yM(2);return ah$1(o.searchFormControl.setValue(""))}),Vv$1(1,"ng-icon",11),Pd$1();}}function a0(l,d){if(l&1&&(ta$3(0,"search",2),Vv$1(1,"mspot-input-prefix",3)(2,"input",4,0),iS(),ta$3(4,"div",5),eM$1(5,$$1,3,0,":svg:svg",6),eM$1(6,J$1,2,0,"button",7),EM(7,0,X$1),Pd$1()()),l&2){let a=d.$implicit,e=yM();jv$1("ngClass",fN(5,Y$1,e.hasMaxWidth())),uT(2),jv$1("formControl",e.searchFormControl)("placeholder",a(e.placeholderKey())),aS(),uT(3),tM$1(e.isLoading()?5:-1),uT(),tM$1(!e.isLoading()&&e.searchFormControl.value.length>0&&!e.separateClearBtn()?6:-1);}}var q0=(()=>{class l{get searchFormControl(){return this._searchFormControl}set searchText(a){t$2(a)&&this.searchFormControl.setValue(a);}constructor(){this._searchFormControl=new B$k("",{nonNullable:true}),this.isLoading=X8(false),this.placeholderKey=X8("common.search"),this.separateClearBtn=X8(false),this.searchRef=t3("searchRef"),this.enableAutoFocus=X8(false),this.searchTextChange=this.searchFormControl.valueChanges,this.hasMaxWidth=X8(true),this.onChange=a=>{},this.onTouched=()=>{},this.searchFormControl.valueChanges.pipe(qG()).subscribe(a=>{this.onChange(a);}),Es$3(()=>{let a=this.searchRef()?.nativeElement;this.enableAutoFocus()&&a&&a.focus();});}writeValue(a){t$2(a)&&this.searchFormControl.setValue(a,{emitEvent:false});}registerOnChange(a){this.onChange=a;}registerOnTouched(a){this.onTouched=a;}setDisabledState(a){a?this.searchFormControl.disable():this.searchFormControl.enable();}static{this.\u0275fac=function(e){return new(e||l)};}static{this.\u0275cmp=qS({type:l,selectors:[["mspot-search-field"]],viewQuery:function(e,o){e&1&&eD(o.searchRef,K$1,5),e&2&&bM();},inputs:{searchText:"searchText",isLoading:[1,"isLoading"],placeholderKey:[1,"placeholderKey"],separateClearBtn:[1,"separateClearBtn"],enableAutoFocus:[1,"enableAutoFocus"],hasMaxWidth:[1,"hasMaxWidth"]},outputs:{searchTextChange:"searchTextChange"},features:[cN([{provide:E$f,useExisting:l,multi:true}])],ngContentSelectors:Q,decls:1,vars:0,consts:[["searchRef",""],["class","relative w-full flex-grow md:w-auto",3,"ngClass",4,"transloco"],[1,"relative","w-full","flex-grow","md:w-auto",3,"ngClass"],["
2710icon","hero-magnifying-glass",1,"text-mspot-neutral-900","left-0.5"],["maxlength","60","autocomplete","off","type","text","data-cy","searchField-input",1,"border-form-select-borderPrimary","placeholder:text-text-default","focus-primary","flex","h-10","w-full","items-center","rounded-lg","border","bg-[var(--search-field-bg,var(--form-select-bg-primary))]","px-10","text-sm",3,"formControl","placeholder"],[1,"absolute","right-0","top-0","flex","h-full","items-center","pr-3"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"h-5","w-5","animate-spin"],[1,"focus-primary","icon-color","hover:text-mspot-neutral-500","flex","cursor-pointer","items-center","justify-center","border-0","py-2","pl-2","text-lg","transition-colors"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],[1,"focus-primary","icon-color","hover:text-mspot-neutral-500","flex","cursor-pointer","items-center","justify-center","border-0","py-2","pl-2","text-lg","transition-colors",3,"click"],["name","heroXMark"]],template:function(e,o){e&1&&(DM(),gv$1(0,a0,8,7,"search",1));},dependencies:[kx$1,mx$1,Ds$2,oi$5,Qe$b,Xn$7,Yt$7,Vn$7,bt$b,yt$a,le$9],encapsulation:2});}}return l})(); 2711var c$2=_("ngIfAnimation",[p$2(":enter, :leave",[S$1("@*",g$4(),{optional:true})])]),f=_("ngIfFade",[p$2(":enter",[d$1({opacity:0}),f$1("300ms ease-in",d$1({opacity:1}))]),p$2(":leave",[d$1({opacity:1}),f$1("300ms ease-in",d$1({opacity:0}))])]),p$1=_("ngIfOpacity75",[y$4("*",d$1({opacity:.75})),y$4("void",d$1({opacity:0})),p$2("void => *",[d$1({opacity:0}),f$1("180ms linear")]),p$2("* => void",[d$1({opacity:.75}),f$1("180ms linear")])]),s=200,g$2=_("ngIfTransformX",[p$2(":enter",[d$1({transform:"translateX(100%)"}),f$1(s+"ms cubic-bezier(.16,1,.3,1)",d$1({transform:"translateX(0px)"}))]),p$2(":leave",[d$1({opacity:1,transform:"translateX(0)"}),f$1("180ms cubic-bezier(.4,0,1,1)",d$1({transform:"translateX(100%)"}))])]),l=_("ngIfTransformXInverse",[p$2(":enter",[d$1({transform:"translateX(-100%)"}),f$1("200ms cubic-bezier(.16,1,.3,1)",d$1({transform:"translateX(0px)"}))]),p$2(":leave",[d$1({opacity:1,transform:"translateX(0)"}),f$1("180ms cubic-bezier(.4,0,1,1)",d$1({transform:"translateX(-100%)"}))])]);_("ngIfTransHeight",[p$2(":enter",[d$1({height:"0",overflow:"hidden"}),f$1("200ms",d$1({height:"*"}))]),p$2(":leave",[d$1({height:"*",overflow:"hidden"}),f$1("200ms",d$1({height:"0"}))])]);_("animateHeight",[p$2(":enter",[d$1({height:0,opacity:0,overflow:"hidden"}),f$1("150ms ease-out",d$1({height:"*",opacity:1}))]),p$2(":leave",[d$1({overflow:"hidden"}),f$1("200ms ease-out",d$1({height:0,opacity:0}))])]);var m=_("fadeInFromTopAnimation",[y$4("void",d$1({opacity:0,transform:"translateY(-20px)",height:0})),p$2(":enter",[f$1("100ms ease-out",d$1({opacity:1,transform:"translateY(0)",height:"*"}))]),p$2(":leave",[f$1("100ms ease-out",d$1({opacity:0,transform:"translateY(-20px)",height:0}))])]),p=_("fadeInAnimation",[p$2(":enter",[d$1({opacity:0,scale:.85}),f$1("100ms ease-out",d$1({opacity:1,scale:1}))]),p$2(":leave",[f$1("100ms ease-out",d$1({opacity:0,scale:.85}))])]),d=(a="0px")=>_("animateHeight",[y$4("close",d$1({height:a,"overflow-y":"hidden"})),y$4("open",d$1({height:"*","overflow-y":"hidden"})),p$2("open <=> close",f$1("300ms ease-in-out"))]),c$1=(a="0px",h="*")=>_("animateWidth",[y$4("close",d$1({width:a})),y$4("open",d$1({width:h})),p$2("open <=> close",f$1("300ms ease-in-out"))]),g$1=(a="0px")=>_("animateHeight",[p$2("void => *",[d$1({height:a,overflow:"hidden"}),f$1(150,d$1({height:"*"}))]),p$2("* => void",[d$1({overflow:"hidden"}),f$1(150,d$1({height:a}))])]);var n$2=new b$g("isHandset as stream",{providedIn:"root",factory:()=>g$k(O$8).isHandset$}),a=new b$g("isMobilePortraitOrLandscape as stream",{providedIn:"root",factory:()=>g$k(O$8).isMobileInPortraitOrLandscape$});var i$1=new b$g("isHandset as stream",{providedIn:"root",factory:()=>g$k(O$8).gtLg$});var i=(()=>{class t{constructor(){this._params=On$7({}),this._queryParams=On$7({}),this._data=On$7({}),this.params=this._params.asReadonly(),this.params$=ZG(this._params),this.queryParams=this._queryParams.asReadonly(),this.queryParams$=ZG(this._queryParams),this.data=this._data.asReadonly(),this.data$=ZG(this._data),this._router=g$k(H$8);}init(){return new Promise(r=>{this._router.events.pipe(Pt$b(S=>S instanceof O$9),Qf$1(null)).subscribe(()=>{this._updateState();}),r();})}
2711_updateState(){try{this._params.set(this._getCurrentParams()),this._queryParams.set(this._getCurrentQueryParams()),this._data.set(this._getCurrentData());}catch(r){console.error("Could not update router state",r);}}_getCurrentParams(){let r={};if(!this._router.routerState?.root)return r;let e=this._router.routerState.root;for(;e;)e.snapshot?.params&&Object.assign(r,e.snapshot.params),e=e.firstChild;return r}_getCurrentQueryParams(){return this._router.routerState?.root?.snapshot?.queryParams?this._router.routerState.root.snapshot.queryParams:{}}_getCurrentData(){let r={};if(!this._router.routerState?.root)return r;let e=this._router.routerState.root;for(;e;)e.snapshot?.data&&Object.assign(r,e.snapshot.data),e=e.firstChild;return r}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();function x(){return [i,{provide:Ad$1,multi:true,useFactory:t=>()=>t.init(),deps:[i]}]}function y$2(t){DC$1();let a=g$k(i);return Array.isArray(t)?a.params$.pipe(st$c(r=>t.map(e=>r[e]))):a.params$.pipe(st$c(r=>r[t]))}function D$1(t){let a=y$2(t);return YG(a)}function g(t){DC$1();let a=g$k(i);return Array.isArray(t)?a.queryParams$.pipe(st$c(r=>t.map(e=>r[e]))):a.queryParams$.pipe(st$c(r=>r[t]))}function A(t){let a=g(t);return YG(a)}function v$1(t){DC$1();let a=g$k(i);return t?a.data$.pipe(st$c(r=>r[t])):a.data$}function b$1(t){DC$1();let a=g$k(i);return t?qd$1(()=>a.data()[t]):a.data}var t$1=new b$g("USER_VARIABLES",{providedIn:"root",factory:()=>On$7({})});var n$1=new b$g("YouTube embed proxy origin");function r$1(e){return e==null?"":String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var L$1=(()=>{class t{resetState(r=[]){Be$7({exclude:["memberarea","router",...r]});}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var W$1=new b$g("google login provider"),B$1=new b$g("azure login provider"),H$1=new b$g("apple login provider"),q=(()=>{class t{constructor(){this._afAuth=g$k(nt$c),this._session=g$k(L$1),this._http=g$k(Ce$a);}getRedirectResult(){return Xa$2(this._afAuth,Ii$3)}async login(r,i){return jo$6(this._afAuth,r,i)}registerMember(r,i){return this._http.postUnAuth(l$6.USER.REGISTER_MEMBER(r),i).pipe(Kf$1(o=>this.login(o.email,i.password)))}claimOffer(r,i){return this._http.generic(l$6.USER.CLAIM_OFFER(r,i))}sendResetPasswordMail(r){return Ho$5(this._afAuth,r)}resetPasswordReq(r,i){let o={email:r,schoolId:i};return this._http.generic(o$2.Emails.RESET_PASSWORD(o,i))}appleLogin(){return je$e(Wa$2(this._afAuth,new Zt$d("apple.com"),Ii$3))}googleLogin(){return je$e(Wa$2(this._afAuth,new ko$5,Ii$3))}azureAdLoginViaRedirect(){let r=new en$b("saml.azuread");return je$e(Ga$2(this._afAuth,r,Ii$3))}oidcLogin(r,i){let o=new Zt$d(r);return i?.forEach(p=>o.addScope(p)),je$e(Wa$2(this._afAuth,o,Ii$3))}async oidcLoginViaRedirect(r,i){let o=new Zt$d(r);i?.forEach(p=>o.addScope(p)),await Ga$2(this._afAuth,o,Ii$3);}azureAdLogin(){let r=new en$b("saml.azuread");return je$e(Wa$2(this._afAuth,r,Ii$3))}resetState(){this._session.resetState(["auth"]);}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=L$l({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var b=ve$b.enum(["zitadel","keycloak","okta","auth0","azure-ad","custom"]),P=ve$b.object({email:ve$b.string().default("email"),firstName:ve$b.string().default("given_name"),lastName:ve$b.string().default("family_name"),externalId:ve$b.string().default("sub")});ve$b.object({id:ve$b.string(),schoolId:ve$b.string(),providerLabel:b,issuerUrl:ve$b.string().url(),clientId:ve$b.string().min(1),clientSecretEncrypted:ve$b.string().min(1),scopes:ve$b.array(ve$b.string()).default(["openid","profile","email"]),enabled:ve$b.boolean().default(false),mixedMode:ve$b.boolean().default(false),buttonLabel:ve$b.string().default("SSO Login"),jitProvisioning:ve$b.boolean().default(true),defaultOfferIds:ve$b.array(ve$b.string()).default([]),sessionDurationHours:ve$b.number().int().min(1).max(720).nullable().optional(),claimMapping:P.default({})});
2711var D="oidc.custom";var u="/sso",y$1={Admin:{CONFIG:t=>`${u}/${t}/config`,TEST_CONNECTION:t=>`${u}/${t}/config/test`,CLAIM_RULES:t=>`${u}/${t}/claim-rules`,CLAIM_RULE:(t,w)=>`${u}/${t}/claim-rules/${w}`},Client:{PROVISION:t=>`/school-users/auth/${t}/oidc-provision`}};var t=new b$g("login config");var r=new b$g("login card style"),c=new b$g("member area custom view");var y=(()=>{class s{constructor(){this._http=g$k(Ce$a);}async initiateMfaRecovery(t,e){return (await qE$1(this._http.generic({url:"/auth/mfa/initiate",method:b$e.POST_UNAUTH,data:{email:t,pendingCredential:e}}))).success}async verifyBackupCodeWithCredential(t,e,r,n,c=null){return await qE$1(this._http.generic({url:"/auth/mfa/recovery/verify",method:b$e.POST_UNAUTH,data:{email:t,code:e,pendingCredential:r,password:n,schoolId:c}}))}async generateBackupCodes(t=null){return (await qE$1(this._http.generic({url:"/mfa/backup-codes/generate",method:b$e.POST,data:{schoolId:t}}))).codes}async verifyBackupCode(t,e=null){return await qE$1(this._http.generic({url:"/mfa/backup-codes/verify",method:b$e.POST,data:{code:t,schoolId:e}}))}async verifyBackupCodeForRecovery(t,e,r,n=null){return await qE$1(this._http.generic({url:"/auth/mfa/recovery",method:b$e.POST_UNAUTH,data:{email:t,password:e,code:r,schoolId:n}}))}async getRemainingCodesCount(t=null){return (await qE$1(this._http.generic({url:"/mfa/backup-codes/count",method:b$e.POST,data:{schoolId:t}}))).remaining}async deleteBackupCodes(t=null){return (await qE$1(this._http.generic({url:"/mfa/backup-codes",method:b$e.DELETE,params:t?{schoolId:t}:void 0}))).success}async sendVerifyMail(t,e){return (await qE$1(this._http.generic({url:`/emails/verify-tenant/${t}`,method:b$e.POST,data:{email:e}}))).success}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275prov=L$l({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();var S=(()=>{class s{constructor(){this._http=g$k(Ce$a);}async updateMemberMfaStatus(t,e){let r={mfaActive:t,schoolId:e};return (await qE$1(this._http.generic({url:"/mfa/status",method:b$e.POST,data:r}))).success}async updateAdminMfaStatus(t){let e={mfaActive:t};return (await qE$1(this._http.generic({url:"/mfa/admin-status",method:b$e.POST,data:e}))).success}async deactivateStatusByEmail(t){return (await qE$1(this._http.generic({url:"/mfa/status/deactivate",method:b$e.POST_UNAUTH,data:{email:t}}))).success}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275prov=L$l({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();function w(s){return !!s&&fa$3(s).enrolledFactors.some(F=>F.factorId===Rc$2.FACTOR_ID)}var v=new b$g("MFA_SCHOOL_ID");var z$1=(()=>{class s{constructor(){this._mfaApiService=g$k(y),this._afAuth=g$k(nt$c),this._mfaStatusService=g$k(S),this._logger=g$k($E),this._schoolIdAccessor=g$k(v,{optional:true});}get _schoolId(){return this._schoolIdAccessor?.()??null}async isEmailVerified(){let t=this._afAuth.currentUser;return t?(await t.reload(),t.emailVerified):false}async sendVerificationEmail(){let t=this._afAuth.currentUser?.email,e=this._schoolId;if(!t||!e)throw new Error("Cannot send verification email: missing email or schoolId");return this._mfaApiService.sendVerifyMail(e,t)}async enrollTotpMfa(){let t=this._afAuth.currentUser;if(!t)throw new Error("User is not logged in");let r=await fa$3(t).getSession();return await Rc$2.generateSecret(r)}async verifyAndEnrollTotp(t,e){let r=this._afAuth.currentUser;if(!r)throw new Error("User is not logged in");let n=fa$3(r),c=Rc$2.assertionForEnrollment(t,e);await n.enroll(c,"TOTP Authenticator"),await this._updateMfaStatus(true);}async verifyTotpForSignIn(t,e,r){let n=Rc$2.assertionForSignIn(t,e);await r.resolveSignIn(n);}async unenrollTotpMfa(){let t=this._afAuth.currentUser;if(!t)throw new Error("User is not logged in");let e=false;try{await t.getIdToken(!0);let r=fa$3(t),n=r.enrolledFactors,c=n.find(h=>h.factorId===Rc$2.FACTOR_ID);c&&(await r.unenroll(c.uid),e=!0,n.length<=1&&await this._updateMfaStatus(!1));}finally{if(e)try{await this.deleteBackupCodes();}catch(r){this._logger.error("Failed to delete backup codes during unenroll",r);}}}async isMfaEnabled(){let t=this._afAuth.currentUser;return t?fa$3(t).enrolledFactors.length>0:false}async isTotpMfaEnabled(){let t=this._afAuth.currentUser;return t?w(t):false}async generateBackupCodes(){if(!this._afAuth.currentUser)throw new Error("User is not logged in");return this._mfaApiService.generateBackupCodes(this._schoolId)}async verifyBackupCode(t){if(!this._afAuth.currentUser)throw new Error("User is not logged in");return (await this._mfaApiService.verifyBackupCode(t,this._schoolId)).valid}async getRemainingCodesCount(){return this._afAuth.currentUser?this._mfaApiService.getRemainingCodesCount(this._schoolId):0}async deleteBackupCodes(){return this._afAuth.currentUser?this._mfaApiService.deleteBackupCodes(this._schoolId):false}async _updateMfaStatus(t){let e=this._schoolId;if(e){await this._mfaStatusService.updateMemberMfaStatus(t,e);return}await this._mfaStatusService.updateAdminMfaStatus(t);}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275prov=L$l({token:s,factory:s.\u0275fac,providedIn:"root"});}}return s})();var At=["top","right","bottom","left"],Tt=["start","end"],Ot=At.reduce((t,e)=>t.concat(e,e+"-"+Tt[0],e+"-"+Tt[1]),[]),k=Math.min,L=Math.max,at=Math.round,ft$1=Math.floor,I=t=>({x:t,y:t}
vendor: 4,218 bytes, line 2711
2711),ce$1={left:"right",right:"left",bottom:"top",top:"bottom"},le={start:"end",end:"start"};function mt(t,e,n){return L(t,k(e,n))}function K(t,e){return typeof t=="function"?t(e):t}function B(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function Rt$1(t){return t==="x"?"y":"x"}function gt(t){return t==="y"?"height":"width"}var ae=new Set(["top","bottom"]);function X(t){return ae.has(B(t))?"y":"x"}function ht(t){return Rt$1(X(t))}function St(t,e,n){n===void 0&&(n=false);let o=$(t),i=ht(t),s=gt(i),r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=lt(r)),[r,lt(r)]}function Dt(t){let e=lt(t);return [ct(t),e,ct(e)]}function ct(t){return t.replace(/start|end/g,e=>le[e])}var Lt=["left","right"],Et=["right","left"],fe=["top","bottom"],ue=["bottom","top"];function de$1(t,e,n){switch(t){case "top":case "bottom":return n?e?Et:Lt:e?Lt:Et;case "left":case "right":return e?fe:ue;default:return []}}function Mt(t,e,n,o){let i=$(t),s=de$1(B(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(ct)))),s}function lt(t){return t.replace(/left|right|bottom|top/g,e=>ce$1[e])}function me$1(t){return r$d({top:0,right:0,bottom:0,left:0},t)}function pt(t){return typeof t!="number"?me$1(t):{top:t,right:t,bottom:t,left:t}}function G(t){let{x:e,y:n,width:o,height:i}=t;return {width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Ft(t,e,n){let{reference:o,floating:i}=t,s=X(e),r=ht(e),c=gt(r),a=B(e),f=s==="y",u=o.x+o.width/2-i.width/2,l=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2,d;switch(a){case "top":d={x:u,y:o.y-i.height};break;case "bottom":d={x:u,y:o.y+o.height};break;case "right":d={x:o.x+o.width,y:l};break;case "left":d={x:o.x-i.width,y:l};break;default:d={x:o.x,y:o.y};}switch($(e)){case "start":d[r]-=m*(n&&f?-1:1);break;case "end":d[r]+=m*(n&&f?-1:1);break}return d}var Wt=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,c=s.filter(Boolean),a=await(r.isRTL==null?void 0:r.isRTL(e)),f=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:l}=Ft(f,o,a),m=o,d={},g=0;for(let h=0;h<c.length;h++){let{name:w,fn:p}=c[h],{x,y,data:b,reset:v}=await p({x:u,y:l,initialPlacement:o,placement:m,strategy:i,middlewareData:d,rects:f,platform:r,elements:{reference:t,floating:e}});u=x??u,l=y??l,d=s$e(r$d({},d),{[w]:r$d(r$d({},d[w]),b)}),v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(f=v.rects===true?await r.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:u,y:l}=Ft(f,m,a)),h=-1);}return {x:u,y:l,placement:m,strategy:i,middlewareData:d}};async function Z(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:s,rects:r,elements:c,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:l="floating",altBoundary:m=false,padding:d=0}=K(e,t),g=pt(d),w=c[m?l==="floating"?"reference":"floating":l],p=G(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:a})),x=l==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),b=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},v=G(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:y,strategy:a}):x);return {top:(p.top-v.top+g.top)/b.y,bottom:(v.bottom-p.bottom+g.bottom)/b.y,left:(p.left-v.left+g.left)/b.x,right:(v.right-p.right+g.right)/b.x}}var Nt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:s,platform:r,elements:c,middlewareData:a}=e,{element:f,padding:u=0}=K(t,e)||{};if(f==null)return {};let l=pt(u),m={x:n,y:o},d=ht(i),g=gt(d),h=await r.getDimensions(f),w=d==="y",p=w?"top":"left",x=w?"bottom":"right",y=w?"clientHeight":"clientWidth",b=s.reference[g]+s.reference[d]-m[d]-s.floating[g],v=m[d]-s.reference[d],C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f)),R=C?C[y]:0;
2711(!R||!await(r.isElement==null?void 0:r.isElement(C)))&&(R=c.floating[y]||s.floating[g]);let W=b/2-v/2,E=R/2-h[g]/2-1,A=k(l[p],E),O=k(l[x],E),S=A,M=R-h[g]-O,P=R/2-h[g]/2+W,D=mt(S,P,M),q=!a.arrow&&$(i)!=null&&P!==D&&s.reference[g]/2-(P<S?A:O)-h[g]/2<0,_=q?P<S?P-S:P-M:0;return {[d]:m[d]+_,data:r$d({[d]:D,centerOffset:P-D-_},q&&{alignmentOffset:_}),reset:q}}});function ge(t,e,n){return (t?[...n.filter(i=>$(i)===t),...n.filter(i=>$(i)!==t)]:n.filter(i=>B(i)===i)).filter(i=>t?$(i)===t||(e?ct(i)!==i:false):true)}var $t=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;let{rects:s,middlewareData:r,placement:c,platform:a,elements:f}=e,A=K(t,e),{crossAxis:u=false,alignment:l,allowedPlacements:m=Ot,autoAlignment:d=true}=A,g=v$m(A,["crossAxis","alignment","allowedPlacements","autoAlignment"]),h=l!==void 0||m===Ot?ge(l||null,d,m):m,w=await Z(e,g),p=((n=r.autoPlacement)==null?void 0:n.index)||0,x=h[p];if(x==null)return {};let y=St(x,s,await(a.isRTL==null?void 0:a.isRTL(f.floating)));if(c!==x)return {reset:{placement:h[0]}};let b=[w[B(x)],w[y[0]],w[y[1]]],v=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:x,overflows:b}],C=h[p+1];if(C)return {data:{index:p+1,overflows:v},reset:{placement:C}};let R=v.map(O=>{let S=$(O.placement);return [O.placement,S&&u?O.overflows.slice(0,2).reduce((M,P)=>M+P,0):O.overflows[0],O.overflows]}).sort((O,S)=>O[1]-S[1]),E=((i=R.filter(O=>O[2].slice(0,$(O[0])?2:3).every(S=>S<=0))[0])==null?void 0:i[0])||R[0][0];return E!==c?{data:{index:p+1,overflows:v},reset:{placement:E}}:{}}}},Ht=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:a,elements:f}=e,P=K(t,e),{mainAxis:u=true,crossAxis:l=true,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=true}=P,w=v$m(P,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=s.arrow)!=null&&n.alignmentOffset)return {};let p=B(i),x=X(c),y=B(c)===c,b=await(a.isRTL==null?void 0:a.isRTL(f.floating)),v=m||(y||!h?[lt(c)]:Dt(c)),C=g!=="none";!m&&C&&v.push(...Mt(c,h,g,b));let R=[c,...v],W=await Z(e,w),E=[],A=((o=s.flip)==null?void 0:o.overflows)||[];
2711if(u&&E.push(W[p]),l){let D=St(i,r,b);E.push(W[D[0]],W[D[1]]);}if(A=[...A,{placement:i,overflows:E}],!E.every(D=>D<=0)){var O,S;let D=(((O=s.flip)==null?void 0:O.index)||0)+1,q=R[D];if(q&&(!(l==="alignment"?x!==X(q):false)||A.every(z=>X(z.placement)===x?z.overflows[0]>0:true)))return {data:{index:D,overflows:A},reset:{placement:q}};let _=(S=A.filter(U=>U.overflows[0]<=0).sort((U,z)=>U.overflows[1]-z.overflows[1])[0])==null?void 0:S.placement;if(!_)switch(d){case "bestFit":{var M;let U=(M=A.filter(z=>{if(C){let Q=X(z.placement);return Q===x||Q==="y"}return true}).map(z=>[z.placement,z.overflows.filter(Q=>Q>0).reduce((Q,re)=>Q+re,0)]).sort((z,Q)=>z[1]-Q[1])[0])==null?void 0:M[0];U&&(_=U);break}case "initialPlacement":_=c;break}if(i!==_)return {reset:{placement:_}}}return {}}}};function kt(t,e){return {top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Bt(t){return At.some(e=>t[e]>=0)}var Vt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,s=K(t,e),{strategy:o="referenceHidden"}=s,i=v$m(s,["strategy"]);switch(o){case "referenceHidden":{let r=await Z(e,s$e(r$d({},i),{elementContext:"reference"})),c=kt(r,n.reference);return {data:{referenceHiddenOffsets:c,referenceHidden:Bt(c)}}}case "escaped":{let r=await Z(e,s$e(r$d({},i),{altBoundary:true})),c=kt(r,n.floating);return {data:{escapedOffsets:c,escaped:Bt(c)}}}default:return {}}}}};function _t$1(t){let e=k(...t.map(s=>s.left)),n=k(...t.map(s=>s.top)),o=L(...t.map(s=>s.right)),i=L(...t.map(s=>s.bottom));return {x:e,y:n,width:o-e,height:i-n}}function he$1(t){let e=t.slice().sort((i,s)=>i.y-s.y),n=[],o=null;for(let i=0;i<e.length;i++){let s=e[i];!o||s.y-o.y>o.height/2?n.push([s]):n[n.length-1].push(s),o=s;}return n.map(i=>G(_t$1(i)))}var zt=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:o,rects:i,platform:s,strategy:r}=e,{padding:c=2,x:a,y:f}=K(t,e),u=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(o.reference))||[]),l=he$1(u),m=G(_t$1(u)),d=pt(c);function g(){if(l.length===2&&l[0].left>l[1].right&&a!=null&&f!=null)return l.find(w=>a>w.left-d.left&&a<w.right+d.right&&f>w.top-d.top&&f<w.bottom+d.bottom)||m;if(l.length>=2){if(X(n)==="y"){let A=l[0],O=l[l.length-1],S=B(n)==="top",M=A.top,P=O.bottom,D=S?A.left:O.left,q=S?A.right:O.right,_=q-D,U=P-M;return {top:M,bottom:P,left:D,right:q,width:_,height:U,x:D,y:M}}let w=B(n)==="left",p=L(...l.map(A=>A.right)),x=k(...l.map(A=>A.left)),y=l.filter(A=>w?A.left===x:A.right===p),b=y[0].top,v=y[y.length-1].bottom,C=x,R=p,W=R-C,E=v-b;return {top:b,bottom:v,left:C,right:R,width:W,height:E,x:C,y:b}}return m}let h=await s.getElementRects({reference:{getBoundingClientRect:g},floating:o.floating,strategy:r});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},pe$1=new Set(["left","top"]);async function we(t,e){let{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=B(n),c=$(n),a=X(n)==="y",f=pe$1.has(r)?-1:1,u=s&&a?-1:1,l=K(e,t),{mainAxis:m,crossAxis:d,alignmentAxis:g}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof g=="number"&&(d=c==="end"?g*-1:g),a?{x:d*u,y:m*f}:{x:m*f,y:d*u}}var It=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;let{x:i,y:s,placement:r,middlewareData:c}=e,a=await we(e,t);return r===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:s+a.y,data:s$e(r$d({},a),{placement:r})}}}},Xt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,w=K(t,e),{mainAxis:s=true,crossAxis:r=false,limiter:c={fn:p=>{let{x,y}=p;return {x,y}}}}=w,a=v$m(w,["mainAxis","crossAxis","limiter"]),f={x:n,y:o},u=await Z(e,a),l=X(B(i)),m=Rt$1(l),d=f[m],g=f[l];if(s){let p=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=d+u[p],b=d-u[x];d=mt(y,d,b);}if(r){let p=l==="y"?"top":"left",x=l==="y"?"bottom":"right",y=g+u[p],b=g-u[x];g=mt(y,g,b);}let h=c.fn(s$e(r$d({},e),{[m]:d,[l]:g}));return s$e(r$d({},h),{data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[l]:r}}})}}};var jt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;let{placement:i,rects:s,platform:r,elements:c}=e,A=K(t,e),{apply:a=()=>{}}=A,f=v$m(A,["apply"]),u=await Z(e,f),l=B(i),m=$(i),d=X(i)==="y",{width:g,height:h}=s.floating,w,p;l==="top"||l==="bottom"?(w=l,p=m===(await(r.isRTL==null?void 0:r.isRTL(c.floating))?"start":"end")?"left":"right"):(p=l,w=m==="end"?"top":"bottom");let x=h-u.top-u.bottom,y=g-u.left-u.right,b=k(h-u[w],x),v=k(g-u[p],y),C=!e.middlewareData.shift,R=b,W=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(W=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(R=x),C&&!m){let O=L(u.left,0),S=L(u.right,0),M=L(u.top,0),P=L(u.bottom,0);d?W=g-2*(O!==0||S!==0?O+S:L(u.left,u.right)):R=h-2*(M!==0||P!==0?M+P:L(u.top,u.bottom));}await a(s$e(r$d({},e),{availableWidth:W,availableHeight:R}));let E=await r.getDimensions(c.floating);return g!==E.width||h!==E.height?{reset:{rects:true}}:{}}}};function wt(){return typeof window<"u"}function tt(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return (t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function j$1(t){var e;return (e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return wt()?t instanceof Node||t instanceof F(t).Node:false}function H(t){return wt()?t instanceof Element||t instanceof F(t).Element:false}function Y(t){return wt()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:false}function Yt(t){return !wt()||typeof ShadowRoot>"u"?false:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}var xe=new Set(["inline","contents"]);function st(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=V(t);return /auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!xe.has(i)}var ye=new Set(["table","td","th"]);function Kt(t){return ye.has(tt(t))}var ve$1=[":popover-open",":modal"];function ut(t){return ve$1.some(e=>{try{return t.matches(e)}catch{return false}})}var be=["transform","translate","scale","rotate","perspective"],Ae=["transform","translate","scale","rotate","perspective","filter"],Oe=["paint","layout","strict","content"];function xt$1(t){let e=yt(),n=H(t)?V(t):t;return be.some(o=>n[o]?n[o]!=="none":false)||(n.containerType?n.containerType!=="normal":false)||!e&&(n.backdropFilter?n.backdropFilter!=="none":false)||!e&&(n.filter?n.filter!=="none":false)||Ae.some(o=>(n.willChange||"").includes(o))||Oe.some(o=>(n.contain||"").includes(o))}function Ut(t){let e=J(t);for(;Y(e)&&!et(e);){if(xt$1(e))return e;if(ut(e))return null;e=J(e);}return null}function yt(){return typeof CSS>"u"||!CSS.supports?false:CSS.supports("-webkit-backdrop-filter","none")}var Re=new Set(["html","body","#document"]);function et(t){return Re.has(tt(t))}function V(t){return F(t).getComputedStyle(t)}function dt(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Yt(t)&&t.host||j$1(t);return Yt(e)?e.host:e}function Gt(t){let e=J(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&st(e)?e:Gt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=true);let i=Gt(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=F(i);if(s){let c=vt(r);
vendor: 5,025 bytes, line 2711
2711return e.concat(r,r.visualViewport||[],st(i)?i:[],c&&n?it(c):[])}return e.concat(i,it(i,[],n))}function vt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function te(t){let e=V(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=Y(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,c=at(n)!==s||at(o)!==r;return c&&(n=s,o=r),{width:n,height:o,$:c}}function Pt(t){return H(t)?t:t.contextElement}function rt(t){let e=Pt(t);if(!Y(e))return I(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:s}=te(e),r=(s?at(n.width):n.width)/o,c=(s?at(n.height):n.height)/i;return (!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}var Se=I(0);function ee(t){let e=F(t);return !yt()||!e.visualViewport?Se:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ce(t,e,n){return e===void 0&&(e=false),!n||e&&n!==F(t)?false:e}function nt(t,e,n,o){e===void 0&&(e=false),n===void 0&&(n=false);let i=t.getBoundingClientRect(),s=Pt(t),r=I(1);e&&(o?H(o)&&(r=rt(o)):r=rt(t));let c=Ce(s,n,o)?ee(s):I(0),a=(i.left+c.x)/r.x,f=(i.top+c.y)/r.y,u=i.width/r.x,l=i.height/r.y;if(s){let m=F(s),d=o&&H(o)?F(o):o,g=m,h=vt(g);for(;h&&o&&d!==g;){let w=rt(h),p=h.getBoundingClientRect(),x=V(h),y=p.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,b=p.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;a*=w.x,f*=w.y,u*=w.x,l*=w.y,a+=y,f+=b,g=F(h),h=vt(g);}}return G({width:u,height:l,x:a,y:f})}function bt(t,e){let n=dt(t).scrollLeft;return e?e.left+n:nt(j$1(t)).left+n}function ne(t,e){let n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-bt(t,n),i=n.top+e.scrollTop;return {x:o,y:i}}function Pe(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t,s=i==="fixed",r=j$1(o),c=e?ut(e.floating):false;if(o===r||c&&s)return n;let a={scrollLeft:0,scrollTop:0},f=I(1),u=I(0),l=Y(o);if((l||!l&&!s)&&((tt(o)!=="body"||st(r))&&(a=dt(o)),Y(o))){let d=nt(o);f=rt(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop;}let m=r&&!l&&!s?ne(r,a):I(0);return {width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-a.scrollTop*f.y+u.y+m.y}}function Te$1(t){return Array.from(t.getClientRects())}function Le$1(t){let e=j$1(t),n=dt(t),o=t.ownerDocument.body,i=L(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=L(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),r=-n.scrollLeft+bt(t),c=-n.scrollTop;return V(o).direction==="rtl"&&(r+=L(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:c}}var Jt=25;function Ee$1(t,e){let n=F(t),o=j$1(t),i=n.visualViewport,s=o.clientWidth,r=o.clientHeight,c=0,a=0;if(i){s=i.width,r=i.height;let u=yt();(!u||u&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop);}let f=bt(o);if(f<=0){let u=o.ownerDocument,l=u.body,m=getComputedStyle(l),d=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(o.clientWidth-l.clientWidth-d);g<=Jt&&(s-=g);}else f<=Jt&&(s+=f);return {width:s,height:r,x:c,y:a}}var De=new Set(["absolute","fixed"]);function Me(t,e){let n=nt(t,true,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=Y(t)?rt(t):I(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,a=i*s.x,f=o*s.y;return {width:r,height:c,x:a,y:f}}function Qt(t,e,n){let o;if(e==="viewport")o=Ee$1(t,n);else if(e==="document")o=Le$1(j$1(t));else if(H(e))o=Me(e,n);else {let i=ee(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height};}return G(o)}function oe$1(t,e){let n=J(t);return n===e||!H(n)||et(n)?false:V(n).position==="fixed"||oe$1(n,e)}function Fe(t,e){let n=e.get(t);if(n)return n;let o=it(t,[],false).filter(c=>H(c)&&tt(c)!=="body"),i=null,s=V(t).position==="fixed",r=s?J(t):t;for(;H(r)&&!et(r);){let c=V(r),a=xt$1(r);!a&&c.position==="fixed"&&(i=null),(s?!a&&!i:!a&&c.position==="static"&&!!i&&De.has(i.position)||st(r)&&!a&&oe$1(t,r))?o=o.filter(u=>u!==r):i=c,r=J(r);}return e.set(t,o),o}function ke$1(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,r=[...n==="clippingAncestors"?ut(e)?[]:Fe(e,this._c):[].concat(n),o],c=r[0],a=r.reduce((f,u)=>{let l=Qt(e,u,i);return f.top=L(l.top,f.top),f.right=k(l.right,f.right),f.bottom=k(l.bottom,f.bottom),f.left=L(l.left,f.left),f},Qt(e,c,i));return {width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Be$1(t){let{width:e,height:n}=te(t);return {width:e,height:n}}function We(t,e,n){let o=Y(e),i=j$1(e),s=n==="fixed",r=nt(t,true,s,e),c={scrollLeft:0,scrollTop:0},a=I(0);function f(){a.x=bt(i);}if(o||!o&&!s)if((tt(e)!=="body"||st(i))&&(c=dt(e)),o){let d=nt(e,true,s,e);a.x=d.x+e.clientLeft,a.y=d.y+e.clientTop;}else i&&f();s&&!o&&i&&f();let u=i&&!o&&!s?ne(i,c):I(0),l=r.left+c.scrollLeft-a.x-u.x,m=r.top+c.scrollTop-a.y-u.y;return {x:l,y:m,width:r.width,height:r.height}}function Ct$1(t){return V(t).position==="static"}function Zt(t,e){if(!Y(t)||V(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return j$1(t)===n&&(n=n.ownerDocument.body),n}function ie(t,e){let n=F(t);if(ut(t))return n;if(!Y(t)){let i=J(t);for(;i&&!et(i);){if(H(i)&&!Ct$1(i))return i;i=J(i);}return n}let o=Zt(t,e);for(;o&&Kt(o)&&Ct$1(o);)o=Zt(o,e);
2711return o&&et(o)&&Ct$1(o)&&!xt$1(o)?n:o||Ut(t)||n}var Ne=async function(t){let e=this.getOffsetParent||ie,n=this.getDimensions,o=await n(t.floating);return {reference:We(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function $e(t){return V(t).direction==="rtl"}var He$1={convertOffsetParentRelativeRectToViewportRelativeRect:Pe,getDocumentElement:j$1,getClippingRect:ke$1,getOffsetParent:ie,getElementRects:Ne,getClientRects:Te$1,getDimensions:Be$1,getScale:rt,isElement:H,isRTL:$e};function se(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ve(t,e){let n=null,o,i=j$1(t);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null;}function r(c,a){c===void 0&&(c=false),a===void 0&&(a=1),s();let f=t.getBoundingClientRect(),{left:u,top:l,width:m,height:d}=f;if(c||e(),!m||!d)return;let g=ft$1(l),h=ft$1(i.clientWidth-(u+m)),w=ft$1(i.clientHeight-(l+d)),p=ft$1(u),y={rootMargin:-g+"px "+-h+"px "+-w+"px "+-p+"px",threshold:L(0,k(1,a))||1},b=true;function v(C){let R=C[0].intersectionRatio;if(R!==a){if(!b)return r();R?r(false,R):o=setTimeout(()=>{r(false,1e-7);},1e3);}R===1&&!se(f,t.getBoundingClientRect())&&r(),b=false;}try{n=new IntersectionObserver(v,s$e(r$d({},y),{root:i.ownerDocument}));}catch{n=new IntersectionObserver(v,y);}n.observe(t);}return r(true),s}function Qe(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=true,ancestorResize:s=true,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=false}=o,f=Pt(t),u=i||s?[...f?it(f):[],...it(e)]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:true}),s&&p.addEventListener("resize",n);});let l=f&&c?Ve(f,n):null,m=-1,d=null;r&&(d=new ResizeObserver(p=>{let[x]=p;x&&x.target===f&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(e);})),n();}),f&&!a&&d.observe(f),d.observe(e));let g,h=a?nt(t):null;a&&w();function w(){let p=nt(t);h&&!se(h,p)&&n(),h=p,g=requestAnimationFrame(w);}return n(),()=>{var p;u.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n);}),l?.(),(p=d)==null||p.disconnect(),d=null,a&&cancelAnimationFrame(g);}}var Ze=It,tn=$t,en=Xt,nn=Ht,on=jt,sn=Vt,rn=Nt,cn=zt;var ln=(t,e,n)=>{let o=new Map,i=r$d({platform:He$1},n),s=s$e(r$d({},i.platform),{_c:o});return Wt(t,e,s$e(r$d({},i),{platform:s}))};var j=["panel"],R=[[["","slot","triggercontent"]],"*"],z=["[slot=triggerContent]","*"];function W(r,K){if(r&1&&(ta$3(0,"div",4,1),EM(2,1),Pd$1()),r&2){let e=yM(),i=TM(1);BM(e.overlayContentClass()),Ma$2("width",e.matchTriggerWidth()?i.offsetWidth:void 0,"px"),jv$1("id",e.overlayId())("cdkTrapFocus",e.trapFocus()),Pv$1("aria-label",e.ariaLabel())("aria-labelledby",e.ariaLabelledby())("aria-describedby",e.ariaDescribedby())("aria-hidden",!e.isOpen());}}var oe=(()=>{class r{constructor(){this.position=X8("above"),this.closeOnOutsideClick=X8(true),this.closeOnEscape=X8(true),this.offset=X8(8),this.triggerDisabled=X8(false),this.triggerButtonClass=X8(""),this.overlayContentClass=X8("border-borders-secondary bg-backgrounds-surface-raised backdrop-blur-sm min-w-32 rounded-lg border p-2 shadow-md"),this.matchTriggerWidth=X8(false),this.blockScroll=X8(false),this.closeOnScroll=X8(false),this.trapFocus=X8(false),this.buttonVariant=X8("strong"),this.buttonColor=X8("primary"),this.buttonSize=X8("md"),this.buttonExtra=X8("none"),this.ariaLabel=X8(void 0),this.ariaLabelledby=X8(void 0),this.ariaDescribedby=X8(void 0),this.tooltip=X8(void 0),this.tooltipShowDelay=X8(500),this.tooltipTouchGestures=X8("auto"),this.triggerDataCy=X8(void 0),this.triggerOnboardingTarget=X8(void 0),this.opened=J8(),this.closed=J8(),this.isOpen=On$7(false),this.positions=qd$1(()=>this._getPositions()),this._uniqueId=`popover-${a$9()}`,this._scrollStrategyOptions=g$k(We$a),this._injector=g$k(oe$e),this._destroyRef=g$k(de$b),this._panel=t3("panel"),this._focusTrap=t3(Ve$a),this._connectedOverlay=t3(ui$3),this._triggerOrigin=t3(Wt$8),this._autoUpdateCleanup=null,this.triggerId=qd$1(()=>`${this._uniqueId}-trigger`),this.overlayId=qd$1(()=>`${this._uniqueId}-overlay`),this.scrollStrategy=qd$1(()=>this.blockScroll()?this._scrollStrategyOptions.block():this.closeOnScroll()?this._scrollStrategyOptions.close():this._scrollStrategyOptions.noop()),this._destroyRef.onDestroy(()=>this._stopAnchorTracking());}open(){!this.isOpen()&&!this.triggerDisabled()&&(this.isOpen.set(true),this.opened.emit());}close(){this.isOpen()&&(this._stopAnchorTracking(),this.isOpen.set(false),this.closed.emit
2711());}toggle(){this.isOpen()?this.close():this.open();}onOverlayAttached(){this._startAnchorTracking(),Xl$1(()=>{this._ensureFocusInPanel();},{injector:this._injector});}onOverlayDetached(){this._stopAnchorTracking(),this.close();}onBackdropClick(){this.closeOnOutsideClick()&&this.close();}onEscapeKey(e){e.key==="Escape"&&this.closeOnEscape()&&(e.stopPropagation(),this.close());}_startAnchorTracking(){if(this._stopAnchorTracking(),this.blockScroll()||this.closeOnScroll())return;let e=this._connectedOverlay()?.overlayRef,i=this._triggerOrigin()?.elementRef.nativeElement;!e||!i||(this._autoUpdateCleanup=Qe(i,e.overlayElement,()=>{e.updatePosition();}));}_stopAnchorTracking(){this._autoUpdateCleanup?.(),this._autoUpdateCleanup=null;}async _ensureFocusInPanel(){let e=this._panel()?.nativeElement,i=this._focusTrap()?.focusTrap;if(!e)return;!(await i?.focusInitialElementWhenReady()??false)&&!e.contains(document.activeElement)&&e.focus();}_getPositions(){let e=this.offset(),i=this.position();return {below:[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:e},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:e},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-e},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-e},{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetX:e},{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetX:-e}],above:[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-e},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-e},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:e},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:e},{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetX:e},{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetX:-e}],left:[{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetX:-e},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetX:-e},{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetX:e},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetX:e},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:e},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-e}],right:[{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetX:e},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetX:e},{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetX:-e},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetX:-e},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:e},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-e}]}[i]}static{this.\u0275fac=function(i){return new(i||r)};}static{this.\u0275cmp=qS({type:r,selectors:[["mspot-popover"]],viewQuery:function(i,t){i&1&&eD(t._panel,j,5)(t._focusTrap,Ve$a,5)(t._connectedOverlay,ui$3,5)(t._triggerOrigin,Wt$8,5),i&2&&bM(4);},hostAttrs:[1,"inline-block"],inputs:{position:[1,"position"],closeOnOutsideClick:[1,"closeOnOutsideClick"],closeOnEscape:[1,"closeOnEscape"],offset:[1,"offset"],triggerDisabled:[1,"triggerDisabled"],triggerButtonClass:[1,"triggerButtonClass"],overlayContentClass:[1,"overlayContentClass"],matchTriggerWidth:[1,"matchTriggerWidth"],blockScroll:[1,"blockScroll"],closeOnScroll:[1,"closeOnScroll"],trapFocus:[1,"trapFocus"],buttonVariant:[1,"buttonVariant"],buttonColor:[1,"buttonColor"],buttonSize:[1,"buttonSize"],buttonExtra:[1,"buttonExtra"],ariaLabel:[1,"ariaLabel"],ariaLabelledby:[1,"ariaLabelledby"],ariaDescribedby:[1,"ariaDescribedby"],tooltip:[1,"tooltip"],tooltipShowDelay:[1,"tooltipShowDelay"],tooltipTouchGestures:[1,"tooltipTouchGestures"],triggerDataCy:[1,"triggerDataCy"],triggerOnboardingTarget:[1,"triggerOnboardingTarget"]},outputs:{opened:"opened",closed:"closed"},ngContentSelectors:z,decls:4,vars:27,consts:[["trigger",""],["panel",""],["cdkOverlayOrigin","","mspotButton","","aria-haspopup","dialog",3,"click","id","color","variant","size","extra","disabled","matTooltip","matTooltipDisabled","matTooltipShowDelay","matTooltipTouchGestures"],["cdkConnectedOverlay","",3,"attach","backdropClick","detach","overlayKeydown","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayBackdropClass","cdkConnectedOverlayPush","cdkConnectedOverlayLockPosition","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayGrowAfterOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayScrollStrategy"],["role","dialog","tabindex","-1","cdkTrapFocusAutoCapture","",1,"scrollbar-hide",3,"id","cdkTrapFocus"]],template:function(i,t){if(i&1&&(DM(R),ta$3(0,"button",2,0),Zv$1("click",function(){return t.toggle(
2711)}),EM(2),Pd$1(),gv$1(3,W,3,10,"ng-template",3),Zv$1("attach",function(){return t.onOverlayAttached()})("backdropClick",function(){return t.onBackdropClick()})("detach",function(){return t.onOverlayDetached()})("overlayKeydown",function(G){return t.onEscapeKey(G)})),i&2){let n=TM(1);BM(t.triggerButtonClass()),jv$1("id",t.triggerId())("color",t.buttonColor())("variant",t.buttonVariant())("size",t.buttonSize())("extra",t.buttonExtra())("disabled",t.triggerDisabled())("matTooltip",t.tooltip()||"")("matTooltipDisabled",!t.tooltip())("matTooltipShowDelay",t.tooltipShowDelay())("matTooltipTouchGestures",t.tooltipTouchGestures()),Pv$1("data-cy",t.triggerDataCy()??null)("data-onboarding",t.triggerOnboardingTarget()??null)("aria-disabled",t.triggerDisabled())("aria-expanded",t.isOpen())("aria-controls",t.isOpen()?t.overlayId():null),uT(3),jv$1("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.isOpen())("cdkConnectedOverlayHasBackdrop",t.closeOnOutsideClick())("cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop")("cdkConnectedOverlayPush",false)("cdkConnectedOverlayLockPosition",true)("cdkConnectedOverlayFlexibleDimensions",false)("cdkConnectedOverlayGrowAfterOpen",false)("cdkConnectedOverlayPositions",t.positions())("cdkConnectedOverlayScrollStrategy",t.scrollStrategy());}},dependencies:[ui$3,Wt$8,g$a,Ve$a,zt$7,mt$7],encapsulation:2});}}return r})();var O=(function(o){return o.IndexedDbLocal="INDEXED_DB_LOCAL",o.InMemory="IN_MEMORY",o.BrowserLocal="BROWSER_LOCAL",o.BrowserSession="BROWSER_SESSION",o})(O||{}),E$1=(function(o){return o.APPLE="apple.com",o.FACEBOOK="facebook.com",o.GAME_CENTER="gc.apple.com",o.GITHUB="github.com",o.GOOGLE="google.com",o.MICROSOFT="microsoft.com",o.PLAY_GAMES="playgames.google.com",o.TWITTER="twitter.com",o.YAHOO="yahoo.com",o.PASSWORD="password",o.PHONE="phone",o})(E$1||{});var E=new b$g("CUSTOM_PROPERTIES_TOKEN");var G7=x$o((Cn,xn)=>{(function(e,r){typeof Cn=="object"&&typeof xn<"u"?xn.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self,e.MessageFormat=r());})(Cn,function(){"use strict";var e=function(){return e=Object.assign||function(s){for(var l,c=1,m=arguments.length;c<m;c++){l=arguments[c];for(var w in l)Object.prototype.hasOwnProperty.call(l,w)&&(s[w]=l[w]);}return s},e.apply(this,arguments)};function r(n){var s=typeof Symbol=="function"&&Symbol.iterator,l=s&&n[s],c=0;if(l)return l.call(n);if(n&&typeof n.length=="number")return {next:function(){return n&&c>=n.length&&(n=void 0),{value:n&&n[c++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function t(n,s){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var c=l.call(n),m,w=[],x;try{for(;(s===void 0||s-- >0)&&!(m=c.next()).done;)w.push(m.value);}catch(T){x={error:T};}finally{try{m&&!m.done&&(l=c.return)&&l.call(c);}finally{if(x)throw x.error}}return w}function a(n,s,l){if(l||arguments.length===2)for(var c=0,m=s.length,w;c<m;c++)(w||!(c in s))&&(w||(w=Array.prototype.slice.call(s,0,c)),w[c]=s[c]);return n.concat(w||Array.prototype.slice.call(s))}typeof SuppressedError=="function"&&SuppressedError;class o extends Error{constructor(s,l,c){super(s),this.token=l,this.type=c||"error";}}let i=n=>n<4?"short":n===4?"long":"narrow",d=n=>n%2===0?"2-digit":"numeric";function f(n,s){switch(n.char){case "y":return {year:d(n.width)};case "r":return {calendar:"gregory",year:"numeric"};default:return s(`${n.desc} is not supported; falling back to year:numeric`,o.WARNING),{year:"numeric"}}}function y(n,s){switch(n.width){case 1:return "numeric";case 2:return "2-digit";case 3:return "short";case 4:return "long";case 5:return "narrow";default:s(`${n.desc} is not supported with width ${n.width}`);return}}function L(n,s){let{char:l,desc:c,width:m}=n;if(l==="d")return d(m);s(`${c} is not supported`);}function R(n,s){let{char:l,desc:c,width:m}=n;if((l==="c"||l==="e")&&m<3){let w=`Numeric value is not supported for ${c}; falling back to weekday:short`;s(w,o.WARNING);}return i(m)}function Q(n){let s=d(n.width),l;switch(n.char){case "h":l="h12";break;case "H":l="h23";break;case "k":l="h24";break;case "K":l="h11";break}return l?{hour:s,hourCycle:l}:{hour:s}}function d0(n,s){let{char:l,desc:c,width:m}=n;
2711switch(l){case "v":case "z":return m===4?"long":"short";case "V":if(m===4)return "long";s(`${c} is not supported with width ${m}`);return;case "X":s(`${c} is not supported`);return}return "short"}function m0(n,s){switch(n.field){case "era":return {era:i(n.width)};case "year":return f(n,s);case "month":return {month:y(n,s)};case "day":return {day:L(n,s)};case "weekday":return {weekday:R(n,s)};case "period":return;case "hour":return Q(n);case "min":return {minute:d(n.width)};case "sec":return {second:d(n.width)};case "tz":return {timeZoneName:d0(n,s)};case "quarter":case "week":case "sec-frac":case "ms":s(`${n.desc} is not supported`);}}function n0(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m=>{throw m},l={},c=[];for(let m of n){let{error:w,field:x,str:T}=m;if(w){let G=new o(w.message,m);G.stack=w.stack,s(G);}if(T){let G=`Ignoring string part: ${T}`;s(new o(G,m,o.WARNING));}x&&(c.indexOf(x)===-1?c.push(x):s(new o(`Duplicate ${x} token`,m)));let I=m0(m,(G,x0)=>s(new o(G,m,x0)));I&&Object.assign(l,I);}return l}let f0={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},r1=n=>n>="A"&&n<="Z"||n>="a"&&n<="z";function x1(n,s){let l=n[s],c=1;for(;n[++s]===l;)++c;let m=f0[l];if(!m){let w=`The letter ${l} is not a valid field identifier`;return {char:l,error:new Error(w),width:c}}return {char:l,field:m.field,desc:m.desc,width:c}}function z1(n,s){let l=n[++s],c=2;if(l==="'")return {char:"'",str:l,width:c};for(;;){let m=n[++s];if(++c,m===void 0){let w=`Unterminated quoted literal in pattern: ${l||n}`;return {char:"'",error:new Error(w),str:l,width:c}}else if(m==="'"){if(n[++s]!=="'")return {char:"'",str:l,width:c};++c;}l+=m;}}function G1(n,s){let l=n[s];if(!l)return null;if(r1(l))return x1(n,s);if(l==="'")return z1(n,s);let c=l,m=1;for(;;){let w=n[++s];if(!w||r1(w)||w==="'")return {char:l,str:c,width:m};c+=w,m+=1;}}function S1(n){let s=[],l=0;for(;;){let c=G1(n,l);if(!c)return s;s.push(c),l+=c.width;}}function Ot(n,s,l){typeof s=="string"&&(s=S1(s));let c=n0(s,l),m=new Intl.DateTimeFormat(n,c);return w=>m.format(w)}function w5(n,s,l){typeof s=="string"&&(s=S1(s));let c=n0(s,l);return ["(function() {",`var opt = ${JSON.stringify(c)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(n)}, opt);`,"return function(value) { return dtf.format(value); }"].join(` 2712 `)+` 2713})()`}class u1 extends Error{constructor(s,l){super(l),this.code=s;}}class E1 extends u1{constructor(s,l){super("BAD_OPTION",`Unknown ${s} option: ${l}`),this.stem=s,this.option=l;}}class bt extends u1{constructor(s){super("BAD_STEM",`Unknown stem: ${s}`),this.stem=s;}}class j5 extends u1{constructor(s,l){super("MASKED_VALUE",`Value for ${s} is set multiple times`),this.type=s,this.prev=l;}}class m2 extends u1{constructor(s){super("MISSING_OPTION",`Required option missing for ${s}`),this.stem=s;}}class e5 extends u1{constructor(s,l){super("BAD_PATTERN",l),this.char=s;}}class De extends u1{constructor(s,l,c){let m=c>1?`${c} options`:"one option";super("TOO_MANY_OPTIONS",`Token ${s} only supports ${m} (got ${l.length})`),this.stem=s,this.options=l;}}class v2 extends u1{constructor(s,l){super("UNSUPPORTED",`The stem ${s} is not supported`),this.stem=s,l&&(this.message+=` with value ${l}`,this.source=l);}}function Fa(n,s){let{numberingSystem:l}=s;return Array.isArray(n)||(n=[n]),l?n.map(c=>{let m=c.indexOf("-u-")===-1?"u-nu":"nu";return `${c}-${m}-${l}`}).concat(n):n}function c0(n,s){let l=+n+s/2;return l-l%+s}function g0(n){let{scale:s,unit:l}=n,c=typeof s=="number"&&s>=0?s:1;return l&&l.style==="percent"&&(c*=.01),c}function b0(n){let s=g0(n),{precision:l}=n;return l&&l.style==="precision-increment"?c=>c0(c,l.increment)*s:c=>c*s}function U0(n){let s=g0(n),{precision:l}=n;if(l&&l.style==="precision-increment"){let c=`+n + ${l.increment/2}`,m=`x - (x % +${l.increment})`;return s!==1&&(m=`(${m}) * ${s}`),`function(n) { var x = ${c}; return ${m}; }`}return s!==1?`function(n) { return n * ${s}; }`:null}
2713function _1(n,s){let{decimal:l,group:c,integerWidth:m,notation:w,precision:x,roundingMode:T,sign:I,unit:G,unitPer:x0,unitWidth:V0}=n,S0=(a1,p1)=>{s&&s(new v2(a1,p1));},a0={};if(G)switch(G.style){case "base-unit":a0.style="decimal";break;case "currency":a0.style="currency",a0.currency=G.currency;break;case "measure-unit":a0.style="unit",a0.unit=G.unit.replace(/.*-/,""),x0&&(a0.unit+="-per-"+x0.replace(/.*-/,""));break;case "percent":a0.style="percent";break;case "permille":S0("permille");break}switch(V0){case "unit-width-full-name":a0.currencyDisplay="name",a0.unitDisplay="long";break;case "unit-width-hidden":S0(V0);break;case "unit-width-iso-code":a0.currencyDisplay="code";break;case "unit-width-narrow":a0.currencyDisplay="narrowSymbol",a0.unitDisplay="narrow";break;case "unit-width-short":a0.currencyDisplay="symbol",a0.unitDisplay="short";break}switch(c){case "group-off":a0.useGrouping=!1;break;case "group-auto":a0.useGrouping=!0;break;case "group-min2":case "group-on-aligned":case "group-thousands":S0(c),a0.useGrouping=!0;break}if(x)switch(x.style){case "precision-fraction":{let{minFraction:a1,maxFraction:p1,minSignificant:b1,maxSignificant:K1,source:C5}=x;typeof a1=="number"&&(a0.minimumFractionDigits=a1,typeof b1=="number"&&S0("precision-fraction",C5)),typeof p1=="number"&&(a0.maximumFractionDigits=p1),typeof b1=="number"&&(a0.minimumSignificantDigits=b1),typeof K1=="number"&&(a0.maximumSignificantDigits=K1);break}case "precision-integer":a0.maximumFractionDigits=0;break;case "precision-unlimited":a0.maximumFractionDigits=20;break;case "precision-increment":break;case "precision-currency-standard":a0.trailingZeroDisplay=x.trailingZero;break;case "precision-currency-cash":S0(x.style);break}if(w)switch(w.style){case "compact-short":a0.notation="compact",a0.compactDisplay="short";break;case "compact-long":a0.notation="compact",a0.compactDisplay="long";break;case "notation-simple":a0.notation="standard";break;case "scientific":case "engineering":{let{expDigits:a1,expSign:p1,source:b1,style:K1}=w;a0.notation=K1,(a1&&a1>1||p1&&p1!=="sign-auto")&&S0(K1,b1);break}}if(m){let{min:a1,max:p1,source:b1}=m;if(a1>0&&(a0.minimumIntegerDigits=a1),Number(p1)>0){let K1=a0.notation==="engineering"||a0.notation==="scientific";p1===3&&K1?a0.notation="engineering":S0("integer-width",b1);}}switch(I){case "sign-auto":a0.signDisplay="auto";break;case "sign-always":a0.signDisplay="always";break;case "sign-except-zero":a0.signDisplay="exceptZero";break;case "sign-never":a0.signDisplay="never";break;case "sign-accounting":a0.currencySign="accounting";break;case "sign-accounting-always":a0.currencySign="accounting",a0.signDisplay="always";break;case "sign-accounting-except-zero":a0.currencySign="accounting",a0.signDisplay="exceptZero";break}return l==="decimal-always"&&S0(l),T&&S0(T),a0}function m5(n,s,l){let c=n[s];switch(c){case "%":return {char:"%",style:"percent",width:1};case "\u2030":return {char:"%",style:"permille",width:1};case "\xA4":{let m=1;for(;n[++s]==="\xA4";)++m;switch(m){case 1:return {char:c,currency:"default",width:m};case 2:return {char:c,currency:"iso-code",width:m};case 3:return {char:c,currency:"full-name",width:m};case 5:return {char:c,currency:"narrow",width:m};default:{let w=`Invalid number (${m}) of \xA4 chars in pattern`;return l(new e5("\xA4",w)),null}}}case "*":{let m=n[s+1];if(m)return {char:c,pad:m,width:2};break}case "+":case "-":return {char:c,width:1};case "'":{let m=n[++s],w=2;if(m==="'")return {char:c,str:m,width:w};for(;;){let x=n[++s];if(++w,x===void 0){let T=`Unterminated quoted literal in pattern: ${m}`;return l(new e5("'",T)),{char:c,str:m,width:w}}else if(x==="'"){if(n[++s]!=="'")return {char:c,str:m,width:w};++w;}m+=x;}}}return null}let W1=n=>n>="0"&&n<="9";function E5(n,s){let l=n[s];if(W1(l)){let c=l;for(;;){let m=n[++s];if(W1(m))c+=m;else return {char:"0",digits:c,width:c.length}}}switch(l){case "#":{let c=1;for(;n[++s]==="#";)++c;return {char:l,width:c}}case "@":{let c=1;for(;n[++s]==="@";)++c;let m=c;for(s-=1;n[++s]==="#";)++m;return {char:l,min:c,width:m}}case "E":{let c=n[s+1]==="+";c&&++s;let m=0;for(;n[++s]==="0";)++m;let w=(c?2:1)+m;if(m)return {char:l,expDigits:m,plus:c,width:w};break}case ".":case ",":return {char:l,width:1}}return null}function i1(n,s,l){let c;(function(G){G[G.Prefix=0]="Prefix",G[G.Number=1]="Number",G[G.Suffix=2]="Suffix";})(c||(c={}));let m=[],w=[],x=[],T=c.Prefix,I="";for(;s<n.length;){let G=n[s];if(G===";"){s+=1;break}switch(T){case c.Prefix:{let x0=m5(n,s,l);
2713if(x0)I&&(m.push({char:"'",str:I,width:I.length}),I=""),m.push(x0),s+=x0.width;else {let V0=E5(n,s);V0?(I&&(m.push({char:"'",str:I,width:I.length}),I=""),T=c.Number,w.push(V0),s+=V0.width):(I+=G,s+=1);}break}case c.Number:{let x0=E5(n,s);x0?(w.push(x0),s+=x0.width):T=c.Suffix;break}case c.Suffix:{let x0=m5(n,s,l);x0?(I&&(x.push({char:"'",str:I,width:I.length}),I=""),x.push(x0),s+=x0.width):(I+=G,s+=1);break}}}return I&&x.push({char:"'",str:I,width:I.length}),{pattern:{prefix:m,number:w,suffix:x},pos:s}}function d2(n,s){let{pattern:l,pos:c}=i1(n,0,s);if(c<n.length){let{pattern:m}=i1(n,c,s);return {tokens:l,negative:m}}return {tokens:l}}function Dr(n,s){let l={},c=!1,m=!1,w=0,x="",T=-1,I="",G=0;for(let V0=0;V0<n.length;++V0){let S0=n[V0];switch(S0.char){case "#":{if(T===-1){if(x){let a0="Pattern has # after integer digits";s(new e5("#",a0));}w+=S0.width;}else G+=S0.width;break}case "0":{if(T===-1)x+=S0.digits;else {if(G){let a0="Pattern has digits after # in fraction";s(new e5("0",a0));}I+=S0.digits;}break}case "@":{l.precision&&s(new j5("precision",l.precision)),l.precision={style:"precision-fraction",minSignificant:S0.min,maxSignificant:S0.width};break}case ",":c=!0;break;case ".":if(T===1){let a0="Pattern has more than one decimal separator";s(new e5(".",a0));}T=V0;break;case "E":{if(m&&s(new j5("exponent",l.notation)),c){let a0="Exponential patterns may not contain grouping separators";s(new e5("E",a0));}l.notation={style:"scientific"},S0.expDigits>1&&(l.notation.expDigits=S0.expDigits),S0.plus&&(l.notation.expSign="sign-always"),m=!0;}}}c?l.group="group-auto":w+x.length>3&&(l.group="group-off");let x0=+`${x||"0"}.${I}`;if(x0&&(l.precision={style:"precision-increment",increment:x0}),!m)x.length>1&&(l.integerWidth={min:x.length}),!l.precision&&(I.length||G)&&(l.precision={style:"precision-fraction",minFraction:I.length,maxFraction:I.length+G});else if((!l.precision||x0)&&(l.integerWidth=w?{min:1,max:w+x.length}:{min:Math.max(1,x.length)}),l.precision)x0||(l.integerWidth={min:1,max:1});else {let V0=x.length+I.length;T===-1?V0>0&&(l.precision={style:"precision-fraction",maxSignificant:V0}):(l.precision={style:"precision-fraction",maxSignificant:Math.max(1,V0)+G},V0>1&&(l.precision.minSignificant=V0));}return l}function D1(n,s,l,c,m){let w=!1,x="";for(let T of n)switch(T.char){case "%":s.unit={style:T.style},m?w=!0:x="";break;case "\xA4":if(!l){let I="The \xA4 pattern requires a currency";c(new e5("\xA4",I));break}switch(s.unit={style:"currency",currency:l},T.currency){case "iso-code":s.unitWidth="unit-width-iso-code";break;case "full-name":s.unitWidth="unit-width-full-name";break;case "narrow":s.unitWidth="unit-width-narrow";break}m?w=!0:x="";break;case "*":break;case "+":w||(x+="+");break;
2713case "'":w||(x+=T.str);break}return x}function G5(n,s){let l=!1,c="";for(let m of n)switch(m.char){case "%":case "\xA4":s?l=!0:c="";break;case "-":l||(c+="-");break;case "'":l||(c+=m.str);break}return c}function a5(n,s){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I=>{throw I},{tokens:c,negative:m}=d2(n,l),w=Dr(c.number,l),x=D1(c.prefix,w,s,l,!0),T=D1(c.suffix,w,s,l,!1);if(m){let I=G5(m.prefix,!0),G=G5(m.suffix,!1);w.affix={pos:[x,T],neg:[I,G]},w.sign="sign-never";}else (x||T)&&(w.affix={pos:[x,T]});return w}function Fe(n){return ["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(n)!==-1}function Ie(n){let s=["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"],[l]=n.split("-",1);return s.indexOf(l)!==-1}let mi={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},vi={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function F9(n){return n in mi}function I9(n){return n in vi}function N9(n,s,l){if(F9(n)){let c=mi[n];if(s.length>c){if(c===0)for(let m of s)l(new E1(n,m));else l(new De(n,s,c));return !1}else if(I9(n)&&s.length<vi[n])return l(new m2(n)),!1}return !0}function Fr(n,s){let l=s==="fraction"?/^\.(0*)(\+|#*)$/:/^(@+)(\+|#*)$/,c=n&&n.match(l);if(c){let m=c[1].length;switch(c[2].charAt(0)){case "":return {min:m,max:m};case "+":return {min:m,max:null};case "#":return {min:m,max:m+c[2].length}}}return null}function P9(n,s,l){let c=Fr(n,"fraction");if(c){s.length>1&&l(new De(n,s,1));let w={style:"precision-fraction",source:n,minFraction:c.min};c.max!=null&&(w.maxFraction=c.max);let x=s[0],T=Fr(x,"significant");return T?(w.source=`${n}/${x}`,w.minSignificant=T.min,T.max!=null&&(w.maxSignificant=T.max)):x&&l(new E1(n,x)),w}let m=Fr(n,"significant");if(m){for(let x of s)l(new E1(n,x));let w={style:"precision-fraction",source:n,minSignificant:m.min};return m.max!=null&&(w.maxSignificant=m.max),w}return null}class R9{constructor(s){this.skeleton={},this.onError=s;}badOption(s,l){this.onError(new E1(s,l));}assertEmpty(s){let l=this.skeleton[s];l&&this.onError(new j5(s,l));}parseToken(s,l){if(!N9(s,l,this.onError))return;let c=l[0],m=this.skeleton;switch(s){case "compact-short":case "compact-long":case "notation-simple":this.assertEmpty("notation"),m.notation={style:s};break;case "scientific":case "engineering":{let w=null,x;for(let I of l)switch(I){case "sign-auto":case "sign-always":case "sign-never":case "sign-accounting":case "sign-accounting-always":case "sign-except-zero":case "sign-accounting-except-zero":x=I;break;default:/^\+e+$/.test(I)?w=I.length-1:this.badOption(s,I);}this.assertEmpty("notation");let T=l.join("/");m.notation=w&&x?{style:s,source:T,expDigits:w,expSign:x}:w?{style:s,source:T,expDigits:w}:x?{style:s,source:T,expSign:x}:{style:s,source:T};break}case "percent":case "permille":case "base-unit":this.assertEmpty("unit"),m.unit={style:s};break;case "currency":/^[A-Z]{3}$/.test(c)?(this.assertEmpty("unit"),m.unit={style:s,currency:c}):this.badOption(s,c);break;case "measure-unit":{Ie(c)?(this.assertEmpty("unit"),m.unit={style:s,unit:c}):this.badOption(s,c);break}case "per-measure-unit":{Ie(c)?(this.assertEmpty("unitPer"),m.unitPer=c):this.badOption(s,c);break}case "unit-width-narrow":case "unit-width-short":case "unit-width-full-name":case "unit-width-iso-code":case "unit-width-hidden":this.assertEmpty("unitWidth"),m.unitWidth=s;break;case "precision-integer":case "precision-unlimited":case "precision-currency-cash":this.assertEmpty("precision"),m.precision={style:s};break;case "precision-currency-standard":this.assertEmpty("precision"),
2713c==="w"?m.precision={style:s,trailingZero:"stripIfInteger"}:m.precision={style:s};break;case "precision-increment":{let w=Number(c);w>0?(this.assertEmpty("precision"),m.precision={style:s,increment:w}):this.badOption(s,c);break}case "rounding-mode-ceiling":case "rounding-mode-floor":case "rounding-mode-down":case "rounding-mode-up":case "rounding-mode-half-even":case "rounding-mode-half-odd":case "rounding-mode-half-ceiling":case "rounding-mode-half-floor":case "rounding-mode-half-down":case "rounding-mode-half-up":case "rounding-mode-unnecessary":this.assertEmpty("roundingMode"),m.roundingMode=s;break;case "integer-width":{if(/^\+0*$/.test(c))this.assertEmpty("integerWidth"),m.integerWidth={source:c,min:c.length-1};else {let w=c.match(/^#*(0*)$/);w?(this.assertEmpty("integerWidth"),m.integerWidth={source:c,min:w[1].length,max:w[0].length}):this.badOption(s,c);}break}case "scale":{let w=Number(c);w>0?(this.assertEmpty("scale"),m.scale=w):this.badOption(s,c);break}case "group-off":case "group-min2":case "group-auto":case "group-on-aligned":case "group-thousands":this.assertEmpty("group"),m.group=s;break;case "latin":this.assertEmpty("numberingSystem"),m.numberingSystem="latn";break;case "numbering-system":{Fe(c)?(this.assertEmpty("numberingSystem"),m.numberingSystem=c):this.badOption(s,c);break}case "sign-auto":case "sign-always":case "sign-never":case "sign-accounting":case "sign-accounting-always":case "sign-except-zero":case "sign-accounting-except-zero":this.assertEmpty("sign"),m.sign=s;break;case "decimal-auto":case "decimal-always":this.assertEmpty("decimal"),m.decimal=s;break;default:{let w=P9(s,l,this.onError);w?(this.assertEmpty("precision"),m.precision=w):this.onError(new bt(s));}}}}function di(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m=>{throw m},l=[];for(let m of n.split(" "))if(m){let w=m.split("/"),x=w.shift()||"";l.push({stem:x,options:w});}let c=new R9(s);for(let{stem:m,options:w}of l)c.parseToken(m,w);return c.skeleton}function O9(n,s,l,c){typeof s=="string"&&(s=s.indexOf("::")===0?di(s.slice(2),c):a5(s,l,c));let m=Fa(n,s),w=_1(s,c),x=b0(s),T=new Intl.NumberFormat(m,w);if(s.affix){let[I,G]=s.affix.pos,[x0,V0]=s.affix.neg||["",""];return S0=>{let a0=T.format(x(S0));return S0<0?`${x0}${a0}${V0}`:`${I}${a0}${G}`}}return I=>T.format(x(I))}function q9(n,s,l,c){typeof s=="string"&&(s=s.indexOf("::")===0?di(s.slice(2),c):a5(s,l,c));let m=Fa(n,s),w=_1(s,c),x=U0(s),T=["(function() {",`var opt = ${JSON.stringify(w)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(m)}, opt);`],I="nf.format(value)";if(x&&(T.push(`var mod = ${x};`),I="nf.format(mod(value))"),s.affix){let[G,x0]=s.affix.pos.map(V0=>JSON.stringify(V0));if(s.affix.neg){let[V0,S0]=s.affix.neg.map(a0=>JSON.stringify(a0));I=`value < 0 ? ${V0} + ${I} + ${S0} : ${G} + ${I} + ${x0}`;}else I=`${G} + ${I} + ${x0}`;}return T.push(`return function(value) { return ${I}; }`),T.join(` 2714 `)+` 2715})()`}var Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $9(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ia={},gi={},ui={exports:{}};(function(n){(function(s,l){n.exports?n.exports=l():s.moo=l();})(Ir,function(){var s=Object.prototype.hasOwnProperty,l=Object.prototype.toString,c=typeof new RegExp().sticky=="boolean";function m(N){return N&&l.call(N)==="[object RegExp]"}function w(N){return N&&typeof N=="object"&&!m(N)&&!Array.isArray(N)}function x(N){return N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function T(N){var K=new RegExp("|"+N);return K.exec("").length-1}function I(N){return "("+N+")"}function G(N){if(!N.length)return "(?!)";var K=N.map(function(h0){return "(?:"+h0+")"}).join("|");return "(?:"+K+")"}function x0(N){if(typeof N=="string")return "(?:"+x(N)+")";if(m(N)){if(N.ignoreCase)throw new Error("RegExp /i flag not allowed");if(N.global)throw new Error("RegExp /g flag is implied");if(N.sticky)throw new Error("RegExp /y flag is implied");if(N.multiline)throw new Error("RegExp /m flag is implied");return N.source}else throw new Error("Not a pattern: "+N)}function V0(N,K){return N.length>K?N:Array(K-N.length+1).join(" ")+N}function S0(N,K){for(var h0=N.length,M0=0;;){var D0=N.lastIndexOf(` 2716`,h0-1);if(D0===-1||(M0++,h0=D0,M0===K)||h0===0)break}var A0=M0<K?0:h0+1;return N.substring(A0).split(` 2717`)}function a0(N){for(var K=Object.getOwnPropertyNames(N),h0=[],M0=0;M0<K.length;M0++){var D0=K[M0],A0=N[D0],R0=[].concat(A0);if(D0==="include"){for(var m1=0;m1<R0.length;m1++)h0.push({include:R0[m1]});continue}var W0=[];R0.forEach(function(L0){w(L0)?(W0.length&&h0.push(p1(D0,W0)),h0.push(p1(D0,L0)),W0=[]):W0.push(L0);}),W0.length&&h0.push(p1(D0,W0));}return h0}function a1(N){for(var K=[],h0=0;h0<N.length;h0++){var M0=N[h0];if(M0.include){for(var D0=[].concat(M0.include),A0=0;A0<D0.length;A0++)K.push({include:D0[A0]});continue}if(!M0.type)throw new Error("Rule has no type: "+JSON.stringify(M0));K.push(p1(M0.type,M0));}return K}function p1(N,K){if(w(K)||(K={match:K}),K.include)throw new Error("Matching rules cannot also include states");var h0={defaultType:N,lineBreaks:!!K.error||!!K.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var M0 in K)s.call(K,M0)&&(h0[M0]=K[M0]);if(typeof h0.type=="string"&&N!==h0.type)throw new Error("Type transform cannot be a string (type '"+h0.type+"' for token '"+N+"')");var D0=h0.match;return h0.match=Array.isArray(D0)?D0:D0?[D0]:[],h0.match.sort(function(A0,R0){return m(A0)&&m(R0)?0:m(R0)?-1:m(A0)?1:R0.length-A0.length}),h0}function b1(N){return Array.isArray(N)?a1(N):a0(N)}var K1=p1("error",{lineBreaks:!0,shouldThrow:!0});function C5(N,K){for(var h0=null,M0=Object.create(null),D0=!0,A0=null,R0=[],m1=[],W0=0;W0<N.length;W0++)N[W0].fallback&&(D0=!1);for(var W0=0;W0<N.length;W0++){var L0=N[W0];if(L0.include)throw new Error("Inheritance is not allowed in stateless lexers");if(L0.error||L0.fallback){if(h0)throw !L0.fallback==!h0.fallback?new Error("Multiple "+(L0.fallback?"fallback":"error")+" rules not allowed (for token '"+L0.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+L0.defaultType+"')");h0=L0;}var Z1=L0.match.slice();if(D0)for(;Z1.length&&typeof Z1[0]=="string"&&Z1[0].length===1;){var ue=Z1.shift();M0[ue.charCodeAt(0)]=L0;}if(L0.pop||L0.push||L0.next){if(!K)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+L0.defaultType+"')");if(L0.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+L0.defaultType+"')")}if(Z1.length!==0){D0=!1,R0.push(L0);for(var we=0;we<Z1.length;we++){var fe=Z1[we];if(m(fe)){if(A0===null)A0=fe.unicode;else if(A0!==fe.unicode&&L0.fallback===!1)throw new Error("If one rule is /u then all must be")}}var Pe=G(Z1.map(x0)),D5=new RegExp(Pe);
2717if(D5.test(""))throw new Error("RegExp matches empty string: "+D5);var Pa=T(Pe);if(Pa>0)throw new Error("RegExp has capture groups: "+D5+` 2718Use (?: \u2026 ) instead`);if(!L0.lineBreaks&&D5.test(` 2719`))throw new Error("Rule should declare lineBreaks: "+D5);m1.push(I(Pe));}}var Re=h0&&h0.fallback,Ra=c&&!Re?"ym":"gm",_2=c||Re?"":"|";A0===!0&&(Ra+="u");var bm=new RegExp(G(m1)+_2,Ra);return {regexp:bm,groups:R0,fast:M0,error:h0||K1}}function $t(N){var K=C5(b1(N));return new f1({start:K},"start")}function St(N,K,h0){var M0=N&&(N.push||N.next);if(M0&&!h0[M0])throw new Error("Missing state '"+M0+"' (in token '"+N.defaultType+"' of state '"+K+"')");if(N&&N.pop&&+N.pop!=1)throw new Error("pop must be 1 (in token '"+N.defaultType+"' of state '"+K+"')")}function Ht(N,K){var h0=N.$all?b1(N.$all):[];delete N.$all;var M0=Object.getOwnPropertyNames(N);K||(K=M0[0]);for(var D0=Object.create(null),A0=0;A0<M0.length;A0++){var R0=M0[A0];D0[R0]=b1(N[R0]).concat(h0);}for(var A0=0;A0<M0.length;A0++)for(var R0=M0[A0],m1=D0[R0],W0=Object.create(null),L0=0;L0<m1.length;L0++){var Z1=m1[L0];if(Z1.include){var ue=[L0,1];if(Z1.include!==R0&&!W0[Z1.include]){W0[Z1.include]=!0;var we=D0[Z1.include];if(!we)throw new Error("Cannot include nonexistent state '"+Z1.include+"' (in state '"+R0+"')");for(var fe=0;fe<we.length;fe++){var Pe=we[fe];m1.indexOf(Pe)===-1&&ue.push(Pe);}}m1.splice.apply(m1,ue),L0--;}}for(var D5=Object.create(null),A0=0;A0<M0.length;A0++){var R0=M0[A0];D5[R0]=C5(D0[R0],!0);}for(var A0=0;A0<M0.length;A0++){for(var Pa=M0[A0],Re=D5[Pa],Ra=Re.groups,L0=0;L0<Ra.length;L0++)St(Ra[L0],Pa,D5);for(var _2=Object.getOwnPropertyNames(Re.fast),L0=0;L0<_2.length;L0++)St(Re.fast[_2[L0]],Pa,D5);}return new f1(D5,K)}function Lt(N){for(var K=typeof Map<"u",h0=K?new Map:Object.create(null),M0=Object.getOwnPropertyNames(N),D0=0;D0<M0.length;D0++){var A0=M0[D0],R0=N[A0],m1=Array.isArray(R0)?R0:[R0];m1.forEach(function(W0){if(typeof W0!="string")throw new Error("keyword must be string (in keyword '"+A0+"')");K?h0.set(W0,A0):h0[W0]=A0;});}return function(W0){return K?h0.get(W0):h0[W0]}}var f1=function(N,K){this.startState=K,this.states=N,this.buffer="",this.stack=[],this.reset();};f1.prototype.reset=function(N,K){return this.buffer=N||"",this.index=0,this.line=K?K.line:1,this.col=K?K.col:1,this.queuedToken=K?K.queuedToken:null,this.queuedText=K?K.queuedText:"",this.queuedThrow=K?K.queuedThrow:null,this.setState(K?K.state:this.startState),this.stack=K&&K.stack?K.stack.slice():[],this},f1.prototype.save=function(){return {line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},f1.prototype.setState=function(N){if(!(!N||this.state===N)){this.state=N;var K=this.states[N];this.groups=K.groups,this.error=K.error,this.re=K.regexp,this.fast=K.fast;}},f1.prototype.popState=function(){this.setState(this.stack.pop());},f1.prototype.pushState=function(N){this.stack.push(this.state),this.setState(N);};var C2=c?function(N,K){return N.exec(K)}:function(N,K){var h0=N.exec(K);return h0[0].length===0?null:h0};f1.prototype._getGroup=function(N){for(var K=this.groups.length,h0=0;h0<K;h0++)if(N[h0+1]!==void 0)return this.groups[h0];throw new Error("Cannot find token type for matched text")};function x2(){return this.value}if(f1.prototype.next=function(){var N=this.index;if(this.queuedGroup){var K=this._token(this.queuedGroup,this.queuedText,N);return this.queuedGroup=null,this.queuedText="",K}var h0=this.buffer;if(N!==h0.length){var R0=this.fast[h0.charCodeAt(N)];if(R0)return this._token(R0,h0.charAt(N),N);var M0=this.re;M0.lastIndex=N;var D0=C2(M0,h0),A0=this.error;if(D0==null)return this._token(A0,h0.slice(N,h0.length),N);var R0=this._getGroup(D0),m1=D0[0];return A0.fallback&&D0.index!==N?(this.queuedGroup=R0,this.queuedText=m1,this._token(A0,h0.slice(N,D0.index),N)):this._token(R0,m1,N)}},f1.prototype._token=function(N,K,h0){var M0=0;if(N.lineBreaks){var D0=/\n/g,A0=1;if(K===` 2720`)M0=1;else for(;D0.exec(K);)M0++,A0=D0.lastIndex;}var R0={type:typeof N.type=="function"&&N.type(K)||N.defaultType,value:typeof N.value=="function"?N.value(K):K,text:K,toString:x2,offset:h0,lineBreaks:M0,line:this.line,col:this.col},m1=K.length;if(this.index+=m1,this.line+=M0,M0!==0?this.col=m1-A0+1:this.col+=m1,N.shouldThrow){var W0=new Error(this.formatError(R0,"invalid syntax"));throw W0}return N.pop?this.popState():N.push?this.pushState(N.push):N.next&&this.setState(N.next),R0},typeof Symbol<"u"&&Symbol.iterator){var Tt=function(N){this.lexer=N;};Tt.prototype.next=function(){var N=this.lexer.next();return {value:N,done:!N}},Tt.prototype[Symbol.iterator]=function(){return this},f1.prototype[Symbol.iterator]=function(){return new Tt(this)};}return f1.prototype.formatError=function(N,K){if(N==null)var h0=this.buffer.slice(this.index),N={text:h0,offset:this.index,lineBreaks:h0.indexOf(` 2721`)===-1?0:1,line:this.line,col:this.col};var M0=2,D0=Math.max(N.line-M0,1),A0=N.line+M0,R0=String(A0).length,m1=S0(this.buffer,this.line-N.line+M0+1).slice(0,5),W0=[];W0.push(K+" at line "+N.line+" col "+N.col+":"),W0.push("");for(var L0=0;L0<m1.length;L0++){var Z1=m1[L0],ue=D0+L0;W0.push(V0(String(ue),R0)+" "+Z1),ue===N.line&&W0.push(V0("",R0+N.col+1)+"^");}return W0.join(` 2722`)},f1.prototype.clone=function(){return new f1(this.states,this.state)},f1.prototype.has=function(N){return !0},{compile:$t,states:Ht,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:Lt}});})(ui);var U9=ui.exports;((function(n){var s=Ir&&Ir.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0}),n.lexer=n.states=void 0;let l=s(U9);n.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:c=>c.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:c=>c.substring(1).trim()}
2722,octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:c=>c.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:c=>c.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:c=>c.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:c=>c.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:c=>c.substring(0,c.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},n.lexer=l.default.states(n.states);}))(gi),Object.defineProperty(Ia,"__esModule",{value:!0});var wi=Ia.parse=Ia.ParseError=void 0;let fi=gi,g2=n=>({offset:n.offset,line:n.line,col:n.col,text:n.text,lineBreaks:n.lineBreaks}),Nr=n=>n==="plural"||n==="select"||n==="selectordinal";function j9(n,s){let l="",c="";for(let w of s){let x=w.ctx.text;switch(c+=x,w.type){case "content":l+=w.value;break;case "argument":case "function":case "octothorpe":l+=x;break;default:throw new I1(n,`Unsupported part in strict mode function arg style: ${x}`)}}return [{type:"content",value:l.trim(),ctx:Object.assign({},s[0].ctx,{text:c})}]}let G9=["number","date","time","spellout","ordinal","duration"],Ci=["zero","one","two","few","many","other"];class I1 extends Error{constructor(s,l){super(fi.lexer.formatError(s,l));}}Ia.ParseError=I1;class Q9{constructor(s,l){var c,m,w,x;this.lexer=fi.lexer.reset(s),this.cardinalKeys=(c=l?.cardinal)!==null&&c!==void 0?c:Ci,this.ordinalKeys=(m=l?.ordinal)!==null&&m!==void 0?m:Ci,this.strict=(w=l?.strict)!==null&&w!==void 0?w:!1,this.strictPluralKeys=(x=l?.strictPluralKeys)!==null&&x!==void 0?x:!0;}parse(){return this.parseBody(!1,!0)}checkSelectKey(s,l,c){if(c[0]==="="){if(l==="select")throw new I1(s,`The case ${c} is not valid with select`)}else if(l!=="select"){let m=l==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&m.length>0&&!m.includes(c)){let w=`The ${l} case ${c} is not valid in this locale`;throw new I1(s,w)}}}parseSelect(s,l,c,m){let{value:w}=s,x={type:m,arg:w,cases:[],ctx:c};m==="plural"||m==="selectordinal"?l=!0:this.strict&&(l=!1);for(let T of this.lexer)switch(T.type){case "offset":if(m==="select")throw new I1(T,"Unexpected plural offset for select");if(x.cases.length>0)throw new I1(T,"Plural offset must be set before cases");x.pluralOffset=Number(T.value),c.text+=T.text,c.lineBreaks+=T.lineBreaks;break;case "case":{this.checkSelectKey(T,m,T.value),x.cases.push({key:T.value,tokens:this.parseBody(l),ctx:g2(T)});break}case "end":return x;default:throw new I1(T,`Unexpected lexer token: ${T.type}`)}throw new I1(null,"Unexpected message end")}parseArgToken(s,l){let c=g2(s),m=this.lexer.next();if(!m)throw new I1(null,"Unexpected message end");if(c.text+=m.text,c.lineBreaks+=m.lineBreaks,this.strict&&(m.type==="func-simple"||m.type==="func-args")&&!G9.includes(m.value)){let w=`Invalid strict mode function arg type: ${m.value}`;throw new I1(s,w)}switch(m.type){case "end":return {type:"argument",arg:s.value,ctx:c};case "func-simple":{let w=this.lexer.next();if(!w)throw new I1(null,"Unexpected message end");if(w.type!=="end")throw new I1(w,`Unexpected lexer token: ${w.type}`);if(c.text+=w.text,Nr(m.value.toLowerCase()))throw new I1(m,`Invalid type identifier: ${m.value}`);return {type:"function",arg:s.value,key:m.value,ctx:c}}case "func-args":{if(Nr(m.value.toLowerCase())){let x=`Invalid type identifier: ${m.value}`;throw new I1(m,x)}let w=this.parseBody(this.strict?!1:l);return this.strict&&w.length>0&&(w=j9(s,w)),{type:"function",arg:s.value,key:m.value,param:w,ctx:c}}case "select":if(Nr(m.value))return this.parseSelect(s,l,c,m.value);throw new I1(m,`Unexpected select type ${m.value}`);default:throw new I1(m,`Unexpected lexer token: ${m.type}`)}}parseBody(s,l){let c=[],m=null;for(let w of this.lexer)if(w.type==="argument")m&&(m=null),c.push(this.parseArgToken(w,s));else if(w.type==="octothorpe"&&s)m&&(m=null),c.push({type:"octothorpe",ctx:g2(w)});else {if(w.type==="end"&&!l)return c;{let x=w.value;if(!s&&w.type==="quoted"&&x[0]==="#"){if(x.includes("{")){let T=`Unsupported escape pattern: ${x}`;throw new I1(w,T)}x=w.text;}m?(m.value+=x,m.ctx.text+=w.text,m.ctx.lineBreaks+=w.lineBreaks):(m={type:"content",value:x,ctx:g2(w)},c.push(m));}}if(l)return c;throw new I1(null,"Unexpected message end")}}function Z9(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Q9(n,s).parse()}wi=Ia.parse=Z9;function Na(n){return Na[n]||(Na[n]=new Intl.NumberFormat(n))}function W9(n,s,l){return Na(n).format(s-l)}function K9(n,s,l,c){var m=s-l;if(isNaN(m))throw new Error("`"+c+"` or its offset is not a number");return Na(n).format(m)}function X9(n,s,l,c,m){if({}.hasOwnProperty.call(c,n))return c[n];s&&(n-=s);var w=l(n,m);return w in c?c[w]:c.other}function Y9(n,s){return {}.hasOwnProperty.call(s,n)?s[n]:s.other}function J9(n,s){for(var l=0;l<n.length;++l)if(!s||s[n[l]]===void 0)throw new Error("Message requires argument '".concat(n[l],"'"))}var tm=Object.freeze({__proto__:null,_nf:Na,number:W9,plural:X9,reqArgs:J9,select:Y9,strictNumber:K9});function em(n,s,l){var c={day:"numeric",month:"short",year:"numeric"};switch(l){case "full":c.weekday="long";case "long":c.month="long";break;case "short":c.month="numeric";}return new Date(n).toLocaleDateString(s,c)}function am(n){if(typeof n!="number"&&(n=Number(n)),!isFinite(n))return String(n);var s="";n<0?(s="-",n=Math.abs(n)):n=Number(n);var l=n%60,c=[Math.round(l)===l?l:l.toFixed(3)];n<60?c.unshift(0):(n=Math.round((n-Number(c[0]))/60),c.unshift(n%60),n>=60&&(n=Math.round((n-Number(c[0]))/60),c.unshift(n)));var m=c.shift();return s+m+":"+c.map(function(w){return Number(w)<10?"0"+String(w):String(w)}).join(":")}var Pr={};function u2(n,s){var l=String(n)+JSON.stringify(s);return Pr[l]||(Pr[l]=new Intl.NumberFormat(n,s)),Pr[l]}function om(n,s,l,c){var m=l&&l.split(":")||[],w=m[0],x=m[1],T={integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:x&&x.trim()||c,minimumFractionDigits:2,maximumFractionDigits:2}};return u2(s,T[w]||{}).format(n)}var rm=function(n,s,l){return u2(s,{style:"currency",currency:l,minimumFractionDigits:2,maximumFractionDigits:2}).format(n)},nm=function(n,s){return u2(s,{maximumFractionDigits:0}).format(n)},im=function(n,s){return u2(s,{style:"percent"}).format(n)};function sm(n,s,l){var c={second:"numeric",minute:"numeric",hour:"numeric"};switch(l){case "full":case "long":c.timeZoneName="short";break;
2722case "short":delete c.second;}return new Date(n).toLocaleTimeString(s,c)}var Rr=Object.freeze({__proto__:null,date:em,duration:am,numberCurrency:rm,numberFmt:om,numberInteger:nm,numberPercent:im,time:sm}),lm={ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}},Or=$9(lm);function cm(n){let s=0;for(let l=0;l<n.length;++l){let c=n.charCodeAt(l);s=(s<<5)-s+c,s|=0;}return s}function qt(n,s){s&&(n+=" "+cm(n).toString(36));let l=n.trim().replace(/\W+/g,"_");return Or.ES3[l]||Or.ESnext[l]||/^\d/.test(l)?"_"+l:l}function qr(n,s){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(s)&&!Or.ES3[s])return n?n+"."+s:s;{let l=JSON.stringify(s);return n?n+"["+l+"]":l}}var hm=["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"],pm=new RegExp("^"+hm.join("|^"));function mm(n,s){var l=pm.test(s),c=JSON.stringify(l?"\u200F":"\u200E");return "".concat(c," + ").concat(n," + ").concat(c)}var vm="@messageformat/runtime",dm="@messageformat/runtime/lib/cardinals",xi="@messageformat/runtime/lib/plurals",gm="@messageformat/runtime/lib/formatters",um=(function(){function n(s){this.arguments=[],this.runtime={},this.options=s;}return n.prototype.compile=function(s,l,c){var m,w,x=this,T=this.options,I=T.localeCodeFromKey,G=T.requireAllArguments,x0=T.strict,V0=T.strictPluralKeys;if(typeof s=="object"){var S0={};try{for(var a0=r(Object.keys(s)),a1=a0.next();!a1.done;a1=a0.next()){var p1=a1.value,b1=I?I(p1):p1,K1=c&&b1&&c[b1]||l;S0[p1]=this.compile(s[p1],K1,c);}}catch(f1){m={error:f1};}finally{try{a1&&!a1.done&&(w=a0.return)&&w.call(a0);}finally{if(m)throw m.error}}return S0}this.plural=l;var C5={cardinal:l.cardinals,ordinal:l.ordinals,strict:x0,strictPluralKeys:V0};this.arguments=[];var $t=wi(s,C5).map(function(f1){return x.token(f1,null)}),St=this.arguments.length>0,Ht=this.concatenate($t,!0);if(G&&St){this.setRuntimeFn("reqArgs");var Lt=JSON.stringify(this.arguments);return "(d) => { reqArgs(".concat(Lt,", d); return ").concat(Ht,"; }")}return "(".concat(St?"d":"",") => ").concat(Ht)},n.prototype.cases=function(s,l){var c=this,m=!0,w=s.cases.map(function(x0){var V0=x0.key,S0=x0.tokens;V0==="other"&&(m=!1);var a0=S0.map(function(a1){return c.token(a1,l)});return "".concat(qr(null,V0.replace(/^=/,"")),": ").concat(c.concatenate(a0,!1))});if(m){var x=s.type,T=this.plural,I=T.cardinals,G=T.ordinals;if(x==="select"||x==="plural"&&I.includes("other")||x==="selectordinal"&&G.includes("other"))throw new Error("No 'other' form found in ".concat(JSON.stringify(s)))}return "{ ".concat(w.join(", ")," }")},n.prototype.concatenate=function(s,l){var c=this.options.returnType==="values";return c&&(l||s.length>1)?"["+s.join(", ")+"]":s.join(" + ")||'""'},n.prototype.token=function(s,l){if(s.type==="content")return JSON.stringify(s.value);var c=this.plural,m=c.id,w=c.lc,x,T;switch("arg"in s?(this.arguments.push(s.arg),x=[qr("d",s.arg)]):x=[],s.type){case "argument":return this.options.biDiSupport?mm(String(x[0]),w):String(x[0]);case "select":T="select",l&&this.options.strict&&(l=null),x.push(this.cases(s,l)),this.setRuntimeFn("select");break;case "selectordinal":T="plural",x.push(s.pluralOffset||0,m,this.cases(s,s),1),this.setLocale(m,!0),this.setRuntimeFn("plural");break;case "plural":T="plural",x.push(s.pluralOffset||0,m,this.cases(s,s)),this.setLocale(m,!1),this.setRuntimeFn("plural");break;case "function":{var I=this.options.customFormatters[s.key],G=I&&"module"in I&&typeof I.module=="function";if(!I){if(s.key==="date"){T=this.setDateFormatter(s,x,l);break}else if(s.key==="number"){T=this.setNumberFormatter(s,x,l);break}}if(x.push(JSON.stringify(this.plural.locale)),s.param){l&&this.options.strict&&(l=null);var x0=this.getFormatterArg(s,l);x0&&x.push(x0);}
2722T=G?qt("".concat(s.key,"__").concat(this.plural.locale)):s.key,this.setFormatter(T,s.key);break}case "octothorpe":if(!l)return '"#"';x=[JSON.stringify(this.plural.locale),qr("d",l.arg),l.pluralOffset||0],this.options.strict?(T="strictNumber",x.push(JSON.stringify(l.arg)),this.setRuntimeFn("strictNumber")):(T="number",this.setRuntimeFn("number"));break}if(!T)throw new Error("Parser error for token "+JSON.stringify(s));return "".concat(T,"(").concat(x.join(", "),")")},n.prototype.runtimeIncludes=function(s,l){if(qt(s)!==s)throw new SyntaxError("Reserved word used as ".concat(l," identifier: ").concat(s));var c=this.runtime[s];if(!c||c.type===l)return c;throw new TypeError("Cannot override ".concat(c.type," runtime function as ").concat(l,": ").concat(s))},n.prototype.setLocale=function(s,l){var c=this.runtimeIncludes(s,"locale"),m=this.plural,w=m.getCardinal,x=m.getPlural,T=m.isDefault,I,G,x0;if(!l&&T&&w){if(c)return;I=function(V0){return w(V0)},G=dm,x0=function(){return String(w)};}else {if(c&&(!T||c.module===xi))return;I=function(V0,S0){return x(V0,S0)},G=T?xi:x.module||null,x0=function(){return String(x)};}this.runtime[s]=Object.assign(I,{id:s,module:G,toString:x0,type:"locale"});},n.prototype.setRuntimeFn=function(s){this.runtimeIncludes(s,"runtime")||(this.runtime[s]=Object.assign(tm[s],{id:s,module:vm,type:"runtime"}));},n.prototype.getFormatterArg=function(s,l){var c,m,w,x,T=this,I=s.key,G=s.param,x0=this.options.customFormatters[I]||_i(I)&&Rr[I];if(!x0||!G)return null;var V0="arg"in x0&&x0.arg||"string";if(V0==="options"){var S0="";try{for(var a0=r(G),a1=a0.next();!a1.done;a1=a0.next()){var p1=a1.value;if(p1.type==="content")S0+=p1.value;else throw new SyntaxError("Expected literal options for ".concat(I," formatter"))}}catch(Tt){c={error:Tt};}finally{try{a1&&!a1.done&&(m=a0.return)&&m.call(a0);}finally{if(c)throw c.error}}var b1={};try{for(var K1=r(S0.split(",")),C5=K1.next();!C5.done;C5=K1.next()){var $t=C5.value,St=$t.indexOf(":");if(St===-1)b1[$t.trim()]=null;else {var Ht=$t.substring(0,St).trim(),Lt=$t.substring(St+1).trim();if(Lt==="true")b1[Ht]=!0;else if(Lt==="false")b1[Ht]=!1;else if(Lt==="null")b1[Ht]=null;else {var f1=Number(Lt);b1[Ht]=Number.isFinite(f1)?f1:Lt;}}}}catch(Tt){w={error:Tt};}finally{try{C5&&!C5.done&&(x=K1.return)&&x.call(K1);}finally{if(w)throw w.error}}return JSON.stringify(b1)}else {var C2=G.map(function(Tt){return T.token(Tt,l)});if(V0==="raw")return "[".concat(C2.join(", "),"]");var x2=C2.join(" + ");return x2?"(".concat(x2,").trim()"):'""'}},n.prototype.setFormatter=function(s,l){if(!this.runtimeIncludes(s,"formatter")){var c=this.options.customFormatters[l||s];if(c){var m=typeof c=="function"?{formatter:c}:c;this.runtime[s]=Object.assign(m.formatter.bind({}),e(e({},m.formatter.prototype),{toString:function(){return String(m.formatter)}}),{type:"formatter"},"module"in c&&c.module&&c.id?{id:qt(c.id),module:typeof c.module=="function"?c.module(this.plural.locale):c.module}:{id:null,module:null});}else if(_i(s))this.runtime[s]=Object.assign(Rr[s],{type:"formatter"},{id:s,module:gm});else throw new Error("Formatting function not found: ".concat(s))}},n.prototype.setDateFormatter=function(s,l,c){var m=this,w=s.param,x=this.plural.locale,T=w&&w.length===1&&w[0];if(T&&T.type==="content"&&/^\s*::/.test(T.value)){var I=T.value.trim().substr(2),G=qt("date_".concat(x,"_").concat(I),!0);if(!this.runtimeIncludes(G,"formatter")){var x0=Ot(x,I);this.runtime[G]=Object.assign(x0,{id:G,module:null,toString:function(){return w5(x,I)},type:"formatter"});}return G}if(l.push(JSON.stringify(x)),w&&w.length>0){c&&this.options.strict&&(c=null);var V0=w.map(function(S0){return m.token(S0,c)});l.push("("+(V0.join(" + ")||'""')+").trim()");}return this.setFormatter("date"),"date"},n.prototype.setNumberFormatter=function(s,l,c){var m=this,w=s.param,x=this.plural.locale;if(!w||w.length===0)return l.unshift(JSON.stringify(x)),l.push("0"),this.setRuntimeFn("number"),"number";if(l.push(JSON.stringify(x)),w.length===1&&w[0].type==="content"){var T=w[0].value.trim();switch(T){case "currency":return l.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case "integer":return this.setFormatter("numberInteger"),"numberInteger";case "percent":return this.setFormatter("numberPercent"),"numberPercent"}var I=T.match(/^currency:([A-Z]+)$/);
2722if(I)return l.push(JSON.stringify(I[1])),this.setFormatter("numberCurrency"),"numberCurrency";var G=qt("number_".concat(x,"_").concat(T),!0);if(!this.runtimeIncludes(G,"formatter")){var x0=this.options.currency,V0=O9(x,T,x0);this.runtime[G]=Object.assign(V0,{id:null,module:null,toString:function(){return q9(x,T,x0)},type:"formatter"});}return G}c&&this.options.strict&&(c=null);var S0=w.map(function(a0){return m.token(a0,c)});return l.push("("+(S0.join(" + ")||'""')+").trim()"),l.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"},n})();function _i(n){return n in Rr}let Z=n=>n==1?"one":"other",Mt=n=>n==0||n==1?"one":"other",Q5=n=>n>=0&&n<=1?"one":"other",Q1=n=>{let s=String(n).split("."),l=!s[1];return n==1&&l?"one":"other"},j0=n=>"other",At=n=>n==1?"one":n==2?"two":"other";var wm=Object.freeze({__proto__:null,af:Z,ak:Mt,am:Q5,an:Z,ar:n=>{let s=String(n).split("."),l=Number(s[0])==n,c=l&&s[0].slice(-2);return n==0?"zero":n==1?"one":n==2?"two":c>=3&&c<=10?"few":c>=11&&c<=99?"many":"other"},ars:n=>{let s=String(n).split("."),l=Number(s[0])==n,c=l&&s[0].slice(-2);return n==0?"zero":n==1?"one":n==2?"two":c>=3&&c<=10?"few":c>=11&&c<=99?"many":"other"},as:Q5,asa:Z,ast:Q1,az:Z,bal:Z,be:n=>{let s=String(n).split("."),l=Number(s[0])==n,c=l&&s[0].slice(-1),m=l&&s[0].slice(-2);return c==1&&m!=11?"one":c>=2&&c<=4&&(m<12||m>14)?"few":l&&c==0||c>=5&&c<=9||m>=11&&m<=14?"many":"other"},bem:Z,bez:Z,bg:Z,bho:Mt,bm:j0,bn:Q5,bo:j0,br:n=>{let s=String(n).split("."),l=Number(s[0])==n,c=l&&s[0].slice(-1),m=l&&s[0].slice(-2),w=l&&s[0].slice(-6);return c==1&&m!=11&&m!=71&&m!=91?"one":c==2&&m!=12&&m!=72&&m!=92?"two":(c==3||c==4||c==9)&&(m<10||m>19)&&(m<70||m>79)&&(m<90||m>99)?"few":n!=0&&l&&w==0?"many":"other"},brx:Z,bs:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=l.slice(-2),T=c.slice(-1),I=c.slice(-2);return m&&w==1&&x!=11||T==1&&I!=11?"one":m&&w>=2&&w<=4&&(x<12||x>14)||T>=2&&T<=4&&(I<12||I>14)?"few":"other"},ca:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-6);return n==1&&c?"one":l!=0&&m==0&&c?"many":"other"},ce:Z,ceb:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=c.slice(-1);return m&&(l==1||l==2||l==3)||m&&w!=4&&w!=6&&w!=9||!m&&x!=4&&x!=6&&x!=9?"one":"other"},cgg:Z,chr:Z,ckb:Z,cs:n=>{let s=String(n).split("."),l=s[0],c=!s[1];return n==1&&c?"one":l>=2&&l<=4&&c?"few":c?"other":"many"},cy:n=>n==0?"zero":n==1?"one":n==2?"two":n==3?"few":n==6?"many":"other",da:n=>{let s=String(n).split("."),l=s[0],c=Number(s[0])==n;return n==1||!c&&(l==0||l==1)?"one":"other"},de:Q1,doi:Q5,dsb:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-2),x=c.slice(-2);return m&&w==1||x==1?"one":m&&w==2||x==2?"two":m&&(w==3||w==4)||x==3||x==4?"few":"other"},dv:Z,dz:j0,ee:Z,el:Z,en:Q1,eo:Z,es:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-6);return n==1?"one":l!=0&&m==0&&c?"many":"other"},et:Q1,eu:Z,fa:Q5,ff:n=>n>=0&&n<2?"one":"other",fi:Q1,fil:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=c.slice(-1);return m&&(l==1||l==2||l==3)||m&&w!=4&&w!=6&&w!=9||!m&&x!=4&&x!=6&&x!=9?"one":"other"},fo:Z,fr:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-6);return n>=0&&n<2?"one":l!=0&&m==0&&c?"many":"other"},fur:Z,fy:Q1,ga:n=>{let s=String(n).split("."),l=Number(s[0])==n;return n==1?"one":n==2?"two":l&&n>=3&&n<=6?"few":l&&n>=7&&n<=10?"many":"other"},gd:n=>{let s=String(n).split("."),l=Number(s[0])==n;return n==1||n==11?"one":n==2||n==12?"two":l&&n>=3&&n<=10||l&&n>=13&&n<=19?"few":"other"},gl:Q1,gsw:Z,gu:Q5,guw:Mt,gv:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-1),w=l.slice(-2);return c&&m==1?"one":c&&m==2?"two":c&&(w==0||w==20||w==40||w==60||w==80)?"few":c?"other":"many"},ha:Z,haw:Z,he:n=>{let s=String(n).split("."),l=s[0],c=!s[1];return l==1&&c||l==0&&!c?"one":l==2&&c?"two":"other"},hi:Q5,hnj:j0,hr:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=l.slice(-2),T=c.slice(-1),I=c.slice(-2);return m&&w==1&&x!=11||T==1&&I!=11?"one":m&&w>=2&&w<=4&&(x<12||x>14)||T>=2&&T<=4&&(I<12||I>14)?"few":"other"},hsb:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-2),x=c.slice(-2);return m&&w==1||x==1?"one":m&&w==2||x==2?"two":m&&(w==3||w==4)||x==3||x==4?"few":"other"},hu:Z,hy:n=>n>=0&&n<2?"one":"other",ia:Q1,id:j0,ig:j0,ii:j0,io:Q1,is:n=>{let s=String(n).split("."),l=s[0],c=(s[1]||"").replace(/0+$/,""),m=Number(s[0])==n,w=l.slice(-1),x=l.slice(-2);
2722return m&&w==1&&x!=11||c%10==1&&c%100!=11?"one":"other"},it:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-6);return n==1&&c?"one":l!=0&&m==0&&c?"many":"other"},iu:At,ja:j0,jbo:j0,jgo:Z,jmc:Z,jv:j0,jw:j0,ka:Z,kab:n=>n>=0&&n<2?"one":"other",kaj:Z,kcg:Z,kde:j0,kea:j0,kk:Z,kkj:Z,kl:Z,km:j0,kn:Q5,ko:j0,ks:Z,ksb:Z,ksh:n=>n==0?"zero":n==1?"one":"other",ku:Z,kw:n=>{let s=String(n).split("."),l=Number(s[0])==n,c=l&&s[0].slice(-2),m=l&&s[0].slice(-3),w=l&&s[0].slice(-5),x=l&&s[0].slice(-6);return n==0?"zero":n==1?"one":c==2||c==22||c==42||c==62||c==82||l&&m==0&&(w>=1e3&&w<=2e4||w==4e4||w==6e4||w==8e4)||n!=0&&x==1e5?"two":c==3||c==23||c==43||c==63||c==83?"few":n!=1&&(c==1||c==21||c==41||c==61||c==81)?"many":"other"},ky:Z,lag:n=>{let s=String(n).split("."),l=s[0];return n==0?"zero":(l==0||l==1)&&n!=0?"one":"other"},lb:Z,lg:Z,lij:Q1,lkt:j0,ln:Mt,lo:j0,lt:n=>{let s=String(n).split("."),l=s[1]||"",c=Number(s[0])==n,m=c&&s[0].slice(-1),w=c&&s[0].slice(-2);return m==1&&(w<11||w>19)?"one":m>=2&&m<=9&&(w<11||w>19)?"few":l!=0?"many":"other"},lv:n=>{let s=String(n).split("."),l=s[1]||"",c=l.length,m=Number(s[0])==n,w=m&&s[0].slice(-1),x=m&&s[0].slice(-2),T=l.slice(-2),I=l.slice(-1);return m&&w==0||x>=11&&x<=19||c==2&&T>=11&&T<=19?"zero":w==1&&x!=11||c==2&&I==1&&T!=11||c!=2&&I==1?"one":"other"},mas:Z,mg:Mt,mgo:Z,mk:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=l.slice(-2),T=c.slice(-1),I=c.slice(-2);return m&&w==1&&x!=11||T==1&&I!=11?"one":"other"},ml:Z,mn:Z,mo:n=>{let s=String(n).split("."),l=!s[1],c=Number(s[0])==n,m=c&&s[0].slice(-2);return n==1&&l?"one":!l||n==0||n!=1&&m>=1&&m<=19?"few":"other"},mr:Z,ms:j0,mt:n=>{let s=String(n).split("."),l=Number(s[0])==n,c=l&&s[0].slice(-2);return n==1?"one":n==2?"two":n==0||c>=3&&c<=10?"few":c>=11&&c<=19?"many":"other"},my:j0,nah:Z,naq:At,nb:Z,nd:Z,ne:Z,nl:Q1,nn:Z,nnh:Z,no:Z,nqo:j0,nr:Z,nso:Mt,ny:Z,nyn:Z,om:Z,or:Z,os:Z,osa:j0,pa:Mt,pap:Z,pcm:Q5,pl:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-1),w=l.slice(-2);return n==1&&c?"one":c&&m>=2&&m<=4&&(w<12||w>14)?"few":c&&l!=1&&(m==0||m==1)||c&&m>=5&&m<=9||c&&w>=12&&w<=14?"many":"other"},prg:n=>{let s=String(n).split("."),l=s[1]||"",c=l.length,m=Number(s[0])==n,w=m&&s[0].slice(-1),x=m&&s[0].slice(-2),T=l.slice(-2),I=l.slice(-1);return m&&w==0||x>=11&&x<=19||c==2&&T>=11&&T<=19?"zero":w==1&&x!=11||c==2&&I==1&&T!=11||c!=2&&I==1?"one":"other"},ps:Z,pt:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-6);return l==0||l==1?"one":l!=0&&m==0&&c?"many":"other"},pt_PT:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-6);return n==1&&c?"one":l!=0&&m==0&&c?"many":"other"},rm:Z,ro:n=>{let s=String(n).split("."),l=!s[1],c=Number(s[0])==n,m=c&&s[0].slice(-2);return n==1&&l?"one":!l||n==0||n!=1&&m>=1&&m<=19?"few":"other"},rof:Z,ru:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-1),w=l.slice(-2);return c&&m==1&&w!=11?"one":c&&m>=2&&m<=4&&(w<12||w>14)?"few":c&&m==0||c&&m>=5&&m<=9||c&&w>=11&&w<=14?"many":"other"},rwk:Z,sah:j0,saq:Z,sat:At,sc:Q1,scn:Q1,sd:Z,sdh:Z,se:At,seh:Z,ses:j0,sg:j0,sh:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=l.slice(-2),T=c.slice(-1),I=c.slice(-2);return m&&w==1&&x!=11||T==1&&I!=11?"one":m&&w>=2&&w<=4&&(x<12||x>14)||T>=2&&T<=4&&(I<12||I>14)?"few":"other"},shi:n=>{let s=String(n).split("."),l=Number(s[0])==n;return n>=0&&n<=1?"one":l&&n>=2&&n<=10?"few":"other"},si:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"";return n==0||n==1||l==0&&c==1?"one":"other"},sk:n=>{let s=String(n).split("."),l=s[0],c=!s[1];return n==1&&c?"one":l>=2&&l<=4&&c?"few":c?"other":"many"},sl:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-2);return c&&m==1?"one":c&&m==2?"two":c&&(m==3||m==4)||!c?"few":"other"},sma:At,smi:At,smj:At,smn:At,sms:At,sn:Z,so:Z,sq:Z,sr:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=l.slice(-2),T=c.slice(-1),I=c.slice(-2);return m&&w==1&&x!=11||T==1&&I!=11?"one":m&&w>=2&&w<=4&&(x<12||x>14)||T>=2&&T<=4&&(I<12||I>14)?"few":"other"},ss:Z,ssy:Z,st:Z,su:j0,sv:Q1,sw:Q1,syr:Z,ta:Z,te:Z,teo:Z,th:j0,ti:Mt,tig:Z,tk:Z,tl:n=>{let s=String(n).split("."),l=s[0],c=s[1]||"",m=!s[1],w=l.slice(-1),x=c.slice(-1);return m&&(l==1||l==2||l==3)||m&&w!=4&&w!=6&&w!=9||!m&&x!=4&&x!=6&&x!=9?"one":"other"},tn:Z,to:j0,tpi:j0,tr:Z,ts:Z,tzm:n=>{let s=String(n).split("."),l=Number(s[0])==n;return n==0||n==1||l&&n>=11&&n<=99?"one":"other"},ug:Z,uk:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-1),w=l.slice(-2);return c&&m==1&&w!=11?"one":c&&m>=2&&m<=4&&(w<12||w>14)?"few":c&&m==0||c&&m>=5&&m<=9||c&&w>=11&&w<=14?"many":"other"},und:j0,ur:Q1,uz:Z,ve:Z,vec:n=>{let s=String(n).split("."),l=s[0],c=!s[1],m=l.slice(-6);return n==1&&c?"one":l!=0&&m==0&&c?"many":"other"},vi:j0,vo:Z,vun:Z,wa:Mt,wae:Z,wo:j0,xh:Z,xog:Z,yi:Q1,yo:j0,yue:j0,zh:j0,zu:Q5});let yt="zero",J="one",h1="two",E0="few",P0="many",O="other",$={cardinal:[J,O],ordinal:[O]},ge={cardinal:[J,O],ordinal:[J,O]},X0={cardinal:[O],ordinal:[O]},Z5={cardinal:[J,h1,O],ordinal:[O]};var bi=Object.freeze({__proto__:null,af:$,ak:$,am:$,an:$,ar:{cardinal:[yt,J,h1,E0,P0,O],ordinal:[O]},ars:{cardinal:[yt,J,h1,E0,P0,O],ordinal:[O]},as:{cardinal:[J,O],ordinal:[J,h1,E0,P0,O]},asa:$,ast:$,az:{cardinal:[J,O],ordinal:[J,E0,P0,O]},bal:ge,be:{cardinal:[J,E0,P0,O],ordinal:[E0,O]}
2722,bem:$,bez:$,bg:$,bho:$,bm:X0,bn:{cardinal:[J,O],ordinal:[J,h1,E0,P0,O]},bo:X0,br:{cardinal:[J,h1,E0,P0,O],ordinal:[O]},brx:$,bs:{cardinal:[J,E0,O],ordinal:[O]},ca:{cardinal:[J,P0,O],ordinal:[J,h1,E0,O]},ce:$,ceb:$,cgg:$,chr:$,ckb:$,cs:{cardinal:[J,E0,P0,O],ordinal:[O]},cy:{cardinal:[yt,J,h1,E0,P0,O],ordinal:[yt,J,h1,E0,P0,O]},da:$,de:$,doi:$,dsb:{cardinal:[J,h1,E0,O],ordinal:[O]},dv:$,dz:X0,ee:$,el:$,en:{cardinal:[J,O],ordinal:[J,h1,E0,O]},eo:$,es:{cardinal:[J,P0,O],ordinal:[O]},et:$,eu:$,fa:$,ff:$,fi:$,fil:ge,fo:$,fr:{cardinal:[J,P0,O],ordinal:[J,O]},fur:$,fy:$,ga:{cardinal:[J,h1,E0,P0,O],ordinal:[J,O]},gd:{cardinal:[J,h1,E0,O],ordinal:[J,h1,E0,O]},gl:$,gsw:$,gu:{cardinal:[J,O],ordinal:[J,h1,E0,P0,O]},guw:$,gv:{cardinal:[J,h1,E0,P0,O],ordinal:[O]},ha:$,haw:$,he:Z5,hi:{cardinal:[J,O],ordinal:[J,h1,E0,P0,O]},hnj:X0,hr:{cardinal:[J,E0,O],ordinal:[O]},hsb:{cardinal:[J,h1,E0,O],ordinal:[O]},hu:ge,hy:ge,ia:$,id:X0,ig:X0,ii:X0,io:$,is:$,it:{cardinal:[J,P0,O],ordinal:[P0,O]},iu:Z5,ja:X0,jbo:X0,jgo:$,jmc:$,jv:X0,jw:X0,ka:{cardinal:[J,O],ordinal:[J,P0,O]},kab:$,kaj:$,kcg:$,kde:X0,kea:X0,kk:{cardinal:[J,O],ordinal:[P0,O]},kkj:$,kl:$,km:X0,kn:$,ko:X0,ks:$,ksb:$,ksh:{cardinal:[yt,J,O],ordinal:[O]},ku:$,kw:{cardinal:[yt,J,h1,E0,P0,O],ordinal:[J,P0,O]},ky:$,lag:{cardinal:[yt,J,O],ordinal:[O]},lb:$,lg:$,lij:{cardinal:[J,O],ordinal:[P0,O]},lkt:X0,ln:$,lo:{cardinal:[O],ordinal:[J,O]},lt:{cardinal:[J,E0,P0,O],ordinal:[O]},lv:{cardinal:[yt,J,O],ordinal:[O]},mas:$,mg:$,mgo:$,mk:{cardinal:[J,O],ordinal:[J,h1,P0,O]},ml:$,mn:$,mo:{cardinal:[J,E0,O],ordinal:[J,O]},mr:{cardinal:[J,O],ordinal:[J,h1,E0,O]},ms:{cardinal:[O],ordinal:[J,O]},mt:{cardinal:[J,h1,E0,P0,O],ordinal:[O]},my:X0,nah:$,naq:Z5,nb:$,nd:$,ne:ge,nl:$,nn:$,nnh:$,no:$,nqo:X0,nr:$,nso:$,ny:$,nyn:$,om:$,or:{cardinal:[J,O],ordinal:[J,h1,E0,P0,O]},os:$,osa:X0,pa:$,pap:$,pcm:$,pl:{cardinal:[J,E0,P0,O],ordinal:[O]},prg:{cardinal:[yt,J,O],ordinal:[O]},ps:$,pt:{cardinal:[J,P0,O],ordinal:[O]},pt_PT:{cardinal:[J,P0,O],ordinal:[O]},rm:$,ro:{cardinal:[J,E0,O],ordinal:[J,O]},rof:$,ru:{cardinal:[J,E0,P0,O],ordinal:[O]},rwk:$,sah:X0,saq:$,sat:Z5,sc:{cardinal:[J,O],ordinal:[P0,O]},scn:{cardinal:[J,O],ordinal:[P0,O]},sd:$,sdh:$,se:Z5,seh:$,ses:X0,sg:X0,sh:{cardinal:[J,E0,O],ordinal:[O]},shi:{cardinal:[J,E0,O],ordinal:[O]},si:$,sk:{cardinal:[J,E0,P0,O],ordinal:[O]},sl:{cardinal:[J,h1,E0,O],ordinal:[O]},sma:Z5,smi:Z5,smj:Z5,smn:Z5,sms:Z5,sn:$,so:$,sq:{cardinal:[J,O],ordinal:[J,P0,O]},sr:{cardinal:[J,E0,O],ordinal:[O]},ss:$,ssy:$,st:$,su:X0,sv:ge,sw:$,syr:$,ta:$,te:$,teo:$,th:X0,ti:$,tig:$,tk:{cardinal:[J,O],ordinal:[E0,O]},tl:ge,tn:$,to:X0,tpi:X0,tr:$,ts:$,tzm:$,ug:$,uk:{cardinal:[J,E0,P0,O],ordinal:[E0,O]},und:X0,ur:$,uz:$,ve:$,vec:{cardinal:[J,P0,O],ordinal:[P0,O]},vi:{cardinal:[O],ordinal:[J,O]},vo:$,vun:$,wa:$,wae:$,wo:X0,xh:$,xog:$,yi:$,yo:X0,yue:X0,zh:X0,zu:$});let t0=(n,s)=>s?"other":n==1?"one":"other",Vt=(n,s)=>s?"other":n==0||n==1?"one":"other",Ne=(n,s)=>s?"other":n>=0&&n<=1?"one":"other",f5=(n,s)=>{let l=String(n).split("."),c=!l[1];return s?"other":n==1&&c?"one":"other"},Y0=(n,s)=>"other",zt=(n,s)=>s?"other":n==1?"one":n==2?"two":"other";var w2=Object.freeze({__proto__:null,af:t0,ak:Vt,am:Ne,an:t0,ar:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-2);return s?"other":n==0?"zero":n==1?"one":n==2?"two":m>=3&&m<=10?"few":m>=11&&m<=99?"many":"other"},ars:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-2);return s?"other":n==0?"zero":n==1?"one":n==2?"two":m>=3&&m<=10?"few":m>=11&&m<=99?"many":"other"},as:(n,s)=>s?n==1||n==5||n==7||n==8||n==9||n==10?"one":n==2||n==3?"two":n==4?"few":n==6?"many":"other":n>=0&&n<=1?"one":"other",asa:t0,ast:f5,az:(n,s)=>{let l=String(n).split("."),c=l[0],m=c.slice(-1),w=c.slice(-2),x=c.slice(-3);return s?m==1||m==2||m==5||m==7||m==8||w==20||w==50||w==70||w==80?"one":m==3||m==4||x==100||x==200||x==300||x==400||x==500||x==600||x==700||x==800||x==900?"few":c==0||m==6||w==40||w==60||w==90?"many":"other":n==1?"one":"other"},bal:(n,s)=>n==1?"one":"other",be:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-1),w=c&&l[0].slice(-2);return s?(m==2||m==3)&&w!=12&&w!=13?"few":"other":m==1&&w!=11?"one":m>=2&&m<=4&&(w<12||w>14)?"few":c&&m==0||m>=5&&m<=9||w>=11&&w<=14?"many":"other"},bem:t0,bez:t0,bg:t0,bho:Vt,bm:Y0,bn:(n,s)=>s?n==1||n==5||n==7||n==8||n==9||n==10?"one":n==2||n==3?"two":n==4?"few":n==6?"many":"other":n>=0&&n<=1?"one":"other",bo:Y0,br:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-1),w=c&&l[0].slice(-2),x=c&&l[0].slice(-6);return s?"other":m==1&&w!=11&&w!=71&&w!=91?"one":m==2&&w!=12&&w!=72&&w!=92?"two":(m==3||m==4||m==9)&&(w<10||w>19)&&(w<70||w>79)&&(w<90||w>99)?"few":n!=0&&c&&x==0?"many":"other"},brx:t0,bs:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=c.slice(-2),I=m.slice(-1),G=m.slice(-2);return s?"other":w&&x==1&&T!=11||I==1&&G!=11?"one":w&&x>=2&&x<=4&&(T<12||T>14)||I>=2&&I<=4&&(G<12||G>14)?"few":"other"},ca:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-6);return s?n==1||n==3?"one":n==2?"two":n==4?"few":"other":n==1&&m?"one":c!=0&&w==0&&m?"many":"other"},ce:t0,ceb:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=m.slice(-1);return s?"other":w&&(c==1||c==2||c==3)||w&&x!=4&&x!=6&&x!=9||!w&&T!=4&&T!=6&&T!=9?"one":"other"},cgg:t0,chr:t0,ckb:t0,cs:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1];return s?"other":n==1&&m?"one":c>=2&&c<=4&&m?"few":m?"other":"many"},cy:(n,s)=>s?n==0||n==7||n==8||n==9?"zero":n==1?"one":n==2?"two":n==3||n==4?"few":n==5||n==6?"many":"other":n==0?"zero":n==1?"one":n==2?"two":n==3?"few":n==6?"many":"other",da:(n,s)=>{let l=String(n).split("."),c=l[0],m=Number(l[0])==n;return s?"other":n==1||!m&&(c==0||c==1)?"one":"other"},de:f5,doi:Ne,dsb:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-2),T=m.slice(-2);return s?"other":w&&x==1||T==1?"one":w&&x==2||T==2?"two":w&&(x==3||x==4)||T==3||T==4?"few":"other"},dv:t0,dz:Y0,ee:t0,el:t0,en:(n,s)=>{let l=String(n).split("."),c=!l[1],m=Number(l[0])==n,w=m&&l[0].slice(-1),x=m&&l[0].slice(-2);return s?w==1&&x!=11?"one":w==2&&x!=12?"two":w==3&&x!=13?"few":"other":n==1&&
2722c?"one":"other"},eo:t0,es:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-6);return s?"other":n==1?"one":c!=0&&w==0&&m?"many":"other"},et:f5,eu:t0,fa:Ne,ff:(n,s)=>s?"other":n>=0&&n<2?"one":"other",fi:f5,fil:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=m.slice(-1);return s?n==1?"one":"other":w&&(c==1||c==2||c==3)||w&&x!=4&&x!=6&&x!=9||!w&&T!=4&&T!=6&&T!=9?"one":"other"},fo:t0,fr:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-6);return s?n==1?"one":"other":n>=0&&n<2?"one":c!=0&&w==0&&m?"many":"other"},fur:t0,fy:f5,ga:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n;return s?n==1?"one":"other":n==1?"one":n==2?"two":c&&n>=3&&n<=6?"few":c&&n>=7&&n<=10?"many":"other"},gd:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n;return s?n==1||n==11?"one":n==2||n==12?"two":n==3||n==13?"few":"other":n==1||n==11?"one":n==2||n==12?"two":c&&n>=3&&n<=10||c&&n>=13&&n<=19?"few":"other"},gl:f5,gsw:t0,gu:(n,s)=>s?n==1?"one":n==2||n==3?"two":n==4?"few":n==6?"many":"other":n>=0&&n<=1?"one":"other",guw:Vt,gv:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-1),x=c.slice(-2);return s?"other":m&&w==1?"one":m&&w==2?"two":m&&(x==0||x==20||x==40||x==60||x==80)?"few":m?"other":"many"},ha:t0,haw:t0,he:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1];return s?"other":c==1&&m||c==0&&!m?"one":c==2&&m?"two":"other"},hi:(n,s)=>s?n==1?"one":n==2||n==3?"two":n==4?"few":n==6?"many":"other":n>=0&&n<=1?"one":"other",hnj:Y0,hr:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=c.slice(-2),I=m.slice(-1),G=m.slice(-2);return s?"other":w&&x==1&&T!=11||I==1&&G!=11?"one":w&&x>=2&&x<=4&&(T<12||T>14)||I>=2&&I<=4&&(G<12||G>14)?"few":"other"},hsb:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-2),T=m.slice(-2);return s?"other":w&&x==1||T==1?"one":w&&x==2||T==2?"two":w&&(x==3||x==4)||T==3||T==4?"few":"other"},hu:(n,s)=>s?n==1||n==5?"one":"other":n==1?"one":"other",hy:(n,s)=>s?n==1?"one":"other":n>=0&&n<2?"one":"other",ia:f5,id:Y0,ig:Y0,ii:Y0,io:f5,is:(n,s)=>{let l=String(n).split("."),c=l[0],m=(l[1]||"").replace(/0+$/,""),w=Number(l[0])==n,x=c.slice(-1),T=c.slice(-2);return s?"other":w&&x==1&&T!=11||m%10==1&&m%100!=11?"one":"other"},it:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-6);return s?n==11||n==8||n==80||n==800?"many":"other":n==1&&m?"one":c!=0&&w==0&&m?"many":"other"},iu:zt,ja:Y0,jbo:Y0,jgo:t0,jmc:t0,jv:Y0,jw:Y0,ka:(n,s)=>{let l=String(n).split("."),c=l[0],m=c.slice(-2);return s?c==1?"one":c==0||m>=2&&m<=20||m==40||m==60||m==80?"many":"other":n==1?"one":"other"},kab:(n,s)=>s?"other":n>=0&&n<2?"one":"other",kaj:t0,kcg:t0,kde:Y0,kea:Y0,kk:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-1);return s?m==6||m==9||c&&m==0&&n!=0?"many":"other":n==1?"one":"other"},kkj:t0,kl:t0,km:Y0,kn:Ne,ko:Y0,ks:t0,ksb:t0,ksh:(n,s)=>s?"other":n==0?"zero":n==1?"one":"other",ku:t0,kw:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-2),w=c&&l[0].slice(-3),x=c&&l[0].slice(-5),T=c&&l[0].slice(-6);return s?c&&n>=1&&n<=4||m>=1&&m<=4||m>=21&&m<=24||m>=41&&m<=44||m>=61&&m<=64||m>=81&&m<=84?"one":n==5||m==5?"many":"other":n==0?"zero":n==1?"one":m==2||m==22||m==42||m==62||m==82||c&&w==0&&(x>=1e3&&x<=2e4||x==4e4||x==6e4||x==8e4)||n!=0&&T==1e5?"two":m==3||m==23||m==43||m==63||m==83?"few":n!=1&&(m==1||m==21||m==41||m==61||m==81)?"many":"other"},ky:t0,lag:(n,s)=>{let l=String(n).split("."),c=l[0];return s?"other":n==0?"zero":(c==0||c==1)&&n!=0?"one":"other"},lb:t0,lg:t0,lij:(n,s)=>{let l=String(n).split("."),c=!l[1],m=Number(l[0])==n;return s?n==11||n==8||m&&n>=80&&n<=89||m&&n>=800&&n<=899?"many":"other":n==1&&c?"one":"other"},lkt:Y0,ln:Vt,lo:(n,s)=>s&&n==1?"one":"other",lt:(n,s)=>{let l=String(n).split("."),c=l[1]||"",m=Number(l[0])==n,w=m&&l[0].slice(-1),x=m&&l[0].slice(-2);return s?"other":w==1&&(x<11||x>19)?"one":w>=2&&w<=9&&(x<11||x>19)?"few":c!=0?"many":"other"},lv:(n,s)=>{let l=String(n).split("."),c=l[1]||"",m=c.length,w=Number(l[0])==n,x=w&&l[0].slice(-1),T=w&&l[0].slice(-2),I=c.slice(-2),G=c.slice(-1);return s?"other":w&&x==0||T>=11&&T<=19||m==2&&I>
2722=11&&I<=19?"zero":x==1&&T!=11||m==2&&G==1&&I!=11||m!=2&&G==1?"one":"other"},mas:t0,mg:Vt,mgo:t0,mk:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=c.slice(-2),I=m.slice(-1),G=m.slice(-2);return s?x==1&&T!=11?"one":x==2&&T!=12?"two":(x==7||x==8)&&T!=17&&T!=18?"many":"other":w&&x==1&&T!=11||I==1&&G!=11?"one":"other"},ml:t0,mn:t0,mo:(n,s)=>{let l=String(n).split("."),c=!l[1],m=Number(l[0])==n,w=m&&l[0].slice(-2);return s?n==1?"one":"other":n==1&&c?"one":!c||n==0||n!=1&&w>=1&&w<=19?"few":"other"},mr:(n,s)=>s?n==1?"one":n==2||n==3?"two":n==4?"few":"other":n==1?"one":"other",ms:(n,s)=>s&&n==1?"one":"other",mt:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-2);return s?"other":n==1?"one":n==2?"two":n==0||m>=3&&m<=10?"few":m>=11&&m<=19?"many":"other"},my:Y0,nah:t0,naq:zt,nb:t0,nd:t0,ne:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n;return s?c&&n>=1&&n<=4?"one":"other":n==1?"one":"other"},nl:f5,nn:t0,nnh:t0,no:t0,nqo:Y0,nr:t0,nso:Vt,ny:t0,nyn:t0,om:t0,or:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n;return s?n==1||n==5||c&&n>=7&&n<=9?"one":n==2||n==3?"two":n==4?"few":n==6?"many":"other":n==1?"one":"other"},os:t0,osa:Y0,pa:Vt,pap:t0,pcm:Ne,pl:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-1),x=c.slice(-2);return s?"other":n==1&&m?"one":m&&w>=2&&w<=4&&(x<12||x>14)?"few":m&&c!=1&&(w==0||w==1)||m&&w>=5&&w<=9||m&&x>=12&&x<=14?"many":"other"},prg:(n,s)=>{let l=String(n).split("."),c=l[1]||"",m=c.length,w=Number(l[0])==n,x=w&&l[0].slice(-1),T=w&&l[0].slice(-2),I=c.slice(-2),G=c.slice(-1);return s?"other":w&&x==0||T>=11&&T<=19||m==2&&I>=11&&I<=19?"zero":x==1&&T!=11||m==2&&G==1&&I!=11||m!=2&&G==1?"one":"other"},ps:t0,pt:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-6);return s?"other":c==0||c==1?"one":c!=0&&w==0&&m?"many":"other"},pt_PT:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-6);return s?"other":n==1&&m?"one":c!=0&&w==0&&m?"many":"other"},rm:t0,ro:(n,s)=>{let l=String(n).split("."),c=!l[1],m=Number(l[0])==n,w=m&&l[0].slice(-2);return s?n==1?"one":"other":n==1&&c?"one":!c||n==0||n!=1&&w>=1&&w<=19?"few":"other"},rof:t0,ru:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-1),x=c.slice(-2);return s?"other":m&&w==1&&x!=11?"one":m&&w>=2&&w<=4&&(x<12||x>14)?"few":m&&w==0||m&&w>=5&&w<=9||m&&x>=11&&x<=14?"many":"other"},rwk:t0,sah:Y0,saq:t0,sat:zt,sc:(n,s)=>{let l=String(n).split("."),c=!l[1];return s?n==11||n==8||n==80||n==800?"many":"other":n==1&&c?"one":"other"},scn:(n,s)=>{let l=String(n).split("."),c=!l[1];return s?n==11||n==8||n==80||n==800?"many":"other":n==1&&c?"one":"other"},sd:t0,sdh:t0,se:zt,seh:t0,ses:Y0,sg:Y0,sh:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=c.slice(-2),I=m.slice(-1),G=m.slice(-2);return s?"other":w&&x==1&&T!=11||I==1&&G!=11?"one":w&&x>=2&&x<=4&&(T<12||T>14)||I>=2&&I<=4&&(G<12||G>14)?"few":"other"},shi:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n;return s?"other":n>=0&&n<=1?"one":c&&n>=2&&n<=10?"few":"other"},si:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"";return s?"other":n==0||n==1||c==0&&m==1?"one":"other"},sk:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1];return s?"other":n==1&&m?"one":c>=2&&c<=4&&m?"few":m?"other":"many"},sl:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-2);return s?"other":m&&w==1?"one":m&&w==2?"two":m&&(w==3||w==4)||!m?"few":"other"},sma:zt,smi:zt,smj:zt,smn:zt,sms:zt,sn:t0,so:t0,sq:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-1),w=c&&l[0].slice(-2);return s?n==1?"one":m==4&&w!=14?"many":"other":n==1?"one":"other"},sr:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=c.slice(-2),I=m.slice(-1),G=m.slice(-2);return s?"other":w&&x==1&&T!=11||I==1&&G!=11?"one":w&&x>=2&&x<=4&&(T<12||T>14)||I>=2&&I<=4&&(G<12||G>14)?"few":"other"},ss:t0,ssy:t0,st:t0,su:Y0,sv:(n,s)=>{let l=String(n).split("."),c=!l[1],m=Number(l[0])==n,w=m&&l[0].slice(-1),x=m&&l[0].slice(-2);return s?(w==1||w==2)&&x!=11&&x!=12?"one":"other":n==1&&c?"one":"other"},sw:f5,syr:t0,ta:t0,te:t0,teo:t0,th:Y0,ti:Vt,tig:t0,tk:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n,m=c&&l[0].slice(-1);return s?m==6||m==9||n==10?"few":"other":n==1?"one":"other"},tl:(n,s)=>{let l=String(n).split("."),c=l[0],m=l[1]||"",w=!l[1],x=c.slice(-1),T=m.slice(-1);return s?n==1?"one":"other":w&&(c==1||c==2||c==3)||w&&x!=4&&x!=6&&x!=9||!w&&T!=4&&T!=6&&T!=9?"one":"other"},tn:t0,to:Y0,tpi:Y0,tr:t0,ts:t0,tzm:(n,s)=>{let l=String(n).split("."),c=Number(l[0])==n;return s?"other":n==0||n==1||c&&n>=11&&n<=99?"one":"other"},ug:t0,uk:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=Number(l[0])==n,x=w&&l[0].slice(-1),T=w&&l[0].slice(-2),I=c.slice(-1),G=c.slice(-2);return s?x==3&&T!=13?"few":"other":m&&I==1&&G!=11?"one":m&&I>=2&&I<=4&&(G<12||G>14)?"few":m&&I==0||m&&I>=5&&I<=9||m&&G>=11&&G<=14?"many":"other"},und:Y0,ur:f5,uz:t0,ve:t0,vec:(n,s)=>{let l=String(n).split("."),c=l[0],m=!l[1],w=c.slice(-6);return s?n==11||n==8||n==80||n==800?"many":"other":n==1&&m?"one":c!=0&&w==0&&m?"many":"other"},vi:(n,s)=>s&&n==1?"one":"other",vo:t0,vun:t0,wa:Vt,wae:t0,wo:Y0,xh:t0,xog:t0,yi:f5,yo:Y0,yue:Y0,zh:Y0,zu:Ne});
2722function $r(n){if(typeof n!="string"||n.length<2)throw new RangeError("Invalid language tag: ".concat(n));if(n.startsWith("pt-PT"))return "pt-PT";var s=n.match(/.+?(?=[-_])/);return s?s[0]:n}function f2(n){if(typeof n=="function"){var s=$r(n.name);return {isDefault:!1,id:qt(s),lc:s,locale:n.name,getPlural:n,cardinals:n.cardinals||[],ordinals:n.ordinals||[]}}var l=$r(n),c=qt(l);return xm(c)?{isDefault:!0,id:c,lc:l,locale:n,getCardinal:wm[c],getPlural:w2[c],cardinals:bi[c].cardinal,ordinals:bi[c].ordinal}:null}function fm(n){var s=Object.keys(w2).filter(function(l){return l!==n});return s.unshift(n),s.map(f2)}function Cm(n){var s=$r(n);return qt(s)in w2}function xm(n){return n in w2}var _m=(function(){function n(s,l){if(this.plurals=[],this.options=Object.assign({biDiSupport:!1,currency:"USD",customFormatters:{},localeCodeFromKey:null,requireAllArguments:!1,returnType:"string",strict:l&&l.strictNumberSign||!1,strictPluralKeys:!0},l),s==="*")this.plurals=fm(n.defaultLocale);else if(Array.isArray(s))this.plurals=s.map(f2).filter(
2722Boolean);else if(s){var c=f2(s);c&&(this.plurals=[c]);}if(this.plurals.length===0){var c=f2(n.defaultLocale);this.plurals=[c];}}return n.escape=function(s,l){var c=l?/[#{}]/g:/[{}]/g;return String(s).replace(c,"'$&'")},n.supportedLocalesOf=function(s){var l=Array.isArray(s)?s:[s];return l.filter(Cm)},n.prototype.resolvedOptions=function(){return e(e({},this.options),{locale:this.plurals[0].locale,plurals:this.plurals})},n.prototype.compile=function(s){var l,c,m=new um(this.options),w="return "+m.compile(s,this.plurals[0]),x=[],T=[];try{for(var I=r(Object.entries(m.runtime)),G=I.next();!G.done;G=I.next()){var x0=t(G.value,2),V0=x0[0],S0=x0[1];x.push(V0),T.push(S0);}}catch(a1){l={error:a1};}finally{try{G&&!G.done&&(c=I.return)&&c.call(I);}finally{if(l)throw l.error}}var a0=new(Function.bind.apply(Function,a(a([void 0],t(x),!1),[w],!1)));return a0.apply(void 0,a([],t(T),!1))},n.defaultLocale="en",n})();return _m});});function ym(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&a===0?1:5}var t7=["de",[["AM","PM"]],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xE4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."]],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xB7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","Euro",{ATS:["\xF6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"\u0440."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl\xA3"],GHS:[void 0,"\u20B5"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],RWF:[void 0,"F.Rw"],SYP:[void 0,"SYP"],THB:["\u0E3F"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",ym];var xa=T$4("LiveUpdate",{web:()=>import('./chunk-C0Z0ynTe.js').then(e=>new e.LiveUpdateWeb)});var e7=T$4("Keyboard");var a7=(()=>{class e{constructor(){this._backendUrl=g$k(Bt$a),this._betaTestUrl=g$k(Ae$c),this._internalBeta=YG(g$k(wE));}intercept(t,a){if(this._internalBeta()&&t.url.startsWith(this._backendUrl)){let o=this._betaTestUrl+t.url.slice(this._backendUrl.length);return a.handle(t.clone({url:o}))}return a.handle(t)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();var Vm=new Set(["password","google.com","apple.com"]);function o7(e){return e?.some(({providerId:r})=>Vm.has(r))??false}
2722var zm=new Intl.Segmenter("und",{granularity:"word"});function r7(e){return Array.from(zm.segment(e)).filter(r=>r.isWordLike).map(r=>r.segment)}function ce(e){return Array.from(e?.trim()??"").length>=2}var Sm={locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"};function n7(e,r){if(!je(e))return e;let[t,a,o]=e.split("-").map(Number);return w$2.fromObject({year:t,month:a,day:o},Sm).toFormat(r)}var He=new RegExp("^(?<year>[0-9]{4})-(?<month>[0-9]{2})-(?<day>[0-9]{2})-(?<hour>[0-9]{2})(?<minute>[0-9]{2})(/.*)?"),c7=(e,r)=>(console.log(e,r),!He.test(e)&&He.test(r)?(console.warn(`[isVersionLower] transitional case: version=${e}, targetVersion=${r}, LAST_SEMVER=${l7}`),s7(e,l7)):!He.test(e)&&!He.test(r)?s7(e,r):He.test(e)&&!He.test(r)?false:i7(e)<=i7(r)),i7=e=>{let r=e.match(He);if(!r||!r.groups)throw new Error("Invalid tag");let{year:t,month:a,day:o,hour:i,minute:d}=r.groups;if(!t||!a||!o||!i||!d)throw new Error("Invalid tag");return new Date(`${t}-${a}-${o} ${i}:${d}`).getTime()},s7=(e,r)=>{let t=e.split(".").map(Number),a=r.split(".").map(Number);for(let o=0;o<Math.max(t.length,a.length);o++){let i=t[o]||0,d=a[o]||0;if(i<d)return true;if(i>d)return false}return false},l7="8.5.0";var h7=(()=>{class e{constructor(){this._authManager=g$k(J$4),this._logger=g$k($E),this._appRef=g$k(yt$f),this._document=g$k(Te$g),this._initialized=false;}async initialize(){this._initialized||(this._registerFocusManagerBridge(),U$5.isNativePlatform()&&await o$3.addListener("resume",async()=>{await this._handleResume();}),this._initialized=true);}_registerFocusManagerBridge(){K$n.setEventListener(t=>{let a=()=>{t(this._document.visibilityState==="visible");};this._document.addEventListener("visibilitychange",a);let o=null,i=null;return U$5.isNativePlatform()&&(o$3.addListener("resume",()=>t(true)).then(d=>{o=d;}),o$3.addListener("pause",()=>t(false)).then(d=>{i=d;})),()=>{this._document.removeEventListener("visibilitychange",a),o?.remove(),i?.remove();}});}async _handleResume(){this._logger.info("[AppResume] Resumed; refreshing Firebase ID tokens"),this._appRef.tick(),e._nudgeWebViewRepaint();let t=await this._authManager.refreshTokensForActiveSchools();(t.failed.length>0||t.expired.length>0)&&this._logger.warn("[AppResume] Token refresh batch had problems",{refreshed:t.refreshed,skipped:t.skipped,failed:t.failed,expired:t.expired});}static _nudgeWebViewRepaint(){if(typeof document>"u"||!document.body)return;let t=document.createElement("div");t.style.cssText="position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none;transform:translateZ(0)",document.body.appendChild(t);let a=false,o=()=>{a||(a=true,t.remove());};typeof requestAnimationFrame=="function"&&requestAnimationFrame(o),setTimeout(o,250);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var hn=T$4("Network",{web:()=>import('./chunk-CkxeDT6n.js').then(e=>new e.NetworkWeb)});var Ro=(()=>{class e{constructor(){this._platformId=g$k(AC$1),this._destroyRef=g$k(de$b),this._isNative=AG(this._platformId)&&U$5.isNativePlatform(),this._isOnline=On$7(true),this._statusToken=0,this.isOnline=this._isOnline.asReadonly(),AG(this._platformId)&&(this._isNative?this._initNative():this._initWeb());}recheck(){AG(this._platformId)&&(this._isNative?this._readNativeStatus():this._isOnline.set(this._readNavigatorOnline()));}_initNative(){let t=hn.addListener("networkStatusChange",a=>this._setOnline(a.connected));this._readNativeStatus(),this._destroyRef.onDestroy(()=>{t.then(a=>a.remove());});}_readNativeStatus(){this._statusToken+=1;let t=this._statusToken;hn.getStatus().then(a=>{t===this._statusToken&&this._isOnline.set(a.connected);});}_setOnline(t){this._statusToken+=1,this._isOnline.set(t);}_initWeb(){this._isOnline.set(this._readNavigatorOnline());let t=()=>this._isOnline.set(true),a=()=>this._isOnline.set(false);window.addEventListener("online",t),window.addEventListener("offline",a),this._destroyRef.onDestroy(()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a);});}_readNavigatorOnline(){return typeof navigator>"u"?true:navigator.onLine!==false}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Hm=2500,p7=(()=>{class e{constructor(){this._platformId=g$k(AC$1),this._networkStatus=g$k(Ro),this._router=g$k(H$8),this._logger=g$k($E),this._destroyRef=g$k(de$b),this._isActive=AG(this._platformId)&&U$5.isNativePlatform(),this._wasOffline=false,this._latchTimer=null,this._reconnectWatcher=Es$3(()=>{if(!this._isActive)return;if(!this._networkStatus.isOnline()){this._wasOffline=true,this._cancelLatch();return}this._wasOffline&&this._scheduleReload();}),this._destroyRef.onDestroy(()=>this._cancelLatch());}_scheduleReload(){this._cancelLatch(),this._latchTimer=setTimeout(()=>{this._latchTimer=null,this._networkStatus.isOnline()&&(this._wasOffline=false,this._reloadCurrentRoute());},Hm);}_cancelLatch(){this._latchTimer!=null&&(clearTimeout(this._latchTimer),this._latchTimer=null);}_reloadCurrentRoute(){let t=this._router.url;this._logger.info("[NetworkRecovery] Online again \u2014 re-running current route",{url:t}),this._router.navigateByUrl(t,{onSameUrlNavigation:"reload",replaceUrl:true}).catch(a=>{this._logger.error("[NetworkRecovery] Route reload failed",{url:t,message:a?.message??String(a)});});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Oo=(()=>{class e{constructor(){this._logger=g$k($E),this._router=g$k(H$8),this._pendingBundleId=On$7(null),this._applying=On$7(false),this.pendingBundleId=this._pe
2722ndingBundleId.asReadonly(),this.applying=this._applying.asReadonly(),this._initialized=false;}static{this._POST_UPDATE_ROUTE_KEY="memberspot_post_update_route";}static{this._POST_UPDATE_ROUTE_TTL_MS=6e4;}async initialize(){if(!(this._initialized||!U$5.isNativePlatform())){try{await xa.addListener("nextBundleSet",t=>{this._pendingBundleId.set(t.bundleId),this._logger.info("[LiveUpdateBanner] nextBundleSet",{bundleId:t.bundleId});}),this._initialized=!0;}catch(t){this._logger.error("[LiveUpdateBanner] Failed to register nextBundleSet listener",{error:t?.message??String(t)});}this._restorePostUpdateRoute();}}async applyNow(){if(!(this._applying()||!this._pendingBundleId())){this._applying.set(true);try{await this._savePostUpdateRoute(),await xa.reload();}catch(t){this._logger.error("[LiveUpdateBanner] reload() failed",{error:t?.message??String(t)}),this._applying.set(false);}}}async _savePostUpdateRoute(){let t=this._router.url;if(!(!t||t==="/"||t.startsWith("/auth")))try{await r$7.set({key:e._POST_UPDATE_ROUTE_KEY,value:JSON.stringify({url:t,savedAt:Date.now()})});}catch(a){this._logger.warn("[LiveUpdateBanner] Failed to save pre-reload route",{error:a?.message??String(a)});}}async _restorePostUpdateRoute(){let t=await this._readAndClearPostUpdateRoute();if(t){if(this._router.navigated){this._router.navigateByUrl(t,{replaceUrl:true});return}try{await qE$1(this._router.events.pipe(Pt$b(a=>a instanceof O$9))),this._router.navigateByUrl(t,{replaceUrl:!0});}catch(a){this._logger.warn("[LiveUpdateBanner] Failed to restore post-update route",{url:t,error:a?.message??String(a)});}}}async _readAndClearPostUpdateRoute(){let t=null;try{t=(await r$7.get({key:e._POST_UPDATE_ROUTE_KEY})).value;}catch(a){this._logger.warn("[LiveUpdateBanner] Failed to read saved route",{error:a?.message??String(a)});}try{await r$7.remove({key:e._POST_UPDATE_ROUTE_KEY});}catch{}if(!t)return null;try{let a=JSON.parse(t);if(!a||typeof a!="object")return null;let{url:o,savedAt:i}=a;return typeof o!="string"||typeof i!="number"||Date.now()-i>e._POST_UPDATE_ROUTE_TTL_MS?null:o}catch{return null}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var pn="Service workers are disabled or not supported by this browser",_a=class{serviceWorker;worker;registration;events;constructor(r,t){if(this.serviceWorker=r,!r)this.worker=this.events=this.registration=new N$d(a=>a.error(new D$l(5601,false)));else {let a=null,o=new le$d;this.worker=new N$d(L=>(a!==null&&L.next(a),o.subscribe(R=>L.next(R))));let i=()=>{let{controller:L}=r;L!==null&&(a=L,o.next(a));};r.addEventListener("controllerchange",i),i(),this.registration=this.worker.pipe(Kf$1(()=>r.getRegistration().then(L=>{if(!L)throw new D$l(5601,false);return L})));let d=new le$d;this.events=d.asObservable();let f=L=>{let{data:R}=L;R?.type&&d.next(R);};r.addEventListener("message",f),t?.get(yt$f,null,{optional:true})?.onDestroy(()=>{r.removeEventListener("controllerchange",i),r.removeEventListener("message",f);});}}postMessage(r,t){return new Promise(a=>{this.worker.pipe(hn$9(1)).subscribe(o=>{o.postMessage(r$d({action:r},t)),a();});})}postMessageWithOperation(r,t,a){let o=this.waitForOperationCompleted(a),i=this.postMessage(r,t);return Promise.all([i,o]).then(([,d])=>d)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(r){let t;return typeof r=="string"?t=a=>a.type===r:t=a=>r.includes(a.type),this.events.pipe(Pt$b(t))}nextEventOfType(r){return this.eventsOfType(r).pipe(hn$9(1))}waitForOperationCompleted(r){return new Promise((t,a)=>{this.eventsOfType("OPERATION_COMPLETED").pipe(Pt$b(o=>o.nonce===r),hn$9(1),st$c(o=>{if(o.result!==void 0)return o.result;throw new Error(o.error)})).subscribe({next:t,error:a});})}get isEnabled(){return !!this.serviceWorker}},v7=(()=>{class e{sw;messages;notificationClicks;notificationCloses;pushSubscriptionChanges;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new le$d;constructor(t){if(this.sw=t,!t.isEnabled){this.messages=RI,this.notificationClicks=RI,this.notificationCloses=RI,this.pushSubscriptionChanges=RI,this.subscription=RI;return}this.messages=this.sw.eventsOfType("PUSH").pipe(st$c(o=>
2722o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(st$c(o=>o.data)),this.notificationCloses=this.sw.eventsOfType("NOTIFICATION_CLOSE").pipe(st$c(o=>o.data)),this.pushSubscriptionChanges=this.sw.eventsOfType("PUSH_SUBSCRIPTION_CHANGE").pipe(st$c(o=>o.data)),this.pushManager=this.sw.registration.pipe(st$c(o=>o.pushManager));let a=this.pushManager.pipe(Kf$1(o=>o.getSubscription()));this.subscription=new N$d(o=>{let i=a.subscribe(o),d=this.subscriptionChanges.subscribe(o);return ()=>{i.unsubscribe(),d.unsubscribe();}});}requestSubscription(t){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(pn));let a={userVisibleOnly:true},o=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(o.length));for(let d=0;d<o.length;d++)i[d]=o.charCodeAt(d);return a.applicationServerKey=i,new Promise((d,f)=>{this.pushManager.pipe(Kf$1(y=>y.subscribe(a)),hn$9(1)).subscribe({next:y=>{this.subscriptionChanges.next(y),d(y);},error:f});})}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(pn));let t=a=>{if(a===null)throw new D$l(5602,false);return a.unsubscribe().then(o=>{if(!o)throw new D$l(5603,false);this.subscriptionChanges.next(null);})};return new Promise((a,o)=>{this.subscription.pipe(hn$9(1),Kf$1(t)).subscribe({next:a,error:o});})}decodeBase64(t){return atob(t)}static \u0275fac=function(a){return new(a||e)(G$k(_a))};static \u0275prov=L$l({token:e,factory:e.\u0275fac})}return e})(),ba=(()=>{class e{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}ongoingCheckForUpdate=null;constructor(t){if(this.sw=t,!t.isEnabled){this.versionUpdates=RI,this.unrecoverable=RI;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE");}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(pn));if(this.ongoingCheckForUpdate)return this.ongoingCheckForUpdate;let t=this.sw.generateNonce();return this.ongoingCheckForUpdate=this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:t},t).finally(()=>{this.ongoingCheckForUpdate=null;}),this.ongoingCheckForUpdate}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new D$l(5601,false));let t=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:t},t)}static \u0275fac=function(a){return new(a||e)(G$k(_a))};static \u0275prov=L$l({token:e,factory:e.\u0275fac})}return e})(),d7=new b$g("");function Lm(){let e=g$k(t2);if(!("serviceWorker"in navigator&&e.enabled!==false))return;let r=g$k(d7),t=g$k(ge$b),a=g$k(yt$f);t.runOutsideAngular(()=>{let o=navigator.serviceWorker,i=()=>o.controller?.postMessage({action:"INITIALIZE"});o.addEventListener("controllerchange",i),a.onDestroy(()=>{o.removeEventListener("controllerchange",i);});}),t.runOutsideAngular(()=>{let o,{registrationStrategy:i}=e;if(typeof i=="function")o=new Promise(d=>i().subscribe(()=>d()));else {let[d,...f]=(i||"registerWhenStable:30000").split(":");switch(d){case "registerImmediately":o=Promise.resolve();break;case "registerWithDelay":o=m7(+f[0]||0);break;case "registerWhenStable":o=Promise.race([a.whenStable(),m7(+f[0])]);break;default:throw new D$l(5600,false)}}o.then(()=>{a.destroyed||navigator.serviceWorker.register(r,{scope:e.scope,updateViaCache:e.updateViaCache,type:e.type}).catch(d=>console.error(qt$c(5604,false)));});});}function m7(e){return new Promise(r=>setTimeout(r,e))}function Tm(){let e=g$k(t2),r=g$k(oe$e);return new _a(e.enabled!==false?navigator.serviceWorker:void 0,r)}var t2=class{enabled;updateViaCache;type;scope;registrationStrategy};function Bm(e,r={}){return fo$3([v7,ba,{provide:d7,useValue:e},{provide:t2,useValue:r},{provide:_a,useFactory:Tm},JS(Lm)])}var g7=(()=>{class e{static register(t,a={}){return {ngModule:e,providers:[Bm(t,a)]}}static \u0275fac=function(a){return new(a||e)};static \u0275mod=Sa$2({type:e});static \u0275inj=io$5({providers:[v7,ba]})}return e})();var he=(()=>{class e{constructor(){this._swUpdate=g$k(ba),this.snooze=new le$d,this.newUpdateReady$=new Gr$6(false),this.snooze$=this.snooze.asObservable(),this.unrecoverableError$=this._swUpdate.unrecoverable,this.updateAvailable$=xI(this._swUpdate.versionUpdates.pipe(Ip$1(t=>{switch(t.type){case "VERSION_DETECTED":console.log(`Downloading new app version: ${t.version.hash}`);break;case "VERSION_READY":console.log(`Current app version: ${t.currentVersion.hash}`),console.log(`New app version ready for use: ${t.latestVersion.hash}`);break;case "VERSION_INSTALLATION_FAILED":console.log(`Failed to install app version '${t.version.hash}': ${t.error}`),navigator.serviceWorker.getRegistrations().then(a=>
2722{for(let o of a)o.unregister(),console.log("Service Worker unregistered due to installation failure.");}).catch(a=>{console.error("Service Worker unregistration failed: ",a);});break}}),Pt$b(t=>t.type==="VERSION_READY"))).pipe(Ip$1(()=>this.newUpdateReady$.next(true)),vp({refCount:true,bufferSize:1}));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function km(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"h1",1),QM(2),Pd$1(),ta$3(3,"div",2),Vv$1(4,"div",3),Pd$1(),ta$3(5,"div",4)(6,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.dialogRef.close(true))}),QM(7),Pd$1()(),$d$1();}if(e&2){let t=r.$implicit;uT(2),Gd$1(" ",t("newSoftware.versionTooOldTitle")," "),uT(2),jv$1("innerHTML",t("newSoftware.versionTooOldText"),cb$1),uT(3),Gd$1(" ",t("common.confirm")," ");}}var u7=(()=>{class e{constructor(){this.dialogRef=g$k(O$c);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["ng-component"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"heading-new","mb-2","text-center"],[1,"text-mspot-neutral-500","text-sm"],[1,"text-center",3,"innerHTML"],[1,"mt-6","flex","w-full","flex-col","gap-3","sm:flex-row"],["cdkFocusInitial","",1,"btn","btn-primary","w-full",3,"click"]],template:function(a,o){a&1&&gv$1(0,km,8,3,"ng-container",0);},dependencies:[bt$b,yt$a],encapsulation:2});}}return e})();var w7=(()=>{class e{constructor(){this._window=g$k(c$9),this._appversion=g$k(RE),this._swUpdateService=g$k(he),this._dialogService=g$k(Ss$2),this._httpService=g$k(Ce$a),this._ROOT_CACHE_HEAL_KEY="mspot:root-index-cache-healed";}initUnsupportedVersionCheck(){Qe$f(0,108e5).pipe(Kf$1(()=>this._httpService.get("/min-version")),Pt$b(({version:a})=>(console.log("min. required version",a,"current version",this._appversion),c7(this._appversion,a))),Kf$1(()=>this._dialogService.open(u7,{dialogConfig:{disableClose:true,panelClass:H$a.SIZE_SM}})),Kf$1(()=>this._swUpdateService.newUpdateReady$)).subscribe(a=>this._forceReload(a));}async healStaleRootCache(){if(this._rootCacheAlreadyHealed())return;await this._revalidateUrl(`${this._window.location.origin}/`)&&this._markRootCacheHealed();}async _forceReload(t){t||(await this._unregisterServiceWorkers(),await this._clearCaches(),await this._revalidateIndex()),this._window.location.reload();}async _unregisterServiceWorkers(){let t=this._window.navigator.serviceWorker;if(!t)return;let a=await t.getRegistrations();await Promise.all(a.map(o=>o.unregister()));}async _clearCaches(){if(!this._window.caches)return;let t=await this._window.caches.keys();await Promise.all(t.map(a=>this._window.caches.delete(a)));}async _revalidateIndex(){let t=new Set([`${this._window.location.origin}/`,this._window.location.href]);await Promise.all([...t].map(a=>this._revalidateUrl(a)));}_revalidateUrl(t){return this._window.fetch(t,{cache:"reload",credentials:"same-origin"}).then(()=>true).catch(()=>false)}_rootCacheAlreadyHealed(){try{return this._window.localStorage.getItem(this._ROOT_CACHE_HEAL_KEY)==="1"}catch{return false}}_markRootCacheHealed(){try{this._window.localStorage.setItem(this._ROOT_CACHE_HEAL_KEY,"1");}catch{}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Ma=(()=>{class e{constructor(){this._swUpdate=g$k(ba),this._appRef=g$k(yt$f),this._unsupportedVersionService=g$k(w7),this._subj=new gn$a(1),this._window=g$k(c$9),this.appNotInstalled$=this._subj.asObservable(),this._window.addEventListener("beforeinstallprompt",t=>{this.deferredPrompt=t,this._subj.next(true);}),this.initUpdateCheck(),this._unsupportedVersionService.initUnsupportedVersionCheck(),this._unsupportedVersionService.healStaleRootCache();}initUpdateCheck(){AI(108e5).subscribe(async()=>{try{await this._swUpdate.checkForUpdate();}catch(a){console.log(a);}});}install(){this.deferredPrompt&&(this.deferredPrompt.prompt(),this.deferredPrompt.userChoice.then(t=>{t.outcome==="accepted"?(this.deferredPrompt=null,this._subj.next(false)):this._subj.next(false);}));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function Em(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2),Vv$1(3,"div",3),ta$3(4,"div",4)(5,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.refresh())}),QM(6),Pd$1(),ta$3(7,"button",6),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.snooze())}),Vv$1(8,"ng-icon",7),Pd$1()()()(),$d$1();}if(e&2){let t=r.$implicit;uT(3),jv$1("innerHTML",t("newSoftware.newSoftwarePopupNoTimer"),cb$1),uT(3),Gd$1(" ",t("text.refresh")," "),uT(),jv$1("matTooltip",t("newSoftware.snooze"));}}var f7=(()=>{class e{constructor(){this._softwareUpdateService=g$k(he),this._isAdmin=g$k(kE),this.timer$=Qe$f(1e3,1e3).pipe(st$c(t=>14-t),Ep$1(t=>t>0),Ip$1(t=>{t===1&&this.refresh();}));}refresh(){document.location.reload();}snooze(){this._softwareUpdateService.snooze.next(true);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-software-update"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"bg-mspot-neutral-900","m-5","rounded-lg","border","border-transparent","px-5","py-3","shadow-xl"],[1,"flex","flex-col","items-center","space-y-4","sm:flex-row","sm:space-x-10","sm:space-y-0"],[1,"text-text-inverse","text-center","text-sm","font-medium",3,"innerHTML"],[1,"flex","items-center","justify-center","space-x-4"],["type","button",1,"btn","btn-primary","border-0",3,"click"],["type","button",1,"text-mspot-neutral-400","flex","items-center",3,"click","matTooltip"],["name","hero-x-mark",1,"text-xl"]],template:function(a,o){a&1&&gv$1(0,Em,9,3,"ng-container",0);},dependencies:[yt$a,mt$7,le$9],encapsulation:2});}}return e})();
2722var C7=(()=>{class e{constructor(){this._overlay=g$k(Ge$8),this._softwareUpdateService=g$k(he),this._initListener();}_initListener(){this._softwareUpdateService.snooze$.pipe().subscribe(()=>this._destroyUpdateNoti()),this._softwareUpdateService.unrecoverableError$.subscribe(()=>{console.log("Unrecoverable error in service worker"),window.location.reload();}),xI(this._softwareUpdateService.updateAvailable$,this._softwareUpdateService.snooze$.pipe(fp$1(3e5))).pipe(fp$1(1e3*60*60*3)).subscribe(()=>this._showUpdateNoti());}_showUpdateNoti(){let t=this._overlay.position().global().bottom().centerHorizontally(),a=this._overlay.create({positionStrategy:t}),o=new At$6(f7);this.compRef=a.attach(o);}_destroyUpdateNoti(){this.compRef?.destroy();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var mn=new b$g("Scroll Top Distance"),x7=(()=>{class e{constructor(){this._router=g$k(H$8),this._zone=g$k(ge$b),this._scrollTopDistance=g$k(mn),this._window=g$k(c$9),this._platformService=g$k(u$2),this._isPopstateSubj=new Gr$6(false),this.isPopstate$=this._isPopstateSubj.asObservable(),this._router.events.pipe(Pt$b(t=>t instanceof re$3||t instanceof O$9),yp$1((t,a)=>({event:a,positions:r$d(r$d({},t.positions),a instanceof re$3?{[a.id]:this._window.scrollY}:{}),trigger:a instanceof re$3?a.navigationTrigger:t.trigger,idToRestore:a instanceof re$3&&a.restoredState&&a.restoredState.navigationId+1||t.idToRestore})),Pt$b(({event:t})=>t instanceof O$9),Ip$1(({trigger:t})=>this._isPopstateSubj.next(t==="popstate")),Ur$5(we$f)).subscribe(({trigger:t,positions:a,idToRestore:o})=>{this._zone.runOutsideAngular(()=>{setTimeout(()=>{if(t==="popstate")this._window?.scrollTo?.({top:a[o]});else {let i=this._router.parseUrl(this._router.url),d=i?.fragment,{noScroll:f,portal:y}=i.queryParams;d?this._platformService.SAFARI||this.scrollToId(d):(!f||f==="false")&&!y&&this._window?.scrollTo?.({top:0,behavior:"auto"});}},20);});});}scrollToId(t){let a=document.getElementById(t),o=this._getBoundingClientRectTop(a)-this._scrollTopDistance;this._window?.scrollTo?.({top:o,behavior:"auto"});}_getBoundingClientRectTop(t){return t?.getBoundingClientRect()?.top||0}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function _7(e){return !e||typeof e!="string"?"":e.split("/")[0].replace(/-/g,".")}var qo=new b$g("Version");var Aa=(()=>{class e{constructor(){this.version=g$k(qo),this._message();}_message(){console.info(`%c================================== 2723 Memberspot 2724================================== 2725 Hello and welcome! 2726 2727 %cBuild Information: 2728 ------------------ 2729 Version: ${this.version.tag} 2730 Date: ${this.version.build} 2731 Hash: ${this.version.sha} 2732 Environment: ${this.version.env} 2733 Release Manager: ${this.version.actor} 2734 2735%c================================== 2736 Thank you for using our product! 2737`,"font-weight: bold; font-size: 12px; color: #2355c6","font-size: 11px; color: #2355c6","font-weight: bold; font-size: 12px; color: #2355c6");}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"platform"});}}return e})();var b7=(()=>{class e{static setEnvironment(t){return {ngModule:e,providers:[{provide:qo,useValue:t.version},Aa]}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275mod=Sa$2({type:e});}static{this.\u0275inj=io$5({});}}return e})();function M7(e){return e===n$6.Eng?"MM/dd/yyyy":"dd.MM.yyyy"}var Dm=["banner"];function Fm(e,r){if(e&1&&QM(0),e&2){let t=yM(2).$implicit;Gd$1(" ",t("common.liveUpdate.applying")," ");}}function Im(e,r){if(e&1&&QM(0),e&2){let t=yM(2).$implicit;Gd$1(" ",t("common.liveUpdate.applyNow")," ");}}function Nm(e,r){if(e&1){let t=fM();ta$3(0,"div",2)(1,"div",3),yh$1(),ta$3(2,"svg",4),Vv$1(3,"polyline",5)(4,"path",6),Pd$1()(),vh$1(),ta$3(5,"div",7)(6,"p",8),QM(7),Pd$1(),ta$3(8,"p",9),QM(9),Pd$1()(),ta$3(10,"button",10),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.applyNow())}),eM$1(11,Fm,1,1)(12,Im,1,1),Pd$1()();}if(e&2){let t=yM().$implicit,a=yM(2);Pv$1("aria-label",t("common.liveUpdate.title")),uT(7),Gd$1(" ",t("common.liveUpdate.title")," "),uT(2),Gd$1(" ",t("common.liveUpdate.description")," "),uT(),jv$1("disabled",a.liveUpdate.applying()),uT(),tM$1(a.liveUpdate.applying()?11:12);}}function Pm(e,r){if(e&1&&(Hd$1(0),eM$1(1,Nm,13,5,"div",2),$d$1()),e&2){let t=yM(2);uT(),tM$1(t.liveUpdate.pendingBundleId()?1:-1);}}function Rm(e,r){e&1&&gv$1(0,Pm,2,1,"ng-container",1);}var A7=(()=>{class e{constructor(){this.liveUpdate=g$k(Oo),this._overlay=g$k(Ge$8),this._viewContainerRef
2737=g$k(Rt$f),this._destroyRef=g$k(de$b),this._bannerTpl=t3("banner"),this._overlayRef=null,Xl$1(()=>this._mountBanner()),this._destroyRef.onDestroy(()=>{this._overlayRef?.dispose(),this._overlayRef=null;});}applyNow(){this.liveUpdate.applyNow();}_mountBanner(){let t=this._bannerTpl();!t||this._overlayRef?.hasAttached()||(this._overlayRef||(this._overlayRef=this._overlay.create({hasBackdrop:false,scrollStrategy:this._overlay.scrollStrategies.noop(),positionStrategy:this._overlay.position().global().bottom("calc(1rem + env(safe-area-inset-bottom))"),width:"100%"})),this._overlayRef.attach(new U$b(t,this._viewContainerRef)));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-live-update-banner"]],viewQuery:function(a,o){a&1&&eD(o._bannerTpl,Dm,5),a&2&&bM();},decls:2,vars:0,consts:[["banner",""],[4,"transloco"],["role","status",1,"mx-4","flex","max-w-md","items-center","gap-3","rounded-2xl","bg-backgrounds-surface-raised","px-4","py-3","shadow-[0_12px_32px_rgba(0,0,0,0.18)]","ring-1","ring-mspot-neutral-200/60","backdrop-blur-sm","sm:mx-auto"],["aria-hidden","true",1,"flex","h-9","w-9","flex-shrink-0","items-center","justify-center","rounded-full","bg-mspot-primary-50","text-mspot-primary-600"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"h-5","w-5"],["points","23 4 23 10 17 10"],["d","M20.49 15a9 9 0 1 1-2.12-9.36L23 10"],[1,"min-w-0","flex-1"],[1,"text-sm","font-medium","text-mspot-neutral-900"],[1,"mt-0.5","text-xs","text-mspot-neutral-600"],["mspotButton","","color","primary",1,"flex-shrink-0",3,"click","disabled"]],template:function(a,o){a&1&&gv$1(0,Rm,1,0,"ng-template",null,0,SN);},dependencies:[yt$a,g$a],encapsulation:2});}}return e})();function Om(e,r){if(e&1){let t=fM();ta$3(0,"div",1)(1,"div",2)(2,"div",3),yh$1(),ta$3(3,"svg",4),Vv$1(4,"line",5)(5,"path",6),Pd$1()(),vh$1(),ta$3(6,"h2",7),QM(7),Pd$1(),ta$3(8,"p",8),QM(9),Pd$1(),ta$3(10,"button",9),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.retry())}),QM(11),Pd$1()()();}if(e&2){let t=yM().$implicit;Pv$1("aria-label",t("offline.title")),uT(7),Gd$1(" ",t("offline.title")," "),uT(2),Gd$1(" ",t("offline.message")," "),uT(2),Gd$1(" ",t("offline.retry")," ");}}function qm(e,r){if(e&1&&(Hd$1(0),eM$1(1,Om,12,4,"div",1),$d$1()),e&2){let t=yM();uT(),tM$1(t.networkStatus.isOnline()?-1:1);}}var y7=(()=>{class e{constructor(){this.networkStatus=g$k(Ro);}retry(){this.networkStatus.recheck();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-offline-overlay"]],decls:1,vars:0,consts:[[4,"transloco"],["role","alert",1,"fixed","inset-0","z-[10000]","flex","items-center","justify-center","bg-mspot-neutral-900/80","px-6","backdrop-blur-sm"],[1,"flex","w-full","max-w-sm","flex-col","items-center","rounded-2xl","bg-backgrounds-surface-raised","p-6","text-center","shadow-2xl","backdrop-blur-sm"],[1,"mb-4","flex","h-12","w-12","items-center","justify-center","rounded-full","bg-mspot-neutral-100"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"h-6","w-6","text-mspot-neutral-700"],["x1","1","y1","1","x2","23","y2","23"],["d","M16.72 11.06A10.94 10.94 0 0 1 19 12.55M5 12.55a10.94 10.94 0 0 1 5.17-2.39M10.71 5.05A16 16 0 0 1 22.58 9M1.42 9a15.91 15.91 0 0 1 4.7-2.88M8.53 16.11a6 6 0 0 1 6.95 0M12 20h.01"],[1,"text-lg","font-semibold","text-mspot-neutral-900"],[1,"mt-2","text-sm","text-mspot-neutral-600"],["mspotButton","","color","primary",1,"mt-6","w-full",3,"click"]],template:function(a,o){a&1&&gv$1(0,qm,2,1,"ng-container",0);},dependencies:[yt$a,g$a],encapsulation:2});}}return e})();function $m(e,r){if(e&1&&(ta$3(0,"div",1)(1,"div",2)(2,"div",3),yh$1(),ta$3(3,"svg",4),Vv$1(4,"ellipse",5),Pd$1()(),vh$1(),ta$3(5,"p",6),QM(6),Pd$1()()()),e&2){let t=yM().$implicit;Pv$1("aria-label",t("common.openingNotification")),uT(6),Gd$1(" ",t("common.openingNotification")," ");}}function Um(e,r){if(e&1&&(Hd$1(0),eM$1(1,$m,7,2,"div",1),$d$1()),e&2){let t=yM();uT(),tM$1(t.loading.isLoading()?1:-1);}}var V7=(()=>{class e{constructor(){this.loading=g$k(Oi);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-push-notification-loading-overlay"]],decls:1,vars:0,consts:[[4,"transloco"],["role","alert",1,"fixed","inset-0","z-[10000]","flex","items-center","justify-center","bg-mspot-neutral-900/60","px-6","backdrop-blur-sm"],[1,"flex","w-full","max-w-sm","flex-col","items-center","rounded-2xl","bg-backgrounds-surface-raised","p-6","text-center","shadow-2xl","backdrop-blur-sm"],["aria-hidden","true",1,"mb-4","flex","h-12","w-12","items-center","justify-center"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"h-10","w-10","animate-spin","text-mspot-primary-600"],["cx","12","cy","12","rx","10","ry","10","stroke-dasharray","60","stroke-dashoffset","20"],[1,"text-sm","text-mspot-neutral-700"]],template:function(a,o){a&1&&gv$1(0,Um,2,1,"ng-container",0);},dependencies:[yt$a],encapsulation:2});}}return e})();var z7=(()=>{class e{constructor(){this._document=g$k(Te$g),this._maQuery=g$k(f$8),this._titleService=g$k(Ko$4);}get schoolId(){return this._maQuery.getSchoolId()}createIcons(){this._maQuery.select().pipe(Pt$b(t=>!!t.schoolId)).subscribe(t=>{this.calcIcons(t);});}calcIcons(t){t?.favicon&&(this._cacheFavicon(t.url,t.favicon),this._document.getElementById("appFavicon")?.setAttribute("href",t.favicon)),t?.appleTouchIcon&&this.setAppleIcon(t.appleTouchIcon),this.setPageTitle(t?.schoolName);}setPageTitle(t){this._titleService.setTitle(t);}setAppleIcon(t){this._document.getElementById("appleTouchIcon")?.setAttribute("href",t);}_cacheFavicon(t,a){try{localStorage.setItem("favicon_"+t,a);}catch{}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var S7=new Set;function H7(e){S7.add(e);}function L7(e){return e?[...S7].some(r=>{let t=e.indexOf(r);return t!==-1&&!/[\w.-]/.test(e.charAt(t+r.length))}):false}var T7=(()=>{class e{constructor(){this._document=g$k(Te$g),this._maQuery=g$k(f$8),this._logger=g$k($E),this._injected=false;}initialize(){this._injected||this._maQuery.selectAfterLoading().pipe(Pt$b(t=>!!t?.schoolId),hn$9(1)).subscribe(t=>
2737{if(this._injected)return;this._injected=true;let a=new Set;t.headScript&&this._injectHtml(t.headScript,this._document.head,a),t.bodyEndScript&&this._injectHtml(t.bodyEndScript,this._document.body,a);});}_injectHtml(t,a,o){let i=this._document.createElement("template");i.innerHTML=t;let d=Array.from(i.content.childNodes);for(let f of d)if(f instanceof HTMLScriptElement){let y=f.getAttribute("src")?.trim();if(y){let R=this._absoluteScriptUrl(y);R&&H7(R);}let L=y?jm(y):null;if(L){if(o.has(L)){this._logger.warn(`Custom-scripts: skipping duplicate <script src="${y}"> (already injected ${L}).`);continue}o.add(L);}a.appendChild(this._recreateScript(f));}else a.appendChild(f.cloneNode(true));}_recreateScript(t){let a=this._document.createElement("script");for(let o of Array.from(t.attributes))a.setAttribute(o.name,o.value);return t.textContent&&(a.textContent=t.textContent),a}_absoluteScriptUrl(t){try{return new URL(t,this._document.baseURI).href}catch{return null}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function jm(e){try{let r=new URL(e,"https://placeholder.invalid");if(r.protocol!=="http:"&&r.protocol!=="https:")return null;let t=r.pathname.split("/").filter(Boolean).pop();return t?`${r.host}/${t.toLowerCase()}`:null}catch{return null}}var vn=T$4("EdgeToEdge",{});var $o=new b$g("");var Uo=new b$g("SENTRY_CONTEXT");var Gm=[{name:"Error",message:"The user's credential is no longer valid. The user must sign in again."},{name:"DOMException",message:"The play() request was interrupted by a call to pause()."},{name:"AbortError",message:"The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22"},{name:"AbortError",message:"The operation was aborted."}],Qm=/Loading chunk [\d]+ failed/,dn=(e,r)=>(Zm(r),Gm.some(a=>a.name===e&&a.message===r)),Zm=e=>{Qm.test(e)&&console.log("chunk load error, reload");};function B7(e){if(typeof e!="object"||e===null)return false;let r=e;return typeof r.errorKey=="string"&&r.errorKey.length>0&&typeof r.statusCode=="number"&&typeof r.message=="string"}function gn(e){return e?.name==="AbortError"}function k7(e){return e.exception?.values?.some(r=>r.mechanism?.handled===false)??false}var E7=[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i];var Wm=/^[a-f0-9]{24}$/i,Km=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Xm(e){return /^(?:[A-Za-z0-9_-]{20}|[A-Za-z0-9_-]{28})$/.test(e)&&(/[A-Z]/.test(e)||/[0-9]/.test(e))}function Ym(e){return Wm.test(e)||Km.test(e)||Xm(e)}function un(e){if(!e)return "unknown";let r;try{r=new URL(e,"http://placeholder").pathname;}catch{r=e.split("?")[0].split("#")[0];}return r.split("/").map(a=>Ym(a)?":id":a).join("/")||"/"}function wn(e){return D7(e,new WeakSet)}function D7(e,r){if(e==null||typeof e!="object")return e;if(e instanceof Error){if(r.has(e))return "[Circular]";r.add(e);let t={name:e.name,message:e.message,stack:e.stack};return "cause"in e&&e.cause!==void 0&&(t.cause=D7(e.cause,r)),t}try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}}var fn=(()=>{class e{constructor(){this.config=g$k($o),this._context=g$k(Uo,{optional:true}),vE({dsn:this.config.dsn,release:`memberhub@${this.config.version}`,environment:this.config.envTag,beforeSend:(t,a)=>!a?.originalException||e._isSuppressedOffline(a?.originalException)||rv(t)||k7(t)&&gn(a.originalException)?null:Jm(a?.originalException)?(this.handleError(a?.originalException),null):t,ignoreErrors:this.config.ignoreErrors,denyUrls:E7,tracesSampleRate:1});}handleError(t){if(this.config?.hideErrors||console.error(t),!t){console.error("No error object");return}if(e._isSuppressedOffline(t))return;if(this._isHttpError(t)){if(this._shouldIgnoreStatus(t))return;if(t.status<500&&B7(t.error)){this._recordDomainError(t,t.error);return}this._handleHttpError(t);return}if(gn(t))return;let{name:a,message:o}=F7(t);dn(a,o)||this._handleException(t);}_isHttpError(t){return t instanceof H$j}_shouldIgnoreStatus(t){let a=t.status;return a===0||a===401||a===403||a===504}_getFormatedErrorMessage(t,a){let o=t.statusText?.trim(),i=o?`${t.status} ${o}`:`${t.status}`;return a&&a!=="unknown"?`${i} ${a}`:i}_applyTenantContext(t){try{let a=this._context?.().schoolId;a&&t.setTag("schoolId",a);}catch{}}_recordDomainError(t,a){let o=un(t.url);V$k({category:"http.domain-error",level:"info",message:`${t.status} ${a.errorKey} ${o}`,data:{endpoint:o,status:t.status,errorKey:a.errorKey}});}_handleHttpError(t){let a=un(t.url);Ye$d(o=>{this._applyTenantContext(o),o.setTag("httpStatus",t.status||"no status"),o.setTag("endpoint",a),o.setFingerprint([String(t.status),a]),o.setExtra("url",t.url),o.setExtra("originalError",wn(t.error));let i=t.reqTime;
2737i&&o.setExtra("requestTime",i),Ke$e(new Error(this._getFormatedErrorMessage(t,a)),o);});}_handleException(t){Ye$d(a=>{this._applyTenantContext(a);let o=t,i=o.originalError??o.error??t;a.setExtra("originalError",wn(i));let d=t instanceof Error?t:i instanceof Error?i:new Error(typeof o.message=="string"?o.message:String(t));Ke$e(d,a);});}static _isOffline(){return typeof navigator<"u"&&navigator.onLine===false}static _isSuppressedOffline(t){return e._isOffline()&&e._isNetworkShapedError(t)}static _isNetworkShapedError(t){if(t instanceof H$j)return t.status===0;let a=t?.code;if(typeof a=="string"&&a==="auth/network-request-failed")return true;let o=t?.name,i=t?.message;return !!(typeof o=="string"&&(o==="NetworkError"||o==="TypeError")&&typeof i=="string"&&/failed to fetch|networkerror|network request failed/i.test(i))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function F7(e){if(e instanceof Error)return {name:e.name,message:e.message};let r=e;return {name:typeof r?.name=="string"?r.name:"",message:typeof r?.message=="string"?r.message:""}}function Jm(e){if(!e)return false;if(e instanceof H$j)return true;let{name:r,message:t}=F7(e);return dn(r,t)}var tv=/(?:chunk|main|polyfills|runtime)-[A-Za-z0-9]+\.js/,ev=["googletagmanager.com","gtm.js","injectedScript","<anonymous>","[native code]"];function I7(e){return `${e?.abs_path??""} ${e?.filename??""}`}function av(e){let r=I7(e);return r.includes("gtm.js")||r.includes("googletagmanager.com")}function ov(e){if(!e||e.length===0)return false;let r=I7(e[e.length-1]);return ev.some(t=>r.includes(t))?true:tv.test(r)?false:L7(r)?true:e.some(av)}function rv(e){let r=e?.exception?.values;return r?.length?r.some(t=>ov(t.stacktrace?.frames)):false}var N7=(()=>{class e{static forRoot(t,a){return {ngModule:e,providers:[{provide:$o,useValue:a},...t?[{provide:Tt$g,useClass:fn}]:[],fn]}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275mod=Sa$2({type:e});}static{this.\u0275inj=io$5({imports:[kx$1]});}}return e})();var nv="custom-";function P7(e,r){if(!e)throw new Error("User is undefined");let t={firstname:e.firstname||"",name:e.name||"",email:e.email||""};return Object.entries(iv(e)).forEach(([a,o])=>{t[`${nv}${a}`]=n7(o,r);}),t}function iv(e){let r=r$d({},e.organisation?.customUserProperties||{});return Object.entries(e.customUserProperties||{}).forEach(([t,a])=>{let o=!!e.organisation?.customUserProperties?.[t];sv(a)&&o||(r[t]=a);}),r}function sv(e){return typeof e=="string"&&e===""}var R7=(()=>{class e{constructor(){this._continuousLearningTanstackService=g$k(Ne$1),this.getNextLessons=()=>this._continuousLearningTanstackService.getUserNextLessons().data;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var O7=(()=>{class e{constructor(){this._todoService=g$k(gr$1),this._router=g$k(H$8),this.getOpenTodos=()=>{let t=this._todoService.todosQuery(()=>"open");return qd$1(()=>t.data()?.map(a=>({_id:a._id,title:a.title,dueDate:a.dueDate,createdByRole:a.createdBy.role})))},this.navigateToTodos=()=>{this._router.navigate(["/user/todos"]);},this.toggleCompleted=(t,a)=>{this._todoService.toggleCompletedMutation.mutate({todoId:t,completed:a});};}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var q7={provide:d$h,useExisting:O7};var $7=(()=>{class e{constructor(){this._user=YG(g$k(M$a).select(),{requireSync:true}),this._language=YG(g$k(f$8).selectLang()),this.userVariables=qd$1(()=>P7(this._user(),M7(this._language())));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var U7={provide:r$4,useFactory:()=>g$k(M$a).select().pipe(st$c(r=>({firstname:r.firstname,displayName:(r.firstname||"")+" "+(r.name||""),name:r.name,photoUrl:r.photoUrl})))};var lv=150,jo=(()=>{class e{constructor(){this._hoverOpen=On$7(false),this._lockedOpen=On$7(false),this.sidebarOpened=qd$1(()=>this._hoverOpen()||this._lockedOpen()),this._hoverCloseTimer=null;}openOnHover(){this._cancelHoverCloseTimer(),this._hoverOpen.set(true);}closeOnHover(){this._cancelHoverCloseTimer(),this._hoverCloseTimer=setTimeout(()=>{this._hoverOpen.set(false),this._hoverCloseTimer=null;},lv);}promoteHoverToLocked(){this._hoverOpen()&&(this._cancelHoverCloseTimer(),this._lockedOpen.set(true));}toggleLocked(){if(this._lockedOpen()){this.closeAll();return}this._cancelHoverCloseTimer(),this._lockedOpen.set(true);}closeAll(){this._cancelHoverCloseTimer(),this._hoverOpen.set(false),this._lockedOpen.set(false);}_cancelHoverCloseTimer(){this._hoverCloseTimer!==null&&(clearTimeout(this._hoverCloseTimer),this._hoverCloseTimer=null);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ft=(()=>{class e{constructor(){this.collapsed=On$7(false);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();var j7=e=>/^de\b/.test(e.navigator.language)?n$6.De:n$6.Eng;var _n=A$j(G7(),1);var Q7=new b$g("TRANSLOCO_MESSAGE_FORMAT_CONFIG");function Z7(e,r){return new _n.default(e,r)}function cv(e,r){let t=Z7(e,r),a=t.compile,o=new Map,i=`__${e?.toString()||_n.default.defaultLocale}__`;return t.compile=function(d){let f=`${i}${d}`,y=o.get(f);if(y)return y;let L=a.call(this,d);return o.set(f,L),L},t}var hv=(()=>{class e extends Pe$6{messageFormat;messageConfig;mfFactory;constructor(t){super();let d=r$d({locales:null},t),{locales:a,enableCache:o=true}=d,i=v$m(d,["locales","enableCache"]);this.messageConfig=i,this.mfFactory=o?cv:Z7,this.messageFormat=this.mfFactory(a,i);}transpile({value:t,params:a={},translation:o,key:i}){if(!t)return t;
2737if(F$c(t)&&a)Object.keys(a).forEach(d=>{let f=super.transpile({value:_$8(t,d),params:_$8(a,d),translation:o,key:i}),y=this.messageFormat.compile(f);t=De$6(t,d,y(a[d]));});else if(!Array.isArray(t)){let d=super.transpile({value:t,params:a,translation:o,key:i});return this.messageFormat.compile(d)(a)}return t}onLangChanged(t){this.setLocale(t);}setLocale(t){this.messageFormat=this.mfFactory(t,this.messageConfig);}static \u0275fac=function(a){return new(a||e)(G$k(Q7,8))};static \u0275prov=L$l({token:e,factory:e.\u0275fac})}return e})();function W7(e){return fo$3([{provide:Q7,useValue:e},{provide:me$9,useClass:hv}])}var K7=(()=>{class e{getTranslation(t){return t==="en"?je$e(import('./chunk-Cr7qWJgq.js')):je$e(import('./chunk-dt-tr4Dh.js'))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var X7=(()=>{class e{static forRoot(t){return {ngModule:e,providers:[St$8({config:{availableLangs:Object.values(n$6),defaultLang:t.scope==="admin"?j7(window):n$6.De,prodMode:t.production,fallbackLang:n$6.De,reRenderOnLangChange:t.canReRender??false},loader:t.defaultLoader||K7}),W7()]}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275mod=Sa$2({type:e});}static{this.\u0275inj=io$5({imports:[bt$b]});}}return e})();var pv=["*",[["","slot","social-icons"]]],mv=["*","[slot='social-icons']"];function vv(e,r){e&1&&(jd$1(0,"div",2),EM(1,1),Vd$1());}function dv(e,r){e&1&&QM(0," powered by memberspot.de ");}var Y7=(()=>{class e{constructor(){this.editLink=new Ct$h,this.year=new Date().getFullYear();}get admin(){return this.editLink.observers.length>0}get links(){return this.ma?.footerLinks||[]}get socialLinks(){return this.ma?.socialLinks?.filter(t=>!!t.url)||[]}get copyright(){return this.ma?.companyName?.trim()||this.ma?.schoolName}get noBranding(){return this.ma?.noBranding}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["lib-footer"]],inputs:{ma:"ma",showSocial:"showSocial"},outputs:{editLink:"editLink"},ngContentSelectors:mv,decls:10,vars:4,consts:[[1,"client-footer","overflow-hidden","px-4","py-12","sm:px-6","lg:px-8"],[1,"upper-footer","-my-2","flex","flex-col","items-center","justify-center","md:flex-row"],[1,"mt-10","flex","flex-row","items-center","justify-center"],[1,"lower-footer","mt-10","flex","items-center","justify-center","text-sm"],[1,"max-width2","flex","flex-col","items-center","justify-center","md:flex-row","md:justify-between"],[1,"px-4"]],template:function(a,o){a&1&&(DM(pv),jd$1(0,"footer",0)(1,"div",1),EM(2),Vd$
27371(),eM$1(3,vv,2,0,"div",2),jd$1(4,"div",3)(5,"div",4)(6,"div",5),QM(7),Vd$1(),jd$1(8,"div",5),eM$1(9,dv,1,0),Vd$1()()()()),a&2&&(uT(3),tM$1(o.showSocial?3:-1),uT(4),vD("\xA9 ",o.year," ",o.copyright),uT(2),tM$1(o.noBranding?-1:9));},styles:[".max-width2[_ngcontent-%COMP%]{width:100%;max-width:var(--client-max-width)}"]});}}return e})();var gv=24,ya=(()=>{class e{constructor(){this._zone=g$k(ge$b),this._doc=g$k(Te$g),this._platformId=g$k(AC$1),this._el=g$k(gt$f),this.scrollTarget=X8(null),this.isScrolled=On$7(false),this._currentTarget=null,this._targetEffect=Es$3(()=>{if(!AG(this._platformId))return;let t=this.scrollTarget()??this._doc.defaultView??window;this._currentTarget!==t&&(this._detachListener(),this._attachListener(t),this._onScroll());}),this._onScroll=()=>{let t=this._readScrollTop(),a=Math.min(Math.max(t/gv,0),1),o=t>0;this._el.nativeElement.style.setProperty("--header-divider-progress",String(a)),o!==this.isScrolled()&&this._zone.run(()=>this.isScrolled.set(o));};}ngOnDestroy(){this._detachListener();}_attachListener(t){this._zone.runOutsideAngular(()=>{t.addEventListener("scroll",this._onScroll,{passive:true});}),this._currentTarget=t;}_detachListener(){this._currentTarget?.removeEventListener("scroll",this._onScroll),this._currentTarget=null;}_readScrollTop(){let t=this._currentTarget;return t instanceof HTMLElement?t.scrollTop:this._doc.scrollingElement?.scrollTop??this._doc.documentElement?.scrollTop??0}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["","mspotScrolledClass",""]],hostVars:2,hostBindings:function(a,o){a&2&&iD("is-scrolled",o.isScrolled());},inputs:{scrollTarget:[1,"scrollTarget"]}});}}return e})();var uv=[[["","slot","sidemenutrigger"]],[["","slot","menu"]],[["","slot","logo"]],[["","slot","installapp"]],[["","slot","admintoolbartoggle"]],[["","slot","darkthemetoggle"]],[["","slot","clientaiassistant"]],[["","slot","memberchat"]],[["","slot","updateavailable"]],[["","slot","notifications"]],[["","slot","profile"]],[["","slot","search"]],[["","slot","applinks"]],[["","slot","addlink"]],[["","slot","communitytopnavigation"]]],wv=["[slot=sidemenuTrigger]","[slot=menu]","[slot='logo']","[slot=installApp]","[slot=adminToolbarToggle]","[slot=darkThemeToggle]","[slot=clientAiAssistant]","[slot=memberChat]","[slot=updateAvailable]","[slot=notifications]","[slot=profile]","[slot=search]","[slot='appLinks']","[slot=addLink]","[slot='communityTopNavigation']"],fv=e=>[e],Cv=()=>({$implicit:true});function xv(e,r){e&1&&Vv$1(0,"div",4);}function _v(e,r){if(e&1&&$v$1(0,9),e&2){yM();let t=TM(24);jv$1("ngTemplateOutlet",t);}}function bv(e,r){if(e&1&&$v$1(0,9),e&2){yM();let t=TM(26);jv$1("ngTemplateOutlet",t);}}function Mv(e,r){if(e&1&&$v$1(0,9),e&2){yM();let t=TM(24);jv$1("ngTemplateOutlet",t);}}function Av(e,r){if(e&1&&(ta$3(0,"div",11)(1,"div",12)(2,"div",13),$v$1(3,14),Pd$1()()()),e&2){yM();let t=TM(26);uT(3),jv$1("ngTemplateOutlet",t)("ngTemplateOutletContext",dN(2,Cv));}}function yv(e,r){e&1&&EM(0,11);}function Vv(e,r){e&1&&(ta$3(0,"div",16),EM(1,13),Pd$1(),EM(2,14));}function zv(e,r){if(e&1&&(ta$3(0,"div",15),EM(1,12),Pd$1(),eM$1(2,Vv,3,0)),e&2){let t=r.$implicit,a=yM(2);jv$1("ngClass",t?"ml-4":"ml-6"),uT(2),tM$1(a.isHandset?-1:2);}}function Sv(e,r){if(e&1&&(Hd$1(0),ta$3(1,"div",3),eM$1(2,xv,1,0,"div",4),ta$3(3,"div",5)(4,"div",6)(5,"div",7)(6,"div",8),EM(7),EM(8,1),EM(9,2),eM$1(10,_v,1,1,"ng-container",9),eM$1(11,bv,1,1,"ng-container",9),Pd$1(),ta$3(12,"div",10),EM(13,3),eM$1(14,Mv,1,1,"ng-container",9),EM(15,4),EM(16,5),EM(17,6),EM(18,7),EM(19,8),EM(20,9),EM(21,10),Pd$1()()()(),eM$1(22,Av,4,3,"div",11),Pd$1(),gv$1(23,yv,1,0,"ng-template",null,0,SN)(25,zv,3,2,"ng-template",null,1,SN),$d$1()),e&2){let t=yM();uT(),Ma$2("margin-top",t.adminToolbarVisible()?36:0,"px"),uT(),tM$1(!t.sideNavEnabled()&&!t.lowerBarVisible()?2:-1),uT(),jv$1("ngClass",fN(9,fv,t.headerStyles())),uT(2),jv$1("ngClass",t.sideNavEnabled()?"":"max-width-client px-4"),uT(5),tM$1(t.sideNavEnabled()?10:-1),uT(),tM$1(t.lowerBarVisible()?-1:11),uT(3),tM$1(t.sideNavEnabled()?-1:14),uT(8),tM$1(t.lowerBarVisible()?22:-1);}}function Hv(e){return U$5.isNativePlatform()&&U$5.getPlatform()==="ios"?e?"mspot-header-fixed-below-admin":"mspot-header-fixed-below-status":e?"top-9":"top-0"}var J7=(()=>{class e{constructor(){this.adminToolbarVisible=X8(false),this.sideNavEnabled=X8(false),this.lowerBarVisible=X8(false),this.fixedSideMenu=X8(false),this.isFullWidth=X8(false),this.goToLibrary=new Ct$h,this.headerStyles=qd$1(()=>{let t=Hv(this.adminToolbarVisible()),a=`${this.isAdmin?"absolute":"fixed"} ${t} z-20 items-center header-blur`,o=this.isAdmin?"":"header-divider";return this.sideNavEnabled()?`px-4 client-header-bg--sidenav ${this.fixedSideMenu()&&this.isFullWidth()?"header-sidenav-width":"w-full"} ${a} h-[4.25rem]`:this.lowerBarVisible()?"items-end client-header-bg px-4 pt-5":`client-header-bg/80 w-full client-header-padding ${a} h-16 ${o}`});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-header"]],inputs:{ma:"ma",isHandset:"isHandset",isAdmin:"isAdmin",adminToolbarVisible:[1,"adminToolbarVisible"],sideNavEnabled:[1,"sideNavEnabled"],lowerBarVisible:[1,"lowerBarVisible"],fixedSideMenu:[1,"f
2737ixedSideMenu"],isFullWidth:[1,"isFullWidth"]},outputs:{goToLibrary:"goToLibrary"},ngContentSelectors:wv,decls:1,vars:0,consts:[["searchBar",""],["lowerBar",""],[4,"transloco"],[1,"relative","z-20"],[1,"client-header-bg","h-[64px]"],["mspotScrolledClass","",1,"flex",3,"ngClass"],[1,"h-full","w-full"],[1,"flex","h-full","items-center","justify-between",3,"ngClass"],[1,"flex","h-full","items-center","justify-start"],[3,"ngTemplateOutlet"],[1,"flex","items-center","justify-end","gap-5"],[1,"client-header-bg","overflow-hidden","px-4"],[1,"max-width-client"],[1,"flex","items-center"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex","items-center","gap-4","empty:hidden",3,"ngClass"],[1,"scrollbar:horizontal","flex","items-center","overflow-x-auto","overflow-y-hidden","empty:hidden"]],template:function(a,o){a&1&&(DM(uv),gv$1(0,Sv,27,11,"ng-container",2));},dependencies:[yt$a,mx$1,Ix$1,ya],styles:[".header-sidenav-width[_ngcontent-%COMP%]{width:calc(100% - 290px)}@media(min-width:1536px){.header-sidenav-width[_ngcontent-%COMP%]{width:calc(100% - 320px)}}"]});}}return e})();var Ct=(function(e){return e.FACEBOOK="facebook",e.INSTAGRAM="instagram",e.YOUTUBE="youtube",e.ONLYTEXT="onlytext",e.EXTERNAL="external",e.TEXTPAGE="textpage",e.DASHBOARD="dashboard",e.IMAGELINK="imagelink",e})(Ct||{});({[Ct.FACEBOOK]:{},[Ct.INSTAGRAM]:{},[Ct.YOUTUBE]:{},[Ct.ONLYTEXT]:{}
2737,[Ct.EXTERNAL]:{},[Ct.TEXTPAGE]:{},[Ct.DASHBOARD]:{}});var tc=(()=>{class e{constructor(){this._darkTheme$=g$k(_e),this._maQuery=g$k(f$8),this._logger=g$k($E),this._document=g$k(Te$g),this._initialized=false;}init(){!U$5.isNativePlatform()||this._initialized||(this._initialized=true,_I([this._darkTheme$,this._maQuery.select()]).pipe(st$c(([t,a])=>({isDark:t,headerBg:a?.theme?.headerBg||d$3.light.headerBg})),pp$2((t,a)=>t.isDark===a.isDark&&t.headerBg===a.headerBg),st$c(({isDark:t,headerBg:a})=>({isDark:t,color:t?d$3.dark.headerBg:a}))).subscribe(({color:t})=>{let a=this._safeLuminance(t);if(a===null)return;let o=a<=.5;this._document.documentElement.setAttribute("data-mspot-status-bar-dark",o?"true":"false"),this._applyStatusBarStyle(t,a);}));}_safeLuminance(t){try{return o$1.getLuminance(t)}catch(a){return this._logger.error("[NativeStatusBar] Invalid color, skipping update",a),null}}async _applyStatusBarStyle(t,a){try{let o=a>.5?Q$4.Light:Q$4.Dark;await N$2.setStyle({style:o,bar:X$5.StatusBar}),U$5.getPlatform()==="android"&&await Promise.all([vn.setStatusBarColor({color:t}),vn.setNavigationBarColor({color:t})]);}catch(o){this._logger.error("[NativeStatusBar] Failed to set system bar style",o);}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function Lv(e,r){e&1&&(ta$3(0,"div",0)(1,"div",1),yh$1(),ta$3(2,"svg",2),Vv$1(3,"title",3)(4,"ellipse",4),Pd$1()()());}function Tv(e,r){e&1&&Vv$1(0,"appc-offline-overlay");}var ec=(()=>{class e{constructor(){this.pwaService=g$k(Ma),this.pwaServiceNew=g$k(C7),this.navBackService=g$k(ot$2),this._pushNotificationService=g$k(ir$1),this._appBadgeService=g$k(fn$1),this._appResumeService=g$k(h7),this._liveUpdateBannerService=g$k(Oo),this._networkRecoveryService=g$k(p7),this._sidenavService=g$k(x7),this._router=g$k(H$8),this._appSetupService=g$k(z7),this._customScriptsInjector=g$k(T7),this._maQuery=g$k(f$8),this._translocoService=g$k(Ce$5),this._gtmService=g$k(Dt$2),this._titleService=g$k(Ko$4),this._document=g$k(Te$g),this._breadcrumbService=g$k(se$1),this._cdr=g$k(Va$2),this._window=g$k(A$7),this._versionService=g$k(Aa),this._logger=g$k($E),this._nativeStatusBar=g$k(tc),this.loaded=On$7(false),this.isDevMode=!E$2.production,this.showOfflineOverlay=U$5.isNativePlatform(),this._getTranslateObject=t=>t.length===0?{label:"",translate:false}:t[t.length-1].info==="translate"?{label:t[t.length-1].label,translate:true}:{label:t[t.length-1].label,translate:false},this._nativeStatusBar.init(),this._initializeKeyboard(),this._appResumeService.initialize().catch(t=>{this._logger.error("[AppResume] Failed to initialize",{message:t?.message??String(t)});}),this._liveUpdateBannerService.initialize().catch(t=>{this._logger.error("[LiveUpdateBanner] Failed to initialize",{message:t?.message??String(t)});}),this._router.events.pipe(Pt$b(t=>t instanceof O$9||t instanceof k$b||t instanceof he$6),$f$1()).subscribe(()=>{this.loaded.set(true),this._cdr.detectChanges();}),this._router.events.subscribe(t=>{t instanceof re$3?this._logger.info("[DIAG][Router] NavigationStart",{url:t.url,trigger:t.navigationTrigger}):t instanceof O$9?this._logger.info("[DIAG][Router] NavigationEnd",{url:t.url,urlAfterRedirects:t.urlAfterRedirects}):t instanceof k$b?this._logger.info("[DIAG][Router] NavigationCancel",{url:t.url,reason:t.reason}):t instanceof he$6&&this._logger.error("[Router] NavigationError",t.error,{url:t.url,phase:"router-navigation"});}),this._appSetupService.createIcons(),this._customScriptsInjector.initialize(),this._maQuery.select().pipe(Ip$1(t=>{t.redirectTo&&location.replace(t.redirectTo);})).subscribe(t=>{this._translocoService.setActiveLang(t?.customView?.languageMA||n$6.De),t.gtmId&&this._gtmService.initService(t.gtmId);});}ngOnInit(){U$5.isNativePlatform()&&this._document.documentElement.setAttribute("data-capacitor-platform",U$5.getPlatform()),this._translocoService.langChanges$.subscribe(t=>{this._document.documentElement.lang=t;}),this._breadcrumbService.breadcrumbs$.pipe(Kf$1(t=>
2737{let a=this._getTranslateObject(t);return a.translate?this._translocoService.selectTranslate(a.label):yI(a.label)}),pp$2()).subscribe(t=>{this._titleService.setTitle(t);});}_getLoadIcon(){let t=this._window.location.hostname;this._document.title=t;let a=t.split("."),o=a[1]==="mymemberhub"||a[1]==="mymemberspot"||a[1]==="coursehub"||a[1]==="localhost"?a[0]:t;return `${E$2.loadIconUrl}?school=${o}`}async _initializeKeyboard(){U$5.getPlatform()==="ios"&&await e7.setAccessoryBarVisible({isVisible:false});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-root"]],decls:5,vars:2,consts:[[1,"loader-container"],["role","status","aria-labelledby","spinner-title",1,"loader-logo-container"],["height","48","width","48","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"Spinner-svg"],["id","spinner-title"],["cx","12","cy","12","rx","10","ry","10",1,"spinner-ellipse"]],template:function(a,o){a&1&&(eM$1(0,Lv,5,0,"div",0),Vv$1(1,"router-outlet")(2,"appc-push-notification-loading-overlay")(3,"appc-live-update-banner"),eM$1(4,Tv,1,0,"appc-offline-overlay")),a&2&&(tM$1(o.loaded()?-1:0),uT(4),tM$1(o.showOfflineOverlay?4:-1));},dependencies:[wr$4,bt$b,aa$1,y7,V7,A7],encapsulation:2});}}return e})();function ac(e){return new D$l(3e3,false)}function Bv(){return new D$l(3100,false)}function kv(){return new D$l(3101,false)}function Ev(e){return new D$l(3001,false)}function Dv(e){return new D$l(3003,false)}function Fv(e){return new D$l(3004,false)}function rc(e,r){return new D$l(3005,false)}function nc(){return new D$l(3006,false)}function ic(){return new D$l(3007,false)}function sc(e,r){return new D$l(3008,false)}function lc(e){return new D$l(3002,false)}function cc(e,r,t,a,o){return new D$l(3010,false)}function hc(){return new D$l(3011,false)}function pc(){return new D$l(3012,false)}function mc(){return new D$l(3200,false)}function vc(){return new D$l(3202,false)}function dc(){return new D$l(3013,false)}function gc(e){return new D$l(3014,false)}function uc(e){return new D$l(3015,false)}function wc(e){return new D$l(3016,false)}function fc(e,r){return new D$l(3404,false)}function Iv(e){return new D$l(3502,false)}function Cc(e){return new D$l(3503,false)}function xc(){return new D$l(3300,false)}function _c(e){return new D$l(3504,false)}function bc(e){return new D$l(3301,false)}function Mc(e,r){return new D$l(3302,false)}function Ac(e){return new D$l(3303,false)}function yc(e,r){return new D$l(3400,false)}function Vc(e){return new D$l(3401,false)}function zc(e){return new D$l(3402,false)}function Sc(e,r){return new D$l(3505,false)}function Rt(e){switch(e.length){case 0:return new a$1;case 1:return e[0];default:return new l$1(e)}}function yn(e,r,t=new Map,a=new Map){let o=[],i=[],d=-1,f=null;if(r.forEach(y=>{let L=y.get("offset"),R=L==d,Q=R&&f||new Map;y.forEach((d0,m0)=>{let n0=m0,f0=d0;if(m0!=="offset")switch(n0=e.normalizePropertyName(n0,o),f0){case D$2:f0=t.get(m0);break;case c$3:f0=a.get(m0);break;default:f0=e.normalizeStyleValue(m0,n0,f0,o);break}Q.set(n0,f0);}),R||i.push(Q),f=Q,d=L;}),o.length)throw Iv();return i}function Go(e,r,t,a){switch(r){case "start":e.onStart(()=>a(t&&bn(t,"start",e)));break;case "done":e.onDone(()=>a(t&&bn(t,"done",e)));break;case "destroy":e.onDestroy(()=>a(t&&bn(t,"destroy",e)));break}}function bn(e,r,t){let a=t.totalTime,o=!!t.disabled,i=Qo(e.element,e.triggerName,e.fromState,e.toState,r||e.phaseName,a??e.totalTime,o),d=e._data;return d!=null&&(i._data=d),i}function Qo(e,r,t,a,o="",i=0,d){return {element:e,triggerName:r,fromState:t,toState:a,phaseName:o,totalTime:i,disabled:!!d}}function h5(e,r,t){let a=e.get(r);return a||e.set(r,a=t),a}function Vn(e){let r=e.indexOf(":"),t=e.substring(1,r),a=e.slice(r+1);return [t,a]}var Nv=typeof document>"u"?null:document.documentElement;function Zo(e){let r=e.parentNode||e.host||null;return r===Nv?null:r}function Pv(e){return e.substring(1,6)=="ebkit"}var Le=null,oc=false;function Hc(e){Le||(Le=Rv()||{},oc=Le.style?"WebkitAppearance"in Le.style:false);let r=true;return Le.style&&!Pv(e)&&(r=e in Le.style,!r&&oc&&(r="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Le.style)),r}function Rv(){return typeof document<"u"?document.body:null}function zn(e,r){for(;r;){if(r===e)return true;r=Zo(r);}return false}function Sn(e,r,t){if(t)return Array.from(e.querySelectorAll(r));let a=e.querySelector(r);return a?[a]:[]}var Ov=1e3,Hn="{{",qv="}}",Ln="ng-enter",Wo="ng-leave",a2="ng-trigger",o2=".ng-trigger",Tn="ng-animating",Ko=".ng-animating";function xt(e){if(typeof e=="number")return e;let r=e.match(/^(-?[\.\d]+)(m?s)/);return !r||r.length<2?0:Mn(parseFloat(r[1]),r[2])}function Mn(e,r){return r==="s"?e*Ov:e}function r2(e,r,t){return e.hasOwnProperty("duration")?e:Uv(e,r,t)}var $v=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Uv(e,r,t){let a,o=0,i="";if(typeof e=="string"){let d=e.match($v);
2737if(d===null)return r.push(ac()),{duration:0,delay:0,easing:""};a=Mn(parseFloat(d[1]),d[2]);let f=d[3];f!=null&&(o=Mn(parseFloat(f),d[4]));let y=d[5];y&&(i=y);}else a=e;if(!t){let d=false,f=r.length;a<0&&(r.push(Bv()),d=true),o<0&&(r.push(kv()),d=true),d&&r.splice(f,0,ac());}return {duration:a,delay:o,easing:i}}function Lc(e){return e.length?e[0]instanceof Map?e:e.map(r=>new Map(Object.entries(r))):[]}function q5(e,r,t){r.forEach((a,o)=>{let i=Xo(o);t&&!t.has(o)&&t.set(o,e.style[i]),e.style[i]=a;});}function pe(e,r){r.forEach((t,a)=>{let o=Xo(a);e.style[o]="";});}function Va(e){return Array.isArray(e)?e.length==1?e[0]:F$1(e):e}function Tc(e,r,t){let a=r.params||{},o=Bn(e);o.length&&o.forEach(i=>{a.hasOwnProperty(i)||t.push(Ev());});}var An=new RegExp(`${Hn}\\s*(.+?)\\s*${qv}`,"g");function Bn(e){let r=[];if(typeof e=="string"){let t;for(;t=An.exec(e);)r.push(t[1]);An.lastIndex=0;}return r}function za(e,r,t){let a=`${e}`,o=a.replace(An,(i,d)=>{let f=r[d];return f==null&&(t.push(Dv()),f=""),f.toString()});return o==a?e:o}var jv=/-+([a-z0-9])/g;function Xo(e){return e.replace(jv,(...r)=>r[1].toUpperCase())}function Bc(e,r){return e===0||r===0}function kc(e,r,t){if(t.size&&r.length){let a=r[0],o=[];if(t.forEach((i,d)=>{a.has(d)||o.push(d),a.set(d,i);}),o.length)for(let i=1;i<r.length;i++){let d=r[i];o.forEach(f=>d.set(f,Yo(e,f)));}}return r}function p5(e,r,t){switch(r.type){case i$2.Trigger:return e.visitTrigger(r,t);case i$2.State:return e.visitState(r,t);case i$2.Transition:return e.visitTransition(r,t);case i$2.Sequence:return e.visitSequence(r,t);case i$2.Group:return e.visitGroup(r,t);case i$2.Animate:return e.visitAnimate(r,t);case i$2.Keyframes:return e.visitKeyframes(r,t);case i$2.Style:return e.visitStyle(r,t);case i$2.Reference:return e.visitReference(r,t);case i$2.AnimateChild:return e.visitAnimateChild(r,t);case i$2.AnimateRef:return e.visitAnimateRef(r,t);case i$2.Query:return e.visitQuery(r,t);case i$2.Stagger:return e.visitStagger(r,t);default:throw Fv(r.type)}}function Yo(e,r){return window.getComputedStyle(e)[r]}var Wn=(()=>{class e{validateStyleProperty(t){return Hc(t)}containsElement(t,a){return zn(t,a)}getParentElement(t){return Zo(t)}query(t,a,o){return Sn(t,a,o)}computeStyle(t,a,o){return o||""}animate(t,a,o,i,d,f=[],y){return new a$1(o,i)}static \u0275fac=function(a){return new(a||e)};static \u0275prov=L$l({token:e,factory:e.\u0275fac})}return e})(),Be=class{static NOOP=new Wn},ke=class{};var Gv=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),or=class extends ke{normalizePropertyName(r,t){return Xo(r)}normalizeStyleValue(r,t,a,o){let i="",d=a.toString().trim();if(Gv.has(t)&&a!==0&&a!=="0")if(typeof a=="number")i="px";else {let f=a.match(/^[+-]?[\d\.]+([a-z]*)$/);f&&f[1].length==0&&o.push(rc());}return d+i}};var rr="*";function Qv(e,r){let t=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(a=>Zv(a,t,r)):t.push(e),t}function Zv(e,r,t){if(e[0]==":"){let y=Wv(e,t);if(typeof y=="function"){r.push(y);return}e=y;}let a=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(a==null||a.length<4)return t.push(uc()),r;let o=a[1],i=a[2],d=a[3];r.push(Ec(o,d));let f=o==rr&&d==rr;i[0]=="<"&&!f&&r.push(Ec(d,o));}function Wv(e,r){switch(e){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,a)=>parseFloat(a)>parseFloat(t);case ":decrement":return (t,a)=>parseFloat(a)<parseFloat(t);default:return r.push(wc()),"* => *"}}var Jo=new Set(["true","1"]),tr=new Set(["false","0"]);function Ec(e,r){let t=Jo.has(e)||tr.has(e),a=Jo.has(r)||tr.has(r);return (o,i)=>{let d=e==rr||e==o,f=r==rr||r==i;return !d&&t&&typeof o=="boolean"&&(d=o?Jo.has(e):tr.has(e)),!f&&a&&typeof i=="boolean"&&(f=i?Jo.has(r):tr.has(r)),d&&f}}var Uc=":self",Kv=new RegExp(`s*${Uc}s*,?`,"g");function jc(e,r,t,a){return new Nn(e).build(r,t,a)}var Dc="",Nn=class{_driver;constructor(r){this._driver=r;}build(r,t,a){let o=new Pn(t);return this._resetContextStyleTimingState(o),p5(this,Va(r),o)}_resetContextStyleTimingState(r){r.currentQuerySelector=Dc,r.collectedStyles=new Map,r.collectedStyles.set(Dc,new Map),r.currentTime=0;}visitTrigger(r,t){let a=t.queryCount=0,o=t.depCount=0,i=[],d=[];return r.name.charAt(0)=="@"&&t.errors.push(nc()),r.definitions.forEach(f=>{if(this._resetContextStyleTimingState(t),f.type==i$2.State){let y=f,L=y.name;
2737L.toString().split(/\s*,\s*/).forEach(R=>{y.name=R,i.push(this.visitState(y,t));}),y.name=L;}else if(f.type==i$2.Transition){let y=this.visitTransition(f,t);a+=y.queryCount,o+=y.depCount,d.push(y);}else t.errors.push(ic());}),{type:i$2.Trigger,name:r.name,states:i,transitions:d,queryCount:a,depCount:o,options:null}}visitState(r,t){let a=this.visitStyle(r.styles,t),o=r.options&&r.options.params||null;if(a.containsDynamicStyles){let i=new Set,d=o||{};a.styles.forEach(f=>{f instanceof Map&&f.forEach(y=>{Bn(y).forEach(L=>{d.hasOwnProperty(L)||i.add(L);});});}),i.size&&t.errors.push(sc(r.name,[...i.values()]));}return {type:i$2.State,name:r.name,style:a,options:o?{params:o}:null}}visitTransition(r,t){t.queryCount=0,t.depCount=0;let a=p5(this,Va(r.animation),t),o=Qv(r.expr,t.errors);return {type:i$2.Transition,matchers:o,animation:a,queryCount:t.queryCount,depCount:t.depCount,options:Te(r.options)}}visitSequence(r,t){return {type:i$2.Sequence,steps:r.steps.map(a=>p5(this,a,t)),options:Te(r.options)}}visitGroup(r,t){let a=t.currentTime,o=0,i=r.steps.map(d=>{t.currentTime=a;let f=p5(this,d,t);return o=Math.max(o,t.currentTime),f});return t.currentTime=o,{type:i$2.Group,steps:i,options:Te(r.options)}}visitAnimate(r,t){let a=td(r.timings,t.errors);t.currentAnimateTimings=a;let o,i=r.styles?r.styles:d$1({});if(i.type==i$2.Keyframes)o=this.visitKeyframes(i,t);else {let d=r.styles,f=false;if(!d){f=true;let L={};a.easing&&(L.easing=a.easing),d=d$1(L);}t.currentTime+=a.duration+a.delay;let y=this.visitStyle(d,t);y.isEmptyStep=f,o=y;}return t.currentAnimateTimings=null,{type:i$2.Animate,timings:a,style:o,options:null}}visitStyle(r,t){let a=this._makeStyleAst(r,t);return this._validateStyleAst(a,t),a}_makeStyleAst(r,t){let a=[],o=Array.isArray(r.styles)?r.styles:[r.styles];for(let f of o)typeof f=="string"?f===c$3?a.push(f):t.errors.push(lc()):a.push(new Map(Object.entries(f)));let i=false,d=null;return a.forEach(f=>{if(f instanceof Map&&(f.has("easing")&&(d=f.get("easing"),f.delete("easing")),!i)){for(let y of f.values())if(y.toString().indexOf(Hn)>=0){i=true;break}}}),{type:i$2.Style,styles:a,easing:d,offset:r.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(r,t){let a=t.currentAnimateTimings,o=t.currentTime,i=t.currentTime;a&&i>0&&(i-=a.duration+a.delay),r.styles.forEach(d=>{typeof d!="string"&&d.forEach((f,y)=>{let L=t.collectedStyles.get(t.currentQuerySelector),R=L.get(y),Q=true;R&&(i!=o&&i>=R.startTime&&o<=R.endTime&&(t.errors.push(cc(y,R.startTime,R.endTime)),Q=false),i=R.startTime),Q&&L.set(y,{startTime:i,endTime:o}),t.options&&Tc(f,t.options,t.errors);});});}visitKeyframes(r,t){let a={type:i$2.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(hc()),a;let o=1,i=0,d=[],f=false,y=false,L=0,R=r.steps.map(x1=>{let z1=this._makeStyleAst(x1,t),G1=z1.offset!=null?z1.offset:Jv(z1.styles),S1=0;return G1!=null&&(i++,S1=z1.offset=G1),y=y||S1<0||S1>1,f=f||S1<L,L=S1,d.push(S1),z1});y&&t.errors.push(pc()),f&&t.errors.push(mc());let Q=r.steps.length,d0=0;i>0&&i<Q?t.errors.push(vc()):i==0&&(d0=o/(Q-1));let m0=Q-1,n0=t.currentTime,f0=t.currentAnimateTimings,r1=f0.duration;return R.forEach((x1,z1)=>{let G1=d0>0?z1==m0?1:d0*z1:d[z1],S1=G1*r1;t.currentTime=n0+f0.delay+S1,f0.duration=S1,this._validateStyleAst(x1,t),x1.offset=G1,a.styles.push(x1);}),a}visitReference(r,t){return {type:i$2.Reference,animation:p5(this,Va(r.animation),t),options:Te(r.options)}}visitAnimateChild(r,t){return t.depCount++,{type:i$2.AnimateChild,options:Te(r.options)}}visitAnimateRef(r,t){return {type:i$2.AnimateRef,animation:this.visitReference(r.animation,t),options:Te(r.options)}}visitQuery(r,t){let a=t.currentQuerySelector,o=r.options||{};t.queryCount++,t.currentQuery=r;let[i,d]=Xv(r.selector);t.currentQuerySelector=a.length?a+" "+i:i,h5(t.collectedStyles,t.currentQuerySelector,new Map);let f=p5(this,Va(r.animation),t);return t.currentQuery=null,t.currentQuerySelector=a,{type:i$2.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:d,animation:f,originalSelector:r.selector,options:Te(r.options)}}visitStagger(r,t){t.currentQuery||t.errors.push(dc());let a=r.timings==="full"?{duration:0,delay:0,easing:"full"}
2737:r2(r.timings,t.errors,true);return {type:i$2.Stagger,animation:p5(this,Va(r.animation),t),timings:a,options:null}}};function Xv(e){let r=!!e.split(/\s*,\s*/).find(t=>t==Uc);return r&&(e=e.replace(Kv,"")),e=e.replace(/@\*/g,o2).replace(/@\w+/g,t=>o2+"-"+t.slice(1)).replace(/:animating/g,Ko),[e,r]}function Yv(e){return e?r$d({},e):null}var Pn=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(r){this.errors=r;}};function Jv(e){if(typeof e=="string")return null;let r=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){let a=t;r=parseFloat(a.get("offset")),a.delete("offset");}});else if(e instanceof Map&&e.has("offset")){let t=e;r=parseFloat(t.get("offset")),t.delete("offset");}return r}function td(e,r){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let i=r2(e,r).duration;return kn(i,0,"")}let t=e;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=kn(0,0,"");return i.dynamic=true,i.strValue=t,i}let o=r2(t,r);return kn(o.duration,o.delay,o.easing)}function Te(e){return e?(e=r$d({},e),e.params&&(e.params=Yv(e.params))):e={},e}function kn(e,r,t){return {duration:e,delay:r,easing:t}}function Kn(e,r,t,a,o,i,d=null,f=false){return {type:1,element:e,keyframes:r,preStyleProps:t,postStyleProps:a,duration:o,delay:i,totalTime:o+i,easing:d,subTimeline:f}}var i2=class{_map=new Map;get(r){return this._map.get(r)||[]}append(r,t){let a=this._map.get(r);a||this._map.set(r,a=[]),a.push(...t);}has(r){return this._map.has(r)}clear(){this._map.clear();}},ed=1,ad=":enter",od=new RegExp(ad,"g"),rd=":leave",nd=new RegExp(rd,"g");function Gc(e,r,t,a,o,i=new Map,d=new Map,f,y,L=[]){return new Rn().buildKeyframes(e,r,t,a,o,i,d,f,y,L)}var Rn=class{buildKeyframes(r,t,a,o,i,d,f,y,L,R=[]){L=L||new i2;let Q=new On(r,t,L,o,i,R,[]);Q.options=y;let d0=y.delay?xt(y.delay):0;Q.currentTimeline.delayNextStep(d0),Q.currentTimeline.setStyles([d],null,Q.errors,y),p5(this,a,Q);let m0=Q.timelines.filter(n0=>n0.containsAnimation());if(m0.length&&f.size){let n0;for(let f0=m0.length-1;f0>=0;f0--){let r1=m0[f0];if(r1.element===t){n0=r1;break}}n0&&!n0.allowOnlyTimelineStyles()&&n0.setStyles([f],null,Q.errors,y);}return m0.length?m0.map(n0=>n0.buildKeyframes()):[Kn(t,[],[],[],0,d0,"",false)]}visitTrigger(r,t){}visitState(r,t){}visitTransition(r,t){}visitAnimateChild(r,t){let a=t.subInstructions.get(t.element);if(a){let o=t.createSubContext(r.options),i=t.currentTimeline.currentTime,d=this._visitSubInstructions(a,o,o.options);i!=d&&t.transformIntoNewTimeline(d);}t.previousNode=r;}visitAnimateRef(r,t){let a=t.createSubContext(r.options);a.transformIntoNewTimeline(),this._applyAnimationRefDelays([r.options,r.animation.options],t,a),this.visitReference(r.animation,a),t.transformIntoNewTimeline(a.currentTimeline.currentTime),t.previousNode=r;}_applyAnimationRefDelays(r,t,a){for(let o of r){let i=o?.delay;if(i){let d=typeof i=="number"?i:xt(za(i,o?.params??{},t.errors));a.delayNextStep(d);}}}_visitSubInstructions(r,t,a){let i=t.currentTimeline.currentTime,d=a.duration!=null?xt(a.duration):null,f=a.delay!=null?xt(a.delay):null;return d!==0&&r.forEach(y=>{let L=t.appendInstructionToTimeline(y,d,f);i=Math.max(i,L.duration+L.delay);}),i}visitReference(r,t){t.updateOptions(r.options,true),p5(this,r.animation,t),t.previousNode=r;}visitSequence(r,t){let a=t.subContextCount,o=t,i=r.options;if(i&&(i.params||i.delay)&&(o=t.createSubContext(i),o.transformIntoNewTimeline(),i.delay!=null)){o.previousNode.type==i$2.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=nr);let d=xt(i.delay);o.delayNextStep(d);}r.steps.length&&(r.steps.forEach(d=>p5(this,d,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),t.previousNode=r;}visitGroup(r,t){let a=[],o=t.currentTimeline.currentTime,i=r.options&&r.options.delay?xt(r.options.delay):0;r.steps.forEach(d=>{let f=t.createSubContext(r.options);i&&f.delayNextStep(i),p5(this,d,f),o=Math.max(o,f.currentTimeline.currentTime),a.push(f.currentTimeline);}),a.forEach(d=>t.currentTimeline.mergeTimelineCollectedStyles(d)),t.transformIntoNewTimeline(o),t.previousNode=r;}_visitTiming(r,t){if(r.dynamic){let a=r.strValue,o=t.params?za(a,t.params,t.errors):a;return r2(o,t.errors)}else return {duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,t){let a=t.currentAnimateTimings=this._visitTiming(r.timings,t),o=t.currentTimeline;a.delay&&(t.incrementTime(a.delay),o.snapshotCurrentStyles());let i=r.style;i.type==i$2.Keyframes?this.visitKeyframes(i,t):(t.incrementTime(a.duration),this.visitStyle(i,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=r;}visitStyle(r,t){let a=t.currentTimeline,o=t.currentAnimateTimings;!o&&a.hasCurrentStyleProperties()&&a.forwardFrame();let i=o&&o.easing||r.easing;r.isEmptyStep?a.applyEmptyStep(i):a.setStyles(r.styles,i,t.errors,t.options),t.previousNode=r;}visitKeyframes(r,t){let a=t.currentAnimateTimings,o=t.currentTimeline.duration,i=a.duration,f=t.createSubContext().currentTimeline;
2737f.easing=a.easing,r.styles.forEach(y=>{let L=y.offset||0;f.forwardTime(L*i),f.setStyles(y.styles,y.easing,t.errors,t.options),f.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(f),t.transformIntoNewTimeline(o+i),t.previousNode=r;}visitQuery(r,t){let a=t.currentTimeline.currentTime,o=r.options||{},i=o.delay?xt(o.delay):0;i&&(t.previousNode.type===i$2.Style||a==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=nr);let d=a,f=t.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=f.length;let y=null;f.forEach((L,R)=>{t.currentQueryIndex=R;let Q=t.createSubContext(r.options,L);i&&Q.delayNextStep(i),L===t.element&&(y=Q.currentTimeline),p5(this,r.animation,Q),Q.currentTimeline.applyStylesToKeyframe();let d0=Q.currentTimeline.currentTime;d=Math.max(d,d0);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(d),y&&(t.currentTimeline.mergeTimelineCollectedStyles(y),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=r;}visitStagger(r,t){let a=t.parentContext,o=t.currentTimeline,i=r.timings,d=Math.abs(i.duration),f=d*(t.currentQueryTotal-1),y=d*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case "reverse":y=f-y;break;case "full":y=a.currentStaggerTime;break}let R=t.currentTimeline;y&&R.delayNextStep(y);let Q=R.currentTime;p5(this,r.animation,t),t.previousNode=r,a.currentStaggerTime=o.currentTime-Q+(o.startTime-a.currentTimeline.startTime);}},nr={},On=class e{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=nr;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(r,t,a,o,i,d,f,y){this._driver=r,this.element=t,this.subInstructions=a,this._enterClassName=o,this._leaveClassName=i,this.errors=d,this.timelines=f,this.currentTimeline=y||new ir(this._driver,t,0),f.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(r,t){if(!r)return;let a=r,o=this.options;a.duration!=null&&(o.duration=xt(a.duration)),a.delay!=null&&(o.delay=xt(a.delay));let i=a.params;if(i){let d=o.params;d||(d=this.options.params={}
2737),Object.keys(i).forEach(f=>{(!t||!d.hasOwnProperty(f))&&(d[f]=za(i[f],d,this.errors));});}}_copyOptions(){let r={};if(this.options){let t=this.options.params;if(t){let a=r.params={};Object.keys(t).forEach(o=>{a[o]=t[o];});}}return r}createSubContext(r=null,t,a){let o=t||this.element,i=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,a||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(r),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(r){return this.previousNode=nr,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,t,a){let o={duration:t??r.duration,delay:this.currentTimeline.currentTime+(a??0)+r.delay,easing:""},i=new qn(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,o,r.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r);}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r);}invokeQuery(r,t,a,o,i,d){let f=[];if(o&&f.push(this.element),r.length>0){r=r.replace(od,"."+this._enterClassName),r=r.replace(nd,"."+this._leaveClassName);let y=a!=1,L=this._driver.query(this.element,r,y);a!==0&&(L=a<0?L.slice(L.length+a,L.length):L.slice(0,a)),f.push(...L);}return !i&&f.length==0&&d.push(gc()),f}},ir=class e{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(r,t,a,o){this._driver=r,this.element=t,this.startTime=a,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+r),t&&this.snapshotCurrentStyles()):this.startTime+=r;}fork(r,t){return this.applyStylesToKeyframe(),new e(this._driver,r,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=ed,this._loadKeyframe();}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe();}_updateStyle(r,t){this._localTimelineStyles.set(r,t),this._globalTimelineStyles.set(r,t),this._styleSummary.set(r,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[t,a]of this._globalTimelineStyles)this._backFill.set(t,a||c$3),this._currentKeyframe.set(t,c$3);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(r,t,a,o){t&&this._previousKeyframe.set("easing",t);let i=o&&o.params||{},d=id(r,this._globalTimelineStyles);for(let[f,y]of d){let L=za(y,i,a);this._pendingStyles.set(f,L),this._localTimelineStyles.has(f)||this._backFill.set(f,this._globalTimelineStyles.get(f)??c$3),this._updateStyle(f,L);}}
2737applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((r,t)=>{this._currentKeyframe.set(t,r);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,r);}));}snapshotCurrentStyles(){for(let[r,t]of this._localTimelineStyles)this._pendingStyles.set(r,t),this._updateStyle(r,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let r=[];for(let t in this._currentKeyframe)r.push(t);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((t,a)=>{let o=this._styleSummary.get(a);(!o||t.time>o.time)&&this._updateStyle(a,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let r=new Set,t=new Set,a=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((f,y)=>{let L=new Map([...this._backFill,...f]);L.forEach((R,Q)=>{R===D$2?r.add(Q):R===c$3&&t.add(Q);}),a||L.set("offset",y/this.duration),o.push(L);});let i=[...r.values()],d=[...t.values()];if(a){let f=o[0],y=new Map(f);f.set("offset",0),y.set("offset",1),o=[f,y];}return Kn(this.element,o,i,d,this.duration,this.startTime,this.easing,false)}},qn=class extends ir{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(r,t,a,o,i,d,f=false){super(r,t,d.delay),this.keyframes=a,this.preStyleProps=o,this.postStyleProps=i,this._stretchStartingKeyframe=f,this.timings={duration:d.duration,delay:d.delay,easing:d.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:t,duration:a,easing:o}=this.timings;if(this._stretchStartingKeyframe&&t){let i=[],d=a+t,f=t/d,y=new Map(r[0]);y.set("offset",0),i.push(y);let L=new Map(r[0]);L.set("offset",Fc(f)),i.push(L);let R=r.length-1;for(let Q=1;Q<=R;Q++){let d0=new Map(r[Q]),m0=d0.get("offset"),n0=t+m0*a;d0.set("offset",Fc(n0/d)),i.push(d0);}a=d,t=0,o="",r=i;}return Kn(this.element,r,this.preStyleProps,this.postStyleProps,a,t,o,true)}};function Fc(e,r=3){let t=Math.pow(10,r-1);return Math.round(e*t)/t}function id(e,r){let t=new Map,a;return e.forEach(o=>{if(o==="*"){a??=r.keys();for(let i of a)t.set(i,c$3);}else for(let[i,d]of o)t.set(i,d);}),t}function Ic(e,r,t,a,o,i,d,f,y,L,R,Q,d0){return {type:0,element:e,triggerName:r,isRemovalTransition:o,fromState:t,fromStyles:i,toState:a,toStyles:d,timelines:f,queriedElements:y,preStyleProps:L,postStyleProps:R,totalTime:Q,errors:d0}}var En={},sr=class{_triggerName;ast;_stateStyles;constructor(r,t,a){this._triggerName=r,this.ast=t,this._stateStyles=a;}match(r,t,a,o){return sd(this.ast.matchers,r,t,a,o)}buildStyles(r,t,a){let o=this._stateStyles.get("*");return r!==void 0&&(o=this._stateStyles.get(r?.toString())||o),o?o.buildStyles(t,a):new Map}build(r,t,a,o,i,d,f,y,L,R){let Q=[],d0=this.ast.options&&this.ast.options.params||En,m0=f&&f.params||En,n0=this.buildStyles(a,m0,Q),f0=y&&y.params||En,r1=this.buildStyles(o,f0,Q),x1=new Set,z1=new Map,G1=new Map,S1=o==="void",Ot={params:Qc(f0,d0),delay:this.ast.options?.delay},w5=R?[]:Gc(r,t,this.ast.animation,i,d,n0,r1,Ot,L,Q),u1=0;return w5.forEach(E1=>{u1=Math.max(E1.duration+E1.delay,u1);}),Q.length?Ic(t,this._triggerName,a,o,S1,n0,r1,[],[],z1,G1,u1,Q):(w5.forEach(E1=>{let bt=E1.element,j5=h5(z1,bt,new Set);E1.preStyleProps.forEach(e5=>j5.add(e5));let m2=h5(G1,bt,new Set);E1.postStyleProps.forEach(e5=>m2.add(e5)),bt!==t&&x1.add(bt);}),Ic(t,this._triggerName,a,o,S1,n0,r1,w5,[...x1.values()],z1,G1,u1))}};function sd(e,r,t,a,o){return e.some(i=>i(r,t,a,o))}function Qc(e,r){let t=r$d({},r);return Object.entries(e).forEach(([a,o])=>{o!=null&&(t[a]=o);}),t}var $n=class{styles;defaultParams;normalizer;constructor(r,t,a){this.styles=r,this.defaultParams=t,this.normalizer=a;}buildStyles(r,t){let a=new Map,o=Qc(r,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((d,f)=>{d&&(d=za(d,o,t));let y=this.normalizer.normalizePropertyName(f,t);d=this.normalizer.normalizeStyleValue(f,y,d,t),a.set(f,d);});}),a}};function ld(e,r,t){return new Un(e,r,t)}var Un=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(r,t,a){this.name=r,this.ast=t,this._normalizer=a,t.states.forEac
2737h(o=>{let i=o.options&&o.options.params||{};this.states.set(o.name,new $n(o.style,i,a));}),Nc(this.states,"true","1"),Nc(this.states,"false","0"),t.transitions.forEach(o=>{this.transitionFactories.push(new sr(r,o,this.states));}),this.fallbackTransition=cd(r,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,t,a,o){return this.transitionFactories.find(d=>d.match(r,t,a,o))||null}matchStyles(r,t,a){return this.fallbackTransition.buildStyles(r,t,a)}};function cd(e,r,t){let a=[(d,f)=>true],o={type:i$2.Sequence,steps:[],options:null},i={type:i$2.Transition,animation:o,matchers:a,options:null,queryCount:0,depCount:0};return new sr(e,i,r)}function Nc(e,r,t){e.has(r)?e.has(t)||e.set(t,e.get(r)):e.has(t)&&e.set(r,e.get(t));}var hd=new i2,jn=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(r,t,a){this.bodyNode=r,this._driver=t,this._normalizer=a;}register(r,t){let a=[],o=[],i=jc(this._driver,t,a,o);if(a.length)throw Cc();this._animations.set(r,i);}_buildPlayer(r,t,a){let o=r.element,i=yn(this._normalizer,r.keyframes,t,a);return this._driver.animate(o,i,r.duration,r.delay,r.easing,[],true)}create(r,t,a={}){let o=[],i=this._animations.get(r),d,f=new Map;if(i?(d=Gc(this._driver,t,i,Ln,Wo,new Map,new Map,a,hd,o),d.forEach(R=>{let Q=h5(f,R.element,new Map);R.postStyleProps.forEach(d0=>Q.set(d0,null));})):(o.push(xc()),d=[]),o.length)throw _c();f.forEach((R,Q)=>{R.forEach((d0,m0)=>{R.set(m0,this._driver.computeStyle(Q,m0,c$3));});});let y=d.map(R=>{let Q=f.get(R.element);return this._buildPlayer(R,new Map,Q)}),L=Rt(y);return this._playersById.set(r,L),L.onDestroy(()=>this.destroy(r)),this.players.push(L),L}destroy(r){let t=this._getPlayer(r);t.destroy(),this._playersById.delete(r);let a=this.players.indexOf(t);a>=0&&this.players.splice(a,1);}_getPlayer(r){let t=this._playersById.get(r);if(!t)throw bc();return t}listen(r,t,a,o){let i=Qo(t,"","","");return Go(this._getPlayer(r),a,i,o),()=>{}}command(r,t,a,o){if(a=="register"){this.register(r,o[0]);return}if(a=="create"){let d=o[0]||{};this.create(r,t,d);return}let i=this._getPlayer(r);switch(a){case "play":i.play();break;case "pause":i.pause();break;case "reset":i.reset();break;case "restart":i.restart();break;case "finish":i.finish();break;case "init":i.init();break;case "setPosition":i.setPosition(parseFloat(o[0]));break;case "destroy":this.destroy(r);break}}},Pc="ng-animate-queued",pd=".ng-animate-queued",Dn="ng-animate-disabled",md=".ng-animate-disabled",vd="ng-star-inserted",dd=".ng-star-inserted",gd=[],Zc={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},ud={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},$5="__ng_removed",s2=class{namespaceId;value;options;get params(){return this.options.params}constructor(r,t=""){this.namespaceId=t;let a=r&&r.hasOwnProperty("value"),o=a?r.value:r;if(this.value=fd(o),a){let i=r,{value:d}=i,f=v$m(i,["value"]);this.options=f;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(r){let t=r.params;if(t){let a=this.options.params;Object.keys(t).forEach(o=>{a[o]==null&&(a[o]=t[o]);});}}},n2="void",Fn=new s2(n2),Gn=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(r,t,a){this.id=r,this.hostElement=t,this._engine=a,this._hostClassName="ng-tns-"
2737+r,k5(t,this._hostClassName);}listen(r,t,a,o){if(!this._triggers.has(t))throw Mc();if(a==null||a.length==0)throw Ac();if(!Cd(a))throw yc();let i=h5(this._elementListeners,r,[]),d={name:t,phase:a,callback:o};i.push(d);let f=h5(this._engine.statesByElement,r,new Map);return f.has(t)||(k5(r,a2),k5(r,a2+"-"+t),f.set(t,Fn)),()=>{this._engine.afterFlush(()=>{let y=i.indexOf(d);y>=0&&i.splice(y,1),this._triggers.has(t)||f.delete(t);});}}register(r,t){return this._triggers.has(r)?false:(this._triggers.set(r,t),true)}_getTrigger(r){let t=this._triggers.get(r);if(!t)throw Vc();return t}trigger(r,t,a,o=true){let i=this._getTrigger(t),d=new l2(this.id,t,r),f=this._engine.statesByElement.get(r);f||(k5(r,a2),k5(r,a2+"-"+t),this._engine.statesByElement.set(r,f=new Map));let y=f.get(t),L=new s2(a,this.id);if(!(a&&a.hasOwnProperty("value"))&&y&&L.absorbOptions(y.options),f.set(t,L),y||(y=Fn),!(L.value===n2)&&y.value===L.value){if(!bd(y.params,L.params)){let f0=[],r1=i.matchStyles(y.value,y.params,f0),x1=i.matchStyles(L.value,L.params,f0);f0.length?this._engine.reportError(f0):this._engine.afterFlush(()=>{pe(r,r1),q5(r,x1);});}return}let d0=h5(this._engine.playersByElement,r,[]);d0.forEach(f0=>{f0.namespaceId==this.id&&f0.triggerName==t&&f0.queued&&f0.destroy();});let m0=i.matchTransition(y.value,L.value,r,L.params),n0=false;if(!m0){if(!o)return;m0=i.fallbackTransition,n0=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:t,transition:m0,fromState:y,toState:L,player:d,isFallbackTransition:n0}),n0||(k5(r,Pc),d.onStart(()=>{Sa(r,Pc);})),d.onDone(()=>{let f0=this.players.indexOf(d);f0>=0&&this.players.splice(f0,1);let r1=this._engine.playersByElement.get(r);if(r1){let x1=r1.indexOf(d);x1>=0&&r1.splice(x1,1);}}),this.players.push(d),d0.push(d),d}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(t=>t.delete(r)),this._elementListeners.forEach((t,a)=>{this._elementListeners.set(a,t.filter(o=>o.name!=r));});}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);let t=this._engine.playersByElement.get(r);t&&(t.forEach(a=>a.destroy()),this._engine.playersByElement.delete(r));}_signalRemovalForInnerTriggers(r,t){let a=this._engine.driver.query(r,o2,true);a.forEach(o=>{if(o[$5])return;let i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(d=>d.triggerLeaveAnimation(o,t,false,true)):this.clearElementCache(o);}),this._engine.afterFlushAnimationsDone(()=>a.forEach(o=>this.clearElementCache(o)));}triggerLeaveAnimation(r,t,a,o){let i=this._engine.statesByElement.get(r),d=new Map;if(i){let f=[];if(i.forEach((y,L)=>{if(d.set(L,y.value),this._triggers.has(L)){let R=this.trigger(r,L,n2,o);R&&f.push(R);}}),f.length)return this._engine.markElementAsRemoved(this.id,r,true,t,d),a&&Rt(f).onDone(()=>this._engine.processLeaveNode(r)),true}return false}prepareLeaveAnimationListeners(r){let t=this._elementListeners.get(r),a=this._engine.statesByElement.get(r);if(t&&a){let o=new Set;t.forEach(i=>{let d=i.name;if(o.has(d))return;o.add(d);let y=this._triggers.get(d).fallbackTransition,L=a.get(d)||Fn,R=new s2(n2),Q=new l2(this.id,d,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:d,transition:y,fromState:L,toState:R,player:Q,isFallbackTransition:true});});}}removeNode(r,t){let a=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,t),this.triggerLeaveAnimation(r,t,true))return;let o=false;if(a.totalAnimations){let i=a.players.length?a.playersByQueriedElement.get(r):[];if(i&&i.length)o=true;else {let d=r;for(;d=d.parentNode;)if(a.statesByElement.get(d)){o=true;break}}}if(this.prepareLeaveAnimationListeners(r),o)a.markElementAsRemoved(this.id,r,false,t);else {let i=r[$5];(!i||i===Zc)&&(a.afterFlush(()=>this.clearElementCache(r)),a.destroyInnerAnimations(r),a._onRemovalComplete(r,t));}}insertNode(r,t){k5(r,this._hostClassName);}drainQueuedTransitions(r){let t=[];return this._queue.forEach(a=>{let o=a.player;if(o.destroyed)return;let i=a.element,d=this._elementListeners.get(i);d&&d.forEach(f=>{if(f.name==a.triggerName){let y=Qo(i,a.triggerName,a.fromState.value,a.toState.value);y._data=r,Go(a.player,f.phase,y,f.callback);}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy();}):t.push(a);}),this._queue=[],t.sort((a,o)=>{let i=a.transition.ast.depCount,d=o.transition.ast.depCount;return i==0||d==0?i-d:this._engine.driver.containsElement(a.element,o.element)?1:-1})}
2737destroy(r){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r);}},Qn=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(r,t)=>{};_onRemovalComplete(r,t){this.onRemovalComplete(r,t);}constructor(r,t,a){this.bodyNode=r,this.driver=t,this._normalizer=a;}get queuedPlayers(){let r=[];return this._namespaceList.forEach(t=>{t.players.forEach(a=>{a.queued&&r.push(a);});}),r}createNamespace(r,t){let a=new Gn(r,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(a,t):(this.newHostElements.set(t,a),this.collectEnterElement(t)),this._namespaceLookup[r]=a}_balanceNamespaceList(r,t){let a=this._namespaceList,o=this.namespacesByHostElement;if(a.length-1>=0){let d=false,f=this.driver.getParentElement(t);for(;f;){let y=o.get(f);if(y){let L=a.indexOf(y);a.splice(L+1,0,r),d=true;break}f=this.driver.getParentElement(f);}d||a.unshift(r);}else a.push(r);return o.set(t,r),r}register(r,t){let a=this._namespaceLookup[r];return a||(a=this.createNamespace(r,t)),a}registerTrigger(r,t,a){let o=this._namespaceLookup[r];o&&o.register(t,a)&&this.totalAnimations++;}destroy(r,t){r&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let a=this._fetchNamespace(r);this.namespacesByHostElement.delete(a.hostElement);let o=this._namespaceList.indexOf(a);o>=0&&this._namespaceList.splice(o,1),a.destroy(t),delete this._namespaceLookup[r];}));}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){let t=new Set,a=this.statesByElement.get(r);if(a){for(let o of a.values())if(o.namespaceId){let i=this._fetchNamespace(o.namespaceId);i&&t.add(i);}}return t}trigger(r,t,a,o){if(er(t)){let i=this._fetchNamespace(r);if(i)return i.trigger(t,a,o),true}return false}insertNode(r,t,a,o){if(!er(t))return;let i=t[$5];if(i&&i.setForRemoval){i.setForRemoval=false,i.setForMove=true;let d=this.collectedLeaveElements.indexOf(t);d>=0&&this.collectedLeaveElements.splice(d,1);}if(r){let d=this._fetchNamespace(r);d&&d.insertNode(t,a);}o&&this.collectEnterElement(t);}collectEnterElement(r){this.collectedEnterElements.push(r);}markElementAsDisabled(r,t){t?this.disabledNodes.has(r)||(this.disabledNodes.add(r),k5(r,Dn)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Sa(r,Dn));}removeNode(r,t,a){if(er(t)){let o=r?this._fetchNamespace(r):null;o?o.removeNode(t,a):this.markElementAsRemoved(r,t,false,a);let i=this.namespacesByHostElement.get(t);i&&i.id!==r&&i.removeNode(t,a);}else this._onRemovalComplete(t,a);}markElementAsRemoved(r,t,a,o,i){this.collectedLeaveElements.push(t),t[$5]={namespaceId:r,setForRemoval:o,hasAnimation:a,removedBeforeQueried:false,previousTriggersValues:i};}listen(r,t,a,o,i){return er(t)?this._fetchNamespace(r).listen(t,a,o,i):()=>{}}_buildInstruction(r,t,a,o,i){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,a,o,r.fromState.options,r.toState.options,t,i)}destroyInnerAnimations(r){let t=this.driver.query(r,o2,true);t.forEach(a=>this.destroyActiveAnimationsForElement(a)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(r,Ko,true),t.forEach(a=>this.finishActiveQueriedAnimationOnElement(a)));}destroyActiveAnimationsForElement(r){let t=this.playersByElement.get(r);t&&t.forEach(a=>{a.queued?a.markedForDestroy=true:a.destroy();});}finishActiveQueriedAnimationOnElement(r){let t=this.playersByQueriedElement.get(r);t&&t.forEach(a=>a.finish());}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return Rt(this.players).onDone(()=>r());r();})}processLeaveNode(r){let t=r[$5];if(t&&t.setForRemoval){if(r[$5]=Zc,t.namespaceId){this.destroyInnerAnimations(r);let a=this._fetchNamespace(t.namespaceId);a&&a.clearElementCache(r);}this._onRemovalComplete(r,t.setForRemoval);}r.classList?.contains(Dn)&&this.markElementAsDisabled(r,false),this.driver.query(r,md,true).forEach(a=>{this.markElementAsDisabled(a,false);});}flush(r=-1){let t=[];
2737if(this.newHostElements.size&&(this.newHostElements.forEach((a,o)=>this._balanceNamespaceList(a,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let a=0;a<this.collectedEnterElements.length;a++){let o=this.collectedEnterElements[a];k5(o,vd);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let a=[];try{t=this._flushAnimations(a,r);}finally{for(let o=0;o<a.length;o++)a[o]();}}else for(let a=0;a<this.collectedLeaveElements.length;a++){let o=this.collectedLeaveElements[a];this.processLeaveNode(o);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(a=>a()),this._flushFns=[],this._whenQuietFns.length){let a=this._whenQuietFns;this._whenQuietFns=[],t.length?Rt(t).onDone(()=>{a.forEach(o=>o());}):a.forEach(o=>o());}}reportError(r){throw zc()}_flushAnimations(r,t){let a=new i2,o=[],i=new Map,d=[],f=new Map,y=new Map,L=new Map,R=new Set;this.disabledNodes.forEach(c0=>{R.add(c0);let g0=this.driver.query(c0,pd,true);for(let b0=0;b0<g0.length;b0++)R.add(g0[b0]);});let Q=this.bodyNode,d0=Array.from(this.statesByElement.keys()),m0=qc(d0,this.collectedEnterElements),n0=new Map,f0=0;m0.forEach((c0,g0)=>{let b0=Ln+f0++;n0.set(g0,b0),c0.forEach(U0=>k5(U0,b0));});let r1=[],x1=new Set,z1=new Set;for(let c0=0;c0<this.collectedLeaveElements.length;c0++){let g0=this.collectedLeaveElements[c0],b0=g0[$5];b0&&b0.setForRemoval&&(r1.push(g0),x1.add(g0),b0.hasAnimation?this.driver.query(g0,dd,true).forEach(U0=>x1.add(U0)):z1.add(g0));}let G1=new Map,S1=qc(d0,Array.from(x1));S1.forEach((c0,g0)=>{let b0=Wo+f0++;G1.set(g0,b0),c0.forEach(U0=>k5(U0,b0));}),r.push(()=>{m0.forEach((c0,g0)=>{let b0=n0.get(g0);c0.forEach(U0=>Sa(U0,b0));}),S1.forEach((c0,g0)=>{let b0=G1.get(g0);c0.forEach(U0=>Sa(U0,b0));}),r1.forEach(c0=>{this.processLeaveNode(c0);});});let Ot=[],w5=[];for(let c0=this._namespaceList.length-1;c0>=0;c0--)this._namespaceList[c0].drainQueuedTransitions(t).forEach(b0=>{let U0=b0.player,_1=b0.element;if(Ot.push(U0),this.collectedEnterElements.length){let D1=_1[$5];if(D1&&D1.setForMove){if(D1.previousTriggersValues&&D1.previousTriggersValues.has(b0.triggerName)){let G5=D1.previousTriggersValues.get(b0.triggerName),a5=this.statesByElement.get(b0.element);if(a5&&a5.has(b0.triggerName)){let Fe=a5.get(b0.triggerName);Fe.value=G5,a5.set(b0.triggerName,Fe);}}U0.destroy();return}}let m5=!Q||!this.driver.containsElement(Q,_1),W1=G1.get(_1),E5=n0.get(_1),i1=this._buildInstruction(b0,a,E5,W1,m5);if(i1.errors&&i1.errors.length){w5.push(i1);return}if(m5){U0.onStart(()=>pe(_1,i1.fromStyles)),U0.onDestroy(()=>q5(_1,i1.toStyles)),o.push(U0);return}if(b0.isFallbackTransition){U0.onStart(()=>pe(_1,i1.fromStyles)),U0.onDestroy(()=>q5(_1,i1.toStyles)),o.push(U0);return}let d2=[];i1.timelines.forEach(D1=>{D1.stretchStartingKeyframe=true,this.disabledNodes.has(D1.element)||d2.push(D1);}),i1.timelines=d2,a.append(_1,i1.timelines);let Dr={instruction:i1,player:U0,element:_1};d.push(Dr),i1.queriedElements.forEach(D1=>h5(f,D1,[]).push(U0)),i1.preStyleProps.forEach((D1,G5)=>{if(D1.size){let a5=y.get(G5);a5||y.set(G5,a5=new Set),D1.forEach((Fe,Ie)=>a5.add(Ie));}}),i1.postStyleProps.forEach((D1,G5)=>{let a5=L.get(G5);a5||L.set(G5,a5=new Set),D1.forEach((Fe,Ie)=>a5.add(Ie));});});if(w5.length){let c0=[];w5.forEach(g0=>{c0.push(Sc(g0.triggerName,g0.errors));}),Ot.forEach(g0=>g0.destroy()),this.reportError(c0);}let u1=new Map,E1=new Map;d.forEach(c0=>{let g0=c0.element;a.has(g0)&&(E1.set(g0,g0),this._beforeAnimationBuild(c0.player.namespaceId,c0.instruction,u1));}),o.forEach(c0=>{let g0=c0.element;this._getPreviousPlayers(g0,false,c0.namespaceId,c0.triggerName,null).forEach(U0=>{h5(u1,g0,[]).push(U0),U0.destroy();});});let bt=r1.filter(c0=>$c(c0,y,L)),j5=new Map;Oc(j5,this.driver,z1,L,c$3).forEach(c0=>{$c(c0,y,L)&&bt.push(c0);});let e5=new Map;m0.forEach((c0,g0)=>{Oc(e5,this.driver,new Set(c0),y,D$2);}),bt.forEach(c0=>{let g0=j5.get(c0),b0=e5.get(c0);j5.set(c0,new Map([...g0?.entries()??[],...b0?.entries()??[]]));});let De=[],v2=[],Fa={};d.forEach(c0=>{let{element:g0,player:b0,instruction:U0}=c0;if(a.has(g0)){if(R.has(g0)){b0.onDestroy(()=>q5(g0,U0.toStyles)),b0.disabled=true,b0.overrideTotalTime(U0.totalTime),o.push(b0);return}let _1=Fa;if(E1.size>1){let W1=g0,E5=[];for(;W1=W1.parentNode;){let i1=E1.get(W1);if(i1){_1=i1;break}E5.push(W1);}
2737E5.forEach(i1=>E1.set(i1,_1));}let m5=this._buildAnimation(b0.namespaceId,U0,u1,i,e5,j5);if(b0.setRealPlayer(m5),_1===Fa)De.push(b0);else {let W1=this.playersByElement.get(_1);W1&&W1.length&&(b0.parentPlayer=Rt(W1)),o.push(b0);}}else pe(g0,U0.fromStyles),b0.onDestroy(()=>q5(g0,U0.toStyles)),v2.push(b0),R.has(g0)&&o.push(b0);}),v2.forEach(c0=>{let g0=i.get(c0.element);if(g0&&g0.length){let b0=Rt(g0);c0.setRealPlayer(b0);}}),o.forEach(c0=>{c0.parentPlayer?c0.syncPlayerEvents(c0.parentPlayer):c0.destroy();});for(let c0=0;c0<r1.length;c0++){let g0=r1[c0],b0=g0[$5];if(Sa(g0,Wo),b0&&b0.hasAnimation)continue;let U0=[];if(f.size){let m5=f.get(g0);m5&&m5.length&&U0.push(...m5);let W1=this.driver.query(g0,Ko,true);for(let E5=0;E5<W1.length;E5++){let i1=f.get(W1[E5]);i1&&i1.length&&U0.push(...i1);}}let _1=U0.filter(m5=>!m5.destroyed);_1.length?xd(this,g0,_1):this.processLeaveNode(g0);}return r1.length=0,De.forEach(c0=>{this.players.push(c0),c0.onDone(()=>{c0.destroy();let g0=this.players.indexOf(c0);this.players.splice(g0,1);}),c0.play();}),De}afterFlush(r){this._flushFns.push(r);}afterFlushAnimationsDone(r){this._whenQuietFns.push(r);}_getPreviousPlayers(r,t,a,o,i){let d=[];if(t){let f=this.playersByQueriedElement.get(r);f&&(d=f);}else {let f=this.playersByElement.get(r);if(f){let y=!i||i==n2;f.forEach(L=>{L.queued||!y&&L.triggerName!=o||d.push(L);});}}return (a||o)&&(d=d.filter(f=>!(a&&a!=f.namespaceId||o&&o!=f.triggerName))),d}_beforeAnimationBuild(r,t,a){let o=t.triggerName,i=t.element,d=t.isRemovalTransition?void 0:r,f=t.isRemovalTransition?void 0:o;for(let y of t.timelines){let L=y.element,R=L!==i,Q=h5(a,L,[]);this._getPreviousPlayers(L,R,d,f,t.toState).forEach(m0=>{let n0=m0.getRealPlayer();n0.beforeDestroy&&n0.beforeDestroy(),m0.destroy(),Q.push(m0);});}pe(i,t.fromStyles);}_buildAnimation(r,t,a,o,i,d){let f=t.triggerName,y=t.element,L=[],R=new Set,Q=new Set,d0=t.timelines.map(n0=>{let f0=n0.element;R.add(f0);let r1=f0[$5];if(r1&&r1.removedBeforeQueried)return new a$1(n0.duration,n0.delay);let x1=f0!==y,z1=_d((a.get(f0)||gd).map(u1=>u1.getRealPlayer())).filter(u1=>{let E1=u1;return E1.element?E1.element===f0:false}),G1=i.get(f0),S1=d.get(f0),Ot=yn(this._normalizer,n0.keyframes,G1,S1),w5=this._buildPlayer(n0,Ot,z1);if(n0.subTimeline&&o&&Q.add(f0),x1){let u1=new l2(r,f,f0);u1.setRealPlayer(w5),L.push(u1);}return w5});L.forEach(n0=>{h5(this.playersByQueriedElement,n0.element,[]).push(n0),n0.onDone(()=>wd(this.playersByQueriedElement,n0.element,n0));}),R.forEach(n0=>k5(n0,Tn));let m0=Rt(d0);return m0.onDestroy(()=>{R.forEach(n0=>Sa(n0,Tn)),q5(y,t.toStyles);}),Q.forEach(n0=>{h5(o,n0,[]).push(m0);}),m0}_buildPlayer(r,t,a){return t.length>0?this.driver.animate(r.element,t,r.duration,r.delay,r.easing,a):new a$1(r.duration,r.delay)}},l2=class{namespaceId;triggerName;element;_player=new a$1;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(r,t,a){this.namespaceId=r,this.triggerName=t,this.element=a;}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((t,a)=>{t.forEach(o=>Go(r,a,void 0,o));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(r.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r;}syncPlayerEvents(r){let t=this._player;t.triggerCallback&&r.onStart(()=>t.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy());}_queueEvent(r,t){h5(this._queuedCallbacks,r,[]).push(t);}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r);}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r);}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(r){this.queued||this._player.setPosition(r);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){let t=this._player;t.triggerCallback&&t.triggerCallback(r);}};function wd(e,r,t){let a=e.get(r);if(a){if(a.length){let o=a.indexOf(t);a.splice(o,1);}a.length==0&&e.delete(r);}return a}function fd(e){return e??null}function er(e){return e&&e.nodeType===1}function Cd(e){return e=="start"||e=="done"}function Rc(e,r){let t=e.style.display;return e.style.display=r??"none",t}function Oc(e,r,t,a,o){let i=[];t.forEach(y=>i.push(Rc(y)));let d=[];a.forEach((y,L)=>{let R=new Map;
2737y.forEach(Q=>{let d0=r.computeStyle(L,Q,o);R.set(Q,d0),(!d0||d0.length==0)&&(L[$5]=ud,d.push(L));}),e.set(L,R);});let f=0;return t.forEach(y=>Rc(y,i[f++])),d}function qc(e,r){let t=new Map;if(e.forEach(f=>t.set(f,[])),r.length==0)return t;let a=1,o=new Set(r),i=new Map;function d(f){if(!f)return a;let y=i.get(f);if(y)return y;let L=f.parentNode;return t.has(L)?y=L:o.has(L)?y=a:y=d(L),i.set(f,y),y}return r.forEach(f=>{let y=d(f);y!==a&&t.get(y).push(f);}),t}function k5(e,r){e.classList?.add(r);}function Sa(e,r){e.classList?.remove(r);}function xd(e,r,t){Rt(t).onDone(()=>e.processLeaveNode(r));}function _d(e){let r=[];return Wc(e,r),r}function Wc(e,r){for(let t=0;t<e.length;t++){let a=e[t];a instanceof l$1?Wc(a.players,r):r.push(a);}}function bd(e,r){let t=Object.keys(e),a=Object.keys(r);if(t.length!=a.length)return false;for(let o=0;o<t.length;o++){let i=t[o];if(!r.hasOwnProperty(i)||e[i]!==r[i])return false}return true}function $c(e,r,t){let a=t.get(e);if(!a)return false;let o=r.get(e);return o?a.forEach(i=>o.add(i)):r.set(e,a),t.delete(e),true}var Ha=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(r,t)=>{};constructor(r,t,a){this._driver=t,this._normalizer=a,this._transitionEngine=new Qn(r.body,t,a),this._timelineEngine=new jn(r.body,t,a),this._transitionEngine.onRemovalComplete=(o,i)=>this.onRemovalComplete(o,i);}registerTrigger(r,t,a,o,i){let d=r+"-"+o,f=this._triggerCache[d];if(!f){let y=[],L=[],R=jc(this._driver,i,y,L);if(y.length)throw fc();f=ld(o,R,this._normalizer),this._triggerCache[d]=f;}this._transitionEngine.registerTrigger(t,o,f);}register(r,t){this._transitionEngine.register(r,t);}destroy(r,t){this._transitionEngine.destroy(r,t);}onInsert(r,t,a,o){this._transitionEngine.insertNode(r,t,a,o);}onRemove(r,t,a){this._transitionEngine.removeNode(r,t,a);}disableAnimations(r,t){this._transitionEngine.markElementAsDisabled(r,t);}process(r,t,a,o){if(a.charAt(0)=="@"){let[i,d]=Vn(a),f=o;this._timelineEngine.command(i,t,d,f);}else this._transitionEngine.trigger(r,t,a,o);}listen(r,t,a,o,i){if(a.charAt(0)=="@"){let[d,f]=Vn(a);return this._timelineEngine.listen(d,t,f,i)}return this._transitionEngine.listen(r,t,a,o,i)}flush(r=-1){this._transitionEngine.flush(r);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(r){this._transitionEngine.afterFlushAnimationsDone(r);}};function Md(e,r){let t=null,a=null;return Array.isArray(r)&&r.length?(t=In(r[0]),r.length>1&&(a=In(r[r.length-1]))):r instanceof Map&&(t=In(r)),t||a?new Ad(e,t,a):null}var Ad=(()=>{class e{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,a,o){this._element=t,this._startStyles=a,this._endStyles=o;let i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i=new Map),this._initialStyles=i;}start(){this._state<1&&(this._startStyles&&q5(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(q5(this._element,this._initialStyles),this._endStyles&&(q5(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(pe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pe(this._element,this._endStyles),this._endStyles=null),q5(this._element,this._initialStyles),this._state=3);}}return e})();function In(e){let r=null;return e.forEach((t,a)=>{yd(a)&&(r=r||new Map,r.set(a,t));}),r}function yd(e){return e==="display"||e==="position"}var lr=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(r,t,a,o){this.element=r,this.keyframes=t,this.options=a,this._specialStyles=o,this._duration=a.duration,this._delay=a.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let r=this.keyframes,t=this._triggerWebAnimation(this.element,r,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=r.length?r[r.length-1]:new Map;let a=()=>this._onFinish();return t.addEventListener("finish",a),this.onDestroy(()=>{t.removeEventListener("finish",a);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(r){let t=[];return r.forEach(a=>{t.push(Object.fromEntries(a));}),t}_triggerWebAnimation(r,t,a){let o=this._convertKeyframesToObject(t);try{return r.animate(o,a)}catch{return null}}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r);}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r);}onDestroy(r){this._onDestroyFns.push(r);}play(){let r=this._buildPlayer();r&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),r.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[]);}setPosition(r){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=r*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((a,o)=>{o!=="offset"&&r.set(o,this._finished?a:Yo(this.element,o));}),this.currentSnapshot=r;}triggerCallback(r){let t=r==="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0;}},cr=class{validateStyleProperty(r){return true}validateAnimatableStyleProperty(r){return true}containsElement(r,t){return zn(r,t)}getParentElement(r){return Zo(r)}query(r,t,a){return Sn(r,t,a)}computeStyle(r,t,a){return Yo(r,t)}animate(r,t,a,o,i,d=[]){let f=o==0?"both":"forwards",y={duration:a,delay:o,fill:f};i&&(y.easing=i);let L=new Map,R=d.filter(m0=>m0 instanceof lr);Bc(a,o)&&R.forEach(m0=>{m0.currentSnapshot.forEach((n0,f0)=>L.set(f0,n0));});let Q=Lc(t).map(m0=>new Map(m0));Q=kc(r,Q,L);let d0=Md(r,Q);return new lr(r,Q,y,d0)}};var ar="@",Kc="@.disabled",hr=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(r,t,a,o){this.namespaceId=r,this.delegate=t,this.engine=a,this._onDestroy=o;}get data(){return this.delegate.data}destroyNode(r){this.delegate.destroyNode?.(r);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(r,t){return this.delegate.createElement(r,t)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,t){this.delegate.appendChild(r,t),this.engine.onInsert(this.namespaceId,t,r,false);}insertBefore(r,t,a,o=true){this.delegate.insertBefore(r,t,a),this.engine.onInsert(this.namespaceId,t,r,o);}removeChild(r,t,a,o){if(o){this.delegate.removeChild(r,t,a,o);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(r,t){return this.delegate.selectRootElement(r,t)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,t,a,o){this.delegate.setAttribute(r,t,a,o);}removeAttribute(r,t,a){this.delegate.removeAttribute(r,t,a);}addClass(r,t){this.delegate.addClass(r,t);}removeClass(r,t){this.delegate.removeClass(r,t);}setStyle(r,t,a,o){this.delegate.setStyle(r,t,a,o);}removeStyle(r,t,a){this.delegate.removeStyle(r,t,a);}setProperty(r,t,a){t.charAt(0)==ar&&t==Kc?this.disableAnimations(r,!!a):this.delegate.setProperty(r,t,a);}setValue(r,t){this.delegate.setValue(r,t);}listen(r,t,a,o){return this.delegate.listen(r,t,a,o)}disableAnimations(r,t){this.engine.disableAnimations(r,t);}},Zn=class extends hr{factory;constructor(r,t,a,o,i){super(t,a,o,i),this.factory=r,this.namespaceId=t;}setProperty(r,t,a){t.charAt(0)==ar?t.charAt(1)=="."&&t==Kc?(a=a===void 0?true:!!a,this.disableAnimations(r,a)):this.engine.process(this.namespaceId,r,t.slice(1),a):this.delegate.setProperty(r,t,a);}listen(r,t,a,o){if(t.charAt(0)==ar){let i=Vd(r),d=t.slice(1),f="";return d.charAt(0)!=ar&&([d,f]=zd(d)),this.engine.listen(this.namespaceId,i,d,f,y=>{let L=y._data||-1;this.factory.scheduleListenerCallback(L,a,y);})}return this.delegate.listen(r,t,a,o)}};function Vd(e){switch(e){case "body":return document.body;case "document":return document;case "window":return window;default:return e}}function zd(e){let r=e.indexOf("."),t=e.substring(0,r),a=e.slice(r+1);return [t,a]}var pr=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(r,t,a){this.delegate=r,this.engine=t,this._zone=a,t.onRemovalComplete=(o,i)=>{i?.removeChild(null,o);};}createRenderer(r,t){let o=this.delegate.createRenderer(r,t);if(!r||!t?.data?.animation){let L=this._rendererCache,R=L.get(o);if(!R){let Q=()=>L.delete(o);R=new hr("",o,this.engine,Q),L.set(o,R);}return R}let i=t.id,d=t.id+"-"+this._currentId;this._currentId++,this.engine.register(d,r);let f=L=>
2737{Array.isArray(L)?L.forEach(f):this.engine.registerTrigger(i,d,r,L.name,L);};return t.data.animation.forEach(f),new Zn(this,d,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(r,t,a){if(r>=0&&r<this._microtaskId){this._zone.run(()=>t(a));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(i=>{let[d,f]=i;d(f);}),this._animationCallbacksBuffer=[];});}),o.push([t,a]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(r){this.engine.flush(),this.delegate.componentReplaced?.(r);}};var Hd=(()=>{class e extends Ha{constructor(t,a,o){super(t,a,o);}ngOnDestroy(){this.flush();}static \u0275fac=function(a){return new(a||e)(G$k(Te$g),G$k(Be),G$k(ke))};static \u0275prov=L$l({token:e,factory:e.\u0275fac})}return e})();function Ld(){return new or}function Td(){return new pr(g$k(We$d),g$k(Ha),g$k(ge$b))}var Yc=[{provide:ke,useFactory:Ld},{provide:Ha,useClass:Hd},{provide:Lo$4,useFactory:Td}],Bd=[{provide:Be,useClass:Wn},{provide:xC$1,useValue:"NoopAnimations"},...Yc],Xc=[{provide:Be,useFactory:()=>new cr},{provide:xC$1,useFactory:()=>"BrowserAnimations"},...Yc],Jc=(()=>{class e{static withConfig(t){return {ngModule:e,providers:t.disableAnimations?Bd:Xc}}static \u0275fac=function(a){return new(a||e)};static \u0275mod=Sa$2({type:e});static \u0275inj=io$5({providers:Xc,imports:[Ar$6]})}return e})();function kd(e,r){if(e&1&&Vv$1(0,"mspot-empty-state",1),e&2){let t=r.$implicit;jv$1("title",t("memberChat.notStarted.title"))("description",t("memberChat.notStarted.message"));}}var th=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-message-thread-placeholder"]],hostAttrs:[1,"flex","flex-col","overflow-hidden","bg-backgrounds-surface-raised","h-full","justify-center"],decls:1,vars:0,consts:[["icon","heroChatBubbleLeftRight",3,"title","description",4,"transloco"],["icon","heroChatBubbleLeftRight",3,"title","description"]],template:function(a,o){a&1&&gv$1(0,kd,1,2,"mspot-empty-state",0);},dependencies:[gt$5,yt$a],encapsulation:2});}}return e})();function Ed(e,r){e&1&&Vv$1(0,"span",1);}var eh=(()=>{class e{constructor(){this.showBadge=false;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["button","mspot-notification-button",""]],hostAttrs:["type","button",1,"flex","justify-center","client-header-icon","items-center","rounded-full","relative","focus-primary--rounded"],inputs:{showBadge:"showBadge"},decls:2,vars:1,consts:[["name","hero-bell",1,"rounded-full","text-xl"],[1,"bg-primary","absolute","h-2","w-2","-translate-y-3/4","translate-x-1/2","transform","rounded-full"]],template:function(a,o){a&1&&(Vv$1(0,"ng-icon",0),eM$1(1,Ed,1,0,"span",1)),a&2&&(uT(),tM$1(o.showBadge?1:-1));},dependencies:[le$9],encapsulation:2});}}return e})();function Dd(e,r){if(e&1){let t=fM();ta$3(0,"header",1)(1,"p",2),QM(2),Pd$1(),ta$3(3,"button",3),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.closeModal.emit())}),Vv$1(4,"ng-icon",4),Pd$1()();}if(e&2){let t=r.$implicit;uT(2),Gd$1(" ",t("text.messages")," "),uT(),Pv$1("aria-label",t("text.close"));}}var ah=(()=>{class e{constructor(){this.closeModal=J8();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-modal-header"]],outputs:{closeModal:"closeModal"},decls:1,vars:0,consts:[["class","border-borders-secondary bg-backgrounds-surface-raised flex h-14 items-center justify-between gap-2 border-b-[1px] px-4 py-4 md:px-6",4,"transloco"],[1,"border-borders-secondary","bg-backgrounds-surface-raised","flex","h-14","items-center","justify-between","gap-2","border-b-[1px]","px-4","py-4","md:px-6"],[1,"text-text-strong","text-sm","font-medium"],["mspotCloseButton","",1,"text-icons-subtle","hover:bg-backgrounds-surface-raisedHovered","flex","p-2",3,"click"],["name","heroXMark","aria-hidden","true",1,"size-5"]],template:function(a,o){a&1&&gv$1(0,Dd,5,2,"header",0);},dependencies:[_t$5,le$9,yt$a],encapsulation:2});}}return e})();var Fd=["*"];function Id(e,r){if(e&1){let t=fM();jd$1(0,"div",0)(1,"div",1),Yv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.backdropClick.emit())}),Vd$1(),jd$1(2,"div",2)(3,"div",3),EM(4),Vd$1()()();}e&2&&(uT(2),jv$1("@ngIfTransformXInverse",void 0));}var oh=(()=>{class e{constructor(){this.opened=X8(false),this.backdropClick=J8();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-modal-drawer"]],inputs:{opened:[1,"opened"]},outputs:{backdropClick:"backdropClick"}
2737,ngContentSelectors:Fd,decls:1,vars:1,consts:[[1,"absolute","inset-0","z-10","flex","overflow-hidden"],["aria-hidden","true",1,"absolute","inset-0","bg-black/20","backdrop-blur-sm",3,"click"],[1,"relative","flex","h-full","w-full","md:w-[340px]","lg:w-[400px]"],[1,"bg-backgrounds-canvas","border-borders-secondary","flex","h-full","w-full","flex-col","shadow-lg","md:border-r"]],template:function(a,o){a&1&&(DM(),eM$1(0,Id,5,1,"div",0)),a&2&&tM$1(o.opened()?0:-1);},encapsulation:2,data:{animation:[l]}});}}return e})();var Nd=e=>({name:e});function Pd(e,r){if(e&1&&(ta$3(0,"h1",3),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),Gd$1(" ",t("memberChat.delete.title")," ");}}function Rd(e,r){if(e&1&&(Vv$1(0,"img",11),ta$3(1,"p",3),QM(2),EN(3,"communityUsername"),Pd$1()),e&2){let t=yM().$implicit,a=yM();jv$1("src",a.data.participantPhoto??a.placeholderImg,Gm$1)("alt",t("memberChat.alt.avatar")),uT(2),Gd$1(" ",CN(3,3,a.data.participantName)," ");}}function Od(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2),eM$1(3,Pd,2,1,"h1",3)(4,Rd,4,5),Pd$1(),ta$3(5,"button",4),Vv$1(6,"ng-icon",5),Pd$1()(),ta$3(7,"div",6)(8,"div",7),QM(9),EN(10,"communityUsername"),Pd$1()(),ta$3(11,"div",8)(12,"button",9),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.dialogRef.close())}),QM(13),Pd$1(),ta$3(14,"button",10),QM(15),Pd$1()(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(3),tM$1(a.data.isMobile?3:4),uT(2),Pv$1("aria-label",t("memberChat.aria.closeDialog")),uT(4),Gd$1(" ",t("memberChat.delete.message",fN(8,Nd,CN(10,6,a.data.participantName)))," "),uT(4),Gd$1(" ",t("memberChat.delete.abort")," "),uT(),jv$1("mat-dialog-close",true),uT(),Gd$1(" ",t("memberChat.delete.confirm")," ");}}var rh=(()=>{class e{constructor(){this.dialogRef=g$k(O$c),this.data=g$k(Ze$9),this.placeholderImg=R$6;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-delete-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","items-center","justify-between"],[1,"flex","flex-1","items-center","gap-x-2"],[1,"text-text-strong","text-sm","font-semibold"],["type","button","mat-dialog-close","",1,"navIconButton"],["name","heroXMark"],[1,"pb-5","pt-7"],[1,"text-text-default","font-semibold"],[1,"flex","flex-col-reverse","justify-end","gap-2","py-3","sm:flex-row"],[1,"btn","btn-gray","bg-backgrounds-surface-raised","w-full","sm:w-auto",3,"click"],["cdkFocusInitial","",1,"btn","bg-backgrounds-fill-danger-strong","text-text-inverse","w-full","sm:w-auto",3,"mat-dialog-close"],["mspotProfileImgLoadErr","",1,"h-8","w-8","rounded-full",3,"src","alt"]],template:function(a,o){a&1&&gv$1(0,Od,16,10,"ng-container",0);},dependencies:[jt$8,le$9,Pe$2,yt$a,u$7],encapsulation:2});}}return e})();var nh=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275mod=Sa$2({type:e});}static{this.\u0275inj=io$5({imports:[kx$1,s$3,ae$9,pi$4,Lt$7,zt$7,oi$5,aa$1,bt$b,Xi,Ds$2,it$1,hd$1,je$2,oi$5]});}}return e})();var La=()=>({provide:Me$7,useValue:{scope:"memberChat",loader:t$7({de:y$5,en:k$2})}});var U5=(function(e){return e[e.DEFAULT=1]="DEFAULT",e[e.LAST_SEEN=2]="LAST_SEEN",e[e.SUMMARY=3]="SUMMARY",e})(U5||{}),me=(()=>{class e{constructor(){this._translocoService=g$k(Ce$5),this._timeFormat="HH:mm",this._dateFormat="dd.MM.yyyy",this._summaryFormat="EEE. dd. MMM.";}transform(t,a=U5.DEFAULT){if(!t)return "";let o=typeof t=="string"?new Date(t):t,i=w$2.fromJSDate(o),d=w$2.now(),f=this._getDateBoundaries(d),y=i.toFormat(this._timeFormat),L=this._translocoService.getActiveLang();switch(a){case U5.LAST_SEEN:return this._formatLastSeen(i,d,f,y,L);case U5.SUMMARY:return this._formatSummary(i,f,L);case U5.DEFAULT:default:return this._formatDefault(i,f,y,L)}}_formatDefault(t,a,o,i){return t>=a.startOfToday?o:t>=a.startOfYesterday?this._translocoService.translate("memberChat.yesterday"):t>=a.startOfThisWeek?t.setLocale(i).toFormat("EEEE"):t.toFormat(this._dateFormat)}_formatLastSeen(t,a,o,i,d){if(a.diff(t,"minutes").minutes<1)return this._translocoService.translate("memberChat.lastSeen.now");if(t>=o.startOfToday)return this._translocoService.translate("memberChat.lastSeen.today",{time:i});if(t>=o.startOfYesterday)return this._translocoService.translate("memberChat.lastSeen.yesterday",{time:i});if(t>=o.startOfThisWeek){let y=t.setLocale(d).toFormat("EEEE");return this._translocoService.translate("memberChat.lastSeen.onDay",{day:y,time:i})}return this._translocoService.translate("memberChat.lastSeen.onDate",{date:t.toFormat(this._dateFormat),time:i})}_formatSummary(t,a,o){return this._isToday(t,a)?this._translocoService.translate("memberChat.today"):this._isYesterday(t,a)?this._translocoService.translate("memberChat.yesterday"):this._isThisWeek(t,a)?t.setLocale(o).toFormat("EEEE"):t.setLocale(o).toFormat(this._summaryFormat)}_isToday(t,a){return t>=a.startOfToday}_isYesterday(t,a){return t>=a.startOfYesterday&&t<a.startOfToday}_isThisWeek(t,a){return t>=a.startOfThisWeek&&t<a.startOfYesterday}_getDateBoundaries(t){return {startOfToday:t.startOf("day"),startOfYesterday:t.startOf("day").minus({days:1}),startOfThisWeek:t.startOf("week")}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275pipe=Yn$8({name:"chatDate",type:e,pure:true});}}return e})();function qd(e,r){if(e&1&&(Vv$1(0,"span",3),ta$3(1,"span",2),QM(2),Pd$1()),e&2){let t=yM().$implicit;uT(2),yD(t("memberChat.state.online"));}}function $d(e,r){if(e&1&&(ta$3(0,"span",2),QM(1),EN(2,"chatDate"),Pd$1()),e&2){let t=yM(2);uT(),yD(wN(2,1,t.lastOnlineDate(),t.ChatDateMode.LAST_SEEN));}}function Ud(e,r){if(e&1&&(Vv$1(0,"span",4),ta$3(1,"span",2),QM(2),Pd$1()),e&2){let t=yM().$implicit;uT(2),yD(t("memberChat.state.offline"));}}
2737function jd(e,r){if(e&1&&(ta$3(0,"div",1),eM$1(1,qd,3,1)(2,$d,3,4,"span",2)(3,Ud,3,1),Pd$1()),e&2){let t=yM();uT(),tM$1(t.isOnline()?1:t.lastOnlineDate()?2:3);}}var ih=(()=>{class e{constructor(){this.isOnline=X8(),this.lastOnlineDate=X8(),this.ChatDateMode=U5;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-member-state"]],inputs:{isOnline:[1,"isOnline"],lastOnlineDate:[1,"lastOnlineDate"]},decls:1,vars:0,consts:[["class","flex items-center gap-x-1",4,"transloco"],[1,"flex","items-center","gap-x-1"],[1,"text-sm"],[1,"bg-backgrounds-fill-success-strong","h-[8px]","w-[8px]","rounded-full"],[1,"bg-mspot-neutral-300","h-[8px]","w-[8px]","rounded-full"]],template:function(a,o){a&1&&gv$1(0,jd,4,1,"div",0);},dependencies:[yt$a,me],encapsulation:2});}}return e})();function Gd(e,r){if(e&1&&(ta$3(0,"p",10),QM(1),Pd$1()),e&2){let t=yM(3);uT(),Gd$1(" ",t.counter()," ");}}function Qd(e,r){if(e&1){let t=fM();ta$3(0,"button",8),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.closeDrawer.emit())}),Vv$1(1,"ng-icon",9),eM$1(2,Gd,2,1,"p",10),Pd$1();}if(e&2){let t=yM(2);uT(2),tM$1(t.counter()&&t.counter()!==0?2:-1);}}function Zd(e,r){if(e&1&&(ta$3(0,"span",13),QM(1),Pd$1()),e&2){let t=yM(2).$implicit;uT(),vD(" ",t("common.id"),": ",r," ");}}function Wd(e,r){if(e&1){let t=fM();ta$3(0,"button",11),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.openParticipantProfile.emit())}),ta$3(1,"p",12),QM(2),EN(3,"communityUsername"),Pd$1(),eM$1(4,Zd,2,2,"span",13),Vv$1(5,"mspot-chat-member-state",7),Pd$1();}if(e&2){let t,a=yM(2);uT(2),Gd$1(" ",CN(3,4,a.userName())," "),uT(2),tM$1((t=a.id())?4:-1,t),uT(),jv$1("isOnline",a.isOnline())("lastOnlineDate",a.lastOnlineDate());}}function Kd(e,r){if(e&1&&(ta$3(0,"span",13),QM(1),Pd$1()),e&2){let t=yM(2).$implicit;uT(),vD(" ",t("common.id"),": ",r," ");}}function Xd(e,r){if(e&1&&(ta$3(0,"div",6)(1,"p",12),QM(2),EN(3,"communityUsername"),Pd$1(),eM$1(4,Kd,2,2,"span",13),Pd$1()),e&2){let t,a=yM(2);uT(2),Gd$1(" ",CN(3,2,a.userName())," "),uT(2),tM$1((t=a.id())?4:-1,t);}}function Yd(e,r){if(e&1&&Vv$1(0,"mspot-chat-member-state",7),e&2){let t=yM(2);jv$1("isOnline",t.isOnline())("lastOnlineDate",t.lastOnlineDate());}}function Jd(e,r){if(e&1&&(ta$3(0,"div",1)(1,"div",2),eM$1(2,Qd,3,1,"button",3),Vv$1(3,"img",4),eM$1(4,Wd,6,6,"button",5)(5,Xd,5,4,"div",6),Pd$1(),eM$1(6,Yd,1,2,"mspot-chat-member-state",7),Pd$1()),e&2){let t=r.$implicit,a=yM();uT(2),tM$1(a.drawerView()?2:-1),uT(),jv$1("src",a.avatarUrl()??a.placeholderImg,Gm$1)("alt",t("memberChat.alt.avatar")),uT(),tM$1(a.inlineState()?4:5),uT(2),tM$1(a.showState()&&!a.inlineState()?6:-1);}}var Ta=(()=>{class e{constructor(){this.drawerView=X8(false),this.userName=X8(),this.id=X8(),this.avatarUrl=X8(),this.isOnline=X8(),this.counter=X8(0),this.lastOnlineDate=X8(),this.showState=X8(false),this.inlineState=X8(false),this.closeDrawer=J8(),this.openParticipantProfile=J8(),this.placeholderImg=R$6;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-member-preview"]],hostAttrs:[1,"w-full"],inputs:{drawerView:[1,"drawerView"],userName:[1,"userName"],id:[1,"id"],avatarUrl:[1,"avatarUrl"],isOnline:[1,"isOnline"],counter:[1,"counter"],lastOnlineDate:[1,"lastOnlineDate"],showState:[1,"showState"],inlineState:[1,"inlineState"]},outputs:{closeDrawer:"closeDrawer",openParticipantProfile:"openParticipantProfile"},decls:1,vars:0,consts:[["class","flex items-center justify-between px-4 py-2",4,"transloco"],[1,"flex","items-center","justify-between","px-4","py-2"],[1,"flex","items-center","gap-x-4"],[1,"text-icons-subtle","flex","cursor-pointer","items-center","justify-center","gap-x-1"],["mspotProfileImgLoadErr","",1,"h-14","w-14","rounded-full",3,"src","alt"],["type","button",1,"flex","cursor-pointer","flex-col","gap-y-1","text-start"],[1,"text-start"],[3,"isOnline","lastOnlineDate"],[1,"text-icons-subtle","flex","cursor-pointer","items-center","justify-center","gap-x-1",3,"click"],["name","hero-chevron-left",1,"rounded-full","text-sm"],[1,"text-sm"],["type","button",1,"flex","cursor-pointer","flex-col","gap-y-1","text-start",3,"click"],[1,"text-sm","font-bold"],[1,"text-text-subtle","font-mono","text-xs"]],template:function(a,o){a&1&&gv$1(0,Jd,7,5,"div",0);},dependencies:[Pe$2,ih,le$9,yt$a,u$7],encapsulation:2});}}return e})();var c2={dirty:true,raw:"2026-10-02-0937/server-client-frontend-0-g73fed18c-dirty",hash:"g73fed18c",distance:0,tag:"2026-10-02-0937/server-client-frontend",semver:null,suffix:"0-g73fed18c-dirty",semverString:"",version:"2026-10-02-0937/server-client-frontend",date:"10/2/2026",time:"7:40:17 AM"};var sh=(()=>{class e{constructor(){this.version=c2;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-version"]],decls:9,vars:4,consts:[[1,"text-mspot-neutral-700","bg-white"]],template:function(a,o){a&1&&(jd$1(0,"div",0)(1,"p"),QM(2),Vd$
27371(),jd$1(3,"p"),QM(4),Vd$1(),jd$1(5,"p"),QM(6),Vd$1(),jd$1(7,"p"),QM(8),Vd$1()()),a&2&&(uT(2),Gd$1("Version: ",o.version?.version),uT(2),Gd$1("GitHash: ",o.version?.hash),uT(2),Gd$1("Tag: ",o.version?.tag),uT(2),Gd$1("Date: ",o.version?.date));},encapsulation:2});}}return e})();var j1={SEARCH_DEBOUNCE_MS:500,MESSAGE_MAX_LENGTH:5e3,SCROLL_LOAD_THRESHOLD:.7,WIDGET_MAX_CHATS:4,SEARCH_RESULT_LIMIT:20,MIN_SEARCH_QUERY_LENGTH:2,HIGHLIGHT_DURATION_MS:2e3,SCROLL_LOAD_NEWER_THRESHOLD:150,ANCHOR_LOAD_COOLDOWN_MS:300};function tg(e,r){if(e&1&&(jd$1(0,"span",1),QM(1),Vd$1()),e&2){yM();let t=tN(0);uT(),Gd$1(" ",t.chatDisplayName," ");}}function eg(e,r){if(e&1&&(jd$1(0,"mark",4),QM(1),Vd$1()),e&2){let t=yM().$implicit;uT(),yD(t.value);}}function ag(e,r){if(e&1&&(jd$1(0,"span"),QM(1),Vd$1()),e&2){let t=yM().$implicit;uT(),yD(t.value);}}function og(e,r){if(e&1&&eM$1(0,eg,2,1,"mark",4)(1,ag,2,1,"span"),e&2){let t=r.$implicit;tM$1(t.type==="hit"?0:1);}}function rg(e,r){if(e&1&&oM(0,og,2,1,null,null,nM),e&2){yM();let t=tN(0);iM(t.highlights[0].texts);}}function ng(e,r){if(e&1&&(QM(0),EN(1,"slice")),e&2){yM();let t=tN(0);Gd$1(" ",bN(1,1,t.content,0,120)," ");}}var lh=(()=>{class e{constructor(){this.hit=X8.required(),this.selectResult=J8(),this.dateMode=U5.DEFAULT;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-search-result-item"]],inputs:{hit:[1,"hit"]},outputs:{selectResult:"selectResult"},decls:9,vars:7,consts:[["type","button",1,"hover:bg-backgrounds-subtle","flex","w-full","cursor-pointer","flex-col","gap-1","rounded-lg","px-3","py-2.5","text-left","transition-colors",3,"click"],[1,"text-text-default","line-clamp-1","text-xs","font-medium"],[1,"text-text-strong","line-clamp-2","text-sm"],[1,"text-text-subtle","text-xs"],[1,"bg-yellow-200"]],template:function(a,o){if(a&1){let i=fM();wD(0),jd$1(1,"button",0),Yv$1("click",function(){sh$1(i);let f=tN(0);return ah$1(o.selectResult.emit(f))}),eM$1(2,tg,2,1,"span",1),jd$1(3,"span",2),eM$1(4,rg,2,0)(5,ng,2,5),Vd$1(),jd$1(6,"span",3),QM(7),EN(8,"chatDate"),Vd$1()();}if(a&2){let i=eN(o.hit());uT(2),tM$1(i.chatDisplayName?2:-1),uT(2),tM$1(i.highlights.length&&i.highlights[0].texts.length?4:5),uT(3),Gd$1(" ",wN(8,4,i.createdAt,o.dateMode)," ");}},dependencies:[Ox$1,me],encapsulation:2});}}return e})();var ig=e=>({count:e}),sg=(e,r)=>r.messageId;function lg(e,r){if(e&1&&(ta$3(0,"div",7),QM(1),Pd$1()),e&2){let t=yM().$implicit,a=yM();uT(),Gd$1(" ",t("memberChat.search.resultCount",fN(1,ig,a.totalMatchCount()))," ");}}function cg(e,r){if(e&1&&(ta$3(0,"div",8),Vv$1(1,"ng-icon",12),ta$3(2,"span"),QM(3),Pd$1()()),e&2){let t=yM().$implicit;uT(3),yD(t("memberChat.search.truncated"));}}function hg(e,r){if(e&1&&(ta$3(0,"div",10),Vv$1(1,"mspot-load-spinner-new",13),Pd$1()),e&2){let t=yM().$implicit;uT(),jv$1("loadingText",t("common.loading"));}}function pg(e,r){if(e&1&&(ta$3(0,"div",11),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),Gd$1(" ",t("memberChat.search.noResults")," ");}}function mg(e,r){if(e&1&&(ta$3(0,"div",11),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),Gd$1(" ",t("memberChat.search.minChars")," ");}}function vg(e,r){if(e&1){let t=fM();ta$3(0,"mspot-chat-search-result-item",17),Zv$1("selectResult",function(o){sh$1(t);let i=yM(3);return ah$1(i.selectResult.emit(o))}),Pd$1();}if(e&2){let t=r.$implicit;jv$1("hit",t);}}function dg(e,r){e&1&&(ta$3(0,"div",16),Vv$1(1,"mspot-load-spinner-new",18),Pd$1());}function gg(e,r){if(e&1&&(ta$3(0,"div",14),oM(1,vg,1,1,"mspot-chat-search-result-item",15,sg),Pd$1(),eM$1(3,dg,2,0,"div",16)),e&2){let t=yM(2);uT(),iM(t.hits()),uT(2),tM$1(t.isFetchingMore()?3:-1);}}function ug(e,r){if(e&1){let t=fM();ta$3(0,"div",2)(1,"div",3)(2,"button",4),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.closeSearch.emit())}),Vv$1(3,"ng-icon",5),Pd$1(),ta$3(4,"mspot-search-field",6),Zv$1("searchTextChange",function(o){sh$1(t);let i=yM();return ah$1(i.searchQueryChange.emit(o.trim()))}),Pd$1()(),eM$1(5,lg,2,3,"div",7),eM$1(6,cg,4,1,"div",8),ta$3(7,"div",9,0),Zv$1("scroll",function(){sh$1(t);let o=TM(8),i=yM();return ah$1(i.onScroll(o))}),eM$1(9,hg,2,1,"div",10)(10,pg,2,1,"div",11)(11,mg,2,1,"div",11)(12,gg,4,1),Pd$1()();}if(e&2){let t=r.$implicit,a=yM();uT(2),Pv$1("aria-label",t("memberChat.aria.closeSearch")),uT(2),jv$1("enableAutoFocus",true)("placeholderKey",a.placeholderKey())("hasMaxWidth",false),uT(),tM$1(a.totalMatchCount()!==void 0&&a.searchQuery().length>=a.minQueryLength?5:-1),uT(),tM$1(a.isTruncated()&&a.searchQuery().length>=a.minQueryLength?6:-1),uT(3),tM$1(a.isLoading()?9:a.searchQuery().length>=a.minQueryLength&&!a.hits().length?10:a.searchQuery().length<a.minQueryLength?11:12);}}var mr=(()=>{class e{constructor(){this.hits=X8([]),this.isLoading=X8(false),this.isFetchingMore=X8(false),this.hasMore=X8(false),this.totalMatchCount=X8(),this.searchQuery=X8(""),this.placeholderKey=X8("memberChat.search.placeholder.inChat"),this.isTruncated=X8(false),this.searchQueryChange=J8(),this.loadMore=J8(),this.closeSearch=J8(),this.selectResult=J8(),this.minQueryLength=j1.MIN_SEARCH_QUERY_LENGTH;}onScroll(t){if(!this.hasMore()||this.isFetchingMore())return;let{scrollTop:a,scrollHeight:o,clientHeight:i}=t;o-a-i<i*(1-j1.SCROLL_LOAD_THRESHOLD)&&this.loadMore.emit();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-search-panel"]],hostAttrs:[1,"block"],inputs:{hits:[1,"hits"],isLoading:[1,"isLoading"],isFetchingMore:[1,"isFetchingMore"],hasMore:[1,"hasMore"],totalMatchCount:[1,"totalMatchCount"],searchQuery:[1,"searchQuery"],placeholderKey:[1,"placeholderKey"],isTruncated:[1,"isTruncated"]},outputs:{searchQueryChange:"searchQueryChange",loadMore:"loadMore",closeSearch:"closeSearch",selectResult:"selectResult"},decls:1,vars:0,consts:[["scrollList",""],["class","flex h-full flex-col",4,"transloco"],[1,"flex","h-full","flex-col"],[1,"border-borders-secondary","flex","items-center","gap-2","border-b","px-3","py-2"],["type","button",1,"text-icons-subtle","flex","shrink-0","cursor-pointer","items-center","justify-center","rounded-lg","p-1.5","hover:bg-gray-100",3,"click"],["name","heroXMark",1,"text-lg"],[1,"flex-1",3,"searchTextChange","enableAutoFocus","placeholderKey","hasMaxWidth"],[1,"text-text-subtle","border-borders-secondary","border-b","px-4","py-1.5","text-xs"],["role","status",1,"border-borders-secondary","text-text-default","flex","items-start","gap-2","border-b","px-4","py-2","text-xs"],[1,"flex-1","overflow-y-auto",3,"scroll"],[1,"flex","justify-center","pt-8"],[1,"text-text-subtle","px-4","pt-8","text-center","text-sm"],["name","heroInformationCircle","aria-hidden","true",1,"text-icons-subtle","mt-0.5","shrink-0","text-sm"],[3,"loadingText"],[1,"flex","flex-col","py-1"],[3,"hit"],[1,"flex","justify-center","py-3"],[3,"selectResult","hit"],["size","h-4 w-4"]],template:function(a,o){a&1&&gv$1(0,ug,13,7,"div",1);},dependencies:[q0,v$5,lh,le$9,yt$a],encapsulation:2});}}return e})();var Ee=(function(e){return e.DELETE="delete",e.INFO="info",e.ARCHIVE="archive",e.MARK_READ="mark_read",e.MARK_UNREAD="mark_unread",e.MUTE="mute",e.UNMUTE="unmute",e.BLOCK="block",e.UNBLOCK="unblock",e})(Ee||{});var wg=["*"],fg=(e,r)=>r.type;function Cg(e,r){if(e&1){let t=fM();ta$3(0,"button",4),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM();return ah$1(i.actionClick(o))}),Vv$1(1,"ng-icon",5),Pd$1();}if(e&2){let t=r.$implicit,a=yM();BM(`flex items-center justify-center transition-opacity duration-300 ${t.textClass} ${t.bgClass} h-full`),Ma$2("width",a.actionWidth(),"px"),iD("opacity-0",a.translateX()===0),uT(),jv$1("name",t.icon);}}var ch=(()=>{class e{constructor(){this.id=X8.required(),this.actions=X8([]),this.actionWidth=X8(80),this.forcePrimaryBg=X8(false),this.openedId=X8(null),this.setOpenItem=J8(),this.actionTrigger=J8(),this.translateX=On$7(0),this.startX=On$7(0),this.isOpen=On$7(false),this.isTouch=On$7(false),this.maxSwipe=qd$1(()=>this.actionWidth()*this.actions().length),Es$3(()=>{this.openedId()!==this.id()&&this.close(true);});}
2737ngOnInit(){typeof window<"u"&&typeof navigator<"u"&&this.isTouch.set("ontouchstart"in window||navigator.maxTouchPoints>0);}onTouchStart(t){this.isTouch()&&this.startX.set(t.touches[0].clientX);}onTouchMove(t){if(!this.isTouch())return;let a=t.touches[0].clientX-this.startX();a<0?this.translateX.set(Math.max(a,-this.maxSwipe())):this.isOpen()&&this.translateX.set(-this.maxSwipe()+Math.min(a,this.maxSwipe()));}onTouchEnd(){this.isTouch()&&(this.isOpen()?this.translateX()>-this.actionWidth()?this.close():this.open():Math.abs(this.translateX())>this.actionWidth()?this.open():this.close());}open(){this.translateX.set(-this.maxSwipe()),this.isOpen.set(true),this.setOpenItem.emit(this.id());}close(t=false){this.translateX.set(0),this.isOpen.set(false),t||this.setOpenItem.emit(null);}actionClick(t){this.actionTrigger.emit(t.type),this.close();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-swipe-action-wrapper"]],inputs:{id:[1,"id"],actions:[1,"actions"],actionWidth:[1,"actionWidth"],forcePrimaryBg:[1,"forcePrimaryBg"],openedId:[1,"openedId"]},outputs:{setOpenItem:"setOpenItem",actionTrigger:"actionTrigger"},ngContentSelectors:wg,decls:6,vars:6,consts:[[1,"group","relative","select-none","overflow-hidden"],[1,"absolute","inset-0","flex","items-center","justify-end"],[3,"class","opacity-0","width"],[1,"z-1","relative","transition-transform","duration-300","ease-in-out",3,"touchstart","touchmove","touchend"],[3,"click"],[1,"rounded-full","text-xl",3,"name"]],template:function(a,o){a&1&&(DM(),ta$3(0,"div",0)(1,"div",1),oM(2,Cg,2,7,"button",2,fg),Pd$1(),ta$3(4,"div",3),Zv$1("touchstart",function(d){return o.onTouchStart(d)})("touchmove",function(d){return o.onTouchMove(d)})("touchend",function(){return o.onTouchEnd()}),EM(5),Pd$1()()),a&2&&(uT(2),iM(o.actions()),uT(2),Ma$2("transform","translateX("+o.translateX()+"px)"),iD("md:bg-backgrounds-canvas",!o.forcePrimaryBg())("backdrop-blur-sm",o.translateX()));},dependencies:[le$9],encapsulation:2});}}return e})();var hh=[{type:Ee.INFO,icon:"heroInformationCircle",bgClass:"bg-backgrounds-canvas",textClass:"text-text-subtle"},{type:Ee.DELETE,icon:"heroTrash",bgClass:"bg-backgrounds-fill-danger-strong",textClass:"text-text-inverse"}];function xg(e,r){if(e&1&&(ta$3(0,"p",7),QM(1),Pd$1()),e&2){let t=yM(2);uT(),Gd$1(" ",t.lastMessageSnippet," ");}}function _g(e,r){if(e&1&&(ta$3(0,"p",8),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),Gd$1(" ",t("memberChat.newChat")," ");}}function bg(e,r){if(e&1&&(ta$3(0,"span",9),QM(1),Pd$1()),e&2){let t=yM(2);uT(),Gd$1(" ",t.unreadCount>99?"99+":t.unreadCount," ");}}function Mg(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",1),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.openChatModal.emit())}),Vv$1(2,"img",2),ta$3(3,"div",3)(4,"div",4)(5,"p",5),QM(6),EN(7,"communityUsername"),Pd$1(),ta$3(8,"p"),QM(9),EN(10,"chatDate"),Pd$1()(),ta$3(11,"div",6),eM$1(12,xg,2,1,"p",7)(13,_g,2,1,"p",8),eM$1(14,bg,2,1,"span",9),Pd$1()()(),$d$1();}if(e&2){let t=r.$implicit,a=yM(),o=yM();uT(),iD("bg-backgrounds-subtle",o.isActiveChat()),uT(),jv$1("src",o.chatSummaryItem()?.displayPartnerAvatarUrl||o.placeholderImg,Gm$1)("alt",t("memberChat.alt.avatar")),uT(4),Gd$1(" ",CN(7,10,a.displayPartnerName)," "),uT(2),BM((a.unreadCount>0?"text-primary":"text-text-subtle")+" text-sm"),uT(),Gd$1(" ",CN(10,12,a.lastMessageTimestamp)," "),uT(3),tM$1(a.lastMessageSnippet?12:13),uT(2),tM$1(a.unreadCount>0?14:-1);}}function Ag(e,r){e&1&&gv$1(0,Mg,15,14,"ng-container",0);}var ph=(()=>{class e{constructor(){this.isActiveChat=X8(false),this.chatSummaryItem=X8(),this.placeholderImg=R$6,this.openChatModal=J8();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-summary-item"]],inputs:{isActiveChat:[1,"isActiveChat"],chatSummaryItem:[1,"chatSummaryItem"]},outputs:{openChatModal:"openChatModal"},decls:1,vars:1,consts:[[4,"transloco"],[1,"hover:bg-backgrounds-subtle","border-borders-primary","flex","h-[80px]","w-full","cursor-pointer","items-center","justify-between","gap-x-3","border-b-[1px]","px-4","py-1",3,"click"],["mspotProfileImgLoadErr","",1,"h-14","w-14","rounded-full",3,"src","alt"],[1,"flex","flex-1","flex-col","gap-y-1"],[1,"flex","items-center","justify-between"],[1,"text-text-strong","text-sm","font-bold"],[1,"relative"],[1,"text-text-default","line-clamp-2","break-all","pr-9","text-sm"],[1,"text-text-default","pr-9","text-sm","italic"],[1,"bg-primary","text-mspot-white","absolute","right-0","top-1/2","-translate-y-1/2","rounded-md","px-1","py-0.5","text-sm"]],template:function(a,o){if(a&1&&eM$1(0,Ag,1,0,"ng-container"),a&2){let i;tM$1((i=o.chatSummaryItem())?0:-1,i);}},dependencies:[Pe$2,yt$a,me,u$7],encapsulation:2});}}return e})();function yg(e,r){e&1&&Vv$1(0,"ng-icon",15);}function Vg(e,r){if(e&1){let t=fM();ta$3(0,"button",14),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM(3);return ah$1(i.readFilterChange.emit(o))}),ta$3(1,"p"),QM(2),Pd$1(),eM$1(3,yg,1,0,"ng-icon",15),Pd$1();}if(e&2){let t=r.$implicit,a=yM(2).$implicit,o=yM();iD("text-primary",t===o.selectedFilter()),Pv$1("aria-label",a(`memberChat.filter.${t}`)),uT(2),Gd$1(" ",a(`memberChat.filter.${t}`)," "),uT(),tM$1(t===o.selectedFilter()?3:-1);}}function zg(e,r){if(e&1&&(ta$3(0,"button",10),QM(1),Vv$1(2,"ng-icon",11),Pd$1(),ta$3(3,"mat-menu",12,0),oM(5,Vg,4,5,"button",13,rM),Pd$1()),e&2){let t=TM(4),a=yM().$implicit,o=yM();jv$1("matMenuTriggerFor",t),uT(),Gd$1(" ",a(`memberChat.filter.${o.selectedFilter()}`)," "),uT(4),iM(o.filterOptions);}}function Sg(e,r){if(e&1){let t=fM();ta$3(0,"button",16),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.openMemberSearch.emit())}),Vv$1(1,"ng-icon",17),Pd$1();}if(e&2){let t=yM().$implicit;Pv$1("aria-label",t("memberChat.actions.startChat"));}}function Hg(e,r){if(e&1&&Vv$1(0,"mspot-empty-state",8),e&2){let t=yM().$implicit;jv$1("description",t("memberChat.empty"));}}function Lg(e,r){if(e&1){let t=fM();ta$3(0,"mspot-swipe-action-wrapper",20),Zv$1("setOpenItem",function(o){sh$1(t);let i=yM(3);return ah$1(i.openedChatActionId.set(o))})("actionTrigger",function(o){let i=sh$1(t).$implicit,d=yM(3);return ah$1(d.actionTrigger(o,i))}),ta$3(1,"mspot-chat-summary-item",21),Zv$1("openChatModal",function(){let o=sh$1(t).$implicit,i=yM(3);return ah$1(i.openChatModal.emit(o))}),Pd$1()();}if(e&2){let t=r.$implicit,a=yM(3);jv$1("id",t.id)("openedId",a.openedChatActionId())("actions",a.chatActions)("forcePrimaryBg",a.widgetView()),uT(),jv$1("isActiveChat",a.activeChatId()===t.chatId)("chatSummaryItem",t);}}function Tg(e,r){if(e&1){let t=fM();ta$3(0,"cdk-virtual-scroll-viewport",18),Zv$1("scroll",function(o){sh$1(t);let i=yM(2);return ah$1(i.onScroll(o))}),gv$1(1,Lg,2,6,"mspot-swipe-action-wrapper",19),Pd$1();}if(e&2){let t=yM(2);BM(t.showActions()?"h-[calc(100%-54px)]":"h-full"),uT(),jv$1("cdkVirtualForOf",t.chatSummaries())("cdkVirtualForTrackBy",t.trackByChatId);}}function Bg(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",2)(2,"button",3),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.openChatModal.emit(null))}),Vv$1(3,"ng-icon",4),ta$3(4,"p",5),QM(5),Pd$1()(),ta$3(6,"div",6),eM$1(7,zg,7,2),eM$1(8,Sg,2,1,"button",7),Pd$1()(),eM$1(9,Hg,1,1,"mspot-empty-state",8)(10,Tg,2,4,"cdk-virtual-scroll-viewport",9),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(5),yD(t("memberChat.conversations")),uT(2),tM$1(a.showActions()?7:-1),uT(),tM$1(a.canStartChat()?8:-1),uT(),tM$1(a.chatSummaries()?.length?10:9);}}var vr=(()=>{class e{constructor(){this.chatSummaries=X8([]),this.showActions=X8(false),this.hasMoreItems=X8(false),this.widgetView=X8(false),this.selectedFilter=X8(D$c.ALL),this.activeChatId=X8(null),this.canStartChat=X8(true),this.removeChat=J8(),this.openChatModal=J8(),this.openMemberSearch=J8(),this.closeModal=J8(),this.readFilterChange=J8(),this.loadMoreChats=J8(),this.filterOptions=Object.values(D$c),this._router=g$k(H$8),this.chatActions=hh,this.openedChatActionId=On$7(null);}actionTrigger(t,a){if(!(!t||!a))switch(t){case Ee.INFO:this._router.navigate(["community","profile",a.otherParticipantId]),this.closeModal.emit();break;case Ee.DELETE:this.removeChat.emit(a);break}}onScroll(t){!this._nearToBottom(t)||!this.hasMoreItems()||this.loadMoreChats.emit();}_nearToBottom(t){let a=t.target,{scrollTop:o,scrollHeight:i,clientHeight:d}=a;return o/(i-d)>=.7}trackByChatId(t,a){return a.id}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-summary-list"]],inputs:{chatSummaries:[1,"chatSummaries"],showActions:[1,"showActions"],hasMoreItems:[1,"hasMoreItems"],widgetView:[1,"widgetView"],selectedFilter:[1,"selectedFilter"],activeChatId:[1,"activeChatId"],canStartChat:[1,"canStartChat"]},outputs:{removeChat:"removeChat",openChatModal:"openChatModal",openMemberSearch:"openMemberSearch",closeModal:"closeModal",readFilterChange:"readFilterChange",loadMoreChats:"loadMoreChats"},decls:1,vars:0,consts:[["menu","matMenu"],[4,"transloco"],[1,"flex","items-center","justify-between","px-4","py-2"],[1,"text-icons-default","flex","cursor-pointer","items-center","justify-start","gap-2",3,"click"],["name","hero-chat-bubble-left-right",1,"rounded-full","text-sm"],[1,"text-sm"],[1,"flex","items-center","gap-x-2"],["type","button",1,"btn-primary","text-mspot-white","flex","cursor-pointer","items-center","justify-center","rounded-lg","p-3"],["size","sm","icon","heroChatBubbleLeftRight",3,"de
2737scription"],["itemSize","80","minBufferPx","500","maxBufferPx","800",3,"class"],[1,"text-icons-default","cursor-pointer","items-center","justify-center","text-sm",3,"matMenuTriggerFor"],["name","hero-chevron-up-down",1,"text-icons-subtle","pt-0.5","text-sm"],[1,"no-width-limit","w-[120px]"],[1,"hover:bg-mspot-neutral-100","flex","w-full","items-center","justify-between","gap-2","rounded-lg","px-3","py-2.5","text-left","text-sm",3,"text-primary"],[1,"hover:bg-mspot-neutral-100","flex","w-full","items-center","justify-between","gap-2","rounded-lg","px-3","py-2.5","text-left","text-sm",3,"click"],["name","hero-check"],["type","button",1,"btn-primary","text-mspot-white","flex","cursor-pointer","items-center","justify-center","rounded-lg","p-3",3,"click"],["name","hero-plus","aria-hidden","true",1,"rounded-full","text-sm"],["itemSize","80","minBufferPx","500","maxBufferPx","800",3,"scroll"],[3,"id","openedId","actions","forcePrimaryBg","setOpenItem","actionTrigger",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"setOpenItem","actionTrigger","id","openedId","actions","forcePrimaryBg"],[3,"openChatModal","isActiveChat","chatSummaryItem"]],template:function(a,o){a&1&&gv$1(0,Bg,11,4,"ng-container",1);},dependencies:[ph,le$9,ch,ln$5,G$9,sn$5,Lt$7,ei$4,li$4,ai$4,yt$a,gt$5],encapsulation:2});}}return e})();function kg(e,r){if(e&1){let t=fM();ta$3(0,"div",10)(1,"button",14),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.conversationSearchText.set(""))}),QM(2),Pd$1()();}if(e&2){let t=yM(2).$implicit;jv$1("@expandCollapse",void 0),uT(2),Gd$1(" ",t("memberChat.cancel")," ");}}function Eg(e,r){if(e&1){let t=fM();ta$3(0,"div",8)(1,"mspot-search-field",9),Zv$1("searchTextChange",function(o){sh$1(t);let i=yM(2);return ah$1(i.conversationSearchText.set(o))}),Pd$1(),eM$1(2,kg,3,2,"div",10),Pd$1(),ta$3(3,"div",8)(4,"button",11),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.toggleGlobalSearch())}),Vv$1(5,"ng-icon",12),ta$3(6,"span",13),QM(7),Pd$1()()();}if(e&2){let t=yM().$implicit,a=yM();uT(),jv$1("hasMaxWidth",false)("isLoading",a.isLoading())("separateClearBtn",true)("searchText",a.conversationSearchText())("placeholderKey","memberChat.search.placeholder.conversation"),uT(),tM$1(a.conversationSearchText()?2:-1),uT(5),Gd$1(" ",t("memberChat.search.placeholder.global")," ");}}function Dg(e,r){if(e&1&&(ta$3(0,"div",2),Vv$1(1,"ng-icon",15),ta$3(2,"p"),QM(3),Pd$1()()),e&2){let t=yM().$implicit;uT(3),yD(t("memberChat.modeHint.moderatorsOnly"));}}function Fg(e,r){if(e&1){let t=fM();ta$3(0,"mspot-chat-search-panel",16),Zv$1("searchQueryChange",function(o){sh$1(t);let i=yM(2);return ah$1(i.onGlobalSearchQueryChange(o))})("loadMore",function(){sh$1(t);let o=yM(2);return ah$1(o.loadMoreGlobalResults())})("closeSearch",function(){sh$1(t);let o=yM(2);return ah$1(o.toggleGlobalSearch())})("selectResult",function(o){sh$1(t);let i=yM(2);return ah$1(i.openChatAtMessage.emit(o))}),Pd$1();}if(e&2){let t=yM(2);jv$1("hits",t.globalSearchHits())("isLoading",t.isGlobalSearchLoading())("isFetchingMore",t.isGlobalSearchFetchingMore())("hasMore",t.hasMoreGlobalSearchResults())("isTruncated",t.isGlobalSearchTruncated())("searchQuery",t.debouncedGlobalSearch());}}function Ig(e,r){if(e&1){let t=fM();ta$3(0,"mspot-chat-summary-list",17),Zv$1("loadMoreChats",function(){sh$1(t);let o=yM(2);return ah$1(o.loadMore())})("readFilterChange",function(o){sh$1(t);let i=yM(2);return ah$1(i.conversationReadState.set(o))})("closeModal",function(){sh$1(t);let o=yM(2);return ah$1(o.closeModal.emit())})("removeChat",function(o){sh$1(t);let i=yM(2);return ah$1(i.removeChatAction(o))})("openMemberSearch",function(){sh$1(t);let o=yM(2);return ah$1(o.manageMemberSearch())})("openChatModal",function(o){sh$1(t);let i=yM(2);return ah$1(i.openChat(o))}),Pd$1();}if(e&2){let t=yM(2);jv$1("hasMoreItems",t.hasMore())("showActions",true)("chatSummaries",t.memberChats())("selectedFilter",t.conversationReadState())("activeChatId",t.activeChat()?.chatId)("canStartChat",t.canStartChat());}}function Ng(e,r){if(e&1&&(ta$3(0,"aside",1),eM$1(1,Eg,8,7),eM$1(2,Dg,4,1,"div",2),ta$3(3,"div",3),eM$1(4,Fg,1,6,"mspot-chat-search-panel",4)(5,Ig,1,6,"mspot-chat-summary-list",5),Pd$1(),ta$3(6,"div",6),Vv$1(7,"mspot-chat-member-preview",7),Pd$1()()),e&2){let t=yM();uT(),tM$1(t.isGlobalSearchMode()?-1:1),uT(),tM$1(!t.isGlobalSearchMode()&&!t.canStartChat()?2:-1),uT(2),tM$1(t.isGlobalSearchMode()?4:5),uT(3),jv$1("userName",t.userName())("avatarUrl",t.userAvatarUrl())("showState",true)("isOnline",true);}}var vh=(()=>{class e{constructor(){this._chatTanstackService=g$k(_t$6),this.canStartChat=this._chatTanstackService.canStartChat,this.userName=X8(""),this.userAvatarUrl=X8(),this.isMobile=X8(),this.activeChat=X8(null),this.conversationSearchText=On$7(""),this.conversationReadState=On$7(D$c.ALL),this._globalSearchMode=On$7(false),this._globalSearchText=On$7(""),this.isGlobalSearchMode=this._globalSearchMode.asReadonly(),this.debouncedGlobalSearch=YG(ZG(this._globalSearchText).pipe(up$1(j1.SEARCH_DEBOUNCE_MS)),{initialValue:""}),this._globalSearchQuery=this._chatTanstackService.createGlobalSearchInfiniteQuery(this.debouncedGlobalSearch),this.globalSearchHits=qd$1(()=>this._chatTanstackService.getFlattenedSearchHits(this._globalSearchQuery.data())),this.isGlobalSearchLoading=qd$1(()=>this._globalSearchQuery.isLoading()),this.isGlobalSearchFetchingMore=qd$1(()=>this._globalSearchQuery.isFetchingNextPage()),this.hasMoreGlobalSearchResults=qd$1(()=>this._globalSearchQuery.hasNextPage()||false),this.isGlobalSearchTruncated=qd$1(()=>this._globalSearchQuery.data()?.pages.some(t=>t.truncated===true)??false),this.mergedControls=YG(_I([ZG(this.conversationSearchText),ZG(this.conversationReadState)]
2737).pipe(up$1(j1.SEARCH_DEBOUNCE_MS),st$c(([t,a])=>({query:t,filter:a}))),{initialValue:{query:"",filter:D$c.ALL}}),this.removeChat=J8(),this.openDrawer=J8(),this.openChatModal=J8(),this.closeModal=J8(),this.openChatAtMessage=J8(),this._chatsInfiniteQuery=this._chatTanstackService.createUserChatsInfiniteQuery(this.mergedControls),this.memberChats=qd$1(()=>this._chatTanstackService.getFlattenedData(this._chatsInfiniteQuery.data())),this.isLoading=qd$1(()=>this._chatsInfiniteQuery.isLoading()||this._chatsInfiniteQuery.isFetchingNextPage()),this.hasMore=qd$1(()=>this._chatsInfiniteQuery.hasNextPage()||false);}removeChatAction(t){this.removeChat.emit({chatId:t.chatId,partnerName:t.displayPartnerName??"",partnerPhoto:t.displayPartnerAvatarUrl??""});}loadMore(){this.hasMore()&&!this._chatsInfiniteQuery.isFetchingNextPage()&&this._chatsInfiniteQuery.fetchNextPage();}openChat(t){this.activeChat()?.chatId!==t?.chatId&&(this.conversationReadState()===D$c.UNREAD&&t&&this._chatTanstackService.clearUnreadList(t),this.openChatModal.emit(t));}manageMemberSearch(){this.conversationSearchText.set(""),this.conversationReadState.set(D$c.ALL),this.openDrawer.emit();}toggleGlobalSearch(){let t=!this._globalSearchMode();this._globalSearchMode.set(t),t||this._globalSearchText.set("");}onGlobalSearchQueryChange(t){this._globalSearchText.set(t);}loadMoreGlobalResults(){this.hasMoreGlobalSearchResults()&&!this._globalSearchQuery.isFetchingNextPage()&&this._globalSearchQuery.fetchNextPage();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-conversation-container"]],hostAttrs:[1,"overflow-hidden"],inputs:{userName:[1,"userName"],userAvatarUrl:[1,"userAvatarUrl"],isMobile:[1,"isMobile"],activeChat:[1,"activeChat"]},outputs:{removeChat:"removeChat",openDrawer:"openDrawer",openChatModal:"openChatModal",closeModal:"closeModal",openChatAtMessage:"openChatAtMessage"},decls:1,vars:0,consts:[["class","border-borders-secondary bg-backgrounds-surface-raised sm:bg-backgrounds-canvas flex h-full flex-col overflow-hidden md:border-r",4,"transloco"],[1,"border-borders-secondary","bg-backgrounds-surface-raised","sm:bg-backgrounds-canvas","flex","h-full","flex-col","overflow-hidden","md:border-r"],[1,"border-borders-secondary","text-text-default","mx-3","mt-3","flex","items-start","gap-2","rounded-md","border","px-3","py-2","text-xs"],[1,"min-h-0","flex-1"],["placeholderKey","memberChat.search.placeholder.global",1,"h-full",3,"hits","isLoading","isFetchingMore","hasMore","isTruncated","searchQuery"],[3,"hasMoreItems","showActions","chatSummaries","selectedFilter","activeChatId","canStartChat"],[1,"border-borders-secondary","bg-backgrounds-canvas","flex","h-[80px]","items-center","justify-center","border-t"],[3,"userName","avatarUrl","showState","isOnline"],[1,"border-borders-secondary","flex","h-[80px]","items-center","justify-center","border-b","px-3","py-2"],[1,"flex-1",3,"searchTextChange","hasMaxWidth","isLoading","separateClearBtn","searchText","placeholderKey"],[1,"ml-2","flex","items-center","justify-center","overflow-hidden"],["type","button",1,"border-form-select-borderPrimary","relative","flex","h-10","flex-1","cursor-pointer","items-center","rounded-lg","border","bg-[var(--search-field-bg,var(--white))]","text-left",3,"click"],["name","heroMagnifyingGlass",1,"absolute","left-3","text-gray-900"],[1,"text-text-default","pl-10","text-sm"],[1,"text-sm",3,"click"],["name","hero-information-circle","aria-hidden","true",1,"text-icons-subtle","mt-0.5","shrink-0","text-sm"],["placeholderKey","memberChat.search.placeholder.global",1,"h-full",3,"searchQueryChange","loadMore","closeSearch","selectResult","hits","isLoading","isFetchingMore","hasMore","isTruncated","searchQuery"],[3,"loadMoreChats","readFilterChange","closeModal","removeChat","openMemberSearch","openChatModal","hasMoreItems","showActions","chatSummaries","selectedFilter","activeChatId","canStartChat"]],template:function(a,o){a&1&&gv$1(0,Ng,8,7,"aside",0);},dependencies:[Ta,mr,le$9,q0,vr,yt$a],encapsulation:2,data:{animation:[_("expandCollapse",[p$2(":enter",[d$1({width:"0px",opacity:0}
2737),f$1("200ms ease-out",d$1({width:"60px",opacity:1}))]),p$2(":leave",[f$1("200ms ease-in",d$1({width:"0px",opacity:0}))])])]}});}}return e})();var Pg=(e,r)=>r.id;function Rg(e,r){if(e&1&&Vv$1(0,"mspot-empty-state",3),e&2){let t=yM(3).$implicit;jv$1("description",t("memberChat.members.empty"));}}function Og(e,r){if(e&1&&Vv$1(0,"mspot-empty-state",4),e&2){let t=yM(3).$implicit;jv$1("description",t("memberChat.members.startSearch"));}}function qg(e,r){if(e&1&&eM$1(0,Rg,1,1,"mspot-empty-state",3)(1,Og,1,1,"mspot-empty-state",4),e&2){let t=yM(3);tM$1((t.searchText()?.length??0)>=3?0:1);}}function $g(e,r){if(e&1&&eM$1(0,qg,2,1),e&2){let t=yM(2);tM$1(t.isLoading()?-1:0);}}function Ug(e,r){if(e&1){let t=fM();ta$3(0,"button",10),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM(3);return ah$1(i.selectMember.emit(o.id))}),Vv$1(1,"mspot-chat-member-preview",11),Pd$1();}if(e&2){let t=r.$implicit;uT(),jv$1("userName",t.username)("avatarUrl",t.profilePictureUrl)("id",t.id);}}function jg(e,r){e&1&&(ta$3(0,"div",9),Vv$1(1,"mspot-load-spinner-new",12),Pd$1());}function Gg(e,r){if(e&1&&(ta$3(0,"div",1)(1,"div",5),Vv$1(2,"ng-icon",6),ta$3(3,"p",7),QM(4),Pd$1()(),oM(5,Ug,2,3,"button",8,Pg),eM$1(7,jg,2,0,"div",9),Pd$1()),e&2){let t=yM().$implicit,a=yM();uT(4),yD(t("memberChat.members.title")),uT(),iM(a.members()),uT(2),tM$1(a.isFetchingMore()?7:-1);}}function Qg(e,r){if(e&1&&(ta$3(0,"div",2),Vv$1(1,"mspot-load-spinner-new",13),Pd$1()),e&2){let t=yM().$implicit;uT(),jv$1("loadingText",t("common.loading"));}}function Zg(e,r){if(e&1&&(Hd$1(0),eM$1(1,$g,1,1)(2,Gg,8,2,"div",1),eM$1(3,Qg,2,1,"div",2),$d$1()),e&2){let t=yM();uT(),tM$1(t.members()?.length?2:1),uT(2),tM$1(t.isLoading()?3:-1);}}var dh=(()=>{class e{constructor(){this.members=X8([]),this.isLoading=X8(false),this.searchText=X8(),this.isFetchingMore=X8(false),this.selectMember=J8();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-member-list"]],inputs:{members:[1,"members"],isLoading:[1,"isLoading"],searchText:[1,"searchText"],isFetchingMore:[1,"isFetchingMore"]},outputs:{selectMember:"selectMember"},decls:1,vars:0,consts:[[4,"transloco"],[1,"scrollbar","w-full"],[1,"mt-14","flex","w-full","justify-around"],["variant","search",3,"description"],["size","sm","icon","heroUserGroup",3,"description"],[1,"text-text-default","flex","items-center","justify-start","gap-x-2","p-4"],["name","hero-user-group",1,"text-md","rounded-full"],[1,"text-sm"],["type","button",1,"hover:bg-mspot-neutral-100","w-full"],[1,"flex","justify-center","py-3"],["type","button",1,"hover:bg-mspot-neutral-100","w-full",3,"click"],[3,"userName","avatarUrl","id"],["size","h-4 w-4"],[3,"loadingText"]],template:function(a,o){a&1&&gv$1(0,Zg,4,2,"ng-container",0);},dependencies:[Ta,le$9,v$5,yt$a,gt$5],encapsulation:2});}}return e})();var Wg=["scrollContainer"];function Kg(e,r){if(e&1&&(ta$3(0,"div",8),Vv$1(1,"ng-icon",13),ta$3(2,"p"),QM(3),Pd$1()()),e&2){let t=yM(2).$implicit;uT(3),yD(t(r));}}function Xg(e,r){if(e&1){let t=fM();eM$1(0,Kg,4,1,"div",8),ta$3(1,"div",9)(2,"mspot-search-field",10),Zv$1("searchTextChange",function(o){sh$1(t);let i=yM(2);return ah$1(i.memberSearchText.set(o))}),Pd$1()(),ta$3(3,"div",11,0),Zv$1("scroll",function(o){sh$1(t);let i=yM(2);return ah$1(i.onScroll(o))}),ta$3(5,"mspot-chat-member-list",12),Zv$1("selectMember",function(o){sh$1(t);let i=yM(2);return ah$1(i.selectMemberAction(o))}),Pd$1()();}if(e&2){let t,a=yM(2);tM$1((t=a.searchHintKey())?0:-1,t),uT(2),jv$1("isLoading",a.isLoading())("hasMaxWidth",false)("searchText",a.memberSearchText())("placeholderKey","memberChat.search.placeholder.member"),uT(3),jv$1("searchText",a.memberSearchText())("members",a.members())("isLoading",a.isLoading())("isFetchingMore",a.isFetchingMore());}}function Yg(e,r){if(e&1&&(ta$3(0,"div",7),Vv$1(1,"ng-icon",14),ta$3(2,"p",15),QM(3),Pd$1(),ta$3(4,"p",16),QM(5),Pd$1()()),e&2){let t=yM().$implicit;uT(3),Gd$1(" ",t("memberChat.cannotStart.title")," "),uT(2),Gd$1(" ",t("memberChat.cannotStart.description")," ");}}function Jg(e,r){if(e&1){let t=fM();ta$3(0,"section",2)(1,"div",3)(2,"button",4),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.closeDrawerAction())}),Vv$1(3,"ng-icon",5),ta$3(4,"p",6),QM(5),Pd$1()()(),eM$1(6,Xg,6,9)(7,Yg,6,2,"div",7),Pd$1();}if(e&2){let t=r.$implicit,a=yM();uT(5),yD(t("memberChat.drawer.startNewConversation")),uT(),tM$1(a.canStartChat()?6:7);}}var gh=(()=>{class e{constructor(){this._chatTanstackService=g$k(_t$6),this.closeDrawer=J8(),this.selectMember=J8(),this._scrollContainer=t3("scrollContainer"),this.memberSearchText=On$7(""),this.canStartChat=this._chatTanstackService.canStartChat,this.searchHintKey=qd$1(()=>
2737{if(this._chatTanstackService.isModerator())return null;switch(this._chatTanstackService.chatMode()){case "members-via-access":return "memberChat.modeHint.search.membersViaAccess";case "open":return "memberChat.modeHint.search.open";default:return null}}),this._membersSearchQuery=this._chatTanstackService.searchMembersInfiniteQuery(this.memberSearchText),this.members=qd$1(()=>this._membersSearchQuery.data()?.pages.flatMap(t=>t.docs)??[]),this.isLoading=qd$1(()=>this._membersSearchQuery.isLoading()),this.hasNextPage=qd$1(()=>this._membersSearchQuery.hasNextPage()),this.isFetchingMore=qd$1(()=>this._membersSearchQuery.isFetchingNextPage()),l3(()=>{this.members();let t=this.hasNextPage(),a=this.isFetchingMore();if(!t||a)return;let o=this._scrollContainer()?.nativeElement;o&&o.scrollHeight<=o.clientHeight&&this._membersSearchQuery.fetchNextPage();});}onScroll(t){if(!this.hasNextPage()||this.isFetchingMore())return;let a=t.target,{scrollTop:o,scrollHeight:i,clientHeight:d}=a;i-o-d<d*(1-j1.SCROLL_LOAD_THRESHOLD)&&this._membersSearchQuery.fetchNextPage();}closeDrawerAction(){this.closeDrawer.emit(),this.memberSearchText.set("");}selectMemberAction(t){this.selectMember.emit(t),this.memberSearchText.set("");}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-member-container"]],viewQuery:function(a,o){a&1&&eD(o._scrollContainer,Wg,5),a&2&&bM();},hostAttrs:[1,"overflow-hidden","h-full"],outputs:{closeDrawer:"closeDrawer",selectMember:"selectMember"},decls:1,vars:0,consts:[["scrollContainer",""],["class","flex h-full flex-col",4,"transloco"],[1,"flex","h-full","flex-col"],[1,"border-borders-secondary","bg-backgrounds-surface-raised","flex","items-center","justify-start","border-b","px-3","py-5"],[1,"text-icons-default","flex","cursor-pointer","items-center","justify-start","gap-2",3,"click"],["name","hero-chevron-left",1,"rounded-full","text-sm"],[1,"text-sm"],[1,"flex","flex-1","flex-col","items-center","justify-center","gap-3","px-6","py-10","text-center"],[1,"border-borders-secondary","text-text-default","bg-backgrounds-surface-raised","flex","items-start","gap-2","border-b","px-3","py-2","text-xs"],[1,"border-borders-secondary","bg-backgrounds-surface-raised","sm:bg-backgrounds-canvas","flex","h-[80px]","items-center","justify-center","border-b","px-3","py-2"],[1,"w-full",3,"searchTextChange","isLoading","hasMaxWidth","searchText","placeholderKey"],[1,"min-h-0","flex-1","overflow-y-auto",3,"scroll"],[3,"selectMember","searchText","members","isLoading","isFetchingMore"],["name","hero-information-circle","aria-hidden","true",1,"text-icons-subtle","mt-0.5","shrink-0","text-sm"],["name","hero-chat-bubble-left-right",1,"text-icons-subtle","text-4xl"],[1,"text-text-strong","text-base","font-medium"],[1,"text-text-default","text-sm"]],template:function(a,o){a&1&&gv$1(0,Jg,8,2,"section",1);},dependencies:[le$9,q0,dh,yt$a],encapsulation:2});}}return e})();var dr=(()=>{class e{constructor(){this._queryClient=g$k(_$d),this._memberAreaQuery=g$k(f$8),this._schoolUserService=g$k(Oe$5),this._schoolId=YG(this._memberAreaQuery.selectSchoolId()),this._currentUser=this._schoolUserService.getCurrentUser(),this.handleMessageEvent=t=>{if(t.payload)switch(t.type){case "new_chat_message":this._updateChatMessages(t.payload.message);break;case "peer_presence_snapshot":this._updatePeerPresenceData(t);break;case "peer_presence_changed":this._updatePeerPresenceData(t);break}},this.handleGlobalEvent=t=>{if(t.payload)switch(t.type){case "chat_summary_updated":this._updateChatSummary(t.payload);break;case "global_unread_count_updated":this._updateGlobalCounter(t.payload.newTotalUnreadMessages);break}};}_updatePeerPresenceData(t){if(!t.chatId||!t.schoolId||!t.payload)return;let{chatId:a,schoolId:o,payload:i}=t;this._queryClient.setQueryData([a$6.chat,o,a],d=>{if(!d)return d;let f=d.participants.findIndex(d0=>d0.id===i.uid);if(f===-1)return d;let y=d.participants[f],L=i.isOnline??false,R=i.lastActiveAt?new Date(i.lastActiveAt):y.lastSeenAt;if(y.isOnline===L&&y.lastSeenAt===R)return d;let Q=[...d.participants];return Q[f]=s$e(r$d({},y),{isOnline:L,lastSeenAt:R}),s$e(r$d({},d),{participants:Q})});}_updateChatSummary(t){let{chatId:a,schoolId:o,uid:i,createdById:d}=t;
2737this._hasChatObservers(a,o)||this._queryClient.invalidateQueries({queryKey:[a$6.chatMessages,o,a]}),this._queryClient.getQueryData([a$6.chat,o,a])&&this._queryClient.setQueryData([a$6.chat,o,a],y=>y&&s$e(r$d({},y),{summary:t})),!(i!==d&&!t?.lastMessageTimestamp)&&this._queryClient.setQueriesData({queryKey:[a$6.chatList,o],exact:false},y=>{if(!y?.pages)return y;let L=y.pages.flat().find(d0=>d0.chatId===t.chatId);return !(y.pages?.[0]?.[0]?.chatId===t?.chatId)&&(!L||L?.lastMessageTimestamp!==t?.lastMessageTimestamp)?s$e(r$d({},y),{pages:[...Ht$5(y.pages,t)]}):s$e(r$d({},y),{pages:y.pages.map(d0=>d0.map(m0=>m0.chatId===t.chatId?t:m0))})});}_updateChatMessages(t){this._queryClient.setQueryData([a$6.chatMessages,t.schoolId,t.chatId],a=>{if(!a)return {pages:[[t]],pageParams:[0]};let{messageId:o,pageIndex:i}=Vt$3(a.pages);return s$e(r$d({},a),{pages:a.pages.map((d,f)=>{let L=i!==-1&&f===i?Zt$4(d,o):d;return f===0?d.some(Q=>Q.id===t.id)?L:[t,...L]:L})})});}_updateGlobalCounter(t){let a=this._schoolId(),o=this._currentUser()?.uid;!a||!o||this._queryClient.setQueryData([a$6.counter,a,o],()=>({totalUnreadMessages:t}));}_hasChatObservers(t,a){let o=[a$6.chatMessages,a,t];return (this._queryClient.getQueryCache().find({queryKey:o})?.getObserversCount()??0)>0}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var tu=["chatInput"],eu=e=>({name:e});function au(e,r){if(e&1){let t=fM();ta$3(0,"div",2)(1,"div",3)(2,"textarea",4,0),Zv$1("keydown.enter",function(o){sh$1(t);let i=yM();return ah$1(i.onEnterKeyDown(o))})("keyup.enter",function(){sh$1(t);let o=yM();return ah$1(o.handleEnterKey())})("focus",function(){sh$1(t);let o=yM();return ah$1(o.onTextareaFocus())}),Pd$1(),iS(),Pd$1(),ta$3(4,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.handleSendMessage())}),Vv$1(5,"ng-icon",6),Pd$1()();}if(e&2){let t=r.$implicit,a=yM();uT(2),jv$1("placeholder",t("memberChat.input.placeholder",fN(5,eu,a.participantName())))("formControl",a.userInputFormControl),Pv$1("aria-label",t("memberChat.input.label")),aS(),uT(2),jv$1("disabled",!a.userInputFormControl.value?.trim()?.length||a.userInputFormControl.invalid),Pv$1("aria-label",t("memberChat.input.sendButton"));}}var uh=(()=>{class e{constructor(){this.sendMessage=J8(),this.mobileTextareaFocused=J8(),this.participantInfo=X8(),this.chatInput=t3("chatInput",{read:gt$f}),this._isMobile=YG(g$k(a),{initialValue:false}),this.participantName=qd$1(()=>this.participantInfo()?.displayName??""),this.isDisabledParticipant=qd$1(()=>this.participantInfo()?.isUnavailable??false),this.userInputFormControl=new B$k("",{nonNullable:true,validators:[Ce$8.required,Ce$8.maxLength(j1.MESSAGE_MAX_LENGTH)]}),Es$3(()=>{if(this._isMobile())return;let t=this.chatInput()?.nativeElement;this.participantName()?t?.focus():t?.blur();}),Es$3(()=>{this.participantInfo()?.isUnavailable?this.userInputFormControl.disable({emitEvent:false}):this.userInputFormControl.enable({emitEvent:false});});}handleSendMessage(){let t=this.userInputFormControl.value?.trim()||"";!t||this.userInputFormControl.invalid||this.isDisabledParticipant()||(this.userInputFormControl.setValue(""),this.sendMessage.emit(t));}handleEnterKey(){this._isMobile()||this.handleSendMessage();}onEnterKeyDown(t){this._isMobile()||this.userInputFormControl.value?.trim()?.length>0&&t.preventDefault();}onTextareaFocus(){this._isMobile()&&this.mobileTextareaFocused.emit();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-input-area"]],viewQuery:function(a,o){a&1&&eD(o.chatInput,tu,5,gt$f),a&2&&bM();},hostAttrs:[1,"w-full"],inputs:{participantInfo:[1,"participantInfo"]},outputs:{sendMessage:"sendMessage",mobileTextareaFocused:"mobileTextareaFocused"},decls:1,vars:0,consts:[["chatInput",""],["class","flex items-center justify-between gap-x-2 px-2 pb-2 md:px-4",4,"transloco"],[1,"flex","items-center","justify-between","gap-x-2","px-2","pb-2","md:px-4"],[1,"border-borders-primary","bg-backgrounds-surface-raised","flex-1","overflow-hidden","rounded-lg","border","shadow-md","focus-within:shadow-lg"],["rows","1",1,"bg-backgrounds-surface-raised","text-form-input-text","placeholder:text-form-input-placeholder","w-full","resize-none","border-none","p-3","text-sm","font-medium","placeholder:text-sm","placeholder:font-normal","focus:outline-none","focus:ring-0",3,"keydown.enter","keyup.enter","focus","placeholder","formControl"],["type","submit",1,"text-text-inverse","bg-backgrounds-fill-neutral-strong","hover:bg-backgrounds-fill-neutral-strongHovered","disabled:bg-backgrounds-fill-neutral-disabled","disabled:text-text-disabled","flex","size-12","items-center","justify-center","rounded-lg","transition-colors",3,"click","disabled"],["name","hero-paper-airplane","aria-hidden","true",1,"text-lg"]],template:function(a,o){a&1&&gv$1(0,au,6,7,"div",1);},dependencies:[oi$5,Qe$b,Xn$7,Vn$7,le$9,yt$a],encapsulation:2});}}return e})();function ou(e,r){e&1&&Vv$1(0,"div",3);}function ru(e,r){if(e&1){let t=fM();ta$3(0,"div",7)(1,"p",8),Vv$1(2,"ng-icon",9),QM(3),Pd$1(),ta$3(4,"div",10)(5,"button",11),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.retryMessage())}),Vv$1(6,"ng-icon",12),Pd$1(),ta$3(7,"button",13),Zv$1("click",function(){sh$1(t);let o=yM(2);
2737return ah$1(o.undoMessage())}),Vv$1(8,"ng-icon",14),Pd$1()()();}if(e&2){let t=yM().$implicit,a=yM();uT(3),Gd$1(" ",t("memberChat.errors.messageFailed")," "),uT(2),jv$1("disabled",a.isRetrying());}}function nu(e,r){if(e&1&&(Hd$1(0),ta$3(1,"div",1)(2,"div",2),eM$1(3,ou,1,0,"div",3),ta$3(4,"div",4)(5,"p",5),QM(6),Pd$1(),ta$3(7,"p",6),QM(8),EN(9,"date"),Pd$1()()()(),eM$1(10,ru,9,2,"div",7),$d$1()),e&2){let t=yM();uT(),iD("message-highlight",t.highlighted())("justify-end",t.isMyMessage())("justify-start",!t.isMyMessage())("error",t.message()?.error),Pv$1("data-message-id",t.message().id),uT(),iD("bg-primary",t.isMyMessage())("rounded-br-none",t.isMyMessage())("text-white",t.isMyMessage())("bg-backgrounds-canvas",!t.isMyMessage())("text-text-default",!t.isMyMessage())("rounded-bl-none",!t.isMyMessage()),uT(),tM$1(t.isMyMessage()?3:-1),uT(3),Gd$1(" ",t.message().content," "),uT(),iD("text-white",t.isMyMessage())("text-opacity-80",t.isMyMessage())("text-text-subtle",!t.isMyMessage()),uT(),Gd$1(" ",wN(9,31,t.message().createdAt,"HH:mm")," "),uT(2),tM$1(t.message()?.error?10:-1);}}var wh=(()=>{class e{constructor(){this.currentUserId=X8.required(),this.message=X8.required(),this.highlighted=X8(false),this.isRetrying=On$7(false),this._chatTanstackService=g$k(_t$6),this.isMyMessage=qd$1(()=>this.currentUserId()===this.message().senderId);}retryMessage(){if(this.isRetrying())return;let t=this.message();if(!t.error)return;this.isRetrying.set(true);let a={chatId:t.chatId,content:t.content,type:t.type,metadata:t.metadata};this.undoMessage(),this._chatTanstackService.sendMessageMutation.mutate(a,{onSuccess:()=>{this.isRetrying.set(false);},onError:()=>{this.isRetrying.set(false);}});}undoMessage(){let t=this.message();t.error&&this._chatTanstackService.undoErrorMessage(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-message"]],inputs:{currentUserId:[1,"currentUserId"],message:[1,"message"],highlighted:[1,"highlighted"]},decls:1,vars:0,consts:[[4,"transloco"],[1,"mb-2","flex","items-end","gap-2"],[1,"relative","max-w-[80%]","rounded-2xl","px-4","py-2"],[1,"absolute","inset-0","rounded-2xl","rounded-br-none","bg-black/60"],[1,"z-1","relative"],[1,"whitespace-pre-line","break-words","text-sm","leading-relaxed"],[1,"mt-1","text-right","text-xs"],[1,"flex","flex-col","items-end","gap-1"],[1,"text-text-danger","flex","items-center","gap-1","text-xs"],["name","hero-information-circle"],[1,"flex","gap-1"],[1,"bg-backgrounds-canvas","flex","rounded-full","p-1",3,"click","disabled"],["name","hero-arrow-path-rounded-square"],[1,"bg-backgrounds-canvas","flex","rounded-full","p-1",3,"click"],["name","hero-trash",1,"text-text-danger"]],template:function(a,o){a&1&&gv$1(0,nu,11,34,"ng-container",0);},dependencies:[kx$1,le$9,yt$a,Nx$1],styles:["@keyframes _ngcontent-%COMP%_highlight-pulse{0%{background-color:#3b82f626}to{background-color:transparent}}[_nghost-%COMP%] .message-highlight[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_highlight-pulse 2s ease-out}"]});}}return e})();var iu=["scrollContainer"],su=e=>({name:e}),lu=e=>({counter:e}),cu=(e,r)=>r.date,hu=(e,r)=>r.id;function pu(e,r){if(e&1&&Vv$1(0,"mspot-empty-state",2),e&2){let t=yM().$implicit,a=yM();jv$1("title",t("memberChat.notStarted.newChat",fN(1,su,a.participantName())));}}function mu(e,r){if(e&1&&(ta$3(0,"div",5),QM(1),Pd$1()),e&2){let t=yM(2).$implicit;uT(),Gd$1(" ",t("memberChat.disabledChat")," ");}}function vu(e,r){if(e&1&&(ta$3(0,"span",10),QM(1),Pd$1()),e&2){let t=yM(4).$implicit,a=yM();uT(),Gd$1(" ",t("memberChat.unreadMessages",fN(1,lu,a.unreadCount()))," ");}}function du(e,r){if(e&1&&(Vv$1(0,"mspot-chat-message",9),eM$1(1,vu,2,3,"span",10)),e&2){let t=r.$implicit,a=yM(4);jv$1("currentUserId",a.currentUserId())("message",t)("highlighted",a.highlightedMessageId()===t.id),uT(),tM$1(t.metadata?.firstUnreadMessage&&a.unreadCount()>0?1:-1);}}function gu(e,r){if(e&1&&(ta$3(0,"div",6),oM(1,du,2,4,null,null,hu),ta$3(3,"div",8),QM(4),EN(5,"chatDate"),Pd$1()()),e&2){let t=r.$implicit,a=yM(3);uT(),iM(t.messages),uT(3),Gd$1(" ",wN(5,1,t.date,a.ChatDateMode.SUMMARY)," ");}}function uu(e,r){if(e&1){let t=fM();ta$3(0,"button",11),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.returnToLatest.emit())}),QM(1),Pd$1();}if(e&2){let t=yM(2).$implicit;uT(),Gd$1(" ",t("memberChat.returnToLatest")," ");}}function wu(e,r){if(e&1){let t=fM();ta$3(0,"div",3)(1,"div",4,0),Zv$1("scroll",function(){sh$1(t);let o=TM(2),i=yM(2);return ah$1(i.onScroll(o))}),eM$1(3,mu,2,1,"div",5),oM(4,gu,6,4,"div",6,cu),Pd$1(),eM$1(6,uu,2,1,"button",7),Pd$1();}if(e&2){let t=yM(2);uT(3),tM$1(t.isDisabledParticipant()?3:-1),uT(),iM(t.messageGroups()),uT(2),tM$1(t.isAnchorMode()?6:-1);}}function fu(e,r){if(e&1&&(Hd$1(0),eM$1(1,pu,1,3,"mspot-empty-state",2)(2,wu,7,2,"div",3),$d$1()),e&2){let t=yM();uT(),tM$1(t.messageGroups()?.length?2:1);}}var gr=(()=>{class e{constructor(){this.messageGroups=X8([]),this.participantInfo=X8(),this.currentUserId=X8.required(),this.unreadCount=X8.required(),this.hasMoreItems=X8(false),this.hasNewerItems=X8(false),this.highlightedMessageId=X8(null),this.isAnchorMode=X8(false),this.loadMoreMessages=J8(),this.loadNewerMessages=J8(),this.returnToLatest=J8(),this._elementRef=g$k(gt$f),this._injector=g$k(oe$e),this._scrollContainer=t3("scrollContainer"),this._savedScrollTop=null,this._savedScrollHeight=null,this.participantName=qd$1(()=>this.participantInfo()?.displayName??""),this.isDisabledParticipant=qd$1(()=>this.participantInfo()?.isUnavailable??false),this.ChatDateMode=U5,Es$3(()=>{let t=this.highlightedMessageId(),a=(this.messageGroups()?.length??0)>0;!t||!a||Xl$1(()=>{this.scrollToMessage(t);},{injector:this._injector});});}scrollToBottom(){let t=this._scrollContainer()?.nativeElement;t&&(t.scrollTop=0);}scrollToMessage(t){let a=this._scrollContainer()?.nativeElement,o=this._elementRef.nativeElement.querySelector(`[data-message-id="${CSS.escape(t)}"]`);if(!o||!a)return;let i=a.getBoundingClientRect(),d=o.getBoundingClientRect(),f=d.top-i.top-i.height/2+d.height/2;a.scrollBy({top:f,behavior:"smooth"});}saveScrollPosition(){let t=this._scrollContainer()?.nativeElement;t&&(this._savedScrollTop=t.scrollTop,this._savedScrollHeight=t.scrollHeight);}restoreScrollPosition(){let t=this._scrollContainer()?.nativeElement;if(!t||this._savedScrollHeight===null)return;let a=t.scrollHeight-this._savedScrollHeight;t.scrollTop=(this._savedScrollTop??0)-a,this._savedScrollTop=null,this._savedScrollHeight=null;}onScroll(t){this._nearToTop(t)&&this.hasMoreItems()&&this.loadMoreMessages.emit(),this._nearToBottom(t)&&this.hasNewerItems()&&this.loadNewerMessages.emit();}_nearToTop(t){let{scrollTop:a,scrollHeight:o,clientHeight:i}=t,d=a/(o-i);return Math.abs(d)>=j1.SCROLL_LOAD_THRESHOLD}_nearToBottom(t){let{scrollTop:a,scrollHeight:o,clientHeight:i}=t;return o>i?Math.abs(a)<=j1.SCROLL_LOAD_NEWER_THRESHOLD:false}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-message-list"]],viewQuery:function(a,o){a&1&&eD(o._scrollContainer,iu,5),a&2&&bM();},inputs:{messageGroups:[1,"messageGroups"],participantInfo:[1,"participantInfo"],currentUserId:[1,"currentUserId"],unreadCount:[1,"unreadCount"],hasMoreItems:[1,"hasMoreItems"],hasNewerItems:[1,"hasNewerItems"],highlightedMessageId:[1,"highlightedMessageId"],isAnchorMode:[1,"isAnchorMode"]},outputs:{loadMoreMessages:"loadMoreMessages",loadNewerMessages:"loadNewerMessages",returnToLatest:"returnToLatest"}
2737,decls:1,vars:0,consts:[["scrollContainer",""],[4,"transloco"],["icon","heroChatBubbleLeftRight",1,"h-full",3,"title"],[1,"relative","h-full","w-full"],[1,"scrollbar","flex","h-full","w-full","flex-col-reverse","overflow-y-auto","p-4",3,"scroll"],[1,"bg-backgrounds-fill-information-subtle","text-text-default","border-borders-information","mx-auto","mb-1","mt-2","flex","min-w-[128px]","justify-center","rounded-lg","border","px-2","py-1","text-sm","shadow-sm"],[1,"flex","flex-col-reverse"],["type","button",1,"bg-primary","absolute","bottom-20","left-1/2","-translate-x-1/2","cursor-pointer","rounded-full","px-4","py-2","text-sm","text-white","shadow-lg"],[1,"text-text-default","backgrounds-surface-raised","border-borders-primary","mx-auto","mb-1","flex","min-w-[128px]","justify-center","rounded-lg","border","px-2","py-1","text-sm","shadow-sm"],[3,"currentUserId","message","highlighted"],[1,"border-borders-primary","text-text-default","mb-2","mt-1","border-b","border-t","py-3","text-center","text-sm","font-bold"],["type","button",1,"bg-primary","absolute","bottom-20","left-1/2","-translate-x-1/2","cursor-pointer","rounded-full","px-4","py-2","text-sm","text-white","shadow-lg",3,"click"]],template:function(a,o){a&1&&gv$1(0,fu,3,1,"ng-container",1);},dependencies:[wh,yt$a,gt$5,me],encapsulation:2});}}return e})();var fh=e=>new N$d(r=>{let t=new EventSource(e);return t.onmessage=({data:a})=>{if(!(a==="a"||a==="ping"))try{let o=JSON.parse(a);r.next(o);}catch(o){console.log(o);}},t.onerror=a=>{let o=a.target;o.readyState===2&&r.error(o.readyState);},t.onopen=a=>{},()=>{t.close();}});var Cu=(e,r,t)=>{let a=r.replace(/^\/|\/$/g,"");return `${e}/sse/${a}?token=${t}`},Ch=(()=>{class e{constructor(){this._http=g$k(Ce$a),this._sseHost=g$k(OE),this._isAdmin=g$k(kE);}getStream(t,a,o){return this._createSseStream(t,a,o)}_createSseStream(t,a,o){let i=null;return MI(()=>yI(i)).pipe(Kf$1(d=>d?yI(d):this._getToken(a,o)),Ip$1(d=>i=d),Kf$1(d=>fh(Cu(this._sseHost,t,d))),mp$1({delay:()=>(i=null,yI(null).pipe(fp$1(2e4)))}))}_getToken(t,a){return this._http.get(`/${this._isAdmin?"token/admin":"token/client"}/${t}/${a}`,{host:this._sseHost}).pipe(st$c(o=>o.token))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ur=(()=>{class e{constructor(){this._sseStreamService=g$k(Ch);}getSchoolUserDataStream(t,a){return this._sseStreamService.getStream(`client/school-user-data/${t}/${a}`,t,a)}getCourseChapterDataStream(t,a,o){return this._sseStreamService.getStream(`admin/course-chapters/${t}/${o}`,t,a)}getGlobalChatDataStream(t,a){return this._sseStreamService.getStream(`user/events/${t}/${a}`,t,a)}getChatMessageStream(t,a,o){return this._sseStreamService.getStream(`chat/${t}/${o}/live`,t,a)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function xu(e,r){if(e&1&&(ta$3(0,"div",3),Vv$1(1,"mspot-load-spinner-new",4),Pd$1()),e&2){let t=yM(2).$implicit;uT(),jv$1("loadingText",t("common.loading"));}}function _u(e,r){if(e&1&&(ta$3(0,"div",13),QM(1),Vv$1(2,"ng-icon",18),Pd$1()),e&2){let t=yM(3).$implicit;jv$1("matTooltip",t("memberChat.block.cannotBlockAdmin")),uT(),Gd$1(" ",t("memberChat.block.title")," ");}}function bu(e,r){if(e&1){let t=fM();ta$3(0,"a",11),Zv$1("click",function(){sh$1(t);let o=yM(4);return ah$1(o.blockChatPartner())}),QM(1),Vv$1(2,"ng-icon",18),Pd$1();}if(e&2){let t=yM(3).$implicit;Pv$1("aria-label",t("memberChat.block.title")),uT(),Gd$1(" ",t("memberChat.block.title")," ");}}function Mu(e,r){if(e&1){let t=fM();ta$3(0,"mspot-chat-search-panel",19),Zv$1("searchQueryChange",function(o){sh$1(t);let i=yM(4);return ah$1(i.onSearchQueryChange(o))})("loadMore",function(){sh$1(t);let o=yM(4);return ah$1(o.loadMoreSearchResults())})("closeSearch",function(){sh$1(t);let o=yM(4);return ah$1(o.toggleSearch())})("selectResult",function(o){sh$1(t);let i=yM(4);return ah$1(i.onSearchResultSelect(o))}),Pd$1();}if(e&2){let t=yM(4);jv$1("hits",t.searchHits())("isLoading",t.isSearchLoading())("isFetchingMore",t.isSearchFetchingMore())("hasMore",t.hasMoreSearchResults())("totalMatchCount",t.searchTotalCount())("searchQuery",t.searchQuery());}}function Au(e,r){if(e&1&&(ta$3(0,"div",23),Vv$1(1,"ng-icon",25),QM(2),Pd$1()),e&2){let t=yM(4).$implicit;uT(2),Gd$1(" ",t("memberChat.block.blockedByOther")," ");}}function yu(e,r){if(e&1){let t=fM();ta$3(0,"mspot-chat-input-area",26),Zv$1("sendMessage",function(o){sh$1(t);let i=yM(5);return ah$1(i.sendMessageMutation(o))})("mobileTextareaFocused",function(){sh$1(t);let o=yM(5);return ah$1(o.onMobileInputFocused())}),Pd$1();}if(e&2){let t=yM(2);jv$1("participantInfo",t);}}function Vu(e,r){if(e&1){let t=fM();
2737ta$3(0,"div",20)(1,"mspot-chat-message-list",21),Zv$1("loadMoreMessages",function(){sh$1(t);let o=yM(4);return ah$1(o.loadMore())})("loadNewerMessages",function(){sh$1(t);let o=yM(4);return ah$1(o.loadNewer())})("returnToLatest",function(){sh$1(t);let o=yM(4);return ah$1(o.returnToLatest())}),Pd$1()(),ta$3(2,"div",22),eM$1(3,Au,3,1,"div",23)(4,yu,1,1,"mspot-chat-input-area",24),Pd$1();}if(e&2){let t=yM(),a=yM(3);uT(),jv$1("hasMoreItems",a.hasMore())("hasNewerItems",a.hasNewerMessages())("currentUserId",a.currentUserId())("messageGroups",a.groupedMessages())("participantInfo",t)("unreadCount",a.activeChat()?.unreadCount??0)("highlightedMessageId",a.highlightedMessageId())("isAnchorMode",a.isAnchorMode()),uT(2),tM$1(a.isBlockedByOther()?3:4);}}function zu(e,r){if(e&1){let t=fM();ta$3(0,"div",5)(1,"mspot-chat-member-preview",6),Zv$1("closeDrawer",function(){sh$1(t);let o=yM(3);return ah$1(o.closeDrawer.emit())})("openParticipantProfile",function(){sh$1(t);let o=yM(3);return ah$1(o.openParticipantProfile())}),Pd$1(),ta$3(2,"button",7),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.toggleSearch())}),Vv$1(3,"ng-icon",8),Pd$1(),ta$3(4,"button",9),Vv$1(5,"ng-icon",10),Pd$1(),ta$3(6,"mat-menu",null,0)(8,"a",11),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.openParticipantProfile())}),QM(9),Vv$1(10,"ng-icon",12),Pd$1(),eM$1(11,_u,3,2,"div",13)(12,bu,3,2,"a",14),ta$3(13,"button",15),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.removeChatWithMember())}),QM(14),Vv$1(15,"ng-icon",16),Pd$1()()(),eM$1(16,Mu,1,6,"mspot-chat-search-panel",17)(17,Vu,5,9);}if(e&2){let t=r,a=TM(7),o=yM(2).$implicit,i=yM();uT(),jv$1("counter",i.counter())("drawerView",i.drawerView())("userName",t.displayName)("avatarUrl",i.chatInfo().summary.displayPartnerAvatarUrl)("isOnline",t.isOnline)("showState",true)("inlineState",true)("lastOnlineDate",t.lastSeenAt),uT(),Pv$1("aria-label",o("memberChat.search.openInChat")),uT(2),jv$1("matMenuTriggerFor",a),uT(4),Pv$1("aria-label",o("memberChat.actions.profile")),uT(),Gd$1(" ",o("memberChat.actions.profile")," "),uT(2),tM$1(i.isPartnerModeratorOrAdmin()?11:12),uT(2),Pv$1("aria-label",o("memberChat.delete.title")),uT(),Gd$1(" ",o("memberChat.delete.title")," "),uT(2),tM$1(i.isSearchMode()?16:17);}}function Su(e,r){if(e&1&&(eM$1(0,xu,2,1,"div",3),eM$1(1,zu,18,16)),e&2){let t,a=yM(2);tM$1(a.isLoading()?0:-1),uT(),tM$1((t=a.participantInfo())?1:-1,t);}}function Hu(e,r){if(e&1&&(ta$3(0,"main",2),eM$1(1,Su,2,2),Pd$1()),e&2){let t=yM();uT(),tM$1(t.activeChat()?1:-1);}}var xh=(()=>{class e{constructor(){this._logger=g$k($E),this._chatTanstackService=g$k(_t$6),this._chatSseStateService=g$k(dr),this._sseService=g$k(ur),this._memberAreaQuery=g$k(f$8),this._schoolUserService=g$k(Oe$5),this._router=g$k(H$8),this._injector=g$k(oe$e),this._destroyRef=g$k(de$b),this.drawerView=X8(false),this.activeChat=X8.required(),this.currentUserId=X8.required(),this.pendingAnchorMessageId=X8(null),this.closeDrawer=J8(),this.closeModal=J8(),this.removeChat=J8(),this.blockUser=J8(),this.anchorProcessed=J8(),this._chatQuery=this._chatTanstackService.getChatByIdQuery(this.activeChat),this._messagesQuery=this._chatTanstackService.getChatMessagesInfiniteQuery(this.activeChat),this.chatInfo=qd$1(()=>this._chatQuery.data()),this.messagePull=qd$1(()=>this._chatTanstackService.getFlattenedData(this._messagesQuery.data())),this.groupedMessages=qd$1(()=>this._groupMessagesByDate(this.messagePull())),this.isLoading=qd$1(()=>this._chatQuery.isLoading()||this._messagesQuery.isLoading()),this.hasMore=qd$1(()=>this._isAnchorMode()?this._hasMoreOlderAnchor():this._messagesQuery.hasNextPage()||false),this._hasNewerMessages=On$7(false),this._hasMoreOlderAnchor=On$7(true),this._isLoadingAnchorMessages=On$7(false),this.hasNewerMessages=this._hasNewerMessages.asReadonly(),this._counterQuery=this._chatTanstackService.getGlobalUnreadCounterQuery(),this.counter=qd$1(()=>this._counterQuery.data()?.totalUnreadMessages??0),this.participantInfo=qd$1(()=>this.chatInfo()?.participants.find(t=>t.id!==this.currentUserId())),this.isBlockedByOther=qd$1(()=>this.chatInfo()?.isBlockedByOther??false),this._partnerUid=qd$1(()=>this.participantInfo()?.id??""),this._partnerProfileQuery=this._schoolUserService.getCommunityProfileByUidWithCache(this._partnerUid),this.isPartnerModeratorOrAdmin=qd$1(()=>!!this._partnerProfileQuery.data()?.isModerator),this._searchMode=On$7(false),this._searchText=On$7(""),this._isAnchorMode=On$7(false),this._highlightedMessageId=On$7(null),this._highlightTimerId=null,this._anchorLoadCooldownTimer=null,this.isSearchMode=this._searchMode.asReadonly(),this.searchQuery=this._searchText.asReadonly(),this.isAnchorMode=this._isAnchorMode.asReadonly(),this.highlightedMessageId=this._highlightedMessageId.asReadonly(),this._messageList=t3(gr),this._loadedMessageIds=qd$1(()=>new Set(this.messagePull().map(t=>
2737t.id))),this._debouncedSearchQuery=YG(ZG(this._searchText).pipe(up$1(j1.SEARCH_DEBOUNCE_MS)),{initialValue:""}),this._searchQueryHandle=this._chatTanstackService.createInChatSearchInfiniteQuery(qd$1(()=>this.activeChat()?.chatId??""),this._debouncedSearchQuery),this.searchHits=qd$1(()=>this._chatTanstackService.getFlattenedSearchHits(this._searchQueryHandle.data())),this.isSearchLoading=qd$1(()=>this._searchQueryHandle.isLoading()),this.isSearchFetchingMore=qd$1(()=>this._searchQueryHandle.isFetchingNextPage()),this.hasMoreSearchResults=qd$1(()=>this._searchQueryHandle.hasNextPage()||false),this.searchTotalCount=qd$1(()=>this._searchQueryHandle.data()?.pages?.[0]?.totalMatchCount),this._activeChatData=qd$1(()=>{let t=this.activeChat(),a=this.chatInfo();return !t?.chatId||!a||a.id!==t.chatId?null:t}),this._destroyRef.onDestroy(()=>{this._clearHighlightTimer(),this._clearCooldownTimer();}),Es$3(t=>{let a=this._activeChatData(),o=this._memberAreaQuery.getSchoolId(),i=this.currentUserId();if(!a?.chatId||!o||!i)return;let d=this._sseService.getChatMessageStream(o,i,a.chatId).pipe(mp$1({count:3,delay:1e3}),gc$1(f=>(this._logger.error("SSE connection failed",f),pn$a))).subscribe(f=>this._chatSseStateService.handleMessageEvent(f));t(()=>d.unsubscribe());}),Es$3(()=>{let t=this.pendingAnchorMessageId(),a=this.activeChat()?.chatId,o=this.isLoading();!t||!a||o||Qn$9(()=>{this._navigateToAnchor(a,t);});},{});}sendMessageMutation(t){let a=this.activeChat()?.chatId;a&&this._chatTanstackService.sendMessageMutation.mutate({content:t,chatId:a,type:"text"});}removeChatWithMember(){let t=this.activeChat()?.chatId,a=this.participantInfo();t&&this.removeChat.emit({chatId:t,partnerName:a?.displayName??"",partnerPhoto:a?.photoUrl??""});}blockChatPartner(){let t=this.participantInfo();t&&this.blockUser.emit({participantUid:t.id,partnerName:t.displayName??"",partnerPhoto:t.photoUrl??""});}loadMore(){if(this._isAnchorMode()){this._loadAnchorMessages("older");return}this.hasMore()&&!this._messagesQuery.isFetchingNextPage()&&this._messagesQuery.fetchNextPage();}async loadNewer(){return this._loadAnchorMessages("newer")}toggleSearch(){let t=!this._searchMode();this._searchMode.set(t),t||this._searchText.set("");}onSearchQueryChange(t){this._searchText.set(t);}loadMoreSearchResults(){this.hasMoreSearchResults()&&!this.isSearchFetchingMore()&&this._searchQueryHandle.fetchNextPage();}async onSearchResultSelect(t){let a=this.activeChat()?.chatId;if(a){if(!this._loadedMessageIds().has(t.messageId)){let o=this.pendingAnchorMessageId(),i;try{i=await this._chatTanstackService.fetchMessagesAroundAnchor(a,t.messageId);}catch{return}if(!this._isAnchorRequestCurrent(o,a)||!i.anchor)return;this._chatTanstackService.replaceMessagesWithAnchorData(a,i),this._isAnchorMode.set(true),this._hasNewerMessages.set(i.after.length>=20),this._hasMoreOlderAnchor.set(i.before.length>=20);}this._searchMode.set(false),this._searchText.set(""),this._clearHighlightTimer(),this._highlightedMessageId.set(t.messageId),this._highlightTimerId=setTimeout(()=>{this._highlightedMessageId.set(null);},j1.HIGHLIGHT_DURATION_MS);}}returnToLatest(){let t=this.activeChat()?.chatId;t&&(this._clearHighlightTimer(),this._clearCooldownTimer(),this._isAnchorMode.set(false),this._highlightedMessageId.set(null),this._hasNewerMessages.set(false),this._hasMoreOlderAnchor.set(true),this._isLoadingAnchorMessages.set(false),this._messageList()?.scrollToBottom(),this._chatTanstackService.resetMessagesQuery(t));}onMobileInputFocused(){setTimeout(()=>this._messageList()?.scrollToBottom(),0);}openParticipantProfile(){let t=this.participantInfo()?.id;t&&(this.closeModal.emit(),this._router.navigate(["community","profile",t]));}async _loadAnchorMessages(t){let a=t==="older"?this._hasMoreOlderAnchor:this._hasNewerMessages;if(this._isLoadingAnchorMessages()||this._anchorLoadCooldownTimer||!a())return;let o=this.activeChat()?.chatId,i=this.messagePull();if(!o||i.length===0)return;let d=t==="older"?i[i.length-1].id:i[0].id,f=this.pendingAnchorMessageId();this._isLoadingAnchorMessages.set(true);
2737try{let y=await this._chatTanstackService.fetchMessagesAroundAnchor(o,d);if(!this._isAnchorRequestCurrent(f,o))return;let L=t==="older"?y.before:y.after;if(L.length===0){a.set(!1);return}this._messageList()?.saveScrollPosition(),this._chatTanstackService.appendMessagesToAnchorCache(o,L,t),Xl$1(()=>{this._messageList()?.restoreScrollPosition();},{injector:this._injector}),L.length<20&&a.set(!1);}catch{this._logger.error(`Failed to load ${t} anchor messages`);}finally{this._isLoadingAnchorMessages.set(false),this._isAnchorRequestCurrent(f,o)&&this._startCooldownTimer();}}_clearHighlightTimer(){this._highlightTimerId!==null&&(clearTimeout(this._highlightTimerId),this._highlightTimerId=null);}_clearCooldownTimer(){this._anchorLoadCooldownTimer!==null&&(clearTimeout(this._anchorLoadCooldownTimer),this._anchorLoadCooldownTimer=null);}_startCooldownTimer(){this._anchorLoadCooldownTimer=setTimeout(()=>{this._anchorLoadCooldownTimer=null;},j1.ANCHOR_LOAD_COOLDOWN_MS);}async _navigateToAnchor(t,a){try{let o=await this._chatTanstackService.fetchMessagesAroundAnchor(t,a);if(!this._isAnchorRequestCurrent(a,t)||!o.anchor)return;this._chatTanstackService.replaceMessagesWithAnchorData(t,o),this._isAnchorMode.set(!0),this._hasNewerMessages.set(o.after.length>=20),this._hasMoreOlderAnchor.set(o.before.length>=20),this._clearHighlightTimer(),this._highlightedMessageId.set(a),this._highlightTimerId=setTimeout(()=>{this._highlightedMessageId.set(null);},j1.HIGHLIGHT_DURATION_MS);}catch{this._logger.error("Failed to navigate to anchored message");}finally{this._isAnchorRequestCurrent(a,t)&&this.anchorProcessed.emit();}}_isAnchorRequestCurrent(t,a){return this.pendingAnchorMessageId()===t&&this.activeChat()?.chatId===a}_groupMessagesByDate(t){let a=[];return t.forEach(o=>{let i=new Date(o.createdAt).toDateString(),d=a.find(f=>f.date===i);d||(d={date:i,messages:[]},a.push(d)),d.messages.push(o);}),a}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-message-thread-container"]],viewQuery:function(a,o){a&1&&eD(o._messageList,gr,5),a&2&&bM();},hostAttrs:[1,"overflow-hidden","h-full"],inputs:{drawerView:[1,"drawerView"],activeChat:[1,"activeChat"],currentUserId:[1,"currentUserId"],pendingAnchorMessageId:[1,"pendingAnchorMessageId"]},outputs:{closeDrawer:"closeDrawer",closeModal:"closeModal",removeChat:"removeChat",blockUser:"blockUser",anchorProcessed:"anchorProcessed"},decls:1,vars:0,consts:[["menu","matMenu"],["class","bg-backgrounds-surface-raised flex h-full flex-col overflow-hidden",4,"transloco"],[1,"bg-backgrounds-surface-raised","flex","h-full","flex-col","overflow-hidden"],[1,"mt-14","flex","h-full","w-full","justify-center"],[3,"loadingText"],[1,"border-borders-secondary","flex","h-[80px]","items-center","justify-center","border-b"],[3,"closeDrawer","openParticipantProfile","counter","drawerView","userName","avatarUrl","isOnline","showState","inlineState","lastOnlineDate"],[1,"border-borders-primary","bg-backgrounds-surface-raised","mr-4","flex","cursor-pointer","items-center","justify-center","rounded-lg","border","p-1.5",3,"click"],["name","heroMagnifyingGlass",1,"text-icons-subtle","text-lg"],[1,"border-borders-primary","bg-backgrounds-surface-raised","mr-2","hidden","cursor-pointer","items-center","justify-center","rounded-lg","border","p-1.5","sm:flex",3,"matMenuTriggerFor"],["name","heroEllipsisVertical",1,"text-icons-subtle","text-lg"],[1,"text-text-subtle","hover:bg-mspot-neutral-100","flex","w-full","cursor-pointer","items-center","justify-between","gap-2","rounded-lg","px-3","py-2.5","text-left","text-sm",3,"click"],["name","heroInformationCircle",1,"text-xl"],[1,"text-text-subtle","flex","w-full","items-center","justify-between","gap-2","rounded-lg","px-3","py-2.5","text-left","text-sm","opacity-50",3,"matTooltip"],[1,"text-text-subtle","hover:bg-mspot-neutral-100","flex","w-full","cursor-pointer","items-center","justify-between","gap-2","rounded-lg","px-3","py-2.5","text-left","text-sm"],[1,"text-text-danger","hover:bg-mspot-neutral-100","flex","w-full","items-center","justify-between","gap-2","rounded-lg","px-3","py-2.5","text-left","text-sm",3,"click"],["name","heroTrash",1,"text-xl"],[1,"flex-1","overflow-hidden",3,"hits","isLoading","isFetchingMore","hasMore","totalMatchCount","searchQuery"],["name","heroNoSymbol",1,"text-xl"],[1,"flex-1","overflow-hidden",3,"searchQueryChange","loadMore","closeSearch","selectResult","hits","isLoading","isFetchingMore","hasMore","totalMatchCount","searchQuery"],[1,"flex-1","overflow-auto"],[3,"loadMoreMessages","loadNewerMessages","returnToLatest","hasMoreItems","hasNewerItems","currentUserId","messageGroups","participantInfo","unreadCount","highlightedMessageId","isAnchorMode"],[1,"border-borders-secondary","flex","h-[80px]","items-center","border-t"],[1,"text-text-subtle","flex","w-full","items-center","justify-center","gap-2","text-sm"],[3,"participantInfo"],["name","heroNoSymbol",1,"text-lg"],[3,"sendMessage","mobileTextareaFocused","participantInfo"]],template:function(a,o){a&1&&gv$1(0,Hu,2,1,"main",1);}
2737,dependencies:[uh,Ta,gr,mr,le$9,v$5,G$9,sn$5,mt$7,yt$a],encapsulation:2,data:{animation:[f]}});}}return e})();function Lu(e,r){if(e&1){let t=fM();ta$3(0,"mspot-chat-message-thread-container",8),Zv$1("closeDrawer",function(){sh$1(t);let o=yM(2);return ah$1(o.closeActiveChatView())})("blockUser",function(o){sh$1(t);let i=yM(2);return ah$1(i.blockMemberUser(o))})("anchorProcessed",function(){sh$1(t);let o=yM(2);return ah$1(o.pendingAnchorMessageId.set(null))}),Pd$1();}if(e&2){let t=yM(2);jv$1("drawerView",true)("currentUserId",t.currentUserId())("activeChat",t.activeChat())("pendingAnchorMessageId",t.pendingAnchorMessageId());}}function Tu(e,r){e&1&&Vv$1(0,"mspot-chat-message-thread-placeholder");}function Bu(e,r){if(e&1){let t=fM();ta$3(0,"mspot-modal-drawer",1),Zv$1("backdropClick",function(){sh$1(t);let o=yM();return ah$1(o.closeActiveChatView())}),eM$1(1,Lu,1,4,"mspot-chat-message-thread-container",7)(2,Tu,1,0,"mspot-chat-message-thread-placeholder"),Pd$1();}if(e&2){let t=yM();jv$1("opened",!!t.activeChat()),uT(),tM$1(t.activeChat()?1:2);}}function ku(e,r){if(e&1){let t=fM();ta$3(0,"mspot-chat-message-thread-container",10),Zv$1("removeChat",function(o){sh$1(t);let i=yM(2);return ah$1(i.removeMemberChat(o))})("blockUser",function(o){sh$1(t);let i=yM(2);return ah$1(i.blockMemberUser(o))})("closeModal",function(){sh$1(t);let o=yM(2);return ah$1(o.close())})("anchorProcessed",function(){sh$1(t);let o=yM(2);return ah$1(o.pendingAnchorMessageId.set(null))}),Pd$1();}if(e&2){let t=yM(2);jv$1("activeChat",t.activeChat())("currentUserId",t.currentUserId())("pendingAnchorMessageId",t.pendingAnchorMessageId());}}function Eu(e,r){e&1&&Vv$1(0,"mspot-chat-message-thread-placeholder");}function Du(e,r){if(e&1&&eM$1(0,ku,1,3,"mspot-chat-message-thread-container",9)(1,Eu,1,0,"mspot-chat-message-thread-placeholder"),e&2){let t=yM();tM$1(t.activeChat()?0:1);}}var _h=(()=>{class e{constructor(){this._dialogRef=g$k(O$c),this._chatDialogData=g$k(Ze$9),this._schoolUserService=g$k(Oe$5),this._chatTanstackService=g$k(_t$6),this._dialogService=g$k(Ss$2),this._loggingService=g$k($E),this._notiService=g$k(wi$1),this._backNav=g$k(Ze$6),this._isXs=YG(g$k(jl).isXs$),this._isSm=YG(g$k(jl).isSm$),this.isMobile=qd$1(()=>this._isXs()||this._isSm()),this.currentUser=this._schoolUserService.getCurrentUser(),this._previousActiveChat=null,this._openChatRequestId=0,this._dialogHandle=null,this._chatViewHandle=null,this.userName=qd$1(()=>{let t=this.currentUser();return t.displayName??`${t.firstname} ${t.name}`}),this.activeChat=On$7(this._chatDialogData.chatSummary??null),this.currentUserId=qd$1(()=>this.activeChat()?.uid||this.currentUser().uid||""),this.isMemberDrawerOpen=On$7(this._chatDialogData.memberSearch??false),this.pendingAnchorMessageId=On$7(null),this._dialogHandle=this._backNav.register(()=>this._dialogRef.close()),this.activeChat()&&(this._chatViewHandle=this._registerChatViewHandle()),this._dialogRef.afterClosed().subscribe(()=>{this._chatViewHandle?.dispose(),this._chatViewHandle=null,this._dialogHandle?.dispose(),this._dialogHandle=null;}),Es$3(()=>{this._previousActiveChat&&!this._previousActiveChat.lastMessageSnippet&&this._chatTanstackService.removeChatFromList(this._previousActiveChat),this._previousActiveChat=this.activeChat();});}closeMemberDrawer(){this.isMemberDrawerOpen.set(false);}startNewChatWithMember(t){this._chatTanstackService.createPrivateChatMutation.mutate(t,{onSuccess:a=>{this.closeMemberDrawer(),this.openChat(a);},onError:a=>{if(a instanceof H$j&&a.status===403){this._notiService.infoIntl("common.chat.accessRestricted"),this.closeMemberDrawer();return}this._loggingService.error("Failed to create chat",a);}});}async removeMemberChat(t){await this._dialogService.openAsync(rh,{data:{participantName:t.partnerName,participantPhoto:t.partnerPhoto,isMobile:this.isMobile()},dialogConfig:{disableClose:true}})&&this._chatTanstackService.deleteChatMutation.mutate(t.chatId,{onSuccess:()=>{this.activeChat()?.chatId===t.chatId&&this.closeActiveChatView();},onError:o=>this._loggingService.error("Failed to delete chat",o)});}async blockMemberUser(t){await this._dialogService.openAsync(wt$8,{data:{participantName:t.partnerName,participantPhoto:t.partnerPhoto,mode:"block",isMobile:this.isMobile()},dialogConfig:{disableClose:true}})&&this._chatTanstackService.blockUserMutation.mutate(t.participantUid,{onSuccess:()=>{this.activeChat()?.chatId&&this.closeActiveChatView();},onError:o=>this._loggingService.error("Failed to block user",o)});}close(){this._dialogHandle?.back();}closeActiveChatView(){this.activeChat()&&(this._chatViewHandle?this._chatViewHandle.back():this.activeChat.set(null));}openChat(t){if(this.activeChat()?.chatId===t?.chatId)return;let a=!this.activeChat()&&!!t;this.activeChat.set(t),a&&(this._chatViewHandle=this._registerChatViewHandle());}async openChatAtMessage(t){this._openChatRequestId+=1;let a=this._openChatRequestId;try{let o=await this._chatTanstackService.fetchChatById(t.chatId);if(a!==this._openChatRequestId)return;if(!o.summary){this._loggingService.error("Chat summary not found for global search navigation");return}this.openChat(o.summary),this.pendingAnchorMessageId.set(t.messageId);}catch(o){if(a!==this._openChatRequestId)return;this._loggingService.error("Failed to open chat from global search",o);}}ngOnDestroy(){this.activeChat()&&!this.activeChat()?.lastMessageSnippet&&this._chatTanstackService.removeChatFromList(this.activeChat());}_registerChatViewHandle(){return this._backNav.register(()=>{this.activeChat.set(null),this._chatViewHandle=null;})}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-modal-container"]],features:[cN([La()])],decls:8,vars:11,consts:[[1,"bg-backgrounds-canvas","relative","w-full","overflow-hidden",3,"keydown.escape"],[3,"backdropClick","opened"],[1,"min-h-0","flex-1",3,"closeDrawer","selectMember"],[3,"opened"],[3,"closeModal"],[1,"grid","h-[calc(100%-56px)]","grid-cols-[1fr]","md:grid-cols-[340px_1fr]","lg:grid-cols-[400px_1fr]"],[3,"closeModal","removeChat","openDrawer","openChatModal","openChatAtMessage","userName","userAvatarUrl","activeChat","isMobile"],[3,"drawerView","currentUserId","activeChat","pendingAnchorMessageId"],[3,"closeDrawer","blockUser","anchorProcessed","drawerView","currentUserId","activeChat","pendingAnchorMessageId"],[3,"activeChat","currentUserId","pen
2737dingAnchorMessageId"],[3,"removeChat","blockUser","closeModal","anchorProcessed","activeChat","currentUserId","pendingAnchorMessageId"]],template:function(a,o){a&1&&(ta$3(0,"section",0),Zv$1("keydown.escape",function(){return o.close()}),ta$3(1,"mspot-modal-drawer",1),Zv$1("backdropClick",function(){return o.closeMemberDrawer()}),ta$3(2,"mspot-chat-member-container",2),Zv$1("closeDrawer",function(){return o.closeMemberDrawer()})("selectMember",function(d){return o.startNewChatWithMember(d)}),Pd$1()(),eM$1(3,Bu,3,2,"mspot-modal-drawer",3),ta$3(4,"mspot-chat-modal-header",4),Zv$1("closeModal",function(){return o.close()}),Pd$1(),ta$3(5,"div",5)(6,"mspot-chat-conversation-container",6),Zv$1("closeModal",function(){return o.close()})("removeChat",function(d){return o.removeMemberChat(d)})("openDrawer",function(){return o.isMemberDrawerOpen.set(true)})("openChatModal",function(d){return o.openChat(d)})("openChatAtMessage",function(d){return o.openChatAtMessage(d)}),Pd$1(),eM$1(7,Du,2,1),Pd$1()()),a&2&&(iD("h-[100vh]",o.isMobile())("h-[min(95vh,1280px)]",!o.isMobile()),uT(),jv$1("opened",o.isMemberDrawerOpen()),uT(2),tM$1(o.isMobile()?3:-1),uT(3),jv$1("userName",o.userName())("userAvatarUrl",o.currentUser().photoUrl)("activeChat",o.activeChat())("isMobile",o.isMobile()),uT(),tM$1(o.isMobile()?-1:7));},dependencies:[nh,ah,oh,gh,vh,xh,th],encapsulation:2});}}return e})();var bh=(()=>{class e{constructor(){this._externalLink=g$k(E$3),this._internalLink=g$k(O$2),this._logger=g$k($E),this._window=g$k(A$7),this._destroyRef=g$k(de$b),this._initialized=false;}initialize(){if(this._initialized||!U$5.isNativePlatform())return;let t=a=>this._handleClick(a);this._window.document.addEventListener("click",t,{capture:true}),this._initialized=true,this._destroyRef.onDestroy(()=>{this._window.document.removeEventListener("click",t,{capture:true});});}_handleClick(t){if(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let o=(t.target instanceof Element?t.target:null)?.closest("a[href]")??null;if(!(o instanceof HTMLAnchorElement))return;let i=o.getAttribute("href");if(!i||i.startsWith("#")||this._internalLink.isInternalUrl(i))return;let d;try{d=new URL(i,this._window.location.href);}catch(f){this._logger.warn("[ExternalLinkInterceptor] Could not parse href",{message:f instanceof Error?f.message:String(f)});return}d.protocol!=="http:"&&d.protocol!=="https:"||(t.preventDefault(),t.stopPropagation(),this._externalLink.open(d.href));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Fu=5e3,Iu=["auth/user-token-expired","auth/user-disabled","auth/user-not-found","auth/invalid-user-token"],fr=false;function Nu(e){let r=e?.code;return !!r&&Iu.includes(r)}var Mh=(e,r)=>{let t=g$k(nt$c),a=g$k(c$9);return r(e).pipe(gc$1(o=>{let i=t.currentUser;return !(o instanceof H$j)||o.status!==401||!e.headers.has("authorization")||!i||U$5.isNativePlatform()||fr?vI(()=>o):je$e(i.getIdToken(true)).pipe(rp$2(Fu),Kf$1(()=>vI(()=>o)),gc$1(d=>(Nu(d)&&!fr&&(fr=true,ee$1(t,a).catch(()=>{fr=false;})),vI(()=>o))))}))};var Ah=(()=>{class e{constructor(){this._store=g$k(f$4);}startLoading(){q$a(()=>{this._store.set([]),this._store.setLoading(true);});}saveSpaces(t){return this._store.set(t),yI(t)}updateInStore(t){this._store.upsert(t.id,t);}updateMany(t){t.forEach(a=>this._store.update(a.id,a));}removeFromStore(t){this._store.remove(t);}upsertItemInStore(t){this._store.upsert(t.id,t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var yh=new b$g("AI_CHAT_ENDPOINT");var Vh=()=>pi$2({position:"top-center",dismissible:true,className:"font-medium border-b-2 toast rounded-lg dark:text-mspot-neutral-900 bg-backgrounds-surface-raised backdrop-blur-sm",success:{style:{"border-color":"var(--check-primary,#61d345)"}},error:{style:{"border-color":"var(--error-primary,#ff4b4b)"}},warning:{style:{"border-color":"var(--warn-primary,#ffab00)"}}});var Pu=["*"];function Ru(e,r){if(e&1&&(ta$3(0,"div",0)(1,"span",3),QM(2),Pd$1()()),e&2){let t=yM();uT(2),yD(t.title());}}function Ou(e,r){e&1&&Vv$1(0,"ng-icon",5);}function qu(e,r){if(e&1){let t=fM();ta$3(0,"button",4),Zv$1("click",function(o){sh$1(t);let i=yM();return i.open.set(!i.open()),ah$1(o.stopPropagation())}),ta$3(1,"span",3),QM(2),Pd$1(),eM$1(3,Ou,1,0,"ng-icon",5),Pd$1();}if(e&2){let t=yM();Pv$1("aria-expanded",t.open()),uT(2),yD(t.title()),uT(),tM$1(t.open()?-1:3);}}function $u(e,r){e&1&&(ta$3(0,"div",2),EM(1),Pd$1()),e&2&&jv$1("@animateHeight",void 0);}var Cr=(()=>{class e{constructor(){this._collapsedState=g$k(ft,{optional:true}),this.title=X8.required(),this.open=e3(true),this.collapsed=qd$1(()=>this._collapsedState?.collapsed()??false),this.showContent=qd$1(()=>this.open()||this.collapsed());}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-sidemenu-section"]],hostAttrs:[1,"flex","flex-col","gap-1"],inputs:{title:[1,"title"],open:[1,"open"]},outputs:{open:"openChange"},ngContentSelectors:Pu,decls:3,vars:2,consts:[["aria-hidden","true",1,"invisible","flex","w-full","items-center","gap-2","pb-0.5","pr-2","text-xs","font-medium"],["type","button",1,"focus-primary--inner-outline","flex","w-full","items-center","justify-between","gap-2","pb-0.5","pr-2","text-left","text-xs","font-medium","text-[color:var(--nav-group-color,var(--nav-row-color,var(--text-subtle)))]","transition-opacity","hover:opacity-80"],[1,"flex","flex-col","gap-[var(--nav-list-gap,0.25rem)]"],[1,"truncate","text-left"],["type","button",1,"focus-primary--inner-outline","flex","w-full","items-center","justify-between","gap-2","pb-0.5","pr-2","text-left","text-xs","font-medium","text-[color:var(--nav-group-color,var(--nav-row-color,var(--text-subtle)))]","transition-opacity","hover:opacity-80",3,"click"],["name","hero-chevron-down",1,"shrink-0","-rotate-90","text-base"]],template:function(a,o){a&1&&(DM(),eM$1(0,Ru,3,1,"div",0)(1,qu,4,3,"button",1),eM$1(2,$u,2,1,"div",2)),a&2&&(tM$1(o.collapsed()?0:1),uT(2),tM$1(o.showContent()?2:-1));},dependencies:[le$9],encapsulation:2,data:{animation:[g$1()]}});}}return e})();var ju=[[["","navIcon",""]],[["","navLabel",""]],[["","navTrailing",""]]],Gu=["[navIcon]","[navLabel]","[navTrailing]"],Qu=e=>({exact:e});function Zu(e,r){if(e&1){let t=fM();ta$3(0,"a",4),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.activated.emit())}),$v$1(1,5),Pd$1();}if(e&2){let t=yM(),a=TM(4);iD("justify-center",t.effectiveCollapsed())("pr-1",t.effectiveCollapsed())("pr-2",!t.effectiveCollapsed()),jv$1("href",t.href(),Gm$1)("matTooltip",t.label())("matTooltipDisabled",!t.effectiveCollapsed())("ngClass",t.isActive()?"bg-[var(--nav-row-active-bg,color-mix(in_srgb,currentColor_8%,transparent))]":"hover:bg-[var(--nav-row-hover-bg,color-mix(in_srgb,currentColor_8%,transparent))]"),Pv$1("data-cy",t.dataCy())("data-onboarding",t.onboardingTarget())("aria-label",t.effectiveCollapsed()?t.label():null),uT(),jv$1("ngTemplateOutlet",a);}}function Wu(e,r){if(e&1){let t=fM();ta$3(0,"a",6),Zv$1("isActiveChange",function(o){sh$1(t);let i=yM();return i._rlaActive.set(o),ah$1(i.activeChange.emit(o))})("click",function(){sh$1(t);let o=yM();return ah$1(o.activated.emit())}),$v$1(1,5),Pd$1();}if(e&2){let t=yM(),a=TM(4);iD("justify-center",t.effectiveCollapsed())("pr-1",t.effectiveCollapsed())("pr-2",!t.effectiveCollapsed()),jv$1("routerLink",t.routerLink())("queryParams",t.queryParams())("routerLinkActiveOptions",fN(16,Qu,t.routerLinkActiveExact()))("matTooltip",t.label())("matTooltipDisabled",!t.effectiveCollapsed())("ngClass",t.isActive()?"bg-[var(--nav-row-active-bg,color-mix(in_srgb,currentColor_8%,transparent))]":"hover:bg-[var(--nav-row-hover-bg,color-mix(in_srgb,currentColor_8%,transparent))]"),Pv$1("data-cy",t.dataCy())("data-onboarding",t.onboardingTarget())("aria-label",t.effectiveCollapsed()?t.label():null),uT(),jv$1("ngTemplateOutlet",a);}}function Ku(e,r){if(e&1){let t=fM();ta$3(0,"button",7),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.activated.emit())}),$v$1(1,5),Pd$1();}if(e&2){let t=yM(),a=TM(4);iD("justify-center",t.effectiveCollapsed())("pr-1",t.effectiveCollapsed())("pr-2",!t.effectiveCollapsed()),jv$1("matTooltip",t.label())("matTooltipDisabled",!t.effectiveCollapsed())("ngClass",t.isActive()?"bg-[var(--nav-row-active-bg,color-mix(in_srgb,currentColor_8%,transparent))]":"hover:bg-[var(--nav-row-hover-bg,color-mix(in_srgb,currentColor_8%,transparent))]"),Pv$1("data-cy",t.dataCy())("data-onboarding",t.onboardingTarget())("aria-label",t.effectiveCollapsed()?t.label():null),uT(),jv$1("ngTemplateOutlet",a);}}function Xu(e,r){if(e&1&&$v$1(0,9),e&2){let t=yM(2);jv$1("ngComponentOutlet",t.customIcon());}}function Yu(e,r){if(e&1&&Vv$1(0,"ng-icon",12),e&2){let t=yM(2);iD("rotate-180",t.iconRotate()),jv$1("name",t.icon());}}function Ju(e,r){e&1&&Vv$1(0,"span",11);}function tw(e,r){if(e&1&&(ta$3(0,"span",13),QM(1),EM(2,1),Pd$1(),ta$3(3,"span",14),EM(4,2),Pd$1()),e&2){let t=yM(2);iD("font-semibold",t.unread()),jv$1("ngClass",t.isActive()?"text-[color:var(--nav-row-active-color,rgb(var(--primary)))]":""),uT(),Gd$1(" ",t.label());}}function ew(e,r){if(e&1&&(ta$3(0,"span",8),eM$1(1,Xu,1,1,"ng-container",9)(2,Yu,1,3,"ng-icon",10),EM(3),eM$1(4,Ju,1,0,"span",11),Pd$1(),eM$1(5,tw,5,4)),e&2){let t=yM();jv$1("ngClass",t.isActive()?"text-[color:var(--nav-row-active-color,rgb(var(--primary)))]":"text-[color:var(--nav-row-icon-color,currentColor)]"),uT(),tM$1(t.customIcon()?1:t.icon()?2:-1),uT(3),tM$1(t.showDot()&&t.effectiveCollapsed()?4:-1),uT(),tM$1(t.effectiveCollapsed()?-1:5);}}var Ba=(()=>{class e{constructor(){this.icon=X8(),this.customIcon=X8(),this.iconRotate=X8(false),this.label=X8(""),this.unread=X8(false),this.active=X8(false),this.autoActive=X8(false),this.routerLinkActiveExact=X8(false),this.routerLink=X8(null),this.queryParams=X8(null),this.href=X8(null),this.dataCy=X8(),this.onboardingTarget=X8(),this.collapsed=X8(false),this.showDot=X8(false),this.activated=J8(),this.activeChange=J8(),this._collapsedState=g$k(ft,{optional:true}),this.effectiveCollapsed=qd$1(()=>this.collapsed()||(this._collapsedState?.collapsed()??false)),this._rlaActive=On$7(false),this.isActive=qd$1(()=>this.active()||this.autoActive()&&this._rlaActive());}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-nav-row"]],hostAttrs:[1,"block"],inputs:{icon:[1,"icon"],customIcon:[1,"customIcon"],iconRotate:[1,"iconRotate"],label:[1,"label"],unread:[1,"unread"],active:[1,"active"],autoActive:[1,"autoActive"],routerLinkActiveExact:[1,"routerLinkActiveExact"],routerLink:[1,"routerLink"],queryParams:[1,"queryParams"],href:[1,"href"],dataCy:[1,"dataCy"],onboardingTarget:[1,"onboardingTarget"],collapsed:[1,"collapsed"],showDot:[1,"showDot"]},outputs:{activated:"activated",activeChange:"activeChange"},ngContentSelectors:Gu,decls:5,vars:1,consts:[["inner",""],["target","_blank","rel","noopener","matTooltipPosition","right",1,"focus-visible:ring-primary","group","flex","min-h-[var(--nav-row-min-
2737h,auto)]","w-full","items-center","gap-[var(--nav-row-gap,0.5rem)]","rounded-md","py-1.5","pl-1","text-[length:var(--nav-row-font,0.875rem)]","font-medium","leading-5","text-[color:var(--nav-row-color,var(--text-subtle))]","transition-colors","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-inset",3,"href","matTooltip","matTooltipDisabled","justify-center","pr-1","pr-2","ngClass"],["routerLinkActive","","matTooltipPosition","right",1,"focus-visible:ring-primary","group","flex","min-h-[var(--nav-row-min-h,auto)]","w-full","items-center","gap-[var(--nav-row-gap,0.5rem)]","rounded-md","py-1.5","pl-1","text-[length:var(--nav-row-font,0.875rem)]","font-medium","leading-5","text-[color:var(--nav-row-color,var(--text-subtle))]","transition-colors","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-inset",3,"routerLink","queryParams","routerLinkActiveOptions","matTooltip","matTooltipDisabled","justify-center","pr-1","pr-2","ngClass"],["type","button","matTooltipPosition","right",1,"focus-visible:ring-primary","group","flex","min-h-[var(--nav-row-min-h,auto)]","w-full","cursor-pointer","items-center","gap-[var(--nav-row-gap,0.5rem)]","rounded-md","py-1.5","pl-1","text-[length:var(--nav-row-font,0.875rem)]","font-medium","leading-5","text-[color:var(--nav-row-color,var(--text-subtle))]","transition-colors","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-inset",3,"matTooltip","matTooltipDisabled","justify-center","pr-1","pr-2","ngClass"],["target","_blank","rel","noopener","matTooltipPosition","right",1,"focus-visible:ring-primary","group","flex","min-h-[var(--nav-row-min-h,auto)]","w-full","items-center","gap-[var(--nav-row-gap,0.5rem)]","rounded-md","py-1.5","pl-1","text-[length:var(--nav-row-font,0.875rem)]","font-medium","leading-5","text-[color:var(--nav-row-color,var(--text-subtle))]","transition-colors","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-inset",3,"click","href","matTooltip","matTooltipDisabled","ngClass"],[3,"ngTemplateOutlet"],["routerLinkActive","","matTooltipPosition","right",1,"focus-visible:ring-primary","group","flex","min-h-[var(--nav-row-min-h,auto)]","w-full","items-center","gap-[var(--nav-row-gap,0.5rem)]","rounded-md","py-1.5","pl-1","text-[length:var(--nav-row-font,0.875rem)]","font-medium","leading-5","text-[color:var(--nav-row-color,var(--text-subtle))]","transition-colors","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-inset",3,"isActiveChange","click","routerLink","queryParams","routerLinkActiveOptions","matTooltip","matTooltipDisabled","ngClass"],["type","button","matTooltipPosition","right",1,"focus-visible:ring-primary","group","flex","min-h-[var(--nav-row-min-h,auto)]","w-full","cursor-pointer","items-center","gap-[var(--nav-row-gap,0.5rem)]","rounded-md","py-1.5","pl-1","text-[length:var(--nav-row-font,0.875rem)]","font-medium","leading-5","text-[color:var(--nav-row-color,var(--text-subtle))]","transition-colors","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-inset",3,"click","matTooltip","matTooltipDisabled","ngClass"],[1,"relative","flex","min-h-5","w-6","shrink-0","items-center","justify-center","text-[length:var(--nav-row-icon,1.125rem)]",3,"ngClass"],[3,"ngComponentOutlet"],[1,"text-[length:var(--nav-row-icon,1.125rem)]",3,"name","rotate-180"],["aria-hidden","true",1,"bg-primary","ring-backgrounds-canvas","absolute","-right-0.5","-top-0.5","h-2","w-2","rounded-full","ring-2"],[1,"text-[length:var(--nav-row-icon,1.125rem)]",3,"name"],[1,"flex-1","truncate","text-left",3,"ngClass"],[1,"flex","h-4","min-w-4","shrink-0","items-center","justify-center"]],template:function(a,o){a&1&&(DM(ju),eM$1(0,Zu,2,14,"a",1)(1,Wu,2,18,"a",2)(2,Ku,2,13,"button",3),gv$1(3,ew,6,4,"ng-template",null,0,SN)),a&2&&tM$1(o.href()?0:o.routerLink()!==null?1:2);},dependencies:[kt$7,ea$1,le$9,mx$1,yx$1,Ix$1,zt$7,mt$7],encapsulation:2});}}return e})();var aw=[[["","slot","custom-icon"]]],ow=["[slot=custom-icon]"];function rw(e,r){if(e&1&&(ta$3(0,"span",2),QM(1),Pd$1()),e&2){let t=yM();uT(),Gd$1(" ",t.unreadCount," ");}}var zh=(()=>{class e{constructor(){this.currentTheme=X8(void 0),this.isSideNavEnabled=X8(false),this.title="",this.link="",this.unreadCount=0;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-system-link"]],hostAttrs:[1,"block"],inputs:{currentTheme:[1,"currentTheme"],isSideNavEnabled:[1,"isSideNavEnabled"],title:"title",link:"link",icon:"icon",unreadCount:"unreadCount"},ngContentSelectors:ow,decls:4,vars:7,consts:[[3,"routerLink","autoActive","routerLinkActiveExact","icon","label","unread"],["navIcon","",1,"flex","items-center","justify-center"],["navTrailing","",1,"bg-primary/60","text-text-inverse","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded","px-1","text-xs","font-medium"]],template:function(a,o){a&1&&(DM(aw),ta$3(0,"mspot-nav-row",0)(1,"span",1),EM(2),Pd$1(),eM$1(3,rw,2,1,"span",2),Pd$1()),a&2&&(jv$1("routerLink",o.link)("autoActive",true)("routerLinkActiveExact",o.link!=="/library")("icon",o.icon||void 0)("label",o.title)("unread",!!o.unreadCount),uT(3),tM$1(o.unreadCount?3:-1));},dependencies:[Ba],encapsulation:2});}}return e})();function nw(e,r){if(e&1&&Vv$1(0,"mspot-system-link",10),e&2){yM();let t=tN(1),a=tN(2),o=tN(3),i=yM();iD("pointer-events-none",t),jv$1("title",i.startPageLink()||"Home")("link",i.homeLink())("icon",i.getShowIcons("hero-home"))("currentTheme",a)("isSideNavEnabled",o);}}function iw(e,r){if(e&1&&(Vv$1(0,"mspot-system-link",11),EN(1,"async")),e&2){let t=yM().$implicit,a=tN(1),o=tN(2),i=tN(3),d=yM();iD("pointer-events-none",a),jv$1("title",d.communityTitle()||t("text.community"))("icon",d.getShowIcons("hero-user-group"))("unreadCount",CN(1,7,d.unreadSpaceItemsCounter$))("currentTheme",o)("isSideNavEnabled",i);}}function sw(e,r){if(e&1&&Vv$1(0,"mspot-system-link",12),e&2){let t=yM().$implicit,a=tN(1),o=tN(2),i=tN(3),d=yM();iD("pointer-events-none",a),jv$1("title",t("text.events"))("icon",d.getShowIcons("hero-calendar"))("currentTheme",o)("isSideNavEnabled",i);}}function lw(e,r){if(e&1&&Vv$1(0,"mspot-system-link",13),e&2){let t=yM().$implicit,a=tN(1),o=tN(2),i=tN(3),d=yM();iD("pointer-events-none",a),jv$1("title",d.portalsTitle()||t("text.portals"))("icon",d.getShowIcons("hero-rectangle-stack"))("currentTheme",o)("isSideNavEnabled",i);}}function cw(e,r){if(e&1&&Vv$1(0,"mspot-system-link",14),e&2){let t=yM().$implicit,a=tN(1),o=tN(2),i=tN(3),d=yM();iD("pointer-events-none",a),jv$1("title",d.agentsTitle()||t("text.aiAgents"))("icon",d.getShowIcons("hero-sparkles"))("currentTheme",o)("isSideNavEnabled",i);}}function hw(e,r){if(e&1&&(Hd$1(0),wD(1)(2)(3),ta$3(4,"mspot-sidemenu-section",1),eM$1(5,nw,1,7,"mspot-system-link",2),Vv$1(6,"mspot-system-link",3),eM$1(7,iw,2,9,"mspot-system-link",4),eM$1(8,sw,1,6,"mspot-system-link",5),eM$1(9,lw,1,6,"mspot-system-link",6),eM$1(10,cw,1,6,"mspot-system-link",7),Pd$1(),ta$3(11,"mspot-sidemenu-section",1),Vv$1(12,"mspot-system-link",8)(13,"mspot-system-link",9),Pd$1(),$d$1()),e&2){let t=r.$implicit,a=yM();uT();let o=eN(a.isAdmin());uT();
2737let i=eN(a.currentTheme());uT();let d=eN(a.isSideNavEnabled()),f=a.spacesActive();uT(),jv$1("title",a.contentGroupLabel()||t("common.contents")),uT(),tM$1(a.hasStartPage()?5:-1),uT(),iD("pointer-events-none",o),jv$1("title",a.myCoursesTitle()||t("client.myCourses"))("icon",a.getShowIcons("hero-academic-cap"))("currentTheme",i)("isSideNavEnabled",d),uT(),tM$1(f?7:-1),uT(),tM$1(a.eventPlanEnabled()&&f?8:-1),uT(),tM$1(a.hasPortals()?9:-1),uT(),tM$1(a.hasAgents()?10:-1),uT(),jv$1("title",a.personalGroupLabel()||t("text.personal")),uT(),iD("pointer-events-none",o),jv$1("title",t("breadcrumbs.bookmarks"))("icon",a.getShowIcons("hero-bookmark"))("currentTheme",i)("isSideNavEnabled",d),uT(),iD("pointer-events-none",o),jv$1("title",t("breadcrumbs.todos"))("icon",a.getShowIcons("hero-check-circle"))("currentTheme",i)("isSideNavEnabled",d);}}var Sh=(()=>{class e{constructor(){this.currentTheme=X8(void 0),this.isSideNavEnabled=X8(false),this.isAdmin=X8(false),this.hasStartPage=X8(false),this.homeLink=X8("/home/start"),this.startPageLink=X8(),this.spacesActive=X8(false),this.isUserModerator=X8(false),this.gamificationEnabled=X8(false),this.personalGroupLabel=X8(),this.contentGroupLabel=X8(),this.myCoursesTitle=X8(),this.communityTitle=X8(),this.px=X8(""),this.pt=X8(""),this.showIcons=X8(true),this.eventPlanEnabled=X8(false),this.hasPortals=X8(false),this.portalsTitle=X8(),this.hasAgents=X8(false),this.agentsTitle=X8(),this.unreadSpaceItemsCounter$=g$k(n$4).pipe(st$c(t=>Object.values(t).reduce((a,o)=>a+o,0)));}getShowIcons(t){if(this.showIcons())return t}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-community-system-links"]],inputs:{currentTheme:[1,"currentTheme"],isSideNavEnabled:[1,"isSideNavEnabled"],isAdmin:[1,"isAdmin"],hasStartPage:[1,"hasStartPage"],homeLink:[1,"homeLink"],startPageLink:[1,"startPageLink"],spacesActive:[1,"spacesActive"],isUserModerator:[1,"isUserModerator"],gamificationEnabled:[1,"gamificationEnabled"],personalGroupLabel:[1,"personalGroupLabel"],contentGroupLabel:[1,"contentGroupLabel"],myCoursesTitle:[1,"myCoursesTitle"],communityTitle:[1,"communityTitle"],px:[1,"px"],pt:[1,"pt"],showIcons:[1,"showIcons"],eventPlanEnabled:[1,"eventPlanEnabled"],hasPortals:[1,"hasPortals"],portalsTitle:[1,"portalsTitle"],hasAgents:[1,"hasAgents"],agentsTitle:[1,"agentsTitle"]},decls:1,vars:0,consts:[[4,"transloco"],[3,"title"],[3,"title","link","icon","pointer-events-none","currentTheme","isSideNavEnabled"],["link","/library",3,"title","icon","currentTheme","isSideNavEnabled"],["link","/community/feed",3,"title","icon","pointer-events-none","unreadCount","currentTheme","isSideNavEnabled"],["link","/events",3,"title","icon","pointer-events-none","currentTheme","isSideNavEnabled"],["link","/portale",3,"title","icon","pointer-events-none","currentTheme","isSideNavEnabled"],["link","/agents",3,"title","icon","pointer-events-none","currentTheme","isSideNavEnabled"],["link","/user/bookmarks",3,"title","icon","currentTheme","isSideNavEnabled"],["link","/user/todos",3,"title","icon","currentTheme","isSideNavEnabled"],[3,"title","link","icon","currentTheme","isSideNavEnabled"],["link","/community/feed",3,"title","icon","unreadCount","currentTheme","isSideNavEnabled"],["link","/events",3,"title","icon","currentTheme","isSideNavEnabled"],["link","/portale",3,"title","icon","currentTheme","isSideNavEnabled"],["link","/agents",3,"title","icon","currentTheme","isSideNavEnabled"]],template:function(a,o){a&1&&gv$1(0,hw,14,28,"ng-container",0);},dependencies:[kx$1,zh,Cr,yt$a,bx$1],encapsulation:2});}}return e})();var xr=(()=>{class e{constructor(){this.isActive=X8(false),this.isSideNav=X8(false),this.applyFocusPrimary=X8(true),this.baseStyles=qd$1(()=>`flex justify-center items-center text-sm font-medium ${this.isSideNav()?"h-10 px-3 rounded-md text-text-default":"h-full py-5 border-b-2"}`+(this.applyFocusPrimary()?" focus-primary--inner-outline":"")),this.activeStyles=qd$1(()=>this.isSideNav()?"bg-primary/5":"border-b-current !text-[color:var(--client-header-color)] dark:!text-white"),this.inactiveStyles=qd$1(()=>this.isSideNav()?"hover:bg-mspot-neutral-900/5":"border-b-transparent hover:border-b-current dark:!text-white/80");}get classes(){return `${this.baseStyles()} ${this.isActive()?this.activeStyles():this.inactiveStyles()}`}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["","mspotSideMenuActiveStyle",""]],hostVars:2,hostBindings:function(a,o){a&2&&BM(o.classes);},inputs:{isActive:[1,"isActive"],isSideNav:[1,"isSideNav"],applyFocusPrimary:[1,"applyFocusPrimary"]}});}}return e})();var ka="agent-group";var Ea="portal-group";var Hh=(()=>{class e{constructor(){this._el=g$k(gt$f),this._zone=g$k(ge$b),this.overflows=J8(),this._rafId=0,this._lastOverflow=false,Xl$1(()=>{let t=this._el.nativeElement;typeof ResizeObserver=="function"&&this._zone.runOutsideAngular(()=>{let a=new ResizeObserver(()=>this._scheduleCheck());if(typeof a.observe=="function"){if(this._resizeObserver=a,a.observe(t),typeof MutationObserver=="function"){let o=new MutationObserver(()=>this._scheduleCheck());typeof o.observe=="function"&&(this._mutationObserver=o,o.observe(t,{childList:true,subtree:true,attributes:true,attributeFilter:["style"]}));}this._checkOverflow();}});});}
2737ngOnDestroy(){this._resizeObserver?.disconnect?.(),this._mutationObserver?.disconnect?.(),this._rafId&&cancelAnimationFrame(this._rafId);}_scheduleCheck(){this._rafId||(this._rafId=requestAnimationFrame(()=>{this._rafId=0,this._checkOverflow();}));}_checkOverflow(){let t=this._el.nativeElement,a=t.scrollHeight-t.clientHeight>1;a!==this._lastOverflow&&(this._lastOverflow=a,this._zone.run(()=>this.overflows.emit(a)));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["","mspotOverflowsEmitter",""]],outputs:{overflows:"overflows"}});}}return e})();function Lh(e){let r=[],t=a=>{for(let o of a)o.type==="group"?t(o.children||[]):r.push(o);};return t(e),r}function pw(e,r){e&1&&(ta$3(0,"span",2),QM(1),Pd$1()),e&2&&(uT(),Gd$1(" ",r," "));}var _r=(()=>{class e{constructor(){this.unreadCounter$=g$k(n$4),this.unreadCounter=YG(this.unreadCounter$),this.linkActive=On$7(false);}get link(){return w$f(this.item)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-internal-link-item"]],hostAttrs:[1,"block"],inputs:{item:"item"},decls:3,vars:6,consts:[[3,"activeChange","routerLink","autoActive","label","unread"],["navIcon","",3,"item"],["navTrailing","",1,"bg-primary/60","text-text-inverse","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded","px-1","text-xs","font-medium"]],template:function(a,o){if(a&1&&(ta$3(0,"mspot-nav-row",0),Zv$1("activeChange",function(d){return o.linkActive.set(d)}),Vv$1(1,"mspot-sidemenu-item-icon",1),eM$1(2,pw,2,1,"span",2),Pd$1()),a&2){let i;jv$1("routerLink",o.link)("autoActive",true)("label",o.item.title)("unread",o.item.type==="space"&&!!o.unreadCounter()?.[o.item.spaceId||""]),uT(),jv$1("item",o.item),uT(),tM$1((i=o.item.type==="space"&&o.unreadCounter()?.[o.item.spaceId||""])?2:-1,i);}},dependencies:[Ba,x$h],encapsulation:2});}}return e})();var Th=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-link-item"]],inputs:{item:"item"},decls:3,vars:3,consts:[[3,"href","label"],["navIcon","",3,"item"],["navTrailing","","name","hero-arrow-top-right-on-square",1,"shrink-0","text-lg","opacity-0","transition-opacity","group-hover:opacity-100"]],template:function(a,o){a&1&&(ta$3(0,"mspot-nav-row",0),Vv$1(1,"mspot-sidemenu-item-icon",1)(2,"ng-icon",2),Pd$1()),a&2&&(jv$1("href",o.item.httpLink)("label",o.item.title),uT(),jv$1("item",o.item));},dependencies:[Ba,x$h,le$9],encapsulation:2});}}return e})();function mw(e,r){if(e&1&&Vv$1(0,"mspot-link-item",0),e&2){let t=yM();jv$1("item",t.item);}}function vw(e,r){if(e&1&&Vv$1(0,"mspot-internal-link-item",0),e&2){let t=yM();jv$1("item",t.item);}}var ve=(()=>{class e{constructor(){this._internalLinks=t3(_r),this.linkActive=qd$1(()=>this._internalLinks()?.linkActive());}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-sidemenu-item"]],viewQuery:function(a,o){a&1&&eD(o._internalLinks,_r,5),a&2&&bM();},inputs:{item:"item"},decls:2,vars:1,consts:[[3,"item"]],template:function(a,o){if(a&1&&eM$1(0,mw,1,1,"mspot-link-item",0)(1,vw,1,1,"mspot-internal-link-item",0),a&2){tM$1((o.item.type)==="link"?0:1);}},dependencies:[aa$1,Th,_r],encapsulation:2});}}return e})();var dw=(e,r)=>r?.id;function gw(e,r){if(e&1&&Vv$1(0,"mspot-sidemenu-item",3),e&2){let t=r.$implicit,a=yM(2);iD("pointer-events-none",a.isAdmin()),jv$1("item",t);}}function uw(e,r){if(e&1){let t=fM();ta$3(0,"mspot-sidemenu-section",1),ID("openChange",function(o){sh$1(t);let i=yM();return XM(i.open,o)||(i.open=o),ah$1(o)}),oM(1,gw,1,3,"mspot-sidemenu-item",2,dw),Pd$1();}if(e&2){let t=yM();jv$1("title",t.title()??t.item().title),ED("open",t.open),uT(),iM(t.renderedChildren());}}var Bh=(()=>{class e{constructor(){this._collapsedState=g$k(ft,{optional:true}),this.item=X8.required(),this.isAdmin=X8(false),this.spacesActive=X8(false),this.title=X8(),this.open=e3(false),this.collapsed=qd$1(()=>this._collapsedState?.collapsed()??false),this.renderedChildren=qd$1(()=>{let t=this.item()?.children||[];return this.collapsed()?Lh(t):t});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-sidemenu-group"]],inputs:{item:[1,"item"],isAdmin:[1,"isAdmin"],spacesActive:[1,"spacesActive"],title:[1,"title"],open:[1,"open"]},outputs:{open:"openChange"},decls:1,vars:1,consts:[[3,"title","open"],[3,"openChange","title","open"],[1,"block",3,"item","pointer-events-none"],[1,"block",3,"item"]],template:function(a,o){a&1&&eM$1(0,uw,3,2,"mspot-sidemenu-section",0),a&2&&tM$1(o.item().children?.length?0:-1);},dependencies:[ve,Cr],encapsulation:2});}}return e})();var ww=["*"],fw=(e,r)=>[e,r],Cw=(e,r)=>r.id;function xw(e,r){if(e&1&&Vv$1(0,"mspot-sidemenu-group",4),e&2){let t=yM().$implicit,a=yM(2);jv$1("item",t.group)("open",t.group.isExpanded||false)("isAdmin",a.isAdmin);}}function _w(e,r){if(e&1&&Vv$1(0,"mspot-sidemenu-item",7),e&2){let t=r.$implicit,a=yM(4);iD("pointer-events-none",a.isAdmin),jv$1("item",t);}}function bw(e,r){if(e&1&&(ta$3(0,"div",5),oM(1,_w,1,3,"mspot-sidemenu-item",6,Cw),Pd$1()),e&2){let t=yM().$implicit;uT(),iM(t.items);}}function Mw(e,r){if(e&1&&eM$1(0,xw,1,3,"mspot-sidemenu-group",4)(1,bw,3,0,"div",5),e&2){let t=r.$implicit;tM$1(t.kind==="group"?0:1);}}function Aw(e,r){if(e&1){let t=fM();Hd$1(0),EM(1),ta$3(2,"div",2,0),Zv$1("overflows",function(o){sh$1(t);let i=yM();
2737return ah$1(i.overflows.emit(o))}),Vv$1(4,"mspot-community-system-links",3),oM(5,Mw,2,1,null,null,nM),Pd$1(),$d$1();}if(e&2){let t=TM(3),a=yM();uT(2),jv$1("scrollTarget",t)("ngClass",pN(20,fw,a.px,a.pt)),uT(2),jv$1("communityTitle",a.communityTitle)("startPageLink",a.startPageLink)("hasStartPage",a.hasStartPage)("homeLink",a.homeLink())("isAdmin",a.isAdmin)("isUserModerator",a.isUserModerator)("gamificationEnabled",a.gamificationEnabled())("eventPlanEnabled",a.eventPlanEnabled())("personalGroupLabel",a.personalGroupLabel())("contentGroupLabel",a.contentGroupLabel())("myCoursesTitle",a.myCoursesTitle)("hasPortals",a.hasPortals)("portalsTitle",a.defaultPortalsName)("hasAgents",a.hasAgents)("agentsTitle",a.defaultAgentsName())("spacesActive",a.spacesActive)("currentTheme",a.currentTheme())("isSideNavEnabled",a.isSideNavEnabled()),uT(),iM(a.sections);}}var kh=(()=>{class e{constructor(){this.overflows=J8(),this.currentTheme=X8(void 0),this.isSideNavEnabled=X8(false),this.items=[],this.isAdmin=false,this.hasStartPage=false,this.homeLink=X8("/home/start"),this.spacesActive=false,this.isUserModerator=false,this.gamificationEnabled=X8(false),this.eventPlanEnabled=X8(false),this.personalGroupLabel=X8(),this.contentGroupLabel=X8(),this.defaultAgentsName=X8(),this.hidePortalsOverview=X8(false),this.hideAgentsOverview=X8(false),this.px="",this.pt="",this.unreadSpaceItemsCounter$=g$k(n$4).pipe(st$c(t=>Object.values(t).reduce((a,o)=>a+o,0))),this._cacheKey=null,this._filteredItemsCache=[],this._sectionsCache=[];}_ensureFresh(){this._cacheKey&&this._cacheKey.items===this.items&&this._cacheKey.spacesActive===this.spacesActive||(this._filteredItemsCache=this._computeFilteredItems(),this._sectionsCache=this._computeSections(this._filteredItemsCache),this._cacheKey={items:this.items,spacesActive:this.spacesActive});}get filteredItems(){return this._ensureFresh(),this._filteredItemsCache}_computeFilteredItems(){let t=(this.items||[]).filter(o=>o.id!==Ea&&o.id!==ka&&!this._isAutoMissingPortal(o)&&!this._isAutoMissingAgent(o));return this.spacesActive?t:t.filter(o=>o.type!=="space").map(o=>o.type!=="group"?o:s$e(r$d({},o),{children:(o.children||[])?.filter(i=>i.type!=="space")||[]}))}get sections(){return this._ensureFresh(),this._sectionsCache}_computeSections(t){let a=[];for(let o of t){if(o.type==="group"){a.push({kind:"group",group:o});continue}let i=a[a.length-1];i?.kind==="items"?i.items.push(o):a.push({kind:"items",items:[o]});}return a}_isAutoMissingPortal(t){return t.type==="portal"&&!!t.portalId&&t.id===t.portalId}_isAutoMissingAgent(t){return t.type==="aiPilot"&&!!t.aiPilotId&&t.id===t.aiPilotId}get hasPortals(){return this.hidePortalsOverview()?false:((this.items||[]).find(a=>a.id===Ea)?.children?.length??0)>0}get hasAgents(){return this.hideAgentsOverview()?false:((this.items||[]).find(a=>a.id===ka)?.children?.length??0)>0}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-sidemenu"]],hostAttrs:[1,"flex","flex-col","h-full"],inputs:{currentTheme:[1,"currentTheme"],isSideNavEnabled:[1,"isSideNavEnabled"],items:"items",isAdmin:"isAdmin",hasStartPage:"hasStartPage",homeLink:[1,"homeLink"],spacesActive:"spacesActive",isUserModerator:"isUserModerator",gamificationEnabled:[1,"gamificationEnabled"],eventPlanEnabled:[1,"eventPlanEnabled"],startPageLink:"startPageLink",defaultPortalsName:"defaultPortalsName",personalGroupLabel:[1,"personalGroupLabel"],contentGroupLabel:[1,"contentGroupLabel"],myCoursesTitle:"myCoursesTitle",communityTitle:"communityTitle",defaultAgentsName:[1,"defaultAgentsName"],hidePortalsOverview:[1,"hidePortalsOverview"],hideAgentsOverview:[1,"hideAgentsOverview"],px:"px",pt:"pt"},outputs:{overflows:"overflows"},ngContentSelectors:ww,decls:1,vars:0,consts:[["scrollArea",""],[4,"transloco"],["mspotScrolledClass","","mspotOverflowsEmitter","",1,"scrollbar","flex","min-h-0","flex-1","flex-col","gap-6","overflow-y-auto","overflow-x-hidden","pb-4",3,"overflows","scrollTarget","ngClass"],[1,"flex","flex-col","gap-6",3,"communityTitle","startPageLink","hasStartPage","homeLink","isAdmin","isUserModerator","gamificationEnabled","eventPlanEnabled","personalGroupLabel","contentGroupLabel","myCoursesTitle","hasPortals","portalsTitle","hasAgents","agentsTitle","spacesActive","currentTheme","isSideNavEnabled"],[1,"block",3,"item","open","isAdmin"],[1,"flex","flex-col","gap-[var(--nav-list-gap,0.25rem)]"],[1,"block",3,"item","pointer-events-none"],[1,"block",3,"item"]],template:function(a,o){a&1&&(DM(),gv$1(0,Aw,7,23,"ng-container",1));},dependencies:[ve,Bh,mx$1,yt$a,Sh,ya,Hh],encapsulation:2});}}return e})();function Eh(e){return ()=>g$k(f$6).isFeatureEnabled(e)?true:(g$k(H$8).navigate(["/"]),false)}var Dh=(()=>{class e{constructor(){this._maQuery=g$k(f$8),this._router=g$k(H$8),this._spacesQuery=g$k(M$9),this._logger=g$k($E);}canActivate(t,a){return this._logger.info("[DIAG][CommunityFeatureGuard] canActivate start",{url:a.url}),_I([this._maQuery.select(o=>
2737o.spacesActive),this._spacesQuery.selectAllAfterLoading()]).pipe(hn$9(1),rp$2(5e3),Ip$1(([o,i])=>this._logger.info("[DIAG][CommunityFeatureGuard] state resolved",{spacesActive:o,spaceCount:i.length})),st$c(([o,i])=>o&&i.length>0?true:(this._logger.info("[DIAG][CommunityFeatureGuard] redirecting to /library",{spacesActive:o,spaceCount:i.length}),this._router.parseUrl("/library"))),gc$1(o=>o instanceof np$2?(this._logger.warn("[CommunityFeatureGuard] timed out, redirecting to /library",{name:o?.name??String(o)}),yI(this._router.parseUrl("/library"))):vI(()=>o)))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Fh=(()=>{class e{constructor(){this._http=g$k(Ce$a);}getCommunityData(t){return this._http.get(`/community-client/${t}`)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Ih=(()=>{class e extends de$2{constructor(){super(...arguments),this.spaceSyncService=g$k(Ah),this.communityDataService=g$k(Fh),this._maQuery=g$k(f$8),this._logger=g$k($E);}sync(){return this._maQuery.select().pipe(st$c(({schoolId:t,spacesActive:a})=>({schoolId:t,spacesActive:!!a})),pp$2((t,a)=>t.schoolId===a.schoolId&&t.spacesActive===a.spacesActive),Kf$1(({schoolId:t,spacesActive:a})=>t?a?(this.spaceSyncService.startLoading(),this._logger.info("[DIAG][SpacesSyncGuard] loading spaces",{schoolId:t}),this.communityDataService.getCommunityData(t).pipe(Ip$1(o=>this._logger.info("[DIAG][SpacesSyncGuard] spaces loaded",{count:o.spaces.length})),Kf$1(o=>this.spaceSyncService.saveSpaces(o.spaces)),gc$1(o=>(this._logger.error("[SpacesSyncGuard] failed to load spaces",{status:o?.status,statusText:o?.statusText,url:o?.url,message:typeof o?.error=="object"&&o?.error?.message||o?.message}),this.spaceSyncService.saveSpaces([]))))):this.spaceSyncService.saveSpaces([]):(this.spaceSyncService.startLoading(),pn$a)))}static{this.\u0275fac=(()=>{let t;return function(o){return (t||(t=Wg$1(e)))(o||e)}})();}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var yw=64,Vw=68,zw=54,Sw=36,Hw="--content-top-offset",Da=(()=>{class e{constructor(){this._document=g$k(Te$g),this._isHandset$=g$k(n$2),this._isFullWidth$=g$k(i$1),this._adminToolbarVisible=new Gr$6(false),this._sideNavEnabled=new Gr$6(false),this._lowerBarVisible=new Gr$6(false),this._headerless=new Gr$6(false),this.adminToolbarVisible$=this._adminToolbarVisible.asObservable(),this.contentTopDet$=_I([this._isHandset$,this._isFullWidth$,this._adminToolbarVisible]).pipe(sp$2(0),st$c(([t,a,o])=>({isHandset:t,isFullWidth:a,adminToolbarVisible:o})),vp({bufferSize:1,refCount:true})),this.contentTopOffsetPx$=_I([this._isHandset$,this._adminToolbarVisible,this._sideNavEnabled,this._lowerBarVisible,this._headerless]).pipe(sp$2(0),st$c(([t,a,o,i,d])=>{let f=a?Sw:0;return (d&&!t?0:this._calcFixedHeaderHeight(t,o,i))+f}),pp$2(),vp({bufferSize:1,refCount:true})),this._contentTopOffsetPx=YG(this.contentTopOffsetPx$,{initialValue:0}),Es$3(()=>{let t=this._contentTopOffsetPx();this._document.documentElement.style.setProperty(Hw,`${t}px`);});}adminToolbarVisibilityChange(t){this._adminToolbarVisible.next(t);}sideNavEnabledChange(t){this._sideNavEnabled.next(t);}lowerBarVisibleChange(t){this._lowerBarVisible.next(t);}headerlessChange(t){this._headerless.next(t);}_calcFixedHeaderHeight(t,a,o){return t?zw:a?Vw:o?0:yw}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Nh=()=>{let e=g$k(le$5).isLeaderboardEnabled,r=g$k(H$8);return e()?true:r.parseUrl("/library")};function Ph(e){return e.payload.type==="levelUp"&&e.payload.badgeKey===h$3}var Rh=(()=>{class e{constructor(){this._notifications=g$k(ut$6),this._gamificationClientService=g$k(le$5),this._loggingService=g$k($E),this._destroyRef=g$k(de$b),this._queuedNotificationIds=new Set,this._queue=On$7([]),this._scannedSchoolIds=new Set,this._schoolId=YG(g$k(f$8).selectSchoolId()),this.currentCelebration=On$7(null),Es$3(()=>{let t=this._schoolId();!t||this._scannedSchoolIds.has(t)||!this._gamificationClientService.isLevelsEnabled()||!this._notifications.notificationsQuery.data()||(this._scannedSchoolIds.add(t),this._scanUnreadLevelUps());}),this._notifications.levelUpReceived$.pipe(qG(this._destroyRef)).subscribe(t=>this._enqueue(t));}async dismissCurrentCelebration(){let t=this.currentCelebration();if(t){this.currentCelebration.set(null),this._showNextCelebration();try{await this._notifications.markOneAsReadMutation.mutateAsync({schoolId:t.schoolId,notificationId:t._id}),this._queuedNotificationIds.delete(t._id);}catch(a){this._queuedNotificationIds.delete(t._id),this._requeue(t),this._loggingService.error("Failed to mark level-up celebration as read",a);}}}_scanUnreadLevelUps(){this._notifications.notifications().filter(t=>!t.isRead&&j$8(t)&&Ph(t)).sort((t,a)=>new Date(t.createdAt).getTime()-new Date(a.createdAt).getTime()).forEac
2737h(t=>this._enqueue(t));}_enqueue(t){this._gamificationClientService.isLevelsEnabled()&&Ph(t)&&(this._queuedNotificationIds.has(t._id)||(this._queuedNotificationIds.add(t._id),this._queue.update(a=>[...a,t]),this._showNextCelebration()));}_showNextCelebration(){if(this.currentCelebration())return;let[t,...a]=this._queue();t&&(this._queue.set(a),this.currentCelebration.set(t));}_requeue(t){if(this.currentCelebration()){this._queuedNotificationIds.add(t._id),this._queue.update(a=>[t,...a]);return}this._queuedNotificationIds.add(t._id),this.currentCelebration.set(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Oh={SAVE_MOOD_TRACKER_ANSWER:(e,r)=>({url:`/survey/answers/mood-tracker/${e}`,data:r,method:b$e.POST})};var qh=(()=>{class e{constructor(){this._http=g$k(Ce$a);}saveMoodTracker(t){return this._http.generic(Oh.SAVE_MOOD_TRACKER_ANSWER(t.schoolId,t))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Lw={1:"\u{1F620}",2:"\u{1F641}",3:"\u{1F610}",4:"\u{1F642}",5:"\u{1F929}"},$h=(()=>{class e{transform(t){return t&&Lw[Math.round(t)]||"\u{1F642}"}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275pipe=Yn$8({name:"ratingSmiley",type:e,pure:true});}}return e})();function Tw(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.updateValue(1))}),ta$3(2,"span",2),QM(3),EN(4,"ratingSmiley"),Pd$1(),ta$3(5,"div",3)(6,"span",4),QM(7),Pd$1()()(),ta$3(8,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.updateValue(2))}),ta$3(9,"span",2),QM(10),EN(11,"ratingSmiley"),Pd$1(),ta$3(12,"div",3)(13,"span",4),QM(14),Pd$1()()(),ta$3(15,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.updateValue(3))}),ta$3(16,"span",2),QM(17),EN(18,"ratingSmiley"),Pd$1(),ta$3(19,"div",3)(20,"span",4),QM(21,"Okay"),Pd$1()()(),ta$3(22,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.updateValue(4))}),ta$3(23,"span",2),QM(24),EN(25,"ratingSmiley"),Pd$1(),ta$3(26,"div",3)(27,"span",4),QM(28),Pd$1()()(),ta$3(29,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.updateValue(5))}),ta$3(30,"span",2),QM(31),EN(32,"ratingSmiley"),Pd$1(),ta$3(33,"div",3)(34,"span",4),QM(35,"Super"),Pd$1()()(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(),jv$1("ngClass",a.value===1?"bg-mspot-neutral-300":""),uT(2),yD(CN(4,13,1)),uT(4),yD(t("survey.smilies.terrible")),uT(),jv$1("ngClass",a.value===2?"bg-mspot-neutral-300":""),uT(2),yD(CN(11,15,2)),uT(4),yD(t("survey.smilies.bad")),uT(),jv$1("ngClass",a.value===3?"bg-mspot-neutral-300":""),uT(2),yD(CN(18,17,3)),uT(5),jv$1("ngClass",a.value===4?"bg-mspot-neutral-300":""),uT(2),yD(CN(25,19,4)),uT(4),yD(t("survey.smilies.good")),uT(),jv$1("ngClass",a.value===5?"bg-mspot-neutral-300":""),uT(2),yD(CN(32,21,5));}}var Uh=(()=>{class e{constructor(){this._cdr=g$k(Va$2),this.value=3,this.disabled=false,this.valueChanged=new Ct$h,this.changed=t=>{},this.touched=()=>{};}get textSizeClass(){return navigator?.userAgent?.includes("Mac")?"text-5xl":"text-4xl"}updateValue(t){this.value=t,this.touched(),this.changed(t),this.valueChanged.emit(t);}writeValue(t){this.value=t,this._cdr.markForCheck();}registerOnChange(t){this.changed=t;}registerOnTouched(t){this.touched=t;}setDisabledState(t){this.disabled=t;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-smiley-rating"]],hostAttrs:[1,"flex","flex-wrap","items-center","gap-6"],hostVars:2,hostBindings:function(a,o){a&2&&BM(o.textSizeClass);},inputs:{disabled:"disabled"},outputs:{valueChanged:"valueChanged"},features:[cN([{provide:E$f,useExisting:Qi$3(()=>e),multi:true}])],decls:1,vars:0,consts:[[4,"transloco"],[1,"group","relative","flex","flex-col","items-center","justify-center","rounded-xl","p-0.5","transition-transform","hover:scale-125",3,"click","ngClass"],[1,"flex","h-12","w-12","items-center","justify-center"],[1,"inset-x","absolute","-bottom-3","flex","justify-center"],[1,"text-xxs","group-hover:text-mspot-neutral-500","text-transparent"]],template:function(a,o){a&1&&gv$1(0,Tw,36,23,"ng-container",0);},dependencies:[yt$a,mx$1,$h],encapsulation:2});}}return e})();function Bw(e,r){if(e&1&&(Vv$1(0,"input",5),iS()),e&2){let t=yM().$index,a=yM(2);jv$1("placeholder",a.getQuestionPlaceholder(t)||""),aS();}}function kw(e,r){if(e&1&&(Vv$1(0,"input",6),iS()),e&2){let t=yM().$index,a=yM(2);jv$1("placeholder",a.getQuestionPlaceholder(t)||""),aS();}}function Ew(e,r){if(e&1&&(Vv$1(0,"textarea",7),iS()),e&2){let t=yM().$index,a=yM(2);jv$1("placeholder",a.getQuestionPlaceholder(t)||""),aS();}}function Dw(e,r){if(e&1&&(ta$3(0,"div")(1,"div",3)(2,"mspot-form-field-std",4),eM$1(3,Bw,1,1,"input",5)(4,kw,1,1,"input",6)(5,Ew,1,1,"textarea",7),Pd$1()()()),e&2){let t,a=r.$implicit,o=r.$index,i=yM().$implicit,d=yM();
2737uT(),jv$1("formGroup",a),uT(),jv$1("label",d.getQuestion(o)||i("survey.question")),uT(),tM$1((t=d.getQuestionType(o))==="text"?3:t==="number"?4:t==="longText"?5:-1);}}function Fw(e,r){if(e&1&&(Hd$1(0,1),ta$3(1,"div",2),oM(2,Dw,6,3,"div",null,rM),Pd$1(),$d$1()),e&2){let t=yM();uT(),jv$1("ngClass",t.showQuestions?"scale-y-1":"h-0 scale-y-0 overflow-hidden"),uT(),iM(t.questionsCtrlGroups);}}var jh=(()=>{class e{constructor(){this._formGroupDirective=g$k(Fn$7),this._formBuilder=g$k(ri$5),this.showQuestions=true;}get form(){return this._formGroupDirective.form}get questionsCtrl(){return this.form.get("questions")}get questionsCtrlGroups(){return this.questionsCtrl.controls}ngOnChanges(t){t.questions&&this.questions&&(this.questionsCtrl.clear(),this._initQuestions(this.questions));}getQuestionPlaceholder(t){return this.questions?.[t]?.placeholder||""}getQuestionType(t){return this.questions?.[t]?.type}getQuestion(t){return this.questions?.[t]?.question||""}_initQuestions(t){t?.forEach(a=>this._addQuestion(a));}_addQuestion(t){let a={questionId:zD.ShortField,type:zD.ShortField,question:zD.LongField,answer:zD.LongField},o=this._formBuilder.group(a);o.patchValue(t),this.questionsCtrl.push(o);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-question-form"]],hostAttrs:[1,"block"],inputs:{questions:"questions",showQuestions:"showQuestions"},features:[cN([],[{provide:h$8,useExisting:Fn$7}]),Ar$8],decls:1,vars:0,consts:[["formArrayName","questions",4,"transloco"],["formArrayName","questions"],[1,"origin-top","space-y-6","overflow-hidden","transition-transform","duration-300",3,"ngClass"],[1,"space-y-2",3,"formGroup"],[1,"w-full","p-px",3,"label"],["mspotInput","","formControlName","answer","name","answer","type","text",3,"placeholder"],["mspotInput","","formControlName","answer","name","answer","type","number",3,"placeholder"],["mspotInput","","formControlName","answer","rows","3",3,"placeholder"]],template:function(a,o){a&1&&gv$1(0,Fw,4,1,"ng-container",0);},dependencies:[mx$1,oi$5,Qe$b,mn$7,Xn$7,Yn$6,Fn$7,Mn$6,At$7,yt$a,ae$2,v$3],encapsulation:2});}}return e})();function Iw(e,r){if(e&1&&(ta$3(0,"div",15),QM(1),Pd$1()),e&2){let t=yM(3);uT(),Gd$1(" ",t.moodTracker?.instructor?.heading," ");}}function Nw(e,r){if(e&1&&(ta$3(0,"div",1)(1,"div",12)(2,"div",13),Vv$1(3,"img",14),ta$3(4,"div"),eM$1(5,Iw,2,1,"div",15),ta$3(6,"div",16),QM(7),Pd$1()()(),ta$3(8,"div",17),yh$1(),ta$3(9,"svg",18),Vv$1(10,"path",19),Pd$1()()()()),e&2){let t=yM(2);jv$1("ngClass",t.showAlways?"absolute":"fixed"),uT(3),jv$1("src",t.photoUrl||t.moodTracker?.instructor?.photoUrl||t.placeholderImg,Gm$1),uT(2),tM$1(t.moodTracker?.instructor?.heading?5:-1),uT(2),Gd$1(" ",t.moodTracker?.instructor?.name||"Name"," ");}}function Pw(e,r){if(e&1&&Vv$1(0,"mspot-error",8),e&2){let t=yM(2);jv$1("errors",t.ratingCtrl.errors);}}function Rw(e,r){if(e&1&&Vv$1(0,"mspot-question-form",9),e&2){let t=yM(2);jv$1("questions",t.moodTracker?.questions)("showQuestions",t.ratingCtrl.value||t.showAlways);}}function Ow(e,r){if(e&1){let t=fM();Hd$1(0),eM$1(1,Nw,11,4,"div",1),ta$3(2,"h3",2),QM(3),Pd$1(),ta$3(4,"div",3),QM(5),Pd$1(),ta$3(6,"form",4)(7,"div",5)(8,"div")(9,"mspot-form-field-std",6),Vv$1(10,"mspot-smiley-rating",7),iS(),eM$1(11,Pw,1,1,"mspot-error",8),Pd$1()(),eM$1(12,Rw,1,2,"mspot-question-form",9),ta$3(13,"div",10)(14,"button",11),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.save())}),QM(15),Pd$1()()()(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(),tM$1(a.moodTracker?.instructor?.active?1:-1),uT(2),yD(a.moodTracker?.heading||t("text.title")),uT(2),Gd$1(" ",a.moodTracker?.description," "),uT(),jv$1("formGroup",a.form),uT(3),jv$1("label",a.moodTracker?.ratingQuestion||t("survey.settings.ratingQuestion")),uT(),aS(),uT(),tM$1(a.ratingCtrl.invalid&&a.ratingCtrl.touched?11:-1),uT(),tM$1(a.moodTracker?.questions?.length?12:-1),uT(3),Gd$1(" ",a.moodTracker?.buttonText||t("survey.settings.buttonTextPlaceholder")," ");}}var Gh=(()=>{class e{constructor(){this._formBuilder=g$k(ri$5),this.showAlways=false,this.form=this._formBuilder.group({questions:this._formBuilder.array([]),rating:[null,[Ce$8.required]]}),this.saveResult=new Ct$h,this.placeholderImg=R$6;}get ratingCtrl(){return this.form.get("rating")}save(){if(!this.form.valid){console.log("form invalid"),this.form.markAllAsTouched();return}this.saveResult.emit(this.form.value);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-moodtracker-dialog-form"]],inputs:{showAlways:"showAlways",moodTracker:"moodTracker",photoUrl:"photoUrl"},outputs:{saveResult:"saveResult"},decls:1,vars:0,consts:[[4,"transloco"],[3,"ngClass"],[1,"heading-new"],[1,"subtitle-new"],[1,"mt-6",3,"formGroup"],[1,"space-y-6"],[1,"w-full",3,"label"],["formControlName","rating",1,"mt-2","justify-center"],[3,"errors"],[3,"questions","showQuestions"],[1,"flex","justify-end"],["mspot-button","","variant","primary","type","button",3,"click"],[1,"inset-x-0"],[1,"flex","items-center","gap-4",2,"margin-top","-110px"],["mspotProfileImgLoadErr","","alt","Profile Photo Url",1,"h-16","w-16","rounded-full",3,"src"],[1,"text-white"],[1,"text-xl","font-semibold","text-white"],[1,"ml-4","mt-3"],["width","24","height","12","viewBox","0 0 24 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5858 1.41421C11.3668 0.633164 12.6332 0.633164 13.4142 1.41421L24 12L0 12L10.5858 1.41421Z","fill","white"]],template:function(a,o){a&1&&gv$1(0,O
2737w,16,8,"ng-container",0);},dependencies:[bt$b,yt$a,Pe$2,oi$5,ei$5,Xn$7,Yn$6,Fn$7,Mn$6,Uh,jh,kx$1,mx$1,X$3,ae$2,q$b],encapsulation:2});}}return e})();var Qh=(()=>{class e{constructor(){this.dialogRef=g$k(O$c),this.moodTracker=g$k(Ze$9);}saveResult(t){this.dialogRef.close(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-moodtracker-dialog"]],decls:1,vars:1,consts:[[3,"saveResult","moodTracker"]],template:function(a,o){a&1&&(ta$3(0,"mspot-moodtracker-dialog-form",0),Zv$1("saveResult",function(d){return o.saveResult(d)}),Pd$1()),a&2&&jv$1("moodTracker",o.moodTracker);},dependencies:[Gh],encapsulation:2});}}return e})();var Zh=(e,r,t)=>{if(e?.lastMoodTracker){let o=new Date(e?.lastMoodTracker||0).valueOf()+r*S0.msPerDay;return new Date().valueOf()>o}else {let o=new Date(e?.created||0).valueOf()+t*S0.msPerDay;return new Date().valueOf()>o}};var Wh=(()=>{class e{constructor(){this.activated=false,this._moodTrackerService=g$k(qh),this._schoolUserQuery=g$k(M$a),this._maQuery=g$k(f$8),this._dialogService=g$k(Ss$2),this._noti=g$k(wi$1);}canActivate(t,a){return this.activated||(this.activated=true,_I([this._maQuery.select(),this._schoolUserQuery.selectAfterLoading()]).pipe($f$1(),Pt$b(([o,i])=>!o.moodTracker?.active||o.moodTracker.enabledForSelectedUsersOnly&&!(i.organisation?.moodTrackerEnabled===true||i.moodTrackerEnabled===true)?false:Zh(i,o.moodTracker.interval,o.moodTracker.firstAskAfterDays||0)),Kf$1(([o])=>this._dialogService.open(Qh,{data:o.moodTracker,dialogConfig:{panelClass:H$a.SIZE_420,backdropClass:"dark-backdrop",disableClose:true}}).pipe(st$c(i=>s$e(r$d({},i),{schoolId:o.id})))),Kf$1(o=>this._moodTrackerService.saveMoodTracker(o))).subscribe(()=>this._noti.stdSuccessIntl())),true}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function qw(e,r){if(e&1&&(Hd$1(0),ta$3(1,"div",1)(2,"div"),yh$1(),ta$3(3,"svg",2),Vv$1(4,"path",3)(5,"path",4),Pd$1()(),vh$1(),ta$3(6,"div",5)(7,"h3"),QM(8),Pd$1()(),ta$3(9,"div",6)(10,"a",7),QM(11),Pd$1()()(),$d$1()),e&2){let t=r.$implicit;uT(8),yD(t("client.profile.fingerprint.doubleLogin")),uT(3),yD(t("auth.backToLogin"));}}var Kh=(()=>{class e{constructor(){this.subs=new P$1;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-double-login"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","h-screen","flex-col","items-center","justify-center","bg-white"],["viewBox","0 0 64 64","xmlns","http://www.w3.org/2000/svg",1,"h-28","w-28"],["d","M4 10v36h26v7H20v1h24v-1H34v-7h26V10zm1 1h54v34H5zm26 35h2v7h-2z","paint-order","fill markers stroke"],["d","M32 18l-6 2.752v6.195c0 .776.495 1.383 1.043 1.916.553.538 1.245 1.035 1.93 1.473.964.634 1.993 1.156 3.027 1.664 1.134-.571 2.156-1.11 3.027-1.664.685-.438 1.377-.935 1.93-1.473.548-.533 1.043-1.14 1.043-1.916v-6.195zm0 1.1l5 2.293v5.554c0 .314-.262.735-.74 1.2-.473.46-1.12.93-1.772 1.347-1.242.796-2.373 1.334-2.488 1.389-.115-.055-1.246-.593-2.488-1.389-.652-.418-1.299-.888-1.772-1.348-.478-.464-.74-.885-.74-1.199v-5.554zM19 38h4v1h-4zM41 38h4v1h-4zM30 38h4v1h-4zM24.5 38h4v1h-4zM35.5 38h4v1h-4z","paint-order","fill markers stroke"],[1,"p-4","text-center"],[1,"mt-4","text-center"],["routerLink","/auth/login",1,"btn","btn-primary"]],template:function(a,o){a&1&&gv$1(0,qw,12,2,"ng-container",0);},dependencies:[yt$a,kt$7],encapsulation:2});}}return e})();var Xh=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-error"]],decls:10,vars:0,consts:[[1,"login-register"],[1,"login-register-box","error-card","text-center"],[1,"text-uppercase"],[1,"mb-7","mt-7","text-mspot-neutral-400"],["routerLink","/",1,"btn","btn-gray--stroked"]],template:function(a,o){a&1&&(ta$3(0,"div",0)(1,"div",1)(2,"h1"),QM(3,"404"),Pd$1(),ta$3(4,"h3",2),QM(5,"Page Not Found !"),Pd$1(),ta$3(6,"p",3),QM(7," You seem to be trying to find this way to home "),Pd$1(),ta$3(8,"a",4),QM(9,"Back to home"),Pd$1()()());},dependencies:[kt$7],encapsulation:2});}}return e})();var Yh=(e,r)=>{if(U$5.isNativePlatform()||!b$8("clientMfa")())return true;let a=g$k(H$8),o=g$k(f$8),i=g$k(z$1),d=g$k(nt$c);return o.selectAfterLoading().pipe(hn$9(1),Kf$1(f=>{if(!f?.clientMfaEnabled||!f.clientMfaEnforced)return yI(true);let y=d.currentUser;return y?o7(y.providerData)?je$e(i.isTotpMfaEnabled()).pipe(st$c(L=>L?true:a.createUrlTree(["/auth/mfa-required"]))):yI(true):yI(a.createUrlTree(["/auth/login"],{queryParams:{redirectTo:r.url}}))}))};function $w(e,r){if(e&1&&(ta$3(0,"a",5)(1,"button",6),Vv$1(2,"ng-icon",7),ta$3(3,"span"),QM(4),Pd$1()()()),e&2){let t=yM().$implicit,a=yM();jv$1("routerLink",a.backRoute),uT(4),yD(t("common.back"));}}function Uw(e,r){if(e&1&&(Hd$1(0),ta$3(1,"div",1)(2,"div")(3,"div",2),Vv$1(4,"ng-icon",3),Pd$1()(),ta$3(5,"div",4)(6,"h3"),QM(7),Pd$1()(),eM$1(8,$w,5,2,"a",5),Pd$1(),$d$1()),e&2){let t=r.$implicit,a=yM();uT(7),Gd$1(" ",t("auth.movedError")," "),uT(),tM$1(a.isCapacitor?8:-1);}}var jw=15e3,Jh=(()=>{class e{constructor(){this.isCapacitor=Y$2(),this.backRoute="/auth/generic-client/sch
2737ool-select",this._maQuery=g$k(f$8),this._maService=g$k(k$4),this._router=g$k(H$8),this._destroyRef=g$k(de$b);}ngOnInit(){this.listenForMa(),this.pollForMa();}listenForMa(){this._maQuery.select().pipe(Pt$b(t=>!!t.id),qG(this._destroyRef)).subscribe(()=>{this._router.navigate(["startpage"]);});}pollForMa(){Qe$f(0,jw).pipe(Ep$1(()=>!this._maQuery.getValue().id),Kf$1(()=>this._maService.retrySync()),qG(this._destroyRef)).subscribe();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-moved"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","h-screen","flex-col","items-center","justify-center","bg-white"],[1,"offline-icon"],["name","hero-signal-slash"],[1,"p-4","text-center"],["tabindex","-1",1,"mt-8",3,"routerLink"],[1,"btn-link-icon","flex","items-center","gap-1"],["name","heroChevronLeft",1,"text-lg"]],template:function(a,o){a&1&&gv$1(0,Uw,9,2,"ng-container",0);},dependencies:[yt$a,le$9,kt$7],styles:[".offline-icon[_ngcontent-%COMP%]{font-size:70px}"]});}}return e})();var tp=(()=>{class e{constructor(){this._schooluserService=g$k(Oe$5),this._sseService=g$k(ur),this._chatSseStateService=g$k(dr),this._clientNotificationTanstack=g$k(ut$6),this._gamificationProfileRefreshService=g$k(V$7),this._memberAreaQuery=g$k(f$8);}watchStream(t,a){let o=this._sseService.getSchoolUserDataStream(t,a).pipe(Ip$1(i=>{switch(i.type){case "user":i.payload&&this._schooluserService.updateUserInStore(i.payload);return;case "usernotification:v2":i.payload&&this._clientNotificationTanstack.upsertOne(i.payload);return;case "usergamification":i.payload&&this._gamificationProfileRefreshService.requestRefresh();return;}}));return this._memberAreaQuery.selectUserChatEnabled().pipe(Kf$1(i=>{if(i){let d=this._sseService.getGlobalChatDataStream(t,a).pipe(Ip$1(this._chatSseStateService.handleGlobalEvent));return xI(o,d)}return o}))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function Gw(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",1)(2,"h3",2),QM(3),Pd$1(),ta$3(4,"p",3),QM(5),Pd$1(),ta$3(6,"div",4)(7,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.reauthenticate())}),QM(8),Pd$1()()(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(3),Gd$1(" ",t("auth.oidcReauth.title")," "),uT(2),Gd$1(" ",t("auth.oidcReauth.message")," "),uT(2),jv$1("disabled",a.loading()),uT(),Gd$1(" ",t("auth.oidcReauth.button")," ");}}var ep=(()=>{class e{constructor(){this._dialogRef=g$k(O$c),this._data=g$k(Ze$9,{optional:true}),this._loginService=g$k(q),this._logger=g$k($E),this.loading=On$7(false);}reauthenticate(){this.loading.set(true),this._loginService.oidcLogin(D,this._data?.scopes).subscribe({next:()=>{this._dialogRef.close(true);},error:t=>{this._logger.error("OIDC re-authentication failed",t),this.loading.set(false),this._dialogRef.close(false);}});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-oidc-reauth-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"p-6"],[1,"text-lg","font-semibold"],[1,"mt-2","text-sm","text-mspot-neutral-600"],[1,"mt-4","flex","justify-end"],["mspotButton","","color","primary",3,"click","disabled"]],template:function(a,o){a&1&&gv$1(0,Gw,9,4,"ng-container",0);},dependencies:[yt$a,g$a],encapsulation:2});}}return e})();var Yn=(()=>{class e{constructor(){this._subSink=new P$1,this._isInitialized=false,this._currentUid=null,this._currentSchoolId=null,this._oidcExpiryTimer=null,this._oidcReauthInProgress=false,this._auth=g$k(nt$c),this._router=g$k(H$8),this._dialog=g$k(J$f),this._localStorage=g$k(S$6),this._sessionStorage=g$k(_$4),this._httpBackend=g$k(Ce$a),this._memberAreaQuery=g$k(f$8),this._gtmService=g$k(Dt$2),this._userService=g$k(Ai),this._schoolUserService=g$k(Oe$5),this._schoolUserDataService=g$k(W$d),this._sseService=g$k(tp),this._authManager=g$k(J$4),this._pushNotificationService=g$k(ir$1),this._logger=g$k($E);}canActivate(t,a){return U$5.isNativePlatform()?je$e(this._checkCapacitorAuth(a)):ie$d(this._auth).pipe(hn$9(1),Kf$1(async o=>o?await this._checkOidcSessionExpiry(o)?await this._provisionOidcIfNeeded(o)?await this._bootstrapSchoolUserIfNeeded(o,this._auth)?(this.startListenersAndEvents(o),n$8(o.uid),true):this._router.createUrlTree(["/auth/login"],{queryParams:{authCode:"auth/user-not-found"}}):this._router.createUrlTree(["/auth/login"],{queryParams:{redirectTo:a.url}}):this._router.createUrlTree(["/auth/login"],{queryParams:{redirectTo:a.url}}):this._router.createUrlTree(["/auth/login"],{queryParams:{redirectTo:a.url}})))}async _checkCapacitorAuth(t){this._logger.info("[DIAG][AuthGuard] _checkCapacitorAuth start",{url:t.url});let a=this._authManager.getCurrentAuth();if(!a)return this._logger.warn("[DIAG][AuthGuard] no currentAuth from AuthManager \u2014 redirecting"),this._router.createUrlTree(["/auth/generic-client/email"],{queryParams:{redirectTo:t.url}});let o=await this._waitForAuthReady(a);return this._logger.info("[DIAG][AuthGuard] auth ready",{hasUser:!!o,uid:o?.uid,tenantId:a.tenantId}),o?this._isOidcSessionExpired(o)?(this._logger.info("OIDC session expired on native, forcing re-login"),await this._signOutAndCleanup(a),this._router.createUrlTree(["/auth/generic-client/email"],{queryParams:{redirectTo:t.url}})):await this._provisionOidcIfNeeded(o)?await this._bootstrapSchoolUserIfNeeded(o,a)?(this._logger.info("[DIAG][AuthGuard] auth OK, calling startListenersAndEvents",{uid:o.uid,schoolId:this._memberAreaQuery.getSchoolId()}),this.startListenersAndEvents(o),n$8(o.uid),true):(this._logger.warn("[DIAG][AuthGuard] schoolUser bootstrap failed \u2014 redirecting"),this._router.createUrlTree(["/auth/generic-client/email"],{queryParams:{authCode:"auth/user-not-found"}})):(this._logger.warn("[DIAG][AuthGuard] OIDC provisioning failed \u2014 redirecting"),this._router.createUrlTree(["/auth/generic-client/email"],{queryParams:{redirectTo:t.url}})):(this._logger.warn("[DIAG][AuthGuard] no authUser after waitForAuthReady \u2014 redirecting"),this._router.createUrlTree(["/auth/generic-client/email"],{queryParams:{redirectTo:t.url}}))}async _waitForAuthReady(t){return await t.authStateReady(),t.currentUser}startListenersAndEvents(t){if(!t)return;let a=this._memberAreaQuery.getSchoolId(),o=this._currentUid===t.uid,i=this._currentSchoolId===a;this._isInitialized&&o&&i||(this._isInitialized&&(!o||!i)&&(this._subSink.unsubscribe(),this._isInitialized=false),this._isInitialized=true,this._currentUid=t.uid,this._currentSchoolId=a,E$2.production&&this._gtmService.authEvent(t?.email,t?.displayName),U$5.isNativePlatform()&&this._pushNotificationService.requestPermissionsAndRegister(),this._subSink.sink=this._userService.updateLastLogin(),this._subSink.sink=this._sseService.watchStream(this._memberAreaQuery.getSchoolId(),t.uid).pipe(Ip$1(d=>
2737{d.type==="user"&&this._saveUserToWindow(d.payload);})).subscribe(),this._subSink.sink=this._schoolUserService.syncUser(this._memberAreaQuery.getSchoolId()).pipe(Ip$1(d=>{this._logger.info("[DIAG][AuthGuard] syncUser emitted",{uid:d?.uid,schoolId:this._memberAreaQuery.getSchoolId(),hasCoursesCount:d?.hasCourses?.length??0}),this._saveUserToWindow(d);})).subscribe({error:d=>this._logger.error("[AuthGuard] syncUser failed",{status:d?.status,message:d?.message,url:d?.url})}),this._scheduleOidcExpiryCheck());}canDeactivate(){return this._clearOidcExpiryTimer(),this._subSink.unsubscribe(),this._isInitialized=false,this._currentUid=null,this._currentSchoolId=null,true}_isOidcSessionExpired(t){if(!t.providerData.some(f=>f.providerId.startsWith("oidc.")))return false;let o=this._memberAreaQuery.getValue()?.oidcSessionDurationHours;if(!o)return false;let i=t.metadata.lastSignInTime;if(!i)return true;let d=new Date(i).getTime()+o*60*60*1e3;return Date.now()>d}async _checkOidcSessionExpiry(t){if(!this._isOidcSessionExpired(t))return true;if(this._oidcReauthInProgress)return false;this._oidcReauthInProgress=true;try{let a=this._memberAreaQuery.getValue()?.oidcScopes??void 0,o=this._dialog.open(ep,{disableClose:!0,data:{scopes:a}});return await qE$1(o.afterClosed())?(this._subSink.unsubscribe(),this._isInitialized=!1,this._currentUid=null,this._currentSchoolId=null,!0):(await this._signOutAndCleanup(this._auth),!1)}finally{this._oidcReauthInProgress=false;}}async _provisionOidcIfNeeded(t){if(!t.providerData.some(i=>i.providerId.startsWith("oidc.")))return true;let o=this._memberAreaQuery.getSchoolId();if(this._currentUid===t.uid&&this._currentSchoolId===o&&this._isInitialized)return true;try{return await qE$1(this._httpBackend.post(y$1.Client.PROVISION(o),{})),!0}catch(i){return this._isOfflineLikeError(i)?(this._logger.warn("[AuthGuard] OIDC provisioning skipped \u2014 offline / network unreachable",this._extractStatus(i)),true):(this._logger.error("OIDC provisioning failed, forcing logout",i),await this._signOutAndCleanup(this._auth),false)}}async _bootstrapSchoolUserIfNeeded(t,a){if(t.providerData.some(d=>d.providerId.startsWith("oidc.")))return true;let i=this._memberAreaQuery.getSchoolId();if(!i)return true;try{return await qE$1(this._schoolUserDataService.getUser(i)),!0}catch(d){if(!(d instanceof H$j)||d.status!==404)return this._logger.warn("schoolUser bootstrap unexpected error",d),true;try{return await qE$1(this._schoolUserDataService.ssoSelfSignUp(i)),!0}catch(f){return this._isOfflineLikeError(f)?(this._logger.warn("[AuthGuard] schoolUser self-signup skipped \u2014 offline / network unreachable",this._extractStatus(f)),true):(this._logger.warn("SSO self-signup rejected, signing out",f),await this._signOutAndCleanup(a),false)}}}_isOfflineLikeError(t){return U$5.isNativePlatform()?typeof navigator<"u"&&navigator.onLine===false:false}_extractStatus(t){return t instanceof H$j?{status:t.status,url:t.url??void 0}:{}}_scheduleOidcExpiryCheck(){this._clearOidcExpiryTimer();let t=this._auth.currentUser;if(!t||!t.providerData.some(R=>R.providerId.startsWith("oidc.")))return;let o=this._memberAreaQuery.getValue()?.oidcSessionDurationHours;if(!o)return;let i=t.metadata.lastSignInTime;if(!i)return;let f=new Date(i).getTime()+o*60*60*1e3-Date.now();if(f<=0){this._handleScheduledOidcExpiry();return}let y=1440*60*1e3,L=Math.min(f,y);this._oidcExpiryTimer=setTimeout(()=>{this._oidcExpiryTimer=null,L<f?this._scheduleOidcExpiryCheck():this._handleScheduledOidcExpiry();},L);}async _handleScheduledOidcExpiry(){if(U$5.isNativePlatform()){this._logger.info("OIDC session expired on native, forcing re-login"),await this._signOutAndCleanup(this._auth),this._router.navigate(["/auth/generic-client/email"]);return}let t=this._auth.currentUser;if(!t)return;if(await this._checkOidcSessionExpiry(t)){let o=this._auth.currentUser;o&&(this.startListenersAndEvents(o),this._scheduleOidcExpiryCheck());}}_clearOidcExpiryTimer(){this._oidcExpiryTimer!=null&&(clearTimeout(this._oidcExpiryTimer),this._oidcExpiryTimer=null);}async _signOutAndCleanup(t){await oa$4(t),s$6(),this._localStorage.clear(),this._sessionStorage.clear();}_saveUserToWindow(t){window.msApi||(window.msApi={}),window.msApi.user={uid:t.uid,email:t.email,displayName:t.displayName};}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ap=(()=>{class e{constructor(){this._router=g$k(H$8),this._maQuery=g$k(f$8),this._auth=g$k(nt$c),this._authService=g$k(w$4),this._authManager=g$k(J$4);}canActivate(t,a){let o=Y$2();return o&&a.url.startsWith("/auth")?yI(true):o?this._handleCapacitorFlow():this._ensureMemberAreaOrRedirect("moved")}_handleCapacitorFlow(){return je$e(this._authService.hasOtpAuthorization()).pipe(Kf$1(t=>t?this._handleOtpAuthorizedUser():this._ensureMemberAreaOrRedirect("/auth/generic-client/email")))}_handleOtpAuthorizedUser(){return je$e(this._checkCapacitorAuth()).pipe(Kf$1(t=>t?je$e(r$7.get({key:"memberspot_school_url"})).pipe(Kf$1(({value:a})=>
2737a?this._ensureMemberAreaOrRedirect("/auth/generic-client/school-select"):yI(this._redirect("/auth/generic-client/school-select")))):je$e(r$7.get({key:"memberspot_school_url"})).pipe(Kf$1(({value:a})=>a?yI(this._redirect("/auth/login")):yI(this._redirect("/auth/generic-client/school-select"))))))}async _checkCapacitorAuth(){let t=this._authManager.getCurrentAuth();return t?(await t.authStateReady(),!!t.currentUser):false}_ensureMemberAreaOrRedirect(t){return this._maQuery.selectAfterLoading().pipe(st$c(a=>a.id?true:this._redirect(t)))}_redirect(t){return this._router.parseUrl(t)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function p2(e){return e?.customView?.startPage!=="agent"||!e.customView.startAiPilotId||e.customAgents!==true?null:e.customView.startAiPilotId}function Jn(e){return e?.customView?.startPage!=="dashboard"?null:e.customView.startDashboardId||null}function op(e,r){return O$o(r)||!!Jn(e)||!!p2(e)}var br=(()=>{class e{constructor(){this._router=g$k(H$8);}getHasHome(t,a){return op(t,a)}getHomeUrl(t,a){let o=t.customView?.startPage;if(O$o(a))return this._router.parseUrl("home/start");if(!o||o==="courses")return this._router.parseUrl("library");if(t.spacesActive&&o==="spaces")return this._router.parseUrl("community");if(Jn(t))return this._router.parseUrl("home/start");let i=p2(t);return i?this._router.parseUrl(`aipilot/${i}`):this._router.parseUrl("library")}getLowerBarVisible(t,a,o,i){if(t.sideNavEnabled)return false;let d=i||0,f=op(t,o)?1:0,y=o?.userDashboards?.length||0,R=f+(a?1:0)+y;return (R>0?R+1+d:d?d+1:0)>3}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return k0([_r$5,F0("design:type",Function),F0("design:paramtypes",[Object,Boolean,Object,Number]),F0("design:returntype",void 0)],e.prototype,"getLowerBarVisible",null),e})();var Qw=new Set([0,401,403,404]),rp=5e3,np=(()=>{class e{constructor(){this._maQuery=g$k(f$8),this._startpageService=g$k(br),this._schoolUserQuery=g$k(M$a),this._router=g$k(H$8),this._httpAi=g$k(m$2),this._queryClient=g$k(_$d),this._logging=g$k($E);}canActivate(t){return _I([this._maQuery.select(),this._schoolUserQuery.selectAfterLoading()]).pipe(Pt$b(([a])=>!!a.id),hn$9(1),Kf$1(([a,o])=>this._resolveHomeUrl(a,o).pipe(st$c(i=>(i.queryParams=r$d(r$d({},t.queryParams),i.queryParams),i)))))}_resolveHomeUrl(t,a){let o=this._startpageService.getHomeUrl(t,a),i=p2(t);return !i||O$o(a)?yI(o):this._probeAgentAccess(t.id,i).pipe(st$c(d=>d?o:this._router.parseUrl("library")))}_probeAgentAccess(t,a){return je$e(this._queryClient.fetchQuery({queryKey:D$4(t,a),queryFn:()=>$$3(this._httpAi,t,a,{skipRetry:true,timeoutMs:rp}),retry:false,networkMode:"always"})).pipe(rp$2(rp),st$c(()=>true),gc$1(o=>{if(o instanceof np$2)return this._logging.warn("[StartPageGuard] agent probe timed out",{schoolId:t,aiPilotId:a}),yI(false);let i=o instanceof H$j?o.status:void 0;return (i===void 0||!Qw.has(i))&&this._logging.error("[StartPageGuard] agent probe failed",o,{schoolId:t,aiPilotId:a}),yI(false)}))}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ti=(()=>{class e{constructor(){this._authService=g$k(Je$2),this._router=g$k(H$8),this._logger=g$k($E);}async canActivate(t,a){let{redirectTo:o,token:i,isPreview:d}=t.queryParams;if(!o||!i)return await this._authService.signOut(),this._router.parseUrl("/auth/login");let f=d==="true";try{return this._authService.clearPreview(),await this._authService.checkToken(i,void 0,f),f&&this._authService.markAsPreview(),this._router.parseUrl(o)}catch(y){return this._logger.warn("[TokenAuthGuard] token authentication failed",y),await this._authService.signOut(),this._router.parseUrl("/auth/login")}}canDeactivate(t,a,o,i){return i.url.startsWith("/token")||i.url==="/auth/login"||i.url.startsWith("/auth/login?redirectTo=")?this._router.parseUrl("/startpage"):true}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ip=(()=>{class e{constructor(){this._subs=new P$1,this._noti=g$k(wi$1),this._schoolUserQuery=g$k(M$a),this._afAuth=g$k(nt$c),this._router=g$k(H$8),this._authManager=g$k(J$4),this._logger=g$k($E);}canActivate(t,a){return this._logger.info("[DIAG][UserHasAccessGuard] canActivate start",{url:a.url}),U$5.isNativePlatform()?je$e(this._checkCapacitorUser()).pipe(Kf$1(o=>(this._logger.info("[DIAG][UserHasAccessGuard] capacitor user check",{hasUser:o}),o?this._schoolUserQuery.selectAfterLoading().pipe(st$c(i=>(this._logger.info("[DIAG][UserHasAccessGuard] schoolUser after loading",{hasUserObj:!!i,uid:i?.uid}),i?true:(this._logger.warn("[DIAG][UserHasAccessGuard] schoolUser not found \u2014 redirecting to /auth/generic-client/email"),this._noti.errorIntl("admin.notifications.access.noAccessToThisArea"),this._router.navigate(["auth","generic-client","email"]),false)))):(this._logger.warn("[DIAG][UserHasAccessGuard] no capacitor auth user \u2014 redirecting to /auth/generic-client/email"),this._noti.errorIntl("admin.notifications.access.noAccessToThisArea"),this._router.navigate(["auth","generic-client","email"]),yI(false))))):_I([this._schoolUserQuery.selectAfterLoading(),ie$d(this._afAuth)]).pipe(sp$2(0),Pt$b(([o,i])=>!!i),st$c(([o])=>o?true:(this._noti.errorIntl("admin.notifications.access.noAccessToThisArea"),this._router.navigate(["auth","login"]),false)))}async _checkCapacitorUser(){let t=this._authManager.getCurrentAuth();return t?(await Promise.race([t.authStateReady(),new Promise(a=>setTimeout(a,5e3))]),!!t.currentUser):false}canDeactivate(t,a,o,i){return this._subs.unsubscribe(),true}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var sp={provide:FE,useFactory:()=>g$k(_t).isDemoView$},lp={provide:BE,useFactory:()=>g$k(_t).isAdminPreviewActive$},_t=(()=>{class e{constructor(){this._demoView$=new Gr$6(true),this._schoolUser$=g$k(M$a).select(),this.demoView$=this._demoView$.asObservable(),this.isDemoCourseView$=_I([this._schoolUser$,g$k(Qt$2).selectActiveIdAfterLoading()]).pipe(Pt$b(([t])=>!!t),st$c(([t,a])=>{if(!a)return false;let o=t?.hasCourses?.find(i=>i.courseId===a);return o?!!o.isFromInternalOffer:false}),pp$2(),vp({refCount:true})),this.isAdminInPreview$=this._schoolUser$.pipe(st$c(t=>t?.hasCourses?.some(a=>a.isFromInternalOffer)??false),pp$2(),vp({refCount:true})),this.isAdminPreviewActive$=_I([this.isAdminInPreview$,this._demoView$]).pipe(st$c(([t,a])=>t&&a),pp$2(),vp({refCount:true})),this.isDemoView$=Pe$4([this.isDemoCourseView$,this._demoView$]).pipe(st$c(([t,a])=>!!t&&!!a),pp$2(),vp({refCount:true}));}get demoViewValue(){return this._demoView$.value}changeDemoView(t){this._demoView$.next(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Mr=(()=>{class e{constructor(){this._router=g$k(H$8),this._backend=g$k(v$i),this._currentLeaf=YG(this._router.events.pipe(Pt$b(t=>t instanceof O$9),Qf$1(null),st$c(()=>this._findLeaf(this._router.routerState.snapshot.root))),{initialValue:null}),this.portalRoute=qd$1(()=>{let t=this._currentLeaf(),a=t?.data?.portal;if(!t||!a)return null;if(a.isStart)return {dashboardId:null,isStart:true};let o=t.params.dashboardId;
2737return {dashboardId:typeof o=="string"&&r$b.test(o)?o:null,isStart:false}}),this.currentVersionId=qd$1(()=>{let a=this._currentLeaf()?.queryParams.versionId;return typeof a=="string"&&r$b.test(a)?a:null});}versionsQueryConfig(t,a){return this._backend.versionsQueryConfig(t,a)}switchToVersion(t){let a=this._router.parseUrl(this._router.url),o=r$d({},a.queryParams);t&&r$b.test(t)?o.versionId=t:delete o.versionId,a.queryParams=o,this._router.navigateByUrl(a);}_findLeaf(t){let a=t;for(;a.firstChild;)a=a.firstChild;return a}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function Zw(e,r){if(e&1&&QM(0),e&2){let t=yM().$implicit,a=yM();Gd$1(" ",t(a.isEmptyList()?"memberChat.actions.startChat":"memberChat.actions.viewAllChats")," ");}}function Ww(e,r){if(e&1&&QM(0),e&2){let t=yM().$implicit;Gd$1(" ",t("memberChat.onboarding.button")," ");}}function Kw(e,r){if(e&1){let t=fM();ta$3(0,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.manageAction.emit())}),eM$1(1,Zw,1,1)(2,Ww,1,1),Pd$1();}if(e&2){let t=yM();BM(t.canShowCommunityProfile()?"btn-link text-primary":"btn btn-primary text-text-inverse w-full hover:brightness-90"),uT(),tM$1(t.canShowCommunityProfile()?1:2);}}var cp=(()=>{class e{constructor(){this.canShowCommunityProfile=X8(false),this.isEmptyList=X8(),this.manageAction=J8();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-summary-footer"]],hostAttrs:[1,"px-4","py-3","h-[60px]","w-full","border-borders-primary","border-t-[1px]","flex","justify-center","items-center"],inputs:{canShowCommunityProfile:[1,"canShowCommunityProfile"],isEmptyList:[1,"isEmptyList"]},outputs:{manageAction:"manageAction"},decls:1,vars:0,consts:[["class","cursor-pointer text-sm",3,"class","click",4,"transloco"],[1,"cursor-pointer","text-sm",3,"click"]],template:function(a,o){a&1&&gv$1(0,Kw,3,3,"button",0);},dependencies:[yt$a],encapsulation:2});}}return e})();function Xw(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"span",1),QM(2),Pd$1(),ta$3(3,"button",2),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.closeMenu.emit())}),Vv$1(4,"ng-icon",3),Pd$1(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(2),yD(t(a.canShowCommunityProfile()?"text.messages":"memberChat.onboarding.title")),uT(),jv$1("matTooltip",t("text.close"));}}var hp=(()=>{class e{constructor(){this.canShowCommunityProfile=X8(false),this.closeMenu=J8();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-summary-header"]],hostAttrs:[1,"flex","justify-between","items-center","px-4","py-3","w-full","border-borders-primary","border-b-[1px]"],inputs:{canShowCommunityProfile:[1,"canShowCommunityProfile"]},outputs:{closeMenu:"closeMenu"},decls:1,vars:0,consts:[[4,"transloco"],[1,"text-text-strong","min-w-0","shrink","overflow-ellipsis","text-sm","font-medium"],["mspotButton","","size","icon-sm","variant","ghost","color","system",1,"rounded-full",3,"click","matTooltip"],["name","hero-x-mark",1,"text-icons-subtle","text-xl"]],template:function(a,o){a&1&&gv$1(0,Xw,5,2,"ng-container",0);},dependencies:[mt$7,yt$a,g$a,le$9],encapsulation:2});}}return e})();function Yw(e,r){if(e&1){let t=fM();ta$3(0,"div",5)(1,"mspot-chat-summary-list",6),Zv$1("openMemberSearch",function(){sh$1(t);let o=yM(2);return ah$1(o.openMemberSearch.emit())})("openChatModal",function(o){sh$1(t);let i=yM(2);return ah$1(i.openChatModal.emit(o))}),Pd$1()();}if(e&2){let t=yM(2);Ma$2("height",t.chatSummaries().length?t.chatSummaries().length*t.itemHeight+t.headerHeight+"px":"auto"),uT(),jv$1("widgetView",true)("chatSummaries",t.chatSummaries())("canStartChat",t.canStartChat());}}function Jw(e,r){if(e&1&&(ta$3(0,"div",4)(1,"p",7),QM(2),Pd$1()()),e&2){let t=yM().$implicit;uT(2),Gd$1(" ",t("memberChat.onboarding.description")," ");}}function tf(e,r){if(e&1&&(Hd$1(0),eM$1(1,Yw,2,5,"div",3)(2,Jw,3,1,"div",4),$d$1()),e&2){let t=yM();uT(),tM$1(t.canShowCommunityProfile()?1:2);}}var pp=(()=>{class e{constructor(){this.chatSummaries=X8([]),this.canShowCommunityProfile=X8(false),this.canStartChat=X8(true),this.itemHeight=80,this.headerHeight=52,this._router=g$k(H$8),this.closeMenu=J8(),this.openMemberSearch=J8(),this.openChatModal=J8();}manageWidgetAction(){if(this.canShowCommunityProfile()){this.openChatModal.emit(null);return}this._router.navigate(["user","onboarding"]),this.closeMenu.emit();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-widget"]],hostAttrs:[1,"rounded-md","shadow-xl","border-mspot-neutral-300","w-full","overflow-hidden"],inputs:{chatSummaries:[1,"chatSummaries"],canShowCommunityProfile:[1,"canShowCommunityProfile"],canStartChat:[1,"canStartChat"]},outputs:{closeMenu:"closeMenu",openMemberSearch:"openMemberSearch",openChatModal:"openChatModal"},decls:3,vars:3,consts:[[3,"closeMenu","canShowCommunityProfile"],[4,"transloco"],[3,"manageAction","canShowCommunityProfile","isEmptyList"],[1,"overflow-hidden",3,"height"],[1,"p-4"],[1,"overflow-hidden"],[3,"openMemberSearch","openChatModal","widgetView","chatSummaries","canStartChat"],[1,"text-text-strong","text-sm"]],template:function(a,o){a&1&&(ta$3(0,"mspot-chat-summary-header",0),Zv$1("closeMenu",function(){return o.closeMenu.emit()}),Pd$1(),gv$1(1,tf,3,1,"ng-container",1),ta$3(2,"mspot-chat-summary-footer",2),Zv$1("manageAction",function(){return o.manageWidgetAction()}),Pd$1()),a&2&&(jv$1("canShowCommunityProfile",o.canShowCommunityProfile()),uT(2),jv$1("canShowCommunityProfile",o.canShowCommunityProfile())("isEmptyList",o.chatSummaries().length===0));},dependencies:[hp,vr,cp,yt$a],encapsulation:2});}}return e})();function ef(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2)(3,"h1",3),QM(4),Pd$1()(),ta$3(5,"button",4),Vv$1(6,"ng-icon",5),Pd$1()(),ta$3(7,"div",6)(8,"div",7),QM(9),Pd$1()(),ta$3(10,"button",8),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.navigateToOnboarding())}),QM(11),Pd$1(),$d$1();}if(e&2){let t=r.$implicit;uT(4),Gd$1(" ",t("memberChat.onboarding.title")," "),uT(),Pv$1("aria-label",t("memberChat.aria.closeDialog")),uT(4),Gd$1(" ",t("memberChat.onboarding.description")," "),uT(2),Gd$1(" ",t("memberChat.onboarding.button")," ");}}var mp=(()=>{class e{constructor(){this._router=g$k(H$8),this._dialogRef=g$k(O$c);}navigateToOnboarding(){this._dialogRef.close(),this._router.navigate(["user","onboarding"]);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-onboarding-info-dialog"]],features:[cN([La()])],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","items-center","justify-between","pb-3"],[1,"flex-1"],[1,"text-text-strong","text-sm","font-semibold"],["type","button","mat-dialog-close","",1,"navIconButton"],["name","heroXMark"],[1,"border-borders-secondary","border-y","py-5"],[1,"text-text-strong","text-sm"],[1,"btn","btn-primary","text-text-inverse","mt-4","w-full","cursor-pointer","text-sm","hover:brightness-90",3,"click"]],template:function(a,o){a&1&&gv$1(0,ef,12,4,"ng-container",0);},dependencies:[jt$8,le$9,yt$a],encapsulation:2});}}return e})();function af(e,r){e&1&&Vv$1(0,"span",1);}var dp=(()=>{class e{constructor(){this.showBadge=X8(false);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["button","mspot-member-chat-button",""]],hostAttrs:["type","button",1,"flex","justify-center","client-header-icon","items-center","rounded-full","relative"],inputs:{showBadge:[1,"showBadge"]},decls:2,vars:1,consts:[["name","hero-chat-bubble-left-right",1,"rounded-full","text-xl"],[1,"bg-primary","absolute","h-2","w-2","-translate-y-3/4","translate-x-1/2","transform","rounded-full"]],template:function(a,o){a&1&&(Vv$1(0,"ng-icon",0),eM$1(1,af,1,0,"span",1)),a&2&&(uT(),tM$1(o.showBadge()?1:-1));},dependencies:[ae$9,le$9],encapsulation:2});}}return e})();var Ar=(()=>{class e{constructor(){this._chatModalService=g$k(X$9),this._dialogService=g$k(Ss$2),this._chatTanstackService=g$k(_t$6),this._communityOnboardingService=g$k(qi),this._router=g$k(H$8),this.canShowCommunityProfile=YG(this._communityOnboardingService.canShowCommunityProfile$,{initialValue:false}),this.skipWidget=X8(false),this.fill=X8(false),this._chatsInfiniteQuery=this._chatTanstackService.createUserChatsInfiniteQuery(On$7({query:"",filter:D$c.ALL})),this.memberChats=qd$1(()=>this._chatTanstackService.getFlattenedData(this._chatsInfiniteQuery.data())?.slice(0,4)),this.isLoading=qd$1(()=>this._chatsInfiniteQuery.isLoading()||this._chatsInfiniteQuery.isFetchingNextPage()),this._counterQuery=this._chatTanstackService.getGlobalUnreadCounterQuery(),this.showBadge=qd$1(()=>(this._counterQuery.data()?.totalUnreadMessages??0)!==0),this.canStartChat=this._chatTanstackService.canStartChat;}openChatModalView(t,a=false){this._chatModalService.open(t,a);}onPopoverOpen(t){if(this.skipWidget()&&!this.canShowCommunityProfile()){t.close(),this._dialogService.open(mp,{dialogConfig:{disableClose:true,panelClass:H$a.SIZE_500}}).subscribe(()=>this._router.navigate(["user","onboarding"]));return}this.skipWidget()&&(t.close(),this.openChatModalView(null));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-chat-widget-container"]],inputs:{skipWidget:[1,"ski
2737pWidget"],fill:[1,"fill"]},features:[cN([La()])],decls:4,vars:11,consts:[["popover",""],["position","below","buttonVariant","none","buttonSize","none","overlayContentClass","bg-backgrounds-surface-raised backdrop-blur-sm dark:text-text-default shadow-lg rounded-lg ring-1 ring-black ring-opacity-5 w-[464px] max-w-[95vw]",3,"opened","triggerButtonClass","closeOnOutsideClick","closeOnScroll"],["slot","triggerContent","mspot-member-chat-button","",3,"showBadge"],[1,"bg-backgrounds-surface-raised","backdrop-blur-sm",3,"closeMenu","openChatModal","openMemberSearch","canShowCommunityProfile","canStartChat","chatSummaries"]],template:function(a,o){if(a&1){let i=fM();ta$3(0,"mspot-popover",1,0),Zv$1("opened",function(){sh$1(i);let f=TM(1);return ah$1(o.onPopoverOpen(f))}),Vv$1(2,"button",2),ta$3(3,"mspot-chat-widget",3),Zv$1("closeMenu",function(){sh$1(i);let f=TM(1);return ah$1(f.close())})("openChatModal",function(f){return sh$1(i),TM(1).close(),ah$1(o.openChatModalView(f))})("openMemberSearch",function(){return sh$1(i),TM(1).close(),ah$1(o.openChatModalView(null,true))}),Pd$1()();}a&2&&(BM(o.fill()?"block h-full w-full":"flex items-baseline"),jv$1("triggerButtonClass",o.fill()?"h-full w-full flex items-center justify-center":"")("closeOnOutsideClick",true)("closeOnScroll",true),uT(2),BM(o.fill()?"[&_ng-icon]:!text-lg [&_ng-icon]:!text-[color:var(--client-sidemenu-color,var(--text-subtle))]":""),jv$1("showBadge",o.showBadge()),uT(),jv$1("canShowCommunityProfile",o.canShowCommunityProfile())("canStartChat",o.canStartChat())("chatSummaries",o.memberChats()));},dependencies:[oe,pp,dp],encapsulation:2});}}return e})();var gp={action:{delete:"Nachricht entfernen",deleteAll:"Alle l\xF6schen",markAllAsRead:"Alle als gelesen markieren",markAsRead:"Als gelesen markieren",settings:"Einstellungen"},deleteDialog:{message:"M\xF6chtest du wirklich alle Benachrichtigungen entfernen?",title:"Benachrichtigungen Entfernen"},emptyDescription:"Neue Benachrichtigungen erscheinen hier.",noti:{approvedPost:"Dein Beitrag <b>{{ postTitle }}</b> in <b>{{ spaceName }}</b> wurde genehmigt",approvedPostNoTitle:"Dein Beitrag in <b>{{ spaceName }}</b> wurde genehmigt",badgeEarned:"Das Badge <b>{{ postTitle }}</b> wurde dir zugewiesen",badgeRemovedAutomatic:"Das Badge <b>{{ postTitle }}</b> wurde automatisch entfernt",badgeRemovedExpired:"Das Badge <b>{{ postTitle }}</b> ist abgelaufen",badgeRemovedManual:"Das Badge <b>{{ postTitle }}</b> wurde entfernt",chatMessage:"<b>{{ name }}</b> hat eine Nachricht geschrieben",comment:"<b>{{ name }}</b> hat einen Kommentar in <b>{{ postTitle }}</b> gepostet",commentNoTitle:"<b>{{ name }}</b> hat einen Kommentar <b>{{ postTitle }}</b> gepostet",contentReportComment:"Ein Kommentar in <b>{{ spaceName }}</b> wurde gemeldet",contentReportPost:"Ein Beitrag in <b>{{ spaceName }}</b> wurde gemeldet",default:"Neue Benachrichtigung",levelUp:"Du hast <b>{{ postTitle }}</b> erreicht",mention:"<b>{{ name }}</b> hat dich in <b>{{ postTitle }}</b> erw\xE4hnt",mentionNoTitle:"<b>{{ name }}</b> hat dich in <b>einem Beitrag</b> erw\xE4hnt",newPost:"<b>{{ name }}</b> hat <b>{{ postTitle }}</b> in <b>{{ spaceName }}</b> gepostet",newPostNoTitle:"<b>{{ name }}</b> hat <b>etwas</b> in <b>{{ spaceName }}</b> gepostet",pendingPost:"<b>Der <b>{{ postTitle }}</b> Beitrag in <b>{{ spaceName }}</b> wartet auf die Genehmigung",pendingPostNoTitle:"Ein Beitrag in <b>{{ spaceName }}</b> wartet auf die Genehmigung",postStatus:"Dein Beitrag <b>{{ postTitle }}</b> ist jetzt <b>{{ statusLabel }}</b>",postStatusNoTitle:"Ein Beitrag in <b>{{ spaceName }}</b> ist jetzt <b>{{ statusLabel }}</b>",reaction:"<b>{{ name }}</b> hat mit '{{ reaction }}' auf deinen Beitrag <b>{{ postTitle }}</b> reagiert",reactionComment:"<b>{{ name }}</b> hat mit '{{ reaction }}' auf deinen Kommentar in <b>{{ postTitle }}</b> reagiert",reactionCommentMultiple:"<b>{{ name }}</b> und {{ othersCount }} andere haben auf deinen Kommentar in <b>{{ postTitle }}</b> reagiert",reactionMultiple:"<b>{{ name }}</b> und {{ othersCount }} weitere haben auf deinen Beitrag <b>{{ postTitle }}</b> reagiert",rejectedPost:"Dein Beitrag <b>{{ postTitle }}</b> in <b>{{ spaceName }}</b> wurde abgelehnt",rejectedPostNoTitle:"Dein Beitrag in <b>{{ spaceName }}</b> wurde abgelehnt",spaceJoinApproved:"Beitritt zu <b>{{ spaceName }}</b> wurde freigegeben",spaceJoinRejected:"Beitrittsanfrage f\xFCr <b>{{ spaceName }}</b> wurde nicht freigegeben",spaceJoinRequested:"Neue Beitrittsanfrage f\xFCr <b>{{ spaceName }}</b>",submissionCommentReaction:"<b>{{ name }}</b> hat auf deinen Kommentar reagiert",submissionCommented:"<b>{{ name }}</b> hat einen Kommentar zu deiner Abgabe f\xFCr <b>{{ postTitle }}</b> hinterlassen",submissionStateChanged:"Der Status deiner Abgabe f\xFCr <b>{{ postTitle }}</b> wurde ge\xE4ndert",todoAssigned:"<b>{{ name }}</b> hat ein neues Todo zugewiesen: <b>{{ postTitle }}</b>",todoAssignedDigest:"<b>{{ name }}</b> hat neue Todos zugewiesen: <b>{{ postTitle }}</b>",todoDue:"Todo heute f\xE4llig: <b>{{ postTitle }}</b>",upvote:"<b>{{ name }}</b> hat deinen Beitrag <b>{{ postTitle }}</b> geupvoted",upvoteMultiple:"<b>{{ name }}</b> und {{ othersCount }} weitere haben deinen Beitrag <b>{{ postTitle }}</b> geupvoted"},published:"Ver\xF6ffentlicht {{date}}"};var up={action:{delete:"Delete notification",deleteAll:"Delete all",markAllAsRead:"Mark all as read",markAsRead:"Mark as read",settings:"Settings"},deleteDialog:{message:"Do you want to remove all notifications",title:"Remove all Notifications"},emptyDescription:"New notifications will appear here.",noti:{approvedPost:"Your <b>{{ postTitle }}</b> in <b>{{ spaceName }}</b> has been approved",approvedPostNoTitle:"Your post in <b>{{ spaceName }}</b> was approved",badgeEarned:"The badge <b>{{ postTitle }}</b> was assigned to you",badgeRemovedAutomatic:"The badge <b>{{ postTitle }}</b> was automatically removed",badgeRemovedExpired:"The badge <b>{{ postTitle }}</b> expired",badgeRemovedManual:"The badge <b>{{ postTitle }}</b> was removed",chatMessage:"<b>{{ name }}</b> has sent a message",comment:"<b>{{ name }}</b> posted a comment in <b>{{ postTitle }}</b>",commentNoTitle:"<b>{{ name }}</b> posted a comment <b>{{ postTitle }}</b>",contentReportComment:"A comment in <b>{{ spaceName }}</b> was reported",contentReportPost:"A post in <b>{{ spaceName }}</b> was reported",default:"New notification",levelUp:"You reached <b>{{ postTitle }}</b>",mention:"<b>{{ name }}</b> mentioned you in <b>{{ postTitle }}</b>",mentionNoTitle:"<b>{{ name }}</b> mentioned you in <b>{{ postTitle }}</b>",newPost:"<b>{{ name }}</b> has been posted <b>{{ postTitle }}</b> in <b>{{ spaceName }}</b>",newPostNoTitle:"<b>{{ name }}</b> has been posted <b>something</b> in <b>{{ spaceName }}</b>
2737",pendingPost:"<>The post <b>{{ postTitle }}</b> in <b>{{ spaceName }}</b> needs a reveiew",pendingPostNoTitle:"A post in <b>{{ spaceName }}</b> needs a review",postStatus:"Your post <b>{{ postTitle }}</b> is now <b>{{ statusLabel }}</b>",postStatusNoTitle:"A post in <b>{{ spaceName }}</b> is now <b>{{ statusLabel }}</b>",reaction:"<b>{{ name }}</b> reacted with '{{ reaction }}' to your post <b>{{ postTitle }}</b>",reactionComment:"<b>{{ name }}</b> reacted with '{{ reaction }}' to your comment in <b>{{ postTitle }}</b>",reactionCommentMultiple:"<b>{{ name }}</b> and {{ othersCount }} others reacted to your comment in <b>{{ postTitle }}</b>",reactionMultiple:"<b>{{ name }}</b> and {{ othersCount }} others reacted to your post <b>{{ postTitle }}</b>",rejectedPost:"Your post <b>{{ postTitle }}</b> in <b>{{ spaceName }}</b> has been rejected",rejectedPostNoTitle:"Your post in <b>{{ spaceName }}</b> has been rejected",spaceJoinApproved:"Join request for <b>{{ spaceName }}</b> was approved",spaceJoinRejected:"Join request for <b>{{ spaceName }}</b> was not approved",spaceJoinRequested:"New join request for <b>{{ spaceName }}</b>",submissionCommentReaction:"<b>{{ name }}</b> reacted to your comment",submissionCommented:"<b>{{ name }}</b> commented on your submission for <b>{{ postTitle }}</b>",submissionStateChanged:"The status of your submission for <b>{{ postTitle }}</b> has changed",todoAssigned:"<b>{{ name }}</b> assigned a new todo: <b>{{ postTitle }}</b>",todoAssignedDigest:"<b>{{ name }}</b> assigned new todos: <b>{{ postTitle }}</b>",todoDue:"Todo due today: <b>{{ postTitle }}</b>",upvote:"<b>{{ name }}</b> upvoted your post <b>{{ postTitle }}</b>",upvoteMultiple:"<b>{{ name }}</b> and {{ othersCount }} others upvoted your post <b>{{ postTitle }}</b>"},published:"Posted {{date}}"};var wp=(()=>{class e{constructor(){this.baseNotification="notificationUiList.noti.",this.typeFunctions={newPost:t=>t.payload.type==="newPost"&&t.payload.postTitle?"newPost":"newPostNoTitle",mention:t=>t.payload.type==="mention"&&t.payload.postTitle?"mention":"mentionNoTitle",comment:t=>t.payload.type==="comment"&&t.payload.postTitle?"comment":"commentNoTitle",pendingPost:t=>t.payload.type==="pendingPost"&&t.payload.postTitle?"pendingPost":"pendingPostNoTitle",approvedPost:t=>t.payload.type==="approvedPost"&&t.payload.postTitle?"approvedPost":"approvedPostNoTitle",rejectedPost:t=>t.payload.type==="rejectedPost"&&t.payload.postTitle?"rejectedPost":"rejectedPostNoTitle",postStatus:t=>t.payload.type==="postStatus"&&t.payload.postTitle?"postStatus":"postStatusNoTitle",reaction:t=>{if(t.payload.type!=="reaction")return "reaction";let a=!!t.payload.spacePostCommentId,o=(t.payload.reactorCount??0)>1,i=t.payload.reaction===ar$4;return a?o?"reactionCommentMultiple":"reactionComment":i?o?"upvoteMultiple":"upvote":o?"reactionMultiple":"reaction"},levelUp:()=>"levelUp",badgeEarned:()=>"badgeEarned",badgeRemoved:t=>{if(t.payload.type!=="badgeRemoved")return "badgeRemovedManual";switch(t.payload.reason){case "expired":return "badgeRemovedExpired";case "automatic":return "badgeRemovedAutomatic";case "manual":return "badgeRemovedManual";default:return nf(t.payload.reason)}},submissionCommented:()=>"submissionCommented",submissionCommentReaction:()=>"submissionCommentReaction",submissionStateChanged:()=>"submissionStateChanged",chatMessage:()=>"chatMessage",todoAssigned:t=>t.payload.type!=="todoAssigned"?"todoAssigned":(t.payload.additionalCount??0)>0?"todoAssignedDigest":"todoAssigned",todoDue:()=>"todoDue",spaceJoinRequested:()=>"spaceJoinRequested",spaceJoinApproved:()=>"spaceJoinApproved",spaceJoinRejected:()=>"spaceJoinRejected",contentReport:t=>t.payload.type==="contentReport"&&t.payload.targetType==="comment"?"contentReportComment":"contentReportPost"};}transform(t){let a=this.typeFunctions[t.payload.type];return a?this.baseNotification+a(t):this.baseNotification+"default"}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275pipe=Yn$8({name:"notificationType",type:e,pure:true});}}return e})();function nf(e){throw new Error(`Unexpected notification removal reason: ${e}`)}var sf=(e,r,t,a,o,i)=>({name:e,postTitle:r,spaceName:t,othersCount:a,reaction:o,statusLabel:i});function lf(e,r){if(e&1&&Vv$1(0,"img",5),e&2){let t=yM(2);jv$1("alt",nN(t.notificationActor?.name||"Avatar"))("src",t.notificationActor.photoUrl,Gm$1);}}function cf(e,r){e&1&&(ta$3(0,"div",6),Vv$1(1,"ng-icon",16),Pd$1());}function hf(e,r){e&1&&Vv$1(0,"span",7);}function pf(e,r){if(e&1){let t=fM();ta$3(0,"button",17),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.markAsRead.emit(o.notification()._id))}),Vv$1(1,"ng-icon",18),ta$3(2,"span"),QM(3),Pd$1()(),ta$3(4,"button",17),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.deleteNotification.emit(o.notification()._id))}),Vv$1(5,"ng-icon",19),ta$3(6,"span"),QM(7),Pd$1()();}if(e&2){let t=yM().$implicit;uT(3),yD(t("notificationUiList.action.markAsRead")),uT(4),yD(t("notificationUiList.action.delete"));}}function mf(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"button",3),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.notificationClicked())}),ta$3(2,"div",4),eM$1(3,lf,1,3,"img",5)(4,cf,2,0,"div",6),eM$1(5,hf,1,0,"span",7),Pd$1(),ta$3(6,"div",8),Vv$1(7,"span",9),EN(8,"notificationType"),EN(9,"communityUsername"),EN(10,"truncate"),EN(11,"truncate"),EN(12,"truncate"),ta$3(13,"span",10)(14,"b"),QM(15),EN(16,"toRelativeDateString"),Pd$1()()(),ta$3(17,"div",11)(18,"button",12,0),Zv$1("click",function(o){return o.stopPropagation()}
2737),Vv$1(20,"ng-icon",13),Pd$1(),ta$3(21,"mat-menu",14,1),gv$1(23,pf,8,2,"ng-template",15),Pd$1()()(),$d$1();}if(e&2){let t=r.$implicit,a=TM(22),o=yM();uT(3),tM$1(o.notificationActor?.photoUrl?3:4),uT(2),tM$1(o.notification().isRead?-1:5),uT(2),jv$1("innerHtml",t(CN(8,6,o.notification()),yN(21,sf,wN(10,10,CN(9,8,o.notificationActor?.name),20),wN(11,13,o.notificationTitle,20),wN(12,16,o.notificationContext,20),o.othersCount,o.reaction,o.statusLabel)),cb$1),uT(8),yD(CN(16,19,o.notification().createdAt)),uT(3),jv$1("matMenuTriggerFor",a),Pv$1("aria-label",t("common.actions"));}}var fp=(()=>{class e{constructor(){this._router=g$k(H$8),this.closeMenu=new Ct$h,this.markAsRead=new Ct$h,this.deleteNotification=new Ct$h,this.notification=X8.required(),this.gamificationRouteResolver=()=>["leaderboard"];}get notificationActor(){if(this.notification().payload.type==="todoDue")return;let t=this.notification(),a=t.actor||t.user;return a&&a.name===S$8?s$e(r$d({},a),{photoUrl:void 0}):a}get notificationTitle(){let t=this.notification();return g$6(t)?t.payload.postTitle??"":J$a(t)?t.payload.taskTitle:j$8(t)?t.payload.type==="levelUp"?t.payload.newLevelName:t.payload.badgeName:Y$a(t)?t.payload.title:""}get notificationContext(){let t=this.notification();return g$6(t)||k$7(t)||Le$5(t)?t.payload.spaceName:J$a(t)?t.payload.courseName:j$8(t)?t.payload.type==="levelUp"?`${t.payload.newLevel}`:t.payload.badgeType:""}get othersCount(){let t=this.notification();return t.payload.type==="reaction"?(t.payload.reactorCount??1)-1:0}get reaction(){let t=this.notification();return t.payload.type==="reaction"?t.payload.reaction??"":""}get statusLabel(){let t=this.notification();return t.payload.type==="postStatus"?t.payload.statusLabel??"":""}notificationClicked(){let t=this.notification();if(t.isRead||this.markAsRead.emit(t._id),g$6(t)){let a=t.payload.spacePostCommentId;this._router.navigate(["community",t.payload.spaceId,t.payload.spacePostId],{queryParams:a?{commentId:a}:{}});}else k$7(t)?t.payload.type==="spaceJoinRequested"?this._router.navigate(["community","join-requests"]):this._router.navigate(["community",t.payload.spaceId]):Le$5(t)?this._router.navigate(["community",t.payload.spaceId,t.payload.spacePostId]):J$a(t)?this._router.navigate(["library",t.payload.courseId,t.payload.chapterId,t.payload.lessonId,"details"]):j$8(t)?this._router.navigate(this.gamificationRouteResolver(t)):Y$a(t)&&this._router.navigate(["/user/todos"]);this.closeMenu.emit();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-notification-list-item"]],inputs:{notification:[1,"notification"],gamificationRouteResolver:"gamificationRouteResolver"},outputs:{closeMenu:"closeMenu",markAsRead:"markAsRead",deleteNotification:"deleteNotification"},decls:1,vars:0,consts:[["menuTrigger","matMenuTrigger"],["contextMenu","matMenu"],[4,"transloco"],["mspotButton","","size","none","variant","ghost","color","primary","extra","inner-outline",1,"h-[72px]","w-full","rounded-none","px-4","py-2",3,"click"],[1,"relative","mr-2","flex","flex-shrink-0","items-center","md:mr-4"],["mspotProfileImgLoadErr","",1,"h-10","w-10","rounded-full",3,"src","alt"],[1,"bg-mspot-neutral-600","flex","h-10","w-10","items-center","justify-center","rounded-full"],[1,"bg-primary","absolute","-right-1","top-1","h-3","w-3","transform","rounded-full"],[1,"notification-title","flex","flex-col","items-start","justify-center"],[1,"text-mspot-neutral-900","line-clamp-2","text-left","text-sm",3,"innerHtml"],[1,"text-text-subtle","text-xs","font-normal"],[1,"flex","flex-grow","items-center","justify-end"],["mspotButton","","size","none","variant","ghost","color","primary",1,"hover:bg-mspot-neutral-300","focus-visible:bg-mspot-neutral-300","rounded-full","p-1.5",3,"click","matMenuTriggerFor"],["name","heroEllipsisVertical",1,"text-icons-default","text-2xl"],["xPosition","before"],["matMenuContent",""],["name","hero-bell",1,"text-2xl","text-white"],["mat-menu-item","",3,"click"],["name","hero-check","ngProjectAs","mat-icon",5,["mat-icon"]],["name","hero-trash","ngProjectAs","mat-icon",5,["mat-icon"]]],template:function(a,o){a&1&&gv$1(0,mf,24,28,"ng-container",2);},dependencies:[yt$a,Pe$2,le$9,g$a,sn$5,G$9,no$3,ce$5,bh$1,Kl,wp,u$7],styles:["b[_ngcontent-%COMP%]{font-weight:500}"]});}}return e})();function vf(e,r){if(e&1&&Vv$1(0,"mspot-empty-state",1),e&2){let t=yM().$implicit;jv$1("description",t("notificationUiList.emptyDescription"));}}function df(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"mspot-notification-list-item",4),Zv$1("deleteNotification",function(o){sh$1(t);let i=yM(3);return ah$1(i.deleteNotification.emit(o))})("markAsRead",function(o){sh$1(t);let i=yM(3);return ah$1(i.markAsRead.emit(o))})("closeMenu",function(){sh$1(t);let o=yM(3);return ah$1(o.closeMenu.emit())}),Pd$1(),$d$1();}if(e&2){let t=r.$implicit,a=yM(3);uT(),jv$1("notification",t)("gamificationRouteResolver",a.gamificationRouteResolver());}}function gf(e,r){if(e&1&&(ta$3(0,"cdk-virtual-scroll-viewport",2),gv$1(1,df,2,2,"ng-container",3),Pd$1()),e&2){let t=yM(2);jv$1("minBufferPx",216)("maxBufferPx",288),uT(),jv$1("cdkVirtualForOf",t.n
2737otifications)("cdkVirtualForTrackBy",t.trackByFn);}}function uf(e,r){if(e&1&&(Hd$1(0),eM$1(1,vf,1,1,"mspot-empty-state",1)(2,gf,2,4,"cdk-virtual-scroll-viewport",2),$d$1()),e&2){let t=yM();uT(),tM$1(t.notifications?.length?2:1);}}var Cp=(()=>{class e{constructor(){this.notifications=[],this.gamificationRouteResolver=X8(()=>["leaderboard"]),this.open=X8(true),this.markAsRead=new Ct$h,this.deleteNotification=new Ct$h,this.closeMenu=new Ct$h,this._zone=g$k(ge$b),this._viewport=t3(ai$4),Es$3(t=>{let a=this.open(),o=this._viewport();if(!o||!a)return;let i=()=>{o.scrollToOffset(0),o.elementRef.nativeElement.scrollTop=0;},d=0;this._zone.runOutsideAngular(()=>{i(),queueMicrotask(i),d=requestAnimationFrame(i);});let f=new ResizeObserver(()=>{this._zone.runOutsideAngular(()=>o.checkViewportSize());});f.observe(o.elementRef.nativeElement),t(()=>{f.disconnect(),cancelAnimationFrame(d);});});}trackByFn(t,a){return a._id}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-notification-list"]],viewQuery:function(a,o){a&1&&eD(o._viewport,ai$4,5),a&2&&bM();},hostAttrs:[1,"block"],inputs:{notifications:"notifications",gamificationRouteResolver:[1,"gamificationRouteResolver"],open:[1,"open"]},outputs:{markAsRead:"markAsRead",deleteNotification:"deleteNotification",closeMenu:"closeMenu"},features:[cN([$$g({heroBell:Z$c})])],decls:1,vars:0,consts:[[4,"transloco"],["size","sm","icon","heroBell",1,"px-4",3,"description"],["itemSize","72",1,"scrollbar","h-full","min-h-[288px]","w-full","space-y-4","overscroll-contain",3,"minBufferPx","maxBufferPx"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"deleteNotification","markAsRead","closeMenu","notification","gamificationRouteResolver"]],template:function(a,o){a&1&&gv$1(0,uf,3,1,"ng-container",0);},dependencies:[yt$a,gt$5,ai$4,ei$4,li$4,fp],encapsulation:2});}}return e})();var wf=()=>["user","settings"];function ff(e,r){if(e&1){let t=fM();ta$3(0,"div",1)(1,"div",2)(2,"span",3),QM(3),Pd$1(),ta$3(4,"div",4)(5,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.markAllRead.emit())}),Vv$1(6,"ng-icon",6),Pd$1(),ta$3(7,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.deleteAll.emit())}),Vv$1(8,"ng-icon",7),Pd$1(),ta$3(9,"button",8),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.closeMenu.emit())}),Vv$1(10,"ng-icon",9),Pd$1()()(),ta$3(11,"mspot-notification-list",10),Zv$1("deleteNotification",function(o){sh$1(t);let i=yM();return ah$1(i.deleteNotification.emit(o))})("closeMenu",function(){sh$1(t);let o=yM();return ah$1(o.closeMenu.emit())})("markAsRead",function(o){sh$1(t);let i=yM();return ah$1(i.markAsRead.emit(o))}),Pd$1()();}if(e&2){let t=r.$implicit,a=yM();BM(a.fillHeight()?"flex h-full flex-col sm:min-w-[25rem]":"sm:min-w-[25rem]"),Pv$1("aria-labelledby",t("text.notifications")),uT(3),yD(t("text.notifications")),uT(2),jv$1("matTooltip",nN(t("notificationUiList.action.markAllAsRead")))("disabled",!a.unreadNotifications),Pv$1("aria-label",t("notificationUiList.action.markAllAsRead")),uT(2),jv$1("matTooltip",nN(t("notificationUiList.action.deleteAll")))("disabled",!a.notifications?.length),Pv$1("aria-label",t("notificationUiList.action.deleteAll")),uT(2),jv$1("matTooltip",nN(t("notificationUiList.action.settings")))("routerLink",dN(21,wf)),Pv$1("aria-label",t("notificationUiList.action.settings")),uT(2),BM(a.fillHeight()?"min-h-0 flex-1":""),jv$1("notifications",a.notifications)("gamificationRouteResolver",a.gamificationRouteResolver)("open",a.open());}}var xp=(()=>{class e{constructor(){this.notifications=[],this.gamificationRouteResolver=()=>["leaderboard"],this.fillHeight=X8(false),this.open=X8(true),this.goToSettings=new Ct$h,this.closeMenu=new Ct$h,this.markAllRead=new Ct$h,this.deleteAll=new Ct$h,this.markAsRead=new Ct$h,this.deleteNotification=new Ct$h;}get unreadNotifications(){return this.hasUnreadNotifications(this.notifications)}hasUnreadNotifications(t){return t?.some(a=>!a.isRead)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-notifications"]],hostAttrs:[1,"rounded-md","shadow-xl","border-mspot-neutral-300","w-full"],inputs:{notifications:"notifications",gamificationRouteResolver:"gamificationRouteResolver",fillHeight:[1,"fillHeight"],open:[1,"open"]},outputs:{goToSettings:"goToSettings",closeMenu:"closeMenu",markAllRead:"markAllRead",deleteAll:"deleteAll",markAsRead:"markAsRead",deleteNotification:"deleteNotification"},features:[cN([{provide:Me$7,useValue:{scope:"notificationUiList",loader:t$7({de:gp,en:up}),canReRender:true}}])],decls:1,vars:0,consts:[["cdkTrapFocus","","role","dialog","aria-modal","true",3,"class",4,"transloco"],["cdkTrapFocus","","role","dialog","aria-modal","true"],[1,"flex","w-full","items-center","justify-between","gap-4","p-4"],[1,"text-text-default","min-w-0","shrink","overflow-ellipsis","text-lg","font-medium"],[1,"flex","space-x-2"],["mspotButton","","size","icon-sm","variant","ghost","color","system",1,"rounded-full",3,"click","matTooltip","disabled"],["name","hero-check",1,"text-icons-default","text-xl"],["name","hero-trash",1,"text-icons-default","text-xl"],["mspotButton","","size","icon-sm","variant","ghost","color","system",1,"rounded-full",3,"click","routerLink","matTooltip"],["name","hero-cog-8-tooth",1,"text-icons-default","text-xl"],[3,"deleteNotification","closeMenu","markAsRead","notifications","gamificationRouteResolver","open"]
2737],template:function(a,o){a&1&&gv$1(0,ff,12,22,"div",0);},dependencies:[Cp,Ve$a,g$a,yt$a,le$9,mt$7,kt$7],encapsulation:2});}}return k0([_r$5,F0("design:type",Function),F0("design:paramtypes",[Array]),F0("design:returntype",void 0)],e.prototype,"hasUnreadNotifications",null),e})();function _p(e,r){return e==="badgeEarned"||e==="badgeRemoved"?["user","profile"]:r?["leaderboard"]:["user","profile","activity"]}function Cf(e,r){e&1&&Vv$1(0,"mspot-bottom-sheet-handle");}var ei=(()=>{class e{constructor(){this._notifications=g$k(ut$6),this._dialogService=g$k(Ss$2),this._maQuery=g$k(f$8),this._logger=g$k($E),this._gamificationClientService=g$k(le$5),this._backNav=g$k(Ze$6),this.bottomSheetRef=g$k(X$b,{optional:true}),this.open=X8(true),this.closeMenu=J8(),this.notifications=qd$1(()=>{let t=this._notifications.notificationsQuery.data();return t?[...t].sort((a,o)=>new Date(o.createdAt).getTime()-new Date(a.createdAt).getTime()):null}),this._isLeaderboardEnabled=qd$1(()=>this._gamificationClientService.isLeaderboardEnabled()),this._backHandle=this.bottomSheetRef?this._backNav.register(()=>this.bottomSheetRef?.dismiss()):null,this.resolveGamificationRoute=t=>_p(t.payload.type,this._isLeaderboardEnabled()),this.bottomSheetRef?.afterDismissed().subscribe(()=>{this._backHandle?.dispose(),this._backHandle=null;});}markAllAsRead(){let t=this._maQuery.getSchoolId();t&&this._notifications.markAllAsReadMutation.mutate({schoolId:t},{onError:a=>this._logger.error("Failed to mark all notifications as read",a)});}deleteAll(){this._dialogService.confirm({title:"notificationUiList.deleteDialog.title",message:"notificationUiList.deleteDialog.message"}).pipe(Pt$b(t=>!!t),hn$9(1)).subscribe(()=>{let t=this._maQuery.getSchoolId();t&&this._notifications.deleteAllMutation.mutate({schoolId:t},{onError:a=>this._logger.error("Failed to delete all notifications",a)});});}deleteNotification(t){let a=this._maQuery.getSchoolId();a&&this._notifications.deleteOneMutation.mutate({schoolId:a,notificationId:t},{onError:o=>this._logger.error("Failed to delete notification",o)});}markNotificationAsRead(t){let a=this._maQuery.getSchoolId();!a||this._notifications.notifications().find(i=>i._id===t)?.isRead||this._notifications.markOneAsReadMutation.mutate({schoolId:a,notificationId:t},{onError:i=>this._logger.error("Failed to mark notification as read",i)});}onCloseMenu(){if(this.bottomSheetRef){this.bottomSheetRef.dismiss();return}this.closeMenu.emit();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-notification-list-container"]],hostVars:2,hostBindings:function(a,o){a&2&&BM(o.bottomSheetRef?"flex h-full flex-col":"");},inputs:{open:[1,"open"]},outputs:{closeMenu:"closeMenu"},decls:2,vars:7,consts:[[3,"deleteAll","markAllRead","deleteNotification","markAsRead","closeMenu","fillHeight","open","gamificationRouteResolver","notifications"]],template:function(a,o){a&1&&(eM$1(0,Cf,1,0,"mspot-bottom-sheet-handle"),ta$3(1,"mspot-notifications",0),Zv$1("deleteAll",function(){return o.deleteAll()})("markAllRead",function(){return o.markAllAsRead()})("deleteNotification",function(d){return o.deleteNotification(d)})("markAsRead",function(d){return o.markNotificationAsRead(d)})("closeMenu",function(){return o.onCloseMenu()}),Pd$1()),a&2&&(tM$1(o.bottomSheetRef?0:-1),uT(),BM(o.bottomSheetRef?"block min-h-0 flex-1":""),jv$1("fillHeight",!!o.bottomSheetRef)("open",o.open())("gamificationRouteResolver",o.resolveGamificationRoute)("notifications",o.notifications()));},dependencies:[xp,Zt$6],encapsulation:2});}}return e})();function xf(e,r){if(e&1){let t=fM();ta$3(0,"button",4),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.openBottomSheet())}),Pd$1();}if(e&2){let t=yM().$implicit,a=yM();BM(a.fill()?"[&_ng-icon]:!text-icons-subtle h-full w-full [&_ng-icon]:!text-lg":""),jv$1("showBadge",a.hasUnreadNotifications()),Pv$1("aria-label",t("text.notifications"));}}function _f(e,r){if(e&1){let t=fM();ta$3(0,"mspot-popover",5,0),Vv$1(2,"button",6),ta$3(3,"mspot-notification-list-container",7),Zv$1("closeMenu",function(){sh$1(t);let o=TM(1);return ah$1(o.close())}),Pd$1()();}if(e&2){let t=TM(1),a=yM().$implicit,o=yM();BM(o.fill()?"block h-full w-full":"flex items-baseline"),jv$1("triggerButtonClass",o.fill()?"h-full w-full flex items-center justify-center":"")("closeOnOutsideClick",true)("closeOnScroll",true),uT(2),BM(o.fill()?"[&_ng-icon]:!text-lg [&_ng-icon]:!text-[color:var(--cl
2737ient-sidemenu-color,var(--text-subtle))]":""),jv$1("showBadge",o.hasUnreadNotifications()),Pv$1("aria-label",a("text.notifications")),uT(),jv$1("open",t.isOpen());}}function bf(e,r){if(e&1&&(Hd$1(0),eM$1(1,xf,1,4,"button",2)(2,_f,4,10,"mspot-popover",3),$d$1()),e&2){let t=yM();uT(),tM$1(t.isXs()?1:2);}}var yr=(()=>{class e{constructor(){this.fill=X8(false),this._notifications=g$k(ut$6),this._bottomSheet=g$k(Sn$5),this.hasUnreadNotifications=this._notifications.hasUnread,this.isXs=YG(g$k(n$3),{initialValue:false});}openBottomSheet(){this._bottomSheet.open(ei,{panelClass:["mat-bottom-sheet-container-p-0","mat-bottom-sheet-container-medium"],autoFocus:"dialog",closeOnNavigation:false});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-notification-view"]],inputs:{fill:[1,"fill"]},decls:1,vars:0,consts:[["popover",""],[4,"transloco"],["mspot-notification-button","",3,"showBadge","class"],["position","below","buttonVariant","none","buttonSize","none","overlayContentClass","border-borders-secondary bg-backgrounds-surface-raised backdrop-blur-sm min-w-32 rounded-lg border shadow-lg",3,"class","triggerButtonClass","closeOnOutsideClick","closeOnScroll"],["mspot-notification-button","",3,"click","showBadge"],["position","below","buttonVariant","none","buttonSize","none","overlayContentClass","border-borders-secondary bg-backgrounds-surface-raised backdrop-blur-sm min-w-32 rounded-lg border shadow-lg",3,"triggerButtonClass","closeOnOutsideClick","closeOnScroll"],["slot","triggerContent","mspot-notification-button","",3,"showBadge"],[3,"closeMenu","open"]],template:function(a,o){a&1&&gv$1(0,bf,3,1,"ng-container",1);},dependencies:[eh,ei,yt$a,oe],encapsulation:2});}}return e})();var bp=(()=>{class e{constructor(){this._authManager=g$k(J$4),this._pushService=g$k(ir$1),this._appBadge=g$k(fn$1),this._mobileStorage=g$k(q$3),this._router=g$k(H$8),this._logger=g$k($E);}async logoutFromCurrentArea(){if(!U$5.isNativePlatform())return;let t=this._authManager.getCurrentSchoolId();if(!t){this._logger.warn("[AreaLogout] No current school \u2014 falling back to school-select"),this._router.navigate(["/auth/generic-client/school-select"]);return}try{await this._pushService.unregisterDeviceForSchool(t);}catch(a){this._logger.error("[AreaLogout] Push unregister failed \u2014 continuing logout",{currentSchoolId:t,error:a});}await this._appBadge.clear(),await this._authManager.logoutFromCurrentSchool(),await this._mobileStorage.clearStoredSchoolId(),this._router.navigate(["/auth/generic-client/school-select"]);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Mf=(e,r)=>r.schoolId;function Af(e,r){if(e&1&&(ta$3(0,"span",14),Vv$1(1,"img",17),Pd$1()),e&2){let t=yM().$implicit;uT(),jv$1("src",t.icon,Gm$1)("alt",t.name);}}function yf(e,r){if(e&1&&(ta$3(0,"div",15),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),Gd$1(" ",t.name.charAt(0).toUpperCase()," ");}}function Vf(e,r){if(e&1){let t=fM();ta$3(0,"button",13),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM(2);return ah$1(i.selectCard(o))}),eM$1(1,Af,2,2,"span",14)(2,yf,2,1,"div",15),ta$3(3,"span",16),QM(4),Pd$1()();}if(e&2){let t=r.$implicit,a=yM(2);iD("ring-2",a.selectedSchoolId()===t.schoolId)("ring-primary",a.selectedSchoolId()===t.schoolId)("bg-backgrounds-fill-selected-subtle",a.currentSchoolId()===t.schoolId)("cursor-not-allowed",a.currentSchoolId()===t.schoolId),jv$1("disabled",a.loading()!==null||a.currentSchoolId()===t.schoolId),uT(),tM$1(t.icon?1:2),uT(3),Gd$1(" ",t.name," ");}}function zf(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2)(3,"h2",3),QM(4),Pd$1(),ta$3(5,"button",4),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.close())}),Vv$1(6,"ng-icon",5),Pd$1()(),ta$3(7,"div",6)(8,"mspot-select",7),Zv$1("selectionChange",function(o){sh$1(t);let i=yM();return ah$1(i.onSortChange(o))}),Pd$1()(),ta$3(9,"div",8),oM(10,Vf,5,11,"button",9,Mf),Pd$1(),ta$3(12,"div",10)(13,"button",11),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.switchArea())}),QM(14),Pd$1(),ta$3(15,"button",12),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.logout())}),QM(16),Pd$1()()(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(4),Gd$1(" ",t("otp.schoolSelect.title")," "),uT(),Pv$1("aria-label",t("common.close")),uT(3),jv$1("items",a.sortingMethods)("value",a.currentSortId()),uT(2),iM(a.schools()),uT(3),jv$1("disabled",!a.selectedSchoolId()||a.loading()),uT(),Gd$1(" ",t("otp.schoolSelect.switchArea")," "),uT(),jv$1("disabled",a.loading()),uT(),Gd$1(" ",t("auth.logout")," ");}}var Mp=(()=>{class e{constructor(){this._clientAuthService=g$k(w$4),this._clientSchoolListService=g$k(W$3),this._maService=g$k(k$4),this._router=g$k(H$8),this._noti=g$k(wi$1),this._transloco=g$k(Ce$5),this._authManager=g$k(J$4),this._mobileStorage=g$k(q$3),this._pushService=g$k(ir$1),this._appBadge=g$k(fn$1),this._logger=g$k($E),this.exitAction=J8(),this.sortingMethods=[{id:"lastUsed",name:""},{id:"name",name:""}],this.schools=On$7([]),this.selectedSchoolId=On$7(null),this.currentSchoolId=On$7(null),this.loading=On$7(null),this.currentSortId=On$7("lastUsed");}async ngOnInit(){let t=this._transloco.translate("otp.schoolSelect.sortingMethods.name"),a=this._transloco.translate("otp.schoolSelect.sortingMethods.lastUsed");this.sortingMethods=[{id:"lastUsed",name:a},{id:"name",name:t}];let o=await this._clientSchoolListService.getStoredSchoolsWithFreshMetadata();if(!o||o.length===0){this.exitAction.emit();return}this.currentSchoolId.set(this._authManager.getCurrentSchoolId()),this.schools.set(o),await this._applySort("lastUsed"),await this._preselectMostRecent();}async _preselectMostRecent(){let t=this.schools();if(t.length===0)return;let a=await this._mobileStorage.getSchoolLastUsedMap(),o=this.currentSchoolId(),i=t.filter(f=>f.schoolId!==o);if(i.length===0)return;let d=[...i].sort((f,y)=>(a[y.schoolId]??0)-(a[f.schoolId]??0));this.selectedSchoolId.set(d[0].schoolId);}close(){this.exitAction.emit();}selectCard(t){t.schoolId!==this.currentSchoolId()&&this.selectedSchoolId.set(t.schoolId);}async onSortChange(t){this.currentSortId.set(t),await this._applySort(t);}async _applySort(t){let a=[...this.schools()];if(t==="name")a.sort((o,i)=>o.name.localeCompare(i.name));else {let o=await this._mobileStorage.getSchoolLastUsedMap();a.sort((i,d)=>(o[d.schoolId]??0)-(o[i.schoolId]??0));}this.schools.set(a);}async switchArea(){let t=this.selectedSchoolId();if(!t)return;let a=this.schools().find(i=>i.schoolId===t),o=this.schools().find(i=>i.schoolId===this.currentSchoolId());if(!(!a||!o||this.loading())){this.loading.set(t),this._logger.info("[DIAG][SwitchSchool] switchArea() begin",{targetSchoolId:a.schoolId,targetSchoolUrl:a.url,currentSchoolId:this.currentSchoolId()});try{let i=await this._authManager.switchSchool(a.schoolId,a.tenantId??"");if(this._logger.info("[DIAG][SwitchSchool] authManager.switchSchool returned",{result:i}),i.schoolInactive){this.loading.set(null),this._noti.errorIntl("auth.schoolSelect.schoolInactive",{},5e3);return}if(i.schoolNotListedForMobileApps){this.loading.set(null),this._noti.errorIntl("auth.schoolSelect.schoolNotListedForMobileApps",{},5e3);return}if(!i.success){this.loading.set(null),this._noti.errorIntl("auth.schoolSelect.error",{},5e3);return}await this.switchMemberArea(a),this._logger.info('[DIAG][SwitchSchool] switch complete, reloading to root "/"'),this.exitAction.emit("switched"),window.location.href="/";}catch(i){this._logger.error("[SwitchSchool] switchArea() threw",{error:i}),this.loading.set(null),this._noti.errorIntl("auth.schoolSelect.error",{},5e3);}}}async switchMemberArea(t){await this._mobileStorage.setLastSelectedSchool(t.schoolId),await this._mobileStorage.setStoredSchoolId(t.schoolId,t.url),await qE$1(this._maService.syncMaByUrl(t.url,true));}async logout(){try{await this._pushService.unregisterDevice();}catch{}if(await this._appBadge.clear(),await this._authManager.logoutFromAllSchools(),U$5.isNativePlatform())try{await r$3.signOut();}catch{}await this._clientAuthService.clearOtpAuthorization(),await this._mobileStorage.clearStoredSchoolId(),this.exitAction.emit("logout"),this._router.navigate(["/auth/generic-client/email"]);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-switch-school"]],outputs:{exitAction:"exitAction"},decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-col"],[1,"mb-4","flex","items-center","justify-between","gap-3"],["id","switch-school-heading",1,"text-text-strong","truncate","text-base","font-semibold"],["type","button",1,"focus-primary","text-icons-subtle","hover:bg-backgrounds-
2737hover","hover:text-icons-default","-mr-1","shrink-0","rounded","p-1","transition-colors",3,"click"],["name","hero-x-mark",1,"text-xl"],[1,"mb-4","w-full"],["itemValueKey","id","itemDisplayKey","name",1,"text-text-subtle","block","w-full","text-sm",3,"selectionChange","items","value"],[1,"mb-6","grid","max-h-96","grid-cols-2","gap-3","overflow-y-auto","p-1"],["type","button",1,"bg-backgrounds-surface-raised","border-borders-primary","hover:border-borders-secondary","hover:bg-backgrounds-hover","flex","flex-col","items-center","gap-3","rounded-xl","border","p-4","text-left","transition-colors","disabled:opacity-60",3,"disabled","ring-2","ring-primary","bg-backgrounds-fill-selected-subtle","cursor-not-allowed"],[1,"flex","flex-col","gap-3"],["type","button","mspotButton","","color","system","variant","strong","size","lg",1,"w-full","rounded-xl",3,"click","disabled"],["type","button","mspotButton","","color","danger","variant","ghost","size","lg",1,"w-full",3,"click","disabled"],["type","button",1,"bg-backgrounds-surface-raised","border-borders-primary","hover:border-borders-secondary","hover:bg-backgrounds-hover","flex","flex-col","items-center","gap-3","rounded-xl","border","p-4","text-left","transition-colors","disabled:opacity-60",3,"click","disabled"],[1,"flex","h-14","w-14","items-center","justify-center","overflow-hidden","rounded-2xl"],[1,"bg-backgrounds-subtle","text-text-default","flex","h-14","w-14","items-center","justify-center","rounded-lg","text-lg","font-semibold"],[1,"text-text-strong","line-clamp-2","w-full","text-center","text-sm","font-medium","leading-tight"],[1,"h-full","w-full","object-cover",3,"src","alt"]],template:function(a,o){a&1&&gv$1(0,zf,17,8,"ng-container",0);},dependencies:[yt$a,Xi,g$a,le$9],encapsulation:2});}}return e})();var Ap=(()=>{class e{constructor(){this._bottomSheetRef=g$k(X$b);}close(){this._bottomSheetRef.dismiss();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-switch-school-sheet"]],decls:3,vars:0,consts:[[1,"px-4","pb-4"],[3,"exitAction"]],template:function(a,o){a&1&&(Vv$1(0,"mspot-bottom-sheet-handle"),ta$3(1,"div",0)(2,"mspot-switch-school",1),Zv$1("exitAction",function(){return o.close()}),Pd$1()());},dependencies:[Mp,Zt$6],encapsulation:2});}}return e})();function ai(e){return e.open(Ap,{panelClass:"mat-bottom-sheet-container-p-0",autoFocus:"dialog"})}var yp="70ms ease-in",Vp=_("fadeInFromLeftAnimation",[p$2(":enter",[d$1({opacity:0,transform:"translateX(-50%)"}),f$1(yp,d$1({opacity:1,transform:"translateX(0)"}))]),p$2(":leave",[...Sp("left")])]),zp=_("fadeInFromRightAnimation",[p$2(":enter",[d$1({opacity:0,transform:"translateX(50%)"}),f$1(yp,d$1({opacity:1,transform:"translateX(0)"}))]),p$2(":leave",[...Sp("right")])]);function Sp(e,r=70,t="50%"){return [d$1({opacity:1,transform:"translateX(0)"}),f$1(`${r}ms ease-in`,d$1({opacity:0,transform:`translateX(${e==="left"?"-":""}${t})`}))]}var Sf=["*"],Lp=(e,r)=>({"opacity-100":e,"-z-[1] opacity-0":r});function Hf(e,r){if(e&1){let t=fM();ta$3(0,"button",2,0),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.scrollInDirection("left"))}),Vv$1(2,"ng-icon",3),Pd$1(),Vv$1(3,"div",4);}if(e&2){let t=TM(1),a=yM();jv$1("@fadeInFromLeftAnimation",void 0),uT(3),Ma$2("left",t?.offsetWidth+"px"),jv$1("@fadeInFromLeftAnimation",void 0)("ngClass",pN(5,Lp,a.scrollEndPosition()!=="left",a.scrollEndPosition()==="left"));}}function Lf(e,r){if(e&1){let t=fM();Vv$1(0,"div",5),ta$3(1,"button",6,1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.scrollInDirection("right"))}),Vv$1(3,"ng-icon",7),Pd$1();}if(e&2){let t=TM(2),a=yM();Ma$2("right",t?.offsetWidth+"px"),jv$1("@fadeInFromRightAnimation",void 0)("ngClass",pN(5,Lp,a.scrollEndPosition()!=="right",a.scrollEndPosition()==="right")),uT(),jv$1("@fadeInFromRightAnimation",void 0);}}var Hp=300,Tp=(()=>{class e{constructor(){this._destroyRef=g$k(de$b),this.areThereItems=X8.required(),this._elementRef=g$k(gt$f),this._calculateOverflowTrigger$=new le$d,this._cdr=g$k(Va$2),this.scrollEndPosition=On$7("left"),this.isOverflowing=On$7(false),this.showLeftArrow=qd$1(()=>this.areThereItems()&&this.scrollEndPosition()!=="left"&&this.isOverflowing()),this.showRightArrow=qd$1(()=>this.areThereItems()&&this.scrollEndPosition()!=="right"&&this.isOverflowing()),this.scroll$=cc$1(this._elementRef.nativeElement,"scroll").pipe(up$1(50)),this.scroll$.pipe(st$c(t=>t.target),qG()).subscribe(t=>{window.requestAnimationFrame(()=>{this.scrollEndPosition.set(G$1(t));});}),this._registerResizeObserver();}ngOnInit(){this._calculateOverflowTrigger$.pipe(up$1(50),Qf$1(0),qG(this._destroyRef)).subscribe(()=>{this.isOverflowing.set(wt$2(this._elementRef.nativeElement)),this._cdr.detectChanges();});}
2737ngOnDestroy(){this._resizeObserver?.disconnect();}scrollInDirection(t){t==="right"?this._elementRef.nativeElement.scrollLeft+=Hp:this._elementRef.nativeElement.scrollLeft-=Hp;}_registerResizeObserver(){this._resizeObserver=new ResizeObserver(()=>this._calculateOverflowTrigger$.next()),this._resizeObserver.observe(this._elementRef.nativeElement);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-horizontal-scroll-container"]],hostAttrs:[1,"flex","items-center","overflow-x-auto","scroll-smooth","h-full"],inputs:{areThereItems:[1,"areThereItems"]},ngContentSelectors:Sf,decls:3,vars:2,consts:[["leftBtn",""],["rightBtn",""],[1,"navigation-button","left-0",3,"click"],["name","heroChevronLeft",1,"h-4","w-4"],[1,"fade-out","bg-gradient-to-r",3,"ngClass"],[1,"fade-out","bg-gradient-to-l",3,"ngClass"],[1,"navigation-button","right-0",3,"click"],["name","heroChevronRight",1,"h-4","w-4"]],template:function(a,o){a&1&&(DM(),eM$1(0,Hf,4,8),EM(1),eM$1(2,Lf,4,8)),a&2&&(tM$1(o.showLeftArrow()?0:-1),uT(2),tM$1(o.showRightArrow()?2:-1));},dependencies:[kx$1,mx$1,le$9],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]::-webkit-scrollbar{display:none}.fade-out[_ngcontent-%COMP%]{position:absolute;bottom:0;top:0;z-index:10;width:7rem;--tw-gradient-from: var(--client-header-bg) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-out[_ngcontent-%COMP%]:is(.dark *){--tw-gradient-from: var(--client-header-bg-dark-solid) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.navigation-button[_ngcontent-%COMP%]{position:absolute;bottom:0;top:0;z-index:10;display:flex;align-items:center;background-color:var(--client-header-bg);padding-left:1rem;padding-right:1rem;color:var(--client-header-color);transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.navigation-button[_ngcontent-%COMP%]:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.navigation-button[_ngcontent-%COMP%]:is(.dark *){background-color:var(--client-header-bg-dark-solid);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}"],data:{animation:[Vp,zp]}});}}return e})();var Vr=(()=>{class e{constructor(){this._previousTrigger=On$7(null),this.previousTrigger=this._previousTrigger.asReadonly();}setPreviousTrigger(t){this._previousTrigger.set(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();var Bp=e=>({item:e}),Tf=e=>({"pointer-events-none":e}),Bf=(e,r)=>r.id;function kf(e,r){e&1&&$v$1(0);}function Ef(e,r){if(e&1&&(ta$3(0,"a",9),gv$1(1,kf,1,0,"ng-container",10),Pd$1()),e&2){let t=yM().$implicit,a=yM(),o=TM(10);iD("focus-primary--inner-outline",!a.isMouseInteraction()),jv$1("href",t.httpLink,Gm$1),uT(),jv$1("ngTemplateOutlet",o)("ngTemplateOutletContext",fN(5,Bp,t));}}function Df(e,r){e&1&&$v$1(0);}function Ff(e,r){if(e&1&&(ta$3(0,"a",11),gv$1(1,Df,1,0,"ng-container",10),Pd$1()),e&2){let t=yM().$implicit,a=yM(),o=TM(10);iD("focus-primary--inner-outline",!a.isMouseInteraction()),jv$1("routerLink",a.getInternalLink(t)),uT(),jv$1("ngTemplateOutlet",o)("ngTemplateOutletContext",fN(5,Bp,t));}}function If(e,r){if(e&1&&eM$1(0,Ef,2,7,"a",7)(1,Ff,2,7,"a",8),e&2){let a=r.$implicit.type==="link";tM$1(a?0:1);}}function Nf(e,r){if(e&1&&Vv$1(0,"mspot-sidemenu-item",12),e&2){let t=r.item,a=yM();jv$1("item",t)("ngClass",fN(2,Tf,a.disableClicksInPreviewMode));}}var kp=(()=>{class e{constructor(){this._menuManager=g$k(Vr),this._injector=g$k(oe$e),this._document=g$k(Te$g),this._hostEl=g$k(gt$f),this.title="",this.menuItems=[],this.disableClicksInPreviewMode=false,this.menuItemSelected=new Ct$h,this.links=n3(),this.isMouseInteraction=On$7(false),this._openedByMouse=false,this.childLinkActive=qd$1(()=>this.links().some(i=>i.linkActive()));let t=this._hostEl.nativeElement,a=o=>{o instanceof MouseEvent&&o.detail>0&&o.stopPropagation();};t.addEventListener("click",a,{capture:true}),g$k(de$b).onDestroy(()=>t.removeEventListener("click",a,{capture:true}));}onGlobalKeyDown(t){t.key==="Tab"&&this.isMouseInteraction.set(false);}menuOpened(t){this._menuManager.setPreviousTrigger(t),this._openedByMouse&&(this._openedByMouse=false,Xl$1(()=>{t.menu?.resetActiveItem();let a=this._document.activeElement;a instanceof HTMLElement&&a.classList.contains("mat-mdc-menu-item")&&a.blur();},{injector:this._injector}));}mouseEnter(t){this.isMouseInteraction.set(true),this._openedByMouse=true;let a=this._menuManager.previousTrigger();a&&a!==t&&a.closeMenu(),this._timedOutCloser&&(clearTimeout(this._timedOutCloser),this._timedOutCloser=void 0),t.menuOpen||t.openMenu();}mouseLeave(t){this._timedOutCloser&&clearTimeout(this._timedOutCloser),this._timedOutCloser=setTimeout(()=>{t.closeMenu();},250);}onMouseMove(){this.isMouseInteraction.set(true);}getInternalLink(t){return w$f(t)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-community-menu-dropdown"]],viewQuery:function(a,o){a&1&&eD(o.links,ve,5),a&2&&bM();},hostBindings:function(a,o){a&1&&Zv$1("keydown",function(d){return o.onGlobalKeyDown(d)},mb$1);},inputs:{title:"title",menuItems:"menuItems",disableClicksInPreviewMode:"disableClicksInPreviewMode"},outputs:{menuItemSelected:"menuItemSelected"},decls:11,vars:7,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["itemContent",""],["type","button","mspotSideMenuActiveStyle","",1,"flex","items-center","overflow-hidden","hover:bg-none",3,"mouseenter","mouseleave","mousemove","menuOpened","applyFocusPrimary","isActive","matMenuTriggerFor"],[1,"pointer-events-none","overflow-ellipsis"],[3,"hasBackdrop"],[3,"mouseenter","mouseleave"],["mat-menu-item","","target","_blank",1,"community-menu-dropdown-item",3,"focus-primary--inner-outline","href"],["mat-menu-item","",1,"community-menu-dropdown-item",3,"focus-primary--inner-outline","routerLink"],["mat-menu-item","","target","_blank",1,"community-menu-dropdown-item",3,"href"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-menu-item","",1,"community-menu-dropdown-item",3,"routerLink"],[1,"block","h-10",3,"item","ngClass"]],template:function(a,o){if(a&1){let i=fM();ta$3(0,"button",3,0),Zv$1("mouseenter",function(){sh$1(i);let f=TM(1);return ah$1(o.mouseEnter(f))})("mouseleave",function(){sh$1(i);let f=TM(1);return ah$1(o.mouseLeave(f))})("mousemove",function(){return o.onMouseMove()})("menuOpened",function(){sh$1(i);let f=TM(1);return ah$1(o.menuOpened(f))}),ta$3(2,"span",4),QM(3),Pd$1()(),ta$3(4,"mat-menu",5,1)(6,"div",6),Zv$1("mouseenter",function(){sh$1(i);let f=TM(1);return ah$1(o.mouseEnter(f))})("mouseleave",function(){sh$1(i);let f=TM(1);return ah$1(o.mouseLeave(f))}),oM(7,If,2,1,null,null,Bf),Pd$1()(),gv$1(9,Nf,1,4,"ng-template",null,2,SN);}if(a&2){let i=TM(5);iD("focus-primary--inner-outline",!o.isMouseInteraction()),jv$1("applyFocusPrimary",false)("isActive",o.childLinkActive())("matMenuTriggerFor",i),uT(3),yD(o.title),uT(),jv$1("hasBackdrop",false),uT(3),iM(o.menuItems);}},dependencies:[ln$5,G$9,ce$5,sn$5,ve,xr,mx$1,kt$7,Ix$1],styles:[".community-menu-dropdown-item.mat-mdc-menu-item:not(.large){padding:0!important}"]});}}return e})();var Pf=(e,r)=>r.id;function Rf(e,r){if(e&1&&(ta$3(0,"a",3,0),QM(2),Pd$1()),e&2){let t=TM(1);yM();let a=tN(1),o=yM();jv$1("routerLink",o.homeLink())("isActive",t.isActive),uT(2),Gd$1(" ",a?.customView?.startPageLink||"Home"," ");}}function Of(e,r){if(e&1&&(ta$3(0,"a",4,0),QM(2),Pd$1()),e&2){let t=TM(1),a=yM().$implicit,o=tN(1);jv$1("isActive",t.isActive),uT(2),Gd$1(" ",o?.customView?.myTrainingsLink||a("client.myCourses")," ");}}function qf(e,r){if(e&1&&(ta$3(0,"a",5,0),QM(2),Pd$1()),e&2){let t=TM(1),a=yM().$implicit,o=tN(1);jv$1("isActive",t.isActive),uT(2),Gd$1(" ",o?.customView?.spacesLink||a("text.community")," ");}}function $f(e,r){if(e&1&&(ta$3(0,"a",6,0),QM(2),Pd$1()),e&2){let t=TM(1),a=yM().$implicit,o=tN(1);jv$1("isActive",t.isActive),uT(2),Gd$1(" ",o?.customView?.defaultPortalsName||a("text.portals")," ");}}function Uf(e,r){if(e&1&&(ta$3(0,"a",7,0),QM(2),Pd$1()),e&2){let t=TM(1),a=yM().$implicit,o=tN(1);jv$1("isActive",t.isActive),uT(2),Gd$1(" ",o?.customView?.defaultAgentsName||a("text.aiAgents")," ");}}function jf(e,r){if(e&1&&(ta$3(0,"a",8,0),QM(2),Pd$1()),e&2){let t=TM(1),a=yM().$implicit;jv$1("isActive",t.isActive),uT(2),Gd$1(" ",a("text.events")," ");}}function Gf(e,r){}function Qf(e,r){if(e&1&&Vv$1(0,"mspot-community-menu-dropdown",9),e&2){let t=yM().$implicit;yM();let a=tN(2);jv$1("title",t.title)("menuItems",t.children)("disableClicksInPreviewMode",a);}}function Zf(e,r){if(e&1&&(ta$3(0,"a",10)(1,"span",12),QM(2),Pd$1()()),e&2){let t=yM(2).$implicit;jv$1("href",t.link,Gm$1),uT(2),yD(t.title);}}function Wf(e,r){if(e&1&&(ta$3(0,"a",11,0)(2,"span",12),QM(3),Pd$1()()),e&2){let t=TM(1),a=yM(2).$implicit;jv$1("routerLink",a.link)("isActive",t.isActive),uT(3),yD(a.title);}}function Kf(e,r){if(e&1&&eM$1(0,Zf,3,2,"a",10)(1,Wf,4,3,"a",11),e&2){let t=yM().$implicit;tM$1(t.type==="link"?0:1);}}function Xf(e,r){if(e&1&&eM$1(0,Gf,0,0)(1,Qf,1,3,"mspot-community-menu-dropdown",9)(2,Kf,2,1),e&2){let t=r.$implicit,a=yM(2);tM$1(t.id===a.DEFAULT_PORTALS_GROUP_ID||t.id===a.DEFAULT_AGENTS_GROUP_ID?0:t.type==="group"?1:2);}}function Yf(e,r){if(e&1&&(Hd$1(0),wD(1)(2),eM$1(3,Rf,3,3,"a",3),eM$1(4,Of,3,2,"a",4),eM$1(5,qf,3,2,"a",5),eM$1(6,$f,3,2,"a",6),eM$1(7,Uf,3,2,"a",7),eM$1(8,jf,3,2,"a",8),oM(9,Xf,3,1,null,null,Pf),$d$1()),e&2){let t=yM();uT(),eN(t.memberArea());let a=t.spacesActive(),o=t.hasHome();uT(),eN(t.isAdmin()),uT(),tM$1(o?3:-1),uT(),tM$1(o||a||t.items().length?4:-1),uT(),tM$1(a?5:-1),uT(),tM$1(t.hasMissingPortals()?6:-1),uT(),tM$1(t.hasMissingAgents()?7:-1),uT(),tM$1(t.eventPlanEnabled()&&a?8:-1),uT(),iM(t.items());}}
2737var Ep=(()=>{class e{constructor(){this.hasHome=X8(false),this.homeLink=X8("/home/start"),this.spacesActive=X8(false),this.gamificationEnabled=X8(false),this.memberArea=X8(),this.isAdmin=X8(false),this.navItems=X8(null),this.eventPlanEnabled=X8(false),this.items=qd$1(()=>this.navItems()??[]),this.hasMissingPortals=qd$1(()=>this.memberArea()?.customView?.hidePortalsOverview?false:(this.items().find(a=>a.id===Ea)?.children?.length??0)>0),this.hasMissingAgents=qd$1(()=>this.memberArea()?.customView?.hideAgentsOverview?false:(this.items().find(a=>a.id===ka)?.children?.length??0)>0),this.DEFAULT_PORTALS_GROUP_ID=Ea,this.DEFAULT_AGENTS_GROUP_ID=ka;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-community-header-navigation"]],hostAttrs:[1,"flex","flex-1","items-center","gap-1","overflow-x-auto","scroll-smooth","relative","h-full","scrollbar-hide"],hostVars:2,hostBindings:function(a,o){a&2&&iD("is-admin",o.isAdmin());},inputs:{hasHome:[1,"hasHome"],homeLink:[1,"homeLink"],spacesActive:[1,"spacesActive"],gamificationEnabled:[1,"gamificationEnabled"],memberArea:[1,"memberArea"],isAdmin:[1,"isAdmin"],navItems:[1,"navItems"],eventPlanEnabled:[1,"eventPlanEnabled"]},features:[cN([Vr])],decls:2,vars:1,consts:[["rla","routerLinkActive"],[1,"flex-1","gap-10",3,"areThereItems"],[4,"transloco"],["routerLinkActive","","mspotSideMenuActiveStyle","",3,"routerLink","isActive"],["routerLink","/library","routerLinkActive","","mspotSideMenuActiveStyle","",3,"isActive"],["routerLink","/community","routerLinkActive","","mspotSideMenuActiveStyle","",3,"isActive"],["routerLink","/portale","routerLinkActive","","mspotSideMenuActiveStyle","",3,"isActive"],["routerLink","/agents","routerLinkActive","","mspotSideMenuActiveStyle","",3,"isActive"],["routerLink","/events","routerLinkActive","","mspotSideMenuActiveStyle","","data-cy","events-header-nav",3,"isActive"],[1,"block","cursor-pointer","md:h-full",3,"title","menuItems","disableClicksInPreviewMode"],["mspotSideMenuActiveStyle","","target","_blank","routerLinkActive","",3,"href"],["mspotSideMenuActiveStyle","","routerLinkActive","",3,"routerLink","isActive"],[1,"overflow-ellipsis"]],template:function(a,o){a&1&&(ta$3(0,"mspot-horizontal-scroll-container",1),gv$1(1,Yf,11,8,"ng-container",2),Pd$1()),a&2&&jv$1("areThereItems",o.items().length>0);},dependencies:[kt$7,ea$1,kp,zt$7,yt$a,Tp,xr],styles:[".is-admin[_nghost-%COMP%] a[_ngcontent-%COMP%]{pointer-events:none}a[_ngcontent-%COMP%]{white-space:nowrap}"]});}}return e})();var zr=(()=>{class e{constructor(){this._http=g$k(Ce$a);}searchWithCount(t,a){return t?this.searchAdminWithCount(a):this.searchClientWithCount(a)}searchAdminWithCount(t){return this._http.generic({url:"/search/admin/v3",data:t,method:b$e.POST})}searchClientWithCount(t){return this._http.generic({url:"/search/client/v3",data:t,method:b$e.POST})}searchCommunityWithCount(t){return this._http.generic({url:"/search/client/community/v1",data:t,method:b$e.POST})}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ni=100,Jf=100,tC=e=>r7(e.toLowerCase()),eC=e=>{try{return JSON.parse(e).map(t=>{let a=t.text;if(t._id!==void 0&&t._id!==null){let o=String(t._id);if(o){let i=new RegExp(oi(o),"g");a=a.replace(i,"").trim();}}if(t.id!==void 0&&t.id!==null){let o=String(t.id);if(o){let i=new RegExp(oi(o),"g");a=a.replace(i,"").trim();}}return {start:t.start,end:t.end,text:a}})}catch{return []}},aC=new Intl.Segmenter("und",{granularity:"grapheme"});function Dp(e){return e.normalize("NFKD").toLowerCase().replace(/Ï/g,"\u03C3").replace(new RegExp("\\p{M}","gu"),"").replace(/Ã/g,"ss")}function oC(e,r){let t="",a=[];for(let{segment:y,index:L}of aC.segment(e)){let R=Dp(y);t+=R,a.push(...Array.from({length:R.length},()=>({start:L,end:L+y.length})));}let o=[];for(let y of r){let L=Dp(y),R=L?t.indexOf(L):-1;if(R<0)return null;for(;R>=0;)o.push({start:a[R].start,end:a[R+L.length-1].end}),R=t.indexOf(L,R+1);}let i=[];for(let y of o.sort((L,R)=>L.start-R.start)){let L=i[i.length-1];L&&y.start<L.end?L.end=Math.max(L.end,y.end):i.push(r$d({},y));}let d=0,f="";for(let{start:y,end:L}of i)f+=`${r$1(e.slice(d,y))}<span class="font-bold">${r$1(e.slice(y,L))}</span>`,d=L;return f+r$1(e.slice(d))}var rC=(e,r)=>e.flatMap(t=>{let a=oC(t.text,r);return a===null?[]:[{highlightedText:Pp(a),timestamp:t.start}]}).filter(t=>t.highlightedText&&!/^\s*(\.\.\.\s*)*\s*$/.test(t.highlightedText)).slice(0,ni),nC=(e,r)=>{let t=e.text.toLowerCase().slice(0,Jf);return r.reduce((a,o)=>o.length<=4?t.includes(o)?a+o.length*2:a:Array.from({length:t.length-2},(i,d)=>d).reduce((i,d)=>{let f=Math.min(o.length,4);if(d+f<=t.length){let y=t.substring(d,d+f);if(y.length>=4){if(o.includes(y))return i+f;if(o.length>=6&&Np(o,y)<=1)return i+f*.5}}return i},a),0)},iC=(e,r)=>{let t=Math.max(3,r[0]?.length||3);return e.map(a=>({segment:a,score:nC(a,r)})).filter(({score:a})=>a>=t).sort((a,o)=>o.score-a.score)},oi=e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),sC=(e,r)=>r.filter(t=>t.length>=3).reduce((t,a)=>e.split(/\s+/).filter(d=>{let f=d.replace(/[.,!?;:()]/g,"").toLowerCase();return f.length>=3&&(f.includes(a)||a.includes(f)||Np(a,f)<=2)}).reduce((d,f)=>{let y=new RegExp(`(${oi(r$1(f))})`,"g");return d.replace(y,'<span class="font-bold">$1</span>')},t),r$1(e)),lC=(e,r,t)=>{let a=new Set(r.map(i=>i.timestamp)),o=e.filter(i=>!a.has(i.segment.start)).map(i=>({highlightedText:Pp(sC(i.segment.text,t)),timestamp:i.segment.start})).filter(i=>i.highlightedText&&!/^\s*(\.\.\.\s*)*\s*$/.test(i.highlightedText));return [...r,...o].slice(0,ni)},Ip=(e,r)=>{if(r.type!=="transcript"||!r.description)return [];let t=eC(r.description);if(!t.length)return [];let a=tC(e);if(!a.length)return [];let o=rC(t,a);if(o.length<=ni){let i=iC(t,a);o=lC(i,o,a);}return o},Np=(e,r)=>{if(e.length===0)return r.length;if(r.length===0)return e.length;let t=[];for(let a=0;a<=r.length;a+=1)t[a]=[a];for(let a=0;a<=e.length;a+=1)t[0][a]=a;for(let a=1;a<=r.length;a+=1)for(let o=1;o<=e.length;o+=1){let i=e[o-1]===r[a-1]?0:1;t[a][o]=Math.min(t[a-1][o]+1,t[a][o-1]+1,t[a-1][o-1]+i);}return t[r.length][e.length]},Pp=e=>{let r=e.trim(),t=/^[A-ZÃÃÃ]/.test(r),a=/[.!?]$/.test(r);return `${t?"":"... "}${r}${a?"":" ..."}`},ri=80,Rp=(e,r)=>{if(!e)return "";let t=r.trim();if(!t)return Fp(e);let a=e.toLowerCase(),o=t.toLowerCase(),i=a.indexOf(o);if(i<0)return Fp(e);let d=Math.max(0,i-ri),f=Math.min(e.length,i+o.length+ri),y=e.slice(d,f),L=i-d,R=y.slice(0,L),Q=y.slice(L,L+o.length),d0=y.slice(L+o.length),{prefix:m0,suffix:n0}=Op(y),f0=`${r$1(R)}<span class="font-bold">${r$1(Q)}</span>${r$1(d0)}`;return `${m0}${f0}${n0}`},Fp=e=>{let r=e.slice(0,ri*2),{prefix:t,suffix:a,body:o}=Op(r);return `${t}${r$1(o)}${a}`},Op=e=>{let r=e.trim(),t=/^[A-ZÃÃÃ]/.test(r),a=/[.!?]$/.test(r);return {prefix:t?"":"... ",suffix:a?"":" ...",body:r}},ii=(e,r,t)=>{let a=e?["/",r.schoolId,"courses",r.courseId]:["/","library"],o=[];if(r.type==="course")o=e?a:[...a,r.courseId];else if(r.type==="chapter"&&r.chapterId)o=e?[...a,r.chapterId]:[...a,r.courseId,r.chapterId];else if(["lecture","transcript"].includes(r.type)&&r.chapterId&&r.lectureId&&(o=e?[...a,r.chapterId,r.lectureId]:[...a,r.courseId,r.chapterId,r.lectureId],t!==void 0))return {url:o,queryParams:{t:Math.floor(t)}};return {url:o}};var qp=(()=>{class e{constructor(){this._searchApiService=g$k(zr),this._spacesQuery=g$k(M$9);}search(t,a,o,i,d){return a?this._searchApiService.searchCommunityWithCount({schoolId:t,searchTerm:a,pageIndex:o,withCount:i,spaceIds:d?.length?d:void 0}).pipe(st$c(f=>({items:f.items.map(y=>this._mapToViewModel(y,a)),totalCount:f.totalCount}))):yI(null)}
2737_mapToViewModel(t,a){let o=v$g(t.content),i=t.title?.trim()||this._fallbackTitle(o);return {title:r$1(i),shortDescription:Rp(o,a),link:{url:["/","community",t.spaceId,t._id]},breadcrumbs:[],spaceName:this._spaceName(t.spaceId),createdAt:t.createdAt,icon:"heroChatBubbleLeftRight",type:"spacePost"}}_spaceName(t){return this._spacesQuery.getEntity(t)?.name??null}_fallbackTitle(t){if(!t)return "";let a=t.slice(0,80);return a.length<t.length?`${a}\u2026`:a}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var cC=e=>{let r=Math.floor(e/60),t=Math.floor(e%60),a=String(r).padStart(2,"0"),o=String(t).padStart(2,"0");return `${a}:${o}`},si=(e,r)=>{if(e.type==="chapter")return hC(e);if(e.type==="transcript"){let t=$p(e);return r&&t.push(cC(r)),t}return $p(e)},hC=e=>e.courseName?[e.courseName]:[],$p=e=>{if(e.type==="course")return [];let r=[];return e.courseName&&r.push(e.courseName),e.chapterName&&r.push(e.chapterName),r};var Sr=(e,r,t)=>{let a=(r.highlights||[]).filter(d=>d.path===e);if(a.length===0)return r[e]?.toString()||"";let o=a[0].texts.filter(d=>d.type==="hit"),i=r[e]?.toString()||"";for(let d of o)i=i.replace(d.value,`<span class="${t}">${d.value}</span>`);return i};var li=e=>e.type==="chapter"?"hero-bookmark":e.type==="course"?"hero-academic-cap":pC(e.lectureType),pC=e=>{switch(e){case t$6.TEXTPOST:return "hero-bars-3-bottom-left";case t$6.CERTIFICATE:return "hero-check-badge";case t$6.AUDIOPOST:return "hero-play";case t$6.LECTURE:return "hero-play";case t$6.EXAM:return "hero-question-mark-circle";case t$6.SUBCHAPTER:return "hero-folder-open";case t$6.AGENT:return "custom-ai";case t$6.USERPROPERTIES:return "hero-identification";default:return "hero-document"}};var V1=(function(e){return e.CONTENT="content",e.USERS="users",e})(V1||{});var Up=(()=>{class e{constructor(){this._searchApiService=g$k(zr),this._isAdmin=g$k(kE),this._mapToSearchViewModel=(t,a)=>t.flatMap(o=>o.type==="transcript"?Ip(a,o).map(d=>this._createTranscriptSearchViewModel(o,d)):[this._createBaseSearchViewModel(o)]);}searchWithCount(t,a,o,i=false,d=false){if(!t)throw Error("schoolId in search is missing");return a?this._searchApiService.searchWithCount(this._isAdmin,{schoolId:t,searchTerm:a,page:o,searchTranscripts:i,withCount:d}).pipe(st$c(f=>({items:this._mapToSearchViewModel(f.items,a),totalCount:f.totalCount,totalCountRelation:f.totalCountRelation}))):yI(null)}_createTranscriptSearchViewModel(t,a){return {title:Sr("name",t,"text-mspot-neutral-950 font-bold"),shortDescription:a.highlightedText,timestamp:a.timestamp,link:ii(this._isAdmin,t,a.timestamp),breadcrumbs:si(t,a.timestamp),icon:li(t),type:t.type}}_createBaseSearchViewModel(t){return {title:Sr("name",t,"text-mspot-neutral-950 font-bold"),shortDescription:Sr("description",t,"font-bold"),link:ii(this._isAdmin,t),breadcrumbs:si(t),icon:li(t),type:t.type}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function jp(e){let r=e;if(r?.status!==429)return;let t=r.headers?.get("Retry-After"),a=Number(t),o=t?Number.isFinite(a)?a*1e3:Date.parse(t)-Date.now():0,i=r.error?.retryAfterMs;return Math.max(500,Number.isFinite(o)?o:0,typeof i=="number"&&Number.isFinite(i)?i:0)}var Hr=class{constructor(r=()=>{},t={nextAt:0}){this._onDelayed=r,this._timing=t,this._scope="",this._queue=[];}setScope(r){if(r!==this._scope){this._scope=r,this._active?.cancel();for(let t of [...this._queue])t.cancel();this._onDelayed(false);}}schedule(r,t,a){return new Promise((o,i)=>{let d=0,f,y=false,L=(d0,m0)=>{if(y)return;y=true,a.removeEventListener("abort",R);let n0=this._queue.indexOf(Q);n0>=0&&this._queue.splice(n0,1),this._active===Q&&(this._active=void 0,this._timing.nextAt=Math.max(this._timing.nextAt,Date.now()+500)),f?.unsubscribe(),d0?i(d0):o(m0),this._pump();},R=()=>L(new bt$e({revert:true})),Q={scope:r,cancel:R,start:()=>{d++;let d0,m0=false;f=MI(t).subscribe({next:n0=>{d0=n0,m0=true;},complete:()=>{this._onDelayed(false),L(m0?void 0:new Error("Search completed without a response"),d0);},error:n0=>{let f0=jp(n0);f0!==void 0&&(this._onDelayed(true),this._timing.nextAt=Math.max(this._timing.nextAt,Date.now()+f0)),f0!==void 0&&f0<=1e4&&d<3&&!a.aborted&&r===this._scope?(this._active=void 0,this._queue.push(Q),this._pump()):(this._onDelayed(false),L(n0));}});}};if(a.aborted||r!==this._scope){R();return}a.addEventListener("abort",R,{once:true}),this._queue.push(Q),this._pump();})}_pump(){if(clearTimeout(this._timer),this._active)return;if(!this._queue.length){this._onDelayed(false);return}let r=this._timing.nextAt-Date.now();if(r>0){r>500&&this._onDelayed(true),this._timer=setTimeout(()=>this._pump(),r);return}let t=this._queue.shift();t&&(this._active=t,t.scope!==this._scope?t.cancel():t.start());}};var Gp=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Qp=(e,r)=>e.map(t=>({title:t.firstname&&t.name?`${t.firstname} ${t.name}
2737`:t.email,shortDescription:t.email,link:{url:["/",r,"users",t.uid]},breadcrumbs:[],icon:"heroUser",type:"user",uid:t.uid,firstname:t.firstname,name:t.name,email:t.email,photoUrl:t.photoUrl}));var mC=new b$g("Search request timing",{providedIn:"root",factory:()=>({nextAt:0})}),ci=(()=>{class e{constructor(){this._schoolId=YG(g$k(w$g)),this._identity=YG(ie$d(g$k(nt$c))),this._searchService=g$k(Up),this._communitySearchService=g$k(qp),this._userSearchService=g$k(Gp),this.isRateDelayed=On$7(false),this._scheduler=new Hr(t=>this.isRateDelayed.set(t),g$k(mC)),this.usersSearchResults=On$7(null),this.mappedUserResults=On$7([]),this.getSearchResults=(t,a)=>se$b(()=>({queryKey:["search",this._identity()?.uid,this._identity()?.tenantId,this._schoolId(),t()],retry:false,enabled:!!this._identity()&&!!this._schoolId()&&ce(t())&&a()==="course",queryFn:async({pageParam:o,signal:i})=>{let d=await this._request("course",t(),i,()=>this._searchService.searchWithCount(this._schoolId()??null,t(),o,false,o===1));return {items:d?.items??[],totalCount:d?.totalCount,totalCountRelation:d?.totalCountRelation}},initialPageParam:1,getNextPageParam:(o,i,d)=>{if(!(!o||o.items.length===0))return d+1}})),this.getTranscriptSearchResults=(t,a)=>se$b(()=>({queryKey:["transcriptSearch",this._identity()?.uid,this._identity()?.tenantId,this._schoolId(),t()],retry:false,enabled:!!this._identity()&&!!this._schoolId()&&ce(t())&&a()==="transcripts",queryFn:async({pageParam:o,signal:i})=>({items:(await this._request("transcripts",t(),i,()=>this._searchService.searchWithCount(this._schoolId()??null,t(),o,true,false)))?.items??[]}),initialPageParam:1,getNextPageParam:(o,i,d)=>{if(!(!o||o.items.length===0))return d+1}})),this.getCommunityPostSearchResults=(t,a,o)=>se$b(()=>({queryKey:["communityPostSearch",this._identity()?.uid,this._identity()?.tenantId,this._schoolId(),t(),[...o()].sort()],retry:false,enabled:!!this._identity()&&!!this._schoolId()&&ce(t())&&a()==="community",queryFn:async({pageParam:i,signal:d})=>{let f=i-1,y=await this._request("community",t(),d,()=>this._communitySearchService.search(this._schoolId(),t(),f,f===0,o()),o());return {items:y?.items??[],totalCount:y?.totalCount}},initialPageParam:1,getNextPageParam:(i,d,f)=>{if(!(!i||i.items.length===0))return f+1}})),this.getUserSearchResults=(t,a)=>se$b(()=>({queryKey:["userSearch",this._identity()?.uid,this._identity()?.tenantId,this._schoolId(),t()],retry:false,enabled:!!this._identity()&&!!this._schoolId()&&ce(t())&&a()===V1.USERS,queryFn:async({pageParam:o,signal:i})=>{let d={query:t()||"",pageIndex:o-1,pageSize:10,sortBy:"",sortDirection:"desc"},f=await this._request("users",t(),i,()=>this._userSearchService.searchUsers(d));this.usersSearchResults.set(f);let y=Qp(f.docs,this._schoolId());return this.mappedUserResults.set(y),y},initialPageParam:1,getNextPageParam:(o,i,d)=>{let f=this.usersSearchResults();if(!(!o||o.length===0||!f||f.page===f.totalPages))return d+1}}));}bindContext(t,a,o){if(DC$1(this.bindContext),this._currentScope)throw new Error("Search context is already bound");let i=()=>this._scope(t(),a(),o());return this._currentScope=i,g$k(de$b).onDestroy(()=>this._scheduler.setScope("")),Es$3(()=>{this._scheduler.setScope(i());})}_scope(t,a,o=[]){return JSON.stringify([this._identity()?.tenantId,this._identity()?.uid,this._schoolId(),t,a,a==="community"?[...o].sort():[]])}_request(t,a,o,i,d=[]){if(!this._currentScope)throw new Error("Bind the search context before requesting results");let f=i();return this._scheduler.setScope(this._currentScope()),this._scheduler.schedule(this._scope(a,t,d),()=>f,o)}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();function vC(e,r){if(e&1&&(ta$3(0,"mspot-badge",2),Vv$1(1,"ng-icon",6),Pd$1()),e&2){let t=r,a=yM().$implicit,o=yM();jv$1("color",t.color)("label",a(t.key)),uT(),jv$1("name",o.searchResult().icon);}}function dC(e,r){if(e&1&&(ta$3(0,"mspot-badge",3),Vv$1(1,"ng-icon",7),Pd$1()),e&2){let t=yM(2);jv$1("label",r)("truncate",true),uT(),jv$1("name",t.searchResult().icon);}}function gC(e,r){if(e&1&&Vv$1(0,"mspot-search-result-item-breadcrumb",4),e&2){let t=yM(2);jv$1("breadcrumbs",t.searchResult().breadcrumbs)("isTranslationKey",t.isUser());}}function uC(e,r){if(e&1&&(ta$3(0,"div")(1,"div",8),QM(2),Pd$1(),ta$3(3,"div",9),QM(4),Pd$1()()),e&2){let t=yM(2);uT(2),Gd$1(" ",t.userName()," "),uT(2),Gd$1(" ",t.email()," ");}}function wC(e,r){if(e&1&&Vv$1(0,"div",11),e&2){let t=yM(3);jv$1("innerHTML",t.searchResult().shortDescription,cb$1);}}function fC(e,r){if(e&1&&(Vv$1(0,"div",10),eM$1(1,wC,1,1,"div",11)),e&2){let t=yM(2);jv$1("innerHTML",t.searchResult().title,cb$1),uT(),tM$1(t.searchResult().shortDescription?1:-1);}}function CC(e,r){e&1&&(ta$3(0,"div",5),QM(1),EN(2,"date"),Pd$1()),e&2&&(uT(),Gd$1(" ",wN(2,1,r,"dd.MM.yyyy")," "));}function xC(e,r){if(e&1){let t=fM();ta$3(0,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.itemSelected.emit(o.searchResult()))}),eM$1(1,vC,2,3,"mspot-badge",2),eM$1(2,dC,2,3,"mspot-badge",3),eM$1(3,gC,1,2,"mspot-search-result-item-breadcrumb",4),eM$1(4,uC,5,2,"div")(5,fC,2,2),eM$1(6,CC,3,4,"div",5),Pd$1();}if(e&2){let t,a,o,i=yM();jv$1("ngClass",i.badgeGutterClass()),uT(),tM$1((t=i.badgeData())?1:-1,t),uT(),tM$1((a=i.spaceName())?2:-1,a),uT(),tM$1(i.searchResult().breadcrumbs?.length?3:-1),uT(),tM$1(i.isUser()?4:5),uT(2),tM$1((o=i.postDate())?6:-1,o);}}function Zp(e){return e.type==="spacePost"}var Wp=(()=>{class e{constructor(){this.searchResult=X8.required(),this.itemSelected=J8(),this.badgeData=qd$1(()=>{switch(this.searchResult().type){case "course":return {color:"blue",key:"search.type.course"};case "chapter":return {color:"yellow",key:"search.type.chapter"};case "lecture":return {color:"green",key:"search.type.lecture"};case "transcript":return {color:"red",key:"search.type.transcript"};case "user":return {color:"primary",key:"search.type.user"};default:return null}}),this.isUser=qd$1(()=>this.searchResult().type==="user"),this.spaceName=qd$1(()=>{let t=this.searchResult();return Zp(t)&&t.spaceName?.trim()||null}),this.postDate=qd$1(()=>{let t=this.searchResult();return Zp(t)&&t.createdAt||null}),this.badgeGutterClass=qd$1(()=>this.spaceName()?"sm:pr-48":this.badgeData()?"sm:pr-24":""),this.userName=qd$1(()=>{let t=this.searchResult();if(t.type==="user"){let a=t;if(a.firstname&&a.name)return `${a.firstname} ${a.name}`;if(a.email)return a.email}return t.title}),this.email=qd$1(()=>{let t=this.searchResult();return t.type==="user"&&t.email||""});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-general-search-result-item"]],inputs:{searchResult:[1,"searchResult"]},outputs:{itemSelected:"itemSelected"},decls:1,vars:0,consts:[["mspotButton","","size","none","variant","ghost","color","primary","class","relative flex w-full flex-col items-stretch gap-2 p-4 text-start","extra","inner-outline","mat-dialog-close","",3,"ngClass","click",4,"transloco"],["mspotButton","","size","none","variant","ghost","color","primary","extra","inner-outline","mat-dialog-close","",1,"relative","flex","w-full","flex-col","items-stretch","gap-2","p-4","text-start",3,"click","ngClass"],[1,"self-start","sm:absolute","sm:right-4","sm:top-4",3,"color","label"],["color","primary",1,"max-w-full","self-start","sm:absolute","sm:right-4","sm:top-4","sm:max-w-44",3,"label","truncate"],["customClass","flex flex-wrap text-xxs text-mspot-neutral-600",3,"breadcrumbs","isTranslationKey"],[1,"text-text-subtle","text-xxs","whitespace-nowrap"],["slot","icon",3,"name"],["slot","icon",1,"shrink-0",3,"name"],[1,"text-mspot-neutral-950","block","text-sm","font-semibold"],[1,"text-mspot-neutral-600","block","text-xs"],[1,"text-mspot-neutral-600","block","text-sm","font-semibold",3,"innerHTML"],[1,"text-mspot-neutral-600","block","text-xs",3,"innerHTML"]],template:function(a,o){a&1&&gv$1(0,xC,7,6,"button",0);},dependencies:[dl,le$9,w$7,jt$8,g$a,yt$a,mx$1,Nx$1],encapsulation:2});}}return e})();function _C(e,r){if(e&1&&(ta$3(0,"div",1),QM(1),Pd$1()),e&2){let t=yM(2).$implicit;uT(),Gd$1(" ",t("search.searchHistory")," ");}}function bC(e,r){e&1&&(ta$3(0,"div",6),Vv$1(1,"ng-icon",8),Pd$1());}function MC(e,r){if(e&1){let t=fM();ta$3(0,"button",9),Zv$1("click",function(o){sh$1(t);let i=yM().$implicit;return yM(3).removeSearchedTerm(i),ah$1(o.stopPropagation())}),Vv$1(1,"ng-icon",10),Pd$1();}if(e&2){let t=yM(3).$implicit;Pv$1("aria-label",t("common.delete"));}}function AC(e,r){if(e&1){let t=fM();ta$3(0,"button",4),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM(3);return ah$1(i.setSearchTerm(o))}),ta$3(1,"div",5),QM(2),Pd$1(),eM$1(3,bC,2,0,"div",6)(4,MC,2,1,"button",7),Pd$1();}if(e&2){let t=r.$implicit,a=yM(3);uT(2),Gd$1(" ",t," "),uT(),tM$1(a.isOnSearchResults()?3:4);}}function yC(e,r){if(e&1&&(eM$1(0,_C,2,1,"div",1),ta$3(1,"div",2),oM(2,AC,5,2,"button",3,nM),Pd$1()),e&2){let t=yM(2);tM$1(t.isOnSearchResults()?-1:0),uT(2),iM(t.searchedTerms());}}function VC(e,r){if(e&1&&(Hd$1(0),eM$1(1,yC,4,1),$d$1()),e&2){let t=yM();uT(),tM$1(t.searchedTerms().length>0?1:-1);}}var Lr=(()=>{class e{constructor(){this.isOnSearchResults=X8(false),this.onSearchHistoryClicked=J8(),this._searchTermsLocalStorageService=g$k(rr$1),this.searchedTerms=this._searchTermsLocalStorageService.searchTermsSignal;}
2737setSearchTerm(t){this.onSearchHistoryClicked.emit(t);}removeSearchedTerm(t){this._searchTermsLocalStorageService.removeSearchedTerm(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-search-history"]],inputs:{isOnSearchResults:[1,"isOnSearchResults"]},outputs:{onSearchHistoryClicked:"onSearchHistoryClicked"},decls:1,vars:0,consts:[[4,"transloco"],[1,"text-text-subtle","mt-2","px-4","text-sm"],[1,"divide-mspot-neutral-200","divide-y"],["mspotButton","","size","none","variant","ghost","color","primary","extra","inner-outline",1,"w-full","justify-between","rounded-none","px-4","py-2","focus-visible:rounded-md"],["mspotButton","","size","none","variant","ghost","color","primary","extra","inner-outline",1,"w-full","justify-between","rounded-none","px-4","py-2","focus-visible:rounded-md",3,"click"],[1,"text-mspot-neutral-800","hyphens-auto","text-sm","font-medium"],[1,"flex","items-center","justify-center","p-1.5"],["mspotButton","","size","none","variant","ghost","color","primary",1,"hover:bg-mspot-neutral-300","focus-visible:bg-mspot-neutral-300","rounded-full","p-1.5"],["name","heroChevronRight",1,"text-mspot-neutral-600","text-lg"],["mspotButton","","size","none","variant","ghost","color","primary",1,"hover:bg-mspot-neutral-300","focus-visible:bg-mspot-neutral-300","rounded-full","p-1.5",3,"click"],["name","heroTrash",1,"text-mspot-neutral-500","text-lg"]],template:function(a,o){a&1&&gv$1(0,VC,2,1,"ng-container",0);},dependencies:[yt$a,le$9,g$a],encapsulation:2});}}return e})();var zC=(e,r)=>r.link;function SC(e,r){if(e&1){let t=fM();ta$3(0,"div",6),QM(1),Pd$1(),ta$3(2,"div",3)(3,"mspot-search-history",7),Zv$1("onSearchHistoryClicked",function(o){sh$1(t);let i=yM(3);return ah$1(i.search().setValue(o))}),Pd$1()();}if(e&2){let t=yM(2).$implicit;uT(),Gd$1(" ",t("search.lastSearched"),": "),uT(2),jv$1("isOnSearchResults",true);}}function HC(e,r){if(e&1&&(ta$3(0,"div",4),QM(1),ta$3(2,"span",5),QM(3),Pd$1(),QM(4,'" '),Pd$1(),eM$1(5,SC,4,2)),e&2){let t=yM().$implicit,a=yM();uT(),Gd$1(" ",t("search.noResults"),' "'),uT(2),yD(a.searchTerm()),uT(2),tM$1(a.searchedTerms().length>0?5:-1);}}function LC(e,r){if(e&1){let t=fM();ta$3(0,"mspot-general-search-result-item",9),Zv$1("itemSelected",function(o){sh$1(t);let i=yM(4);return ah$1(i.resultItemSelected.emit(o))}),Pd$1();}if(e&2){let t=r.$implicit;jv$1("searchResult",t);}}function TC(e,r){if(e&1&&oM(0,LC,1,1,"mspot-general-search-result-item",8,zC),e&2){let t=r.$implicit;iM(t);}}function BC(e,r){if(e&1&&(ta$3(0,"div",3),oM(1,TC,2,0,null,null,nM),Pd$1()),e&2){let t=yM(2);uT(),iM(t.searchResults());}}function kC(e,r){if(e&1&&(Hd$1(0),ta$3(1,"div",1)(2,"div",2),QM(3),Pd$1(),eM$1(4,HC,6,3)(5,BC,3,0,"div",3),Pd$1(),$d$1()),e&2){let t=r.$implicit,a=yM();uT(3),vD(" ",a.totalResultsLabel()," ",t("search.searchResults")," "),uT(),tM$1(a.searchResults()[0]?.length===0?4:5);}}var Kp=(()=>{class e{constructor(){this.searchResults=X8.required(),this.resultItemSelected=J8(),this.totalCount=X8(),this.totalResults=qd$1(()=>{let t=this.totalCount();return t!==void 0?t:!this.searchResults()[0]||this.searchResults().length===0?0:this.searchResults().reduce((a,o)=>a+o.length,0)}),this.totalResultsLabel=qd$1(()=>{let t=this.totalCount();if(t!==void 0)return t>100?"100+":String(t);let a=this.totalResults();return a>10?"10+":String(a)}),this.search=X8.required(),this.searchTerm=X8(),this.searchedTerms=g$k(rr$1).searchTermsSignal;}onResultItemSelected(t){this.resultItemSelected.emit(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-general-search-results"]],inputs:{searchResults:[1,"searchResults"],totalCount:[1,"totalCount"],search:[1,"search"],searchTerm:[1,"searchTerm"]},outputs:{resultItemSelected:"resultItemSelected"},decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-col","gap-2"],[1,"text-text-subtle","px-4","text-sm"],[1,"search-container"],[1,"text-mspot-neutral-600","px-4","text-center","text-sm","font-medium"],[1,"text-mspot-neutral-900"],[1,"text-mspot-neutral-950","px-4","text-sm","font-semibold"],[3,"onSearchHistoryClicked","isOnSearchResults"],[3,"searchResult"],[3,"itemSelected","searchResult"]],template:function(a,o){a&1&&gv$1(0,kC,6,3,"ng-container",0);},dependencies:[Wp,Lr,bt$b,yt$a],styles:[".search-container[_ngcontent-%COMP%]{margin:0 1rem;border:1px solid rgb(var(--mspot-neutral-200));border-radius:.5rem;overflow:hidden}mspot-general-search-result-item[_ngcontent-%COMP%]{display:block}mspot-general-search-result-item[_ngcontent-%COMP%] + mspot-general-search-result-item[_ngcontent-%COMP%]{border-top:1px solid rgb(var(--mspot-neutral-200))}"]});}}return e})();var EC=(e,r)=>r.id;function DC(e,r){if(e&1){let t=fM();ta$3(0,"button",2),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM(2);return ah$1(i.onFilterSelected(o))}),Vv$1(1,"ng-icon",3),ta$3(2,"p",4),QM(3),Pd$1()();}if(e&2){let t=r.$implicit,a=yM().$implicit,o=yM();jv$1("ngClass",t.id===o.activeFilterId()?"bg-primary border-primary text-white":"bg-backgrounds-surface-raised text-mspot-neutral-700 border-mspot-neutral-200 hover:bg-mspot-neutral-100 backdrop-blur-sm"),Pv$1("aria-pressed",t.id===o.activeFilterId()),uT(),jv$1("name",t.iconName),uT(2),Gd$1(" ",a(t.labelKey)," ");}}function FC(e,r){if(e&1&&(Hd$1(0),ta$3(1,"mspot-responsive-list"),oM(2,DC,4,4,"button",1,EC),Pd$1(),$d$1()),e&2){let t=yM();uT(2),iM(t.filters());}}var Xp=(()=>{class e{constructor(){this.showTranscripts=X8(true),this.filterChanged=J8(),this._communitySearchAvailable=YG(g$k(GE),{initialValue:false}),this._allFilters=[{id:"course",labelKey:"search.filters.courseContent",iconName:"heroAcademicCap"},{id:"transcripts",labelKey:"search.filters.transcripts",iconName:"heroDocumentText"},{id:"community",labelKey:"search.filters.community",iconName:"heroChatBubbleLeftRight"}],this.filters=qd$1(()=>this._allFilters.filter(t=>
2737t.id==="community"?this._communitySearchAvailable():t.id==="transcripts"?this.showTranscripts():true)),this.activeFilterId=On$7("course"),this._resyncActiveFilterEffect=Es$3(()=>{let t=this.filters(),a=this.activeFilterId();t.some(o=>o.id===a)||(this.activeFilterId.set("course"),this.filterChanged.emit("course"));});}onFilterSelected(t){this.activeFilterId.set(t.id),this.filterChanged.emit(t.id);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-search-filters"]],hostAttrs:[1,"block","p-4","border-b","border-mspot-neutral-200"],inputs:{showTranscripts:[1,"showTranscripts"]},outputs:{filterChanged:"filterChanged"},decls:1,vars:0,consts:[[4,"transloco"],["type","button",1,"focus-primary","inline-flex","items-center","gap-1.5","whitespace-nowrap","rounded-full","border","py-2","pl-2.5","pr-3","transition-colors",3,"ngClass"],["type","button",1,"focus-primary","inline-flex","items-center","gap-1.5","whitespace-nowrap","rounded-full","border","py-2","pl-2.5","pr-3","transition-colors",3,"click","ngClass"],[1,"text-lg",3,"name"],[1,"overflow-ellipsis","text-sm","font-medium"]],template:function(a,o){a&1&&gv$1(0,FC,4,0,"ng-container",0);},dependencies:[bt$b,yt$a,Ht$2,mx$1,ae$9,le$9],encapsulation:2});}}return e})();var IC=(e,r)=>r.id;function NC(e,r){if(e&1){let t=fM();ta$3(0,"button",4),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM(2);return ah$1(i.selectSpace(o.id))}),ta$3(1,"p",5),QM(2),Pd$1()();}if(e&2){let t=r.$implicit,a=yM(2);jv$1("ngClass",a.chipClass(t.id)),Pv$1("aria-pressed",a.selectedSpaceId()===t.id),uT(2),yD(t.name);}}function PC(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"mspot-responsive-list")(2,"button",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.selectSpace(null))}),ta$3(3,"p",2),QM(4),Pd$1()(),oM(5,NC,3,3,"button",3,IC),Pd$1(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(2),jv$1("ngClass",a.chipClass(null)),Pv$1("aria-pressed",a.selectedSpaceId()===null),uT(2),yD(t("search.filters.all")),uT(),iM(a.spaces());}}var Yp=(()=>{class e{constructor(){this.selectedSpaceId=e3(null),this._spaces=YG(g$k(qE),{initialValue:[]}),this.spaces=qd$1(()=>[...this._spaces()].sort((t,a)=>{let o=(t.priority??Number.MAX_SAFE_INTEGER)-(a.priority??Number.MAX_SAFE_INTEGER);return o!==0?o:t.name.localeCompare(a.name)}));}chipClass(t){return this.selectedSpaceId()===t?"bg-primary border-primary text-white hover:brightness-90":"bg-backgrounds-surface-raised text-mspot-neutral-700 border-mspot-neutral-200 hover:bg-mspot-neutral-100 backdrop-blur-sm"}selectSpace(t){this.selectedSpaceId.update(a=>a===t?null:t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-search-space-filter"]],hostAttrs:[1,"block","p-4","border-b","border-mspot-neutral-200"],inputs:{selectedSpaceId:[1,"selectedSpaceId"]},outputs:{selectedSpaceId:"selectedSpaceIdChange"},decls:1,vars:0,consts:[[4,"transloco"],["type","button","data-cy","search-space-filter-all",1,"focus-primary","inline-flex","items-center","whitespace-nowrap","rounded-full","border","px-3","py-2","transition-colors",3,"click","ngClass"],[1,"text-sm","font-medium"],["type","button","data-cy","search-space-filter-chip",1,"focus-primary","inline-flex","max-w-52","items-center","whitespace-nowrap","rounded-full","border","px-3","py-2","transition-colors",3,"ngClass"],["type","button","data-cy","search-space-filter-chip",1,"focus-primary","inline-flex","max-w-52","items-center","whitespace-nowrap","rounded-full","border","px-3","py-2","transition-colors",3,"click","ngClass"],[1,"truncate","text-sm","font-medium"]],template:function(a,o){a&1&&gv$1(0,PC,7,3,"ng-container",0);},dependencies:[bt$b,yt$a,Ht$2,mx$1],encapsulation:2});}}return e})();var RC=(e,r)=>({"border-primary text-primary":e,"text-text-subtle hover:border-mspot-neutral-300 hover:text-mspot-neutral-700 border-transparent":r});function OC(e,r){if(e&1){let t=fM();ta$3(0,"button",3),Zv$1("click",function(){let o=sh$1(t).$implicit,i=yM(2);return ah$1(i.selectTab(o))}),QM(1),Pd$1();}if(e&2){let t=r.$implicit,a=yM().$implicit,o=yM();jv$1("ngClass",pN(2,RC,o.selectedTab()===t,o.selectedTab()!==t)),uT(),Gd$1(" ",a("search.tabs."+t)," ");}}function qC(e,r){if(e&1&&(ta$3(0,"nav",1),oM(1,OC,2,5,"button",2,rM),Pd$1()),e&2){let t=yM();uT(),iM(t.tabs);}}var Jp=(()=>{class e{constructor(){this.tabs=[V1.CONTENT,V1.USERS],this.selectedTab=On$7(V1.CONTENT),this.tabChanged=J8();}selectTab(t){this.selectedTab.set(t),this.tabChanged.emit(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-search-tabs"]],hostAttrs:[1,"block"],outputs:{tabChanged:"tabChanged"},decls:1,vars:0,consts:[["class","border-mspot-neutral-200 -mb-px flex gap-4 border-b px-4 pt-4","aria-label","Search tabs",4,"transloco"],["aria-label","Search tabs",1,"border-mspot-neutral-200","-mb-px","flex","gap-4","border-b","px-4","pt-4"],["type","button",1,"focus-primary--inner-outline","flex","cursor-pointer","items-center","whitespace-nowrap","border-b-2","px-2","pb-2","text-sm","font-medium",3,"ngClass"],["type","button",1,"focus-primary--inner-outline","flex","cursor-pointer","items-center","whitespace-nowrap","border-b-2","px-2","pb-2","text-sm","font-medium",3,"click","ngClass"]],template:function(a,o){a&1&&gv$1(0,qC,3,0,"nav",0);},dependencies:[kx$1,mx$1,yt$a],encapsulation:2});}}return e})();var $C=e=>({plan:e});function UC(e,r){if(e&1&&(ta$3(0,"button",5),QM(1," ESC "),Pd$1()),e&2){let t=yM().$implicit;Pv$1("aria-label",t("common.close"));}}function jC(e,r){if(e&1){let t=fM();ta$3(0,"mspot-search-tabs",14),Zv$1("tabChanged",function(o){sh$1(t);let i=yM(2);return ah$1(i.onTabChange(o))}),Pd$1();}}function GC(e,r){if(e&1){let t=fM();ta$3(0,"mspot-search-space-filter",17),ID("selectedSpaceIdChange",function(o){sh$1(t);let i=yM(3);return XM(i.selectedSpaceId,o)||(i.selectedSpaceId=o),ah$1(o)}),Pd$1();}if(e&2){let t=yM(3);ED("selectedSpaceId",t.selectedSpaceId);}}function QC(e,r){if(e&1){let t=fM();ta$3(0,"mspot-search-filters",15),Zv$1("filterChanged",function(o){sh$1(t);let i=yM(2);return ah$1(i.onFilterTypeChange(o))}),Pd$1(),eM$1(1,GC,1,1,"mspot-search-space-filter",16);}if(e&2){let t=yM(2);jv$1("showTranscripts",t.isAdmin||t.dialogData.canSearchTranscriptions),uT(),tM$1(t.selectedFilterType()==="community"&&t.searchTermSignal()?1:-1);}}function ZC(e,r){if(e&1&&(QM(0),EN(1,"titlecase")),e&2){let t=yM(2).$implicit,a=yM();Gd$1(" ",t("search.transcriptInfo",fN(3,$C,CN(1,1,a.plan)))," ");}}function WC(e,r){if(e&1&&QM(0),e&2){let t=yM(2).$implicit;Gd$1(" ",t("search.transcriptDisabledInfo")," ");}}function KC(e,r){if(e&1&&(ta$3(0,"div",9)(1,"div",18),eM$1(2,ZC,2,5)(3,WC,1,1),Pd$1()()),e&2){let t=yM(2);uT(2),tM$1(t.dialogData.transcriptionSearchInPlan===false?2:3);}}function XC(e,r){if(e&1&&(ta$3(0,"span",11),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),yD(t("search.rateDelayed"));}}function YC(e,r){if(e&1&&(ta$3(0,"span",12),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),yD(t("search.requestFailed"));}}function JC(e,r){e&1&&(ta$3(0,"div",20),Vv$1(1,"mat-spinner",21),Pd$1());}function tx(e,r){e&1&&(ta$3(0,"div",23),Vv$1(1,"mat-spinner",24),Pd$1());}function ex(e,r){if(e&1){let t=fM();ta$3(0,"mspot-general-search-results",22),Zv$1("resultItemSelected",function(o){sh$1(t);let i=yM(3);return ah$1(i.goToSearchResult(o))}),Pd$1(),eM$1(1,tx,2,0,"div",23);}if(e&2){let t=yM(3);jv$1("searchResults",t.userSearchResults())("search",t.search)("searchTerm",t.searchTermSignal())("totalCount",t.totalSearchCount()),uT(),tM$1(t.isFetchingNextPage()?1:-1);}}function ax(e,r){e&1&&(ta$3(0,"div",23),Vv$1(1,"mat-spinner",24),Pd$1());}function ox(e,r){if(e&1){let t=fM();ta$3(0,"mspot-general-search-results",22),Zv$1("resultItemSelected",function(o){sh$1(t);let i=yM(3);return ah$1(i.goToSearchResult(o))}),Pd$1(),eM$1(1,ax,2,0,"div",23);}if(e&2){let t=yM(3);jv$1("searchResults",t.filteredSearchResults())("search",t.search)("searchTerm",t.searchTermSignal())("totalCount",t.totalSearchCount()),uT(),tM$1(t.isFetchingNextPage()?1:-1);}}function rx(e,r){if(e&1){let t=fM();ta$3(0,"mspot-search-history",25),Zv$1("onSearchHistoryClicked",function(o){sh$1(t);let i=yM(3);return ah$1(i.search.setValue(o))}),Pd$1();}}function nx(e,r){if(e&1){let t=fM();ta$3(0,"div",19),Zv$1("scroll",function(o){sh$1(t);let i=yM(2);return ah$1(i.onScroll(o))}),eM$1(1,JC,2,0,"div",20)(2,ex,2,5)(3,ox,2,5)(4,rx,1,0,"mspot-search-history"),Pd$1();}if(e&2){let t=yM(2);uT(),tM$1(t.isContentSearchLoading()?1:t.selectedTab()===t.SEARCH_TAB.USERS&&t.hasSearchableTerm()&&(!t.activeSearchError()||t.hasActiveSearchData())&&t.dialogData.showUserTab?2:t.selectedTab()===t.SEARCH_TAB.CONTENT&&t.hasSearchableTerm()&&(!t.activeSearchError()||t.hasActiveSearchData())?3:4);}}function ix(e,r){if(e&1&&(Hd$1(0),ta$3(1,"div",1)(2,"div",2),Vv$1(3,"ng-icon",3)(4,"input",4),iS(),eM$1(5,UC,2,1,"button",5),ta$3(6,"button",6),Vv$1(7,"ng-icon",7),Pd$1()(),eM$1(8,jC,1,0,"mspot-search-tabs"),eM$1(9,QC,2,2),ta$3(10,"div",8),eM$1(11,KC,4,1,"div",9),ta$3(12,"p",10),eM$1(13,XC,2,1,"span",11)(14,YC,2,1,"span",12),Pd$1(),eM$1(15,nx,5,1,"div",13),Pd$1()(),$d$1()),e&2){let t=r.$implicit,a=yM();uT(4),jv$1("formControl",a.search)("placeholder",t("search.searchInput")),aS(),uT(),tM$1(a.isHandset()?-1:5),uT(),Lv$1("aria-label",t("common.close")),uT(2),tM$1(a.shouldShowTabs?8:-1),uT(),tM$1(a.shouldShowFilters?9:-1),uT(2),tM$1(a.isAdmin&&a.selectedFilterType()==="transcripts"&&!a.dialogData.canSearchTranscriptions?11:-1),uT(),iD("sr-only",!a.searchTanstackService.isRateDelayed()&&!a.activeSearchError()),uT(),tM$1(a.searchTanstackService.isRateDelayed()?13:a.activeSearchError()?14:-1),uT(2),tM$1(a.hasSearchableTerm()||a.searchedTerms().length>0||a.isContentSearchLoading()?15:-1);}}var t9=(()=>{class e{constructor(){this.dialogData=g$k(Ze$9,{optional:true})??{showUserTab:false,canSearchTranscriptions:false,transcriptionSearchInPlan:true},this.isAdmin=g$k(kE),this.searchTanstackService=g$k(ci),this.router=g$k(H$8),this.isHandset=YG(g$k(O$8).isHandset$),this._searchTermsLocalStorageService=g$k(rr$1),this.searchedTerms=g$k(rr$1).searchTermsSignal,this.search=new B$k(""),this.reachedBottom=false,this.SEARCH_TAB=V1,this.plan=j$2.SCALE,this._immediateTerm=YG(this.search.valueChanges.pipe(st$c(t=>t?.trim())),{initialValue:this.search.value?.trim()}),this._debouncedTerm=YG(this.search.valueChanges.pipe(up$1(500),st$c(t=>t?.trim()),pp$2())),this.selectedTab=On$7(V1.CONTENT),this.selectedFilterType=On$7("course"),this.selectedSpaceId=On$7(null),this.searchTermSignal=qd$1(()=>this._immediateTerm()===this._debouncedTerm()?this._debouncedTerm():void 0),this.isTyping=qd$1(()=>ce(this._immediateTerm())&&this._immediateTerm()!==this._debouncedTerm()),this.hasSearchableTerm=qd$1(()=>ce(this._immediateTerm())),this._activeSearchKind=qd$1(()=>this.selectedTab()===V1.USERS?"users":this.selectedFilterType()),this._activeContentFilter=qd$1(()=>this.selectedTab()===V1.CONTENT?this.selectedFilterType():"inactive"),this._selectedSpaceIds=qd$1(()=>{let t=this.selectedSpaceId();return t?[t]:[]}),this.searchQuery=this.searchTanstackService.getSearchResults(this.searchTermSignal,this._activeContentFilter),this.transcriptSearchQuery=this.searchTanstackService.getTranscriptSearchResults(this.searchTermSignal,this._activeContentFilter),this.communitySearchQuery=this.searchTanstackService.getCommunityPostSearchResults(this.searchTermSignal,this._activeContentFilter,this._selectedSpaceIds),this.userSearchQuery=this.searchTanstackService.getUserSearchResults(this.searchTermSignal,this.selectedTab),this.activeSearchError=qd$1(()=>{let t=this._activeSearchKind();return (t==="users"?this.userSearchQuery:t==="transcripts"?this.transcriptSearchQuery:t==="community"?this.communitySearchQuery:this.searchQuery).error()}),this.hasActiveSearchData=qd$1(()=>{let t=this._activeSearchKind();return !!(t==="users"?this.userSearchQuery:t==="transcripts"?this.transcriptSearchQuery:t==="community"?this.communitySearchQuery:this.searchQuery).data()}),this.userSearchResults=qd$1(()=>{let t=this.userSearchQuery.data()?.pages;return t||[[]]}),this.isContentSearchLoading=qd$1(()=>
2737{if(this.isTyping())return true;if(this.selectedTab()===V1.USERS)return this.userSearchQuery.isPending()&&this.userSearchQuery.isFetching();let t=this.selectedFilterType(),a=t==="transcripts"?this.transcriptSearchQuery:t==="community"?this.communitySearchQuery:this.searchQuery;return a.isPending()&&a.isFetching()}),this.isFetchingNextPage=qd$1(()=>{if(this.selectedTab()===V1.USERS)return this.userSearchQuery.isFetchingNextPage();let t=this.selectedFilterType();return t==="transcripts"?this.transcriptSearchQuery.isFetchingNextPage():t==="community"?this.communitySearchQuery.isFetchingNextPage():this.searchQuery.isFetchingNextPage()}),this.filteredSearchResults=qd$1(()=>{let t=this._activeQueryPages();return t?t.map(a=>a.items):[]}),this.totalSearchCount=qd$1(()=>{if(this.selectedTab()!==V1.USERS)return this._activeQueryPages()?.[0]?.totalCount}),this.searchContextEffect=this.searchTanstackService.bindContext(this.searchTermSignal,this._activeSearchKind,this._selectedSpaceIds),this.searchEffect=Es$3(()=>{let t=this.selectedTab(),a=this.dialogData.showUserTab;if(t===V1.USERS&&!a)return;let o=t===V1.USERS?void 0:this._activeQueryPages(),i=t===V1.USERS?this.userSearchQuery.data()?.pages[0]?.length??0:o?.[0]?.items.length??0;((t===V1.USERS?this.userSearchQuery.data()?.pages.length:o?.length)??0)===1&&i>0&&Qn$9(()=>{this.searchTermSignal()&&this._searchTermsLocalStorageService.saveSearchTermInLocalStorage(this.searchTermSignal());});},{});}get shouldShowTabs(){return this.isAdmin&&this.dialogData.showUserTab}get shouldShowFilters(){return this.selectedTab()===V1.USERS?false:this.isAdmin?this.hasSearchableTerm():true}goToSearchResult(t){if(t.shortDescription){let a=document.createElement("div");a.innerHTML=t.shortDescription;let o=a.textContent||"";o=o.trim(),o=o.replace(/^\.\.\./,""),o=o.replace(/\.\.\.$/,""),o=o.trim(),this._searchTermsLocalStorageService.saveSearchShortDescriptionInLocalStorage(o);}this.router.navigate(t.link.url,{queryParams:t.link.queryParams,queryParamsHandling:"merge"});}onTabChange(t){this.selectedTab.set(t);}onFilterTypeChange(t){this.selectedFilterType.set(t),t!=="community"&&this.selectedSpaceId.set(null);}onScroll(t){let a=t.target,o=a.scrollHeight-a.scrollTop<=a.clientHeight+10;o&&!this.reachedBottom?(this.reachedBottom=true,this.selectedTab()===V1.USERS?this.userSearchQuery.fetchNextPage():this.selectedFilterType()==="transcripts"?this.transcriptSearchQuery.fetchNextPage():this.selectedFilterType()==="community"?this.communitySearchQuery.fetchNextPage():this.searchQuery.fetchNextPage()):!o&&a.scrollHeight-a.scrollTop>a.clientHeight+50&&(this.reachedBottom=false);}_activeQueryPages(){let t=this.selectedFilterType();return t==="transcripts"?this.transcriptSearchQuery.data()?.pages:t==="community"?this.communitySearchQuery.data()?.pages:this.searchQuery.data()?.pages}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-search-dialog"]],features:[cN([ci])],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-col"],[1,"border-mspot-neutral-200","flex","items-center","border-b","p-4"],["name","heroMagnifyingGlass",1,"text-mspot-neutral-600","ml-1","text-lg"],["type","text","maxlength","60",1,"bg-mspot-neutral-50","text-mspot-neutral-950","placeholder:text-mspot-neutral-400","flex-grow","border-none","text-sm","font-medium","ring-0","placeholder:font-normal",3,"formControl","placeholder"],["type","button","mat-dialog-close","",1,"bg-mspot-white","border-mspot-neutral-200","flex","h-[24px]","w-[40px]","cursor-pointer","items-center","justify-center","rounded","border","text-xs"],["mat-dialog-close","","mspotButton","","size","icon-sm","color","primary","variant","ghost",1,"ml-2","mr-1",3,"aria-label"],["name","heroXMark",1,"text-mspot-neutral-500","text-xl"],[1,"flex","flex-col","gap-4","pt-4"],[1,"bg-mspot-information-100","text-mspot-information-900","mx-4","rounded-lg","p-4","text-sm"],["role","status","data-cy","search-status",1,"text-text-subtle","px-4"],["data-cy","search-rate-delay"],["data-cy","search-error"],[1,"relative","overflow-y-auto"],[3,"tabChanged"],[3,"filterChanged","showTranscripts"],[3,"selectedSpaceId"],[3,"selectedSpaceIdChange","selectedSpaceId"],[1,"mb-1","font-medium"],[1,"relative","overflow-y-auto",3,"scroll"],[1,"flex","items-center","justify-center","p-8"],["diameter","50"],[3,"resultItemSelected","searchResults","search","searchTerm","totalCount"],[1,"flex","items-center","justify-center","py-4"],["diameter","24"],[3,"onSearchHistoryClicked"]],template:function(a,o){a&1&&gv$1(0,ix,16,11,"ng-container",0);},dependencies:[kx$1,aa$1,jt$8,yt$a,le$9,oi$5,Qe$b,Xn$7,Yt$7,Vn$7,ne$1,Kp,Jp,Xp,Yp,Lr,g$a,Sx$1],encapsulation:2});}}return e})();var Tr=(()=>{class e{constructor(){this._dialogService=g$k(Ss$2);}_searchDialogTop(){return U$5.isNativePlatform()&&U$5.getPlatform()==="ios"?"calc(24px + max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px)))":"24px"}openDialog(t=false,a=false,o=true){this._dialogRef?.componentInstance?this.closeDialog():this._dialogRef=this._dialogService.openRef(t9,{panelClass:H$a.CUSTOM_SEARCH,disableClose:false,autoFocus:true,position:{top:this._searchDialogTop()},data:{showUserTab:t,canSearchTranscriptions:a,transcriptionSearchInPlan:o}});}closeDialog(){this._dialogRef?.close();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var Br=(()=>{class e{constructor(){this.key1=this._checkIfMacBook()?"⌘":"Ctrl",this.key2="k",this._searchDialogService=g$k(Tr),this._renderer=g$k(Lo$4).createRenderer(null,null),this._showUserTab=false,this._canSearchTranscriptions=false,this._transcriptionSearchInPlan=true,this._registerSearchHotkeyListener=this._renderer.listen("document","keydown",t=>{(t.ctrlKey||t.metaKey)&&t.key===this.key2&&(t.preventDefault(),this._searchDialogService.openDialog(this._showUserTab,this._canSearchTranscriptions,this._transcriptionSearchInPlan)),t.key==="Escape"&&(t.preventDefault(),this._searchDialogService.closeDialog());});}_checkIfMacBook(){let t=navigator.userAgent;return /Macintosh|Mac OS X|MacBook/i.test(t)}setShowUserTab(t){this._showUserTab=t;}setCanSearchTranscriptions(t){this._canSearchTranscriptions=t;}setTranscriptionSearchInPlan(t){this._transcriptionSearchInPlan=t;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();function sx(e,r){if(e&1&&(jd$1(0,"span",0),Bv$1(1,"span",1),QM(2),Vd$
27371()),e&2){let t=yM();uT(),zv$1("innerHTML",t.key1,cb$1),uT(),Gd$1("",t.key2.toUpperCase()," ");}}function lx(e,r){if(e&1&&(Bv$1(0,"div",2),jd$1(1,"div",3),QM(2),Vd$1()),e&2){let t=yM();iD("hotkey-client",!t.isAdmin()),zv$1("innerHTML",t.key1,cb$1),uT(),iD("hotkey-client",!t.isAdmin()),uT(),Gd$1(" ",t.key2.toUpperCase()," ");}}var e9=(()=>{class e{constructor(){this.isAdmin=X8.required(),this.showUserTab=X8(false),this.canSearchTranscriptions=X8(false),this.transcriptionSearchInPlan=X8(true),this.plain=X8(false),this._hotkeyListenerService=g$k(Br),this.key1=this._hotkeyListenerService.key1,this.key2=this._hotkeyListenerService.key2,Es$3(()=>{this._hotkeyListenerService.setShowUserTab(this.showUserTab()),this._hotkeyListenerService.setCanSearchTranscriptions(this.canSearchTranscriptions()),this._hotkeyListenerService.setTranscriptionSearchInPlan(this.transcriptionSearchInPlan());});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-search-hotkey"]],hostAttrs:[1,"flex","items-center","gap-1"],inputs:{isAdmin:[1,"isAdmin"],showUserTab:[1,"showUserTab"],canSearchTranscriptions:[1,"canSearchTranscriptions"],transcriptionSearchInPlan:[1,"transcriptionSearchInPlan"],plain:[1,"plain"]},decls:2,vars:1,consts:[[1,"flex","items-center","gap-0.5","text-xs","font-medium","opacity-70"],[3,"innerHTML"],[1,"hotkey",3,"innerHTML"],[1,"hotkey"]],template:function(a,o){a&1&&eM$1(0,sx,3,2,"span",0)(1,lx,3,6),a&2&&tM$1(o.plain()?0:1);},styles:[".hotkey[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:24px;width:28px;border:1px solid;border-radius:.25rem;font-size:.875rem;background:var(--backgrounds-surface-raised);border-color:var(--borders-secondary);color:var(--text-default)}.hotkey-client[_ngcontent-%COMP%]{background:var(--backgrounds-subtle);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:.75rem}"]});}}return e})();var cx=[[["","slot","aiicon"]]],hx=["[slot=aiIcon]"],px=e=>["rounded-lg",e];function mx(e,r){e&1&&(ta$3(0,"span",1),Vv$1(1,"ng-icon",3),Pd$1());}function vx(e,r){if(e&1&&Vv$1(0,"ng-icon",2),e&2){let t=yM();jv$1("ngClass",t.isAdmin()?"text-text-default mx-1 text-lg":"mx-1 text-lg dark:text-white/80");}}function dx(e,r){if(e&1&&Vv$1(0,"mspot-search-hotkey",5),e&2){let t=yM(2);jv$1("isAdmin",t.isAdmin())("plain",t.compact())("showUserTab",t.showUserTab())("canSearchTranscriptions",t.canSearchTranscriptions());}}function gx(e,r){if(e&1&&(ta$3(0,"div",4),QM(1),EN(2,"transloco"),Pd$1(),eM$1(3,dx,1,4,"mspot-search-hotkey",5)),e&2){let t=yM();jv$1("ngClass",t.compact()?"flex-1 font-medium opacity-70":t.isAdmin()?"text-text-default flex-grow pl-1":"flex-grow pl-1 dark:text-white/80"),uT(),Gd$1(" ",CN(2,3,"common.search")," "),uT(2),tM$1(t.isHandset()?-1:3);}}var a9=(()=>{class e{constructor(){this.showUserTab=X8(false),this.canSearchTranscriptions=X8(false),this.transcriptionSearchInPlan=X8(true),this.isAdmin=X8(g$k(kE)),this.compact=X8(false),this.collapsed=X8(false),this.onSearchClicked=J8(),this.isHandset=YG(g$k(O$8).isHandset$),this._searchDialogService=g$k(Tr),this._hotkeyListenerService=g$k(Br),Es$3(()=>{this._hotkeyListenerService.setShowUserTab(this.showUserTab()),this._hotkeyListenerService.setCanSearchTranscriptions(this.canSearchTranscriptions()),this._hotkeyListenerService.setTranscriptionSearchInPlan(this.transcriptionSearchInPlan());});}openDialog(){this._searchDialogService.openDialog(this.showUserTab(),this.canSearchTranscriptions(),this.transcriptionSearchInPlan()),this.onSearchClicked.emit();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-general-search-input"]],inputs:{showUserTab:[1,"showUserTab"],canSearchTranscriptions:[1,"canSearchTranscriptions"],transcriptionSearchInPlan:[1,"transcriptionSearchInPlan"],isAdmin:[1,"isAdmin"],compact:[1,"compact"],collapsed:[1,"collapsed"]},outputs:{onSearchClicked:"onSearchClicked"},ngContentSelectors:hx,decls:7,vars:14,consts:[["type","button","matTooltipPosition","right",1,"focus-primary","relative","flex","w-full","cursor-pointer","items-center","transition-colors","duration-150",3,"click","matTooltip","matTooltipDisabled","ngClass"],[1,"flex","min-h-5","w-6","shrink-0","items-center","justify-center"],["name","heroMagnifyingGlass",3,"ngClass"],["name","heroMagnifyingGlass",1,"text-lg","opacity-70"],[1,"text-left","text-sm",3,"ngClass"],[3,"isAdmin","plain","showUserTab","canSearchTranscriptions"]],template:function(a,o){a&1&&(DM(cx),ta$3(0,"button",0),EN(1,"transloco"),EN(2,"transloco"),Zv$1("click",function(){return o.openDialog()}),eM$1(3,mx,2,0,"span",1)(4,vx,1,1,"ng-icon",2),eM$1(5,gx,4,5),EM(6),Pd$1()),a&2&&(iD("justify-center",o.collapsed()),jv$1("matTooltip",CN(1,8,"common.search"))("matTooltipDisabled",!o.collapsed())("ngClass",fN(12,px,o.collapsed()?"text-text-subtle border border-transparent px-1 py-2 hover:bg-[color-mix(in_srgb,currentColor_8%,transparent)] [.client-sidemenu-dark_&]:text-[color:var(--nav-row-color,var(--text-subtle))]":o.compact()?"text-text-subtle bg-backgrounds-surface-raised hover:bg-backgrounds-
2737hover gap-2 border py-2 pl-1 pr-2 [.client-sidemenu-dark_&]:border-[color-mix(in_srgb,currentColor_22%,transparent)] [.client-sidemenu-dark_&]:bg-[color-mix(in_srgb,currentColor_12%,transparent)] [.client-sidemenu-dark_&]:text-[color:var(--nav-row-color,var(--text-subtle))] [.client-sidemenu-dark_&]:hover:bg-[color-mix(in_srgb,currentColor_18%,transparent)]":o.isAdmin()?"bg-backgrounds-subtle hover:bg-backgrounds-active border px-3 py-[7px]":"search-trigger-client border px-3 py-[7px]")),Pv$1("aria-label",o.collapsed()?CN(2,10,"common.search"):null),uT(3),tM$1(o.collapsed()||o.compact()?3:4),uT(2),tM$1(o.collapsed()?-1:5));},dependencies:[e9,le$9,mx$1,zt$7,mt$7,Tt$a],styles:[".search-trigger-client[_ngcontent-%COMP%]{background-color:rgb(var(--mspot-black)/.05);border-color:rgb(var(--mspot-black)/.1);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.search-trigger-client[_ngcontent-%COMP%]:hover{background-color:rgb(var(--mspot-black)/.08);border-color:rgb(var(--mspot-black)/.16)}.dark[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%], .client-header-dark[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%], .client-header-dark [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]{background-color:rgb(var(--mspot-white)/.1);border-color:rgb(var(--mspot-white)/.14)}.dark[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover, .dark [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover, .client-header-dark[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover, .client-header-dark [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover{background-color:rgb(var(--mspot-white)/.14);border-color:rgb(var(--mspot-white)/.22)}.dark[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]{border-color:var(--borders-secondary)}.dark[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover, .dark [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover{border-color:var(--borders-secondary-hover)}.mobile-sidebar__panel[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%], .mobile-sidebar__panel [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]{background-color:rgb(var(--mspot-neutral-200));border-color:rgb(var(--mspot-neutral-300))}.mobile-sidebar__panel[_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover, .mobile-sidebar__panel [_nghost-%COMP%] .search-trigger-client[_ngcontent-%COMP%]:hover{background-color:rgb(var(--mspot-neutral-300));border-color:rgb(var(--mspot-neutral-300))}"]});}}return e})();var o9=({memberArea:e,isBeta:r})=>{if(!e||e.customAgents!==true)return false;let t=e.hasAiFeatures,a=e.hasAiAssistantActivated;return typeof r<"u"?t&&a&&r:t&&a};var r9=new b$g("PortalRef");var kr=(()=>{class e{constructor(){this._injector=g$k(oe$e),this._router=g$k(H$8),this._location=g$k(DE$1),this._dialogService=g$k(Ss$2),this.showPortalSubj=new Gr$6(false),this.showPortal$=this.showPortalSubj.asObservable(),this._router.events.pipe(Pt$b(t=>t instanceof re$3),wp$1(this.showPortal$),Pt$b(([,t])=>!!t)).subscribe(()=>this.destroy(null));}open(t,a,o="large"){let i={close:this.destroy.bind(this),data:a};this._updatePortalQueryParam("1",false);let d=oe$e.create({parent:this._injector,providers:[{provide:r9,useValue:i}]}),f=new At$6(t,void 0,d),y=this._portalComponent?.attachComponentPortal(f);return y?.changeDetectorRef.markForCheck(),this._currentComp=y,this.showPortalSubj.next(o),this._returnDataSubj=new le$d,this._returnDataSubj.pipe(Pt$b(L=>!!L))}destroy(t){this._returnDataSubj?.next(t),this.showPortalSubj.next(false),this._portalComponent?.dettachComponentPortal(),this._updatePortalQueryParam(null,true);}_updatePortalQueryParam(t,a){let o=this._router.parseUrl(this._router.url);t===null?delete o.queryParams.portal:o.queryParams.portal=t;let i=this._router.serializeUrl(o);a?this._location.replaceState(i):this._location.go(i);}registerPortal(t,a){this._portalComponent=t,a.backdropClick.pipe(Kf$1(()=>this._currentComp?.instance?.isDirty()?this._dialogService.unsavedChanges():yI(true))).subscribe(o=>o?this.destroy(null):null);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var ux=["portalContent"],wx=["*"];function fx(e,r){if(e&1){let t=fM();ta$3(0,"div",1)(1,"div",2)(2,"div",3),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.backdropClicked())}),Pd$1(),ta$3(3,"div",4)(4,"div",5,0),EM(6),Pd$1()()()();}if(e&2){let t=yM();uT(3),Ma$2("right",t.rightOffset(),"px"),uT(),jv$1("@ngIfTransformX",void 0)("ngClass",r==="large"?"max-w-3xl":"max-w-md");}}var Er=(()=>{class e{constructor(){this.opened=X8(false),this.rightOffset=X8(0),this.backdropClick=new Ct$h,this.portalContent=t3("portalContent"),this.focusContentEffect=Es$3(t=>{if(this.opened()){let a=setTimeout(()=>{if(document.body.classList.contains("driver-active"))return;let o=this.portalContent()?.nativeElement.querySelector('button:not([disabled]), [href], input, select, textarea, [tabindex]:not
2737([tabindex="-1"])');o&&o.focus();},s+10);t(()=>clearTimeout(a));}});}backdropClicked(){this.backdropClick.emit();}closePortalViaKeyboard(t){this.backdropClick.emit();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-portal-sidebar"]],viewQuery:function(a,o){a&1&&eD(o.portalContent,ux,5),a&2&&bM();},hostBindings:function(a,o){a&1&&Zv$1("keydown.esc",function(d){return o.closePortalViaKeyboard(d)},mb$1);},inputs:{opened:[1,"opened"],rightOffset:[1,"rightOffset"]},ngContentSelectors:wx,decls:1,vars:1,consts:[["portalContent",""],["aria-labelledby","slide-over-title","role","dialog","aria-modal","true","cdkTrapFocus","",1,"fixed","inset-0","z-50","h-screen","overflow-hidden"],[1,"absolute","inset-0","overflow-hidden"],["aria-hidden","true",1,"cdk-overlay-dark-backdrop","absolute","inset-0","h-screen","backdrop-blur-sm",3,"click"],[1,"fixed","inset-y-0","flex","max-w-full","transition-[right]","duration-200","ease-out"],[1,"w-screen",3,"ngClass"]],template:function(a,o){if(a&1&&(DM(),eM$1(0,fx,7,4,"div",1)),a&2){let i;tM$1((i=o.opened())?0:-1,i);}},dependencies:[mx$1,Ve$a],encapsulation:2,data:{animation:[p$1,c$2,g$2]}});}}return e})();function Cx(e,r){}var n9=(()=>{class e{constructor(){this._portalLoaderService=g$k(kr),this._drawer=g$k(Er),this._bodyService=g$k(m$3);}ngOnInit(){this._portalLoaderService.registerPortal(this,this._drawer);}attachComponentPortal(t){if(this._portalOutlet.hasAttached())throw new Error("Portal already attached");return this._bodyService.togglePortalOpenClass("add"),this._portalOutlet.attachComponentPortal(t)}dettachComponentPortal(){return this._bodyService.togglePortalOpenClass("remove"),this._portalOutlet.detach()}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-portal-loader"]],viewQuery:function(a,o){if(a&1&&Jv$1(wi$2,7),a&2){let i;CM(i=wM())&&(o._portalOutlet=i.first);}},decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a,o){a&1&&gv$1(0,Cx,0,0,"ng-template",0);},dependencies:[wi$2],encapsulation:2});}}return e})();var xx=["*"],_x=(e,r,t,a,o,i,d,f,y)=>({"w-[65px]":e,"lg:w-[103px]":r,"xl:w-[290px]":t,"2xl:w-[320px]":a,"min-[1700px]:w-[320px]":o,"forced-collapsed":i,"bottom-0 top-12":d,"bottom-0":f,"top-0":y}),i9=(()=>{class e{constructor(){this.hasTopBanner=X8(false),this.forceCollapsed=X8(false),this.collapsed=X8(false),this.aiOpen=X8(false),this.panelClass=X8(""),this.topOffsetPx=X8(0);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-desktop-sidebar"]],hostAttrs:[1,"block"],inputs:{hasTopBanner:[1,"hasTopBanner"],forceCollapsed:[1,"forceCollapsed"],collapsed:[1,"collapsed"],aiOpen:[1,"aiOpen"],panelClass:[1,"panelClass"],topOffsetPx:[1,"topOffsetPx"]},ngContentSelectors:xx,decls:2,vars:15,consts:[[1,"menu-sidebar","scrollbar-hide","fixed","flex","flex-col","overflow-y-scroll","overscroll-contain",3,"ngClass"]],template:function(a,o){a&1&&(DM(),ta$3(0,"div",0),EM(1),Pd$1()),a&2&&(BM(o.panelClass()),Ma$2("top",o.hasTopBanner()?null:o.topOffsetPx()||null,"px"),jv$1("ngClass",vN(5,_x,[o.collapsed(),!o.collapsed(),!o.collapsed()&&!o.forceCollapsed(),!o.collapsed()&&!o.forceCollapsed()&&!o.aiOpen(),!o.collapsed()&&!o.forceCollapsed()&&o.aiOpen(),o.forceCollapsed(),o.hasTopBanner(),!o.hasTopBanner(),!o.hasTopBanner()&&!o.topOffsetPx()])));},dependencies:[mx$1],encapsulation:2,data:{animation:[c$2,l]}});}}return e})();var bx=["*"],Mx=(e,r,t)=>({"top-[3rem] h-[calc(100%-3rem)]":e,"h-full":r,"xl:hidden":t});function Ax(e,r){if(e&1){let t=fM();ta$3(0,"div",0)(1,"div",1),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.closeSidebar.emit())}),Pd$1(),ta$3(2,"div",2),Zv$1("mouseenter",function(){sh$1(t);let o=yM();return ah$1(o.panelMouseEnter.emit())})("mouseleave",function(){sh$1(t);let o=yM();return ah$1(o.panelMouseLeave.emit())})("mousedown",function(){sh$1(t);let o=yM();return ah$1(o.panelMouseDown.emit())}),ta$3(3,"div",3)(4,"button",4),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.closeSidebar.emit())}),ta$3(5,"span",5),QM(6,"Close sidebar"),Pd$1(),yh$1(),ta$3(7,"svg",6),Vv$1(8,"path",7),Pd$1()()(),vh$1(),ta$3(9,"div",8)(10,"nav",9),EM(11),Pd$1()()(),Vv$1(12,"div",10),Pd$1();}if(e&2){let t=yM();jv$1("@ngIfAnimation",void 0)("ngClass",hN(3,Mx,t.hasBanner(),!t.hasBanner(),t.hideAtXl())),uT(2),jv$1("@ngIfTransformXInverse",void 0);}}var s9=(()=>{class e{constructor(){this._bodyService=g$k(m$3),this._opened=false,this.hasBanner=X8(false),this.hideAtXl=X8(true),this.closeSidebar=ne
2737w Ct$h,this.panelMouseEnter=J8(),this.panelMouseLeave=J8(),this.panelMouseDown=J8();}set opened(t){t!==this._opened&&(this._opened=t,this._bodyService.togglePortalOpenClass(t?"add":"remove"));}get opened(){return this._opened}ngOnDestroy(){this._opened&&(this._opened=false,this._bodyService.togglePortalOpenClass("remove"));}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-mobile-sidebar"]],inputs:{hasBanner:[1,"hasBanner"],hideAtXl:[1,"hideAtXl"],opened:"opened"},outputs:{closeSidebar:"closeSidebar",panelMouseEnter:"panelMouseEnter",panelMouseLeave:"panelMouseLeave",panelMouseDown:"panelMouseDown"},ngContentSelectors:bx,decls:1,vars:1,consts:[["role","dialog","aria-modal","true",1,"fixed","inset-0","z-40","flex",3,"ngClass"],["aria-hidden","true",1,"layer1","fixed","inset-0","h-screen","bg-[rgba(0,0,0,.32)]",3,"click"],[1,"menu-sidebar","relative","flex","w-full","max-w-xs","flex-1","flex-col",3,"mouseenter","mouseleave","mousedown"],[1,"absolute","right-0","top-0","-mr-12","pt-2"],["type","button",1,"ml-1","flex","h-10","w-10","items-center","justify-center","rounded-full","focus:outline-none","focus:ring-2","focus:ring-inset","focus:ring-white",3,"click"],[1,"sr-only"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","aria-hidden","true",1,"h-6","w-6","text-white"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"h-0","flex-1","overflow-y-auto"],[1,"h-full","space-y-1"],["aria-hidden","true",1,"w-14","flex-shrink-0"]],template:function(a,o){a&1&&(DM(),eM$1(0,Ax,13,7,"div",0)),a&2&&tM$1(o.opened?0:-1);},dependencies:[mx$1],encapsulation:2,data:{animation:[p$1,c$2,l]}});}}return e})();var yx=()=>({handset:true,overlay:true,collapsed:false}),Vx=()=>({handset:false,overlay:false,collapsed:true}),zx=()=>({handset:false,overlay:false,collapsed:false});function Sx(e,r){if(e&1&&$v$1(0,4),e&2){yM(2);let t=tN(0);jv$1("ngTemplateOutlet",t)("ngTemplateOutletContext",dN(2,yx));}}function Hx(e,r){if(e&1){let t=fM();ta$3(0,"mspot-mobile-sidebar",3),Zv$1("closeSidebar",function(){sh$1(t);let o=yM();return ah$1(o.state.closeAll())}),eM$1(1,Sx,1,3,"ng-container",4),Pd$1();}if(e&2){let t=yM(),a=tN(0);Ma$2("--nav-row-font",t.bigTouchSizing()?"0.9375rem":null)("--nav-row-min-h",t.bigTouchSizing()?"2.75rem":null)("--nav-row-gap",t.bigTouchSizing()?"0.75rem":null)("--nav-row-icon",t.bigTouchSizing()?"1.25rem":null)("--nav-list-gap",t.bigTouchSizing()?"0":null),jv$1("opened",t.state.sidebarOpened())("hideAtXl",false),uT(),tM$1(t.state.sidebarOpened()&&a?1:-1);}}function Lx(e,r){if(e&1&&$v$1(0,4),e&2){yM(2);let t=tN(0);jv$1("ngTemplateOutlet",t)("ngTemplateOutletContext",dN(2,Vx));}}function Tx(e,r){if(e&1&&(ta$3(0,"mspot-desktop-sidebar",1),eM$1(1,Lx,1,3,"ng-container",4),Pd$1()),e&2){let t=yM(),a=tN(0);jv$1("collapsed",true)("forceCollapsed",false)("panelClass",t.panelClass())("topOffsetPx",t.topOffsetPx()),uT(),tM$1(a?1:-1);}}function Bx(e,r){if(e&1&&$v$1(0,4),e&2){yM(2);let t=tN(0);jv$1("ngTemplateOutlet",t)("ngTemplateOutletContext",dN(2,zx));}}function kx(e,r){if(e&1&&(ta$3(0,"mspot-desktop-sidebar",2),eM$1(1,Bx,1,3,"ng-container",4),Pd$1()),e&2){let t=yM(),a=tN(0);jv$1("forceCollapsed",false)("aiOpen",t.aiOpen())("panelClass",t.panelClass())("topOffsetPx",t.topOffsetPx()),uT(),tM$1(a?1:-1);}}var l9=(()=>{class e{constructor(){if(this.state=g$k(jo),this.forceOverlay=X8(false),this.useRail=X8(false),this.aiOpen=X8(false),this.panelClass=X8(""),this.topOffsetPx=X8(0),this.contentTpl=r3(rn$a),this._isHandset=YG(g$k(n$2),{initialValue:false}),this._gtLg=YG(g$k(i$1),{initialValue:false}),this.isHandset=qd$1(()=>this._isHandset()),this.isTablet=qd$1(()=>!this._isHandset()&&!this._gtLg()),this._platformId=g$k(AC$1),this._destroyRef=g$k(de$b),this._coarsePointer=On$7(false),this.bigTouchSizing=qd$1(()=>this.isHandset()||this.isTablet()&&this._coarsePointer()),this.railActive=qd$1(()=>!this.isHandset()&&this.useRail()&&(this.isTablet()||this.forceOverlay())),this._collapsedState=g$k(ft,{optional:true}),Es$3(()=>this._collapsedState?.collapsed.set(this.railActive())),AG(this._platformId)&&typeof window<"u"){let t=window.matchMedia("(pointer: coarse)");this._coarsePointer.set(t.matches);let a=o=>this._coarsePointer.set(o.matches);t.addEventListener("change",a),this._destroyRef.onDestroy(()=>t.removeEventListener("change",a));}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-collapsible-sidebar"]],contentQueries:function(a,o,i){a&1&&Xv$1(i,o.contentTpl,rn$a,5),a&2&&bM();},inputs:{forceOverlay:[1,"forceOverlay"],useRail:[1,"useRail"],aiOpen:[1,"aiOpen"],panelClass:[1,"panelClass"],topOffsetPx:[1,"topOffsetPx"]}
2737,decls:4,vars:2,consts:[[3,"--nav-row-font","--nav-row-min-h","--nav-row-gap","--nav-row-icon","--nav-list-gap","opened","hideAtXl"],[3,"collapsed","forceCollapsed","panelClass","topOffsetPx"],[3,"forceCollapsed","aiOpen","panelClass","topOffsetPx"],[3,"closeSidebar","opened","hideAtXl"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(a,o){a&1&&(wD(0),eM$1(1,Hx,2,13,"mspot-mobile-sidebar",0)(2,Tx,2,5,"mspot-desktop-sidebar",1)(3,kx,2,5,"mspot-desktop-sidebar",2)),a&2&&(eN(o.contentTpl()),uT(),tM$1(o.isHandset()?1:o.railActive()?2:3));},dependencies:[Ix$1,s9,i9],encapsulation:2});}}return e})();var Ex=["*"],c9=(()=>{class e{constructor(){this.showDivider=X8(false),this.dense=X8(false,{transform:ni$7});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-sidebar-footer"]],hostAttrs:[1,"flex","shrink-0","flex-col","gap-[var(--nav-list-gap,0.25rem)]","border-[color-mix(in_srgb,currentColor_15%,transparent)]","px-4","pb-2"],hostVars:6,hostBindings:function(a,o){a&2&&iD("pt-4",!o.dense())("pt-2",o.dense())("border-t",o.showDivider());},inputs:{showDivider:[1,"showDivider"],dense:[1,"dense"]},ngContentSelectors:Ex,decls:1,vars:0,template:function(a,o){a&1&&(DM(),EM(0));},encapsulation:2});}}return e})();function Dx(e,r){if(e&1&&(ta$3(0,"span",5),Vv$1(1,"span",8),ta$3(2,"span",9),QM(3),Pd$1()()),e&2){let t=yM();uT(3),Gd$1(" ",t.labels().primaryBadge," ");}}function Fx(e,r){if(e&1&&(ta$3(0,"span",5),Vv$1(1,"span",10),ta$3(2,"span",11),QM(3),Pd$1()()),e&2){let t=yM();uT(3),Gd$1(" ",t.labels().nonPrimaryBadge," ");}}function Ix(e,r){if(e&1&&(ta$3(0,"span",17),QM(1),Pd$1()),e&2){let t=yM(2);uT(),Gd$1(" ",t.labels().primaryBadge," ");}}function Nx(e,r){if(e&1&&(ta$3(0,"span",18),QM(1),Pd$1()),e&2){let t=yM(2);uT(),Gd$1(" ",t.labels().currentBadge," ");}}function Px(e,r){if(e&1&&(ta$3(0,"span",19),QM(1),Pd$1()),e&2){let t=yM().$implicit;uT(),yD(t.sublabel);}}function Rx(e,r){if(e&1&&(ta$3(0,"div",12),Vv$1(1,"span",13),ta$3(2,"div",14)(3,"div",15)(4,"span",16),QM(5),Pd$1(),eM$1(6,Ix,2,1,"span",17),eM$1(7,Nx,2,1,"span",18),Pd$1(),eM$1(8,Px,2,1,"span",19),Pd$1()()),e&2){let t=r.$implicit,a=yM();uT(),iD("bg-emerald-500",t.data?.isPrimary)("bg-gray-400",!t.data?.isPrimary),uT(4),Gd$1(" ",t.label," "),uT(),tM$1(t.data?.isPrimary?6:-1),uT(),tM$1(a.labels().currentBadge&&t.id===a.currentVersionId()?7:-1),uT(),tM$1(t.sublabel?8:-1);}}function Ox(e,r){if(e&1){let t=fM();ta$3(0,"button",20),Zv$1("click",function(o){return sh$1(t),yM().openCreateDialog(),ah$1(o.stopPropagation())}),Vv$1(1,"ng-icon",21),QM(2),Pd$1();}if(e&2){let t=yM();uT(2),Gd$1(" ",t.labels().createAction," ");}}var h9=(()=>{class e{constructor(){this._dialogService=g$k(Ss$2),this._transloco=g$k(Ce$5),this.versions=X8.required(),this.currentVersionId=X8.required(),this.labels=X8.required(),this.hasUnsavedChanges=X8(false),this.canEdit=X8(true),this.canCreate=X8(true),this.triggerClass=X8("btn btn-secondary w-full max-w-[14rem] overflow-hidden"),this.switchVersion=J8(),this.createVersion=J8(),this.renameVersion=J8(),this.makePrimary=J8(),this.demotePrimary=J8(),this.deleteVersion=J8(),this._selectMenu=t3(dn$5),this.currentVersion=qd$1(()=>{let t=this.currentVersionId();return this.versions().find(a=>a.id===t)??null}),this.currentLabel=qd$1(()=>this.currentVersion()?.name??"\u2026"),this.currentIsPrimary=qd$1(()=>!!this.currentVersion()?.isPrimary),this.menuItems=qd$1(()=>{let t=this.labels(),a=this.currentVersionId(),o=this.hasUnsavedChanges(),i=this.canEdit(),d=new Intl.DateTimeFormat(this._transloco.getActiveLang(),{dateStyle:"short",timeStyle:"short"});return this.versions().map(f=>{let y=f.id===a,L=(()=>{if(!f.updatedAt)return "";let n0=new Date(f.updatedAt);return Number.isNaN(n0.getTime())?"":d.format(n0)})(),R=t.lastEditedPrefix,Q=L?R?`${R}: ${L}`:L:"",d0=o&&!y,m0=o;return {id:f.id,label:f.name,sublabel:Q,badge:f.isPrimary?{text:t.primaryBadge,variant:"live"}:void 0,disabled:d0,disabledReason:d0?t.saveBeforeSwitch:void 0,actions:i?this._buildActions(f,t,m0):[],data:f}})});}onSelect(t){let a=t.data;!a||a.id===this.currentVersionId()||this.switchVersion.emit({version:a});}async onActionTriggered(t){let a=t.item.data;if(!a)return;let o=this.labels();switch(t.actionId){case "make-primary":o.makePrimaryConfirmTitle&&o.makePrimaryConfirmMessage&&await this._confirm(o.makePrimaryConfirmTitle,o.makePrimaryConfirmMessage,a.name)&&this.makePrimary.emit({version:a});break;case "demote-primary":o.demotePrimaryConfirmTitle&&o.demotePrimaryConfirmMessage&&await this._confirm(o.demotePrimaryConfirmTitle,o.demotePrimaryConfirmMessage,a.name)&&this.demotePrimary.emit({version:a});break;case "rename":o.renameDialogTitle&&await this._openRenameDialog(a,o.renameDialogTitle);break;case "delete":o.deleteConfirmTitle&&o.deleteConfirmMessage&&await this._confirm(o.deleteConfirmTitle,o.deleteConfirmMessage,a.name)&&this.deleteVersion.emit({version:a});break}}async openCreateDialog(){let t=this.labels().createDialogTitle;if(!t)return;let o=(await qE$1(this._dialogService.text(t),{defaultValue:null}))?.name?.trim();o&&(this._selectMenu()?.close(),this.createVersion.emit({name:o}));}_buildActions(t,a,o){let i=o?a.saveBeforeSwitch:void 0;return [{id:"make-primary",label:a.makePrimaryAction??"",icon:"hero-rocket-launch",hidden:t.isPrimary,disabled:o,disabledReason:i},{id:"demote-primary",label:a.demotePrimaryAction??"",icon:"hero-arrow-uturn-left",hidden:!t.isPrimary,disabled:o,disabledReason:i},{id:"rename",label:a.renameAction??"",icon:"hero-pencil",disabled:o,disabledReason:i},{id:"delete",label:a.deleteAction??"",icon:"hero-trash",variant:"danger",disabled:o||t.isPrimary,disabledReason:o?i:t.isPrimary?a.cantDeletePrimary:void 0}]}async _openRenameDialog(t,a){let i=(await qE$1(this._dialogService.text(a,t.name),{defaultValue:null}))?.name?.trim();
2737!i||i===t.name||this.renameVersion.emit({version:t,name:i});}async _confirm(t,a,o){return this._dialogService.confirmAsync({title:t,message:a,abortText:void 0,confirmText:void 0,messageVars:{name:o}})}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-version-menu"]],viewQuery:function(a,o){a&1&&eD(o._selectMenu,dn$5,5),a&2&&bM();},hostAttrs:[1,"inline-flex","items-center"],inputs:{versions:[1,"versions"],currentVersionId:[1,"currentVersionId"],labels:[1,"labels"],hasUnsavedChanges:[1,"hasUnsavedChanges"],canEdit:[1,"canEdit"],canCreate:[1,"canCreate"],triggerClass:[1,"triggerClass"]},outputs:{switchVersion:"switchVersion",createVersion:"createVersion",renameVersion:"renameVersion",makePrimary:"makePrimary",demotePrimary:"demotePrimary",deleteVersion:"deleteVersion"},decls:12,vars:10,consts:[["selectMenu",""],["itemTpl",""],["footerTpl",""],[3,"selectionChange","actionTriggered","items","selectedId","ariaLabel","header","showFooter","triggerClass"],["slot","triggerContent",1,"flex","w-full","min-w-0","items-center"],[1,"flex","shrink-0","items-center","gap-1.5"],[1,"min-w-0","flex-1","truncate","text-left"],["name","hero-chevron-down",1,"shrink-0","text-base","text-gray-500"],[1,"h-2","w-2","rounded-full","bg-emerald-500"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-emerald-600"],[1,"h-2","w-2","rounded-full","bg-amber-500"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-amber-600"],[1,"flex","min-w-0","flex-1","items-center","gap-3"],[1,"h-2.5","w-2.5","shrink-0","rounded-full"],[1,"flex","min-w-0","flex-1","flex-col"],[1,"flex","items-center","gap-2"],[1,"truncate","font-medium","text-gray-900"],[1,"shrink-0","rounded-full","bg-emerald-100","px-1.5","py-0.5","text-[10px]","font-semibold","uppercase","tracking-wide","text-emerald-700"],[1,"shrink-0","rounded-full","bg-blue-100","px-1.5","py-0.5","text-[10px]","font-semibold","uppercase","tracking-wide","text-blue-700"],[1,"text-xs","text-gray-500"],["type","button",1,"inline-flex","w-full","items-center","gap-2","rounded","px-2","py-1.5","text-sm","font-medium","text-blue-600","hover:bg-blue-50","focus:outline-none","focus:ring-2","focus:ring-blue-400",3,"click"],["name","hero-plus",1,"text-base"]],template:function(a,o){a&1&&(ta$3(0,"mspot-select-menu",3,0),Zv$1("selectionChange",function(d){return o.onSelect(d)})("actionTriggered",function(d){return o.onActionTriggered(d)}),ta$3(2,"span",4),eM$1(3,Dx,4,1,"span",5)(4,Fx,4,1,"span",5),ta$3(5,"span",6),QM(6),Pd$1(),Vv$1(7,"ng-icon",7),Pd$1(),gv$1(8,Rx,9,8,"ng-template",null,1,SN)(10,Ox,3,1,"ng-template",null,2,SN),Pd$1()),a&2&&(jv$1("items",o.menuItems())("selectedId",o.currentVersionId())("ariaLabel",o.labels().triggerAriaLabel)("header",o.labels().header)("showFooter",o.canEdit()&&o.canCreate())("triggerClass",o.triggerClass()),uT(3),tM$1(o.currentIsPrimary()?3:o.labels().nonPrimaryBadge?4:-1),uT(2),iD("ml-2",o.currentIsPrimary()||!!o.labels().nonPrimaryBadge),uT(),Gd$1(" ",o.currentLabel()," "));},dependencies:[ae$9,le$9,dn$5],encapsulation:2});}}return e})();function qx(e,r){if(e&1){let t=fM();ta$3(0,"div",15)(1,"mspot-version-menu",16),Zv$1("switchVersion",function(o){sh$1(t);let i=yM(3);return ah$1(i.onSwitchVersion(o))}),Pd$1()();}if(e&2){yM();let t=tN(0),a=yM(2);uT(),jv$1("versions",a.menuItems())("currentVersionId",a.resolvedCurrentVersionId())("labels",t)("canEdit",false)("triggerClass",a.triggerClass);}}function $x(e,r){if(e&1&&(wD(0),EN(1,"async"),eM$1(2,qx,2,5,"div",15)),e&2){let t=eN(CN(1,1,yM(2).labels$));uT(2),tM$1(t?2:-1);}}function Ux(e,r){if(e&1){let t=fM();Hd$1(0),ta$3(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.toggleAdminToolbar())}),Vv$1(6,"ng-icon",6),Pd$1(),ta$3(7,"div",7),yh$1(),ta$3(8,"svg",8),Vv$1(9,"path",9),Pd$1()(),vh$1(),ta$3(10,"div",10),QM(11),Pd$1()(),ta$3(12,"div",11),eM$1(13,$x,3,4),ta$3(14,"div",12)(15,"span"),QM(16),Pd$1(),ta$3(17,"span"),QM(18),Pd$1(),ta$3(19,"mspot-toggle",13),Zv$1("valueChange",function(o){sh$1(t);let i=yM();return ah$1(i.onToggleAdminView(o))}),Pd$1(),ta$3(20,"span"),QM(21),Pd$1()(),ta$3(22,"div",14),QM(23),Pd$1()()()()(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(),jv$1("ngClass",a.adminToolbarVisible()?"":"-translate-y-full"),Pv$1("aria-hidden",a.adminToolbarVisible()?null:true),uT(2),jv$1("ngClass",a.fullWidth()?"w-full":"max-width-client"),uT(3),jv$1("name",a.isHandset()?"hero-x-mark":"hero-chevron-up"),uT(5),Gd$1(" ",t("adminToolbar.preview")," "),uT(2),tM$1(a.showVersionSwitcher()?13:-1),uT(3),Gd$1(" ",t("adminToolbar.view"),": "),uT(),iD("text-white",!a.isAdminView()),uT(),Gd$1(" ",t("adminToolbar.viewMember")," "),uT(),jv$1("value",a.isAdminView()),uT(),iD("text-white",a.isAdminView()),uT(),Gd$1(" ",t("adminToolbar.viewAll")," "),uT(2),Gd$1(" ",t("adminToolbar.notVisibleNotification")," ");}}var p9=(()=>{class e{constructor(){this._versionSwitcher=g$k(Mr),this._schoolId$=g$k(w$g),this._transloco=g$k(Ce$5),this._contentTopService=g$k(Da),this._portalBackend=g$k(v$i),this._queryClient=g$k(_$d),this._demoViewService=g$k(_t),this.isHandset=X8(false),this.adminToolbarVisible=X8(true),this.fullWidth=X8(true),this.visibilityChanged=J8(),this.triggerClass="inline-flex w-full max-w-[14rem] items-center gap-1.5 overflow-hidden rounded border border-slate-600 px-2 py-1 text-xs font-medium text-white hover:bg-slate-700 focus:outline-none focus:ring-2 focus:ring-blue-400",this._schoolId=YG(this._schoolId$,{initialValue:null}),this._dashboardId=qd$1(()=>this._versionSwitcher.portalRoute()?.dashboardId??null),this._demoView=YG(this._demoViewService.demoView$,{initialValue:this._demoViewService.demoViewValue}),this.isAdminView=qd$1(()=>this._demoView()),this._portalQuery=ie$b(()=>this._portalBackend.portalQueryConfig(this._schoolId(),this._dashboardId(),null)),this._versionsQuery=ie$b(()=>this._versionSwitcher.versionsQueryConfig(this.isAdminView()?this._schoolId():null,this.isAdminView()?this._dashboardId():null)),this.versions=qd$1(()=>this._versionsQuery.data()??[]),this.menuItems=qd$1(()=>this.versions().map(t=>({id:t.id,name:t.name,isPrimary:t.isLive,updatedAt:t.updatedAt,summary:t}))),this.showVersionSwitcher=qd$1(()=>this.isAdminView()&&this.versions().length>0),this.resolvedCurrentVersionId=qd$1(()=>{let t=this.versions(),a=this._versionSwitcher.currentVersionId();return a&&t.some(o=>o.id===a)?a:t.find(o=>o.isLive)?.id??t[0]?.id??""}),this._isPortalUnpublished=qd$1(()=>{let t=this._portalQuery.data();return !!t&&h$b(t)}),this.labels$=this._transloco.langChanges$.pipe(st$c(()=>({primaryBadge:this._transloco.translate("adminToolbar.versionLive"),nonPrimaryBadge:this._transloco.translate("adminToolbar.versionDraft"),currentBadge:this._transloco.translate("adminToolbar.versionCurrent"),header:this._transloco.translate("adminToolbar.version"),saveBeforeSwitch:"",triggerAriaLabel:this._transloco.translate("adminToolbar.version"),lastEditedPrefix:this._transloco.translate("adminToolbar.versionLastEdited")}))),this.labels=YG(this.labels$),this._autoExpandEffect=Es$3(()=>{this._contentTopService.adminToolbarVisibilityChange(this._isPortalUnpublished());});}toggleAdminToolbar(){this.visibilityChanged.emit();}async onToggleAdminView(t){if(this._demoViewService.changeDemoView(t),!t){this._versionSwitcher.switchToVersion(null);return}let a=this._schoolId(),o=this._dashboardId();if(!a||!o)return;let i;try{i=await this._queryClient.fetchQuery(this._portalBackend.versionsQueryConfig(a,o));}catch{this._demoViewService.changeDemoView(false);return}let d=i.find(f=>
2737!f.isLive)??i[0];d&&this._versionSwitcher.switchToVersion(d.id);}onSwitchVersion(t){let a=t.version.summary.isLive;this._versionSwitcher.switchToVersion(a?null:t.version.id);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-admin-toolbar"]],hostAttrs:[1,"block","relative"],inputs:{isHandset:[1,"isHandset"],adminToolbarVisible:[1,"adminToolbarVisible"],fullWidth:[1,"fullWidth"]},outputs:{visibilityChanged:"visibilityChanged"},decls:1,vars:0,consts:[[4,"transloco"],[1,"admin-toolbar","pointer-events-none","fixed","top-0","z-30","w-full","transform","transition-transform","duration-300","ease-in-out",3,"ngClass"],[1,"pointer-events-auto","flex","h-9","w-full","items-center","bg-dark"],[1,"flex","w-full","justify-between","px-3","md:px-4",3,"ngClass"],[1,"flex","items-center"],[1,"flex","h-6","w-6","items-center","justify-center","rounded-md","bg-slate-700",3,"click"],[1,"text-xl","text-white",3,"name"],[1,"navbar-header","ml-4","hidden","items-center","sm:flex"],["height","17","viewBox","0 0 416 62","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M27.452 32.785L41.694 0h12.46v47.91H42.63V18.13L27.452 32.785zM12.274 18.224v29.779H.75V.093L13.117 0l14.241 32.69-15.084-14.466zM96.88 29.685c0-3.1-.469-5.824-1.312-8.173-.843-2.254-2.061-4.133-3.56-5.636-1.5-1.503-3.28-2.537-5.248-3.288-1.967-.752-4.028-1.033-6.277-1.033-3.373 0-6.371.751-8.9 2.348-2.53 1.597-4.498 3.758-5.904 6.576-1.405 2.818-2.06 6.012-2.06 9.77 0 3.757.655 7.045 2.06 9.77 1.406 2.723 3.373 4.884 5.997 6.387 2.623 1.503 5.715 2.255 9.275 2.255 2.811 0 5.247-.47 7.402-1.316 2.155-.845 3.935-2.066 5.34-3.57 1.406-1.502 2.343-3.381 2.812-5.448l-7.87-.845c-.375 1.033-.938 1.879-1.687 2.536-.75.658-1.593 1.221-2.623 1.597-1.031.376-2.062.564-3.374.564-1.873 0-3.466-.376-4.778-1.221-1.405-.752-2.436-1.88-3.186-3.382-.749-1.41-1.124-3.194-1.124-5.167h24.923v-2.724h.093zm-24.923-3.1c.094-1.41.468
2737-2.724 1.03-3.946a10.086 10.086 0 012.999-3.287c1.311-.846 2.81-1.222 4.497-1.222 1.593 0 2.998.376 4.216 1.128 1.218.751 2.155 1.69 2.811 3.006a9.481 9.481 0 011.03 4.32H71.958zM105.968 47.91V12.023h8.057v6.106h.375c.75-2.066 1.968-3.663 3.748-4.79 1.686-1.128 3.748-1.785 6.184-1.785s4.497.563 6.184 1.784c1.686 1.222 2.81 2.819 3.56 4.791h.375c.749-1.972 2.155-3.57 4.028-4.79 1.874-1.222 4.123-1.785 6.746-1.785 3.28 0 5.997 1.033 8.058 3.1 2.061 2.066 3.092 5.166 3.092 9.112v24.142h-8.432V25.176c0-2.255-.563-3.852-1.781-4.885s-2.623-1.597-4.31-1.597c-2.061 0-3.654.658-4.778 1.879-1.124 1.315-1.686 2.912-1.686 4.979v22.357h-8.245V24.8c0-1.879-.563-3.288-1.687-4.415-1.124-1.127-2.53-1.691-4.31-1.691-1.218 0-2.342.282-3.279.94-.937.657-1.78 1.502-2.342 2.63-.563 1.127-.844 2.442-.844 3.851V47.91h-8.713zM167.15 47.91V.093h8.432v17.848h.375c.469-.845 1.031-1.784 1.874-2.818.75-1.033 1.874-1.879 3.186-2.536 1.311-.752 3.091-1.033 5.153-1.033 2.717 0 5.247.751 7.495 2.066 2.249 1.41 4.029 3.476 5.341 6.2 1.311 2.724 1.967 6.106 1.967 10.146 0 3.945-.656 7.327-1.967 10.051-1.312 2.724-2.998 4.885-5.247 6.294-2.249 1.41-4.778 2.16-7.589 2.16-2.062 0-3.748-.375-5.06-1.033-1.311-.657-2.436-1.503-3.279-2.442-.843-.94-1.405-1.879-1.874-2.724h-.468v5.636h-8.339zm8.245-17.943c0 2.348.375 4.32 1.031 6.106.655 1.785 1.592 3.1 2.904 4.04 1.218.938 2.811 1.502 4.591 1.502 1.874 0 3.467-.47 4.685-1.503 1.218-1.033 2.248-2.348 2.811-4.133.655-1.785.937-3.758.937-6.012 0-2.255-.282-4.228-.937-5.918-.656-1.691-1.593-3.1-2.811-4.04s-2.811-1.503-4.685-1.503c-1.78 0-3.373.47-4.591 1.41a8.077 8.077 0 00-2.811 4.039c-.749 1.69-1.124 3.757-1.124 6.012zM241.824 29.685c0-3.1-.469-5.824-1.312-8.173-.843-2.254-2.061-4.133-3.56-5.636-1.499-1.503-3.28-2.537-5.247-3.288-1.968-.752-4.029-1.033-6.278-1.033-3.373 0-6.371.751-8.901 2.348-2.529 1.597-4.497 3.758-5.902 6.576-1.406 2.818-2.062 6.012-2.062 9.77 0 3.757.656 7.045 2.062 9.77 1.405 2.723 3.373 4.884 5.996 6.387 2.624 1.503 5.715 2.255 9.276 2.255 2.811 0 5.247-.47 7.402-1.316 2.155-.845 3.935-2.066 5.34-3.57 1.406-1.502 2.342-3.381 2.811-5.448l-7.87-.845c-.375 1.033-.937 1.879-1.687 2.536-.749.658-1.593 1.221-2.623 1.597-1.031.376-2.061.564-3.373.564-1.874 0-3.467-.376-4.779-1.221-1.405-.752-2.436-1.88-3.185-3.382-.75-1.41-1.124-3.194-1.124-5.167h24.922v-2.724h.094zm-24.829-3.1c.094-1.41.468
2737-2.724 1.031-3.946a10.078 10.078 0 012.998-3.287c1.311-.846 2.811-1.222 4.497-1.222 1.593 0 2.998.376 4.216 1.128 1.218.751 2.155 1.69 2.811 3.006a9.48 9.48 0 011.031 4.32h-16.584zM250.912 47.91V12.023h8.151v6.012h.375c.656-2.066 1.78-3.663 3.373-4.79 1.593-1.128 3.373-1.691 5.434-1.691.469 0 1.031 0 1.593.094.562 0 1.031.093 1.499.187v7.797c-.374-.094-.937-.281-1.686-.375-.75-.094-1.499-.188-2.249-.188a8.653 8.653 0 00-4.122 1.033c-1.218.658-2.155 1.597-2.905 2.724-.656 1.128-1.03 2.537-1.03 4.04v21.042h-8.433zM304.973 20.103l-4.966 1.41c-.281-.846-.749-1.598-1.405-2.443-.562-.752-1.406-1.41-2.436-1.973-1.031-.564-2.343-.752-3.935-.752-2.155 0-4.029.47-5.435 1.504-1.405 1.033-2.155 2.254-2.155 3.851 0 1.41.469 2.442 1.5 3.288 1.03.751 2.529 1.409 4.684 1.973l5.247 1.22c3.186.752 5.622 1.974 7.121 3.57 1.593 1.598 2.342 3.664 2.342 6.107 0 2.066-.562 3.851-1.78 5.542-1.218 1.597-2.811 2.912-4.872 3.852-2.061.939-4.497 1.409-7.308 1.409-3.654 0-6.652-.752-9.088-2.349-2.436-1.597-3.936-3.945-4.498-6.951l5.247-1.316c.469 1.973 1.405 3.382 2.811 4.322 1.405.94 3.185 1.409 5.434 1.409 2.53 0 4.591-.564 6.09-1.691 1.499-1.127 2.249-2.443 2.249-3.946 0-1.22-.469-2.254-1.312-3.1-.843-.845-2.249-1.503-4.029-1.878l-5.996-1.41c-3.279-.751-5.715-1.972-7.214-3.663-1.5-1.597-2.249-3.664-2.249-6.2 0-2.067.562-3.852 1.686-5.355 1.125-1.597 2.717-2.818 4.685-3.663 1.968-.846 4.216-1.315 6.746-1.315 3.56 0 6.277.751 8.339 2.348 2.155 1.597 3.654 3.664 4.497 6.2zM315.842 61.343V12.023h5.34v5.73h.656c.375-.657.937-1.409 1.687-2.348.749-.94 1.78-1.879 3.092-2.63 1.311-.752 3.185-1.127 5.528-1.127 2.998 0 5.621.751 7.963 2.254 2.343 1.503 4.123 3.664 5.341 6.388 1.312 2.724 1.968 6.012 1.968 9.77 0 3.757-.656 7.045-1.968 9.863-1.312 2.819-3.092 4.885-5.341 6.482-2.248 1.503-4.872 2.255-7.87 2.255-2.342 0-4.122-.376-5.528-1.128a10.166 10.166 0 01-3.185-2.63c-.75-1.033-1.312-1.785-1.687-2.442h-.468v18.975h-5.528v-.093zm5.434-31.376c0 2.724.375 5.072 1.218 7.14.75 2.066 1.968 3.663 3.467 4.79 1.499 1.127 3.373 1.785 5.621 1.785 2.343 0 4.217-.658 5.809-1.879 1.499-1.221 2.717-2.912 3.467-4.979a20.38 20.38 0 001.218-6.951c0-2.537-.375-4.791-1.124-6.858-.75-2.067-1.968-3.663-3.467-4.79-1.499-1.222-3.467-1.786-5.809-1.786-2.249 0-4.122.564-5.622 1.691-1.499 1.128-2.717 2.725-3.466 4.697-.937 2.16-1.312 4.51-1.312 7.14zM372.339 48.66c-3.186 0-6.09-.75-8.526-2.348-2.436-1.597-4.31-3.663-5.716-6.482-1.405-2.724-2.061-6.012-2.061-9.675 0-3.758.656-6.952 2.061-9.77 1.406-2.818 3.28-4.979 5.716-6.482 2.436-1.503 5.247-2.348 8.526-2.348 3.185 0 6.09.751 8.526 2.348 2.436 1.503 4.31 3.664 5.715 6.482 1.312 2.818 2.062 6.012 2.062 9.77 0 3.663-.656 6.951-2.062 9.675-1.405 2.819-3.279 4.885-5.715 6.482-2.436 1.597-5.341 2.349-8.526 2.349zm0-4.978c2.436 0 4.497-.658 6.09-1.879s2.717-2.912 3.56-4.979c.75-2.066 1.125-4.321 1.125-6.67 0-2.442-.375-4.602-1.125-6.67-.749-2.066-1.967-3.757-3.56-4.978-1.593-1.221-3.56-1.879-6.09-1.879-2.436 0-4.497.658-6.09 1.88-1.593 1.22-2.717 2.911-3.561 4.978-.749 2.067-1.124 4.321-1.124 6.67 0 2.442.375 4.603 1.124 6.67.75 2.066 1.968 3.757 3.561 4.978 1.593 1.315 3.654 1.879 6.09 1.879zM414.033 42.836c-.188 0-.563.094-.937.188-.375.094-.844.094-1.499.094-.844 0-1.593-.094-2.249-.376a3.849 3.849 0 01-1.78-1.503c-.469-.751-.656-1.972-.656-3.475V16.72h7.683v-4.697h-7.683V3.476h-5.528v8.548h-5.434v4.697h5.434v22.452c0 2.066.468 3.851 1.499 5.166.937 1.41 2.155 2.349 3.654 3.1 1.499.658 2.998 1.034 4.591 1.034 1.031 0 1.874-.094 2.53-.188.656-.188 1.218-.282 1.593-.47l-1.218-4.979z","fill","#fff"],[1,"members-not","ml-5","hidden","sm:block"],[1,"members-not","flex","items-center","justify-end"],[1,"flex","items-center","space-x-2","md:mr-4"],[3,"valueChange","value"],[1,"hidden","md:block"],[1,"mr-4","hidden","items-center","md:flex"],[3,"switchVersion","versions","currentVersionId","labels","canEdit","triggerClass"]],template:function(a,o){a&1&&gv$1(0,Ux,24,15,"ng-container",0);},dependencies:[mx$1,le$9,bt$5,yt$a,h9,bx$1],styles:['.admin-toolbar[_ngcontent-%COMP%]{color:#9ca3af}html[data-capacitor-platform=ios][_nghost-%COMP%] .admin-toolbar[_ngcontent-%COMP%], html[data-capacitor-platform=ios] [_nghost-%COMP%] .admin-toolbar[_ngcontent-%COMP%]{position:relative;padding-top:var(--mspot-safe-area-top, max(env(safe-area-inset-top, 0px), 24px))}html[data-capacitor-platform=ios][_nghost-%COMP%] .admin-toolbar[_ngcontent-%COMP%]:before, html[data-capacitor-platform=ios] [_nghost-%COMP%] .admin-toolbar[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;z-index:0;height:var(--mspot-safe-area-top, max(env(safe-area-inset-top, 0px), 24px));pointer-events:none;background-color:var(--bg-dark, #303030)}html[data-capacitor-platform=ios][_nghost-%COMP%] .admin-toolbar[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html[data-capacitor-platform=ios] [_nghost-%COMP%] .admin-toolbar[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.members-not[_ngcontent-%COMP%]{font-size:.8rem;font-weight:300}.demo-view-btns[_ngcontent-%COMP%]{margin-left:10px}']});}}return e})();var jx=e=>({$implicit:e}),Gx=(e,r)=>r.routeLink;function Qx(e,r){if(e&1&&(ta$3(0,"div",5)(1,"div",7)(2,"a",8),Vv$1(3,"ng-icon",9),ta$3(4,"span",10),QM(5),Pd$1()()()()),e&2){let t=yM(2),a=yM().$implicit;uT(2),jv$1("routerLink",t[t.length-2]?.routeLink)("queryParams",t[t.length-2]?.queryParams),uT(3),Gd$1(" ",t[t.length-2]?.info?a(t[t.length-2]?.label):t[t.length-2]?.label," ");}}function Zx(e,r){e&1&&$v$1(0);}function Wx(e,r){if(e&1&&gv$1(0,Zx,1,0,"ng-container",12),e&2){let t=r.$implicit,a=r.$index,o=r.$count;yM(4);let i=TM(4),d=TM(6),f=TM(8);jv$1("ngTemplateOutlet",a===0?i:a===o-1?f:d)("ngTemplateOutletContext",fN(2,jx,t));}}function Kx(e,r){if(e&1&&(ta$3(0,"nav",6)(1,"ol",11),oM(2,Wx,1,4,"ng-container",null,Gx),Pd$1()()),e&2){let t=yM(2),a=yM().$implicit;Pv$1("aria-label",a("breadcrumbs.navigation")),uT(2),iM(t);}}function Xx(e,r){if(e&1&&(eM$1(0,Qx,6,3,"div",5),EN(1,"async"),Ld$1(2,Kx,4,1,"nav",6)),e&2){let t=yM(3);tM$1(CN(1,1,t.isHandset$)?0:2);}}function Yx(e,r){e&1&&eM$1(0,Xx,3,3),e&2&&tM$1(r.length>1?0:-1);}function Jx(e,r){if(e&1&&(ta$3(0,"li",13)(1,"div")(2,"a",14),Vv$1(3,"ng-icon",15),Pd$1()()()),e&2){let t=r.$implicit;uT(2),jv$1("routerLink",t.routeLink)("queryParams",t.queryParams),Pv$1("aria-label",t.label)("data-cy",t.dataCy??null),uT(),jv$1("name",t.icon);}}function t_(e,r){e&1&&$v$1(0);}function e_(e,r){if(e&1&&(ta$3(0,"li",13)(1,"div",5),gv$1(2,t_,1,0,"ng-container",16),ta$3(3,"a",17),QM(4),Pd$1()()()),e&2){let t=r.$implicit,a=yM().$implicit,o=TM(10);uT(2),jv$1("ngTemplateOutlet",o),uT(),jv$1("routerLink",t.routeLink)("queryParams",t.queryParams),uT(),yD(t.info==="translate"?a(t.label):t.label);}}function a_(e,r){e&1&&$v$1(0);}function o_(e,r){if(e&1&&(ta$3(0,"li",18)(1,"div",19),gv$1(2,a_,1,0,"ng-container",16),ta$3(3,"span",20),QM(4),Pd$1()()()),e&2){let t=r.$implicit,a=yM().$implicit,o=TM(10);uT(2),jv$1("ngTemplateOutlet",o),uT(2),yD(t.info==="translate"?a(t.label):t.label);}}function r_(e,r){e&1&&Vv$1(0,"ng-icon",21);}function n_(e,r){if(e&1&&(Hd$1(0),eM$1(1,Yx,1,1),EN(2,"async"),gv$1(3,Jx,4,5,"ng-template",null,0,SN)(5,e_,5,4,"ng-template",null,1,SN)(7,o_,5,2,"ng-template",null,2,SN)(9,r_,1,0,"ng-template",null,3,SN),$d$1()),e&2){let t,a=yM();uT(),tM$1((t=CN(2,1,a.breadcrumbs$))?1:-1,t);}}var m9=(()=>{class e{constructor(){this._breadcrumbService=g$k(se$1),this.isHandset$=g$k(n$2),this.breadcrumbs$=this._breadcrumbService.breadcrumbs$;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-breadcrumb"]],hostAttrs:[1,"block","min-w-0"],features:[cN([],[$$g({heroChevronRight:X$f})])],decls:1,vars:0,consts:[["breadCrumbFirstIcon",""],["breadCrumbEl",""],["breadCrumbElLast",""],["separator",""],[4,"transloco"],[1,"flex","items-center"],[1,"mx-auto","flex","w-full","min-w-0"],[1,"text-mspot-neutral-900/50","flex","items-center","text-sm","font-medium"],[1,"mobile-back","flex","items-center",3,"routerLink","queryParams"],["name","hero-chevron-left",1,"mr-1"],[1,"font-medium"],["role","list",1,"flex","w-full","min-w-0","gap-2"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-shrink-0"],[1,"focus-primary--rounded","text-mspot-neutral-900/30","hover:text-mspot-neutral-900/50","flex","items-center",3,"routerLink","queryParams"],[1,"flex-shrink-0","text-xl",3,"name"],[4,"ngTemplateOutlet"],[1,"focus-primary--rounded","text-mspot-neutral-900/50","hover:text-mspot-neutral-900/70","ml-2","whitespace-nowrap","text-sm","font-medium",3,"routerLink","queryParams"],[1,"min-w-0","flex-1"],[1,"flex","min-w-0","items-center"],["aria-current","page",1,"text-mspot-neutral-900/30","ml-2","cursor-default","truncate","text-sm"],["name","heroChevronRight",1,"text-mspot-neutral-900/40","flex-shrink-0","text-base"]],template:function(a,o){a&1&&gv$1(0,n_,11,3,"ng-container",4);},dependencies:[yt$a,kt$7,le$9,Ix$1,bx$1],encapsulation:2});}}return e})();function i_(e,r){if(e&1&&(ta$3(0,"div",0)(1,"div"),Vv$1(2,"mspot-breadcrumb"),Pd$1()()),e&2){let t=yM(3);uT(),BM(t.containerClass()+" flex flex-row flex-wrap lg:px-4");}}function s_(e,r){if(e&1&&eM$1(0,i_,3,2,"div",0),e&2){let t=yM(2);tM$1(t.isHandset?-1:0);}}
2737function l_(e,r){e&1&&eM$1(0,s_,1,1),e&2&&tM$1(r.length>1?0:-1);}var v9=(()=>{class e{constructor(){this._breadcrumbService=g$k(se$1),this.containerClass=g$k(u$1).containerClass,this.isHandset=false,this.breadcrumbs$=this._breadcrumbService.breadcrumbs$;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-breadcrumb"]],inputs:{isHandset:"isHandset"},decls:2,vars:3,consts:[[1,"mx-4","mb-[var(--client-breadcrumb-gap)]"]],template:function(a,o){if(a&1&&(eM$1(0,l_,1,1),EN(1,"async")),a&2){let i;tM$1((i=CN(1,1,o.breadcrumbs$))?0:-1,i);}},dependencies:[m9,bx$1],encapsulation:2});}}return e})();var d9=(()=>{class e{constructor(){this.state="close";}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-floating-banner"]],hostAttrs:[1,"bg-backgrounds-surface-raised","backdrop-blur-sm"],inputs:{link:"link"},decls:6,vars:2,consts:[["target","_blank",1,"focus-primary--rounded","flex","items-center","justify-start","p-1.5",3,"mouseenter","mouseleave","href"],["fill","none","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 998 897",1,"h-4","w-4","flex-shrink-0","text-mspot-neutral-700"],["d","M496 611.776 763.733 0H998v894H781.347V338.318L496 611.776Z","fill","currentColor"],["d","M215.789 340.351v556.14H0V1.754L231.579 0l266.667 610.526-282.457-270.175Z","fill","currentColor"],[1,"ml-1.5","overflow-hidden","whitespace-nowrap","text-xs","font-medium"]],template:function(a,o){a&1&&(jd$1(0,"a",0),Yv$1("mouseenter",function(){return o.state="open"})("mouseleave",function(){return o.state="close"}),yh$1(),jd$1(1,"svg",1),Bv$1(2,"path",2)(3,"path",3),Vd$1(),vh$1(),jd$1(4,"span",4),QM(5," Made in Memberspot "),Vd$1()()),a&2&&(zv$1("href",o.link||"https://memberspot.de",Gm$1),jv$1("@animateWidth",o.state));},styles:["[_nghost-%COMP%]{position:fixed;bottom:12px;right:12px;z-index:999;box-shadow:0 0 0 1px #0000001a,0 1px 3px #0000001a;border-radius:3px;transition:bottom .2s ease}@media only screen and (min-width:1024px){[_nghost-%COMP%]{right:24px;bottom:24px}}.shift-up[_nghost-%COMP%]{bottom:76px}@media only screen and (min-width:1024px){.shift-up[_nghost-%COMP%]{bottom:88px}}"],data:{animation:[c$1("28px","156px")]}});}}return e})();var g9=(()=>{class e{constructor(){}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275dir=mt$d({type:e,selectors:[["","mspotFooterLink",""]],hostAttrs:[1,"mx-2","block","py-2","md:mx-10"]});}}return e})();var c_=e=>["pages",e],h_=e=>["dashboards",e];function p_(e,r){if(e&1){let t=fM();ta$3(0,"a",3),Zv$1("click",function(o){sh$1(t);let i=yM();return ah$1(i.isAdmin?o.preventDefault():null)}),QM(1),Pd$1();}if(e&2){let t=yM(),a=tN(0);jv$1("href",t.link?.reference,Gm$1)("ngClass",a),uT(),Gd$1(" ",t.link?.displayname," ");}}function m_(e,r){if(e&1&&(ta$3(0,"a",1),QM(1),Pd$1()),e&2){let t=yM(),a=tN(0);jv$1("routerLink",t.isAdmin?null:fN(4,c_,t.link?.textpageID))("routerLinkActive",t.pos==="header"?"client-header-link-active-border client-header-link-active":"")("ngClass",a),uT(),Gd$1(" ",t.link?.displayname," ");}}function v_(e,r){if(e&1&&(ta$3(0,"a",2),QM(1),Pd$1()),e&2){let t=yM();jv$1("ngClass",!t.isAdmin&&t.pos==="header"?"header__link--border hover:client-header-link-active dark:text-mspot-neutral-500 flex h-[64px] items-center border-y-2 px-1 dark:hover:text-white":"")("routerLink",t.isAdmin?null:fN(4,h_,t.link?.dashboardId))("routerLinkActive",t.pos==="header"?"client-header-link-active-border client-header-link-active":""),uT(),Gd$1(" ",t.link?.displayname," ");}}var u9=(()=>{class e{constructor(){this.LinkType=Ct;}linkClasses(){let t=this.classes?[this.classes]:[];return this.pos!=="footer"&&t.push("dark:text-mspot-neutral-500 dark:hover:text-white"),t}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-link"]],inputs:{link:"link",pos:"pos",classes:"classes",isAdmin:"isAdmin"},decls:4,vars:2,consts:[["mspotSmartLink","",1,"link--inherit","focus-primary",3,"href","ngClass"],[1,"link--inherit","focus-primary",3,"routerLink","routerLinkActive","ngClass"],[1,"link--inherit",3,"ngClass","routerLink","routerLinkActive"],["mspotSmartLink","",1,"link--inherit","focus-primary",3,"click","href","ngClass"]],template:function(a,o){if(a&1&&(wD(0),eM$1(1,p_,2,3,"a",0)(2,m_,2,6,"a",1)(3,v_,2,6,"a",2)),a&2){let i;eN(o.linkClasses()),uT(),tM$1((i=o.link?.type)===o.LinkType.EXTERNAL?1:i===o.LinkType.TEXTPAGE?2:i===o.LinkType.DASHBOARD?3:-1);}},dependencies:[mx$1,kt$7,ea$1,E$7],encapsulation:2});}}return e})();function d_(e,r){if(e&1&&(ta$3(0,"div"),Vv$1(1,"mspot-link",4),Pd$1()),e&2){let t=r.$implicit;uT(),jv$1("link",t);}}function g_(e,r){if(e&1&&Vv$1(0,"mspot-social-link",3),e&2){let t=r.$implicit;jv$1("link",t);}}var w9=(()=>{class e{constructor(){this.trackById=(t,a)=>a.id;}get socialLinks(){return this._getSocialLinks(this.memberArea?.socialLinks)}trackBySocial(t,a){return a.type}_getSocialLinks(t){return t?t.filter(a=>a.url):[]}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-footer"]],hostAttrs:[1,"client-footer"],inputs:{memberArea:"memberArea"}
2737,decls:8,vars:5,consts:[[3,"ma","showSocial"],[1,"flex","flex-col","items-center","justify-center","sm:flex-row","sm:flex-wrap"],["slot","social-icons",1,"flex","flex-wrap","space-x-6"],[3,"link"],["mspotFooterLink","","pos","footer",3,"link"]],template:function(a,o){a&1&&(ta$3(0,"lib-footer",0)(1,"div",1),oM(2,d_,2,1,"div",null,rM),EN(4,"objArr"),Pd$1(),ta$3(5,"div",2),oM(6,g_,1,1,"mspot-social-link",3,o.trackBySocial,true),Pd$1()()),a&2&&(jv$1("ma",o.memberArea)("showSocial",!!o.socialLinks.length),uT(2),iM(wN(4,2,o.memberArea?.footerLinks,"priority")),uT(4),iM(o.socialLinks));},dependencies:[j$n,g9,Y7,u9,$t$2],encapsulation:2});}}return k0([_r$5,F0("design:type",Function),F0("design:paramtypes",[Array]),F0("design:returntype",void 0)],e.prototype,"_getSocialLinks",null),e})();var u_=["*"],w_=()=>({});function f_(e,r){if(e&1&&(ta$3(0,"a",1),Vv$1(1,"ng-icon",2),ta$3(2,"span",3),QM(3),Pd$1()()),e&2){let t=yM(),a=yM().$implicit;jv$1("routerLink",t[t.length-2].routeLink)("queryParams",t[t.length-2].queryParams||dN(3,w_)),uT(3),Gd$1(" ",t[t.length-2].info?a(t[t.length-2].label):t[t.length-2].label," ");}}function C_(e,r){e&1&&EM(0);}function x_(e,r){e&1&&eM$1(0,f_,4,4,"a",1)(1,C_,1,0),e&2&&tM$1(r.length>1?0:1);}function __(e,r){if(e&1&&(Hd$1(0),eM$1(1,x_,2,1),EN(2,"async"),$d$1()),e&2){let t,a=yM();uT(),tM$1((t=CN(2,1,a.breadcrumbs$))?1:-1,t);}}var f9=(()=>{class e{constructor(){this.breadcrumbs$=g$k(se$1).breadcrumbs$;}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-header-mobile-back-icon"]],hostAttrs:[1,"min-w-0"],ngContentSelectors:u_,decls:1,vars:0,consts:[[4,"transloco"],[1,"-ml-1","flex","items-center","gap-1.5",3,"routerLink","queryParams"],["name","hero-chevron-left",1,"text-xl"],[1,"truncate","text-sm","font-medium"]],template:function(a,o){a&1&&(DM(),gv$1(0,__,3,3,"ng-container",0));},dependencies:[kt$7,le$9,bt$b,yt$a,bx$1],encapsulation:2});}}return e})();var b_=[[["","slot","updateavailable"]],[["","slot","admintoolbartoggle"]],[["","slot","darkthemetoggle"]],[["","slot","clientaiassistant"]],[["","slot","profile"]]],M_=["[slot=updateAvailable]","[slot=adminToolbarToggle]","[slot=darkThemeToggle]","[slot=clientAiAssistant]","[slot=profile]"];function A_(e,r){if(e&1&&Vv$1(0,"img",7),e&2){yM();let t=tN(1);jv$1("src",t.customView.addLogoUrl,Gm$1);}}function y_(e,r){e&1&&Vv$1(0,"mspot-chat-widget-container",9),e&2&&jv$1("skipWidget",true);}function V_(e,r){e&1&&Vv$1(0,"mspot-notification-view");}function z_(e,r){if(e&1){let t=fM();Hd$1(0),wD(1),Vv$1(2,"div",1),ta$3(3,"div",2)(4,"div",3)(5,"mspot-header-mobile-back-icon",4)(6,"button",5),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.toggleNav.emit())}),Vv$1(7,"img",6),eM$1(8,A_,1,1,"img",7),Pd$1()(),ta$3(9,"div",8),EM(10),EM(11,1),EM(12,2),EM(13,3),eM$1(14,y_,1,1,"mspot-chat-widget-container",9),eM$1(15,V_,1,0,"mspot-notification-view"),EM(16,4),ta$3(17,"button",10),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.toggleNav.emit())}),Vv$1(18,"ng-icon",11),Pd$1()()()(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT();let o=eN(a.ma());uT(),iD("header-mobile-spacer--admin",a.adminToolbarVisible())("client-body-bg",o?.sideNavEnabled)("client-header-bg",!o?.sideNavEnabled),uT(),iD("breadcrumb-new--offset-admin",a.adminToolbarVisible()),jv$1("ngClass",o?.sideNavEnabled?"client-header-bg--sidenav":"client-header-bg/80"),uT(3),Pv$1("aria-label",t("client.header.openNavigationMenu")),uT(),jv$1("src",a.logo,Gm$1),uT(),tM$1(o?.customView?.addLogo&&o.customView.addLogoUrl?8:-1),uT(6),tM$1(a.memberChatEnabled()?14:-1),uT(),tM$1(a.notificationsEnabled()?15:-1);}}var C9=(()=>{class e{constructor(){this.isHandset$=g$k(gt$2),this.ma=X8(null),this.user=X8(null),this.isDarkTheme=X8(false),this.isDemoUser=X8(false),this.adminToolbarVisible=X8(false),this.memberChatEnabled=X8(false),this.spacesActive=X8(false),this.notificationsEnabled=X8(false),this.goToLibrary=J8(),this.toggleNav=J8(),this.defaultAppIcon=S$7,this.defaultProfileImg=R$6;}get appIcon(){return this.ma()?.appIcon}get logo(){return this.getLogo(this.isDarkTheme(),this.ma())}getLogo(t,a){let o=a?.headerLogoUrl||a?.logoUrl||S$7,i=a?.customView?.darkLogoUrl||o;return t?i:o}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-header-mobile"]],inputs:{ma:[1,"ma"],user:[1,"user"],isDarkTheme:[1,"isDarkTheme"],isDemoUser:[
27371,"isDemoUser"],adminToolbarVisible:[1,"adminToolbarVisible"],memberChatEnabled:[1,"memberChatEnabled"],spacesActive:[1,"spacesActive"],notificationsEnabled:[1,"notificationsEnabled"]},outputs:{goToLibrary:"goToLibrary",toggleNav:"toggleNav"},ngContentSelectors:M_,decls:1,vars:0,consts:[[4,"transloco"],[1,"header-mobile-spacer"],["mspotScrolledClass","",1,"breadcrumb-new","header-blur","header-divider","z-20","flex","items-center","px-4",3,"ngClass"],[1,"flex","min-w-0","flex-1","items-center","justify-between","gap-2",2,"height","36px"],[1,"client-header-icon","w-full","dark:text-mspot-neutral-500"],[1,"mobile-back","focus-primary--rounded","flex","size-full","items-center","gap-4","@container",3,"click"],["alt","Logo","mspotImgLoadErr","",1,"max-h-6","flex-shrink-0","object-contain",3,"src"],["alt","Logo",1,"hidden","max-h-6","min-w-0","max-w-full","object-contain","@[8rem]:block",3,"src"],[1,"flex","items-center","gap-5"],[3,"skipWidget"],["aria-label","Menu","data-cy","clientBreadcrumbMenuButton",1,"client-header-icon","focus-primary--rounded","flex","items-center","justify-center","dark:text-mspot-neutral-500","dark:hover:text-mspot-neutral-600",3,"click"],["name","hero-bars-3",1,"text-2xl"]],template:function(a,o){a&1&&(DM(b_),gv$1(0,z_,19,15,"ng-container",0));},dependencies:[le$9,D$a,f9,yr,mx$1,yt$a,Ar,ya],styles:['@charset "UTF-8";.header-mobile-spacer[_ngcontent-%COMP%]{height:54px}.header-mobile-spacer--admin[_ngcontent-%COMP%]{height:90px}.breadcrumb-new[_ngcontent-%COMP%]{position:fixed;top:0;box-sizing:border-box;height:54px;width:100%;z-index:3;transform:translateY(0);transition-property:transform;transition-timing-function:ease-in-out}.breadcrumb-new.breadcrumb-new--offset-admin[_ngcontent-%COMP%]{top:36px}html[data-capacitor-platform=ios][_nghost-%COMP%] .header-mobile-spacer[_ngcontent-%COMP%], html[data-capacitor-platform=ios] [_nghost-%COMP%] .header-mobile-spacer[_ngcontent-%COMP%]{height:calc(54px + var(--mspot-safe-area-top, max(env(safe-area-inset-top, 0px), 24px)))}html[data-capacitor-platform=ios][_nghost-%COMP%] .header-mobile-spacer--admin[_ngcontent-%COMP%], html[data-capacitor-platform=ios] [_nghost-%COMP%] .header-mobile-spacer--admin[_ngcontent-%COMP%]{height:calc(90px + var(--mspot-safe-area-top, max(env(safe-area-inset-top, 0px), 24px)))}html[data-capacitor-platform=ios][_nghost-%COMP%] .breadcrumb-new[_ngcontent-%COMP%], html[data-capacitor-platform=ios] [_nghost-%COMP%] .breadcrumb-new[_ngcontent-%COMP%]{padding-top:var(--mspot-safe-area-top, max(env(safe-area-inset-top, 0px), 24px));height:calc(54px + var(--mspot-safe-area-top, max(env(safe-area-inset-top, 0px), 24px)));background-color:var(--client-header-bg);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px)}html[data-capacitor-platform=ios][_nghost-%COMP%] .breadcrumb-new.breadcrumb-new--offset-admin[_ngcontent-%COMP%], html[data-capacitor-platform=ios] [_nghost-%COMP%] .breadcrumb-new.breadcrumb-new--offset-admin[_ngcontent-%COMP%]{top:calc(36px + var(--mspot-safe-area-top, max(env(safe-area-inset-top, 0px), 24px)));padding-top:0;height:54px}html[data-capacitor-platform=ios]:has(body.isDarkTheme)[_nghost-%COMP%] .breadcrumb-new[_ngcontent-%COMP%], html[data-capacitor-platform=ios]:has(body.isDarkTheme) [_nghost-%COMP%] .breadcrumb-new[_ngcontent-%COMP%]{background-color:var(--client-header-bg-dark-solid, #171717)}.mobile-back[_ngcontent-%COMP%], .mobile-back[_ngcontent-%COMP%]:hover, .mobile-back[_ngcontent-%COMP%]:visited{color:inherit}.app-icon--wrapper[_ngcontent-%COMP%]{height:45px;width:45px;background:#fff;clip-path:url(#squircle);display:flex;justify-content:center;align-items:center}.app-icon--shadow[_ngcontent-%COMP%]{filter:drop-shadow(-1px 1px 3px rgba(0,0,0,.2))}svg.defs[_ngcontent-%COMP%]{position:absolute;width:0;height:0}.wrapper[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;clip-path:url(#squircle)}.squircle[_ngcontent-%COMP%]{width:45px;height:45px;background:#fff;background-size:cover;background-position:center;clip-path:url(#squircle)}']});}}return k0([_r$5,F0("design:type",Function),F0("design:paramtypes",[Boolean,Object]),F0("design:returntype",void 0)],e.prototype,"getLogo",null),e})();var S_=()=>["user","settings"],H_=()=>["user","profile"],L_=()=>["user","devices"];function T_(e,r){if(e&1){let t=fM();ta$3(0,"button",8),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.emit("installPwa"))}),Vv$1(1,"ng-icon",9),ta$3(2,"span"),QM(3),Pd$1()();}if(e&2){let t=yM().$implicit;uT(3),yD(t("layout.installApp"));}}function B_(e,r){if(e&1){let t=fM();ta$3(0,"a",4),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.close())}),Vv$1(1,"ng-icon",10),ta$3(2,"span"),QM(3),Pd$1()();}if(e&2){let t=yM().$implicit;jv$1("routerLink",dN(2,H_)),uT(3),yD(t("profile.profile"));}}function k_(e,r){if(e&1){let t=fM();ta$3(0,"button",8),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.emit("openProfile"))}),Vv$1(1,"ng-icon",10),ta$3(2,"span"),QM(3),Pd$1()();}if(e&2){let t=yM().$implicit;uT(3),yD(t("profile.profile"));}}function E_(e,r){if(e&1){let t=fM();ta$3(0,"a",4),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.close())}),Vv$1(1,"ng-icon",11),ta$3(2,"span"),QM(3),Pd$1()();}if(e&2){let t=yM().$implicit;jv$1("routerLink",dN(2,L_)),uT(3),yD(t("profile.devicelist"));}}function D_(e,r){if(e&1){let t=fM();ta$3(0,"button",8),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.emit("toggleTheme"))}),Vv$1(1,"ng-icon",12),ta$3(2,"span"),QM(3),Pd$1()();}if(e&2){let t=yM(2);uT(),jv$1("name",t.data.isDarkTheme?"hero-sun":"hero-moon"),uT(2),yD(t.data.isDarkTheme?"Light Mode":"Dark Mode");}}function F_(e,r){if(e&1){let t=fM();ta$3(0,"button",8),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.emit("switchSchool"))}),Vv$1(1,"ng-icon",13),ta$3(2,"span"),QM(3),Pd$1()();}if(e&2){let t=yM().$implicit;uT(3),yD(t("profile.switchSchool"));}}function I_(e,r){if(e&1){let t=fM();ta$3(0,"button",14),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.emit("logout"))}),Vv$1(1,"ng-icon",15),ta$3(2,"span"),QM(3),Pd$1()();}if(e&2){let t=yM().$implicit;uT(3),yD(t("auth.logout"));}}function N_(e,r){if(e&1&&(ta$3(0,"button",7),Vv$1(1,"ng-icon",15),ta$3(2,"span"),QM(3),Pd$1()()),e&2){let t=yM().$implicit;uT(3),yD(t("auth.logout"));}}function P_(e,r){if(e&1){let t=fM();Hd$1(0),Vv$1(1,"mspot-bottom-sheet-handle"),ta$3(2,"div",1),eM$1(3,T_,4,1,"button",2),eM$1(4,B_,4,3,"a",3)(5,k_,4,1,"button",2),ta$3(6,"a",4),Zv$1("click",function(){sh$1(t);let o=yM();return ah$1(o.close())}),Vv$1(7,"ng-icon",5),ta$3(8,"span"),QM(9),Pd$1()(),eM$1(10,E_,4,3,"a",3),eM$1(11,D_,4,2,"button",2),eM$1(12,F_,4,1,"button",2),eM$1(13,I_,4,1,"button",6)(14,N_,4,1,"button",7),Pd$1(),$d$1();}if(e&2){let t=r.$implicit,a=yM();uT(3),tM$1(a.data.showInstallPwa?3:-1),uT(),tM$1(a.data.spacesActive?4:5),uT(2),jv$1("routerLink",dN(8,S_)),uT(3),yD(t("profile.settings")),uT(),tM$1(a.data.showFingerprint?10:-1),uT(),tM$1(a.data.canSwitchTheme?11:-1),uT(),tM$1(a.data.showSwitchArea?12:-1),uT(),tM$1(a.data.isCapacitor?13:14);}}var x9=(()=>{class e{constructor(){this.bottomSheetRef=g$k(X$b),this.data=g$k(Dn$5);}emit(t){this.bottomSheetRef.dismiss(t);}close(){this.bottomSheetRef.dismiss();}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-client-profile-menu-sheet"]],hostAttrs:[1,"block","pb-2"],decls:1,vars:0,consts:[[4,"transloco"],[1,"flex","flex-col","text-base","font-medium","text-text-default"],["type","button",1,"flex","items-center","gap-3","px-4","py-3","active:bg-mspot-neutral-100"],[1,"flex","items-center","gap-3","px-4","py-3","active:bg-mspot-neutral-100",3,"routerLink"],[1,"flex","items-center","gap-3","px-4","py-3","active:bg-mspot-neutral-100",3,"click","routerLink"],["name","hero-cog-8-tooth",1,"text-xl"],["type","button","data-cy","clientLogoutButton",1,"flex","items-center","gap-3","px-4","py-3","active:bg-mspot-neutral-100"],["type","button","mspotSignOut","","data-cy","clientLogoutButton",1,"flex","items-center","gap-3","px-4","py-3","active:bg-mspot-neutral-100"],["type","button",1,"flex","items-center","gap-3","px-4","py-3","active:bg-mspot-neutral-100",3,"click"],["name","custom-install-app",1,"text-xl"],["name","hero-identification",1,"text-xl"],["name","hero-computer-desktop",1,"text-xl"],[1,"text-xl",3,"name"],["name","heroUserGroup",1,"text-xl"],["type","button","data-cy","clientLogoutButton",1,"flex","items-center","gap-3","px-4","py-3","active:bg-mspot-neutral-100",3,"click"],["name","hero-arrow-left-on-rectangle",1,"text-xl"]],template:function(a,o){a&1&&gv$1(0,P_,15,9,"ng-container",0);},dependencies:[Zt$6,le$9,kt$7,yt$a,D$3],encapsulation:2});}}return e})();var hi=(()=>{class e{constructor(){this._destroyRef=g$k(de$b),this._overlay=g$k(Ge$8),this._loggingService=g$k($E),this._gamificationCelebrationService=g$k(Rh),this._levelUpCelebrationComponent=null,this._levelUpCelebrationOverlayRef=null,this._levelUpCelebrationComponentRef=null,this._isDestroyed=false,Es$3(()=>{let t=this._gamificationCelebrationService.currentCelebration();if(!t){this._disposeLevelUpCelebrationOverlay();return}this._showLevelUpCelebration(t).catch(a=>{this._loggingService.error("[Shell] Failed to render level-up celebration",a);});}),this._destroyRef.onDestroy(()=>{this._isDestroyed=true,this._disposeLevelUpCelebrationOverlay();});}async _showLevelUpCelebration(t){if(this._isDestroyed)return;let a=await this._dynamicallyLoadLevelUpCelebration();if(this._isDestroyed||!a)return;let o=this._gamificationCelebrationService.currentCelebration();this._isDestroyed||!o||o._id!==t._id||(this._levelUpCelebrationOverlayRef||(this._levelUpCelebrationOverlayRef=this._overlay.create({positionStrategy:this._overlay.position().global()})),this._levelUpCelebrationOverlayRef.hasAttached()||(this._levelUpCelebrationComponentRef=this._levelUpCelebrationOverlayRef.attach(new At$6(a))),this._levelUpCelebrationComponentRef?.setInput("notification",t),this._levelUpCelebrationComponentRef?.setInput("dismissHandler",()=>this._gamificationCelebrationService.dismissCurrentCelebration()));}_disposeLevelUpCelebrationOverlay(){this._levelUpCelebrationComponentRef=null,this._levelUpCelebrationOverlayRef?.dispose(),this._levelUpCelebrationOverlayRef=null;}async _dynamicallyLoadLevelUpCelebration(){if(this._levelUpCelebrationComponent)return this._levelUpCelebrationComponent;try{let t=await import('./chunk-DpFG4YoJ.js');return this._levelUpCelebrationComponent=t.LevelUpCelebrationComponent,this._levelUpCelebrationComponent}catch(t){return this._loggingService.error("[Shell] Failed to load level-up celebration component",t),null}}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();var R_=["mainContentArea"],O_=()=>["user","settings"],q_=(e,r,t)=>({overlay:e,handset:r,collapsed:t}),$_=()=>[],U_=(e,r)=>({"client-header-padding":e,"px-[3.75rem] lg:max-w-[30rem] xl:max-w-[45.875rem]":r}),j_=()=>["user","profile"],G_=()=>["user","bookmarks"],Q_=()=>["user","todos"],Z_=()=>["user","devices"],W_=e=>({position:"side",collapsed:e});function K_(e,r){if(e&1){let t=fM();ta$3(0,"appc-admin-toolbar",23),Zv$1("visibilityChanged",function(){sh$1(t);let o=yM(2);return ah$1(o.toggleAdminToolbar())}),Pd$1();}if(e&2){let t=yM(2);jv$1("isHandset",t.isHandset())("adminToolbarVisible",t.adminToolbarVisible());}}function X_(e,r){e&1&&$v$1(0);}function Y_(e,r){if(e&1&&(ta$3(0,"span",33),QM(1),Pd$1()),e&2){let t=yM(6);uT(),yD(t.memberArea()?.schoolName);}}function J_(e,r){if(e&1&&(ta$3(0,"span",31)(1,"span",32),QM(2),Pd$1(),eM$1(3,Y_,2,1,"span",33),Pd$1(),Vv$1(4,"ng-icon",34)),e&2){let t=yM(5);
2737uT(2),yD(t.user()?.displayName),uT(),tM$1(t.memberArea()?.schoolName?3:-1);}}function tb(e,r){if(e&1&&(ta$3(0,"mspot-sidebar-footer",27)(1,"button",28),Zv$1("click",function(a){return a.stopPropagation()}),ta$3(2,"span",29),Vv$1(3,"img",30),Pd$1(),eM$1(4,J_,5,2),Pd$1()()),e&2){let t=yM().collapsed,a=yM(2).$implicit,o=TM(16),i=yM();jv$1("showDivider",i.menuOverflows()),uT(),iD("justify-center",t)("pr-1",t)("pr-2",!t),jv$1("matMenuTriggerFor",o)("matTooltip",i.user()?.displayName||"")("matTooltipDisabled",!t),Pv$1("aria-label",a("client.header.profileMenu")),uT(2),jv$1("src",i.user()?.photoURL||i.defaultProfileImg,Gm$1),uT(),tM$1(t?-1:4);}}function eb(e,r){if(e&1){let t=fM();ta$3(0,"div",24),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.closeNav())}),ta$3(1,"div",25),gv$1(2,X_,1,0,"ng-container",26),Pd$1(),eM$1(3,tb,5,13,"mspot-sidebar-footer",27),Pd$1();}if(e&2){let t=r.overlay,a=r.handset,o=r.collapsed;yM(2);let i=TM(31),d=yM();iD("client-sidemenu-dark",d.sideMenuIsDark()),uT(2),jv$1("ngTemplateOutlet",i)("ngTemplateOutletContext",hN(5,q_,t,a,o)),uT(),tM$1(d.headerless()&&!a?3:-1);}}function ab(e,r){if(e&1&&(ta$3(0,"mspot-collapsible-sidebar",7),gv$1(1,eb,4,9,"ng-template"),Pd$1()),e&2){let t=yM(2);jv$1("useRail",true)("topOffsetPx",t.adminToolbarVisible()?36:0);}}function ob(e,r){e&1&&$v$1(0);}function rb(e,r){if(e&1&&(ta$3(0,"div",36),gv$1(1,ob,1,0,"ng-container",46),Pd$1()),e&2){yM(2);let t=TM(33),a=yM();jv$1("ngClass",a.memberArea().sideNavEnabled?"mr-6":""),uT(),jv$1("ngTemplateOutlet",t);}}function nb(e,r){if(e&1&&(Hd$1(0,37),Vv$1(1,"mspot-community-header-navigation",47),$d$1()),e&2){yM(2);let t=tN(1),a=tN(2),o=yM();uT(),jv$1("ngClass",pN(8,U_,o.lowerBarVisible(),!o.lowerBarVisible()))("navItems",o.sideNavItems())("hasHome",o.hasHome())("homeLink",o.homeLink())("memberArea",o.memberArea())("spacesActive",o.spacesActive())("gamificationEnabled",t)("eventPlanEnabled",a);}}function ib(e,r){if(e&1){let t=fM();ta$3(0,"button",48),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.reload())}),Vv$1(1,"ng-icon",49),Pd$1();}if(e&2){let t=yM(2).$implicit;jv$1("matTooltip",nN(t("layout.updateAvailable")));}}function sb(e,r){e&1&&$v$1(0);}function lb(e,r){if(e&1&&gv$1(0,sb,1,0,"ng-container",50),e&2){let t=yM(3);jv$1("ngComponentOutlet",t.aiAssistantCtaComponent());}}function cb(e,r){if(e&1){let t=fM();ta$3(0,"button",51),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.toggleAdminToolbar())}),Vv$1(1,"ng-icon",52),Pd$1();}if(e&2){let t=yM(2).$implicit,a=yM();jv$1("matTooltip",a.adminToolbarVisible()?t("profile.hideAdminToolbar"):t("profile.showAdminToolbar"));}}function hb(e,r){if(e&1&&Vv$1(0,"mspot-notification-view",42),e&2){let t=yM(2).$implicit;jv$1("matTooltip",t("text.notifications"));}}function pb(e,r){if(e&1&&Vv$1(0,"mspot-chat-widget-container",43),e&2){let t=yM(2).$implicit;jv$1("matTooltip",t("text.messages"));}}function mb(e,r){if(e&1){let t=fM();ta$3(0,"mspot-header",35),Zv$1("goToLibrary",function(){sh$1(t);let o=yM(2);return ah$1(o.goToLibrary())}),eM$1(1,rb,2,2,"div",36),eM$1(2,nb,2,11,"ng-container",37),eM$1(3,ib,2,2,"button",38),Vv$1(4,"mspot-general-search-input",39),ta$3(5,"div",40),eM$1(6,lb,1,1,"ng-container"),Pd$1(),eM$1(7,cb,2,1,"button",41),eM$1(8,hb,1,1,"mspot-notification-view",42),eM$1(9,pb,1,1,"mspot-chat-widget-container",43),ta$3(10,"button",44),Vv$1(11,"img",45),Pd$1()();}if(e&2){let t=yM().$implicit,a=TM(16),o=yM();jv$1("ma",o.memberArea())("sideNavEnabled",o.memberArea().sideNavEnabled)("isHandset",o.isHandset())("adminToolbarVisible",o.adminToolbarVisible())("lowerBarVisible",o.lowerBarVisible())("fixedSideMenu",true)("isFullWidth",o.isFullWidth())("ngClass",dN(19,$_)),uT(),tM$1(o.memberArea().sideNavEnabled?-1:1),uT(),tM$1(o.memberArea().sideNavEnabled?-1:2),uT(),tM$1(o.updateAvailable()?3:-1),uT(),jv$1("canSearchTranscriptions",o.memberArea()?.canSearchTranscriptions),uT(2),tM$1(o.isAiAssistantEnabled()&&o.showAiInHeader()?6:-1),uT(),tM$1(o.isDemoUser()||o.showAdminToolbar()?7:-1),uT(),tM$1(o.notificationsEnabled()?8:-1),uT(),tM$1(o.memberChatEnabled()?9:-1),uT(),jv$1("matMenuTriggerFor",a),Pv$1("aria-label",t("client.header.profileMenu")),uT(
2737),jv$1("src",o.user()?.photoURL||o.defaultProfileImg,Gm$1);}}function vb(e,r){if(e&1){let t=fM();ta$3(0,"button",58),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.reload())}),Vv$1(1,"ng-icon",49),Pd$1();}}function db(e,r){if(e&1){let t=fM();ta$3(0,"button",59),Zv$1("click",function(){sh$1(t);let o=yM(3);return ah$1(o.toggleAdminToolbar())}),Vv$1(1,"ng-icon",52),Pd$1();}}function gb(e,r){e&1&&$v$1(0);}function ub(e,r){if(e&1&&gv$1(0,gb,1,0,"ng-container",50),e&2){let t=yM(3);jv$1("ngComponentOutlet",t.aiAssistantCtaComponent());}}function wb(e,r){if(e&1){let t=fM();ta$3(0,"appc-header-mobile",53),Zv$1("goToLibrary",function(){sh$1(t);let o=yM(2);return ah$1(o.goToLibrary())})("toggleNav",function(){sh$1(t);let o=yM(2);return ah$1(o.toggleNav())}),eM$1(1,vb,2,0,"button",54),eM$1(2,db,2,0,"button",55),ta$3(3,"button",56),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.openProfileSheet())}),Vv$1(4,"img",45),Pd$1(),ta$3(5,"div",57),eM$1(6,ub,1,1,"ng-container"),Pd$1()();}if(e&2){let t=yM().$implicit,a=yM();jv$1("ma",a.memberArea())("user",a.user())("spacesActive",a.spacesActive())("isDemoUser",a.isDemoUser())("isDarkTheme",a.isDarkTheme())("memberChatEnabled",a.memberChatEnabled())("adminToolbarVisible",a.adminToolbarVisible())("notificationsEnabled",a.notificationsEnabled()),uT(),tM$1(a.updateAvailable()?1:-1),uT(),tM$1(a.isDemoUser()||a.showAdminToolbar()?2:-1),uT(),Pv$1("aria-label",t("client.header.profileMenu")),uT(),jv$1("src",a.user()?.photoURL||a.defaultProfileImg,Gm$1),uT(2),tM$1(a.isAiAssistantEnabled()&&a.showAiInHeader()?6:-1);}}function fb(e,r){if(e&1&&Vv$1(0,"appc-footer",15),e&2){let t=yM(2);jv$1("memberArea",t.memberArea());}}function Cb(e,r){if(e&1){let t=fM();ta$3(0,"button",60),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.installPwa())}),Vv$1(1,"ng-icon",61),QM(2),Pd$1();}if(e&2){let t=yM().$implicit;uT(2),Gd$1(" ",t("layout.installApp")," ");}}function xb(e,r){if(e&1&&(ta$3(0,"a",17),Vv$1(1,"ng-icon",62),QM(2),Pd$1()),e&2){let t=yM().$implicit;jv$1("routerLink",dN(2,j_)),uT(2),Gd$1(" ",t("profile.profile")," ");}}function _b(e,r){if(e&1){let t=fM();ta$3(0,"button",60),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.openProfileDialog())}),Vv$1(1,"ng-icon",62),QM(2),Pd$1();}if(e&2){let t=yM().$implicit;uT(2),Gd$1(" ",t("profile.profile")," ");}}function bb(e,r){if(e&1&&(ta$3(0,"a",17),Vv$1(1,"ng-icon",63),QM(2),Pd$1(),ta$3(3,"a",17),Vv$1(4,"ng-icon",64),QM(5),Pd$1()),e&2){let t=yM().$implicit;jv$1("routerLink",dN(4,G_)),uT(2),Gd$1(" ",t("breadcrumbs.bookmarks")," "),uT(),jv$1("routerLink",dN(5,Q_)),uT(2),Gd$1(" ",t("breadcrumbs.todos")," ");}}function Mb(e,r){if(e&1&&(ta$3(0,"a",17),Vv$1(1,"ng-icon",65),QM(2),Pd$1()),e&2){let t=yM().$implicit;jv$1("routerLink",dN(2,Z_)),uT(2),Gd$1(" ",t("profile.devicelist")," ");}}function Ab(e,r){if(e&1){let t=fM();ta$3(0,"button",66),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.toggleTheme.emit(!o.isDarkTheme()))}),Vv$1(1,"ng-icon",67),QM(2),Pd$1();}if(e&2){let t=yM(2);uT(),jv$1("name",t.isDarkTheme()?"hero-sun":"hero-moon"),uT(),Gd$1(" ",t.isDarkTheme()?"Light Mode":"Dark Mode"," ");}}function yb(e,r){if(e&1){let t=fM();ta$3(0,"button",60),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.switchSchool())}),Vv$1(1,"ng-icon",68),QM(2),Pd$1();}if(e&2){let t=yM().$implicit;uT(2),Gd$1(" ",t("profile.switchSchool")," ");}}function Vb(e,r){if(e&1&&(ta$3(0,"button",20),Vv$1(1,"ng-icon",69),QM(2),Pd$1()),e&2){let t=yM().$implicit;uT(2),Gd$1(" ",t("auth.logout")," ");}}function zb(e,r){e&1&&Vv$1(0,"ng-icon",70);}function Sb(e,r){e&1&&$v$1(0);}function Hb(e,r){if(e&1){let t=fM();ta$3(0,"button",79),Zv$1("click",function(){sh$1(t);let o=yM(4);return ah$1(o.switchSchool())}),Vv$1(1,"ng-icon",80),Pd$1();}if(e&2){let t=yM(3).$implicit;jv$1("matTooltip",t("profile.switchSchool")),Pv$1("aria-label",t("profile.switchSchool"));}}function Lb(e,r){if(e&1&&Vv$1(0,"mspot-notification-view",81),e&2){let t=yM(4).$implicit;jv$1("fill",true)("matTooltip",t("text.notifications"));}}function Tb(e,r){if(e&1&&Vv$1(0,"mspot-chat-widget-container",81),e&2){let t=yM(4).$implicit;jv$1("fill",true)("matTooltip",t("text.messages"));}}function Bb(e,r){e&1&&$v$1(0);}function kb(e,r){if(e&1&&gv$1(0,Bb,1,0,"ng-container",50),e&2){let t=yM(5);jv$1("ngComponentOutlet",t.aiAssistantCtaComponent());}}function Eb(e,r){if(e&1){let t=fM();ta$3(0,"button",83),Zv$1("click",function(){sh$1(t);let o=yM(5);return ah$1(o.toggleAdminToolbar())}),Vv$1(1,"ng-icon",84),Pd$1();}if(e&2){let t=yM(4).$implicit,a=yM();jv$1("matTooltip",a.adminToolbarVisible()?t("profile.hideAdminToolbar"):t("profile.showAdminToolbar"));}}function Db(e,r){if(e&1&&(eM$1(0,Lb,1,2,"mspot-notification-view",81),eM$1(1,Tb,1,2,"mspot-chat-widget-container",81),eM$1(2,kb,1,1,"ng-container"),eM$1(3,Eb,2,1,"button",82)),e&2){let t=yM(4);tM$1(t.notificationsEnabled()?0:-1),uT(),tM$1(t.memberChatEnabled()?1:-1),uT(),tM$1(t.isAiAssistantEnabled()&&t.showAiInHeader()?2:-1),uT(),tM$1(t.isDemoUser()||t.showAdminToolbar()?3:-1);}}function Fb(e,r){if(e&1&&(ta$3(0,"div",77),Zv$1("click",function(a){return a.stopPropagation()}),eM$1(1,Hb,2,2,"button",78),eM$1(2,Db,4,4),Pd$1()),e&2){let t=yM(),a=t.handset,o=t.collapsed,i=yM(2);iD("flex-col",o),uT(),tM$1(i.showSwitchAreaMenu()?1:-1),uT(),tM$1(i.headerless()&&!a?2:-1);}}function Ib(e,r){if(e&1&&Vv$1(0,"mspot-general-search-input",75),e&2){let t=yM().collapsed,a=yM(2);jv$1("compact",true)("collapsed",t)("canSearchTranscriptions",a.memberArea()?.canSearchTranscriptions);}}function Nb(e,r){if(e&1){let t=fM();ta$3(0,"div",71)(1,"div",72)(2,"div",73),gv$1(3,Sb,1,0,"ng-container",26),Pd$1(),eM$1(4,Fb,3,4,"div",74),Pd$1(),eM$1(5,Ib,1,3,"mspot-general-search-input",75),ta$3(6,"mspot-sidemenu",76),Zv$1("overflows",function(o){sh$1(t);let i=yM(2);return ah$1(i.menuOverflows.set(o))}),Pd$1()();}if(e&2){let t=r.overlay,a=r.handset,o=r.collapsed;yM();let i=TM(33),d=yM();uT(),jv$1("ngClass",o?"flex flex-col items-center gap-3":"flex items-center justify-between gap-2"),uT(),jv$1("ngClass",o?"flex w-full justify-center":"flex min-w-0 max-w-[180px] items-center 2xl:max-w-[220px]"),uT(),jv$1("ngTemplateOutlet",i)("ngTemplateOutletContext",fN(24,W_,o)),uT(),tM$1(d.showSwitchAreaMenu()||d.headerless()&&!a?4:-1),uT(),tM$1(d.headerless()||t?5:-1),uT(),jv$1("items",d.sideNav())("isUserModerator",d.hasUserModeratedSpacers())("hasStartPage",d.hasHome())("homeLink",d.homeLink())("space
2737sActive",d.spacesActive())("gamificationEnabled",d.gamificationEnabled())("eventPlanEnabled",d.eventPlanEnabled())("personalGroupLabel",d.memberArea()?.customView?.personalGroupLabel)("contentGroupLabel",d.memberArea()?.customView?.contentGroupLabel)("startPageLink",d.memberArea()?.customView?.startPageLink)("communityTitle",d.memberArea()?.customView?.spacesLink)("myCoursesTitle",d.memberArea()?.customView?.myTrainingsLink)("defaultPortalsName",d.memberArea()?.customView?.defaultPortalsName)("defaultAgentsName",d.memberArea()?.customView?.defaultAgentsName)("hidePortalsOverview",d.memberArea()?.customView?.hidePortalsOverview??false)("hideAgentsOverview",d.memberArea()?.customView?.hideAgentsOverview??false)("currentTheme",d.memberArea()?.theme)("isSideNavEnabled",d.memberArea()?.sideNavEnabled??false);}}function Pb(e,r){if(e&1&&Vv$1(0,"img",88)(1,"img",89),e&2){let t=yM(3);jv$1("src",t.logo(),Gm$1),uT(),jv$1("src",t.logoDark(),Gm$1);}}function Rb(e,r){if(e&1&&Vv$1(0,"img",90)(1,"img",91),e&2){let t=yM().position,a=yM(2);jv$1("src",t==="side"?a.sidebarLogo():a.logo(),Gm$1)("ngClass",t==="side"?"h-8 max-w-full object-contain":"h-8 2xl:h-10"),uT(),jv$1("src",a.logoDark(),Gm$1)("ngClass",t==="side"?"h-8 max-w-full object-contain":"h-8 2xl:h-10");}}function Ob(e,r){if(e&1&&Vv$1(0,"img",87),e&2){let t=yM(3);jv$1("src",t.memberArea().customView.addLogoUrl,Gm$1);}}function qb(e,r){if(e&1){let t=fM();ta$3(0,"div",85)(1,"button",86),Zv$1("click",function(){sh$1(t);let o=yM(2);return ah$1(o.goToLibrary())}),eM$1(2,Pb,2,2)(3,Rb,2,4),Pd$1(),eM$1(4,Ob,1,1,"img",87),Pd$1();}if(e&2){let t=r.position,a=r.collapsed,o=yM().$implicit,i=yM();uT(),Pv$1("aria-label",o("client.header.backToOverview")),uT(),tM$1(t==="side"&&a?2:3),uT(2),tM$1(t!=="side"&&i.memberArea()?.customView?.addLogo&&i.memberArea().customView.addLogoUrl?4:-1);}}function $b(e,r){if(e&1&&Vv$1(0,"appc-floating-banner",92),e&2){let t=yM(2);iD("shift-up",t.isAiAssistantEnabled()&&!t.showAiInHeader()),jv$1("link",t.memberArea().refLink);}}function Ub(e,r){e&1&&$v$1(0);}function jb(e,r){if(e&1&&gv$1(0,Ub,1,0,"ng-container",50),e&2){let t=yM(2);jv$1("ngComponentOutlet",t.aiAssistantCtaComponent());}}function Gb(e,r){if(e&1&&(Hd$1(0),wD(1)(2),eM$1(3,K_,1,2,"appc-admin-toolbar",6),eM$1(4,ab,2,2,"mspot-collapsible-sidebar",7),ta$3(5,"div",8)(6,"div",9),eM$1(7,mb,12,20,"mspot-header",10),eM$1(8,wb,7,13,"appc-header-mobile",11),ta$3(9,"div",12,0),Vv$1(11,"appc-breadcrumb",13),ta$3(12,"div",14),Vv$1(13,"router-outlet"),Pd$1(),eM$1(14,fb,1,1,"appc-footer",15),Pd$1()()(),ta$3(15,"mat-menu",null,1),eM$1(17,Cb,3,1,"button",16),eM$1(18,xb,3,3,"a",17)(19,_b,3,1,"button",16),ta$3(20,"a",17),Vv$1(21,"ng-icon",18),QM(22),Pd$1(),eM$1(23,bb,6,6),eM$1(24,Mb,3,3,"a",17),eM$1(25,Ab,3,2,"button",19),eM$1(26,yb,3,1,"button",16),eM$1(27,Vb,3,1,"button",20),Pd$1(),gv$1(28,zb,1,0,"ng-template",null,2,SN)(30,Nb,7,26,"ng-template",null,3,SN)(32,qb,5,3,"ng-template",null,4,SN),eM$1(34,$b,1,3,"appc-floating-banner",21),ta$3(35,"mspot-portal-sidebar",22),Vv$1(36,"mspot-portal-loader"),Pd$1(),eM$1(37,jb,1,1,"ng-container"),$d$1()),e&2){let t=r.$implicit,a=yM();uT(),eN(a.gamificationEnabled()),uT(),eN(a.eventPlanEnabled()),uT(),tM$1(a.isDemoUser()||a.showAdminToolbar()?3:-1),uT(),tM$1(a.memberArea().sideNavEnabled||a.isHandset()?4:-1),uT(2),jv$1("ngClass",!a.isHandset()&&a.memberArea().sideNavEnabled?"lg:pl-[65px] xl:pl-[290px] 2xl:pl-[320px]":""),uT(),tM$1(!a.isHandset()&&!a.headerless()?7:-1),uT(),tM$1(a.isHandset()?8:-1),uT(),Ma$2("padding-top",a.contentTopDistance(),"px"),iD("client-content-sidenav",a.memberArea().sideNavEnabled),jv$1("ngClass",a.disableTopMargin()?"":"mt-[var(--client-content-top)]"),uT(2),jv$1("isHandset",a.isHandset()),uT(),iD("mb-10",!a.disableBottomMargin())("min-h-0",a.fullHeight()),uT(2),tM$1(a.hideFooter()?-1:14),uT(3),tM$1(a.pwaService.deferredPrompt&&a.isHandset()?17:-1),uT(),tM$1(a.spacesActive()?18:19),uT(2),jv$1("routerLink",dN(30,O_)),uT(2),Gd$1(" ",t("profile.settings")," "),uT(),tM$1(a.memberArea()?.sideNavEnabled?-1:23),uT(),tM$1(a.memberArea()?.fingerprint?.active?24:-1),uT(),tM$1(a.canSwitchTheme()?25:-1),uT(),tM$1(a.showSwitchAreaMenu()?26:-1),uT(),tM$1(a.showSwitchAreaMenu()?-1:27),uT(7),tM$1(!a.isHandset()&&a.memberArea()?.affiliateBadge?34:-1),uT(),jv$1("opened",a.portalLoaderService()),uT(2),tM$1(a.isAiAssistantEnabled()&&!a.showAiInHeader()&&!a.hideAiAssistantCta()?37:-1);}}var _9=(()=>{class e{constructor(){this._destroyRef=g$k(de$b),this._levelUpCelebrationService=g$k(hi),this._router=g$k(H$8),this._demoViewService=g$k(_t),this._startpageService=g$k(br),this.afAuth=g$k(nt$c),this.pwaService=g$k(Ma),this._loggingService=g$k($E),this._featureToggle=g$k(f$6),this._dialogService=g$k(Ss$2),this._bottomSheet=g$k(Sn$5),this._areaLogoutService=g$k(bp),this._contentTopService=g$k(Da),this.collapsibleSidebar=g$k(jo),this.memberArea=X8.required(),this.schoolUser=X8.required(),this.contentTopDet=X8(),this.contentTop=X8(false),this.adminToolbarVisible=X8(null),this.isDarkTheme=X8(false),this.isDemoUser=X8(false),this.showAdminToolbar=X8(false),this.hasNewNotifications=X8(false),this.hideFooter=X8(false),this.spacesActive=X8(false),this.updateAvailable=X8(true),this.headerless=X8(false),this.toggleTheme=J8(),this.toggleAdminToolbarVisible=J8(),this.mainContentArea=t3("mainContentArea"),this.portalLoaderService=YG(g$k(kr).showPortal$,{initialValue:false}),this._disableBottomMarginRaw=b$1("disableBottomMargin"),this._disableTopMarginRaw=b$1("disableTopMargin"),this._hideAiAssistantCtaRaw=b$1("hideAiAssistantCta"),this._fullHeightRaw=b$1("fullHeight"),this.disableBottomMargin=qd$1(()=>this._disableBottomMarginRaw()===true),this.disableTopMargin=qd$1(()=>this._disableTopMarginRaw()===true),this.hideAiAssistantCta=qd$1(()=>this._hideAiAssistantCtaRaw()===true),this.fullHeight=qd$1(()=>this._fullHeightRaw()===true),this.gamificationEnabled=g$k(le$5).isGamificationEnabled,this.eventPlanEnabled=x$7("eventPlan"),this.notificationsEnabled=qd$1(()=>this.spacesActive()||this.gamificationEnabled()),this.sideNavItems=g$k(T$g).get
2737SideNavigationMenuItems(),this.sideNav=g$k(T$g).getSideNavigation(),this.user=YG(ie$d(this.afAuth)),this.adminView=true,this.defaultProfileImg=R$6,this.hasHome=qd$1(()=>this._startpageService.getHasHome(this.memberArea(),this.schoolUser())),this.homeLink=qd$1(()=>this._startpageService.getHomeUrl(this.memberArea(),this.schoolUser()).toString()),this.isHandset=qd$1(()=>this.contentTopDet()?.isHandset),this.isFullWidth=qd$1(()=>this.contentTopDet()?.isFullWidth),this.menuOverflows=On$7(false),this.isAiAssistantEnabled=qd$1(()=>o9({memberArea:this.memberArea()})),this.showAiInHeader=qd$1(()=>!!this.memberArea()?.aiAssistantShowInHeader),this.sideMenuIsDark=qd$1(()=>{let t=this.memberArea()?.theme,a=t?.sideMenuBg||t?.bodyBg;return !!a&&B$4(a)}),this.memberChatEnabled=qd$1(()=>this._featureToggle.isExtendedBeta()&&this.memberArea()?.spacesActive&&this.memberArea()?.userChatEnabled),this.lowerBarVisible=qd$1(()=>this._startpageService.getLowerBarVisible(this.memberArea(),this.spacesActive(),this.schoolUser(),this.sideNav()?.length)),this.contentTopDistance=qd$1(()=>this.headerless()&&!this.contentTopDet()?.isHandset?this.adminToolbarVisible()?36:0:this._calcContentTopDistance(this.memberArea()?.sideNavEnabled,this.contentTopDet()?.isHandset,this.lowerBarVisible())),this.logo=qd$1(()=>this.memberArea()?.headerLogoUrl||this.memberArea()?.logoUrl||S$7),this.sidebarLogo=qd$1(()=>this.memberArea()?.logoUrl||this.memberArea()?.headerLogoUrl||S$7),this.logoDark=qd$1(()=>this.memberArea()?.customView?.darkLogoUrl||this.logo()),this.hasUserModeratedSpacers=qd$1(()=>this.schoolUser()?.moderatorOfSpaces?.length>0||false),this.canSwitchTheme=qd$1(()=>{let t=d$2(this.memberArea());return t==="lightModeDefault"||t==="darkModeDefault"}),this.aiAssistantCtaComponent=On$7(null),this.showSwitchAreaMenu=qd$1(()=>U$5.isNativePlatform()),Es$3(()=>this._dynamicallyLoadAiChat()),Es$3(()=>{this._contentTopService.sideNavEnabledChange(!!this.memberArea()?.sideNavEnabled),this._contentTopService.lowerBarVisibleChange(this.lowerBarVisible()),this._contentTopService.headerlessChange(this.headerless());});}ngAfterViewInit(){let t=this.mainContentArea();t&&xI(cc$1(t.nativeElement,"click"),cc$1(t.nativeElement,"touchstart")).pipe(qG(this._destroyRef)).subscribe(()=>this.collapsibleSidebar.closeAll());}installPwa(){this.pwaService.install();}reload(){window.location.reload();}toggleNav(){this.collapsibleSidebar.toggleLocked();}closeNav(){this.collapsibleSidebar.closeAll();}toggleAdminToolbar(){this.isDemoUser()||this.showAdminToolbar()?this.toggleAdminToolbarVisible.emit(!this.adminToolbarVisible()):this.toggleAdminToolbarVisible.emit(false);}toggleDemoView(){this.adminView=!this.adminView,this._demoViewService.changeDemoView(this.adminView);}goToLibrary(){this._router.navigateByUrl("/startpage");}switchSchool(){ai(this._bottomSheet);}_calcContentTopDistance(t,a,o){return a||!o&&!t?0:t||!o?65:0}_dynamicallyLoadAiChat(){this.aiAssistantCtaComponent()||this.isAiAssistantEnabled()&&import('./chunk-Db0eJmvH.js').then(t=>this.aiAssistantCtaComponent.set(t.AiAssistantCtaComponent)).catch(t=>{this._loggingService.error("[Shell] Failed to load AI Assistant CTA component",t);});}async openProfileDialog(){await this._dialogService.openAsync(nl,{data:void 0,dialogConfig:{disableClose:true,panelClass:[H$a.SIZE_900,H$a.SIZE_NO_PADDING],autoFocus:false}});}openProfileSheet(){let t={spacesActive:this.spacesActive(),showInstallPwa:!!this.pwaService.deferredPrompt&&!!this.isHandset(),showFingerprint:!!this.memberArea()?.fingerprint?.active,canSwitchTheme:this.canSwitchTheme(),isDarkTheme:this.isDarkTheme(),showSwitchArea:this.showSwitchAreaMenu(),isCapacitor:U$5.isNativePlatform()};this._bottomSheet.open(x9,{data:t,panelClass:"mat-bottom-sheet-container-p-0",autoFocus:"dialog"}).afterDismissed().pipe(hn$9(1)).subscribe(a=>{a==="installPwa"?this.installPwa():a==="openProfile"?this.openProfileDialog():a==="toggleTheme"?this.toggleTheme.emit(!this.isDarkTheme()):a==="switchSchool"?this.switchSchool():a==="logout"&&this._areaLogoutService.logoutFromCurrentArea();});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-shell"]],viewQuery:function(a,o){a&1&&eD(o.mainContentArea,R_,5),a&2&&bM();},hostAttrs:[1,"flex","flex-col","h-full"],inputs:{memberArea:[1,"memberArea"],schoolUser:[1,"schoolUser"],contentTopDet:[1,"contentTopDet"],contentTop:[1,"contentTop"],adminToolbarVisible:[1,"adminToolbarVisible"],isDarkTheme:[1,"isDarkTheme"],isDemoUser:[
vendor: 4,355 bytes, line 2737
27371,"isDemoUser"],showAdminToolbar:[1,"showAdminToolbar"],hasNewNotifications:[1,"hasNewNotifications"],hideFooter:[1,"hideFooter"],spacesActive:[1,"spacesActive"],updateAvailable:[1,"updateAvailable"],headerless:[1,"headerless"]},outputs:{toggleTheme:"toggleTheme",toggleAdminToolbarVisible:"toggleAdminToolbarVisible"},features:[cN([hi,ft])],decls:1,vars:0,consts:[["mainContentArea",""],["profileMenu","matMenu"],["settings",""],["sidebarBody",""],["logoTpl",""],[4,"transloco"],[3,"isHandset","adminToolbarVisible"],["panelClass","client-sidemenu-bg border-r border-[color-mix(in_srgb,currentColor_10%,transparent)]",3,"useRail","topOffsetPx"],[1,"flex","flex-1","flex-col"],[1,"client-page-bg","flex","min-w-0","flex-1","flex-col",3,"ngClass"],["id","header",3,"ma","sideNavEnabled","isHandset","adminToolbarVisible","lowerBarVisible","fixedSideMenu","isFullWidth","ngClass"],[3,"ma","user","spacesActive","isDemoUser","isDarkTheme","memberChatEnabled","adminToolbarVisible","notificationsEnabled"],[1,"relative","flex","flex-1","flex-col","transition","duration-300",3,"ngClass"],[3,"isHandset"],[1,"page-content--wrapper","flex","flex-1","flex-col"],[1,"flex-grow",3,"memberArea"],["mat-menu-item","",1,"focus-primary","flex","items-center"],["mat-menu-item","",1,"focus-primary","flex","items-center",3,"routerLink"],["name","hero-cog-8-tooth","ngProjectAs","mat-icon",5,["mat-icon"]],["mat-menu-item","",1,"focus-primary"],["mat-menu-item","","mspotSignOut","","data-cy","clientLogoutButton",1,"focus-primary","flex","items-center"],[3,"link","shift-up"],[3,"opened"],[3,"visibilityChanged","isHandset","adminToolbarVisible"],[1,"client-sidemenu-bg","flex","h-full","flex-col","text-[color:var(--client-sidemenu-color,var(--text-subtle))]",3,"click"],[1,"flex","min-h-0","flex-1","flex-col","pl-4","pt-4"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["dense","",3,"showDivider"],["data-cy","clientProfileMenuButton","matTooltipPosition","right",1,"focus-primary--rounded","flex","w-full","items-center","gap-2","rounded-md","py-2","pl-1","text-left","transition-colors","hover:bg-[color-mix(in_srgb,currentColor_8%,transparent)]",3,"click","matMenuTriggerFor","matTooltip","matTooltipDisabled"],[1,"flex","w-6","shrink-0","items-center","justify-center"],["alt","Avatar","mspotProfileImgLoadErr","",1,"h-6","w-6","rounded-full","object-cover",3,"src"],[1,"min-w-0","flex-1"],[1,"block","truncate","text-sm","font-semibold","text-[color:var(--client-sidemenu-color,var(--text-strong))]"],[1,"block","truncate","text-xs","text-[color:var(--client-sidemenu-color,var(--text-subtle))]"],["name","hero-chevron-up-down",1,"shrink-0","text-lg","text-[color:var(--client-sidemenu-color,var(--text-subtle))]"],["id","header",3,"goToLibrary","ma","sideNavEnabled","isHandset","adminToolbarVisible","lowerBarVisible","fixedSideMenu","isFullWidth","ngClass"],["slot","logo",1,"flex-shrink-0",3,"ngClass"],["slot","communityTopNavigation"],["slot","updateAvailable","aria-label","Update",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl",3,"matTooltip"],["slot","search",1,"w-[320px]",3,"canSearchTranscriptions"],["slot","clientAiAssistant",1,"empty:hidden"],["aria-label","Admin Toolbar","slot","adminToolbarToggle","data-cy","toggleAdminToolbar",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl",3,"matTooltip"],["slot","notifications",3,"matTooltip"],["slot","memberChat",3,"matTooltip"],["slot","profile","data-cy","clientProfileMenuButton",1,"pointer","focus-primary--rounded","flex","w-8","flex-shrink-0","items-center","justify-end",3,"matMenuTriggerFor"],["alt","Avatar","mspotProfileImgLoadErr","",1,"h-8","w-8","rounded-full",3,"src"],[4,"ngTemplateOutlet"],[1,"overflow-hidden",3,"ngClass","navItems","hasHome","homeLink","memberArea","spacesActive","gamificationEnabled","eventPlanEnabled"],["slot","updateAvailable","aria-label","Update",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl",3,"click","matTooltip"],["name","hero-arrow-path"],[4,"ngComponentOutlet"],["aria-label","Admin Toolbar","slot","adminToolbarToggle","data-cy","toggleAdminToolbar",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl",3,"click","matTooltip"],["name","hero-adjustments-horizontal"],[3,"goToLibrary","toggleNav","ma","user","spacesActive","
2737isDemoUser","isDarkTheme","memberChatEnabled","adminToolbarVisible","notificationsEnabled"],["slot","updateAvailable","aria-label","Update",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl"],["slot","adminToolbarToggle","data-cy","toggleAdminToolbar","aria-label","Admin Toolbar",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl"],["slot","profile","type","button","data-cy","clientProfileMenuButton",1,"focus-primary--rounded","pointer","flex","w-8","flex-shrink-0","items-center","justify-end",3,"click"],["slot","clientAiAssistant",1,"flex","items-center","empty:hidden","lg:hidden"],["slot","updateAvailable","aria-label","Update",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl",3,"click"],["slot","adminToolbarToggle","data-cy","toggleAdminToolbar","aria-label","Admin Toolbar",1,"client-header-icon","focus-primary--rounded","flex","items-center","text-xl",3,"click"],["mat-menu-item","",1,"focus-primary","flex","items-center",3,"click"],["ngProjectAs","mat-icon","name","custom-install-app",5,["mat-icon"]],["name","hero-identification","ngProjectAs","mat-icon",5,["mat-icon"]],["name","hero-bookmark","ngProjectAs","mat-icon",5,["mat-icon"]],["name","hero-check-circle","ngProjectAs","mat-icon",5,["mat-icon"]],["name","hero-computer-desktop","ngProjectAs","mat-icon",5,["mat-icon"]],["mat-menu-item","",1,"focus-primary",3,"click"],["ngProjectAs","mat-icon",5,["mat-icon"],3,"name"],["name","heroUserGroup","ngProjectAs","mat-icon",5,["mat-icon"]],["ngProjectAs","mat-icon","name","hero-arrow-left-on-rectangle",5,["mat-icon"]],["name","hero-cog-8-tooth-solid",1,"text-xl"],[1,"flex","min-h-0","flex-1","flex-col","gap-6"],[1,"pr-4","pt-1",3,"ngClass"],[3,"ngClass"],[1,"flex","shrink-0","items-center","gap-2",3,"flex-col"],[1,"block","pr-4",3,"compact","collapsed","canSearchTranscriptions"],["px","pr-4","pt","",1,"flex","min-h-0","flex-1","flex-col",3,"overflows","items","isUserModerator","hasStartPage","homeLink","spacesActive","gamificationEnabled","eventPlanEnabled","personalGroupLabel","contentGroupLabel","startPageLink","communityTitle","myCoursesTitle","defaultPortalsName","defaultAgentsName","hidePortalsOverview","hideAgentsOverview","currentTheme","isSideNavEnabled"],[1,"flex","shrink-0","items-center","gap-2",3,"click"],["type","button","data-cy","sidebarSwitchSchool",1,"flex","h-8","w-8","items-center","justify-center","rounded-lg","border","border-[color-mix(in_srgb,currentColor_14%,transparent)]","text-[color:var(--client-sidemenu-color,var(--text-subtle))]","transition-colors","hover:bg-[color-mix(in_srgb,currentColor_8%,transparent)]",3,"matTooltip"],["type","button","data-cy","sidebarSwitchSchool",1,"flex","h-8","w-8","items-center","justify-center","rounded-lg","border","border-[color-mix(in_srgb,currentColor_14%,transparent)]","text-[color:var(--client-sidemenu-color,var(--text-subtle))]","transition-colors","hover:bg-[color-mix(in_srgb,currentColor_8%,transparent)]",3,"click","matTooltip"],["name","heroArrowsRightLeft",1,"text-lg"],[1,"flex","h-8","w-8","items-center","justify-center","rounded-lg","border","border-[color-mix(in_srgb,currentColor_14%,transparent)]","transition-colors","hover:bg-[color-mix(in_srgb,currentColor_8%,transparent)]",3,"fill","matTooltip"],["aria-label","Admin Toolbar","data-cy","toggleAdminToolbar",1,"flex","h-8","w-8","items-center","justify-center","rounded-lg","border","border-[color-mix(in_srgb,currentColor_14%,transparent)]","text-[color:var(--client-sidemenu-color,var(--text-subtle))]","transition-colors","hover:bg-[color-mix(in_srgb,currentColor_8%,transparent)]",3,"matTooltip"],["aria-label","Admin Toolbar","data-cy","toggleAdminToolbar",1,"flex","h-8","w-8","items-center","justify-center","rounded-lg","border","border-[color-mix(in_srgb,currentColor_14%,transparent)]","text-[color:var(--client-sidemenu-color,var(--text-subtle))]","transition-colors","hover:bg-[color-mix(in_srgb,currentColor_8%,transparent)]",3,"click","matTooltip"],["name","hero-adjustments-horizontal",1,"text-lg"],["slot","logo",1,"flex","min-w-0","items-center","gap-4"],[1,"hover:brightness-115","focus-primary--rounded","min-w-0",3,"click"],["alt","Logo",1,"h-10",3,"src"],["alt","Logo",1,"light-logo","h-8","max-w-full","object-contain",3,"src"],["alt","Logo",1,"dark-logo","h-8","max-w-full","object-contain",3,"src"],["alt","Logo",1,"light-logo",3,"src","ngClass"],["alt","Logo",1,"dark-logo",3,"src","ngClass"],[3,"link"]],template:function(a,o){a&1&&gv$1(0,Gb,38,31,"ng-container",5);},dependencies:[v9,w9,l9,c9,a9,kh,le$9,p9,J7,Ep,yr,C9,Pe$2,d9,kt$7,mx$1,mt$7,sn$5,G$9,wr$4,Ix$1,yt$a,ln$5,ce$5,yx$1,D$3,Ar,Er,n9],styles:[".logo[_ngcontent-%COMP%]{font-size:1.2em;cursor:pointer;outline:none}img.logo[_ngcontent-%COMP%]{margin:0 3px 8px 0}.light-logo[_ngcontent-%COMP%], .dark-logo[_ngcontent-%COMP%]{width:auto;max-height:40px}.sidenav[_ngcontent-%COMP%]{width:240px}.fill-space[_ngcontent-%COMP%]{flex:1 1 auto}i[_ngcontent-%COMP%]{font-style:normal;font-size:1.25em;margin-right:16px}
2737.avatar[_ngcontent-%COMP%]{width:1.75em;border-radius:50%;margin:0 10px 5px}.header[_ngcontent-%COMP%]{padding:2rem 0}.profile-name[_ngcontent-%COMP%]{margin-top:1px;margin-left:5px;font-size:.9rem;line-height:1.2rem;font-weight:500;white-space:pre-line}@media(min-width:1024px){.page-content--wrapper[_ngcontent-%COMP%]{margin:0 1rem}}"]});}}return k0([_r$5,F0("design:type",Function),F0("design:paramtypes",[Boolean,Boolean,Boolean]),F0("design:returntype",void 0)],e.prototype,"_calcContentTopDistance",null),e})();var pi=(()=>{class e{constructor(){this._maQuery=g$k(f$8),this._breakpointService=g$k(jl),this._demoViewService=g$k(_t),this._notifications=g$k(ut$6),this._spacesQuery=g$k(M$9),this._schoolUserQuery=g$k(M$a),this._userService=g$k(Ai),this._themeService=g$k(Se$2),this.pwaService=g$k(Ma),this.afAuth=g$k(nt$c),this.memberArea$=this._maQuery.select().pipe(vp({refCount:true})),this.isDemoUser$=this._demoViewService.isDemoCourseView$,this.isHandset$=this._breakpointService.isHandset$,this.hasNewNotifications$=ZG(this._notifications.hasUnread),this.isDarkTheme$=g$k(_e),this.spacesActive$=Pe$4([this.memberArea$,this._spacesQuery.selectAllAfterLoading()]).pipe(st$c(([t,a])=>t.spacesActive&&!!a?.length),pp$2()),this.schoolUser$=this._schoolUserQuery.selectAfterLoading();}installPwa(){this.pwaService.install();}toggleDemoView(t){this._demoViewService.changeDemoView(t);}toggleTheme(t){this._userService.updateDarkThemeSettings(!!t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac});}}return e})();var b9=(()=>{class e{constructor(){this._injector=g$k(oe$e),this._facade=g$k(pi),this._router=g$k(H$8),this._chatDeepLinkService=g$k(Fe$4),this._demoViewService=g$k(_t),this._versionSwitcher=g$k(Mr),this._schoolUserQuery=g$k(M$a),this.contentTopService=g$k(Da),this.memberArea=YG(this._facade.memberArea$),this.schoolUser=YG(this._facade.schoolUser$),this.isDemoUser=YG(this._facade.isDemoUser$),this._isAdminInPreview=YG(this._demoViewService.isAdminInPreview$,{initialValue:false}),this._isDemoCourseView=YG(this._demoViewService.isDemoCourseView$,{initialValue:false}),this._portalAccess=YG(this._schoolUserQuery.select(t=>t?.portalAccess??[]),{initialValue:[]}),this.headerless=qd$1(()=>!!this.memberArea()?.sideNavEnabled),this.showAdminToolbar=qd$1(()=>{if(this._isDemoCourseView())return true;let t=this._versionSwitcher.portalRoute();return !t||!this._isAdminInPreview()||t.isStart||!t.dashboardId?false:this._portalAccess().some(a=>String(a)===t.dashboardId)}),this._adminToolbarVisibleFromService=YG(this.contentTopService.adminToolbarVisible$),this.updateAvailable=YG(g$k(he).updateAvailable$.pipe(st$c(t=>!!t)),{initialValue:false}),this.adminToolbarVisible=qd$1(()=>{let t=!!this._adminToolbarVisibleFromService();return (this.isDemoUser()||this.showAdminToolbar())&&t}),this.isDarkTheme=YG(this._facade.isDarkTheme$),this.hasNewNotifications=YG(this._facade.hasNewNotifications$),this.hideFooter=b$1("hideFooter"),this.spacesActive=YG(this._facade.spacesActive$),this.contentTopDet=YG(this.contentTopService.contentTopDet$),this.adminView=true,import('./chunk-CpC40jK4.js').then(function(n){return n.c}).then(({ClientEventDetailsHost:t})=>this._injector.get(t));}ngOnInit(){this._chatDeepLinkService.checkAndHandleDeepLink();}goToLibrary(){this._router.navigate(["library"]);}installPwa(){this._facade.installPwa();}toggleDemoView(){this.adminView=!this.adminView,this._facade.toggleDemoView(this.adminView);}toggleTheme(t){this._facade.toggleTheme(t);}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["appc-shell-view"]],features:[cN([pi])],decls:1,vars:12,consts:[[3,"toggleTheme","toggleAdminToolbarVisible","memberArea","schoolUser","isDemoUser","showAdminToolbar","adminToolbarVisible","isDarkTheme","hasNewNotifications","hideFooter","contentTopDet","spacesActive","updateAvailable","headerless"]],template:function(a,o){a&1&&(ta$3(0,"appc-shell",0),Zv$1("toggleTheme",function(d){return o.toggleTheme(d)})("toggleAdminToolbarVisible",function(d){return o.contentTopService.adminToolbarVisibilityChange(d)}),Pd$1()),a&2&&jv$1("memberArea",o.memberArea())("schoolUser",o.schoolUser())("isDemoUser",o.isDemoUser())("showAdminToolbar",o.showAdminToolbar())("adminToolbarVisible",o.adminToolbarVisible())("isDarkTheme",o.isDarkTheme())("hasNewNotifications",o.hasNewNotifications())("hideFooter",o.hideFooter())("contentTopDet",o.contentTopDet()
2737)("spacesActive",o.spacesActive())("updateAvailable",o.updateAvailable())("headerless",o.headerless());},dependencies:[_9],styles:[".logo[_ngcontent-%COMP%]{font-size:1.2em;cursor:pointer;outline:none}img.logo[_ngcontent-%COMP%]{margin:0 3px 8px 0}.light-logo[_ngcontent-%COMP%], .dark-logo[_ngcontent-%COMP%]{width:auto;max-height:40px}.sidenav[_ngcontent-%COMP%]{width:240px}.fill-space[_ngcontent-%COMP%]{flex:1 1 auto}i[_ngcontent-%COMP%]{font-style:normal;font-size:1.25em;margin-right:16px}.avatar[_ngcontent-%COMP%]{width:1.75em;border-radius:50%;margin:0 10px 5px}.header[_ngcontent-%COMP%]{padding:2rem 0}.profile-name[_ngcontent-%COMP%]{margin-top:1px;margin-left:5px;font-size:.9rem;line-height:1.2rem;font-weight:500;white-space:pre-line}@media(min-width:1024px){.page-content--wrapper[_ngcontent-%COMP%]{margin:0 1rem}}"]});}}return e})();var M9=[{path:"version",component:sh},{path:"",canActivate:[ap],canDeactivate:[],data:{breadcrumb:{skip:true}},children:[{path:"",redirectTo:"startpage",pathMatch:"full"},{path:"token",canActivate:[ti],component:U},{path:"auth",component:U,children:[{path:"",loadChildren:()=>import('./chunk-CajgPo09.js').then(function(n){return n.c}).then(e=>e.AuthenticationRoutes)}]},{path:"",canActivate:[Yn,M],canDeactivate:[Yn,R$1],children:[{path:"startpage",canActivate:[np],component:U},{path:"",canActivate:[ip,Ih,Wh,Yh],canDeactivate:[ti],component:b9,children:[{path:"user",data:{breadcrumb:{skip:true}},loadChildren:()=>import('./chunk-1ij20Iq2.js').then(e=>e.CLIENT_SCHOOL_USER_ROUTES)},{path:"library",data:{breadcrumb:{label:"Home",icon:"hero-home-solid"}},children:[{path:"pages",canActivate:[We$1],data:{breadcrumb:{skip:true}},loadChildren:()=>import('./chunk-DeL6aHTk.js').then(e=>e.PagesRoutes)},{path:"",canActivate:[],loadChildren:()=>import('./chunk-B5ycmwXR.js').then(e=>e.CourseRoutes)}]},{path:"home",pathMatch:"full",redirectTo:"home/start"},{path:"home",canActivate:[],data:{breadcrumb:{skip:true}},loadChildren:()=>import('./chunk-DawscDah.js').then(e=>e.ClientDashboardShellRoutes)},{path:"dashboards",canActivate:[We$1],data:{breadcrumb:{skip:true}},loadChildren:()=>import('./chunk-DawscDah.js').then(e=>e.ClientDashboardShellRoutes)},{path:"portale",canActivate:[We$1],data:{breadcrumb:{skip:true}},loadChildren:()=>import('./chunk-pTCCn_y-.js').then(e=>e.CLIENT_PORTALS_OVERVIEW_ROUTES)},{path:"agents",canActivate:[We$1],data:{breadcrumb:{skip:true}},loadChildren:()=>import('./chunk-XWhXx4fi.js').then(function(n){return n.c}).then(e=>e.CLIENT_AGENTS_OVERVIEW_ROUTES)},{path:"aipilot",canActivate:[We$1],data:{breadcrumb:{skip:true},hideFooter:true},loadChildren:()=>import('./chunk-TEEYx0uH.js').then(e=>e.AI_AGENT_ROUTES)},{path:"pages",canActivate:[We$1],data:{breadcrumb:{skip:true}},loadChildren:()=>import('./chunk-DeL6aHTk.js').then(e=>e.PagesRoutes)},{path:"community",canActivate:[Dh,We$1],loadChildren:()=>import('./chunk-Cc-uf72A.js').then(function(n){return n.c}).then(e=>e.clientCommunityShellRoutes)},{path:"events",canActivate:[Eh("eventPlan"),We$1],data:{hideFooter:true,breadcrumb:{label:"breadcrumbs.events",info:"translate"}},loadChildren:()=>import('./chunk-Cs1So-Ho.js').then(e=>e.eventsRoutes)},{path:"leaderboard",canActivate:[Nh,z$4,We$1],data:{hideFooter:true,breadcrumb:{label:"breadcrumbs.leaderboard",info:"translate"}},loadComponent:()=>import('./chunk-2cRGJppz.js').then(e=>e.LeaderboardPageComponent)}]}]}]},{path:"login",redirectTo:"auth/login",pathMatch:"full"},{path:"anmelden",redirectTo:"auth/login",pathMatch:"full"},{path:"moved",canActivate:[],component:Jh},{path:"double-login",component:Kh},{path:"anmelden",pathMatch:"full",redirectTo:"auth/login"},{path:"**",component:Xh}];var A9=[/The play\(\) request was interrupted by a call to pause\(\)/,"fullscreen error",/Fullscreen request denied/,"Network Error","Non-Error exception captured",/AbortError: The fetching process for the media resource was aborted by the user agent at the user's request/,/AbortError: The operation was aborted/,"AbortError: The user aborted a request.",/A network error \(such as timeout, interrupted connection or unreachable host\) has occurred/,"TypeError: Failed to fetch",/The user's credential is no longer valid\. The user must sign in again/,/DOMException: play\(\) failed because the user didn't interact with the document first/,/The popup has been closed by the user before finalizing the operation/,/The password is invali
2737d or the user does not have a password/,/There is no user record corresponding to this identifier\. The user may have been deleted/,/The email address is already in use by another account/,/The password is invalid or the user does not have a password/,/Access to this account has been temporarily disabled due to many failed login attempts/,/This operation has been cancelled due to another conflicting popup being opened/,/Uncaught \(in promise\): Error: Unknown player\. Probably unloaded/,/this\.enter is not a function/,/Uncaught \(in promise\): ChunkLoadError: Loading chunk/,/INTERNAL ASSERTION FAILED: Unexpected state/,/Missing or insufficient permissions/,/The object is in an invalid state(.|\n)*?webkitEnterFullscreen/,/this\.target\.webkitEnterFullscreen is not a function/,/The object is in an invalid state/,"[vidstack] no fullscreen support","UnknownError: Connection to Indexed Database server lost. Refresh the page to try again",/UnknownError: Database deleted by request of the user/,"Can't find variable: instantSearchSDKJSBridgeClearHighlight","Uncaught (in promise): [object Undefined]",/TypeError: Cannot read properties of undefined \(reading 'text'\)/,/TypeError: Cannot read properties of null \((reading 'progress')\)/,/FetchEvent.respondWith received an error: Load failed/,/TypeError: Load failed/,/TypeError: Die Netzwerkverbindung wurde unterbrochen./,/FetchEvent.respondWith received an error: Die Netzwerkverbindung wurde unterbrochen./,"top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Firebase: Error (auth/popup-closed-by-user).","Firebase: Error (auth/cancelled-popup-request).","Firebase: Error (auth/popup-blocked).","Firebase: Error (auth/network-request-failed).",/Error: Uncaught (in promise): TypeError: pe.frames[0] is undefined/,/SyntaxError: expected expression, got '='/,/SyntaxError: Unexpected token '='/,/Space post could not be found/,"provider destroyed",/fbq is not defined/,/Can't find variable: fbq/];var y9=(()=>{class e{constructor(){this._themeInitialized=false,this._maQuery=g$k(f$8),this._themeService=g$k(Se$2);}initApp(){this._themeInitialized||this.initTheme();}initTheme(){this._themeInitialized=true,this._maQuery.select().pipe(Pt$b(t=>!!t?.schoolId)).subscribe(t=>{this._themeService.setTheme(t);});}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=L$l({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var V9='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16"><path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5m5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5"></path></svg>';var z9='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16"><path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393"></path></svg>';var S9='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16"><path d="M.5 3.5A.5.5 0 0 0 0 4v8a.5.5 0 0 0 1 0V8.753l6.267 3.636c.54.313 1.233-.066 1.233-.697v-2.94l6.267 3.636c.54.314 1.233-.065 1.233-.696V4.308c0-.63-.693-1.01-1.233-.696L8.5 7.248v-2.94c0-.63-.692-1.01-1.233-.696L1 7.248V4a.5.5 0 0 0-.5-.5"></path></svg>';var H9='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16"><path d="M4 4a.5.5 0 0 1 1 0v3.248l6.267-3.636c.54-.313 1.232.066 1.232.696v7.384c0 .63-.692 1.01-1.232.697L5 8.753V12a.5.5 0 0 1-1 0z"></path></svg>';var L9=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275mod=Sa$2({type:e});}static{this.\u0275inj=io$5({imports:[ae$9.withIcons({heroArrowLeft:`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> 2738 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 17l-5-5m0 0l5-5m-5 5h12" /> 2739 </svg>`,heroSun:_5,heroUser:j5,heroComputerDesktop:r1,heroCursorArrowRays:n1,heroDevicePhoneMobile:s1,heroArrowRightOnRectangle:l$9,heroUserGroup:Z5,download:r$a,heroArrowDownOnSquare:r$a,heroArrowsPointingOut:m$9,heroArrowsPointingIn:p$f,heroArrowsRightLeft:M$e,heroPlay:e5,heroPlayCircle:r5,heroPlaySolid:Z0,heroPlayCircleSolid:g0,heroCheck:G$f,heroArrowPath:a$b,heroInformationCircle:L1,heroCheckCircle:F$f,heroChevronLeft:W$j,heroChevronRight:X$f,heroChevronUp:Q$b,heroChevronDown:z$j,heroDocumentCheck:a1,heroHome:j1$1,heroHomeSolid:s0,heroIdentification:V1$1,heroNewspaper:z1,heroNoSymbol:W1,heroBars3:C$6,heroArrowSmallDownSolid:e0,heroXCircle:L5,heroDocument:d1,heroXMark:S5,heroArrowDownTray:e$3,heroArrowUpTray:v$f,heroSignalSlash:k5$1,heroTimeElapse:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0z" fill="none"/>
2739<path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg>',heroLockClosedSolid:w0,heroClock:K$m,heroCogSolid:n0,heroArrowTopRightOnSquare:d$g,heroAddPhotoAlternate:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2h-3zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8h-3zM5 19l3-4 2 3 3-4 4 5H5z"/></svg>',heroMagnifyingGlass:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" style="width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);stroke-width:var(--ng-icon__stroke-width, 1.75)"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"/></svg>',heroMagnifyingGlassPlus:O1,heroMagnifyingGlassMinus:T1,heroQuestionMarkCircle:a5,heroBookmark:L$g,heroBookmarkSlash:H$g,heroBars3BottomLeft:_$b,heroCheckBadge:q$h,heroAcademicCap:o$9,heroEllipsisVertical:v1,heroHandThumbUp:y1,heroChatBubbleBottomCenterText:R$b,heroChatBubbleLeftRight:O$n,heroBell:Z$c,heroBellSlash:y$c,heroBellAlertSolid:t0,heroBellAlert:A$e,heroBookmarkSolid:r0,heroBriefcase:S$j,heroCog:t1,heroTrash:B5,heroTrophy:f5,heroPhoto:t5,heroFaceSmile:M1,heroFunnel:C1,heroFilm:x1,heroPencilSquare:J1,heroPencil:$1,heroInformationCircleSolid:c0,heroMinus:G1,heroShare:c5,heroArrowUpOnSquare:c$g,heroArrowLeftOnRectangle:n$f,heroCog8Tooth:o1,heroCog8ToothSolid:h0,heroClipboardDocumentCheck:Y$g,heroCloudArrowUp:J$i,heroChevronDoubleRight:I$c,heroChatBubbleLeftEllipsis:T$f,heroChatBubbleOvalLeft:E$g,heroLink:P1,heroSquares2x2:p5$1,heroRectangleStack:d5,heroBars4:B$l,heroArrowRight:h$9,heroMoon:I1,heroAdjustmentsHorizontal:t$a,heroExclamationTriangleSolid:v0,heroKey:D1,heroCreditCard:e1,heroMapPin:q1,heroPhone:o5,heroEnvelope:g1,heroDocumentText:h1,heroGlobeAlt:B1,heroExclamationCircle:k1,heroChevronUpDown:N$a,heroEllipsisHorizontalCircle:w1,heroCalendarDays:D$g,heroCalendar:b$c,heroCheckCircleSolid:i0,heroExclamationTriangle:u1,heroQueueList:l5,heroStarSolid:f0,heroPlus:s5,heroFlag:_1,heroInbox:H1,heroChatBubbleBottomCenter:U$d,heroBold:j$m,heroItalic:S1,heroUnderline:A5,heroStrikethrough:x5,heroListBullet:R1,heroNumberedList:X1,heroSparkles:u5,heroHandThumbDown:A1,heroHashtag:Z1,heroDocumentDuplicate:l1,heroLightBulb:b1,heroMicrophone:F1,heroVideoCamera:V5,heroPauseSolid:u0,heroStopSolid:M0,heroWindow:H5,heroUserCircle:y5,heroArrowUturnLeft:k$h,heroArrowUturnRight:u$b,heroBars2:x$f,heroPaintBrush:N1,heroPaperAirplane:Q1,heroPaperClip:Y1,heroArrowPathRoundedSquare:i$a,heroRectangleGroup:h5$1,heroEyeSlash:p1,heroEye:m1,bootstrapPauseFill:V9,bootstrapPlayFill:z9,bootstrapSkipBackwardFill:S9,bootstrapSkipStartFill:H9,heroStop:M5,heroStopCircle:m5,heroDocumentArrowUp:i1,heroCodeBracket:$$i,heroEllipsisHorizontal:c1,heroPlusCircle:n5,customUndo:"<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'><path fill='currentColor' d='M5 4a1 1 0 0 0-2 0h2Zm13.946 7.124a1 1 0 1 0 1.984-.248l-1.984.248ZM9 10a1 1 0 1 0 0-2v2ZM4.206 7.5a1 1 0 1 0 1.732 1l-1.732-1Zm1.732 8a1 1 0 1 0-1.732 1l1.732-1ZM3 4v4.99h2V4H3Zm9 1a7.001 7.001 0 0 1 6.946 6.124l1.984-.248A9.001 9.001 0 0 0 12 3v2ZM5.508 9.375A7.003 7.003 0 0 1 12 5V3a9.003 9.003 0 0 0-8.345 5.625l1.853.75ZM4.01 10h.572V8H4.01v2Zm.572 0H9V8H4.582v2Zm1.356-1.5A7 7 0 0 1 9.32 5.533l-.765-1.848A9 9 0 0 0 4.206 7.5l1.732 1ZM9.32 5.533a7 7 0 0 1 4.49-.294l.518-1.932a9 9 0 0 0-5.773.378l.765 1.848Zm4.49-.294a7 7 0 0 1 3.742 2.5L19.14 6.52a9 9 0 0 0-4.81-3.214l-.518 1.932Zm3.742 2.5A7 7 0 0 1 19 12h2a9 9 0 0 0-1.86-5.479L17.553 7.74ZM19 12a7 7 0 0 1-1.447 4.261l1.587 1.218A9 9 0 0 0 21 12h-2Zm-1.447 4.261a7 7 0 0 1-3.741 2.5l.517 1.932a9 9 0 0 0 4.811-3.214l-1.587-1.218Zm-3.741 2.5a7 7 0 0 1-4.49-.294l-.766 1.848a9 9 0 0 0 5.773.378l-.517-1.931Zm-4.49-.294A7 7 0 0 1 5.938 15.5l-1.732 1A9 9 0 0 0 8.556 20.315l.766-1.848ZM3 8.99C3 9 3 9.003 3.002 9.01H1c0-.01 0-.016.002-.02H3Z'/></svg>",customRedo:"<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'><path fill='currentColor' d='M21 4a1 1 0 1 0-2 0h2ZM3.008 10.876a1 1 0 1 0 1.984.248l-1.984-.248ZM14.938 8a1 1 0 1 0 0 2V8Zm-.26-2.467a1 1 0 0 0 .766-1.848l-.76
27395 1.848ZM19.795 16.5a1 1 0 1 0-1.732-1l1.732 1ZM19 4v4.99h2V4h-2Zm-7.062-1a9.001 9.001 0 0 0-8.93 7.876l1.984.248A7.001 7.001 0 0 1 11.938 5V3Zm8.345 5.625A9.003 9.003 0 0 0 11.938 3v2a7.003 7.003 0 0 1 6.492 4.375l1.854-.75ZM19.99 8h-.633v2h.633V8Zm-.633 0h-4.419v2h4.419V8Zm-3.913-4.315a9 9 0 0 0-5.773-.378l.517 1.932a7 7 0 0 1 4.49.294l.766-1.848Zm-5.773-.378A9 9 0 0 0 4.86 6.52l1.587 1.22a7 7 0 0 1 3.741-2.5l-.517-1.932ZM4.86 6.52A9 9 0 0 0 3 12h2a7 7 0 0 1 1.447-4.261L4.86 6.52ZM3 12a9 9 0 0 0 1.86 5.479l1.587-1.218A7 7 0 0 1 5 12H3Zm1.86 5.479a9 9 0 0 0 4.81 3.214l.518-1.931a7 7 0 0 1-3.741-2.5L4.86 17.478Zm4.81 3.214a9 9 0 0 0 5.774-.378l-.765-1.848a7 7 0 0 1-4.49.295l-.518 1.931Zm5.774-.378a9 9 0 0 0 4.35-3.815l-1.732-1a7 7 0 0 1-3.383 2.968l.765 1.847ZM19 8.99c0 .01 0 .013-.002.02H21c0-.01 0-.016-.002-.02H19Z'/></svg>",customEditorColor:"<svg width='14' height='19' viewBox='0 0 14 19' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M2.9723 14H0.441051L5.04972 0.909091H7.97727L12.5923 14H10.0611L6.56463 3.59375H6.46236L2.9723 14ZM3.0554 8.86719H9.95881V10.772H3.0554V8.86719Z' fill='currentColor'/><rect width='14' height='2' transform='translate(0 17)' fill='url(#paint0_linear_1_3)'/><defs><linearGradient id='paint0_linear_1_3' x1='0' y1='1' x2='14' y2='1' gradientUnits='userSpaceOnUse'><stop stop-color='#FF0101'/><stop offset='0.25' stop-color='#F3FF13'/><stop offset='0.5' stop-color='#02F90E'/><stop offset='0.75' stop-color='#008AF3'/><stop offset='1' stop-color='#8C10FF'/></linearGradient></defs></svg>",customEditorTextAlign:"<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3.33301 5H16.6663M3.33301 10H16.6663M3.33301 15H9.16634' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>",customInstallApp:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-opacity="1" stroke-width="1.5" d="M12 18h.01M14 3H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-4m-3-7 3 3m0 0 3-3m-3 3V3"/></svg>',customAi:m0,mspotLoader:`<svg 2740 class="w-4 h-4 animate-spin" 2741 xmlns="http://www.w3.org/2000/svg" 2742 fill="none" 2743 viewBox="0 0 24 24" 2744 > 2745 <circle 2746 class="opacity-25" 2747 cx="12" 2748 cy="12" 2749 r="10" 2750 stroke="currentColor" 2751 stroke-width="4" 2752 ></circle> 2753 <path 2754 class="opacity-75" 2755 fill="currentColor" 2756 d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" 2757 ></path> 2758 </svg>`,customShare:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"> 2759<path d="M12.9998 4V8C6.2275 8.57162 2.85149 13.191 2.9998 20C5.02433 15.6339 8.28028 13.1522 12.9998 14V18L20.9998 11L12.9998 4Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/> 2760</svg>`,customEditorFontSize:`<svg viewBox='0 0 24 24' height='24' width='24' fill='none' xmlns='http://www.w3.org/2000/svg'> 2761<path d='M2.9723 19H0.441051L5.04972 5.909091H7.97727L12.5923 19H10.0611L6.56463 8.59375H6.46236L2.9723 19ZM3.0554 13.86719H9.95881V15.772H3.0554V13.86719ZM16.9496 19.1982C16.3274 19.1982 15.7671 19.0874 15.2685 18.8658C14.7742 18.6399 14.3821 18.3075 14.0924 17.8686C13.8068 17.4297 13.6641 16.8885 13.6641 16.245C13.6641 15.6911 13.7664 15.233 13.9709 14.87074C14.1754 14.50852 14.4546 14.21875 14.8083 14.00142C15.162 13.78409 15.5604 13.62003 16.0036 13.50923C16.451 13.39418 16.9134 13.31108 17.3906 13.25994C17.9659 13.20028 18.4325 13.14702 18.7905 13.10014C19.1485 13.04901 19.4084 12.9723 19.5703 12.87003C19.7365 12.76349 19.8196 12.59943 19.8196 12.37784V12.33949C19.8196 11.85795 19.6769 11.48509 19.3914 11.22088C19.1058 10.95668 18.6946 10.82457 18.1577 10.82457C17.5909 10.82457 17.1414 10.94815 16.809 11.19531C16.4808 11.44247 16.2593 11.73437 16.1442 12.07102L13.9837 11.7642C14.1541 11.16761 14.4354 10.66903 14.8274 10.26847C15.2195 9.86364 15.6989 9.56108 16.2656 9.3608C16.8324 9.15625 17.4588 9.05398 18.1449 9.05398C18.6179 9.05398 19.0888 9.10938 19.5575 9.22017C20.0263 9.33097 20.4546 9.5142 20.8424 9.76989C21.2301 10.02131 21.5412 10.36435 21.7756 10.79901C22.0142 11.23366 22.1335 11.77699 22.1335 12.42898V19H19.9091V17.6513H19.8324C19.6918 17.924 19.4936 18.1797 19.2379 18.4183C18.9865 18.6527 18.6691 18.8423 18.2855 18.9872C17.9063 19.1278 17.461 19.1982 16.9496 19.1982ZM17.5504 17.4979C18.0149 17.4979 18.4176 17.4062 18.7585 17.223C19.0995 17.0355 19.3615 16.7884 19.5448 16.4815C19.7323 16.1747 19.826 15.8402 19.826 15.478V14.32102C19.7536 14.38068 19.63 14.43608 19.4553 14.48722C19.2848 14.53835 19.0931 14.5831 18.88 14.62145C18.6669 14.6598 18.456 14.69389 18.2472 14.72372C18.0384 14.75355 17.8573 14.77912 17.7039 14.80043C17.3587 14.8473 17.0497 14.92401 16.777 15.0305C16.5043 15.1371 16.2891 15.2862 16.1314 15.478C15.9737 15.6655 15.8949 15.9084 15.8949 16.2067C15.8949 16.6328 16.0504 16.9545 16.3615 17.1719C16.6726 17.3892 17.0689 17.4979 17.5504 17.4979Z' fill='currentColor'/> 2762</g> 2763</svg>`,customPin:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2763<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21v-6m0 0h6c0-3-2-5.333-3-6V3h-4m1 12H6c0-3 2-5.333 3-6V3h4"/></svg>',customUnpin:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 21v-6m0 0h6c0-3-2-5.333-3-6V3h-4m1 12H6c0-3 2-5.333 3-6V3h4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M4 20 20 4"/></svg>',customTaskCommentsPanel:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 6.1875V11.6875M2.53125 14.125H15.4688C15.9347 14.125 16.3125 13.7472 16.3125 13.2812V4.84375C16.3125 4.37776 15.9347 4 15.4688 4H2.53125C2.06526 4 1.6875 4.37776 1.6875 4.84375V13.2812C1.6875 13.7472 2.06526 14.125 2.53125 14.125Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>'}),ae$9]});}}return e})();var T9={provide:w$g,deps:[f$8],useFactory:Qb};function Qb(e){return e.select(r=>r.schoolId).pipe(Pt$b(r=>!!r),pp$2())}var B9={provide:Uo,deps:[f$8],useFactory:Zb};function Zb(e){return ()=>({schoolId:e.getValue().schoolId||void 0})}var Wb=[],Kb=[],Xb=[E$2.production?[...Kb]:[...Wb]],k9={providers:[...Xb,{provide:v,useFactory:e=>()=>e.getSchoolId()??null,deps:[f$8]},ia$1(M9,Ri$1(ra$1),Si(),oa$1({paramsInheritanceStrategy:"always"})),_N(),Fl(),at$3(()=>As$4(E$2.firebase)),ne$c(()=>{let e=Y$2()?Gr$7(g$k(W$4),{persistence:di$6}):Dc$2(g$k(W$4));return E$2.useEmulators&&Kr$7(e,`http://${E$2.useEmulators.auth}`,{disableWarnings:true}),e}),Rs$2(()=>{let e=_s$2(g$k(W$4));if(E$2.useEmulators?.storage){let[r,t]=E$2.useEmulators.storage.split(":");Xr$2(e,r,Number(t));}return e}),Vh(),ir$8(new _$d({defaultOptions:{queries:{gcTime:1e3*60*60,staleTime:E$2.production?1e3*60*15:1e3*60*30,retry:(e,r)=>e<3&&!(r instanceof H$j&&r.status===401)}}})),JS(()=>((r,t,a,o,i,d,f,y)=>()=>new Promise(L=>{if(Y$2()){a.initialize(E$2.firebase).then(async()=>{let m0=await y.getStoredSchoolUrl();if(m0){r.syncMaByUrl(m0).subscribe({next:()=>{L(true);},error:()=>{t.setLoading(false),L(true);}});return}t.setLoading(false),L(true);}).catch(()=>{t.setLoading(false),L(true);});return}let R="";xG(i)?(R=f||"",R||(R=d.hostname),R==="localhost"&&(R="benny.localhost"),R=R.replace(/:[0-9]{4}$/,"")):R=o.location.hostname;let Q=R.split("."),d0=R.endsWith(".localhost")||Q[1]===E$2.clientHost||Q[1]==="mymemberhub"?Q[0]:R;r.syncMaByUrl(d0).subscribe(()=>{L(true);});}))(g$k(k$4),g$k(d$b),g$k(J$4),g$k(c$9),g$k(AC$1),g$k(Vr$7),g$k(S$l,{optional:true}),g$k(q$3))()),JS(()=>((r,t)=>()=>r.selectAfterLoading().pipe($f$1(),Ip$1(a=>{t.set({id:a.gtmId||""});})))(g$k(f$8),g$k(we$1))()),JS(()=>g$k(O$2).initialize()),JS(()=>{g$k(y9).initApp();}),JS(()=>{g$k(bh).initialize();}),JS(()=>g$k(ir$1).initializeListeners()),x(),{provide:I$6,useFactory:(e,r)=>({classify:t=>l$2(t,{activeHostname:e.getActiveSchoolHost()}),navigateInternal:t=>e.navigateInternal(t),openExternal:t=>r.open(t)}),deps:[O$2,E$3]},{provide:M$f,useFactory:()=>g$k(f$8).select()},{provide:jr$6,useValue:"de"},{provide:mn,useValue:70},{provide:t,useFactory:()=>g$k(f$8).select()},{provide:kE,useValue:false},{provide:UE,useValue:E$2.production},{provide:ta$2,useValue:E$2.loglevel},{provide:Bt$a,useFactory:()=>H$2(E$2.backend)},{provide:Ae$c,useFactory:()=>H$2(E$2.backendBetaTest)},{provide:tr$6,useClass:a7,multi:true},...Y$2()?[{provide:Vt$9,useFactory:e=>()=>e.getCurrentIdToken(),deps:[J$4]}]:[],{provide:s$1,useFactory:()=>H$2(E$2.backendAi)},{provide:xE,useValue:E$2.clientHost},{provide:OE,useFactory:()=>H$2(E$2.sseHost)},{provide:n$1,useFactory:()=>
2763{if(!U$5.isNativePlatform()||U$5.getPlatform()!=="ios")return null;let r=g$k(O$2).getSchoolBaseUrl();return r.startsWith("https://")?r:null}},{provide:e,useFactory:()=>{if(!U$5.isNativePlatform()||U$5.getPlatform()!=="ios")return null;let r=g$k(O$2).getSchoolBaseUrl();return r.startsWith("https://")?r:null}},{provide:ct$4,useFactory:()=>H$2(E$2.backendChat)},{provide:yn$5,useValue:{disabled:true,animation:{enterDuration:0,exitDuration:0}}},{provide:$e$6,useValue:{backdropClass:["backdrop-blur-sm","cdk-overlay-dark-backdrop"]}},{provide:jt$9,useValue:{usePopover:false}},T9,B9,x$i,sp,lp,{provide:Zt$1,useValue:E$2.fileCdn},{provide:U$f,useValue:E$2.userFilesBucket},{provide:W$1,useExisting:q},{provide:B$1,useExisting:q},{provide:H$1,useExisting:q},{provide:st$8,useValue:{touchGestures:"off"}},{provide:RE,useValue:c2.version},{provide:NE,useValue:"frame-ancestors 'self'"},{provide:"bitmovinAnalyticsToken",useValue:E$2.bitmovinAnalyticsToken},U7,q7,{provide:n$h,useExisting:R7},{provide:Tn$5,useValue:{panelClass:["bg-backgrounds-surface-raised","backdrop-blur-sm"],hasBackdrop:true,closeOnNavigation:true}},{provide:o,useExisting:M$a},{provide:d$8,useValue:E$2.featureToggles},{provide:n$4,useFactory:()=>ZG(g$k(ut$6).unreadNewPostsBySpace)},{provide:t$1,useFactory:()=>g$k($7).userVariables},{provide:E,useValue:yI([])},Ct$3,Et$2,{provide:c,useFactory:()=>g$k(f$8).select().pipe(st$c(e=>e?.customView))},{provide:wE,useFactory:()=>g$k(f$8).select().pipe(st$c(e=>e?.internalBeta),pp$2())},{provide:LE,useFactory:()=>g$k(f$8).select().pipe(st$c(e=>e?.agentPlatform!==false),pp$2())},{provide:ME,useFactory:()=>g$k(f$8).select().pipe(st$c(e=>e?.customView?.defaultAgentsName?.trim()||void 0),pp$2())},{provide:DE,useFactory:()=>g$k(f$8).select().pipe(st$c(e=>e?.customAgents===true),pp$2())},{provide:CE,useFactory:()=>g$k(f$8).select().pipe(st$c(e=>e?.extendedBeta),pp$2())},{provide:GE,useFactory:()=>{let e=g$k(f$8),r=g$k(M$9);return _I([e.select(t=>!!t?.spacesActive),r.selectAllAfterLoading()]).pipe(st$c(([t,a])=>t&&a.length>0),pp$2())}},{provide:qE,useFactory:()=>{let e=g$k(M$9),r=g$k(M$a);return _I([e.selectAllAfterLoading(),r.selectSpaces()]).pipe(st$c(([t,a])=>{let o=new Set((a??[]).map(String));return t.filter(i=>i.visibility==="public"||o.has(i.id))}))}},{provide:yh,useValue:"/aichat/client/chat"},{provide:J$c,useValue:_h},{provide:Yi,useFactory:e=>async r=>await e.openChatById(r),deps:[Fe$4]},Zr$4(Qr$4(),qr$4(),Kr$4([Mh])),Qo$4(qo$4()),Aa,Zp$2(Jc.withConfig({disableAnimations:false}),g7.register("ngsw-worker.js",{enabled:E$2.production&&!Y$2()}),X7.forRoot({production:E$2.production}
2763),N7.forRoot(E$2.production,{dsn:"https://[email protected]/3831157",version:_7(c2.version),envTag:E$2.envTag,hideErrors:E$2.hideErrors,ignoreErrors:A9}),pt$2.forRoot(),b7.setEnvironment(E$2),L9)]};var Yb=24;function Jb(){let e=document.createElement("div");e.style.cssText="position:fixed;top:0;left:0;padding-top:env(safe-area-inset-top,0px);visibility:hidden;pointer-events:none",document.documentElement.appendChild(e);let r=parseFloat(getComputedStyle(e).paddingTop)||0;return e.remove(),r}function tM(){let e=getComputedStyle(document.documentElement).getPropertyValue("--safe-area-inset-top").trim();return e.endsWith("px")&&parseFloat(e)||0}function eM(){return Math.max(0,window.visualViewport?.offsetTop??0)}function de(){let e=Math.max(Jb(),tM(),eM(),Yb);document.documentElement.style.setProperty("--mspot-safe-area-top",`${e}px`);}function E9(){requestAnimationFrame(()=>{de(),requestAnimationFrame(de);}),setTimeout(de,150),setTimeout(de,500);}function D9(){!U$5.isNativePlatform()||U$5.getPlatform()!=="ios"||(de(),E9(),window.visualViewport?.addEventListener("resize",de,{passive:true}),window.addEventListener("resize",de,{passive:true}),window.addEventListener("orientationchange",de),o$3.addListener("resume",E9));}NG(t7);E$2.production&&Ae$5();be$8({resettable:true});typeof document<"u"&&U$5.isNativePlatform()&&(document.documentElement.setAttribute("data-capacitor-platform",U$5.getPlatform()),D9());(async()=>{if(U$5.isNativePlatform())try{await xa.setChannel({channel:E$2.envTag});}catch(e){KE.error("[LiveUpdate] Failed to set channel:",e);}br$7(ec,k9).then(()=>U$5.isNativePlatform()?xa.ready():Promise.resolve(void 0)).catch(e=>KE.error(e));})(); 2764export{L$l as $,wi$1 as A,o$1 as B,Ce$5 as C,b$g as D,E$5 as E,eM$1 as F,Gd$1 as G,gv$1 as H,tM$1 as I,J8 as J,Kf$1 as K,cN as L,Ma$2 as M,H$a as N,On$7 as O,Pd$1 as P,Qf$1 as Q,Rt$f as R,Ss$2 as S,U$5 as T,U$b as U,Ve$a as V,s$e as W,X8 as X,YG as Y,Zv$1 as Z,r$d as _,ge$b as a,M$a as a$,O$c as a0,LE as a1,yI as a2,DE as a3,PE as a4,_$d as a5,ie$b as a6,EI as a7,qG as a8,Wg$1 as a9,BM as aA,$v$1 as aB,tN as aC,z$4 as aD,W$b as aE,u$1 as aF,nl as aG,A$4 as aH,kt$7 as aI,nt$c as aJ,Je$2 as aK,Yt$1 as aL,c$9 as aM,H$8 as aN,J$4 as aO,w$4 as aP,q$3 as aQ,ir$1 as aR,fn$1 as aS,b$8 as aT,ie$d as aU,Pt$b as aV,w as aW,ee$1 as aX,r$3 as aY,bx$1 as aZ,hn$9 as a_,kx$1 as aa,Ix$1 as ab,yt$a as ac,fe$a as ad,pv$1 as ae,wD as af,SN as ag,eN as ah,jv$1 as ai,fM as aj,yM as ak,m$2 as al,w$g as am,kE as an,vI as ao,c$2 as ap,p$1 as aq,g$2 as ar,l as as,oM as at,iM as au,$$g as av,m0 as aw,sh$1 as ax,ah$1 as ay,TM as az,Xl$1 as b,gh$1 as b$,Oe$5 as b0,_t$6 as b1,wt$8 as b2,bt$5 as b3,Me$7 as b4,t$7 as b5,k$2 as b6,y$5 as b7,$E as b8,G$8 as b9,g5 as bA,s1 as bB,Ce$a as bC,b$e as bD,Va$2 as bE,n3 as bF,bt$b as bG,wr$4 as bH,mx$1 as bI,DM as bJ,fN as bK,Ct$h as bL,Tt$a as bM,k1 as bN,L$g as bO,Ze$9 as bP,I$b as bQ,B$k as bR,Ce$8 as bS,Qe$b as bT,Xn$7 as bU,Yn$6 as bV,Yt$7 as bW,Vn$7 as bX,Fn$7 as bY,Mn$6 as bZ,hd$1 as b_,O$9 as ba,O$8 as bb,Ai as bc,ON as bd,gr$1 as be,zt$7 as bf,mt$7 as bg,gt$5 as bh,X$d as bi,Nx$1 as bj,le$5 as bk,DE$1 as bl,O$2 as bm,Hd$1 as bn,$d$1 as bo,EN as bp,CN as bq,ae$2 as br,oi$5 as bs,J$3 as bt,v$3 as bu,n$c as bv,z$1 as bw,$f$1 as bx,gc$1 as by,pn$a as bz,Es$3 as c,Lt$7 as c$,fh$1 as c0,zr$1 as c1,S5 as c2,b$c as c3,Fl as c4,gt$f as c5,q$d as c6,z$g as c7,le$d as c8,S$g as c9,qi$2 as cA,jd$1 as cB,Bv$1 as cC,Vd$1 as cD,r$9 as cE,i$7 as cF,dl as cG,ID as cH,XM as cI,ED as cJ,Te$g as cK,A$c as cL,R$9 as cM,Lo$4 as cN,Wn$9 as cO,Fr$6 as cP,Yv$1 as cQ,jt$8 as cR,St$a as cS,u$9 as cT,Dn$5 as cU,X$b as cV,Zt$6 as cW,Sa$2 as cX,io$5 as cY,K$j as cZ,Oe$8 as c_,Pi$2 as ca,p$d as cb,C$5 as cc,xI as cd,mt$d as ce,Gr$6 as cf,N$d as cg,d$f as ch,Ip$1 as ci,Ar$8 as cj,mf$1 as ck,X$8 as cl,J$b as cm,$$a as cn,yh$1 as co,qi as cp,up$1 as cq,jI as cr,ei$5 as cs,bt$d as ct,_I as cu,EM as cv,ae$9 as cw,q$b as cx,Sn$5 as cy,n$3 as cz,de$b as d,T$6 as d$,aa$1 as d0,g$1 as d1,Kv$1 as d2,CM as d3,wM as d4,Yn$8 as d5,oN as d6,vD as d7,nN as d8,Gm$1 as d9,y$4 as dA,d$1 as dB,p$2 as dC,f$1 as dD,gN as dE,hN as dF,v$9 as dG,
2764Lv$1 as dH,jM as dI,wN as dJ,x$o as dK,U1 as dL,u1 as dM,h1 as dN,D$1 as dO,H$j as dP,We$1 as dQ,Ne$1 as dR,f as dS,Qt$2 as dT,se$1 as dU,y$2 as dV,sp$2 as dW,P$1 as dX,k$b as dY,he$6 as dZ,n$2 as d_,pN as da,rM as db,dN as dc,iS as dd,aS as de,Q$f as df,AI as dg,mI as dh,p$c as di,E$d as dj,B$h as dk,P$9 as dl,nM as dm,ve$b as dn,s$9 as dp,A$j as dq,fu$1 as dr,zv$1 as ds,rN as dt,J_$1 as du,si$5 as dv,ti$5 as dw,ni$5 as dx,Z$8 as dy,_ as dz,qS as e,yN as e$,Ld$1 as e0,o$5 as e1,FE as e2,Pe$4 as e3,t$6 as e4,v$1 as e5,de$2 as e6,E$3 as e7,En$7 as e8,Se$1 as e9,JD as eA,K$k as eB,h$1 as eC,wE as eD,rr$1 as eE,Ds$2 as eF,AC$1 as eG,AG as eH,cb$1 as eI,$t$2 as eJ,n$6 as eK,ei$4 as eL,li$4 as eM,ai$4 as eN,vh$1 as eO,$$2 as eP,Ht$2 as eQ,D$a as eR,bh$1 as eS,rn$a as eT,mn$6 as eU,ot$2 as eV,u$c as eW,x1 as eX,Ox$1 as eY,hp$1 as eZ,E$7 as e_,Ue$5 as ea,Dt$2 as eb,pp$2 as ec,r$8 as ed,d as ee,Jv$1 as ef,s$8 as eg,p$8 as eh,gt$2 as ei,ZG as ej,De$1 as ek,c$b as el,M$9 as em,l$6 as en,Ex$1 as eo,o$9 as ep,qE$1 as eq,z$f as er,k0 as es,we$8 as et,F0 as eu,S0 as ev,h$7 as ew,wi$2 as ex,be$a as ey,tn$5 as ez,g$a as f,G$k as f$,mv$1 as f0,G_$1 as f1,W_$1 as f2,_e as f3,u$2 as f4,bN as f5,Qe$f as f6,yp$1 as f7,Ep$1 as f8,re$7 as f9,ar$1 as fA,I$4 as fB,Bp$1 as fC,Qi$3 as fD,Fs$3 as fE,ks$3 as fF,W$4 as fG,U$f as fH,_s$2 as fI,gs$2 as fJ,fs$2 as fK,re$3 as fL,pi$4 as fM,ui$3 as fN,Wt$8 as fO,cc$1 as fP,Kn$7 as fQ,q0 as fR,e_$1 as fS,At$6 as fT,vp as fU,K$f as fV,zD as fW,O$b as fX,Ue$b as fY,We$a as fZ,et$9 as f_,O$e as fa,oe$9 as fb,Xi as fc,X$3 as fd,gn$a as fe,w$7 as ff,je as fg,ae$a as fh,Z$b as fi,ml as fj,ri$5 as fk,Qn$7 as fl,gn$7 as fm,se$b as fn,ii$5 as fo,z$i as fp,oe as fq,Kl as fr,ln$5 as fs,G$9 as ft,ce$5 as fu,sn$5 as fv,Ts$2 as fw,HI as fx,Ze$4 as fy,Yr$4 as fz,g$k as g,x0 as g$,no$3 as g0,Wt$2 as g1,E$f as g2,H$4 as g3,yt$f as g4,p3 as g5,k$g as g6,Dx$1 as g7,jE as g8,mb$1 as g9,d1 as gA,C5 as gB,t5 as gC,l0 as gD,ME as gE,b1 as gF,M1 as gG,K$m as gH,a as gI,r3 as gJ,Ax$1 as gK,q1 as gL,p0 as gM,Yr$2 as gN,s$1 as gO,ps$2 as gP,ue$2 as gQ,ds$2 as gR,yn$7 as gS,r$1 as gT,Wo$5 as gU,o0 as gV,d0 as gW,m as gX,Wv$1 as gY,J1 as gZ,j$2 as g_,kr$4 as ga,j$9 as gb,zm$1 as gc,n$b as gd,o3 as ge,mo$2 as gf,Ft$6 as gg,Xv$1 as gh,ea$1 as gi,A$7 as gj,v$i as gk,P$c as gl,h$b as gm,i$b as gn,s$d as go,t$3 as gp,n as gq,yx$1 as gr,T$g as gs,x$h as gt,E1 as gu,d5 as gv,R$2 as gw,Ko$4 as gx,z$h as gy,v$5 as gz,ta$3 as h,Bt$4 as h$,i0 as h0,L5 as h1,X$f as h2,W$j as h3,T$4 as h4,e3 as h5,TN as h6,w$2 as h7,r$b as h8,w$6 as h9,di$6 as hA,Pn$8 as hB,ci$7 as hC,Mo$5 as hD,Vo$5 as hE,jo$6 as hF,Ko$7 as hG,Ma$3 as hH,Uo$6 as hI,ta$4 as hJ,na$3 as hK,ea$4 as hL,Kr$7 as hM,Qo$7 as hN,Ga$2 as hO,Wa$2 as hP,Ja$2 as hQ,$a$2 as hR,ri$8 as hS,W$r as hT,ia$3 as hU,i$3 as hV,s$2 as hW,n$g as hX,v$m as hY,x$7 as hZ,_$5 as h_,Ut$7 as ha,Dc$2 as hb,Bo$5 as hc,zo$5 as hd,Wo$6 as he,ca$4 as hf,Yo$6 as hg,Xa$2 as hh,Zt$d as hi,Go$6 as hj,E$1 as hk,Rn$8 as hl,Po$5 as hm,Oo$5 as hn,ko$5 as ho,mn$b as hp,Ua$2 as hq,Lo$5 as hr,Mr$9 as hs,aa$3 as ht,Xo$7 as hu,Ho$5 as hv,qo$7 as hw,O as hx,sa$3 as hy,jt$g as hz,Vv$1 as i,i5 as i$,O$n as i0,RI as i1,je$e as i2,VI as i3,w$c as i4,r$2 as i5,Dp$2 as i6,gp$1 as i7,_t$5 as i8,i$a as i9,_t$c as iA,Jt$8 as iB,At$7 as iC,W$3 as iD,k$4 as iE,d$4 as iF,e as iG,gb$1 as iH,m$3 as iI,q$l as iJ,Vr$7 as iK,RC$1 as iL,o as iM,r$4 as iN,R$6 as iO,l$c as iP,j$n as iQ,n$h as iR,_$c as iS,g$g as iT,M$f as iU,Q$b as iV,E$g as iW,v$g as iX,y1 as iY,d$h as iZ,ve$a as i_,K1 as ia,e5 as ib,w5 as ic,p as id,q_$1 as ie,MI as ig,a$9 as ih,v5 as ii,F$f as ij,L1 as ik,z$j as il,E as im,l1 as io,P$b as ip,J$9 as iq,s$4 as ir,s$3 as is,ir$7 as it,D$3 as iu,y as iv,a$5 as iw,dn$7 as ix,o$3 as iy,r$7 as iz,QM as j,dr$5 as j$,a$b as j0,B5 as j1,W1 as j2,f1 as j3,m1 as j4,V$g as j5,DD as j6,ut$6 as j7,H1 as j8,A as j9,G$f as jA,A$8 as jB,J$f as jC,Ei$1 as jD,d3 as jE,v$7 as jF,d$7 as jG,a$8 as jH,l3 as jI,Xo$4 as jJ,nn as jK,en as jL,Ze as jM,rn as jN,on as jO,tn as jP,sn as jQ,cn as jR,ln as jS,Qe as jT,Vt$7 as jU,m$1 as jV,z$b as jW,Li$2 as jX,ar$4 as jY,u$e as jZ,lr$5 as j_,p$9 as ja,u$7 as jb,Fe$4 as jc,f$6 as jd,et$7 as je,u5 as jf,P1 as jg,wp$1 as jh,i$1 as ji,g$f as jj,h$9 as jk,A$e as jl,OG as jm,w$e as jn,He$9 as jo,S$8 as jp,pe$7 as jq,oe$6 as jr,v$b as js,I$6 as jt,t$1 as ju,n$1 as jv,N$a as jw,n$4 as jx,f5 as jy,v1 as jz,Pv$1 as k,p$4 as k$,Ze$6 as k0,pr$5 as k1,T$b as k2,br$5 as k3,ze$4 as k4,rp$2 as k5,mn$7 as k6,qt$6 as k7,_r$5 as k8,V$b as k9,Ji$1 as kA,zs as kB,u$6 as kC,z_$1 as kD,j$a as kE,O$7 as kF,mN as kG,UE as kH,zn$5 as kI,Ot$6 as kJ,P$4 as kK,ie$2 as kL,ne$1 as kM,UI as kN,jl as kO,f$c as kP,vN as kQ,r as kR,t as kS,q as kT,W$1 as kU,B$1 as kV,H$1 as kW,a$3 as kX,D as kY,ua$4 as kZ,fp$1 as k_,k$d as ka,E$9 as kb,Au$1 as kc,n1 as kd,u$8 as ke,U$c as kf,mr$1 as kg,cn$1 as kh,mn$1 as ki,Zr as kj,er$1 as kk,Kn$1 as kl,Jn$1 as km,he$3 as kn,NI as ko,vr$5 as kp,Ke$4 as kq,Ut$4 as kr,Qe$5 as ks,y$b as kt,Cr$1 as ku,f$b as kv,fl as kw,yr$1 as kx,Tu$1 as ky,Co$4 as kz,le$9 as l,r$6 as l0,Zt$8 as l1,U as l2,R$1 as l3,M as l4,q$1 as l5,Y$2 as l6,S as l7,$o$6 as l8,ii$8 as l9,Se$2 as la,y$g as lb,z$q as lc,w$j as ld,B$s as le,iD as m,eD as n,bM as o,ni$7 as p,qd$1 as q,t$b as r,st$c as s,t3 as t,uT as u,Qn$9 as v,oe$e as w,f$8 as x,yD as y,Ge$8 as z};
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.